query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
get which fragment is the current fragment in container
public Fragment getCurrentFragment() { return getFragmentInContainer(R.id.fragmentFrameContainer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BaseFragment getCurrentFragment() {\n return (BaseFragment) getSupportFragmentManager().findFragmentById(R.id.mFrameContainer);\n }", "public int getRootFragmentContainerId();", "public d getCurrentBaseFragment() {\n Fragment findFragmentById = getFragmentManager().findFragmentById(16908290);\n if (findFragmentById == null || !(findFragmentById instanceof d)) {\n return null;\n }\n return (d) findFragmentById;\n }", "private String getActiveFragmentTag() {\n List<Fragment> fragments = getSupportFragmentManager().getFragments();\n\n if (fragments == null) {\n return null;\n }\n\n for (Fragment fragment : fragments) {\n if (fragment.isVisible()) {\n return fragment.getTag();\n }\n }\n\n return null;\n }", "@Nullable\n public BaseFragment getCurrentMainFragment() {\n return (BaseFragment) getSupportFragmentManager().findFragmentByTag(MAIN_FRAGMENT_TAG);\n }", "public abstract int getFragmentView();", "public String getFragment() {\n\t\treturn fragment;\n\t}", "public Fragment getFragment() {\n return fragment;\n }", "public int getFragmentPlace()\r\n {\r\n int id = R.id.left_pane_body;\r\n if (DisplayUtils.hasCentralPane(this))\r\n {\r\n id = R.id.central_pane_body;\r\n }\r\n return id;\r\n }", "public String getFragment() {\n return m_fragment;\n }", "public abstract Fragment getFragment();", "private Fragment getLast() {\n Fragment last;\n switch (lastFragment) {\n case \"userHomeFragment\":\n last = userHomeFragment;\n break;\n case \"scheduleFragment\":\n last = scheduleFragment;\n break;\n case \"medicineFragment\":\n last = medicineFragment;\n break;\n default:\n last = calendarFragment;\n }\n return last;\n }", "@Override\n\tpublic String getCurrentFragmentName() {\n\t\treturn \"IncomeFragment\";\n\t}", "public abstract String getFragmentName();", "public abstract int getFragmentLayout();", "public String getFragmentTag() {\n return this.getClass().getSimpleName();\n }", "public Fragment findFragment(int position) {\n return fragments[position];\n }", "private GraphFragment getGraphFragment() {\n String tag = this.getString(R.string.fragment_graph_tag);\n Fragment fragment = this.getSupportFragmentManager().findFragmentByTag(tag);\n\n if(fragment == null)\n return null;\n\n return (GraphFragment) fragment;\n }", "private Fragment getLatestFragmentFromBackStack() {\n int entryCount = mFragmentManager.getBackStackEntryCount();\n if (entryCount > 0) {\n FragmentManager.BackStackEntry entry = mFragmentManager.getBackStackEntryAt(entryCount - 1);\n return mFragmentManager.findFragmentByTag(entry.getName());\n } else {\n return null;\n }\n }", "public boolean getFragment()\n\t{\n\t\treturn mFragment;\n\t}", "protected abstract Fragment getFragmentByPosition(int position);", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "protected abstract int getFragmentLayout();", "private EditBuildInfoFragment findInfoFragment() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\treturn (EditBuildInfoFragment) fm.findFragmentByTag(FragmentUtils.makeFragmentName(mPager.getId(), 0));\n\t}", "@Override\n public Fragment getFragment() {\n// uuid = (UUID)getIntent().getSerializableExtra(UUID);\n// return GoalDetailViewFragment.newInstance(uuid);\n return null;\n }", "int getActivityLayoutId();", "public static UpdaterFragment getInstance(){\n return current;\n }", "public final Process getFragmentProcess()\n\t{\n\t\treturn rProcess;\n\t}", "public int getCurrentTabId() {\n\t\treturn viewPager.getCurrentItem();\n\t}", "String getLastNavFragment(Context context) {\n\t\treturn null;\n\t}", "protected abstract int getFirstFrag();", "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 }", "public String getTopFragmentName() {\n\t\tBackStackEntry backStackEntry = this.getSupportFragmentManager()\n\t\t\t\t.getBackStackEntryAt(getBackStackCount() - 1);\n\t\tif (backStackEntry != null) {\n\t\t\treturn backStackEntry.getName();\n\t\t}\n\t\treturn null;\n\t}", "public boolean is_fragment() {\r\n\t\treturn is_fragment_;\r\n\t}", "@Override\r\n\t\tpublic Fragment getItem(int arg0) {\n\t\t\treturn fragments[arg0];\r\n\t\t}", "Long onFragmentInteraction();", "void onFragmentInteraction(int position);", "FragmentManager getChildManagerForFragment();", "int getMinorFragmentId();", "public String customFragment() {\n return this.customFragment;\n }", "@Override\n public Fragment getItem(int arg0) {\n return mFragments.get(arg0);\n }", "@Override\n public Fragment getItem(int arg0) {\n return listfragment.get(arg0); //返回第几个fragment\n }", "public int getBlock(){\n return this.position.getCurrentBlock();\n }", "int getMajorFragmentId();", "private int getCurrentSelectedGridId() {\r\n\t\tif (mArchiveFragmentStatePagerAdapter != null && mViewPager != null) {\r\n\t\t\treturn mArchiveFragmentStatePagerAdapter.getGridId(mViewPager\r\n\t\t\t\t\t.getCurrentItem());\r\n\t\t} else {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "public abstract Fragment getSensorFragment();", "@Override\n\tpublic Fragment getItem(int arg0) {\n\t\treturn list_fragments.get(arg0);\n\t}", "void onFragmentInteraction(int cursorID);", "@VisibleForTesting\n public FragmentActivity getFragmentActivity() {\n return PanelFragment.this.getActivity();\n }", "public int mo2142B() {\n if (this.f12261b == -1) {\n Log.e(\"UI_OPERATION\", \"missing fragment container id\", m16892a());\n System.exit(0);\n }\n return this.f12261b;\n }", "void onFragmentInteraction(int spotId);", "public String getFragmentPath() {\n return fragmentPath;\n }", "public int getCurrentPosition() {\n\t\treturn mCurrentViewIndex - getChildCount();\n\t}", "private Fragment getLessonFragment() {\n\t\treturn MediaPlayerFragmentFactory.getMediaPlayerFragment(lesson);\n\t}", "private Fragment getFragmentByTag(String tag) {\r\n\r\n if (!StringUtils.isBlank(tag)) {\r\n return getSupportFragmentManager().findFragmentByTag(tag);\r\n }\r\n\r\n return null;\r\n }", "public Fragment getRegisteredFragment(int position) {\n return registeredFragments.get(position);\n }", "@Override\r\n\tprotected FragmentInfo getNavigtionUpToFragment() {\n\t\treturn null;\r\n\t}", "@Override\n public android.support.v4.app.Fragment getItem(int arg0) {\n return arf.get(arg0);\n }", "public Fragment getRegisteredFragment(int position) {\n return registeredFragments.get(position);\n }", "int getReceivingMajorFragmentId();", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "private Fragment findNextFragment(int menuItemId) {\n int index = 0;\n while (index < NAVIGATION_OPTIONS.length && NAVIGATION_OPTIONS[index] != menuItemId) {\n ++index;\n }\n if (index!=0) {\n hideShareAppButton();\n }\n return getFragment(APPLICATION_FRAGMENTS[index]);\n }", "public String getFragmentNameAtPosition(int position) {\n\t\tif (position <= getBackStackCount()) {\n\t\t\treturn this.getSupportFragmentManager()\n\t\t\t\t\t.getBackStackEntryAt(position - 1).getName();\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic Fragment getItem(int arg0) {\n\t\t\treturn (fragments == null || fragments.size() == 0) ? null\r\n\t\t\t\t\t: fragments.get(arg0);\r\n\t\t}", "private int currentPosition() {\n return robot.leftBack.getCurrentPosition();\n }", "public ProgramFragment getFragment(String treeName, String name);", "public int getCurrentIndex() {\n\t\treturn mCurrentSegment;\n\t}", "void onFragmentInteraction(String id);", "int getSendingMinorFragmentId();", "void onFragmentInteraction(Object ref);", "public void getComplaintParentFragment() {\n\t\tsetActionBartTitle(PgrsConstants.SLIDING_MENU_ID_COMPLAINT);\n\t\tsetCurrentFragmentTag(PgrsConstants.SLIDING_MENU_LABEL_COMPLAINT);\n\t\tcontentFragment = getSupportFragmentManager().findFragmentByTag(\n\t\t\t\tPgrsConstants.SLIDING_MENU_LABEL_COMPLAINT);\n\t\tif (contentFragment == null)\n\t\t\tcontentFragment = new ComplaintParentFragment();\n\t\tswitchContent(contentFragment,\n\t\t\t\tPgrsConstants.SLIDING_MENU_LABEL_COMPLAINT);\n\t}", "void onFragmentInteractionMain();", "@Override\n public void onNavigationDrawerItemSelected(int position) {\n if(fragmentManager == null){\n fragmentManager = getFragmentManager();\n }\n JoneBaseFragment fragment;\n String fragmentTag;\n switch (position){\n case 0:\n fragmentTag = JoneMainFragment.class.getName();\n// fragment = new JoneMainFragment();\n if(fragmentManager.findFragmentByTag(fragmentTag) == null){\n fragment = new JoneMainFragment();\n }else {\n fragment = (JoneBaseFragment) fragmentManager.findFragmentByTag(fragmentTag);\n }\n break;\n case 1:\n fragmentTag = AllAppsFragment.class.getName();\n if(fragmentManager.findFragmentByTag(fragmentTag) == null){\n fragment = new AllAppsFragment();\n }else {\n fragment = (JoneBaseFragment) fragmentManager.findFragmentByTag(fragmentTag);\n }\n break;\n case 2:\n fragmentTag = DeviceInfoFragment.class.getName();\n if(fragmentManager.findFragmentByTag(fragmentTag) == null){\n fragment = new DeviceInfoFragment();\n }else {\n fragment = (JoneBaseFragment) fragmentManager.findFragmentByTag(fragmentTag);\n }\n break;\n case 3:\n fragmentTag = AboutFragment.class.getName();\n if(fragmentManager.findFragmentByTag(fragmentTag) == null){\n fragment = new AboutFragment();\n }else {\n fragment = (JoneBaseFragment) fragmentManager.findFragmentByTag(fragmentTag);\n }\n break;\n default:\n fragmentTag = PlaceholderFragment.class.getName();\n if(fragmentManager.findFragmentByTag(fragmentTag) == null){\n fragment = PlaceholderFragment.newInstance(position);\n }else {\n fragment = (JoneBaseFragment) fragmentManager.findFragmentByTag(fragmentTag);\n }\n break;\n }\n JoneBaseFragment.switchFragment(fragmentManager, R.id.container, currentFragment, fragment, fragmentTag);\n currentFragment = fragment;\n }", "int getSendingMajorFragmentId();", "void onFragmentInteraction(View v);", "public Segment getCurrentSegment(){\n\t\treturn mSegmentList.get(mCurrentSegment);\n\t}", "private void updateFragment() {\n Fragment fragment = getSupportFragmentManager().findFragmentByTag(CURRENT_FRAGMENT);\n if (fragment != null) {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.detach(fragment).attach(fragment).commit();\n }\n }", "public int getCurrentTabPosition() {\n return mCurrentPosition;\n }", "@Override\n public Fragment getItem(int curent_page){\n switch (curent_page){\n case 0:\n WeatherAndForecastFragment fragment1 = new WeatherAndForecastFragment();\n return fragment1;\n case 1:\n WeatherAndForecastFragment fragment2 = new WeatherAndForecastFragment();\n return fragment2;\n case 2:\n WeatherAndForecastFragment fragment3 = new WeatherAndForecastFragment();\n return fragment3;\n\n default:\n return null;\n }\n }", "int getReceivingMinorFragmentId(int index);", "public ProgramFragment getFragment(String treeName, Address addr);", "@Override\n \tpublic Fragment getItem(int arg0) {\n \t\treturn list.get(arg0);\n \t}", "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 interface FragmentInteractionListener {\n int FRAG_ADD = 1;\n int FRAG_REPLACE = 2;\n int FRAG_ADD_ANIMATE = 3;\n int FRAG_DIALOG = 4;\n int FRAG_REPLACE_WITH_STACK = 5;\n int FRAG_ADD_WITH_STACK = 6;\n\n void setCurrentFragment(Bundle bundle, int fragmentType, int transType, int frameId);\n\n void popTopFragment();\n\n void popAllFromStack();\n\n String getActiveFragmentTag();\n\n}", "@Override\n public Fragment getItem(int position) {\n return fragments.get(position);\n }", "@Override\n public Fragment getItem(int position) {\n return fragments.get(position);\n }", "public Long getFragments() {\n return this.fragments;\n }", "public S6Fragment getBaseFragment()\t\t\t{ return base_node; }", "public int getSelectedTab() {\n return tabbedPane.getSelectedIndex();\n }", "@Override\n public Fragment getItem(int position) {\n if (position < frags.size()) {\n return frags.get(position);\n } else {\n return lastFrag;\n }\n }", "public void launchCurrentFragment(){\n mBottomNavigationView.setSelectedItemId(mCurrentSelectedFragment);\n try {\n FragmentIntent fragmentIntent = new FragmentIntent(getFragmentClassFromId(mCurrentSelectedFragment));\n startFragment(fragmentIntent);\n\n } catch (FragmentIntent.InValidIntentException e) {\n e.printStackTrace();\n }\n }", "@Override\n public Fragment getItem(int position) {\n switch (position) {\n case 0:\n CommonFragment tab1 = CommonFragment.newInstance(\"cube\");\n return tab1;\n case 1:\n CommonFragment tab2 = CommonFragment.newInstance(\"juggling\");\n return tab2;\n case 2:\n CommonFragment tab3 =CommonFragment.newInstance(\"grapho\");\n return tab3;\n case 3:\n CommonFragment tab4 =CommonFragment.newInstance(\"stack\");\n return tab4;\n case 4:\n CommonFragment tab5 = CommonFragment.newInstance(\"calligraphy\");\n return tab5;\n case 5:\n CommonFragment tab6=CommonFragment.newInstance(\"analysis\");\n return tab6;\n default:\n return null;\n }\n }", "@Override\n public Fragment getItem(int position) {\n return fragmentList.get(position);\n }", "@Override\n\tpublic Fragment getItem(int idx) {\n\t\treturn fragmentList.get(idx);\n\t}", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }", "public abstract @NonNull\n Fragment getItem(int position);" ]
[ "0.700908", "0.69610703", "0.69229764", "0.6788052", "0.6776136", "0.67347366", "0.6634849", "0.6626608", "0.65731996", "0.6528772", "0.6443552", "0.6426035", "0.6399727", "0.6330918", "0.62417495", "0.6176046", "0.61646616", "0.61096436", "0.6107607", "0.6104439", "0.6089281", "0.6075907", "0.6075907", "0.6075907", "0.6025252", "0.59848976", "0.59706545", "0.59700805", "0.5946791", "0.59249115", "0.5866581", "0.5863771", "0.5848629", "0.5802249", "0.5780716", "0.577419", "0.57696337", "0.5763079", "0.5763044", "0.571938", "0.5691884", "0.567675", "0.5673714", "0.56225723", "0.5622183", "0.5608201", "0.5601392", "0.5595332", "0.5594623", "0.55839664", "0.55247205", "0.5522025", "0.55199736", "0.55048436", "0.54118276", "0.53946936", "0.5392871", "0.53899807", "0.5373731", "0.53686893", "0.5362471", "0.53557414", "0.53557414", "0.53557414", "0.5345287", "0.5339927", "0.5335155", "0.53216356", "0.53108364", "0.52969086", "0.5292703", "0.5292436", "0.52859974", "0.52734405", "0.5258377", "0.5256181", "0.5239036", "0.52220607", "0.52040577", "0.52005213", "0.51942", "0.5193013", "0.51882356", "0.5183956", "0.51832366", "0.5178604", "0.5176429", "0.5174739", "0.5174739", "0.514958", "0.51460254", "0.51318425", "0.5125999", "0.512516", "0.5124456", "0.5112529", "0.5109418", "0.5107764", "0.51067936", "0.51060426" ]
0.7274811
0
repace or add fragment
public void setCurrentFragment(Fragment fragment, boolean toAdd, boolean addToBackStack, int enterAnim, int exitAnim, int popEnterAnim, int popExitAnim, boolean clearBackStack) { replaceContentFragment(getSupportFragmentManager(), fragment, toAdd, R.id.fragmentFrameContainer, enterAnim, exitAnim, popEnterAnim, popExitAnim, addToBackStack); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void fragment(String fragment);", "void fragment(String fragment);", "private void addFragments() {\n\n Fragment f = SideFilterFragment.newInstance();\n getFragmentManager().beginTransaction().replace(R.id.side_filter_container, f).commit();\n }", "public void insert(int index, String fragment);", "public void append(String fragment);", "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}", "public void switchToAddFragment() {\n FragmentManager manager = getSupportFragmentManager();\n manager.beginTransaction().replace(R.id.fragment_container, new AddActivity()).commit();\n }", "private void addBaseFragment(Fragment fragment) {\n\n if (mFragmentManager == null)\n mFragmentManager = getSupportFragmentManager();\n\n FragmentTransaction mFragmentTransaction = mFragmentManager.beginTransaction();\n mFragmentTransaction.replace(R.id.content_frame, fragment, fragment.getClass().getSimpleName().toString()).commit();\n\n }", "public void createFragment() {\n\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 }", "public void addFragment(Fragment fragment) {\n\n if (mFragmentManager == null)\n mFragmentManager = getSupportFragmentManager();\n\n mFragmentManager.beginTransaction()\n .replace(R.id.content_frame, fragment, fragment.getClass().getSimpleName().toString())\n .addToBackStack(fragment.getClass().getSimpleName().toString())\n .commit();\n }", "private void add() {\n\t\tlist = new ArrayList<Fragment>();\n\t\tlist.add(new HomeFragment());\n\t\tlist.add(new MenuFragment());\n\t\tlist.add(new FriendsFragment());\n\t\tlist.add(new MineFragment());\n\t}", "@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 }", "public void addFragment(Fragment frag, String title){\n fragments.add(frag);\n titles.add(title);\n }", "public void addContentFragment(Fragment fragment) {\n FragmentTransaction ft = mFragmentManager.beginTransaction();\n Fragment currentContentFragment = mFragmentManager.findFragmentById(mContentViewId);\n int backStackCount = mFragmentManager.getBackStackEntryCount();\n ft.addToBackStack(FRAGMENT_TAG + \"_\" + backStackCount);\n ft.setCustomAnimations(R.anim.slide_in_right, R.anim.slide_out_left, R.anim.slide_in_left, R.anim.slide_out_right);\n // Manually increase the current fragment back stack count.\n ft.add(mContentViewId, fragment, FRAGMENT_TAG + \"_\" + (backStackCount + 1));\n ft.hide(currentContentFragment);\n ft.commit();\n }", "@Override\n public void onClick(View view) {\n\n Fragment fragment1 = getSupportFragmentManager().findFragmentByTag(fragment1Tag);\n if(fragment1 == null) {\n fragment1 = new IngrediantFragment();\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fram1, fragment1,fragment1Tag)\n .commit();\n }\n else\n Toast.makeText(getApplicationContext(),\"fragment = null\",Toast.LENGTH_LONG).show();\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 }", "protected void replaceFragment(Fragment fragment, String id, int resId) {\n getSupportFragmentManager()\n .beginTransaction()\n .add(resId, fragment, id)\n .addToBackStack(id)\n .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 }", "@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 }", "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 }", "protected abstract Fragment createFragment();", "protected void addFragment(@IdRes int resId, Fragment fragment, @Nullable @StringRes int tag) {\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n fragmentTransaction.add(resId, new HomeFragment(), tag == 0 ? null : getString(tag));\n fragmentTransaction.commit();\n }", "public void addFrag(Fragment fragment, String title) {\n mFragmentList.add(fragment);\n mFragmentTitleList.add(title);\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 }", "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\r\n\t\tprotected String doInBackground(Void... params) {\n\t\t\taddmainfragment.insert();//可加个boolean值,做判断\r\n\t\t\treturn null;\r\n\t\t}", "private void startAddBookFragment() {\n if (this.menu != null) {\n this.menu.findItem(R.id.menu_search).setVisible(false);\n this.menu.findItem(R.id.add_book).setVisible(false);\n }\n\n // Create new fragment and transaction\n AddBookFragment addBookFragment = new AddBookFragment();\n\n // consider using Java coding conventions (upper first char class names!!!)\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.activityAfterLoginId, addBookFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n\n }", "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 }", "@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 }", "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 }", "private void addFragments() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\tFragmentTransaction ft = fm.beginTransaction();\n\t\tif (onLargeScreen) {\n\t\t\tlessonListFragment = new LessonListFragment();\n\t\t\tft.add(R.id.fragmentContainer, lessonListFragment, MASTER_CONTAINER)\n\t\t\t\t\t.addToBackStack(null);\n\t\t} else { // else small screen\n\t\t\tft.add(R.id.fragmentContainer, getLessonFragment(), MASTER_CONTAINER)\n\t\t\t\t\t.addToBackStack(null);\n\t\t}\n\t\tft.commit();\n\t}", "private void startFragmentDescription(String oldDescription) {\n FragmentDescription nextFrag = new FragmentDescription();\n Bundle bundle = new Bundle();\n bundle.putInt(\"Tab\", mTab);\n bundle.putString(\"Description\", oldDescription);\n bundle.putSerializable(\"Callback\", this);\n nextFrag.setArguments(bundle);\n mActivity.addFragment(mTab, mContainerViewId, nextFrag, FragmentDescription.Tag, true);\n }", "public void goAddFriends (View view){\n Fragment newFragment = new AddFriendsFragment();\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.fragment_container, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n\n }", "private void initFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.contentFrame, fragment);\n transaction.commit();\n }", "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 }", "protected void initFragment(Fragment fragment, String id, int resId) {\n getSupportFragmentManager()\n .beginTransaction()\n .add(resId, fragment, id)\n .addToBackStack(null)\n .commit();\n }", "private void loadFragment(Fragment fragment, String tag, int containerId) {\r\n\r\n fragmentManager = getSupportFragmentManager();\r\n\r\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\r\n\r\n // delete previous instant message fragment if exist, before adding new\r\n // one\r\n Fragment previousInstanceOfTheFragment = fragmentManager\r\n .findFragmentByTag(tag);\r\n\r\n if (previousInstanceOfTheFragment != null) {\r\n fragmentTransaction.remove(previousInstanceOfTheFragment);\r\n }\r\n\r\n fragmentTransaction.add(containerId, fragment, tag);\r\n fragmentTransaction.commit();\r\n }", "private void updateFragment() {\n Fragment fragment = getSupportFragmentManager().findFragmentByTag(CURRENT_FRAGMENT);\n if (fragment != null) {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.detach(fragment).attach(fragment).commit();\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 }", "public void addFragment(Fragment fragmentPage) {\n fragmentList.add(fragmentPage);\n }", "public void replaceFragment1(Fragment destFragment)\n {\n FragmentManager fragmentManager = this.getSupportFragmentManager();\n\n // Begin Fragment transaction.\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n // Replace the layout holder with the required Fragment object.\n fragmentTransaction.replace(R.id.UpcomingFrame, destFragment);\n\n // Commit the Fragment replace action.\n fragmentTransaction.commit();\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n insertNestedFragment(position);\n }", "protected void pushFragment(Fragment fragment){\n\n if(fragment == null)\n return;\n\n android.app.FragmentManager fragmentManager = getFragmentManager();\n\n if(fragmentManager != null){\n android.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n if(fragmentTransaction != null){\n //vacio hace referencia al id de la pantalla de bienvenida\n //fragmentTransaction.replace(R.id.vacio, fragment);\n //fragmentTransaction.commit();\n fragmentManager.beginTransaction().replace(R.id.vacio, fragment).addToBackStack(null).commit();\n }\n }\n\n }", "private void setFragment(Fragment fragment, String tag){\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n //fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n //fragmentTransaction.add(R.id.content, fragment, tag);\n fragmentTransaction.replace(R.id.content, fragment);\n fragmentTransaction.commit();\n }", "private void replaceFragment(int pos) {\n Fragment fragment = null;\n switch (pos) {\n case 0:\n Intent intent = new Intent(GestioneViaggioGalleriaActivity.this, MainActivity.class);\n startActivity(intent);\n break;\n case 1:\n Intent intent_creaViaggio = new Intent(GestioneViaggioGalleriaActivity.this, CreaIlTuoViaggioActivity.class);\n startActivity(intent_creaViaggio);\n break;\n case 2:\n Intent intent_viaggi = new Intent(GestioneViaggioGalleriaActivity.this, ProfiloViaggiActivity.class);\n intent_viaggi.putExtra(\"viaggio\", \"viaggio\");\n startActivity(intent_viaggi);\n break;\n case 3:\n Intent intent_preferiti = new Intent(GestioneViaggioGalleriaActivity.this, ProfiloViaggiActivity.class);\n intent_preferiti.putExtra(\"preferiti\", \"preferiti\");\n startActivity(intent_preferiti);\n break;\n case 4:\n Intent intent_impostazioni = new Intent(GestioneViaggioGalleriaActivity.this, SettingsActivity.class);\n startActivity(intent_impostazioni);\n break;\n case 5: new android.support.v7.app.AlertDialog.Builder(GestioneViaggioGalleriaActivity.this)\n .setTitle(\"Let's go\")\n .setMessage(\"Questa applicazione è stata creata da: \" +\n \"Alessandro Barlocco, Annalisa Bovone, Paola Silvestre\")\n .setPositiveButton(\"ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .setIcon(R.drawable.logo_pani_piccolo)\n .show();\n break;\n default:\n break;\n }\n\n if (fragment != null) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.activity_main, fragment);\n transaction.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 }", "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 android.app.Fragment onjF = null;\n onjF = new BlankFragment();\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.fragment,onjF).commit();\n }", "public void addFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.add(R.id.fragment_container, fragment);\n fragmentTransaction.commit();\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 void refreshFragment() {\n }", "@Override\r\n public void changeFragment() {\r\n fm.beginTransaction()\r\n .replace(R.id.fragmentContainer, new ListWonderFragment())\r\n .commit();\r\n }", "void switchToFragment(Fragment newFrag) {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment, newFrag)\n .addToBackStack(null)\n .commit();\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 }", "public void addFragment(Fragment fragment, String title) {\n fragments.add(fragment);\n fragmentTitles.add(title);\n }", "private void inflateFragment(int frameID, boolean isAddProperty){\n mAddPropertyFragment = new AddPropertyFragment();\n Bundle bundle = new Bundle();\n bundle.putBoolean(\"isAddProperty\", isAddProperty);\n mAddPropertyFragment.setArguments(bundle);\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.replace(frameID, mAddPropertyFragment); // Set fragment transaction into ***frame_layout_detail***\n transaction.addToBackStack(null);\n transaction.commit();\n }", "private void insertNestedFragment(int position) {\n FragmentTransaction transaction = getChildFragmentManager().beginTransaction();\n transaction.replace(R.id.fragment_pager_view_container, getFragmentForPosition(position)).commit();\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 setupFragment(Bundle savedInstanceState) {\n if (findViewById(R.id.fl_caller) != null) {\n // However, if we're being restored from a previous state,\n // then we don't need to do anything and should return or else\n // we could end up with overlapping fragments.\n if (savedInstanceState != null) {\n return;\n }\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fl_caller, getActiveFragment())\n .commit();\n }\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 attachFragment(String tag){\n floatingActionButton.hide();\n if (tag == null){\n return;\n }\n\n cache.setFragmentTAG(tag);\n fragmentTAG = tag;\n fragment = SelectDataTypeFragment.newInstance(tag);\n\n makeFragmentAttach();\n\n pageTitle = getString(utils.getPageTitleID(fragmentTAG));\n setPageTitle();\n }", "public void cargarFragment (Fragment fragment, String tag){\r\n FragmentManager manager = getSupportFragmentManager();\r\n // Consigo el fragment que esta actualmente en el contenedor, puede ser null\r\n Fragment fragmentContenedor = manager.findFragmentById(R.id.contenedorFragmentsAparatos);\r\n //Si esta vacio o es diferente al que esta en el contenedor\r\n if(fragmentContenedor == null || fragmentContenedor.getTag() != tag ){\r\n FragmentTransaction transaction = manager.beginTransaction();\r\n transaction.replace(R.id.contenedorFragmentsAparatos, fragment);\r\n //TODO -- chequear que no falta data en el if\r\n if(fragmentContenedor != null ){\r\n transaction.addToBackStack(null);\r\n }\r\n transaction.commit();\r\n }\r\n\r\n\r\n }", "public void fragmentationOccured(ByteBufferWithInfo newFragment) {}", "public void addFragment(Fragment fragment, boolean addToBackStack, String tag) {\n FragmentManager manager = getSupportFragmentManager();\n FragmentTransaction ft = manager.beginTransaction();\n\n if (addToBackStack) {\n ft.addToBackStack(tag);\n }\n ft.replace(R.id.container_frame, fragment, tag);\n ft.commitAllowingStateLoss();\n }", "private void loadFragment(Fragment frag) {\n if (frag instanceof ConnectionsFragment) {\n String tag = getString(R.string.keys_fragment_connections);\n\n android.support.v4.app.FragmentTransaction transaction = getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.homeFragmentContainer, frag, tag);\n transaction.commit();\n } else {\n\n android.support.v4.app.FragmentTransaction transaction = getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.homeFragmentContainer, frag);\n transaction.commit();\n }\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 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 interface FragmentCallback {\n void addFragment(int container, Class fragment, Bundle params);\n}", "public void a(String str) {\n Fragment newInstance;\n boolean z = true;\n if (this.b != null && !TextUtils.isEmpty(str)) {\n if (str.equals(\"mol_pin\")) {\n newInstance = APRegionMolpinFragment.newInstance(str, APPayMananger.singleton().getCurBaseRequest().country, APPayMananger.singleton().getCurBaseRequest().currency_type);\n } else if (str.equals(\"fortumo\")) {\n newInstance = APRegionFortumoFragment.newInstance(str, APPayMananger.singleton().getCurBaseRequest().country, APPayMananger.singleton().getCurBaseRequest().currency_type);\n } else {\n if (this.b.size() != 1) {\n z = false;\n }\n newInstance = APRegionGridContentFragment.newInstance(str, z);\n }\n FragmentTransaction beginTransaction = getSupportFragmentManager().beginTransaction();\n beginTransaction.replace(APCommMethod.getId(this, \"unipay_id_mainContent\"), newInstance);\n beginTransaction.commit();\n }\n }", "public void addFragment(Fragment fragment, boolean addToBackStack, String tag){\r\n FragmentManager manager = getSupportFragmentManager();\r\n FragmentTransaction ft = manager.beginTransaction();\r\n\r\n if (addToBackStack) {\r\n ft.addToBackStack(tag);\r\n }\r\n ft.replace(R.id.container_frame_back, fragment, tag);\r\n ft.commitAllowingStateLoss();\r\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 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 replaceFragment(int id_content, Fragment fragment) {\r\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\r\n transaction.replace(id_content, fragment);\r\n transaction.commit();\r\n }", "public void setBaseFragment(Fragment fragment) {\n FragmentTransaction ft = mFragmentManager.beginTransaction();\n ft.add(mContentViewId, fragment, FRAGMENT_TAG + \"_\" + mFragmentManager.getBackStackEntryCount());\n ft.commit();\n }", "public void loadNewFragment(Fragment newFragment , boolean isCloseFragment, boolean isFirstFragment){\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.replace(R.id.frame_layout, newFragment);\n if(!isFirstFragment){\n if(isCloseFragment){\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_CLOSE);\n }else{\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n }\n }\n ft.addToBackStack(null);\n ft.commit();\n }", "@Override\r\n\tpublic void onFragmentStart() {\n\t}", "private void setFragmentMovie(Fragment fragmentMovie){\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.frame_fav, fragmentMovie)\n .addToBackStack(null)\n .commit();\n }", "private void addFragments(JSONArray jArr, boolean addOrRemove) throws JSONException {\n fragsToInstantiate = 0;\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container,\n new APIGetFragment()).commit();\n\n ArrayList<DescriptionFragment> FRAGMENTS = new ArrayList<>();\n\n\n // iterate through all retrieved data to add object values into fragment\n for (int i = 0; i < jArr.length(); i++) {\n JSONObject json = jArr.getJSONObject(i);\n Iterator<String> keys = json.keys();\n\n while (keys.hasNext()) {\n String key = keys.next();\n if(VV)System.out.println(\"Key :\" + key + \" Value :\" + json.get(key));\n if(VV)System.out.println(json.getString(key));\n sName = json.getString(key);\n key = keys.next();\n sType = json.getString(key);\n key = keys.next();\n sDescription = json.getString(key);\n key = keys.next();\n sWiki = json.getString(key);\n if(keys.hasNext()){\n key = keys.next();\n sYoutube = json.getString(key);}\n FRAGMENTS.add(DescriptionFragment.newInstance(sName, sType, sDescription, sWiki, sYoutube, addOrRemove));\n fragsToInstantiate += 1;\n break;\n }\n }\n\n if(fragsToInstantiate == 0){\n FRAGMENTS.add(DescriptionFragment.newInstance(\"\", \"\", \"No Items Returned\", \"\", \"\", addOrRemove));\n fragmentTransaction.add(R.id.item0, FRAGMENTS.get(0));\n }\n\n /**\n * Iterate through retrieved fragments and add fragments into fragment manager\n * API returns a maximum 20 items\n */\n for(int i = 0; i < fragsToInstantiate; i++) {\n switch(i){\n case 0:\n fragmentTransaction.add(R.id.item0, FRAGMENTS.get(i));\n break;\n case 1:\n fragmentTransaction.add(R.id.item1, FRAGMENTS.get(i));\n break;\n case 2:\n fragmentTransaction.add(R.id.item2, FRAGMENTS.get(i));\n break;\n case 3:\n fragmentTransaction.add(R.id.item3, FRAGMENTS.get(i));\n break;\n case 4:\n fragmentTransaction.add(R.id.item4, FRAGMENTS.get(i));\n break;\n case 5:\n fragmentTransaction.add(R.id.item5, FRAGMENTS.get(i));\n break;\n case 6:\n fragmentTransaction.add(R.id.item6, FRAGMENTS.get(i));\n break;\n case 7:\n fragmentTransaction.add(R.id.item7, FRAGMENTS.get(i));\n break;\n case 8:\n fragmentTransaction.add(R.id.item8, FRAGMENTS.get(i));\n break;\n case 9:\n fragmentTransaction.add(R.id.item9, FRAGMENTS.get(i));\n break;\n case 10:\n fragmentTransaction.add(R.id.item10, FRAGMENTS.get(i));\n break;\n case 11:\n fragmentTransaction.add(R.id.item11, FRAGMENTS.get(i));\n break;\n case 12:\n fragmentTransaction.add(R.id.item12, FRAGMENTS.get(i));\n break;\n case 13:\n fragmentTransaction.add(R.id.item13, FRAGMENTS.get(i));\n break;\n case 14:\n fragmentTransaction.add(R.id.item14, FRAGMENTS.get(i));\n break;\n case 15:\n fragmentTransaction.add(R.id.item15, FRAGMENTS.get(i));\n break;\n case 16:\n fragmentTransaction.add(R.id.item16, FRAGMENTS.get(i));\n break;\n case 17:\n fragmentTransaction.add(R.id.item17, FRAGMENTS.get(i));\n break;\n case 18:\n fragmentTransaction.add(R.id.item18, FRAGMENTS.get(i));\n break;\n case 19:\n fragmentTransaction.add(R.id.item19, FRAGMENTS.get(i));\n break;\n }\n }\n fragmentTransaction.commit();\n }", "private void setFragment(Fragment fragment) {\n Log.d(\"setFragments\", \"setFragments: start\");\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Log.d(\"setFragments\", \"setFragments: begin\");\n Fragment hideFragment = getLast();\n fragmentTransaction.hide(hideFragment);\n fragmentTransaction.show(fragment);\n if (userHomeFragment.equals(fragment)) {\n lastFragment = \"userHomeFragment\";\n } else if (scheduleFragment.equals(fragment)) {\n lastFragment = \"scheduleFragment\";\n } else if (medicineFragment.equals(fragment)) {\n lastFragment = \"medicineFragment\";\n } else {\n lastFragment = \"calendarFragment\";\n }\n fragmentTransaction.commit();\n }", "@Override\n public void onResultViewFinished() {\n MainFragment mainFragment = new MainFragment();\n\n createTransactionAndReplaceFragment(mainFragment, getString(R.string.frg_tag_main));\n }", "public void replaceFragment(Fragment destFragment)\n {\n FragmentManager fragmentManager = this.getSupportFragmentManager();\n\n // Begin Fragment transaction.\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n // Replace the layout holder with the required Fragment object.\n fragmentTransaction.replace(R.id.content_frame, destFragment);\n\n // Commit the Fragment replace action.\n fragmentTransaction.addToBackStack(null).commit();\n }", "private void updateCurrentFragment(Fragment newFragment, String tag) {\n FragmentTransaction ft = fm.beginTransaction();\n\n // remove current fragment\n if (currentFragment != null) {\n ft.remove(currentFragment);\n }\n\n // set, add and commit new fragment\n currentFragment = newFragment;\n ft.add(currentFragment, tag).commit();\n }", "@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 }", "public void MapFragment() {}", "protected abstract void injectFragment(FragmentComponent fragmentComponent);", "@Override\n protected Fragment setFragment() {\n Bundle extras = getIntent().getExtras();\n String photoUrl = extras.getString(EXTRA_URL_PHOTO, \"https://www.flickr.com/images/buddyicon.gif\");\n String photoId = extras.getString(EXTRA_PHOTO_ID);\n String photoUrlNoSecret = extras.getString(EXTRA_URL_PHOTO_NO_SECRET);\n String photoUrlLarge = extras.getString(EXTRA_URL_PHOTO_LARGE);\n\n return PhotoFragment.newInstance(photoUrl, photoId, photoUrlNoSecret, photoUrlLarge);\n }", "@Override\n public void ChangeFragment(int id) {\n Fragment mFragment = null;\n if (id == 0) {\n mFragment = new RegisterFragment().newInstance();\n } else if (id == 1) {\n mFragment = new ForgotPasswordFragment().newInstance();\n }\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.first_frag_holder, mFragment)\n .commit();\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_layout, 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 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 }", "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 setFragment(Fragment fragments) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.framelayout,fragments);\n fragmentTransaction.commit();\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 }", "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 }", "@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 }", "private void setupFragments() {\n FragmentManager fm = getSupportFragmentManager();\n sb_frag = (StatusBar)fm.findFragmentById(R.id.statusmarket);\n\n if(sb_frag == null)\n {\n sb_frag = new StatusBar();\n fm.beginTransaction().add(R.id.statusmarket, sb_frag).commit();\n }\n sb_frag.setupInitial(currentPlayer);\n\n ai_frag = (AreaInfo) fm.findFragmentById(R.id.overviewlayout);\n\n //try find the fragment, if it doesnt exist then create it\n if (ai_frag == null) {\n //create the fragment if not exist\n ai_frag = new AreaInfo();\n fm.beginTransaction().add(R.id.overviewlayout, ai_frag).commit();\n }\n\n ai_frag.setCurrentArea(null);\n\n\n\n\n }", "public 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 setLastFragment() {\n Log.d(\"setLastFragments\", \"setLastFragments: start\");\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Log.d(\"setLastFragments\", \"setLastFragments: begin\");\n Fragment showFragment = getLast();\n fragmentTransaction.show(showFragment);\n Log.d(\"setLastFragments\", \"setLastFragments: show\");\n fragmentTransaction.commit();\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public void replace(int start, int end, String fragment);" ]
[ "0.71182245", "0.71182245", "0.68694806", "0.6861756", "0.6847571", "0.68208367", "0.6789593", "0.6774213", "0.6727752", "0.6595742", "0.6573383", "0.6567912", "0.6532175", "0.6506157", "0.6477049", "0.6461131", "0.6447214", "0.6430974", "0.64296997", "0.63976127", "0.6386239", "0.6372372", "0.63639647", "0.63553935", "0.63327277", "0.632226", "0.6317215", "0.63023645", "0.6247557", "0.62421024", "0.62359065", "0.6220139", "0.62195766", "0.62127674", "0.6207658", "0.62039834", "0.6199117", "0.6192689", "0.61752045", "0.6165551", "0.6157085", "0.6141443", "0.6134919", "0.6133963", "0.6132776", "0.61193424", "0.61167055", "0.60961056", "0.60732466", "0.6060464", "0.6049246", "0.6034079", "0.6021646", "0.5993129", "0.59879696", "0.5981797", "0.5979025", "0.5961497", "0.59539926", "0.5953979", "0.59531265", "0.59490544", "0.59465146", "0.59358114", "0.5931916", "0.5930017", "0.592257", "0.59162694", "0.5915428", "0.5914527", "0.59109956", "0.5902115", "0.59009284", "0.58982944", "0.5893921", "0.5893807", "0.5893744", "0.5892751", "0.58780414", "0.5869704", "0.58496594", "0.58447504", "0.5843061", "0.5842569", "0.5840777", "0.58365804", "0.5832818", "0.5832722", "0.5825036", "0.5822119", "0.5821079", "0.58191836", "0.58183753", "0.5815999", "0.58141035", "0.5812055", "0.5805474", "0.58009374", "0.58004844", "0.57960737", "0.57931226" ]
0.0
-1
Sets the String id of the Post that this Comment is for.
public void setPostId(Post postId) { put(KEY_POST_ID, postId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPostId(int postId);", "public void setPostId(long postId);", "public void setPostId(Integer postId) {\n this.postId = postId;\n }", "public void setPostId(int postId) {\r\n\t\tthis.postId = postId;\r\n\t}", "public void setPostId(int postId) {\n\t\tthis.postId = postId;\n\t}", "@Override\n\tpublic void set(int id, Post entity) {\n\t\t\n\t}", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(String id) {\n mId = id;\n }", "public void setCommentId(int commentId);", "public void setId (String id)\n {\n _id = id;\n }", "public void setId(String id)\n {\n data().put(_ID, id);\n }", "public void setId(String id) {\n _id = id;\n }", "public void setId (String id) {\n this.id = id;\n }", "public void setId (String id) {\n this.id = id;\n }", "public void setId (String id) {\n this.id = id;\n }", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id){\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id) {\n this.id = id;\n }", "public void setId(ID id)\n {\n this.id = id;\n }", "public void setId(String id)\n {\n this.id = id;\n }", "public void setId(String id) {\r\n this.id = id;\r\n }", "public void setId(String id) {\r\n this.id = id;\r\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n if (this.id == null) {\n this.id = id;\n }\n }", "void setId(int id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId(String id) {\n this.id = id;\n }", "public void setId( final String id )\r\n {\r\n this.id = id;\r\n }", "public void setId(final String id);", "public void setId(final String id);", "void setId(final String id);", "public void setId(int id) {\n if (id != Mote.INVALID_ID) {\n moteId.setText(String.valueOf(id));\n }\n else {\n moteId.setText(\"\");\n }\n }", "public void setId(String idIn) {\n this.id = idIn;\n }", "public void setId(java.lang.String id) {\r\n this.id = id;\r\n }", "public void setId(java.lang.String id) {\r\n this.id = id;\r\n }", "public void setId(java.lang.String id) {\r\n this.id = id;\r\n }", "public void setId(int id)\n {\n this.id = id;\n }", "public void setId(int id)\n {\n this.id = id;\n }", "public void setId(java.lang.String id) {\n this.id = id;\n }", "public void setId(java.lang.String id) {\n this.id = id;\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n this.id = id;\r\n }", "public void setId(int id)\r\n {\r\n this.mId = id;\r\n }", "public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}", "protected void setId(final String id) {\r\n\t\tthis.id = id;\r\n\t}", "protected void setId(String id) {\r\n assert id != null;\r\n\r\n this.id = id;\r\n }", "public int getPostId() {\r\n\t\treturn postId;\r\n\t}", "public void setId(String id)\n\t{\n\t\tthis.id = id;\n\t}", "void setId(java.lang.String id);", "public void setId(String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(String id) {\n\t\t_id = id;\n\t}", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }", "public void setId(int id) {\n this.id = id;\n }" ]
[ "0.74239415", "0.6992483", "0.6783548", "0.6666096", "0.66117984", "0.657193", "0.64541316", "0.64541316", "0.63597584", "0.63549405", "0.6353907", "0.6296821", "0.62790745", "0.62635297", "0.6239764", "0.6239764", "0.6236815", "0.6231541", "0.62285095", "0.62210715", "0.6220923", "0.6208919", "0.61963177", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.61938524", "0.6191088", "0.61887014", "0.61860466", "0.61860466", "0.61860466", "0.61860466", "0.61860466", "0.61860466", "0.618576", "0.6179399", "0.6179399", "0.61605066", "0.61593693", "0.61522114", "0.6151241", "0.6151241", "0.6151241", "0.61448836", "0.61448836", "0.61422676", "0.61422676", "0.61393726", "0.61393726", "0.61393726", "0.61393726", "0.6139364", "0.6139003", "0.61360365", "0.6134885", "0.6131534", "0.6131496", "0.61295265", "0.61249584", "0.61249584", "0.61249584", "0.61249584", "0.61214525", "0.61162674", "0.61162674", "0.61162674", "0.61162674", "0.61162674", "0.61162674" ]
0.71804065
1
Returns a list of all nodes in this graph, ordered by the ascending Z depth.
public List<SpriteGraphNodeInstance> getZOrderedFlatList(Comparator<SpriteGraphNodeInstance> comparator) { if (!mOrdered) { mFlatNodes.sort(comparator); mOrdered = true; } return mFlatNodes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Node> getNodes() {\n List<Node> list = getNodes(false, false);\n return list;\n }", "List<Node> getNodes();", "public List<Node> getNodes();", "public List<INode> getAllNodes();", "public Set<Node<E>> getNodes(){\n return nodes.keySet();\n }", "public Set<String> getAllNodes() {\n return this.graph.keySet();\n }", "public List<Node> getAllNodes() {\n return nodeRepository.findAll();\n }", "List<Node> nodes();", "Collection<Node> allNodes();", "public List<Node<T>> getNodesCollection() {\n if (root == null) {\n return new ArrayList<>();\n }\n\n ArrayList<Node<T>> nodesCollection = new ArrayList<>();\n\n Queue<Node<T>> pendingNodes = new ArrayDeque<>();\n pendingNodes.add(root);\n\n while (pendingNodes.size() > 0) {\n Node<T> currNode = pendingNodes.poll();\n nodesCollection.add(currNode);\n\n for (Node<T> child : currNode.getChildren()) {\n pendingNodes.add(child);\n }\n }\n\n return nodesCollection;\n }", "java.util.List<entities.Torrent.NodeId>\n getNodesList();", "@Override\n public abstract Collection<? extends GraphNode<N, E>> getNodes();", "public List<TbNode> getAll() {\n return qureyNodeList(new NodeParam());\n }", "public Collection<GraphNode> getGraphNodes() {\n\t\treturn graphNodeMap.values();\n\t}", "protected List topologicalSort() {\r\n LinkedList order = new LinkedList();\r\n HashSet knownNodes = new HashSet();\r\n LinkedList nextNodes = new LinkedList();\r\n\r\n for (Iterator i = graph.getNodes().iterator(); i.hasNext(); ) {\r\n BBNNode node = (BBNNode) i.next();\r\n if (node.getChildren().size() == 0) {\r\n nextNodes.addAll(node.getParents());\r\n knownNodes.add(node);\r\n order.addFirst(node);\r\n }\r\n }\r\n\r\n while (nextNodes.size() > 0) {\r\n BBNNode node = (BBNNode) nextNodes.removeFirst();\r\n if (knownNodes.contains(node)) continue;\r\n\r\n List children = node.getChildren();\r\n if (knownNodes.containsAll(children)) {\r\n order.addFirst(node);\r\n nextNodes.addAll(node.getParents());\r\n knownNodes.add(node);\r\n }\r\n }\r\n return order;\r\n }", "public List<Nodes> getNodes() {\n return nodes;\n }", "public List<Node> toList() {\n return tree.toList();\n }", "@Override\n\tpublic synchronized Set<PetrinetNode> getNodes() {\n\t\tSet<PetrinetNode> nodes = new HashSet<PetrinetNode>();\n\t\tnodes.addAll(this.transitions);\n\t\tnodes.addAll(this.places);\n\t\treturn nodes;\n\t}", "public List<OSMNode> nodes() {\n return nodes;\n }", "public Vector<Node> getNodes(){\n\t\treturn this.listOfNodes;\n\t}", "@Override\n public ArrayList<Node> getAllNodes() {\n return getAllNodesRecursive(root);\n\n }", "public Node[] getNodes()\r\n {\r\n if(nodes == null)\r\n\t{\r\n\t nodes = new Node[numNodes()];\r\n\t int i = 0;\r\n\t for (final NodeTypeHolder nt : ntMap.values())\r\n\t\tfor (final Node node : nt.getNodes())\r\n\t\t nodes[i++] = node;\r\n\t}\r\n return nodes.clone();\r\n }", "@Override\n public Collection<? extends INode> getNodes() {\n\n return new LinkedList<>(Collections.unmodifiableCollection(this.nodeMap\n .values()));\n }", "public MyArrayList<Node> getNodes() {\n return this.nodes;\n }", "public ArrayList<GraphNode> getNodes() {\n return selectedNodes;\n }", "public List<Long> depthTraverse(){\n return depthTraverseGen(null);\n }", "java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();", "public Node[] getNodes() {\n\t\treturn nodes;\n\t}", "public HashSet<Node> getNodes(){\n\t\t\n\t\t//Return nodes hashset\n\t\treturn this.nodes;\n\t\t\n\t}", "public Collection<LazyNode2> getVertices() {\n List<LazyNode2> l = new ArrayList();\n \n for(Path p : getActiveTraverser())\n //TODO: Add cache clearing\n l.add(new LazyNode2(p.endNode().getId()));\n \n return l;\n }", "public List<Node> getAll() throws SQLException {\n var nodes = new ArrayList<Node>();\n var statement = connection.createStatement();\n var result = statement.executeQuery(\"SELECT identifier, x, y, parentx, parenty, status, owner, description FROM nodes\");\n while (result.next()) {\n nodes.add(\n new Node(\n result.getInt(\"identifier\"),\n result.getInt(\"x\"),\n result.getInt(\"y\"),\n result.getInt(\"parentx\"),\n result.getInt(\"parenty\"),\n result.getString(\"status\"),\n result.getString(\"owner\"),\n result.getString(\"description\")\n )\n );\n }\n result.close();\n statement.close();\n return nodes;\n }", "public List<T> levelorder() {\n ArrayList<T> list = new ArrayList<T>();\n Queue<BSTNode<T>> queue = new LinkedList<>();\n if (root != null) {\n queue.add(root);\n levelorderHelper(list, queue);\n }\n return list;\n }", "public static Collection<SxpNode> getNodes() {\n return Collections.unmodifiableCollection(NODES.values());\n }", "public LinkedList<AbstractNode> getNodes() {\n\t\treturn nodes;\n\t}", "Iterable<Long> vertices() {\n return nodes.keySet();\n }", "public Iterable<K> levelOrder() {\n Queue<K> keys = new Queue<>();\n Queue<Node> queue = new Queue<>();\n queue.enqueue(root);\n while (!queue.isEmpty()) {\n Node x = queue.dequeue();\n if (x == null) continue;\n keys.enqueue(x.key);\n queue.enqueue(x.left);\n queue.enqueue(x.right);\n }\n return keys;\n }", "public ArrayList<Node> getListNodes(){\r\n return listNodes;\r\n }", "public ArrayList<Node> getList(){\n \treturn this.children;\n }", "private List<Node> getNodes() {\n List<Node> nodes = new ArrayList<Node>();\n NodeApi.GetConnectedNodesResult rawNodes =\n Wearable.NodeApi.getConnectedNodes(mGoogleApiClient).await();\n for (Node node : rawNodes.getNodes()) {\n nodes.add(node);\n }\n return nodes;\n }", "public List<Node> getNodes()\t{return Collections.unmodifiableList(nodes);}", "public List<OSMNode> nonRepeatingNodes() {\n if (isClosed()) {\n return nodes.subList(0, nodes.size() - 1);\n } else {\n return nodes;\n }\n }", "public Nodes nodes() {\n return this.nodes;\n }", "public Set<DefaultGraphCell> getNodes() {\n return nodes;\n }", "@java.lang.Override\n public java.util.List<entities.Torrent.NodeId> getNodesList() {\n return nodes_;\n }", "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 Iterable<Integer> levelOrder() {\n\t\tLinkedList<Integer> keys = new LinkedList<Integer>();\n\t\tLinkedList<Node> queue = new LinkedList<Node>();\n\t\tqueue.add(root);\n\t\twhile (!queue.isEmpty()) {\n\t\t\tNode n = queue.remove();\n\t\t\tif (n == null) continue;\n\t\t\tkeys.add(n.key);\n\t\t\tqueue.add(n.left);\n\t\t\tqueue.add(n.right);\n\t\t}\n\t\treturn keys;\n\t}", "protected ArrayList<AStarNode> getNodes() {\n return nodes;\n }", "public Iterable<Integer> levelOrder() {\n Queue<Integer> keys = new Queue<Integer>();\n Queue<TreeNode> queue = new Queue<TreeNode>();\n queue.enqueue(root);\n while (!queue.isEmpty()) {\n TreeNode x = queue.dequeue();\n if (x == null) {\n\t\t\t\t/* -1 stands for null node. */\n\t\t\t\tkeys.enqueue(-1);\n\t\t\t\tcontinue;\n\t\t\t}\n keys.enqueue(x.val);\n queue.enqueue(x.left);\n queue.enqueue(x.right);\n }\n return keys;\n }", "public Collection<Node> getNodeList(){\r\n return nodesMap.values();\r\n }", "protected abstract Node[] getAllNodes();", "public List<Node<E>> depthFirst(Node<E> start){\n\n //set that will contain visited nodes\n HashSet<Node<E>> visited = new HashSet<>();\n\n // resulting nodes\n List<Node<E>> result = new ArrayList<>();\n\n //stack for traversal\n Stack<Node<E>> nodeList = new Stack<>();\n //check if the node exists in the graph\n\n if(start == null){\n throw new IllegalArgumentException(\"Node cannot be null\");\n }\n\n if(nodes.containsKey(start)){\n nodeList.push(start);\n visited.add(start);\n result.add(start);\n } else{\n throw new IllegalArgumentException(\"Node is not in the graph\");\n }\n\n //traverse through the queue\n while(!nodeList.isEmpty()){\n Node<E> curNode = nodeList.pop();\n\n //check if the node has been visited, if not add to the result\n if(!visited.contains(curNode)){\n result.add(curNode);\n }\n\n //add the node to visited\n visited.add(curNode);\n //get all the neighbors of the node and add to the stack\n nodes.get(curNode).forEach( neighbor -> {\n if(!visited.contains(neighbor)) {\n nodeList.push(neighbor);\n }\n });\n\n }\n\n return result;\n }", "public Map<String, Node> nodes() {\n return this.nodes;\n }", "java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList();", "@Override\n\tpublic List<N> getNodeList()\n\t{\n\t\treturn new ArrayList<N>(nodeList);\n\t}", "public List<GraphNode> getGraphNodesDFS(GraphNode root){\n List<GraphNode> graphNodeList = new ArrayList<>();\n depthFirstTraversal(root, graphNodeList);\n return graphNodeList;\n }", "java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> \n getNodeList();", "public HashMap<Integer, Node> getNodeList()\n\t{\n\t\treturn nodeManager.getNodes();\n\t}", "@Override\n public Set<EventNode> getNodes() {\n return nodes;\n }", "public java.util.List<entities.Torrent.NodeId> getNodesList() {\n if (nodesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(nodes_);\n } else {\n return nodesBuilder_.getMessageList();\n }\n }", "public List<PackerTreeNode<T>> getAllLeafNodes() {\n if (children.isEmpty()) {\n return Collections.singletonList(this);\n }\n return children\n .stream()\n .map(PackerTreeNode::getAllLeafNodes)\n .flatMap(Collection::stream)\n .collect(Collectors.toList());\n }", "@Override\n public List<E> allItems() {\n return new ArrayList(graphNodes.keySet());\n }", "public Nodes getNodes()\n {\n return nodes;\n }", "@Override\r\n public List<Vertex> getVertices() {\r\n List<Vertex> verticesList = new LinkedList<>(adjacencyList.keySet()); //getting the key set of adjacencyList i.e, a list of all vertices\r\n Collections.sort(verticesList, Comparator.comparing(Vertex::getLabel));\r\n return verticesList;\r\n }", "private Collection<Node> getNodes()\r\n\t{\r\n\t return nodeMap.values();\r\n\t}", "@Override\r\n\tpublic Iterable<Entity> getNodes()\r\n\t{\n\t\treturn null;\r\n\t}", "List<CyNode> getNodeList();", "public abstract List<AStarNode> getNeighbours();", "public Collection<MyNode> getNeighbors(){\r\n return new ArrayList<>(this.neighbors);\r\n }", "public List<Vertex> getVertices() {\n\t\treturn AdjacencyMatrixGraph.cloneList(vertexList);\n\t}", "public IAstTopLevelNode[] getTopLevelNodes();", "public Iterator<Node> getNodeIter() {\n\t\treturn nodes.iterator();\n\t}", "public ArrayList<Integer> inOrderTraversal() {\r\n\t\treturn inOrderTraversal(treeMinimum());\r\n\t}", "public List<List<NodeType>> getAllKCliques() {\n\t\treturn null;\t\t//TODO\n\t}", "@Override\n public Iterator<Node<E>> iterator() {\n return new ArrayList<Node<E>>(graphNodes.values()).iterator();\n }", "public LinkedList<Node> getNodesToRoot()\n {\n LinkedList<Node> nodes = new LinkedList<>();\n Node node = this;\n for (;node != null;node = node.getParent())\n nodes.addFirst(node);\n return nodes;\n }", "@java.lang.Override\n public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n return nodes_;\n }", "public java.util.List<? extends entities.Torrent.NodeIdOrBuilder>\n getNodesOrBuilderList() {\n if (nodesBuilder_ != null) {\n return nodesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(nodes_);\n }\n }", "public List topologicalSort( ){\r\n return this.topologicalsorting.traverse();\r\n }", "@Override\n\tpublic int getNodes() {\n\t\treturn model.getNodes();\n\t}", "public List<T> sort() {\n final ArrayList<Node<T>> L = new ArrayList<>();\n\n // S <- Set of all nodes with no incoming edges\n final HashSet<Node<T>> S = new HashSet<>();\n nodes.stream().filter(n -> n.inEdges.isEmpty()).forEach(S::add);\n\n // while S is non-empty do\n while (!S.isEmpty()) {\n // remove a node n from S\n final Node<T> n = S.iterator().next();\n S.remove(n);\n\n // insert n into L\n L.add(n);\n\n // for each node m with an edge e from n to m do\n for (Iterator<Edge<T>> it = n.outEdges.iterator(); it.hasNext();) {\n // remove edge e from the graph\n final Edge<T> e = it.next();\n final Node<T> m = e.to;\n it.remove(); // Remove edge from n\n m.inEdges.remove(e); // Remove edge from m\n\n // if m has no other incoming edges then insert m into S\n if (m.inEdges.isEmpty()) S.add(m);\n }\n }\n // Check to see if all edges are removed\n for (Node<T> n : nodes) {\n if (!n.inEdges.isEmpty()) {\n return die(\"Cycle present, topological sort not possible: \"+n.thing.toString()+\" <- [\"+n.inEdges.stream().map(e->e.from.thing.toString()).collect(Collectors.joining(\", \"))+\"]\");\n }\n }\n return L.stream().map(n -> n.thing).collect(Collectors.toList());\n }", "public List<Vertex> vertices() {\n return Collections.unmodifiableList(this.vertices);\n }", "java.util.List<com.zibea.recommendations.webserver.core.dao.proto.AttributesMapProto.Map.KeyValue> \n getNodesList();", "public Iterable<Vertex> getVertices() {\n return mVertices.values();\n }", "@Override\n public Collection<node_data> getV() {\n return this.nodes.values();\n }", "public LinkedList<Node> getChildren() { \r\n LinkedList<Node> nodes = new LinkedList<>();\r\n for(int i=0;i<=size;i++)\r\n nodes.add(children[i]);\r\n return nodes;\r\n }", "@Override\r\n public Collection<node_data> getV() {\r\n return this.graph.values();\r\n }", "public List<Node> getSubNodes() {\n\t\treturn subNodes;\n\t}", "public final List<Node<N>> topologicalSort() {\n final TreeSet<Node<N>> sinks = new TreeSet<Node<N>>(this.getSinks());\n // initialise a map with the number of predecessors (value) for each node (key);\n final TreeMap<Node<N>, Integer> size = new TreeMap<Node<N>, Integer>();\n for (final Node<N> node : this.getNodes()) {\n size.put(node, this.getPredecessorNodes(node).size());\n }\n final List<Node<N>> sort = new ArrayList<Node<N>>();\n while (!sinks.isEmpty()) {\n final Node<N> node = sinks.pollFirst();\n sort.add(node);\n // updating of the set min by considering the successors of node\n for (final Node<N> successor : this.getSuccessorNodes(node)) {\n final int newSize = size.get(successor) - 1;\n size.put(successor, newSize);\n if (newSize == 0) {\n sinks.add(successor);\n }\n }\n }\n return sort;\n }", "public Collection<node_info> getV()\n{\n\treturn this.getNodes().values();\n}", "public List<Node> nodesIn(CloudName cloud) {\n return versions.entrySet().stream()\n .filter(entry -> entry.getKey().cloud().equals(cloud))\n .flatMap(entry -> entry.getValue().stream())\n .collect(Collectors.toUnmodifiableList());\n }", "public Iterable<Point2D> points() {\n\n\t\tQueue<Point2D> points = new Queue<Point2D>();\n\t\tQueue<Node> queue = new Queue<Node>();\n\t\tqueue.enqueue(root);\n\n\t\twhile (!queue.isEmpty()) {\n\t\t\tNode x = queue.dequeue();\n\t\t\tif (x == null)\n\t\t\t\tcontinue;\n\t\t\tpoints.enqueue(x.point);\n\t\t\tqueue.enqueue(x.left);\n\t\t\tqueue.enqueue(x.right);\n\t\t}\n\t\treturn points;\n\t}", "public abstract List<Node> getChildNodes();", "@Override\n\tpublic Collection<node_data> getV() {\n\t\treturn Nodes.values();\n\t}", "public List<NetworkNode> listNetworkNode();", "public List<Node<E>> leaves() {\n return this.children;\n }", "public Node[] getChildren() {\n\t\tNode[] nextLayer = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextLayer.length; i++) {\n\t\t\tnextLayer[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\treturn nextLayer;\n\t}", "public ArrayList<Node> getNextLayerNodes() {\n\t\treturn nextLayerNodesArrayList;\n\t}", "public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> getNodeList() {\n return node_;\n }", "java.util.List<? extends uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder> \n getNodeOrBuilderList();", "public HashMap<Integer, DagNode> getDagNodes(){\n return nodes;\n }", "public ArrayList<Integer> getAllKeysOrdered() {\n ArrayList<Integer> keyArrl = new ArrayList<>();\n if(root == null){\n return null;\n }\n Node currNode = root;\n keyArrl.add(currNode.key);\n java.util.LinkedList<Node> queue = new java.util.LinkedList<Node>();\n\n\n // Explores Nodes until the queue is empty.\n while (true) {\n\n // Marks that this Node's children should be explored.\n for (int i = 0; i < getNumChildren(); ++i) {\n if (currNode.children[i] != null) {\n queue.addLast(currNode.children[i]);\n }\n }\n\n // Pops the next Node from the queue.\n if (!queue.isEmpty()) {\n currNode = queue.pop();\n keyArrl.add(currNode.key);\n }\n // If the queue is empty, breaks.\n else break;\n\n }\n\n return keyArrl;\n\n }" ]
[ "0.7467425", "0.71164554", "0.7105576", "0.6928236", "0.6918516", "0.69065344", "0.6888354", "0.6847581", "0.68365484", "0.67548174", "0.6721201", "0.6720811", "0.67193216", "0.66947937", "0.6659037", "0.6590448", "0.658673", "0.6578945", "0.6555117", "0.6530699", "0.6501219", "0.64855057", "0.64828587", "0.6474968", "0.64671427", "0.6464187", "0.6452575", "0.6382336", "0.6379917", "0.6374216", "0.6362003", "0.63431853", "0.63371146", "0.6326478", "0.631984", "0.6318616", "0.62918377", "0.628811", "0.6280862", "0.6279915", "0.62668097", "0.6248511", "0.6248491", "0.6227567", "0.6224868", "0.6215027", "0.6207461", "0.61874104", "0.618089", "0.61701167", "0.61422616", "0.6105437", "0.6092012", "0.60786355", "0.6077794", "0.6052477", "0.6048026", "0.6035605", "0.603158", "0.60284007", "0.6020719", "0.60203314", "0.59999293", "0.5986408", "0.5984324", "0.5957387", "0.5946339", "0.5932646", "0.5932388", "0.5929848", "0.59073097", "0.59008783", "0.58968455", "0.58858716", "0.5866055", "0.58620834", "0.58328456", "0.5831424", "0.58216745", "0.5820505", "0.5818896", "0.5813234", "0.5813158", "0.5785721", "0.5766917", "0.57615775", "0.57542086", "0.5741636", "0.5723952", "0.57232267", "0.5721868", "0.57218647", "0.5721584", "0.571581", "0.5715174", "0.57066077", "0.57026166", "0.56966364", "0.5692697", "0.5689448", "0.5685515" ]
0.0
-1
////////////////////////////////////////////////////////////////// Event handlers. //////////////////////////////////////////////////////////////////
public void startElement (String uri, String name, String qName, Attributes atts) { if(name.equals("manager")) { baseAddress = atts.getValue("domainAddress"); } else if(name.equals("topic")) { Topic t = new Topic(); t.setName(atts.getValue("name")); t.setTypeID(atts.getValue("type")); t.setPort(Integer.parseInt(atts.getValue("portID"))); t.setDomainAddress(baseAddress); try { t.setReplyPort(Integer.parseInt(atts.getValue("replyPortID"))); } catch (NumberFormatException ex) { //ex.printStackTrace(); } catch (NullPointerException ex) { } topics.add(t); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "private void eventhandler() {\n\r\n\t}", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n public void handle(Event event) {\n }", "public void handleEvent(Event event) {\n\t\t\t\t}", "@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}", "public void consulterEvent() {\n\t\t\n\t}", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }", "private void createEvents() {\n\t}", "public abstract void handle(Object event);", "public void processEvent(Event event) {\n\t\t\n\t}", "void event(Event e) throws Exception;", "@Override\n\tprotected void onEventComming(EventCenter eventCenter) {\n\t}", "Event () {\n // Nothing to do here.\n }", "EventType getEvent();", "private void initializeEvents() {\r\n\t}", "@Override\n\tpublic void handleEvent(EnOceanMessage data) {\n\t}", "public void handle(Object e){\n\t\tif(e.getClass().equals(GetResultRequestEvent.class)){\n\t\t\tgetResults((GetResultRequestEvent)e);\n\t\t}else if(e.getClass().equals(RefreshAllDataEvent.class)){\n\t\t\ttf.getData(app);\n\t\t}else if(e.getClass().equals(ExportDataEvent.class)){\n\t\t\ttf.exportItemDB();\n\t\t}\n\t}", "@Override\n protected void initEventAndData() {\n }", "@Override\r\n public void onEvent(FlowableEvent event) {\n }", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "BasicEvents createBasicEvents();", "public abstract void processEvent(Object event);", "protected void handleEvent(MouseEvent ev) {\n\t}", "private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}", "void onNewEvent(Event event);", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "@Override\n\t\tprotected void onEvent(DivRepEvent arg0) {\n\t\t\t\n\t\t}", "Event getEvent();", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\tpublic void eventSelectTracker() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n public void handleEvents(List<Event> processorEvents) {\n\n }", "void onBusEvent(Event event);", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "public void handleSensorEvents(){\n\t}", "public void onEvent(EventIterator events) {\n\n }", "protected void onEvent(DivRepEvent e) {\n\t\t}", "protected void onEvent(DivRepEvent e) {\n\t\t}", "@Override\n\tpublic void loadEvents() {\n\t\t\n\t}", "private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}", "@Override\n\tpublic void ACC_X_ObjectEvent(Interface.ACC_X_ObjectEvent e, String data) {\n\t\t\n\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "public abstract void onEvent(T event);", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "void eventChanged();", "@Override\n protected void initializeEventList()\n {\n }", "public void runEvent();", "void registerEventbusHandlers();", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "void onApplicationEvent(ApplicationEvent e);", "public void handle(Event ev) {\n \n //\t\tsynchronized (this) {\n \t\t//\t\tSystem.out.println(\"VsProxySession - \"+ ev.getDir() \n //\t\t+\" - Received an event type - \" + ev.getClass());\n \n \t\ttry {\n \t\t\t/********** Normal Events **********/\n \t\t\tif (ev instanceof ChannelInit)\n \t\t\t\thandleChannelInit((ChannelInit) ev);\n \t\t\telse if (ev instanceof RegisterSocketEvent)\n \t\t\t\thandleRegisterSocketEvent((RegisterSocketEvent) ev);\n \t\t\telse if (ev instanceof BlockOk)\n \t\t\t\thandleBlockOk((BlockOk) ev);\n \t\t\telse if (ev instanceof View)\n \t\t\t\thandleView((View) ev);\n \n \t\t\t/********** Stub Events => Clients->Server **********/\n \t\t\telse if (ev instanceof GroupInitStubEvent)\n \t\t\t\thandleGroupInitStubEvent((GroupInitStubEvent) ev);\n \t\t\telse if (ev instanceof LeaveStubEvent)\n \t\t\t\thandleLeaveStubEvent((LeaveStubEvent) ev);\n \t\t\telse if (ev instanceof GroupSendableStubEvent)\n \t\t\t\thandleGroupSendableStubEvent((GroupSendableStubEvent) ev);\t\n \t\t\telse if (ev instanceof BlockOkStubEvent)\n \t\t\t\thandleBlockOkStubEvent((BlockOkStubEvent) ev);\t\n \n \t\t\t/********** Stub Events => Server->Server **********/\n \t\t\telse if (ev instanceof NewClientProxyEvent)\n \t\t\t\thandleNewClientProxyEvent((NewClientProxyEvent) ev);\n \t\t\telse if (ev instanceof LeaveClientProxyEvent)\n \t\t\t\thandleLeaveClientProxyEvent((LeaveClientProxyEvent) ev);\n \t\t\telse if (ev instanceof GroupSendableProxyEvent)\n \t\t\t\thandleGroupSendableProxyEvent((GroupSendableProxyEvent) ev);\n \t\t\telse if (ev instanceof BlockOkProxyEvent)\n \t\t\t\thandleBlockOkProxyEvent((BlockOkProxyEvent) ev);\n \t\t\telse if (ev instanceof DecidedProxyEvent)\n \t\t\t\thandleDecidedProxyEvent((DecidedProxyEvent) ev);\n \t\t\telse if (ev instanceof UpdateProxyEvent)\n \t\t\t\thandleUpdateProxyEvent((UpdateProxyEvent) ev);\t\t\n \t\t\telse if (ev instanceof UpdateDecideProxyEvent)\n \t\t\t\thandleUpdateDecideProxyEvent((UpdateDecideProxyEvent) ev);\t\t\n \n \t\t\t/********** Pong detecture - For failure detection ********/\n \t\t\telse if (ev instanceof PongEvent){\n \t\t\t\thandlePongEvent((PongEvent) ev);\n \t\t\t}\n \n \t\t\t/********* If we don't handle the event warn *******/\n \t\t\telse{ \n \t\t\t\tSystem.out.println(\"VsProxySession: Event not treated - \" + \n \t\t\t\t\t\tev.getClass().toString());\n \t\t\t\tev.go();\n \t\t\t}\n \t\t} catch (AppiaException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}", "com.walgreens.rxit.ch.cda.EIVLEvent getEvent();", "public void process(WatchedEvent event) {\n\t\t\n\t}", "java.lang.String getEventType();", "@Override\n\tpublic void ACC_Y_ObjectEvent(Interface.ACC_Y_ObjectEvent e, String data) {\n\t\t\n\t}", "public void TopDreiEvent();", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "void onEvent (ZyniEvent event, Object ... params);", "@Override\n public void eventsChanged() {\n }", "public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}", "void handleActionEvent(ActionEvent event);", "@Override\n public void onEvent(Event t) throws CSenseException {\n }", "@Override\r\n\tpublic void processEvent() {\n\t\tint VolumeButtonEvent = (Integer) pdu.getRawPayload()[0];\r\n\t\t//System.out.println(\"number of objects \" + numObjects);\r\n\t}", "public String getEventName();", "public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}", "@Override\r\n\tpublic void handle(KeyEvent event) {\n\t}", "public abstract void emit(EventsHandler handler);", "private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public void onEntry()\n\t{\n\t}", "public void onEventMainThread(Object event) {\n\n }", "@Override\n\tpublic void ACC_Z_ObjectEvent(Interface.ACC_Z_ObjectEvent e, String data) {\n\t\t\n\t}", "@Override\n\tpublic void GYR_X_ObjectEvent(Interface.GYR_X_ObjectEvent e, String data) {\n\t\t\n\t}", "public interface HandlesAllDataEvents extends HandlesDeleteEvents, HandlesUpdateEvents,\r\n RowInsertEvent.Handler, DataChangeEvent.Handler {\r\n}", "private void registerEvents() {\n MouseEventHandler handler = new MouseEventHandler();\n setOnMousePressed(handler);\n setOnMouseReleased(handler);\n setOnMouseMoved(handler);\n setOnMouseEntered(handler);\n setOnMouseExited(handler);\n\n }", "@Override\n\t\t\tpublic void handle(MouseEvent event) {\n\t\t\t}", "@Override\n\tpublic void update(Event e) {\n\t}", "@Override\n\t\tpublic void onDeviceEventReceived(DeviceEvent ev, String client) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n\t\tLog.i(\"userEventTriggered\", evt.getClass().getName());\n\t\tsuper.userEventTriggered(ctx, evt);\n\t}" ]
[ "0.79772013", "0.79772013", "0.7787203", "0.7787203", "0.7787203", "0.7787203", "0.7787203", "0.7741414", "0.7741414", "0.7741414", "0.77311534", "0.7699535", "0.7630852", "0.7461109", "0.73649746", "0.7289308", "0.7133302", "0.7104118", "0.70721215", "0.70721215", "0.7058717", "0.7043591", "0.7007955", "0.6987873", "0.692614", "0.6893947", "0.68778986", "0.6787324", "0.67869246", "0.6699738", "0.66947216", "0.6666516", "0.6645802", "0.66414005", "0.66371876", "0.6632497", "0.6632497", "0.66078836", "0.6606006", "0.6603973", "0.6599636", "0.6595736", "0.65804297", "0.6558957", "0.65559685", "0.6554353", "0.6554353", "0.6531524", "0.65167713", "0.65119386", "0.65065825", "0.65048176", "0.6503344", "0.6496033", "0.6493148", "0.6490283", "0.6490283", "0.64873105", "0.6458668", "0.6451213", "0.64405715", "0.64374065", "0.6408748", "0.6396246", "0.63890576", "0.6370788", "0.6369994", "0.6356524", "0.6356524", "0.63132614", "0.63100606", "0.63015205", "0.63015205", "0.6290175", "0.6280424", "0.6251552", "0.6233667", "0.6225179", "0.62038565", "0.6199812", "0.61866444", "0.6185248", "0.6165922", "0.6162811", "0.6160525", "0.6156853", "0.6153326", "0.614537", "0.61448324", "0.6143986", "0.6130776", "0.61298054", "0.61232233", "0.61109257", "0.6107476", "0.61037564", "0.6101674", "0.60985124", "0.6097777", "0.6097165", "0.60933036" ]
0.0
-1
don't new this up in a draw method
public void drawTextCentred(Canvas canvas, Paint paint, String text, float cx, float cy) { setTextSizeForWidth(paint, text, mTextWidth); paint.setTextSize(32f); paint.getTextBounds(text, 0, text.length(), textBounds); canvas.drawText(text, cx - textBounds.exactCenterX(), cy - textBounds.exactCenterY(), paint); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\r\n public void draw() {\n }", "@Override\n public void draw()\n {\n }", "@Override\n\tpublic void draw() {\n\t}", "@Override\n public void draw() {\n }", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public void draw() {\n }", "@Override\r\n public void draw()\r\n {\n\r\n }", "protected abstract void draw();", "public void draw() {\n \n }", "@Override\r\n\tprotected void onDraw() {\n\t\t\r\n\t}", "public void draw() {\n\n }", "public void draw() {\n \n // TODO\n }", "@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}", "public void draw(){\n }", "@Override\n\tpublic void draw1() {\n\n\t}", "public abstract void draw( );", "@Override\n\tpublic void Draw(float delta) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics canvas) {}", "@Override\n\tpublic void draw(Graphics2D g2d) {\n\t\t\n\t}", "abstract void draw();", "abstract void draw();", "@Override\n\tpublic void withdraw() {\n\t\t\n\t}", "@Override\n public void paint(Graphics g) {\n }", "@Override\n\tpublic void draw3() {\n\n\t}", "@Override\n public void draw(GraphicsContext gc, int sides){}", "@Override\r\n\tprotected void onDraw(LRenderSystem rs) {\n\r\n\t}", "void draw() {\n\t\tSystem.out.println(\"Drawing the Rectange...\");\n\t\t}", "public String draw() {\n\t\treturn null;\r\n\t}", "public abstract void draw();", "public abstract void draw();", "public abstract void draw();", "@Override\n\tpublic void draw(Canvas canvas) {\n\t\t\n\t}", "public void draw();", "public void draw();", "public void draw();", "public void withdraw() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"draw method\");\n\t}", "@Override\n\tpublic void draw(Canvas canvas) {\n\n\t}", "void reDraw();", "@Override\r\n\tpublic void draw() {\n\t\tPoint p = this.getP();\r\n\t\tint start_point = p.getX();\r\n\t\tint end_point = p.getY();\r\n\t\t\r\n\t\tint width = this.getWidth();\r\n\t\tint height = this.getHeight();\r\n\t\t\r\n\t\tSystem.out.println(\"�l�p�`��`�� �_(\" + start_point +\",\"+ end_point + \")����Ƃ��āA��\"+ width +\"����\"+ height +\"�̎l�p�`\");\r\n\t}", "void withDraw() {\n if (this.pointer != 0) {\n this.pointer--;\n }\n }", "@Override\n\tpublic void draw(Graphics2D g, int x, int y,int width,int height) {\n\n\t}", "@Override\n\tpublic void redraw() {\n\t\t\n\t}", "void draw();", "public void draw() {\n\t\tsuper.repaint();\n\t}", "@Override\r\n\tpublic void paint(float deltaTime) {\n\t\t\r\n\t}", "private void draw() {\n gsm.draw(g);\n }", "@Override\r\n\tpublic void withDraw(int x) {\n\t\t\r\n\t}", "public void draw()\r\n {\r\n drawn = true;\r\n }", "@Override\r\n\t\tpublic void paint(Graphics g) {\n\t\t\tsuper.paint(g);\r\n\t\t}", "public void withdraw() {\n\t\t}", "public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }", "@Override\n\tpublic void draw(Graphics g, JPanel panel) {\n\t\t\n\t}", "@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "ZHDraweeView mo91981h();", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "void draw() {\n scsw.draw();\n \n}", "@Override\n\tpublic void draw(Graphics g) {\n\t\tsuper.draw(g);\n\t\tif(!satillite){\n\t\t\tdrawTrace(g);\n\t\t}\n\t\t\n \t\tmove();\n\t}", "@Override\n\tpublic void draw(Graphics2D g, Camera cam) {\n\n\t}", "public void drawNonEssentialComponents(){\n\t\t\n\t}", "@Override\n\tpublic void render(Graphics g)\n\t{\n\t}", "final void drawobj(java.awt.Graphics g) {\n\t\tdraw(g, Engine.scaleX(x), Engine.scaleY(y));\n\t}", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "public void draw (Graphics g,Location loc){\n System.err.println(\"This method not yet implemented\");\n }", "public void draw() {\r\n System.out.print(this);\r\n }", "@Override\n public void onPaint(Graphics2D g) {\n\n }", "public void draw() {\n StdDraw.clear();\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setXscale(-drawLength * 0.1, drawLength * 1.2);\n StdDraw.setYscale(-drawLength * 0.65, drawLength * 0.65);\n StdDraw.line(0, 0, drawLength, 0);\n StdDraw.text(-drawLength * 0.05, 0, \"0\");\n StdDraw.text(drawLength * 1.1, 0, Integer.toString(size()));\n }", "public void Draw(Graphics g)\n/* */ {\n/* 55 */ g.setColor(this.m_color);\n/* */ \n/* 57 */ Point prevPt = new Point(0, 0);Point currPt = new Point(0, 0);\n/* */ \n/* 59 */ for (double t = 0.0D; t < 1.01D; t += this.m_tValue) {\n/* 60 */ ptFromTVal(t, currPt);\n/* */ \n/* 62 */ if (t == 0.0D) {\n/* 63 */ prevPt.x = currPt.x;\n/* 64 */ prevPt.y = currPt.y;\n/* */ }\n/* */ \n/* 67 */ g.drawLine(prevPt.x, prevPt.y, currPt.x, currPt.y);\n/* */ \n/* 69 */ if (this.m_showTPoints) {\n/* 70 */ g.fillOval(currPt.x - this.PT_RADIUS, currPt.y - this.PT_RADIUS, this.PT_DIAMETER, this.PT_DIAMETER);\n/* */ }\n/* */ \n/* 73 */ prevPt.x = currPt.x;\n/* 74 */ prevPt.y = currPt.y;\n/* */ }\n/* */ }", "@Override\n\t\tprotected void dispatchDraw(Canvas canvas) {\n\t\t\ttry {\n\t\t\t\tsuper.dispatchDraw(canvas);\n\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public Shapes draw ( );", "@Override\n public void updateDrawState(TextPaint ds) {\n }", "public void beginDrawing();", "public abstract void drawFill();", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制矩形\");\n\t\t\n\t}", "public void draw(Graphics g) {\r\n\t\t\r\n\t}", "private void paintHand3(Graphics2D gfx)\r\n {\n \r\n }", "abstract void draw(Graphics g, int xoff, int yoff,\n int x, int y, int width, int height);", "private void draw(){\n\t\t\t Point level = new Point(txtBoard_top_left.x, txtBoard_top_left.y);\n\t\t\t level_info = new TextInfo(g, level, txt_width, size*4, LEVEL, this.level);\n\t\t\t level_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 2nd text info\n\t\t\t Point lines = new Point(level.x, level.y+size*2);\n\t\t\t lines_info = new TextInfo(g, lines, txt_width, size*4, LINES, this.lines);\n\t\t\t lines_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 3rd text info\n\t\t\t Point score = new Point(lines.x, lines.y+size*2);\n\t\t\t score_info = new TextInfo(g, score, txt_width, size*4, SCORE, this.score);\n\t\t\t score_info.drawTextInfo();\t\t\n\t\t}", "@Override\n\tpublic void draw(Matrix m) {\n\n\t}", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\n public void draw(GL2 gl) {\n super.fill(gl);\n }", "@Override\n public void draw(GL2 gl) {\n super.fill(gl);\n }", "public void draw(){\n super.repaint();\n }", "@Override\r\n\tpublic void draw(final Canvas canvas) {\n\r\n\t}", "public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}" ]
[ "0.77435267", "0.77435267", "0.7724814", "0.7724814", "0.7642813", "0.7642813", "0.76334363", "0.76304364", "0.75940424", "0.7582757", "0.7266331", "0.7266331", "0.7170863", "0.7155928", "0.7145294", "0.71449625", "0.7105626", "0.70940083", "0.70737404", "0.7068478", "0.7058953", "0.7058014", "0.7013794", "0.70122313", "0.6934067", "0.6931148", "0.6928489", "0.69228125", "0.69228125", "0.6911849", "0.6904926", "0.6885868", "0.68807703", "0.685142", "0.6842971", "0.683053", "0.681994", "0.681994", "0.681994", "0.6796101", "0.67952687", "0.67952687", "0.67952687", "0.67083", "0.66757685", "0.6668367", "0.66569984", "0.6655953", "0.6652949", "0.6616997", "0.661497", "0.66043144", "0.66006255", "0.6593666", "0.65779275", "0.6564014", "0.65444964", "0.6534315", "0.6534199", "0.65246385", "0.64931667", "0.648393", "0.648393", "0.6479149", "0.6479149", "0.6479149", "0.6479149", "0.6475904", "0.6465963", "0.6453567", "0.64506453", "0.6433548", "0.64322084", "0.6426654", "0.6423892", "0.64175195", "0.64118487", "0.64007676", "0.6399823", "0.639806", "0.63955295", "0.63905793", "0.6381172", "0.63787216", "0.6374824", "0.63737273", "0.63707924", "0.6352412", "0.63510853", "0.6347843", "0.6344236", "0.632378", "0.631888", "0.6310342", "0.6310342", "0.6310342", "0.6301176", "0.6301176", "0.62991256", "0.6299041", "0.6292324" ]
0.0
-1
Sets the text size for a Paint object so a given string of text will be a given width.
private static void setTextSizeForWidth(Paint paint, String text, float desiredWidth) { // Pick a reasonably large value for the test. Larger values produce // more accurate results, but may cause problems with hardware // acceleration. But there are workarounds for that, too; refer to // http://stackoverflow.com/questions/6253528/font-size-too-large-to-fit-in-cache final float defaultTextSize = 44f; paint.setTextSize(defaultTextSize); Rect textBounds = new Rect(); paint.getTextBounds(text, 0, text.length(), textBounds); // Calculate the desired size as a proportion of our testTextSize. if (textBounds.width() > desiredWidth) { float desiredTextSize = defaultTextSize * (desiredWidth / textBounds.width()); // Set the paint for that size. paint.setTextSize(desiredTextSize); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }", "public void setTextSizePx(float size) {\n mPaint.setTextSize(size);\n mSpaceWidth = mPaint.measureText(\" \");\n invalidate();\n }", "public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }", "public void setTextSize(float textSize) {\n mTextContainer.setTextSize(textSize);\n }", "public void setFontSizeText( String text )\r\n\t{\r\n\t\t// set the text in the Font Size text field as per the String passed in\r\n\t\tfontSizeTextField.setText( text );\r\n\t}", "public static void adjustFontSize(Paint paint, String text,\r\n int charCount, Rect area, boolean isVerticalDirection) {\r\n Rect bounds = new Rect();\r\n paint.getTextBounds(text, 0, text.length(), bounds);\r\n\r\n float currentCharCount;\r\n if (!isVerticalDirection){\r\n currentCharCount = area.width() / (1.0f * bounds.width() / text.length());\r\n } else {\r\n currentCharCount = 1.0f * area.height() / bounds.height();\r\n }\r\n float newTextSize = paint.getTextSize() * currentCharCount / charCount;\r\n\r\n paint.setTextSize(newTextSize);\r\n }", "public void setProgressTextSize(int size){\n mProgressTextSize = Utils.sp2px(mContext, size);\n refreshTheView();\n }", "public void setTextSize() {\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n }", "public void drawText(String text, float x, float y, float size) {\n\t\tTextLoader.addLargeText(text, x, y, size, this);\n\t}", "public void setText(String text, int textSize, Colour textColour) {\n this.text = text;\r\n this.textSize = textSize;\r\n this.textColour = textColour;\r\n xTextOffset = w / 2 - text.length() * 7.666f;\r\n yTextOffset = h / 2 + textSize / 2.6666f;\r\n }", "public void setWidth(String string) {\r\n\t\t_width = string;\r\n\t}", "private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}", "public Text(int x, int y, String text, int size) {\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n this.font = Font.SANS_SERIF;\r\n this.size = size;\r\n \r\n }", "public void adjustTextSize(String str) {\n int i;\n int i2 = this.mMinTextSize;\n int height = (this.mEditText.getHeight() - this.mEditText.getCompoundPaddingBottom()) - this.mEditText.getCompoundPaddingTop();\n int width = (this.mEditText.getWidth() - this.mEditText.getCompoundPaddingLeft()) - this.mEditText.getCompoundPaddingRight();\n this.mWidthLimit = width;\n this.mAvailableSpaceRect.right = (float) width;\n this.mAvailableSpaceRect.bottom = (float) height;\n if (!this.mIsMultiLine || Math.min(getRect().width(), getRect().height()) <= 40.0f) {\n i = binarySearch(i2, this.mMaxTextSize, this.mSizeTester, this.mAvailableSpaceRect);\n } else {\n i = 40;\n }\n this.mEditText.setTextSize(0, (float) i);\n }", "private void setPrefSizeForText()\n {\n double prefW = getSuggestedPrefWidth();\n double prefH = _textArea.getPrefHeight();\n setPrefSize(prefW, prefH);\n }", "public int getStringWidth(String text);", "public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }", "public native final EditorBaseEvent fontSize(String val) /*-{\n\t\tthis.fontSize = val;\n\t\treturn this;\n\t}-*/;", "public void setTitleFontSize(int size) {\n\t\tthis.title_fontsize = size;\n\t}", "public LabelBuilder setFontSize(int size) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.getFont().setSize(size);\n\t\treturn this;\n\n\t}", "public void setTextViewSize(float px) {\r\n\t\tfloat scaledDensity = getResources().getDisplayMetrics().scaledDensity;\r\n\t\tint sp = (int) (px / scaledDensity);\r\n\t\tsetTextSize(sp);\r\n\t}", "@Override\n public Dimension measureText(String text) {\n return graphicsEnvironmentImpl.measureText(canvas, text);\n }", "public void setWidth(final String value)\n {\n width = value;\n }", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "public ComDialogBuilder setTitleTextSize(int textsize) {\n if(dialogTitle!=null){\n dialogTitle.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }", "private Bounds textWidth(double size, SensorValue sensorValue)\r\n\t{\n\t\t\r\n\t\tString showValue = sensorValue.getCurrentValue() + \" \" + sensorValue.getMeasurementUnit();\r\n\t\t\r\n\t\tif(fontBase == null)\r\n\t\t\tfontBase = new Font(\"Verdana\", 12);\r\n\t\tText text = new Text(showValue);\r\n\t\tFont font = Font.font(fontBase.getFamily(), size);\r\n text.setFont(font);\r\n return text.getBoundsInLocal();\r\n\t}", "private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }", "private void fitTextToView() {\n int currentTextSize = (int) getTextSize();\n if (currentTextSize == mMinTextSize) {\n return;\n }\n\n final float width = getAvailableWidth();\n final String currentText = getText().toString();\n\n if (width <= 0 || TextUtils.isEmpty(currentText)) {\n return;\n }\n\n mTextPaint.set(getPaint());\n mTextPaint.setTextSize(currentTextSize);\n\n while (mTextPaint.measureText(currentText) > width && currentTextSize > mMinTextSize) {\n currentTextSize -= mTextSizeIncrement;\n mTextPaint.setTextSize(currentTextSize);\n }\n\n currentTextSize = Math.max(currentTextSize, mMinTextSize);\n setEllipsize(currentTextSize == mMinTextSize ? TextUtils.TruncateAt.END : null);\n\n setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize);\n }", "public void setFontSize(int fontSize) {\n this.fontSize = fontSize;\n updateLineHeight();\n updateCursor();\n update();\n }", "private String getFitText(String text, float width, Paint paint) {\r\n String newText = text;\r\n int length = text.length();\r\n int diff = 0;\r\n while (paint.measureText(newText) > width && diff < length) {\r\n diff++;\r\n newText = text.substring(0, length - diff) + \"...\";\r\n }\r\n if (diff == length) {\r\n newText = \"...\";\r\n }\r\n return newText;\r\n }", "public float getTextSizePx() {\n return mPaint.getTextSize();\n }", "public void setFontSize(int fontSize)\r\n {\r\n myFontSize = fontSize;\r\n }", "public ModernAutoSizeLabel(String text, Dimension size) {\r\n super(text, size);\r\n }", "public void setFont(String fontname, int fontsize){\n\t\tint tw = textWidth;\n\t\tint fs = (int) localFont.getSize();\n\t\tlocalFont = GFont.getFont(winApp, fontname, fontsize);\n\t\tif(fontsize > fs)\n\t\t\theight += (fontsize - fs);\n\t\tsetText(text);\n\t\tif(textWidth > tw)\n\t\t\twidth += (textWidth - tw);\n\t\tArrayList<GOption> options = optGroup.getOptions();\n\t\tfor(int i = 0; i < options.size(); i++)\n\t\t\toptions.get(i).setWidth((int)width - 10);\n\t\tslider.setX((int)width - 10);\n\t}", "public ModernAutoSizeLabel(String text, int width) {\r\n super(text, width);\r\n }", "public void setHightlightedTextSize(Float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mHightlightedTextSize = Utils.convertDpToPixel(size);\n\n }", "@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }", "public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}", "public static float textWidth(BitmapFont fntIn, String sIn){\n return new GlyphLayout(fntIn,sIn).width;\n }", "public FontRenderer setSize(float size) {\n\t\tthis.size = size;\n\t\ttransform.setScale(size);\n\t\t\n\t\treturn this;\n\t}", "public final void setFontSize(final String fontSize) {\n if (fontSize.charAt(0) == '-') {\n float newSize = Integer.parseInt(fontSize);\n setFontSize(getFontSize() + (int) newSize);\n } else if (fontSize.charAt(0) == '+') {\n float newSize = Integer.parseInt(\n fontSize.substring(1));\n setFontSize(getFontSize() + (int) newSize);\n } else {\n float newSize = Integer.parseInt(fontSize);\n setFontSize((int) newSize);\n }\n }", "public int setTextSize(int textSelection) {\n // Sets the text size in Settings\n Settings.setTextSize(textSelection);\n\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n return Settings.getTextSize();\n }", "@Override\r\n public void setWidth(String width) {\n }", "private static void drawText(Canvas canvas, String text, int left, int top, int width, int maxWidth, Paint paint)\n\t{\n\t\tcanvas.save();\n\t\tint offset = Math.max(0, maxWidth - width) / 2;\n\t\tcanvas.clipRect(left, top, left + maxWidth, top + paint.getTextSize() * 2);\n\t\tcanvas.drawText(text, left + offset, top - paint.ascent(), paint);\n\t\tcanvas.restore();\n\t}", "private void setFontSize(float newFontSize) {\n\t\tfontSize = newFontSize;\n\t\tproperties.setProperty(\"fontSize\", Float.toString(newFontSize));\n\n\t\t// update all text-based components\n\t\tfor (Component c : components)\n\t\t\tc.setFont(c.getFont().deriveFont(newFontSize));\n\t\t\n\t\t// update machine graphics\n\t\tupdate(); \n\t}", "public double strLen(String str, double size) {\n return mcFont().getStringWidth(str) * size / mcFont().FONT_HEIGHT;\n }", "public IconBuilder fontSize(int size) {\n\t\tthis.fixedFontSize = size;\n\t\treturn this;\n\t}", "public static float getFontCharWidth(Paint paint, String text) {\r\n Rect bounds = new Rect();\r\n paint.getTextBounds(text, 0, text.length(), bounds);\r\n\r\n return 1.0f * bounds.width() / text.length();\r\n }", "public void setFontSize(int fontSize) {\r\n try {\r\n this.setFont(this.getFont().deriveFont((float) fontSize));\r\n } catch (Exception e) {\r\n ToggleButton.logger.error(this.getClass().toString() + \" : Error establishing font size\", e);\r\n if (ApplicationManager.DEBUG) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n }\r\n }", "public void setSizeLabel(String value) {\n setAttributeInternal(SIZELABEL, value);\n }", "public void setExampleDimension(float exampleDimension) {\n mTextSize = exampleDimension;\n invalidateTextPaintAndMeasurements();\n }", "void setPaperSize(short size);", "public void setTextLabelFontSize(int mTextLabelFontSize) {\n\t\tthis.mTextLabelFontSize = mTextLabelFontSize;\n\t}", "public void setLabelTextSize(float labelTextSizeSp) {\n chassisView.setLabelTextSize(labelTextSizeSp);\n }", "public void setSize(String size) {\n this.size = size;\n }", "public static String cutToSize(String textIn, float targetWidth, BitmapFont fontIn){\n String out=textIn;\n for(int i = textIn.length();i>0;i--) {\n String cutText = out.substring(0, i);\n if (textWidth(fontIn, cutText) <= targetWidth) {\n return cutText;\n }\n }\n return \"\";\n }", "public void checkTextSize(){\n mShp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n String textSize = mShp.getString(\n getString(R.string.pref_textSize_key),\n getString(R.string.pref_textSize_default)\n );\n float size = Float.parseFloat(textSize);\n mTaleText.setTextSize(TypedValue.COMPLEX_UNIT_SP,size);\n }", "public ComDialogBuilder setMessageTextSize(int textsize) {\n if(dialogMsg!=null){\n dialogMsg.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }", "private int calculateTextWidth(String[] lines, FontMetrics fm)\r\n {\r\n int numChars = 0;\r\n String maxString = \"\";\r\n // calculate the number of characters in the line\r\n for (String lineNo : lines)\r\n {\r\n if (numChars < lineNo.length())\r\n {\r\n numChars = lineNo.length();\r\n maxString = lineNo;\r\n }\r\n }\r\n // width will be the numChars * text metrics for the font\r\n int maxWidth = fm.stringWidth(maxString);\r\n return maxWidth;\r\n }", "public PatchTextStyleProperties fontSize(String fontSize) {\n this.fontSize = fontSize;\n return this;\n }", "public void setPenSize(int pixelSize){\n myPen.setPenSize(pixelSize);\n }", "public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}", "public void setWidth(String width) {\r\n this.width = width;\r\n }", "public int getFontSize();", "void setFontScale(\n float s);", "public int[] verifyFontCanvasSize(Graphics2D g2d, String text, int textWidth, int nodeWidth, int fontSize) {\n while (textWidth >= (nodeWidth - 2)) {\n fontSize = fontSize - 1;\n//\t\tcanvas:attrFont(fontFamily, fontSize, fontStyle);\n g2d.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, fontSize));\n textWidth = (int) Math.round(g2d.getFontMetrics().getStringBounds(text, g2d).getCenterX());\n// labelWidth = canvas:measureText(label);\n }\n return new int[]{textWidth, fontSize};\n }", "public DisplayText (GraphicsContext gc, Canvas gameCanvas, int size) {\n\t\tthis.gc = gc;\n\t\tthis.gameCanvas = gameCanvas;\n\t\t\n\t\t vector = Font.loadFont(getClass().getResourceAsStream(\"/fonts/Vectorb.ttf\"), size); //load my custom font at the specified size \n\t}", "public float getFontSize();", "public void setSubtitleFontSize(int size) {\n\t\tthis.subtitle_fontsize = size;\n\t}", "public static void setDefaultTextSize(int defaultTextSize) {\n if (defaultTextSize < 0){\n throw new IllegalArgumentException(\"The text size must be >= 0\");\n }\n DEFAULT_TEXT_SIZE = defaultTextSize;\n }", "double width () {\n Text text = new Text(this.getText());\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }", "void setWidth(int width);", "void setWidth(int width);", "@Override\n public void strokeText(String text, double x, double y, double maxWidth) {\n graphicsEnvironmentImpl.strokeText(canvas, text, x, y, maxWidth);\n }", "public void strokeString(float x, float y, String text);", "public float getTextSize() {\n return mTextSize;\n }", "public double getFontSize(\n )\n {return fontSize;}", "void setFitWidth(short width);", "public void draw(String str, double x, double y, double size, int color) {\n draw(str, x, y, size, color, Align.LEFT);\n }", "public void adjustTextFontSize(View view) {\n if (this.minimumFontSizeInPixels >= FONT_SIZE_EPSILON && (view instanceof TextView)) {\n TextView textView = (TextView) view;\n float densityScale = view.getResources().getDisplayMetrics().density;\n if (densityScale <= 0.0f) {\n densityScale = DEFAULT_SHADOW_RADIUS;\n }\n int value = textView.getWidth() - (textView.getTotalPaddingLeft() + textView.getTotalPaddingRight());\n if (!(this.layoutParams == null || this.layoutParams.optionWidth == null || this.layoutParams.autoFillsWidth)) {\n value -= (int) Math.ceil((double) densityScale);\n }\n if (value > 0) {\n float viewContentWidth = (float) value;\n String text = null;\n if (textView.getText() != null) {\n text = textView.getText().toString();\n }\n if (text != null && text.length() > 0) {\n float previousFontSize = textView.getTextSize();\n textView.setTextSize(0, this.unscaledFontSizeInPixels);\n while (true) {\n float currentFontSize = textView.getTextSize();\n if (currentFontSize >= this.minimumFontSizeInPixels + FONT_SIZE_EPSILON) {\n TextPaint textPaint = textView.getPaint();\n if (textPaint == null) {\n break;\n }\n float textWidth = textPaint.measureText(text);\n if (textWidth <= viewContentWidth) {\n break;\n }\n textView.setTextSize(0, Math.max(Math.min((viewContentWidth / textWidth) * currentFontSize, currentFontSize - densityScale), this.minimumFontSizeInPixels));\n } else {\n break;\n }\n }\n if (Math.abs(textView.getTextSize() - previousFontSize) >= FONT_SIZE_EPSILON) {\n final View finalView = view;\n view.post(new Runnable() {\n public void run() {\n finalView.requestLayout();\n }\n });\n }\n }\n }\n }\n }", "public static float getFontCharHeight(Paint paint, String text) {\r\n Rect bounds = new Rect();\r\n paint.getTextBounds(text, 0, text.length(), bounds);\r\n\r\n return 1.0f * bounds.height();\r\n }", "public void setFontSize(int font) {\n\t\tthis.font = font;\n\t}", "public void setTextFont(Font font);", "public native final String fontSize() /*-{\n\t\treturn this.fontSize;\n\t}-*/;", "double width () {\n Text text = new Text(event.name);\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }", "private static float getMaximumWidth(final String text, final Paint paint) {\n float width = 0;\n for (String token : text.split(\"\\n\")) {\n final float textWidth = paint.measureText(token);\n if (textWidth > width) {\n width = textWidth;\n }\n }\n\n return width;\n }", "public void setSize(float width, float height);", "public ModernAutoSizeLabel(String text) {\r\n super(text, TEXT_COLOR);\r\n }", "private float getFontHeight(Paint paint) {\n Rect rect = new Rect();\n paint.getTextBounds(\"1\", 0, 1, rect);\n return rect.height();\n }", "public ModernAutoSizeLabel(String text, Font font) {\r\n super(text, font);\r\n }", "public StockEvent setFontSize(Integer fontSize) {\n this.fontSize = fontSize;\n return this;\n }", "private static void loadTextSizes(Context context)\n\t{\n\t\tDisplayMetrics metrics = context.getResources().getDisplayMetrics();\n\t\tTEXT_SIZE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, metrics);\n\t\tTEXT_SIZE_BIG = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 20, metrics);\n\t\tPADDING = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, metrics);\n\t\tTEXT_SPACE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 150, metrics);\n\t}", "private void setRawTextSize(float f) {\n if (f != this.mTextView.getPaint().getTextSize()) {\n this.mTextView.getPaint().setTextSize(f);\n boolean bl = false;\n if (Build.VERSION.SDK_INT >= 18) {\n bl = this.mTextView.isInLayout();\n }\n if (this.mTextView.getLayout() != null) {\n this.mNeedsAutoSizeText = false;\n try {\n Method method = this.getTextViewMethod(\"nullLayouts\");\n if (method != null) {\n method.invoke((Object)this.mTextView, new Object[0]);\n }\n }\n catch (Exception exception) {\n Log.w((String)\"ACTVAutoSizeHelper\", (String)\"Failed to invoke TextView#nullLayouts() method\", (Throwable)exception);\n }\n if (!bl) {\n this.mTextView.requestLayout();\n } else {\n this.mTextView.forceLayout();\n }\n this.mTextView.invalidate();\n }\n }\n }", "public void setText(String text)\n {\n getComponent().setText(text);\n invalidateSize();\n }", "public final void setFontSize(final int fontSize) {\n if (this.fontSize != fontSize) {\n this.fontSize = fontSize;\n flush();\n }\n }", "@Override\n public void fillText(String text, double x, double y, double maxWidth) {\n graphicsEnvironmentImpl.fillText(canvas, text, x, y, maxWidth);\n }", "public void drawWrapped(String str, double x, double y, double size, int color, double limit) {\n double scale = size / mcFont().FONT_HEIGHT;\n FontRenderer font = mcFont();\n List<String> list = split(str, limit * font.FONT_HEIGHT / size);\n //System.out.println(\"---{\" + list.size());\n for(String s : list) {\n //System.out.println(str);\n draw(s, x, y, size, color);\n y += size;\n } \n //System.out.println(\"---}\");\n }", "@RestrictTo(value={RestrictTo.Scope.LIBRARY_GROUP})\n void autoSizeText() {\n if (!this.isAutoSizeEnabled()) {\n return;\n }\n if (this.mNeedsAutoSizeText) {\n if (this.mTextView.getMeasuredHeight() <= 0) {\n return;\n }\n if (this.mTextView.getMeasuredWidth() <= 0) {\n return;\n }\n int n = this.invokeAndReturnWithDefault((Object)this.mTextView, \"getHorizontallyScrolling\", false) != false ? 1048576 : this.mTextView.getMeasuredWidth() - this.mTextView.getTotalPaddingLeft() - this.mTextView.getTotalPaddingRight();\n int n2 = this.mTextView.getHeight() - this.mTextView.getCompoundPaddingBottom() - this.mTextView.getCompoundPaddingTop();\n if (n <= 0) {\n return;\n }\n if (n2 <= 0) {\n return;\n }\n RectF rectF = TEMP_RECTF;\n synchronized (rectF) {\n TEMP_RECTF.setEmpty();\n AppCompatTextViewAutoSizeHelper.TEMP_RECTF.right = n;\n AppCompatTextViewAutoSizeHelper.TEMP_RECTF.bottom = n2;\n float f = this.findLargestTextSizeWhichFits(TEMP_RECTF);\n if (f != this.mTextView.getTextSize()) {\n this.setTextSizeInternal(0, f);\n }\n }\n }\n this.mNeedsAutoSizeText = true;\n }", "public static void setFont(String fontName, int fontSize){\n\t\tsetFont(fontName, fontSize, Font.PLAIN);\n\t}", "public abstract double drawString(AEColor clr, double font_size, String str, double mid_x, double mid_y);" ]
[ "0.75628656", "0.7524223", "0.70956826", "0.6899523", "0.6815246", "0.6622125", "0.6556834", "0.6508939", "0.64888674", "0.6448559", "0.64206725", "0.63915074", "0.6308614", "0.61636597", "0.61475635", "0.609652", "0.6085444", "0.60748374", "0.60732687", "0.60523885", "0.60514206", "0.6036404", "0.60290086", "0.60199136", "0.60159874", "0.6012693", "0.60102636", "0.5994436", "0.59880924", "0.598195", "0.59562904", "0.5954688", "0.59501123", "0.593477", "0.5910707", "0.59051347", "0.5879316", "0.58697605", "0.58666086", "0.58595437", "0.5857103", "0.5819973", "0.5805808", "0.58049256", "0.57947534", "0.5768732", "0.5756651", "0.5728406", "0.57234967", "0.57201695", "0.5714559", "0.569599", "0.56952626", "0.5693337", "0.5686266", "0.56773883", "0.5669922", "0.5648881", "0.56437796", "0.56422985", "0.5585158", "0.5580355", "0.5576186", "0.5560875", "0.55344063", "0.5515708", "0.55124927", "0.54973596", "0.549524", "0.549258", "0.5490032", "0.5467265", "0.5467265", "0.5459114", "0.5433674", "0.54305816", "0.5398367", "0.5398287", "0.5376229", "0.537336", "0.5362953", "0.5362397", "0.5359045", "0.53570217", "0.5353633", "0.5349576", "0.5345819", "0.53431296", "0.53377885", "0.5334961", "0.5312588", "0.5304588", "0.53023386", "0.53013235", "0.52958757", "0.52921134", "0.52915025", "0.52902925", "0.5289588", "0.5279836" ]
0.7566968
0
writeStats method saving player's stats using arraylist and string
public static void writeStats(String result, List<Integer> list) { for(int number : list) { result = result + " " + number + " "; } statsList.add(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "static void writeRanking(ArrayList<PlayerInfo> player){\n\t\ttry{\r\n\t\t\tFileOutputStream fos = new FileOutputStream(\"ranking.dat\");\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\r\n\t\t\toos.writeObject(player);\r\n\t\t\toos.flush();\r\n\t\t\toos.close();\r\n\t\t\tfos.close();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//return player;\r\n\t}", "public void addNewPlayerStatsToStats(String username) throws IOException{\r\n\t\tScanner statsReader = new Scanner(new BufferedReader(new FileReader(\"statistics.txt\")));\r\n\t\tint numberOfPlayers = statsReader.nextInt();\r\n\t\tPlayerStats[] statsDirectory = new PlayerStats[numberOfPlayers];\r\n\t\t\r\n\t\tfor(int count = 0; count < numberOfPlayers; count++) {\r\n\t\t\tPlayerStats tempPlayerStats = new PlayerStats();\r\n\t\t\t/* load temporary stats object with stats */\r\n\t\t\treadPlayerStats(tempPlayerStats, statsReader);\r\n\t\t\t/* add new stats object to directory */\r\n\t\t\tstatsDirectory[count] = tempPlayerStats;\r\n\t\t}\r\n\t\t\r\n\t\tstatsReader.close();\r\n\t\t/* rewrite the statistics file with user stats reset */\r\n\t\tFileWriter writer = new FileWriter(\"statistics.txt\");\r\n\t\tBufferedWriter statsWriter = new BufferedWriter(writer);\r\n\t\tnumberOfPlayers++;\r\n\t\tInteger numPlayers = numberOfPlayers;\r\n\t\tstatsWriter.write(numPlayers.toString()); // write the number of players\r\n\t\tstatsWriter.write(\"\\n\");\r\n\t\tfor(int count = 0; count < numberOfPlayers - 1; count++) { // - 1 because numberOfPlayers was incremented\r\n\t\t\tstatsWriter.write(statsDirectory[count].playerStatsToString()); // write player to statistics.txt\r\n\t\t}\r\n\t\t/* add new entry with 0s at end */\r\n\t\t\tInteger zero = 0;\r\n\t\t\tstatsWriter.write(username);\r\n\t\t\tstatsWriter.write(\"\\n\");\r\n\t\t\t\r\n\t\t\tfor(int count = 0; count < 5; count++) {\r\n\t\t\t\tstatsWriter.write(zero.toString());\r\n\t\t\t\tstatsWriter.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\tstatsWriter.close();\r\n\t}", "public static void writeToStringToFile(Player p)\r\n {\r\n try \r\n { \r\n //Create file \r\n PrintWriter fileOutput = new PrintWriter(new FileWriter(\"playersData.txt\", true), true); \r\n\r\n //Write data from given ArrayList to the file \r\n fileOutput.println(p);\r\n\r\n //Close file\r\n fileOutput.close();\r\n } \r\n catch (IOException ioException) \r\n { \r\n //Output error message \r\n System.out.println(\"Error: The file cannot be created\"); \r\n }//end try \r\n }", "public static void writePlayerToFile(ArrayList<Player> players)\r\n {\r\n clearFile(new File(\"players.txt\"));\r\n\r\n for(Player p : players)\r\n {\r\n writePlayerToFile(p);\r\n }//end for\r\n }", "public void FileWrite(Nimsys nimSys,ArrayList<Player> list)throws IOException{\r\n\t\tOutputStream out = new FileOutputStream(\"players.dat\");\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile(aa.hasNext()){ //each line includes the information below related to the players\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tout.write(in.getUserName().getBytes());\r\n\t\t\tout.write(' ');\r\n\t\t\tout.write(in.getSurName().getBytes());\r\n\t\t\tout.write(' ');\r\n\t\t\tout.write(in.getGivenName().getBytes());\r\n\t\t\tout.write(' ');\r\n\t\t\tout.write(String.valueOf(in.getGamePlay()).getBytes());\r\n\t\t\tout.write(' ');\r\n\t\t\tout.write(String.valueOf(in.getWinGame()).getBytes());\r\n\t\t\tout.write(' ');\r\n\t\t\tout.write(String.valueOf(in.getID()).getBytes());\r\n\t\t\tout.write('\\r');\r\n\t\t}\r\n\t}", "public void writeScores() throws IOException {\n if (this.list.isPresent() && this.toSave) {\n try (DataOutputStream out = new DataOutputStream(new FileOutputStream(this.file))) {\n for (final Pair<String, Integer> p : this.list.get()) {\n out.writeUTF(p.getX());\n out.writeInt(p.getY().intValue());\n }\n this.toSave = false;\n } catch (IOException e) {\n System.out.println(\"IOException on writing scores\");\n }\n }\n\n }", "private void writeToFile(){\r\n File file = new File(\"leaderboard.txt\");\r\n\r\n try {\r\n FileWriter fr = new FileWriter(file, true);\r\n BufferedWriter br = new BufferedWriter(fr);\r\n for(Player player : this.sortedPlayers){\r\n br.write(player.toString());\r\n br.write(\"\\n\");\r\n }\r\n br.close();\r\n fr.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public String playerStatsToString() {\r\n\t\t\tString stats = \"\";\r\n\t\t\tstats = stats + username + \"\\n\";\r\n\t\t\tstats = stats + numberOfWins + \"\\n\";\r\n\t\t\tstats = stats + numberOfGames + \"\\n\";\r\n\t\t\tstats = stats + numberOfAttacks + \"\\n\";\r\n\t\t\tstats = stats + numberOfSPAttacks + \"\\n\";\r\n\t\t\tstats = stats + numberOfMeals + \"\\n\";\r\n\t\t\treturn stats;\r\n\t\t}", "private void setStringStat(String value, int index) {\n String[] scores = readFromFile().split(\"\\n\");\n String[] stats = scores[currPlayer].split(\",\");\n stats[index] = value;\n scores[currPlayer] = String.join(\",\", stats);\n writeToFile(String.join(\"\\n\", scores));\n }", "private void writeStatsToFile() {\n\t\tString fileName = \"TypeaheadStats.dat\";\n\t\tString contents = \"Typeahead_Tasks,Index_Hits,Hit_Ratio,Avg_Time,Suffix_Time,Pruning\\n\";\n\t\tcontents += numOfSearchTasks + \n\t\t\t\t\",\" + numOfIndexHits + \n\t\t\t\t\",\" + 1.0 * numOfIndexHits / numOfSearchTasks + \n\t\t\t\t\",\" + totalTime / numOfSearchTasks +\n\t\t\t\t\",\" + suffixTreeTime / numOfSearchTasks + \n\t\t\t\t\",\" + pruningPercentage / numOfSearchTasks;\n\t\tFileManager.writeToFile(fileName, contents);\n\t}", "public void saveScores(){\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(topScores.get(0) + \"-\" + topScores.get(1) + \"-\" + topScores.get(2) + \"-\" + topScores.get(3) + \"-\" + topScores.get(4));\n writer.newLine();\n writer.write(topName.get(0) + \"-\" + topName.get(1) + \"-\" + topName.get(2) + \"-\" + topName.get(3) + \"-\" + topName.get(4));\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic boolean writeData(File file) {\n\n Collection<SoccerPlayer> soccerPlayers = stats.values();\n\n\n\n try {\n\n PrintWriter writer = new PrintWriter(file);\n\n for (SoccerPlayer sp : soccerPlayers) {\n\n writer.println(logString(sp.getFirstName()));\n writer.println(logString(sp.getLastName()));\n writer.println(logString(sp.getTeamName()));\n writer.println(logString(sp.getUniform()+\"\"));\n writer.println(logString(sp.getGoals() + \"\"));\n writer.println(logString(sp.getAssists() + \"\"));\n writer.println(logString(sp.getShots() + \"\"));\n writer.println(logString(sp.getSaves() + \"\"));\n writer.println(logString(sp.getFouls() + \"\"));\n writer.println(logString(sp.getYellowCards() + \"\"));\n writer.println(logString(sp.getRedCards() + \"\"));\n\n }\n\n writer.close();\n\n return true;\n\n }\n\n catch(java.io.FileNotFoundException ex) {\n\n return false;\n }\n\t}", "public static void saveStats() {\r\n\t\tif(Main.optionsCheckbox.getState()) FileUtils.exportGameOptions();\r\n\t\t\r\n\t\tif(Main.isFourHandedTeams) {\r\n\t\t\tif(Main.team1Checkbox.getState()) FileUtils.exportTeamFile(Main.teamOne);\r\n\t\t\tif(Main.team2Checkbox.getState()) FileUtils.exportTeamFile(Main.teamTwo);\r\n\t\t\tif(Main.teamPreviousCheckbox.getState()) FileUtils.exportTeamFile(Main.teamPrevious);\r\n\t\t}\r\n\t\t\r\n\t\tif(Main.isFourHandedSingle) {\r\n\t\t\tif(Main.player1Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerOne);\r\n\t\t\tif(Main.player2Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerTwo);\r\n\t\t\tif(Main.player3Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerThree);\r\n\t\t\tif(Main.player4Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerFour);\r\n\t\t\tif(Main.playerPreviousCheckbox.getState()) FileUtils.exportPlayerFile(Main.playerPrevious);\r\n\t\t}\r\n\t\t\r\n\t\tif(Main.isThreeHanded) {\r\n\t\t\tif(Main.player1Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerOne);\r\n\t\t\tif(Main.player2Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerTwo);\r\n\t\t\tif(Main.player3Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerThree);\r\n\t\t\tif(Main.playerPreviousCheckbox.getState()) FileUtils.exportPlayerFile(Main.playerPrevious);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void SavePlayerData() {\r\n\r\n Player player = (Player)Player.getPlayerInstance();\r\n\t\t\r\n\t\tString file = \"PlayerInfo.txt\";\r\n\t\tString playerlifepoint = \"\"+player.getLifePoints();\r\n\t\tString playerArmore = player.getArmorDescription();\r\n\t\ttry{\r\n\t\t\tPrintWriter print = new PrintWriter(file);\r\n\t\t\tprint.println(playerlifepoint);\r\n\t\t\tprint.println(playerArmore);\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void savePokemonData()\r\n {\r\n try\r\n {\r\n int currentPokemon = playerPokemon.getCurrentPokemon();\r\n\r\n FileWriter fw = new FileWriter(\"tempPlayerPokemon.txt\");\r\n\r\n List<String> list = Files.readAllLines(Paths.get(\"playerPokemon.txt\"), StandardCharsets.UTF_8);\r\n String[] pokemonList = list.toArray(new String[list.size()]);\r\n\r\n String currentPokemonStr = pokemonList[currentPokemon];\r\n String[] currentPokemonArray = currentPokemonStr.split(\"\\\\s*,\\\\s*\");\r\n\r\n currentPokemonArray[1] = Integer.toString(playerPokemon.getLevel());\r\n currentPokemonArray[3] = Integer.toString(playerPokemon.getCurrentHealth());\r\n currentPokemonArray[4] = Integer.toString(playerPokemon.getCurrentExperience());\r\n for(int c = 0; c < 4; c++)\r\n {\r\n currentPokemonArray[5 + c] = playerPokemon.getMove(c);\r\n }\r\n\r\n String arrayAdd = currentPokemonArray[0];\r\n for(int i = 1; i < currentPokemonArray.length; i++)\r\n {\r\n arrayAdd = arrayAdd.concat(\", \" + currentPokemonArray[i]);\r\n }\r\n\r\n pokemonList[currentPokemon] = arrayAdd;\r\n\r\n for(int f = 0; f < pokemonList.length; f++)\r\n {\r\n fw.write(pokemonList[f]);\r\n fw.write(\"\\n\");\r\n }\r\n fw.close();\r\n\r\n Writer.overwriteFile(\"tempPlayerPokemon\", \"playerPokemon\");\r\n }\r\n catch(Exception error)\r\n {\r\n }\r\n }", "public void writeScores(){\r\n // TODO: Write the high scores data to the file name indicated\r\n // TODO: by Settings.highScoresFileName.\r\n \tFile outFile=new File(Settings.highScoresFileName);\r\n \tPrintWriter out=null;\r\n \ttry{\r\n \t\tout=new PrintWriter(outFile);\r\n \t\tfor(int i=0; i<Settings.numScores; i++){\r\n \t\t\tout.println(scores[i]+\" \"+names[i]);\r\n \t\t}\r\n \t}catch(Exception e){} \t\r\n \tfinally{\r\n \t\tif(out!=null) out.close();\r\n }\r\n }", "private void saveScore() {\n try {\n PrintWriter writer = new PrintWriter(new FileOutputStream(new File(Const.SCORE_FILE), true));\n writer.println(this.player.getName() + \":\" + this.player.getGold() + \":\" + this.player.getStrength());\n writer.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public void writeToTxtStats() throws IOException{\n\t\tPath fileName = Path.of(\"stats.out\");\n \n\t\tString outputText = \"Day \" + day + \", Spring \" + inventory.get(0).getStock() + \", Egg \" + inventory.get(1).getStock() \n + \", Sausage \" + inventory.get(2).getStock() + \", Jelly \" + inventory.get(3).getStock()\n\t+ \", Pastry \" + inventory.get(4).getStock() + \", Outages \" + dailyDisruptions+ \"\";\n\t\toutputText = outputText + \"\\n\";\n Files.writeString(fileName, outputText, StandardOpenOption.APPEND);\n\t\t//Day x, Spring x, Egg x, Sausage x, Jelly x, Pastry x, Outages x \\n\n\t}", "@Override\n\tpublic void savePlayerData(OutputStream os) {\n\t\t\n\t}", "@Override\n\tpublic void savePlayerData(OutputStream os) {\n\n\t}", "private void sendStatsToServer(List<Statistic> stats)\n {\n if(stats == null)\n {\n System.out.println(\"COORDINATOR - Nothing to send yet\");\n return;\n }\n\n ClientResponse response;\n String serverURI = coordinator.getNode().getServerURI();\n\n try\n {\n WebResource webResource = RESTclient.resource(serverURI + \"/Statistics/\");\n response = webResource.type(\"application/json\").put(ClientResponse.class, new Gson().toJson(stats, new TypeToken<List<Statistic>>(){}.getType()));\n }\n catch (ClientHandlerException ce)\n {\n System.out.println(\"COORDINATOR - Server cloud connection refused - impossible to send data\");\n backupBuffer.add(stats);\n return;\n }\n\n switch (response.getStatus())\n {\n case 200:\n System.out.println(\"COORDINATOR - Sending statistics to server successful\");\n return;\n\n default:\n backupBuffer.add(stats);\n System.out.println(\"COORDINATOR - Failed sending statistics: HTTP error code: \" + response.getStatus());\n }\n }", "public static void writeStats(scoreSheet s)\n \t{\n \t\tPrintStream stats;\n \t\tScanner statsReader;\n \t\tString current = \"\";\n \t\tString currentLine;\n \t\tint i = 0;\n \t\tboolean found = false;\n \t\ttry {\n \t\t\tstatsReader = new Scanner(statisticsFile);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tSystem.out.println(\"Unable to save user statistics.\");\n \t\t\treturn;\n \t\t}\n \t\twhile (statsReader.hasNext())\n \t\t{\n \t\t\tcurrentLine = statsReader.nextLine();\n \t\t\tif (currentLine.equals(s.user))\n \t\t\t{\n \t\t\t\tfound = true;\n \t\t\t}\n \t\t\tif (i == NUM_STATS + 1)\n \t\t\t\t\tfound = false;\n \t\t\tif (found)\n \t\t\t{\n \t\t\t\ti++;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tcurrent += currentLine + \"\\n\";\n \t\t}\n \t\tcurrent += s.user + \"\\n\";\n \t\tcurrent += s.num1 + \"\\n\";\n \t\tcurrent += s.num2 + \"\\n\";\n \t\tcurrent += s.num3 + \"\\n\";\n \t\tcurrent += s.num4 + \"\\n\";\n \t\tcurrent += s.num5 + \"\\n\";\n \t\ttry\n \t\t{\n \t\t\tstats = new PrintStream(statisticsFile);\n \t\t}\n \t\tcatch (FileNotFoundException e) {\n \t\t\tSystem.out.println(\"Unable to save user statistics.\");\n \t\t\treturn;\n \t\t}\n \t\tSystem.out.println(\"Writing stats\");\n \t\tstats.print(current);\n \t\tstats.flush();\n \t\tstats.close();\n \t}", "public void addPlayerToPlayers(String username) throws IOException{\r\n\t\tScanner readPlayers = new Scanner(new BufferedReader(new FileReader(\"players.txt\")));\r\n\t\tint numberOfPlayers = readPlayers.nextInt();\r\n\t\tif(numberOfPlayers == 0) { // no need to store data to rewrite\r\n\t\t\ttry {\r\n\t\t\t\tFileWriter writer = new FileWriter(\"players.txt\");\r\n\t\t\t\tBufferedWriter playerWriter = new BufferedWriter(writer);\r\n\t\t\t\tnumberOfPlayers++;\r\n\t\t\t\tInteger numPlayers = numberOfPlayers; // allows conversion to string for writing\r\n\t\t\t\tplayerWriter.write(numPlayers.toString());\r\n\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\tplayerWriter.write(numPlayers.toString()); // write userId as 1 because only 1 player\r\n\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\tplayerWriter.write(username);\r\n\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\tplayerWriter.close();\r\n\t\t\t}\r\n\t\t\tcatch(IOException e) {\r\n\t\t\t\tSystem.out.println(e);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t/* Store all current usernames and userIds in a directory to rewrite to file */\r\n\t\t\tPlayerName[] directory = new PlayerName[numberOfPlayers];\r\n\t\t\t\r\n\t\t\tfor(int index = 0; index < numberOfPlayers; index++) {\r\n\t\t\t\tPlayerName playerName = new PlayerName();\r\n\t\t\t\tplayerName.setUserId(readPlayers.nextInt());\r\n\t\t\t\tplayerName.setUserName(readPlayers.next());\r\n\t\t\t\tdirectory[index] = playerName;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treadPlayers.close();\r\n\t\t\t/* Add a new player */\r\n\t\t\ttry {\r\n\t\t\t\tnumberOfPlayers++;\r\n\t\t\t\tFileWriter writer = new FileWriter(\"players.txt\");\r\n\t\t\t\tBufferedWriter playerWriter = new BufferedWriter(writer);\r\n\t\t\t\tInteger numPlayers = numberOfPlayers; // allows conversion to string for writing\r\n\t\t\t\tplayerWriter.write(numPlayers.toString());\r\n\t\t\t\tplayerWriter.write(\"\\n\"); // maintains format of players.txt\r\n\t\t\t\t\r\n\t\t\t\tfor(int index = 0; index < numberOfPlayers - 1; index++) { // - 1 because it was incremented\r\n\t\t\t\t\tInteger nextId = directory[index].getUserId();\r\n\t\t\t\t\tplayerWriter.write(nextId.toString());\r\n\t\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\t\tplayerWriter.write(directory[index].getUserName());\r\n\t\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tInteger lastId = numberOfPlayers;\r\n\t\t\t\tplayerWriter.write(lastId.toString());\r\n\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\tplayerWriter.write(username);\r\n\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\tplayerWriter.close();\r\n\t\t\t}\r\n\t\t\tcatch(IOException e) {\r\n\t\t\t\tSystem.out.println(e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treadPlayers.close();\r\n\t}", "public void updateTwoPlayersStatsInStats(PlayerStats stats1, PlayerStats stats2) throws IOException {\r\n\t\tScanner statsReader = new Scanner(new BufferedReader(new FileReader(\"statistics.txt\")));\r\n\t\tint numberOfPlayers;\r\n\t\tnumberOfPlayers = statsReader.nextInt();\r\n\t\tPlayerStats[] statsDirectory = new PlayerStats[numberOfPlayers];\r\n\t\t\r\n\t\tfor(int count = 0; count < numberOfPlayers; count++) {\r\n\t\t\tPlayerStats tempPlayerStats = new PlayerStats();\r\n\t\t\t/* load temporary stats object with stats */\r\n\t\t\treadPlayerStats(tempPlayerStats, statsReader);\r\n\t\t\t/* add new stats object to directory */\r\n\t\t\tstatsDirectory[count] = tempPlayerStats;\r\n\t\t}\r\n\t\t\r\n\t\tstatsReader.close();\r\n\t\t\r\n\t\t/* update the stats of the two players */\r\n\t\tfor(int index = 0; index < numberOfPlayers; index++) {\r\n\t\t\tif((statsDirectory[index].username).equals(stats1.username) == true) { // modify first player stats\r\n\t\t\t\tsetPlayerStats(statsDirectory[index], stats1);\r\n\t\t\t}\r\n\t\t\telse if((statsDirectory[index].username).equals(stats2.username) == true) { // modify second player stats\r\n\t\t\t\tsetPlayerStats(statsDirectory[index], stats2);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/* rewrite the statistics file with updated user stats */\r\n\t\tFileWriter writer = new FileWriter(\"statistics.txt\");\r\n\t\tBufferedWriter statsWriter = new BufferedWriter(writer);\r\n\t\tInteger numPlayers = numberOfPlayers;\r\n\t\tstatsWriter.write(numPlayers.toString()); // write the number of players\r\n\t\tstatsWriter.write(\"\\n\");\r\n\t\t\r\n\t\tfor(int count = 0; count < numberOfPlayers; count++) {\r\n\t\t\tstatsWriter.write(statsDirectory[count].playerStatsToString()); // write player to statistics.txt\r\n\t\t}\r\n\t\t\r\n\t\tstatsWriter.close();\r\n\t}", "@Override\n\tpublic void savePlayerData(OutputStream arg0) {\n\n\t}", "public static void saveBoxScore(){\n Engine engine = Utility.getEngine();\n ArrayList<Player> homePlayers = engine.getHomePlayers();\n ArrayList<Player> awayPlayers = engine.getAwayPlayers();\n ArrayList<String> output = new ArrayList<String>();\n output.add(\"Home team\");\n for(Player player : homePlayers){\n Player upToDatePlayer = Utility.getPlayer(player);\n output.add(upToDatePlayer.toString());\n }\n\n output.add(\"Away team\");\n for(Player player : awayPlayers){\n Player upToDatePlayer = Utility.getPlayer(player);\n output.add(upToDatePlayer.toString());\n }\n\n try {\n Path path = Paths.get(Constants.OUTPUT_FILE_PATH);\n Files.write(path,output,StandardCharsets.UTF_8);\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.toString());\n }\n\n System.exit(0);\n }", "private void updateFile() {\n\t\tPrintWriter outfile;\n\t\ttry {\n\t\t\toutfile = new PrintWriter(new BufferedWriter(new FileWriter(\"stats.txt\")));\n\t\t\toutfile.println(\"15\"); // this is the number\n\t\t\tfor (Integer i : storeInfo) {\n\t\t\t\toutfile.println(i); // we overwrite the existing files\n\t\t\t}\n\t\t\tfor (String s : charBought) {\n\t\t\t\toutfile.println(s); // overwrite the character\n\t\t\t}\n\t\t\tfor (String s : miscBought) {\n\t\t\t\toutfile.println(s);\n\t\t\t}\n\t\t\toutfile.close();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t}", "public static void writePlayerToFile(Player p)\r\n {\r\n try{\r\n //Create an \"players.txt\" file with an ObjectOutputStream\r\n FileOutputStream fileOut = new FileOutputStream(\"players.txt\", true);\r\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut); \r\n\r\n //Write the Player objetct to the file \r\n objectOut.writeObject(p);\r\n //Close file\r\n objectOut.close();\r\n }catch (IOException ioException) \r\n { \r\n //Output error message \r\n System.out.println(\"Error: The file cannot be created\"); \r\n }//end try\r\n }", "private static void writeStats(String[] args, Connection conn)\n\t\t\tthrows ArgumentNumberException {\n\t\tif (args.length != 2 && args.length != 1) {\n\t\t\thandleWrongSizeException();\n\t\t}\n\t\tString statToOrderBy = getStatToOrderBy(args);\n\t\tResultSet rs = generateResultSetForAllChaos(conn, statToOrderBy);\n\t\twriteStatsToFile(rs);\n\t}", "@Override\n\tpublic void savePlayerData(OutputStream arg0)\n\t{\n\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 }", "private void writeAchievements() {\n\t\tDataStorage dataStorage = new DataStorage();\n\t\tdataStorage.setAchievements(jsonObject.toString());\n\t}", "public void saveGame(DataOutputStream s) throws IOException {\n s.writeUTF(level.toString());\n s.writeUTF(level.getName());\n s.writeInt(lives);\n s.writeInt(points);\n s.writeInt(wonLevels);\n pacman.writeEntity(s);\n s.writeInt(entities.size());\n for (GameEntity entity : entities)\n entity.writeEntity(s);\n }", "public static void writeScoreToFile(ArrayList<String> sArrayList,int score, Context context,String userName){\n\n int[] temp = new int[sArrayList.size()];\n Scanner in = null;\n\n //get the score part from the txt file\n for(int i=0;i<sArrayList.size();i++){\n\n in = new Scanner(sArrayList.get(i)).useDelimiter(\"[^0-9]+\");\n int integer = in.nextInt();\n temp[i]=integer;\n Log.d(\"array temp[]\", \"writeScoreToFile: \"+temp[i]+\"\\n\");\n in.close();\n\n }\n\n int tempVal=0;\n String tempString=null;\n if(score>temp[4]) {\n\n temp[4]=score;\n sArrayList.set(4,String.format(\"%-10s%d\",userName,score));\n for(int j=0;j<sArrayList.size()-1;j++){\n for(int k=1;k<sArrayList.size()-j;k++){\n if(temp[k-1]<temp[k]){\n tempVal = temp[k-1];\n temp[k-1]=temp[k];\n temp[k]=tempVal;\n tempString = sArrayList.get(k-1);\n sArrayList.set(k-1,sArrayList.get(k));\n sArrayList.set(k,tempString);\n }\n }\n }\n\n\n //print arraylist\n for(int i=0;i<sArrayList.size();i++){\n Log.d(\"Arraylistcontent\", \"writeScoreToFile: \"+sArrayList.get(i));\n //Log.d(\"sizeArrayList\", \"writeScoreToFile: \"+sArrayList.size());\n }\n\n\n try {\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(context.openFileOutput(\"score.txt\", Context.MODE_PRIVATE));\n for(int i=0;i<sArrayList.size();i++){\n //use each line for one score\n outputStreamWriter.write(sArrayList.get(i)+\"\\n\");\n }\n outputStreamWriter.close();\n\n } catch (FileNotFoundException e) {\n Log.e(\"FileNotFoundException\", \"File write failed: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"IOException\", \"File write failed: \" + e.toString());\n }\n Log.d(\"end of the log\", \"writeScoreToFile: \"+\".......\");\n }\n }", "public void saveGame(String fileName){\n Gson gson = new Gson();\n String userJson = gson.toJson(player);\n\n try(Writer w = new BufferedWriter(new OutputStreamWriter( new FileOutputStream(fileName), \"UTF-8\"))) {\n w.write(userJson);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void savePerRankListPerformanceFile(List<String> ids, List<Double> scores, String prpFile) {\n/* 1455 */ try (BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(prpFile)))) {\n/* 1456 */ for (int i = 0; i < ids.size(); i++)\n/* */ {\n/* */ \n/* 1459 */ out.write(this.testScorer.name() + \" \" + (String)ids.get(i) + \" \" + scores.get(i));\n/* 1460 */ out.newLine();\n/* */ }\n/* */ \n/* 1463 */ } catch (Exception ex) {\n/* */ \n/* 1465 */ throw RankLibError.create(\"Error in Evaluator::savePerRankListPerformanceFile(): \", ex);\n/* */ } \n/* */ }", "public void setStats(String[] stats) {\n this.stats = stats;\n }", "void savePlayer(String playerIdentifier, int score, int popID) {\n //save the players top score and its population id\n Table playerStats = new Table();\n playerStats.addColumn(\"Top Score\");\n playerStats.addColumn(\"PopulationID\");\n TableRow tr = playerStats.addRow();\n tr.setFloat(0, score);\n tr.setInt(1, popID);\n\n Constants.processing.saveTable(playerStats, \"data/playerStats\" + playerIdentifier + \".csv\");\n\n //save players brain\n Constants.processing.saveTable(brain.NetToTable(), \"data/player\" + playerIdentifier + \".csv\");\n }", "public void updatePlayerDAO(ArrayList<Player> playerList){\n\t\ttry {\n\t\t\tPrintStream writer = new PrintStream(new FileOutputStream(\"data\\\\player.csv\", false));\n\t\t\t writer.println(\"userName,fullName,password,gold,exp,noOfLand\");\n \n\t\t\tfor(Player player: playerList){\n\t\t\t\twriter.println(player.getUserName() + \",\" + player.getFullName() + \",\" + \n\t\t\t\tplayer.getPassword() + \",\" + player.getGold() + \",\" + player.getExp() + \",\" + player.getNoOfLand());\n\t\t\t}\n\t\t\twriter.close();\n\t\t}\n\t\t\t\n\t\tcatch (IOException e) {\n\t\t\t//Specify the location of IOException\n\t\t\te.printStackTrace();\n\t\t}\t \n\t}", "public void saveStats() {\n this.saveStats(null);\n }", "public void writeFile(){\n try{\n FileWriter writer = new FileWriter(\"Highscores.txt\");\n for (int i = 0; i<10; i++){\n if (i >= this.highscores.size()){\n break;\n }\n writer.write(String.valueOf(this.highscores.get(i)) + \"\\n\");\n }\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void printAllPlayerStats(List<Player> players);", "public String save(){\r\n StringBuilder saveString = new StringBuilder(\"\");\r\n //currentPlayer, numPlayer, players[], \r\n saveString.append(currentPlayer + \" \");\r\n saveString.append(numPlayers + \" \");\r\n \r\n int i = 0;\r\n while(i < numPlayers){\r\n saveString.append(playerToString(players[i]) + \" \");\r\n i = i + 1;\r\n }\r\n\t\t\r\n\t\t//encrypt saveString\r\n\t\tString result = encryptSave(saveString.toString());\r\n \r\n return result;\r\n }", "public void save()\n\t{\n\t\tfor(PlayerData pd : dataMap.values())\n\t\t\tpd.save();\n\t}", "public static void save(){\n\t\ttry{\n\t\t\tFile f=new File(Constants.PATH+\"\\\\InitializeData\\\\battlesavefile.txt\");\n\t\t\tPrintWriter pw=new PrintWriter(f);\n\t\t\tpw.println(turn);\n\t\t\tpw.println(opponent.toString());\n\t\t\tfor(Unit u:punits){\n\t\t\t\tpw.println(u.toString());\n\t\t\t}\n\t\t\tpw.println(\"End Player Units\");\n\t\t\tfor(Unit u:ounits){\n\t\t\t\tpw.println(u.toString());\n\t\t\t}\n\t\t\tpw.println(\"End Opponent Units\");\n\t\t\tpw.println(priorities);\n\t\t\tpw.println(Arrays.asList(xpgains));\n\t\t\tpw.println(spikesplaced+\" \"+numpaydays+\" \"+activeindex+\" \"+activeunit.getID()+\" \"+weather+\" \"+weatherturn);\n\t\t\tpw.println(bfmaker.toString());\n\t\t\tpw.close();\n\t\t}catch(Exception e){e.printStackTrace();}\n\t}", "void save(int Wave, Set<UUID> players);", "public void onSaveListen() {\n _gamesList.get(_gamePos).getPlayers().add(playerName);\n // Increment the number of players that have joined the game\n _gamesList.get(_gamePos).setNumPlayers(_gamesList.get(_gamePos).getNumPlayers() + 1);\n\n TextView playersBlock = (TextView) findViewById(R.id.playersBlock);\n playersBlock.setText(\"\");\n List<String> players = _gamesList.get(_gamePos).getPlayers();\n for(int i = 0; i < players.size(); i++) {\n Log.d(\"GamePlayerSize\", Integer.toString(_gamesList.get(_gamePos).getPlayers().size()));\n if (i < players.size() - 1) {\n playersBlock.append(players.get(i) + \", \");\n }\n else {\n // Don't put a comma after the last one\n playersBlock.append(players.get(i));\n }\n }\n\n // Update the shared preferences with the edited game\n SharedPreferences gamesPref = this.getSharedPreferences(GAMES_FILE, MODE_PRIVATE);\n Gson gson = new Gson();\n\n SharedPreferences.Editor prefsEditor = gamesPref.edit();\n\n // Convert the games list into a json string\n String json = gson.toJson(_gamesList);\n Log.d(\"MainActivity\", json);\n\n // Update the _gamesMasterList with the modified _game\n prefsEditor.putString(GAME_KEY, json);\n prefsEditor.commit();\n\n Context context = getApplicationContext();\n CharSequence text = \"You have joined the game!\";\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "public void writePlayerFile(String fileName)\r\n\t{\r\n\t\tPrintWriter fileWrite;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfileWrite = new PrintWriter(new FileOutputStream(fileName));\r\n\t\t\tfileWrite.println(\"Name \" + name);\r\n\t\t\tfileWrite.println(\"HP \" + hp);\r\n\t\t\tfileWrite.println(\"Strength \" + strength);\r\n\t\t\tfileWrite.println(\"Speed \" + speed);\r\n\t\t\tfileWrite.println(\"Weapon \" + weapon);\r\n\t\t\tfileWrite.close();\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "public void saveStats(int winnerId, GameActivity gameActivity) {\n Player player0;\n CardSuit trumpSuit;\n ArrayList<Card> playerPile;\n if (gameActivity.modality == 0) {\n player0 = GameMaster.getInstance().getPlayers().get(0);\n if (player0 instanceof PlayerAI){return;}\n trumpSuit = GameTable.getInstance().getTrump();\n } else {\n RemoteGameMaster remoteGameMaster = RemoteGameMaster.getInstance();\n trumpSuit = remoteGameMaster.getTrump().getSuit();\n player0 = remoteGameMaster.getLocalPlayer();\n }\n //update stats only if match is played by a real player\n if(player0 instanceof PlayerAI){return;}\n\n totalPoints += player0.calculatePoints();\n playerPile = player0.getPile();\n if (winnerId == 0) {\n wins++;\n } else if (winnerId == 1) {\n losses++;\n } else {\n draws++;\n }\n analyzePile(playerPile, trumpSuit);\n SharedPreferencePersistence persistance = SharedPreferencePersistence.getInstance(context);\n persistance.saveStatistic(this);\n }", "private synchronized void sendGameData(PrintWriter stream) {\r\n\t\tstream.println(\"1\");\r\n\t\tstream.println(Integer.toString(XSIZ));\r\n\t\tstream.println(Integer.toString(YSIZ));\r\n\t\tstream.println(Integer.toString(ZOMBIE_BORDER));\r\n\t\tstream.println(Integer.toString(MAX_NR_ZOMBIES));\r\n\t\tstream.println(Integer.toString(SQ_SIZE));\r\n\t\tif(dead){\r\n\t\t\tstream.println(\"true\");\r\n\t\t}else{\r\n\t\t\tstream.println(\"false\");\r\n\t\t}\r\n\t\t\r\n\t\t//planten doorsturen\r\n\t\tsendPlants(stream);\r\n\t\t//zombies doorsturen\r\n\t\tsendZombies(stream);\r\n\r\n\t\tstream.flush();\r\n\t}", "private static void displayPlayerStats(Object[] stats, String[] helmetSlot, String[] chestSlot, String[] weaponSlot, String[] glovesSlot, String[] bootsSlot){\r\n System.out.println(\"Name: \" + stats[0]);\r\n System.out.println(\"Level: \" + stats[1]);\r\n System.out.println(\"Experience: \" + stats[2]);\r\n System.out.println(\"HP: \" + stats[3] + \"/\" + stats[4]);\r\n System.out.println(\"MP: \" + stats[5] + \"/\" + stats[6]);\r\n System.out.println(\"Attack: \" + stats[7]);\r\n System.out.println(\"Defense: \" + stats[8]);\r\n System.out.println(\"Strength: \" + stats[9]);\r\n System.out.println(\"Intelligence: \" + stats[10]);\r\n System.out.println(\"Vitality: \" + stats[11]);\r\n System.out.println(\"Stat Points Available: \" + stats[12]);\r\n System.out.println(\"Gold: \" + stats[13]);\r\n System.out.println(\"Helmet: [\" + helmetSlot[0] + \"]\" + \"{\" + getItemRarity(helmetSlot) + \"}\");\r\n System.out.println(\"Chest Plate: [\" + chestSlot[0] + \"]\" + \"{\" + getItemRarity(chestSlot) + \"}\");\r\n System.out.println(\"Gloves: [\" + glovesSlot[0] + \"]\" + \"{\" + getItemRarity(glovesSlot) + \"}\");\r\n System.out.println(\"Boots: [\" + bootsSlot[0] + \"]\" + \"{\" + getItemRarity(bootsSlot) + \"}\");\r\n System.out.println(\"Weapon: [\" + weaponSlot[0] + \"]\" + \"{\" + getItemRarity(weaponSlot) + \"}\");\r\n }", "@Override\r\n\tpublic void SavePlayerName() {\r\n\t\tPlayer player = (Player)Player.getPlayerInstance();\r\n\t\t\r\n\t\tString file = \"PlayerName.txt\";\r\n\t\tString playerName = player.getName();\r\n\t\ttry{\r\n\t\t\tPrintWriter print = new PrintWriter(file);\r\n\t\t\tprint.println(playerName);\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void save(PrintWriter pw) {\n\t\tpw.println(color);\n\t\tpw.println(name);\n\t\tpw.println(diceValue);\n\t\tpw.println(diceTossed);\n\t\tfor(int i = 1; i<=4; i++)\n\t\t\tif(hasPawn(i))\n\t\t\t\tpw.println(pawns[i-1].getPosition());\n\t\t\telse\n\t\t\t\tpw.println(0);\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 }", "public void saveGameData(int score, int tiempo, String replay_path){\n connect();\n\n try {\n doStream.writeUTF(\"END_GAME_DATA\");\n doStream.writeUTF(currentUser.getUserName());\n doStream.writeInt(score);\n doStream.writeInt(tiempo);\n doStream.writeUTF(replay_path);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n disconnect();\n }", "public void save() {\n\t\ttry {\n\t\t\t// use buffering\n\t\t\tOutputStream file = new FileOutputStream(\"games.txt\");\n\t\t\tOutputStream buffer = new BufferedOutputStream(file);\n\t\t\tObjectOutput output = new ObjectOutputStream(buffer);\n\t\t\ttry {\n\t\t\t\tif (gameOver) {\n\t\t\t\t\t//notify no need to save completed game\n\t\t\t\t} else {\n\t\t\t\t\tgames.add(this);\n\t\t\t\t\toutput.writeObject(games);\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\toutput.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Save not successful\");\n\t\t}\n\t}", "private static void writeStatistics(String name) throws IOException {\n fileWriter = new BufferedWriter(new FileWriter(PATH + \"/uid/\" + name));\n fileWriter.write(\"Number of Nodes total: \" + globalVertexCount);\n fileWriter.newLine();\n fileWriter.write(\"Number of Edges total: \" + globalEdgeCount);\n fileWriter.newLine();\n fileWriter.write(\"######################################\");\n fileWriter.newLine();\n fileWriter.write(\"Nodes counted:\");\n fileWriter.newLine();\n for (Map.Entry<String, Long> entry : counterMapNodes.entrySet()) {\n fileWriter\n .write(entry.getKey().replace(\"_0.csv\", \"\") + \": \" + entry.getValue());\n fileWriter.newLine();\n }\n fileWriter.write(\"######################################\");\n fileWriter.newLine();\n fileWriter.write(\"Edges counted:\");\n fileWriter.newLine();\n for (Map.Entry<String, Long> entry : counterMapEdges.entrySet()) {\n fileWriter\n .write(entry.getKey().replace(\"_0.csv\", \"\") + \": \" + entry.getValue());\n fileWriter.newLine();\n }\n fileWriter.close();\n }", "private synchronized void sendDecreaceHealth(){\r\n\t\t\tfor(PrintWriter p : players){\r\n\t\t\t\tif(p != null){\r\n\t\t\t\t\tp.println(\"6\");\r\n\t\t\t\t\tp.println(Integer.toString(x));\r\n\t\t\t\t\tp.println(Integer.toString(y));\r\n\t\t\t\t\tp.flush();\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}", "public void writeSimScore() throws IOException, MalformedURLException, ParseException {\n FileWriter fw = new FileWriter(new File(scoreFile+new Double(alphaValue).toString()+\".txt\")); \r\n BufferedWriter bw = new BufferedWriter(fw);\r\n\r\n int numQueries = queryList.size();\r\n for (int i = 0; i < numQueries; i++) {\r\n String query1 = queryList.get(i);\r\n for (int j = 0; j < numQueries; j++) {\r\n String query2 = queryList.get(j);\r\n double sim = alphaValue * scorematrix[i][j] + (1 - alphaValue) * calSemanticSim(i, j);\r\n bw.write(new Double(sim).toString());\r\n bw.write(\" \");\r\n }\r\n // System.out.println(\"entered \" + i);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n\r\n }", "public void printPlayerStat(Player player);", "public void saveStats(Runnable postSaveStatsTask) {\n Player player = SkyWarsReloaded.get().getServer().getPlayer(UUID.fromString(uuid));\n String playerName = player != null ? player.getName() : uuid;\n Bukkit.getLogger().log(Level.WARNING, \"Now saving stats of player \" + playerName);\n\n PlayerStat self = this;\n new BukkitRunnable() {\n @Override\n public void run() {\n saveStatsSync(self);\n if (postSaveStatsTask != null) postSaveStatsTask.run();\n }\n }.runTask(SkyWarsReloaded.get());\n }", "public void resetPlayerStatsInStats(String username) throws IOException{\r\n\t\tScanner statsReader = new Scanner(new BufferedReader(new FileReader(\"statistics.txt\")));\r\n\t\tint numberOfPlayers;\r\n\t\tboolean found = false; // used to determine if username is in statistics.txt\r\n\t\tnumberOfPlayers = statsReader.nextInt();\r\n\t\tPlayerStats[] statsDirectory = new PlayerStats[numberOfPlayers];\r\n\t\t\r\n\t\tfor(int count = 0; count < numberOfPlayers; count++) {\r\n\t\t\tPlayerStats tempPlayerStats = new PlayerStats();\r\n\t\t\t/* load temporary stats object with stats */\r\n\t\t\treadPlayerStats(tempPlayerStats, statsReader);\r\n\t\t\t/* add new stats object to directory */\r\n\t\t\tstatsDirectory[count] = tempPlayerStats;\r\n\t\t}\r\n\t\t\r\n\t\tstatsReader.close();\r\n\t\t\r\n\t\t/* update the stats of the two players */\r\n\t\tfor(int index = 0; index < numberOfPlayers; index++) {\r\n\t\t\tif((statsDirectory[index].username).equals(username) == true) { // modify first player stats\r\n\t\t\t\tresetPlayerStats(statsDirectory[index]);\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(found) {\r\n\t\t\t/* rewrite the statistics file with user stats reset */\r\n\t\t\tFileWriter writer = new FileWriter(\"statistics.txt\");\r\n\t\t\tBufferedWriter statsWriter = new BufferedWriter(writer);\r\n\t\t\tInteger numPlayers = numberOfPlayers;\r\n\t\t\tstatsWriter.write(numPlayers.toString()); // write the number of players\r\n\t\t\tstatsWriter.write(\"\\n\");\r\n\t\t\t\r\n\t\t\tfor(int count = 0; count < numberOfPlayers; count++) {\r\n\t\t\t\tstatsWriter.write(statsDirectory[count].playerStatsToString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tstatsWriter.close();\r\n\t\t}\r\n\t\t// else if username was not found in statistics.txt, do not make changes\r\n\t}", "private void chatSave() {\n try{\n //create a text file to write the chatList to\n PrintStream print =\n new PrintStream(new FileOutputStream(\"log.txt\", true));\n //write each line of the array to the file \n for (String str:chatList)\n print.println(str);\n //once each record has been written to the file, close it.\n print.close();\n } catch (IOException e) {\n // exception handling\n }\n }", "public static void updateScores(BattleGrid player) {\n\t String fileName = SCORE_FILE_NAME;\n\t ArrayList<String> listOfScores = new ArrayList<String>(); //Also contains player names\n\t \n\t //First read old content of file and place in string ArrayList\n\t try {\n\t FileReader readerStream = new FileReader(fileName);\n\t BufferedReader bufferedReader = new BufferedReader(readerStream);\n\t \n\t //Read First Line\n\t String readLine = bufferedReader.readLine();\n\t \n\t while(readLine != null) {\n\t listOfScores.add(readLine);\n\t readLine = bufferedReader.readLine();\n\t }\n\t \n\t readerStream.close();\n\t }\n\t catch (IOException e) {\n\t //Situation where file was not able to be read, in which case we ignore assuming we create a new file.\n\t System.out.println(\"Failed to create stream for reading scores. May be ok if its the first time we set scores to this file.\");\n\t \n\t }\n\t \n\t //Determine location of new player (if same score then first in has higher ranking)\n\t int playerScore = player.getPlayerScore();\n\t int storedPlayerScore;\n\t ArrayList<String> lineFields = new ArrayList<String>();\n\t \n\t //Run code only if there are scores previously in file and the name of the user is not null\n\t if (!listOfScores.isEmpty() && (player.name != null)) {\n\t for (int index = 0; index < listOfScores.size(); index++) {\n\t //Retrieve String array of fields in line\n\t lineFields = (returnFieldsInLine(listOfScores.get(index)));\n\t \n\t //Convert score from string to int (2nd element)\n\t storedPlayerScore = Integer.parseInt(lineFields.get(1));\n\t lineFields.clear(); //Clear out for next set\n\t \n\t //Compare with new score to be added and inserts, shifting old element right\n\t if (storedPlayerScore < playerScore) {\t \n\t listOfScores.add(index, player.name + DELIMITER + playerScore);\t \n\t\t break; //Once we found the correct location we end the loop\n\t } \n\t }\n\t }\n\t //When it's the first code to be entered\n\t else\n\t listOfScores.add(player.name + DELIMITER + playerScore);\n\t \n\t //Delete old content from file and add scores again with new one.\n\t try {\n\t FileWriter writerStream = new FileWriter(fileName);\n\t PrintWriter fileWriter = new PrintWriter(writerStream);\n\t \n\t for (String index : listOfScores) {\n\t fileWriter.println(index);\n\t }\n\t \n\t writerStream.close(); //Resource Leaks are Bad! :(\n\t }\n\t catch (IOException e) {\n\t System.out.println(\"Failed to create stream for writing scores.\");\n\t } \n\t \n\t }", "void saveData(PrintWriter out, Player player, Computer computer, Object strategy) {\r\n\t\t\r\n\t\tout.println(\"CompGrid:\");\r\n\t\tint[][] saveCompGrid = new int[Computer.computerGrid.length][Computer.computerGrid[0].length];\r\n\t\tfor (int i = 0; i < Computer.computerGrid.length; ++i) {\r\n\t saveCompGrid[i] = new int[Computer.computerGrid[i].length];\r\n\t for (int j = 0; j < saveCompGrid[i].length; ++j) {\r\n\t saveCompGrid[i][j] = Computer.computerGrid[i][j];\r\n\t out.print(saveCompGrid[i][j]);\r\n\t }\r\n\t out.println(\"\");\r\n\t\t}\r\n\t\tif(strategy instanceof HitStrategy)\r\n\t\t\tout.println(\"Computer Score: \"+ ((HitStrategy)strategy).getScore());\r\n\t\telse\r\n\t\t\tout.println(\"Computer Score: \"+ ((HitStrategySalvo)strategy).getScore());\r\n\t\tout.print(\"Computer Sunken ships:\");\r\n\t\tsaveComputerSunkenShips(out);\r\n\t\tout.println(\"Computer ships status: \");\r\n\t\tsaveComputerShipsMap(out);\r\n\t\tout.print(\"Coordinates hit:\");\r\n\t\tsetComputerCoordinatesHit(Computer.coordinatesHit);\r\n\t\tsaveComputerCoordinatesHit(out);\r\n\t\tout.println(\"ShipGrid:\");\r\n\t\tint[][] saveUserGrid = new int[Player.userGrid.length][Player.userGrid[0].length];\r\n\t\tfor (int i = 0; i < Player.userGrid.length; ++i) {\r\n\t saveUserGrid[i] = new int[Player.userGrid[i].length];\r\n\t for (int j = 0; j < saveUserGrid[i].length; ++j) {\r\n\t saveUserGrid[i][j] = Player.userGrid[i][j];\r\n\t out.print(saveUserGrid[i][j]);\r\n\t }\r\n\t out.println(\"\");\r\n\t\t}\r\n\t\tout.println(\"Player Score: \"+computer.getScoreComp());\r\n\t\tout.print(\"Player Sunken ships:\");\r\n\t\tsaveUserSunkenShips(out);\r\n\t\tout.println(\"Player ships status: \");\r\n\t\tsaveUserShipsMap(out);\r\n\t\tout.print(\"Coordinates hit:\");\r\n\t\tsetComputerCoordinatesHit(Computer.coordinatesHit);\r\n\t\tsaveUserCoordinatesHit(out);\t\t\r\n\t}", "public void updateScoreFile() {\n try {\n outputStream = new ObjectOutputStream(new FileOutputStream(HIGHSCORE_FILE));\n outputStream.writeObject(scores);\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n } finally {\n try {\n if (outputStream != null) {\n outputStream.flush();\n outputStream.close();\n }\n } catch (IOException e) {\n }\n }\n }", "public static void SaveAchievements()\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(achievements_file_name, \"UTF-8\");\n int actualLine = 0, nb_achievements_done = 0;\n while(actualLine<Achievement.NB_ACHIEVEMENTS)\n {\n boolean currentValue = Achievement.achievements_done[actualLine];\n if(currentValue)\n nb_achievements_done++;\n writer.print(Utilities.BoolToInt(currentValue) + \"\\r\\n\");\n actualLine++;\n }\n writer.close();\n Achievement.nb_achievements_done = nb_achievements_done;\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + achievements_file_name + \".\"); }\n }", "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 interface DataWriter {\n\n /*\n * Program waits until the entire game is over to ensure that the moves from the previous game\n * are not used in any of the decision making. Should only look at past, complete games as the\n * current game would not be useful anyways.\n */\n void writeGame(Game game, List<File> existingFiles) throws MoveAlreadyWrittenException, ResultAlreadyWrittenException;\n\n void deleteAllMoves(List<File> existingFiles);\n\n void deleteStats(String fileName);\n\n boolean initStatsFile();\n\n boolean writeStats(String fileName);\n}", "private void reportToFile() {\n try {\n fileWriter = new FileWriter(\"GameStats.txt\");\n fileWriter.write(reportContent);\n fileWriter.close();\n }\n catch (IOException ioe) {\n System.err.println(\"IO Exception thrown while trying to write to file GameStats.txt\");\n }\n }", "public void addOn(ArrayList array) {\n try {\n PrintWriter writer;\n if (array.get(0) instanceof Integer)\n writer = new PrintWriter(\"points.txt\");\n else writer = new PrintWriter(\"names.txt\");\n\n for (int i=0; i<array.size(); i++)\n writer.println(array.get(i));\n writer.close();\n } catch (IOException e)\n {}\n }", "public void save() {\n\t\tlog.log(\"Attempting to save...\");\n\t\tPath spath = Paths.get(getFullSavePath());\n\t\tPath cpath = Paths.get(getFullSavePath() + \"units/\");\n\t\ttry {\n\t\t\tif(!Files.exists(spath))\n\t\t\t\tFiles.createDirectory(spath);\n\t\t\tif(!Files.exists(cpath))\n\t\t\t\tFiles.createDirectory(cpath);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\n\t\tFile[] files = new File(cpath.toString()).listFiles();\n\t\tfor(File f : files) {\n\t\t\tf.delete();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tBufferedWriter mfestWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"progress.txt\"));\n\t\t\tmfestWriter.write(name);\n\t\t\tmfestWriter.close();\n\t\t\tfor(MapCharacter mc : getFriendlies()) {\n\t\t\t\tBufferedWriter charWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"units/\"\n\t\t\t\t\t\t+ mc.getEnclosed().getDirName()));\n\t\t\t\tcharWriter.write(mc.getEnclosed().save());\n\t\t\t\tcharWriter.close();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\t\tlog.log(\"Game saved.\");\n\t}", "private void writeFile(List<ClubPointsDTO> clubs) {\n\t\tFileWriter file = null;\n\t\ttry {\n\n\t\t\tfile = new FileWriter(\"clubs.txt\");\n\n\t\t\t// Escribimos linea a linea en el fichero\n\t\t\tfile.write(\"CLUB\\tPUNTOS\\r\\n\");\n\t\t\tfor(ClubPointsDTO c : clubs)\n\t\t\t\tfile.write(c.getName()+\"\\t\"+c.getPoints()+\"\\r\\n\");\n\n\t\t\tfile.close();\n\n\t\t} catch (Exception ex) {\n\t\t\tthrow new FileException();\n\t\t}\n\t}", "public static void writeObject() {\r\n ChunkedCharBuffer buf = new ChunkedCharBuffer();\r\n for (Map.Entry<String, CronJob> entry : getInstance().events.entrySet()) {\r\n CronJob event = entry.getValue();\r\n buf.append(entry.getKey());\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getInterval()));\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getStartTime().getTime()));\r\n buf.append(\"|\");\r\n buf.append(event.getCommandString());\r\n buf.append(\"|\");\r\n buf.append(event.getUser());\r\n buf.append(\"|\");\r\n buf.append(event.getUserService());\r\n buf.append(\"\\n\");\r\n }\r\n if (buf.size() > 0) {\r\n try {\r\n OutputStreamWriter out = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(FILE, false)));\r\n buf.writeTo(out);\r\n out.flush();\r\n out.close();\r\n } catch (Exception e) {\r\n LoggingService.getInstance().serverLog(\"Error writing statistics: \" + e);\r\n }\r\n }\r\n }", "private String getStringStat(int index) {\n String[] scores = readFromFile().split(\"\\n\");\n String[] stats = scores[currPlayer].split(\",\");\n return stats[index];\n }", "public void showStats() {\r\n List<String> list = new ArrayList();\r\n for (int i = 1; i < 31; i++) {\r\n switch (i) {\r\n case 4:\r\n list.add(name);\r\n break;\r\n case 6:\r\n list.add(String.valueOf(stats.get(\"name\")));\r\n break;\r\n case 7:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[0]));\r\n break;\r\n case 8:\r\n list.add(\"Score\");\r\n break;\r\n case 9:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[1]));\r\n break;\r\n case 10:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[0]));\r\n break;\r\n case 11:\r\n list.add(\"Max Break\");\r\n break;\r\n case 12:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[1]));\r\n break;\r\n case 13:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[0]));\r\n break;\r\n case 14:\r\n list.add(\"Fouls\");\r\n break;\r\n case 15:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[1]));\r\n break;\r\n case 16:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[0]));\r\n break;\r\n case 17:\r\n list.add(\"Misses\");\r\n break;\r\n case 18:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[1]));\r\n break;\r\n case 19:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[0]));\r\n break;\r\n case 20:\r\n list.add(\"Pots\");\r\n break;\r\n case 21:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[1]));\r\n break;\r\n case 22:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[0]));\r\n break;\r\n case 23:\r\n list.add(\"Shots\");\r\n break;\r\n case 24:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[1]));\r\n break;\r\n case 25:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 26:\r\n list.add(\"Pot Percentage\");\r\n break;\r\n case 27:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n case 28:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 29:\r\n list.add(\"Safety Percentage\");\r\n break;\r\n case 30:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n default:\r\n list.add(\"\");\r\n }\r\n }\r\n\r\n GridView grid = new GridView(context);\r\n grid.setAdapter(new ArrayAdapter(context, android.R.layout.simple_list_item_1, list));\r\n grid.setNumColumns(3);\r\n\r\n new AlertDialog.Builder(context)\r\n .setNegativeButton(\"Back\", null)\r\n .setTitle(\"Match Statistics\")\r\n .setView(grid)\r\n .show();\r\n }", "static void saveAllPlayersToFiles(){\n \tfor( String playername : GoreaProtect.playersData.getKeys(false))\n \t{\n \t\tFile playerfile = new File(GoreaProtect.datafolder + File.separator + \"Protections\");\n \t\tFile fileplayer= new File(playerfile, playername + \".yml\");\n\n \t\tConfigurationSection playerdata = GoreaProtect.playersData.getConfigurationSection(playername);\n\n \t\tYamlConfiguration PlayersDatayml = new YamlConfiguration();\n\n \t\tfor (String aaa:playerdata.getKeys(false))\n \t\tPlayersDatayml.set(aaa, playerdata.get(aaa));\n \t\t\n \t\t\n \t\ttry {\n\t\t\t\tPlayersDatayml.save(fileplayer);\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} \n }", "public static void saveDataToFile() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy MM dd, HH mm\");\n Date date = new Date();\n String fileName= dateFormat.format(date)+\".txt\";\n\n try {\n PrintWriter writer = new PrintWriter(fileName, \"UTF-8\");\n writer.print(\"Wins: \");\n writer.println(wins);\n writer.print(\"Draws: \");\n writer.println(draws);\n writer.print(\"Losses: \");\n writer.println(loses);\n writer.close();\n System.out.println(\"File Write Successful\");\n } catch (IOException e) {\n\n }\n\n\n }", "private void writeToFile() {\n boolean flag = true;\n int expectedPacket = (lastPacket)? sequenceNo: Constants.WINDOW_SIZE;\n for (int i = 0; i < expectedPacket; i++) {\n if(!receivedPacketList.containsKey(i)) {\n flag = false;\n }\n }\n if (flag) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \"Write to file Possible\");\n try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(fileSavePath, true))) {\n for (int i = 0; i < receivedPacketList.size(); i++) {\n //System.out.println(new String(receivedPacketList.get(i)));\n stream.write(receivedPacketList.get(i));\n }\n receivedPacketList.clear();\n stream.close();\n } catch (FileNotFoundException ex) {\n \n } catch (IOException ex) {\n \n }\n receivedPacketList.clear();\n expectedList.clear();\n }\n }", "public void setPlayerStats(List<String> playerData) {\n this.playerStats = new HashMap<>();\n\n // pull the data from the List\n Double minutesPlayed = Double.parseDouble(playerData.get(NbaGachaApp.MINUTES_PLAYED_INDEX));\n Double rebounds = Double.parseDouble(playerData.get(NbaGachaApp.REBOUNDS_INDEX));\n Double assists = Double.parseDouble(playerData.get(NbaGachaApp.ASSIST_INDEX));\n Double blocks = Double.parseDouble(playerData.get(NbaGachaApp.BLOCKS_INDEX));\n Double points = Double.parseDouble(playerData.get(NbaGachaApp.POINTS_INDEX));\n\n // set the hashmap up with the keys and their corresponding values\n playerStats.put(\"minutes\", minutesPlayed);\n playerStats.put(\"rebounds\", rebounds);\n playerStats.put(\"assists\", assists);\n playerStats.put(\"blocks\", blocks);\n playerStats.put(\"points\", points);\n }", "public void outputStats (){\n System.out.println(\"Your sorcerer's stats:\");\n System.out.println(\"HP = \" + hp);\n System.out.println(\"Mana = \" + mana);\n System.out.println(\"Strength = \" + strength);\n System.out.println(\"Vitality = \" + vitality);\n System.out.println(\"Energy = \" + energy);\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}", "public void saveUserSunkenShips(PrintWriter out) {\r\n\t\tfor(int i = 0; i < Player.sunkenShips.size(); i++) {\r\n\t\t\tout.print(\" \"+Player.sunkenShips.get(i));\r\n\t\t}\r\n\t\t\r\n\t\tout.println(\"\");\r\n\t}", "private void writeScoresList(JsonWriter writer, List<Score> scoreList) throws IOException {\n\t\twriter.beginArray();\n\t\tfor (Score score : scoreList) {\n\t\t\twriter.beginObject();\n\t\t\twriter.name(\"Name\").value(score.getName());\n\t\t\twriter.name(\"Score\").value(score.getScore());\n\t\t\twriter.endObject();\n\t\t}\n\t\twriter.endArray();\n\t}", "public static void savePlayer(Player player){\n if (player != null){\n try {\n mapper.writeValue(new File(\"Data\\\\PlayerData\\\\\" + getFileName(player) + \".json\"), player);\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n }\n }", "@Override\n\tpublic void saveScore(Jogador jogador) throws IOException {\n\t\t\n\t\tInteger score = getScore(jogador);\n\t\t\n\t\tif (score == null) {\n\t\t\tscore = 0;\n\t\t}\n\t\t\n\t\tscoreMap.put(jogador.getNome().toUpperCase(), score + 1);\n\t\t\n\t\ttry(BufferedWriter writer = Files.newBufferedWriter(SCORE_FILE)){\n\t\t\t\n\t\t\tSet<Map.Entry<String, Integer>> entries = scoreMap.entrySet();\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> e : entries ) {\n\t\t\t\tString nome = e.getKey();\n\t\t\t\tInteger pont = e.getValue();\n\t\t\t\twriter.write(nome + \"|\" + pont);\n\t\t\t\twriter.newLine();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void sendOpponentScores(ArrayList<Player> plist, Player sentTo) {\n try {\n // Send the number of player hand counts being sent\n sendNumOpponents(plist.size()-1);\n for (int i = 0; i < numPlayers; i++) {\n Player p = plist.get(i);\n if (p != sentTo) { // Do not send player self data as opponent\n dOut.writeInt(p.score);\n dOut.flush();\n }\n }\n } catch (IOException e) {\n System.out.println(\"Could not send player hand counts\");\n e.printStackTrace();\n }\n }", "private static void writeToFile(HighScore[] scoresToSave) throws IOException {\n FileWriter writer = new FileWriter(SCORE_FILE_NAME);\n \n for (int i = 0; i < scoresToSave.length; i++) {\n //Don't write more than the maximum number of scores to save\n if (i > NUMBER_OF_SCORES_TO_SAVE)\n break;\n \n String str = scoresToSave[i].toString();\n writer.write(str);\n writer.write(System.getProperty(\"line.separator\"));\n }\n \n writer.close();\n }", "public void writeScoreToFile(){\n\t\ttry{\n\t\t\tFile file = new File(\"conversation_file.txt\");\n\t\t\tFileWriter f = new FileWriter(file.getAbsoluteFile());\n\t\t\tBufferedWriter b = new BufferedWriter(f);\n\t\t\tif(score > highScore)\n\t\t\t\tb.write(String.valueOf(score));\n\t\t\telse\n\t\t\t\tb.write(String.valueOf(highScore));\n\t\t\tb.close();\n\t\t} catch (IOException e){}\n\t\tSystem.out.println(\"File written, highScore \" + highScore + \" or Score \" + score + \" saved to file.\");\n\t}", "public void savePlayers()\r\n {\r\n for(User p : players.values())\r\n {\r\n \r\n }\r\n }", "public synchronized void sendData(PrintWriter stream){\r\n\t\t\tstream.println(\"3\");\r\n\t\t\tstream.println(Integer.toString(x));\r\n\t\t\tstream.println(Integer.toString(y));\r\n\t\t\tstream.println(Integer.toString(health));\r\n\t\t\tstream.println(Integer.toString(level));\r\n\t\t}", "public void saveScores() {\n\t\tPersistenceMap values = new PersistenceMap();\n\t\tList<Map<String,Object>> entries = new ArrayList<Map<String,Object>>();\n\t\tfor (HighscoreEntry entry : scores) {\n\t\t\tentries.add(entry.dump().getMap());\n\t\t}\n\t\t\n\t\tvalues.put(KEY_SCORES, entries);\n\t\t\n\t\ttry {\n\t\t\tFile file = Hello.getPlugin().getServer().getWorldContainer();\n\t\t\tFile worldFolder = new File(file, worldName);\n\t\t\tFile path = new File(worldFolder, PERSISTANCE_FILE);\n\t\t\tWriter writer = Files.newWriter(path, Charset.defaultCharset());\n\t\t\t\n\t\t\tYaml yaml = new Yaml(YamlSerializable.YAML_OPTIONS);\n\t\t\tyaml.dump(values.getMap(), writer);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public void endGame(){\r\n\t\tupdateRecord();\r\n\t\tgameStats.writeToFile();\r\n\t\tstatisticsList = gameStats.makeArrayList();\r\n\t\tgameStats.writeListToFile(statisticsList);\r\n\t}", "public void recordScore(){\n try\n {\n char[] allAtOnce = new char[(int)scores.length()];\n int charsRead = fr.read(allAtOnce);\n fw.write(String.format(\"<html><body><br>%s | %d seconds<body/><html/>\", ms.difficulty, ms.time)); \n ms.scoreLabel.setText(String.format(\"<html>Recent scores:%s</html>\" , String.valueOf(allAtOnce)));\n fr.close();\n fw.close();\n fw = new BufferedWriter(new FileWriter(scores, true));\n fr = new BufferedReader(new FileReader(scores));\n \n }\n \n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public void saveUserCoordinatesHit(PrintWriter out){\r\n\t\t\r\n\t\tfor (int i = 0; i < Player.coordinatesHit.size(); i++) {\r\n\t\t\tout.print(\" \"+Player.coordinatesHit.get(i));\r\n\t\t}\r\n\t\tout.println(\"\");\r\n\t}", "public void saveStats() throws IOException {\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"learnedWords\")));\r\n out.println(wordIndex);\r\n for (Word s : masteredWords) {//write mastered words first\r\n out.println(s.toString());\r\n }\r\n for (int i = 0; i < learningWords.size(); i++) {//writes learning words next\r\n Word w = learningWords.get(i);\r\n out.println(w.toString());\r\n }\r\n out.close();\r\n }", "public String saveArenaData() {\n String save = \"\";\n save += xSize + \"\\n\";\n save += ySize;\n for (Pieces d : drones) {\n save += \"\\n\";\n save += d.saveDrone();\n }\n return save;\n\n }", "public void saveGame() {\r\n\t\t//separator used by system\r\n\t\tString separator = System.getProperty(\"file.separator\");\r\n\t\t//path to where files will be saved\r\n\t\tString path = System.getProperty(\"user.dir\") + separator + \"src\" + separator + \"GameFiles\" + separator;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//Save the world objects\r\n\t\t\tString world_objects_name = EnvironmentVariables.getTitle() + \"WorldObjects\";\r\n\t\t\t//create a new file with name given by user with added text for identification\r\n\t\t\tFile world_objects_file = new File(path + world_objects_name + \".txt\");\r\n\t\t\tFileOutputStream f_world_objects = new FileOutputStream(world_objects_file);\r\n\t\t\tObjectOutputStream o_world_objects = new ObjectOutputStream(f_world_objects);\r\n\r\n\t\t\t//loop through list and write each object to file\r\n\t\t\tfor(GameObject obj: EnvironmentVariables.getWorldObjects()) {\r\n\t\t\t\to_world_objects.writeObject(obj);\r\n\t\t\t}\r\n\r\n\t\t\to_world_objects.flush();\r\n\t\t\to_world_objects.close();\r\n\t\t\tf_world_objects.flush();\r\n\t\t\tf_world_objects.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Save terrain is done the same ass world objects but we create a new file \r\n\t\t\t//with different added text\r\n\t\t\tString terrain_name = EnvironmentVariables.getTitle() + \"Terrain\";\r\n\t\t\tFile terrain_file = new File(path + terrain_name + \".txt\");\r\n\t\t\tFileOutputStream f_terrain = new FileOutputStream(terrain_file);\r\n\t\t\tObjectOutputStream o_terrain = new ObjectOutputStream(f_terrain);\r\n\r\n\t\t\tfor(GameObject obj: EnvironmentVariables.getTerrain()) {\r\n\t\t\t\to_terrain.writeObject(obj);\r\n\t\t\t}\r\n\r\n\t\t\to_terrain.flush();\r\n\t\t\to_terrain.close();\r\n\t\t\tf_terrain.flush();\r\n\t\t\tf_terrain.close();\r\n\t\t\t\r\n\t\t\t//Save main player, given own file but just a single object\r\n\t\t\tString main_player_name = EnvironmentVariables.getTitle() + \"MainPlayer\";\r\n\t\t\tFile main_player_file = new File(path + main_player_name + \".txt\");\r\n\t\t\tFileOutputStream f_main_player = new FileOutputStream(main_player_file);\r\n\t\t\tObjectOutputStream o_main_player = new ObjectOutputStream(f_main_player);\r\n\r\n\t\t\to_main_player.writeObject(EnvironmentVariables.getMainPlayer());\r\n\r\n\t\t\to_main_player.flush();\r\n\t\t\to_main_player.close();\r\n\t\t\tf_main_player.flush();\r\n\t\t\tf_main_player.close();\r\n\t\t\t\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.out.println(\"Error initializing stream\");\r\n\t\t} \r\n\t\t\r\n\t\t//saving the environment variables\r\n\t\ttry {\r\n\t\t\tString env_name = EnvironmentVariables.getTitle() + \"EnvVariables\";\r\n\t\t\tFile env_file = new File(path + env_name + \".txt\");\r\n\t\t\t\r\n\t\t\tif(!env_file.exists()) {\r\n\t\t\t\tenv_file.createNewFile();\r\n\t\t }\r\n\t\t\t \r\n\t\t\t//FileWriter fw = new FileWriter(env_file);\r\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(env_file));\r\n\t\t\t//write each variable to a new line as a string\r\n\t\t\tbw.write(EnvironmentVariables.getTitle()); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getWidth())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getHeight())); bw.newLine();\r\n\t\t\tbw.write(EnvironmentVariables.getPlanet()); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getMass())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getRadius())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getAirDensity())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getMeter())); bw.newLine();\r\n\r\n\t\t\t\r\n\t\t\t//bw.flush();\r\n\t\t\tbw.close();\r\n\t\t\t\r\n\t\t}catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Error initializing stream\");\r\n\t\t}\r\n\t\t\r\n\t\tEnvironmentVariables.getTerrain().clear();\r\n\t\tEnvironmentVariables.getWorldObjects().clear();\r\n\t}", "private void saveHighScore() {\n\n\t\tFileOutputStream os;\n\t\n\t\ttry {\n\t\t boolean exists = (new File(this.getFilesDir() + filename).exists());\n\t\t // Create the file and directories if they do not exist\n\t\t if (!exists) {\n\t\t\tnew File(this.getFilesDir() + \"\").mkdirs();\n\t\t\tnew File(this.getFilesDir() + filename);\n\t\t }\n\t\t // Saving the file\n\t\t os = new FileOutputStream(this.getFilesDir() + filename, false);\n\t\t ObjectOutputStream oos = new ObjectOutputStream(os);\n\t\t oos.writeObject(localScores);\n\t\t oos.close();\n\t\t os.close();\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t}\n }" ]
[ "0.72440314", "0.71149856", "0.67953116", "0.67617846", "0.6669181", "0.6639984", "0.6607277", "0.6474439", "0.6450093", "0.6407436", "0.6399812", "0.6398785", "0.6397891", "0.6387956", "0.63653725", "0.6352332", "0.63486844", "0.63362384", "0.63147485", "0.6251751", "0.6247984", "0.6219911", "0.6155394", "0.6109133", "0.61088824", "0.60851705", "0.6080398", "0.6064433", "0.60534596", "0.6050998", "0.60486174", "0.6041581", "0.6037189", "0.6022057", "0.5999074", "0.59885854", "0.5881703", "0.58705187", "0.58697766", "0.5833553", "0.5826465", "0.5803407", "0.57910806", "0.57398117", "0.57172483", "0.5703948", "0.56726146", "0.56701386", "0.56688845", "0.5667598", "0.56646085", "0.5655406", "0.5652227", "0.5639287", "0.56379944", "0.56358534", "0.56230724", "0.5614535", "0.5612127", "0.5603212", "0.56010586", "0.5597743", "0.558431", "0.55757874", "0.5575374", "0.5572263", "0.5554127", "0.55534834", "0.5549089", "0.5543362", "0.5529942", "0.5525829", "0.55255365", "0.55237746", "0.5521239", "0.55185974", "0.5516877", "0.55164075", "0.55101496", "0.54833704", "0.54687184", "0.5461965", "0.54600674", "0.5453863", "0.5453365", "0.5451194", "0.54458946", "0.54429406", "0.54371536", "0.54349303", "0.54158837", "0.540936", "0.54081625", "0.5402959", "0.5399112", "0.5396026", "0.53842676", "0.53816", "0.53803885", "0.5375249" ]
0.63366604
17
showStats method show players stats with result
public static void showStats() { List<String> stats = statsList.subList(Math.max(statsList.size() - 3, 0), statsList.size()); System.out.println("Stats:"); for(String stat : stats){ System.out.println(stat); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printAllPlayerStats(List<Player> players);", "public void printPlayerStats(PlayerStats statistics) {\r\n\t\tSystem.out.print(statistics.playerStatsToString());\r\n\t}", "public void printPlayerStat(Player player);", "private static void displayPlayerStats(Object[] stats, String[] helmetSlot, String[] chestSlot, String[] weaponSlot, String[] glovesSlot, String[] bootsSlot){\r\n System.out.println(\"Name: \" + stats[0]);\r\n System.out.println(\"Level: \" + stats[1]);\r\n System.out.println(\"Experience: \" + stats[2]);\r\n System.out.println(\"HP: \" + stats[3] + \"/\" + stats[4]);\r\n System.out.println(\"MP: \" + stats[5] + \"/\" + stats[6]);\r\n System.out.println(\"Attack: \" + stats[7]);\r\n System.out.println(\"Defense: \" + stats[8]);\r\n System.out.println(\"Strength: \" + stats[9]);\r\n System.out.println(\"Intelligence: \" + stats[10]);\r\n System.out.println(\"Vitality: \" + stats[11]);\r\n System.out.println(\"Stat Points Available: \" + stats[12]);\r\n System.out.println(\"Gold: \" + stats[13]);\r\n System.out.println(\"Helmet: [\" + helmetSlot[0] + \"]\" + \"{\" + getItemRarity(helmetSlot) + \"}\");\r\n System.out.println(\"Chest Plate: [\" + chestSlot[0] + \"]\" + \"{\" + getItemRarity(chestSlot) + \"}\");\r\n System.out.println(\"Gloves: [\" + glovesSlot[0] + \"]\" + \"{\" + getItemRarity(glovesSlot) + \"}\");\r\n System.out.println(\"Boots: [\" + bootsSlot[0] + \"]\" + \"{\" + getItemRarity(bootsSlot) + \"}\");\r\n System.out.println(\"Weapon: [\" + weaponSlot[0] + \"]\" + \"{\" + getItemRarity(weaponSlot) + \"}\");\r\n }", "void printStats();", "public void outputStats (){\n System.out.println(\"Your sorcerer's stats:\");\n System.out.println(\"HP = \" + hp);\n System.out.println(\"Mana = \" + mana);\n System.out.println(\"Strength = \" + strength);\n System.out.println(\"Vitality = \" + vitality);\n System.out.println(\"Energy = \" + energy);\n }", "public void showStats() {\r\n List<String> list = new ArrayList();\r\n for (int i = 1; i < 31; i++) {\r\n switch (i) {\r\n case 4:\r\n list.add(name);\r\n break;\r\n case 6:\r\n list.add(String.valueOf(stats.get(\"name\")));\r\n break;\r\n case 7:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[0]));\r\n break;\r\n case 8:\r\n list.add(\"Score\");\r\n break;\r\n case 9:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[1]));\r\n break;\r\n case 10:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[0]));\r\n break;\r\n case 11:\r\n list.add(\"Max Break\");\r\n break;\r\n case 12:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[1]));\r\n break;\r\n case 13:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[0]));\r\n break;\r\n case 14:\r\n list.add(\"Fouls\");\r\n break;\r\n case 15:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[1]));\r\n break;\r\n case 16:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[0]));\r\n break;\r\n case 17:\r\n list.add(\"Misses\");\r\n break;\r\n case 18:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[1]));\r\n break;\r\n case 19:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[0]));\r\n break;\r\n case 20:\r\n list.add(\"Pots\");\r\n break;\r\n case 21:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[1]));\r\n break;\r\n case 22:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[0]));\r\n break;\r\n case 23:\r\n list.add(\"Shots\");\r\n break;\r\n case 24:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[1]));\r\n break;\r\n case 25:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 26:\r\n list.add(\"Pot Percentage\");\r\n break;\r\n case 27:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n case 28:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 29:\r\n list.add(\"Safety Percentage\");\r\n break;\r\n case 30:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n default:\r\n list.add(\"\");\r\n }\r\n }\r\n\r\n GridView grid = new GridView(context);\r\n grid.setAdapter(new ArrayAdapter(context, android.R.layout.simple_list_item_1, list));\r\n grid.setNumColumns(3);\r\n\r\n new AlertDialog.Builder(context)\r\n .setNegativeButton(\"Back\", null)\r\n .setTitle(\"Match Statistics\")\r\n .setView(grid)\r\n .show();\r\n }", "private void showFinalResults(){\r\n\r\n System.out.println(\"Player\\t\\t:\\t\\tPoints\");\r\n for(Player player : this.sortedPlayers){\r\n System.out.println(player.toString());\r\n }\r\n System.out.println();\r\n }", "public String playerStatsToString() {\r\n\t\t\tString stats = \"\";\r\n\t\t\tstats = stats + username + \"\\n\";\r\n\t\t\tstats = stats + numberOfWins + \"\\n\";\r\n\t\t\tstats = stats + numberOfGames + \"\\n\";\r\n\t\t\tstats = stats + numberOfAttacks + \"\\n\";\r\n\t\t\tstats = stats + numberOfSPAttacks + \"\\n\";\r\n\t\t\tstats = stats + numberOfMeals + \"\\n\";\r\n\t\t\treturn stats;\r\n\t\t}", "public void stats() {\n\t\tSystem.out.println(\"The score is: \" + score \n\t\t\t\t+ \"\\nNumber of Astronauts rescused: \" + rescuedAstronauts \n\t\t\t\t+ \"\\nNumber of Astronauts roaming: \" + roamingAstronauts\n\t\t\t\t+ \"\\nNumber of Aliens rescued: \" + rescuedAliens\n\t\t\t\t+ \"\\nNumber of Aliens roaming: \" + roamingAliens);\n\t}", "public void showPlayerStats(Player player) {\n pIcon = new JLabel(player.getName() + \"'s turn\");\n pIcon.setBackground(Color.white);\n pIcon.setBorder(BorderFactory.createEtchedBorder(0));\n pIcon.setBounds(icon.getIconWidth() + 10, 240, 150, 20);\n bPane.add(pIcon, new Integer(2));\n\n //JButton pRank;\n pRank = new JLabel(\"Rank: \" + player.getRank());\n pRank.setBackground(Color.white);\n pRank.setBorder(BorderFactory.createEtchedBorder(0));\n pRank.setBounds(icon.getIconWidth() + 10, 270, 150, 20);\n bPane.add(pRank, new Integer(2));\n\n //JButton pCredits;\n pCredits = new JLabel(\"Credits: \" + player.getCredits());\n pCredits.setBackground(Color.white);\n pCredits.setBorder(BorderFactory.createEtchedBorder(0));\n pCredits.setBounds(icon.getIconWidth() + 10, 300, 150, 20);\n bPane.add(pCredits, new Integer(2));\n\n //JButton pDollars;\n pDollars = new JLabel(\"Dollars: \" + player.getDollars());\n pDollars.setBackground(Color.white);\n pDollars.setBorder(BorderFactory.createEtchedBorder(0));\n pDollars.setBounds(icon.getIconWidth() + 10, 330, 150, 20);\n bPane.add(pDollars, new Integer(2));\n\n //JButton pRehearsalTokens;\n pRehearsalTokens = new JLabel(\"Rehears Toks: \" + player.getRehearsalTokens());\n pRehearsalTokens.setBackground(Color.white);\n pRehearsalTokens.setBorder(BorderFactory.createEtchedBorder(0));\n pRehearsalTokens.setBounds(icon.getIconWidth() + 10, 360, 150, 20);\n bPane.add(pRehearsalTokens, new Integer(2));\n\n //JButton pRoom;\n pRoom = new JLabel(\"Room: \" + player.getRoom());\n pRoom.setBackground(Color.white);\n pRoom.setBorder(BorderFactory.createEtchedBorder(0));\n pRoom.setBounds(icon.getIconWidth() + 10, 390, 150, 20);\n bPane.add(pRoom, new Integer(2));\n\n //JButton pRole;\n if (player.getRole() == null) {\n pRole = new JLabel(\"Role: None\");\n } else {\n pRole = new JLabel(\"Role: \" + player.getRole().getName());\n }\n pRole.setBackground(Color.white);\n pRole.setBorder(BorderFactory.createEtchedBorder(0));\n pRole.setBounds(icon.getIconWidth() + 10, 420, 150, 20);\n bPane.add(pRole, new Integer(2));\n\n pDays = new JLabel(\"Day: \"+Deadwood.getInstance().getDays());\n pDays.setBackground(Color.red);\n pDays.setOpaque(true);\n pDays.setBorder(BorderFactory.createEtchedBorder(0));\n pDays.setBounds(icon.getIconWidth() + 10, 480, 150, 20);\n bPane.add(pDays, new Integer(2));\n }", "private static void displayStats() {\n\t\tint numPlay = 0;\n\t\tint numWon = 0;\n\t\tint sumGuess = 0;\n\t\tint minGuess = Integer.MAX_VALUE;\n\t\tint maxGuess = Integer.MIN_VALUE;\n\t\tdouble average = 0;\n\t\tint lastNumGuess = 0;\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(fileName));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tnumPlay++;\n\t\t\t\tlastNumGuess = Integer.parseInt(line);\n\t\t\t\tif (lastNumGuess > 0) { // a positive number of guesses indicates the user won the game\n\t\t\t\t\tnumWon++;\n\t\t\t\t\tminGuess = Math.min(minGuess, lastNumGuess);\n\t\t\t\t\tmaxGuess = Math.max(maxGuess, lastNumGuess);\n\t\t\t\t\tsumGuess += lastNumGuess;\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (FileNotFoundException exception) {\n\t\t\tSystem.out.println(\"It seems that you haven't played this game before. Keep playing to gather statistics!\");\n\t\t\treturn;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Sorry the software encountered an IO Error. Please try again later.\");\n\t\t}\n\t\tSystem.out.println(\"Below are the summary statistics: \");\n\t\tSystem.out.println(\"Number of games played: \" + numPlay);\n\t\tSystem.out.println(\"Number of games won: \" + numWon);\n\t\tSystem.out.println(String.format(\"Total number of guesses: %d\", sumGuess + 12 * (numPlay - numWon)));\n\t\tif (lastNumGuess < 1) {\n\t\t\tSystem.out.println(\"Last time you lost\");\n\t\t} else {\n\t\t\tSystem.out.println(String.format(\"Last time you won and made %d guess%s\", lastNumGuess,\n\t\t\t\t\t(lastNumGuess > 1 ? \"es\" : \"\")));\n\t\t}\n\t\tif (numWon > 0) {\n\t\t\tSystem.out.println(\"Minimum number of guesses to win: \" + minGuess);\n\t\t\tSystem.out.println(\"Maximum number of guesses to win: \" + maxGuess);\n\t\t\taverage = (double) sumGuess / numWon;\n\t\t\tSystem.out.println(String.format(\"Average number of guesses to win: %.2f\", average));\n\t\t}\n\t}", "public void displayPlayerWinnings()\n {\n for(int card = 0; card < playerCardsWon; card++)\n {\n System.out.println(playerWinnings[card].toString());\n }\n }", "public void statistics(){\n System.out.println(this.scoreboard.toString());\n }", "public static String printStats() {\n return \"Your Statistics:\" + \"\\n\" +\n \"Total Time in Game (Seconds): \" + timeElapsedSeconds + \"\\n\" +\n \"Total Points: \" + totalScore + \"\\n\" +\n \"Total Number of Taps on Screen: \" + counterClicks + \"\\n\" +\n \"Thanks for Playing!\";\n }", "private void displayPlayers() {\n\t\tfor (Player p: game.getPlayers()) {\n\t\t\tview.updateDisplay(p.getId(), p.getDeck().getNumberOfCards());\n\t\t}\n\t}", "public static void displayStats(int draws, int cpuWins, int playerWins, int rounds, String userName) {\n if(rounds == 1) {\n System.out.println(\"\\n\\nWe played \" + rounds + \" game of Rock Paper Scissors.\");\n }\n \n else {\n System.out.println(\"\\n\\nWe played \" + rounds + \" games of Rock Paper Scissors.\");\n }\n //Display final stats of all rounds, note the check for grammar!\n if(cpuWins == 1) {\n System.out.println(\"The computer won \" + cpuWins + \" time.\");\n }\n else {\n System.out.println(\"The computer won \" + cpuWins + \" times.\");\n }\n if(playerWins == 1) {\n System.out.println(userName + \" won \" + playerWins + \" time.\");\n }\n else {\n System.out.println(userName + \" won \" + playerWins + \" times.\");\n }\n if(draws == 1) {\n System.out.println(\"There was \" + draws + \" draw.\");\n }\n else {\n System.out.println(\"There were \" + draws + \" draws.\");\n }\n \n //if player is better than cpu\n if(playerWins > cpuWins) {\n System.out.println(\"You are a master at Rock, Paper, Scissors.\");\n }\n \n //if cpu is better than player\n if(cpuWins > playerWins) {\n System.out.println(\"I am a master at Rock, Paper, Scissors.\");\n }\n \n //if cpu and player are evenly matched\n if(playerWins == cpuWins) {\n System.out.println(\"We are evenly matched at this game.\");\n }\n }", "private void printStats()\n\t{\n\t\t// X\n\t\tSystem.out.println(\"X:\");\n\t\tfor(int i = 0; i < xPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(xPosList.get(i));\n\t\t}\n\n\t\t// Y\n\t\tSystem.out.println(\"Y:\");\n\t\tfor(int i = 0; i < yPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(yPosList.get(i));\n\t\t}\n\n\t\t// Time\n\t\tSystem.out.println(\"Time:\");\n\t\tfor(int i = 0; i < timeList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(timeList.get(i));\n\t\t}\n\t}", "private void showGameScore() {\n System.out.println(messageProvider.provideMessage(\"score\"));\n System.out.println(settings.getPlayers().get(0).getScore()\n + \" vs \" + settings.getPlayers().get(1).getScore());\n }", "public void printStatistics() {\n\t// Skriv statistiken samlad så här långt\n stats.print();\n }", "@Synchronized\n private static String showStats(Map<String, ServiceStats> stats, String title) {\n List<ServiceStats> view = new ArrayList<>();\n view.addAll(stats.values());\n view.sort((o1, o2) -> o1.getTotalTime() > o2.getTotalTime() ? 1 : -1);\n StringBuilder buff = new StringBuilder(2048);\n buff.append(\" calls min max total avg name\\n\");\n view.stream().map(s -> str(\"%9s %9s %9s %9s %9s %s\\n\",\n s.getCalls(),\n s.getMinTime(),\n s.getMaxTime(),\n s.getTotalTime(),\n s.getTotalTime() / s.getCalls(),\n s.getService().replaceAll(\"\\\\[\", \"(\").replaceAll(\"]\", \")\"))).forEach(buff::append);\n String lines = buff.toString();\n log.info(\"\\n\" + title + \" - services performance (ms): \\n{}\", lines);\n return lines;\n }", "public void playerDetailedInfo(Player p){\n System.out.println(\"Indicator: \" + indicator + \"\\nJoker: \"+joker);\n System.out.println(\"Winner: Player\" + p.getPlayerNo());\n System.out.println(\"Tile size: \" + p.getTiles().size());\n System.out.println(\"Joker count: \" + p.getJokerCount());\n System.out.println(\"Double score: \" + p.getDoubleCount()*2);\n System.out.println(\"All tiles in ascending order:\\t\" + p.getTiles());\n System.out.println(\"Clustered according to number: \\t\" + p.getNoClus());\n System.out.println(\"Total number clustering score: \" + p.totalNoClustering());\n System.out.println(\"Clustered according to color: \\t\" + p.getColClus());\n System.out.println(\"Total color clustering score: \" + p.totalColCluster());\n System.out.println(\"Final score of Player\"+p.getPlayerNo()+\": \" + p.getPlayerScore());\n }", "@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }", "public static void displayStats(ArrayList<String> standings){\n\t\tString[] parts;\n\t\tdouble avg, gamesB; //variables for fucntion calls\n\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\tSystem.out.println(\"Teams: Wins: Loses: Pct: Games Behind:\" );\n\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\tfor(String standing : standings){\n\t\t\tparts = standing.split(\"\\t\");\n\t\t\tavg = getAvg(standing);\n\t\t\tSystem.out.printf(\"%-15s%-8s%-8s%6.2f \\n \", parts[0], parts[1], parts[2], avg);\n\t\t}//end for \n//\t\tSystem.out.println(standings);\n\t}", "public static String showAllStats() {\n return showStats(allStats, \"All stats\");\n }", "public void printStats() {\n\n System.out.println(\"Number of Users Arrived: \" + numIn);\n System.out.println(\"Number of Users Exited: \" + numOut);\n System.out.println(\"Average Time Spent Waiting for Cab: \" + (totTimeWait / numIn));\n if (numOut != 0) {\n System.out.println(\"Average Time Spent Waiting and Travelling: \" + (totTime / numOut));\n }\n }", "public void showResult(NimPlayer player1, NimPlayer player2) {\n String g1 = \"game\";\n String g2 = \"game\";\n\n // check the sigular\n if (player1.getWinTimes() >= 2) {\n g1 = \"games\";\n }\n if (player2.getWinTimes() >= 2) {\n g2 = \"games\";\n }\n System.out.println(player1.getName() + \" won \" +\n player1.getWinTimes() + \" \" + g1 + \" out of \" +\n player1.getTotalTimes() + \" played\");\n System.out.println(player2.getName() + \" won \" +\n player2.getWinTimes() + \" \" + g2 + \" out of \" +\n player2.getTotalTimes() + \" played\");\n }", "public PlayerStats getPlayerStats() {\n /* Get score and kills */\n String score = String.valueOf(this.getScoreCounter().getScore());\n String kills = Integer.toString(this.killCount);\n \n playerStats.setScoreId(\"1\"); /* This will be changed in SavePlayerStats */\n playerStats.setUserId(\"\"); /* This will be changed when SavePlayerStats */\n playerStats.setScore(score);\n playerStats.setKills(kills);\n playerStats.setNewTimestamp();\n \n return playerStats;\n }", "public void printAllPlayers(){\n for (Player player : players){\n player.printPlayerInfo();\n }\n }", "public void displayStats() {\n VisitorDAO visitorDAO = new VisitorDAO();\n Object countAllVisitors = visitorDAO.getCountAllVisitors();\n Object countNewSubscribers = visitorDAO.getCountNewSubscribersForMonth(this.simpleDateFormat.format(new Date()));\n\n this.totalSubscribersText.setText(this.totalSubscribersText.getText() + countAllVisitors.toString());\n this.newSubscribersText.setText(this.newSubscribersText.getText() + countNewSubscribers.toString());\n }", "public void getScores(){\n String p1 = \"Player 1 has \" + Integer.toString(player1.getWins());\n String p2 = \"Player 2 has \" + Integer.toString(player2.getWins());\n String winner = \"tie\";\n if(player1.getWins()>player2.getWins()){\n winner = player1.getName() + \" wins!!!!\";\n }\n else if(player2.getWins()>player1.getWins()){\n winner = player2.getName() + \" Wins!!!\";\n }\n JOptionPane.showMessageDialog(null, (p1 + \"\\n\" + p2 + \"\\n\" + winner));\n }", "public boolean ShowStats(){\n if(!determineValid()){\n Main.errorNumber = WrongNumber;\n return false;\n }\n labelNames();\n groupDisplay.setText(\"\");\n groupDisplay.setText(groupDisplay.getText() + displayArray(racers.get(group.get(0))));\n\n for(int i = 1; i < group.size(); ++i){\n groupDisplay.setText(groupDisplay.getText() + \"\\n\\n\" + displayArray(racers.get(group.get(i))));\n\n }\n\n return true; //success\n }", "private static void printStats(Stats stats) {\n long elapsedTime = (System.nanoTime() - startTime) / 1000000;\n System.out.println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n getConsole().println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n stats.print();\n }", "public void printDetailedPlayer(Player player);", "private void showScores() {\n levelNumber.setText(String.format(\"%s%d\", getResources().getString(R.string.level), level));\n Level l = Level.getLevel(level);\n for (int i = 0; i < Level.MAX_SCORES; i++) {\n Level.Player p = l.getPlayer(i);\n if (p != null) new ScoreTextView(i + 1, p.toString());\n }\n }", "public String getStatsOfGames(){\n\n String res = \"\";\n\n if (games.size() <= 0){\n return \"No game registered in tournament\";\n }\n\n for(int num=0; num<games.size(); num++)\n {\n SoccerGames game = games.get(num);\n res += \"Game Id: \" + game.getGameId() + \" \"+ game.getHostTeam().getName() + \": \" + game.goalsScored +\n \" VS \" + game.getOpponentTeam().getName() + \": \" + game.concededGoal;\n\n }\n return res;\n }", "private void callForStats() throws SQLException, ClassNotFoundException{\n\t\tString[] stats;\n\t\toutputTA.setText(\"\");\n\t\tif(custTypeCB.getSelectedIndex() == Globals.SINGLE_CUST)\n\t\t\tstats = dBConnection.getStats(Integer.parseInt(custIdTF.getText()));\n\t\telse\n\t\t\tstats = dBConnection.getStats(custTypeCB.getSelectedIndex());\n\t\t\n\t\tfor(String str : stats){\n\t if(str == null)\n\t \tcontinue;\n\t outputTA.append(str+\"\\n\");\n\t\t}\n\t}", "private void showCardStats() {\n TextView unlockedNum = findViewById(R.id.UnlockedNum);\n unlockedNum.setText(\n \" \" + this.masterDeck.retrieveUnlockedCardNames().size() +\n \" / \" + this.masterDeck.deckSize()\n );\n }", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "public static Result showStats() {\n\t\tUser currentUser = SessionHelper.getCurrentUser(ctx());\n\t\tList<Blogger> bloggerList = Blogger.find.all();\n\t\tif(currentUser != null && currentUser.username.equals(\"blogger\")){\n\t\t\treturn ok(blog.render(bloggerList,currentUser));\n\t\t}\n\n\t\t// Null Catching\n\t\tif (currentUser == null) {\n\t\t\treturn redirect(routes.Application.index());\n\t\t}\n\t\t\n\t\tallProducts = ProductController.findProduct.where().eq(\"owner.username\", currentUser.username).findList();\n\t\t\n\t\tapplyTheStringViewForStats(currentUser);\n\t\n\t\treturn ok(statsproducts.render(currentUser, allProducts));\n\n\t}", "public String getStatsOfTeams(){\n\n String res = \"\";\n\n if (teams.size() <= 0){\n return \"No team registered in tournament\";\n }\n\n for(int num=0; num<teams.size(); num++)\n {\n SoccerTeam team = teams.get(num);\n res += team.toString() + \"\\n\";\n }\n return res;\n }", "public void displayHotPlayers(Player fantasy) throws IOException {\n\t\tExportExcel.export(\"Week.xls\", 0, fantasy);\n\t\t\n\t\tMinHeap min = MinHeap.getInstance();\n\t\t\n\t\tHashMap<String, Integer> outputPlayers = new HashMap<String, Integer>();\n\t\t\n\t\tPercentLine[] topStats = min.getOverall(min.OVERALL);\n\t\tSystem.out.println(\"Overall Top Value\");\n\t\tUtil.displayHeap(topStats, min.OVERALL, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.POINTS);\n\t\tSystem.out.println(\"Overall Top Points\");\n\t\tUtil.displayHeap(topStats, min.POINTS, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.REBOUNDS);\n\t\tSystem.out.println(\"Overall Top Rebounds\");\n\t\tUtil.displayHeap(topStats, min.REBOUNDS, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.ASSISTS);\n\t\tSystem.out.println(\"Overall Top Assists\");\n\t\tUtil.displayHeap(topStats, min.ASSISTS, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.THREES);\n\t\tSystem.out.println(\"Overall Top Threes\");\n\t\tUtil.displayHeap(topStats, min.THREES, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.STEALS);\n\t\tSystem.out.println(\"Overall Top Steals\");\n\t\tUtil.displayHeap(topStats, min.STEALS, outputPlayers);\n\t\t\n\t\ttopStats = MinHeap.getInstance().getOverall(min.BLOCKS);\n\t\tSystem.out.println(\"Overall Top Blocks\");\n\t\tUtil.displayHeap(topStats, min.BLOCKS, outputPlayers);\n\t\t\n\t\tSystem.out.println(\"Players +3 Categories\");\n\t\tUtil.display(outputPlayers);\n\t\t\n\t\ttopStats = MyTeam.getInstance().getList();\n\t\tSystem.out.println(ExportExcel.TEAM_PERFORMANCE + \"'s Performance over the last week\");\n\t\tUtil.displayHeap(topStats, min.OVERALL, outputPlayers);\n\t}", "private void calculatePlayerStats(int pos) {\r\n\r\n initializeStatisticVariables();\r\n StatistisDAO statDAO = new StatistisDAO(Statistics.this);\r\n DAOUtilities daoUtil = new DAOUtilities(Statistics.this);\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n BagDAO bagDAO = new BagDAO(Statistics.this);\r\n\r\n Player player = new Player();\r\n long id = playerDAO.readIDFromName(players.get(pos));\r\n player.setID(id);\r\n\r\n averageScore = daoUtil.getAverageAdjustedScorePlayer(player);\r\n averagePlusMinus = averageScore - 72;\r\n averageFront9Score = daoUtil.getAverageAdjustedFrontNineScorePlayer(player);\r\n averageFront9PlusMinus = averageFront9Score - 36;\r\n averageBack9Score = daoUtil.getAverageAdjustedBackNineScorePlayer(player);\r\n averageBack9PlusMinus = averageBack9Score - 36;\r\n averageHoleScore = averageScore / 18;\r\n averageHolePlusMinus = averageHoleScore - 4;\r\n\r\n\r\n // get the number of each holes\r\n numberOfPar3Holes = statDAO.getNHolesPar(3, player);\r\n numberOfPar4Holes = statDAO.getNHolesPar(4, player);\r\n numberOfPar5Holes = statDAO.getNHolesPar(5, player);\r\n numberOfHoles = numberOfPar3Holes\r\n + numberOfPar4Holes\r\n + numberOfPar5Holes;\r\n\r\n // get the hole stats\r\n float nfairwayholes = numberOfPar4Holes + numberOfPar5Holes;\r\n fairways = nfairwayholes<=0 ? 0 : statDAO.getNFairways(player) / nfairwayholes * 100.;\r\n if (numberOfHoles > 0) {\r\n girs = statDAO.getNGiR(player) / (float) numberOfHoles * 100.;\r\n chips = statDAO.getNumofChips(player) / (float) numberOfHoles;\r\n putts = statDAO.getNumofPutts(player) / (float) numberOfHoles;\r\n penalties = statDAO.getNumofPenalties(player) / (float) numberOfHoles * 18.;\r\n }\r\n\r\n // get the counts for par 3's\r\n if (numberOfPar3Holes > 0) {\r\n par3Girs = statDAO.getNGiR(3, player) / (float)numberOfPar3Holes * 100.;\r\n par3Chips = statDAO.getNumofChips(3, player) / (float) numberOfPar3Holes;\r\n par3Putts = statDAO.getNumofPutts(3, player) / (float) numberOfPar3Holes;\r\n par3Penalties = statDAO.getNumofPenalties(3, player) / (float) numberOfPar3Holes;\r\n }\r\n par3EagleCount = statDAO.getNHolesParScore(3, -2, player);\r\n par3BirdieCount = statDAO.getNHolesParScore(3, -1, player);\r\n par3ParCount = statDAO.getNHolesParScore(3, 0, player);\r\n par3BogeyCount = statDAO.getNHolesParScore(3, 1, player);\r\n par3DoubleBogeyCount = statDAO.getNHolesParScore(3, 2, player);\r\n par3TripleBogeyCount = statDAO.getNHolesParScore(3, 3, player);\r\n par3QuadBogeyPlusCount = statDAO.getNHolesParGreaterThanScore(3, 4, player);\r\n\r\n // get the counts for par 4's\r\n if (numberOfPar4Holes > 0) {\r\n par4Fairways = statDAO.getNFairways(4, player) / (float) numberOfPar4Holes * 100.;\r\n par4Girs = statDAO.getNGiR(4, player) / (float) numberOfPar4Holes * 100.;\r\n par4Chips = statDAO.getNumofChips(4, player) / (float) numberOfPar4Holes;\r\n par4Putts = statDAO.getNumofPutts(4, player) / (float) numberOfPar4Holes;\r\n par4Penalties = statDAO.getNumofPenalties(4, player) / (float) numberOfPar4Holes;\r\n }\r\n par4AlbatrossCount = statDAO.getNHolesParScore(4, -3, player);\r\n par4EagleCount = statDAO.getNHolesParScore(4, -2, player);\r\n par4BirdieCount = statDAO.getNHolesParScore(4, -1, player);\r\n par4ParCount = statDAO.getNHolesParScore(4, 0, player);\r\n par4BogeyCount = statDAO.getNHolesParScore(4, 1, player);\r\n par4DoubleBogeyCount = statDAO.getNHolesParScore(4, 2, player);\r\n par4TripleBogeyCount = statDAO.getNHolesParScore(4, 3, player);\r\n par4QuadBogeyPlusCount = statDAO.getNHolesParGreaterThanScore(4, 4, player);\r\n\r\n // get the counts for the par 5's\r\n if (numberOfPar5Holes > 0) {\r\n par5Fairways = statDAO.getNFairways(5, player) / (float) numberOfPar5Holes * 100.;\r\n par5Girs = statDAO.getNGiR(5, player) / (float) numberOfPar5Holes * 100.;\r\n par5Putts = statDAO.getNumofPutts(5, player) / (float) numberOfPar5Holes;\r\n par5Chips = statDAO.getNumofChips(5, player) / (float) numberOfPar5Holes;\r\n par5Penalties = statDAO.getNumofPenalties(5, player) / (float) numberOfPar5Holes;\r\n }\r\n par5AlbatrossCount = statDAO.getNHolesParScore(5, -3, player);\r\n par5EagleCount = statDAO.getNHolesParScore(5, -2, player);\r\n par5BirdieCount = statDAO.getNHolesParScore(5, -1, player);\r\n par5ParCount = statDAO.getNHolesParScore(5, 0, player);\r\n par5BogeyCount = statDAO.getNHolesParScore(5, 1, player);\r\n par5DoubleBogeyCount = statDAO.getNHolesParScore(5, 2, player);\r\n par5TripleBogeyCount = statDAO.getNHolesParScore(5, 3, player);\r\n par5QuadBogeyPlusCount = statDAO.getNHolesParGreaterThanScore(5, 4, player);\r\n\r\n // sum various scores\r\n albatrossCount = par4AlbatrossCount + par5AlbatrossCount;\r\n eagleCount = par3EagleCount + par4EagleCount + par5EagleCount;\r\n birdieCount = par3BirdieCount + par4BirdieCount + par5BirdieCount;\r\n parCount = par3ParCount + par4ParCount + par5ParCount;\r\n bogeyCount = par3BogeyCount + par4BogeyCount + par5BogeyCount;\r\n doubleBogeyCount = par3DoubleBogeyCount\r\n + par4DoubleBogeyCount\r\n + par5DoubleBogeyCount;\r\n tripleBogeyCount = par3TripleBogeyCount\r\n + par4TripleBogeyCount\r\n + par5TripleBogeyCount;\r\n quadBogeyPlusCount = par3QuadBogeyPlusCount\r\n + par4QuadBogeyPlusCount\r\n + par5QuadBogeyPlusCount;\r\n\r\n\r\n clubs = bagDAO.readClubsInBag(player);\r\n // Remove the putter\r\n int idx = 0;\r\n int pidx = -1;\r\n for (Club club : clubs) {\r\n if (club.getClub().equals(\"Putter\"))\r\n pidx = idx;\r\n idx++;\r\n }\r\n if (pidx >= 0)\r\n clubs.remove(pidx);\r\n // Fill the distances and accuracy\r\n for (Club club : clubs) {\r\n club.setAvgDist(statDAO.getClubAvgDist(player, club));\r\n club.setAccuracy(statDAO.getClubAccuracy(player, club, (float) 10));\r\n }\r\n\r\n\r\n // get the number of rounds played\r\n int courseCount = 0;\r\n\t\t//Calls the method that displays the stats on the screen\r\n\t\tfillInList(courseCount++);\r\n\t}", "public HashMap<String, Double> getStats() {\n return playerStats; // stub\n }", "public void printResults() {\n getUtl().getOutput().add(\"~~ Results ~~\\n\");\n for (int i = 0; i < getHeroes().size(); i++) {\n if (getHeroes().get(i).isDead()) {\n getUtl().getOutput().add(getHeroes().get(i).getName().\n toCharArray()[0] + \" dead\\n\");\n } else {\n getUtl().getOutput().add(getHeroes().get(i).getName().\n toCharArray()[0] + \" \"\n + getHeroes().get(i).getLevel() + \" \"\n + getHeroes().get(i).getXp() + \" \"\n + getHeroes().get(i).getHp() + \" \"\n + getHeroes().get(i).getPosX() + \" \"\n + getHeroes().get(i).getPosY() + \"\\n\");\n }\n }\n // Write output to given outputPath.\n getGameFileWriter().write(getUtl().getOutput());\n for (int i = 0; i < getUtl().getOutput().size(); i++) {\n // Write output to console as well.\n System.out.print(getUtl().getOutput().get(i));\n }\n }", "public static void displayStats2(ArrayList<String> standings){\n\t\t\tString[] parts;\n\t\t\tdouble avg;\n\t\t\tSystem.out.println(\"-----------------------------\");\n\t\t\tSystem.out.println(\"Teams: Pct:\" );\n\t\t\tSystem.out.println(\"-----------------------------\");\n\t\t\tfor(String standing : standings){\n\t\t\t\tparts = standing.split(\"\\t\");\n\t\t\t\tavg = getAvg(standing);\n\t\t\t\tSystem.out.printf(\"%-15s%6.2f\\n \", parts[0], avg);\n\t\t\t\t//System.out.println(parts[1]);\n\t\t\t\t//System.out.println(parts[2]);\n\t\t\t\t\n\t\t\t}//end for \n\t//\t\tSystem.out.println(standings);\n\t\t}", "public abstract void showStat();", "public void showResults(){\n customerCount = simulation.getCustomerCount();\n phoneCount = simulation.getPhoneCount();\n doorCount = simulation.getDoorCount();\n unhelpedCount = simulation.getUnhelped();\n totalCus.setText(\"Total number of Customers: \"+customerCount+\"\\t\\t\");\n doorCus.setText(\"Number of Door Customers: \"+doorCount+\"\\t\\t\");\n phoneCus.setText(\"Number of Phone Customers: \"+phoneCount+\"\\t\\t\");\n unhelped.setText(\"Number of Customers left unhelped at the end: \"+unhelpedCount);\n }", "public void showPlayerStats(Player player)\n\t{\n\t\tsynchronized (offlineDataYml)\n\t\t{\n\t\t\tYamlConfiguration yaml = YamlConfiguration.loadConfiguration(offlineDataYml);\n\t\t\tif(!yaml.isSet(player.getUniqueId().toString()))\n\t\t\t{\n\t\t\t\t//no datas\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tDouble earnings = 0.0;\n\t\t\tDouble losses = 0.0;\n\t\t\t\n\t\t\t\n\t\t\tString earningspath = player.getUniqueId().toString() + \".earnings\";\n\t\t\tString lossespath = player.getUniqueId().toString() + \".losses\";\n\t\t\tif(yaml.isSet(earningspath))\n\t\t\t{\n\t\t\t\tearnings = yaml.getDouble(earningspath);\n\t\t\t}\n\t\t\tif(yaml.isSet(lossespath))\n\t\t\t{\n\t\t\t\tlosses = yaml.getDouble(lossespath);\n\t\t\t}\n\t\t\t\n\t\t\tyaml.set(player.getUniqueId().toString(), null); //delete node to reset\n\t\t\t\n\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-message\")\n\t\t\t.replace(\"%earnings%\", Main.econ.format(earnings))\n\t\t\t.replace(\"%losses%\", Main.econ.format(losses)));\n\t\t\t\n\t\t\tif(earnings > losses)\n\t\t\t{\n\t\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-plus\")\n\t\t\t\t.replace(\"%win%\", Main.econ.format(earnings - losses)));\n\t\t\t}\n\t\t\telse if(earnings < losses)\n\t\t\t{\n\t\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-minus\")\n\t\t\t\t.replace(\"%loss%\", Main.econ.format(losses - earnings)));\n\t\t\t} else\n\t\t\t{\n\t\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-equal\"));\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\tyaml.save(offlineDataYml);\n\t\t\t} catch (IOException e)\n\t\t\t{\n\t\t\t\tCasinoManager.LogWithColor(ChatColor.RED + \"Error while trying to save offlinedata.yml! \" + e.getMessage());\n\t\t\t\te.printStackTrace(CasinoManager.getPrintWriterForDebug());\n\t\t\t}\n\t\t}\n\t}", "public void getStats(){\n for (Shelf shelf : this.shelves){\n if (!shelf.isEmpty()){\n shelf.printStats();\n }\n\n }\n }", "String displayStats() throws OrderBookOrderException;", "public void printScores() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Players \\t\" + \"Score\");\n\t\tSystem.out.println(\"---------------------\");\n\t\tfor (Player p : players) {\n\t\t\tSystem.out.println(p.name + \" \\t\\t\" + p.updateScores());\n\t\t}\n\t}", "public static void showStatistics(){\n\n }", "private void displayStats(CheckListView<String> checkview, TextArea stats) {\n\t\tStringBuilder start = new StringBuilder();\n\t\tfor(String critter_name:checkview.getCheckModel().getCheckedItems()){\n\t\t\ttry {\n\t\t\t\tClass classTemp = Class.forName(this.getClass().getPackage().getName() + \".\" + critter_name);\n\t\t\t\tMethod m = classTemp.getMethod(\"runStats\", List.class); //Get method\n\t\t\t\tList<Critter> instances = Critter.getInstances(critter_name);\n\t\t\t\tString output = (String)m.invoke(null, instances); //Invoke with instances\n\t\t\t\tstart.append(output).append(\"\\n\");\n\t\t\t} catch (Exception e) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tstats.clear();\n\t\tstats.appendText(start.toString());\n\t}", "private void updateStats(Player player, Stats stats) {\n if (this.statsScoreboards != null) {\n GameListener.this.statsScoreboards.get(player).updateStats(player, stats);\n }\n }", "private void updateStats()\n\t{\n\n\t\tint[] temp = simulation.getStatValue();\n\t\tfor(int i = 0; i < temp.length; i++)\n\t\t{\n\t\t\tthis.statsValues[i].setText(Integer.toString(temp[i]));\n\t\t}\n\t\t\n\t\tint[] temp2 = simulation.getNumberInEachLine();\n\t\tfor(int i = 0; i < temp2.length; i++)\n\t\t{\n\t\t\tthis.eatValues[i].setText(Integer.toString(temp2[i]));\n\t\t}\n\t}", "public void showBalance(){\n for(Player player: players){\n System.out.println(player + \"'s balance: \" + player.getWallet());\n }\n System.out.println();\n dealer.showProfit();\n System.out.println();\n }", "Response<LeaderboardScoresWithPlayerStats> getLeaderboardWithPlayerStats(String leaderboardId, int scope, String username, String uniqueIdentifier, int page, int records);", "public void displayWinner(Player player) {\n System.out.println(\"Partie terminée !\");\n System.out.println(player.getPlayerName()+\" remporte la partie avec les billes \"+player.getColor().toString(true));\n System.out.println(\"――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\");\n }", "public void printPlayerStatus() {\n System.out.println(getName() + \" owns \" +\n getOwnedCountries().size() + \" countries and \"\n + getArmyCount() + \" armies.\");\n\n String ownedCountries = \"\";\n for (Country c : getOwnedCountries())\n {\n ownedCountries += c.getCountryName().name() + \": \" + c.getArmyOccupied() + \"\\n\";\n }\n System.out.println (ownedCountries);\n }", "Map<String, Object> getStats();", "private void paintStats(Graphics g) {\n\t\tg.setColor(Color.GRAY);\n\t\tg.fillRect(DIMENSIONS_SIZE, 0, DIMENSIONS_SIZE + 150, DIMENSIONS_SIZE);\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tFont textFont = new Font(\"Times New Roman\", Font.PLAIN, 20);\n\t\tg.setFont(textFont);\n\t\tg.drawString(\"Games Won: \" + playerWins, DIMENSIONS_SIZE + 10, DIMENSIONS_SIZE/3);\n\t\tg.drawString(\"Games Tied: \" + tieGames, DIMENSIONS_SIZE + 10, DIMENSIONS_SIZE/2);\n\t\tg.drawString(\"Games Lost: \" + aiWins, DIMENSIONS_SIZE + 10, 2*DIMENSIONS_SIZE/3);\n\t}", "static void showStatistics() throws IOException {\n System.out.println(\"You entered \" + initialSlots + \" for the number of slots on your wheel.\");\n System.out.println(\"You entered \" + initialZeroes + \" for the number of 0's or 00's on your wheel.\");\n System.out.println(\"You entered \" + initialVisits + \" for the number of times you visited to the casino.\");\n System.out.println(\"You entered $\" + initialDollars + \" for the amount of money you started with at every visit to the casino.\");\n System.out.println(\"You had $\" + dollarsRisked + \" for the total amount of money you brought to the casino over your visits.\");\n System.out.println(\"You walked away with $\" + moneyCount + \" total over \" + winCount + \" wins of your \" + initialVisits + \" total visits. This is %\" + df.format(percentWon) +\n \" of the $\" + dollarsRisked + \" you brought to the casino.\");\n System.out.println(\"Your most money won on a spin was $\" + biggestGain + \" across all your visits.\");\n // Prints to console if the user never won once on all their visits to the casino, otherwise lets them know the largest amount they walked away with\n if (largestWalkedAway < 1) {\n System.out.println(\"Sorry, you never walked away a winner across all \" + initialVisits + \" visits to the casino.\");\n } else {\n System.out.println(\"The most you ever walked away with on a visit to the casino was $\" + largestWalkedAway + \".\");\n }\n System.out.println(\"You came out a loser \" + lossCount + \" times out of your \" + initialVisits + \" visits.\" );\n // Prints to console only if the user never won once on all their visits to the casino\n if (completeLoss >= 1) {\n System.out.println(\"You completely lost all of your money in \" + completeLoss + \" visits.\");\n }\n // Gives the user of their average winnings/losses per visit of the casino\n System.out.println(\"You won an average of $\" + df.format(((float)runningTotal / initialVisits))+ \" each time you visited the casino.\");\n System.out.println(\"Out of \" + initialVisits + \" visits you walked away a winner \" + winCount + \" times. You walked away a loser \" + lossCount + \" times. \" +\n \"You broke even \" + brokeEven + \" times.\\n\");\n // Prompts the user to press Enter to exit the program\n System.out.println(\"Press Enter to exit.\");\n System.in.read();\n }", "public static void tstatSheet(){\n\t\tSystem.out.println(\"\\tStats\");\n\t\tSystem.out.println(\"--------------------------\");\n\t\tSystem.out.println(\"Strength - \" + tstr + \"\\tMagic Power - \" + tmag);\n\t\tSystem.out.println(\"Luck - \" + tluc + \" \\tAccuaracy - \" + tacc);\n\t\tSystem.out.println(\"Defense - \" + tdef + \" \\tSpeed - \" + tspe);\n\t\tSystem.out.println(\"Health - \" + tHP + \" \\tMystic Energy - \" + tMP);\n\t}", "private static void displayStat() {\n Collection<Zone> zones = Universe.getInstance().getCarte().getCarte().values();\r\n System.out.println(\"Nb de personnes créées : \" + Universe.getInstance().getCarte().getPopulation().size());\r\n\r\n\r\n System.out.println(\"Nb de personnes créées en mer : \" + getPopulationByTile(Zone.Tile.SEA));\r\n System.out.println(\"Nb de personnes créées en plaine : \" + getPopulationByTile(Zone.Tile.EARTH));\r\n System.out.println(\"Nb de personnes créées en foret : \" + getPopulationByTile(Zone.Tile.FOREST));\r\n System.out.println(\"Nb de personnes créées en ville : \" + getPopulationByTile(Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer : \" + getSurfaceByTile(zones, Zone.Tile.SEA));\r\n System.out.println(\"Surface plaine : \" + getSurfaceByTile(zones, Zone.Tile.EARTH));\r\n System.out.println(\"Surface foret : \" + getSurfaceByTile(zones, Zone.Tile.FOREST));\r\n System.out.println(\"Surface ville : \" + getSurfaceByTile(zones, Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Densité mer : \" + new Double(getPopulationByTile(Zone.Tile.SEA) / getSurfaceByTile(zones, Zone.Tile.SEA)));\r\n System.out.println(\"Densité plaine : \" + new Double(getPopulationByTile(Zone.Tile.EARTH)) / new Double(getSurfaceByTile(zones, Zone.Tile.EARTH)));\r\n System.out.println(\"Densité foret : \" + new Double(getPopulationByTile(Zone.Tile.FOREST)) / new Double(getSurfaceByTile(zones, Zone.Tile.FOREST)));\r\n System.out.println(\"Densité ville : \" + new Double(getPopulationByTile(Zone.Tile.TOWN)) / new Double(getSurfaceByTile(zones, Zone.Tile.TOWN)));\r\n\r\n System.out.println(\"---------------\");\r\n System.out.println(\"Surface mer deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n }", "private void calculateHeroStats() {\n int[] mods = calculateMods(heroRoll.hero, 40, skillOn);\n makePopupStat(hp, heroRoll, heroRoll.hero.HP, mods[0], getResources().getString(R.string.hp));\n makePopupStat(atk, heroRoll, heroRoll.hero.atk, mods[1], getResources().getString(R.string.atk));\n makePopupStat(spd, heroRoll, heroRoll.hero.speed, mods[2], getResources().getString(R.string.spd));\n makePopupStat(def, heroRoll, heroRoll.hero.def, mods[3], getResources().getString(R.string.def));\n makePopupStat(res, heroRoll, heroRoll.hero.res, mods[4], getResources().getString(R.string.res));\n\n int totalMods = mods[0] + mods[1] + mods[2] + mods[3] + mods[4];\n String bstText = heroRoll.getBST(getBaseContext()) < 0 ? \"?\" : heroRoll.getBST(getBaseContext()) - totalMods + \"\";\n bst.setText(getResources().getString(R.string.bst) + \" \" + bstText);\n bst.setTextColor(getResources().getColor(R.color.colorPrimary));\n }", "void showRanking(String winner, String rank);", "private static void printStats()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords found: \" + keywordHits);\r\n\t\tSystem.out.println(\"Links found: \" + SharedLink.getLinksFound());\r\n\t\tSystem.out.println(\"Pages found: \" + SharedPage.getPagesDownloaded());\r\n\t\tSystem.out.println(\"Failed downloads: \" + SharedPage.getFailedDownloads());\r\n\t\tSystem.out.println(\"Producers: \" + fetchers);\r\n\t\tSystem.out.println(\"Consumers: \" + parsers);\r\n\t}", "public void print()\n\t{\n\t\tif(gameObj[1].size() > 0)\n\t\t{\n\t\t\tSystem.out.println(\"*********************Player Info*******************************\");\n\t\t\tSystem.out.println(\"[Lives: \" + lives + \"][Score: \" + score + \n\t\t\t\t\t\t\t\"][Time: \" + gameTime + \"]\");\n\t\t\tSystem.out.println(\"*********************Player Info*******************************\");\n\t\t}else\n\t\t\tSystem.out.println(\"Spawn a player ship to view game info\");\n\t}", "public void addPlayerToStats(Player player) {\n\t\tfindForPlayer(player);\n\t}", "public void display (Player player) {\n player.setScoreboard(this.bukkitScoreboard);\n }", "private void showResults() {\n\n AlertDialog.Builder builder1 = new AlertDialog.Builder(this);\n\n Collections.shuffle(selectedPlayers); // shuffle the players the user has selected\n\n StringBuilder sb = new StringBuilder(); // create a string builder to add numbers in front of the players' names\n for (int i = 0; i < selectedPlayers.size(); i++) {\n sb.append(String.valueOf(i + 1) + \". \" + selectedPlayers.get(i) + \"\\n\");\n }\n builder1.setTitle(\"Player order is\");\n String s = sb.toString();\n s = s.trim();\n builder1.setMessage(s);\n builder1.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n }\n });\n gong.stop();\n gong.start();\n builder1.show();\n }", "public void updateTwoPlayersStatsInStats(PlayerStats stats1, PlayerStats stats2) throws IOException {\r\n\t\tScanner statsReader = new Scanner(new BufferedReader(new FileReader(\"statistics.txt\")));\r\n\t\tint numberOfPlayers;\r\n\t\tnumberOfPlayers = statsReader.nextInt();\r\n\t\tPlayerStats[] statsDirectory = new PlayerStats[numberOfPlayers];\r\n\t\t\r\n\t\tfor(int count = 0; count < numberOfPlayers; count++) {\r\n\t\t\tPlayerStats tempPlayerStats = new PlayerStats();\r\n\t\t\t/* load temporary stats object with stats */\r\n\t\t\treadPlayerStats(tempPlayerStats, statsReader);\r\n\t\t\t/* add new stats object to directory */\r\n\t\t\tstatsDirectory[count] = tempPlayerStats;\r\n\t\t}\r\n\t\t\r\n\t\tstatsReader.close();\r\n\t\t\r\n\t\t/* update the stats of the two players */\r\n\t\tfor(int index = 0; index < numberOfPlayers; index++) {\r\n\t\t\tif((statsDirectory[index].username).equals(stats1.username) == true) { // modify first player stats\r\n\t\t\t\tsetPlayerStats(statsDirectory[index], stats1);\r\n\t\t\t}\r\n\t\t\telse if((statsDirectory[index].username).equals(stats2.username) == true) { // modify second player stats\r\n\t\t\t\tsetPlayerStats(statsDirectory[index], stats2);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/* rewrite the statistics file with updated user stats */\r\n\t\tFileWriter writer = new FileWriter(\"statistics.txt\");\r\n\t\tBufferedWriter statsWriter = new BufferedWriter(writer);\r\n\t\tInteger numPlayers = numberOfPlayers;\r\n\t\tstatsWriter.write(numPlayers.toString()); // write the number of players\r\n\t\tstatsWriter.write(\"\\n\");\r\n\t\t\r\n\t\tfor(int count = 0; count < numberOfPlayers; count++) {\r\n\t\t\tstatsWriter.write(statsDirectory[count].playerStatsToString()); // write player to statistics.txt\r\n\t\t}\r\n\t\t\r\n\t\tstatsWriter.close();\r\n\t}", "public void showStats(View view) {\n Intent intent = new Intent(this, Stats.class);\n startActivity(intent);\n }", "@Override\n\tpublic void getScoreCardByPlayer(Player player) {\n\t\tSystem.out.printf(\"%12s: \", player.getName());\n\t\tChance[] chances = player.getScoreCard().getChances();\n\t\tfor (int i = 0; i < chances.length; i++) {\n\t\t\tif (i == chances.length - 1) {\n\t\t\t\tSystem.out.printf(\"|~ %02d|%02d ~|\", chances[i].getThrow1(), chances[i].getThrow2());\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"| %02d|%02d |\", chances[i].getThrow1(), chances[i].getThrow2());\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\" => %03d \", player.getScoreCard().getTotalScore());\n\t\tSystem.out.printf(\"Total Spare: %02d \", player.getScoreCard().getTotalSpare());\n\t\tSystem.out.printf(\"Total Strike: %02d%n\", player.getScoreCard().getTotalStrike());\n\t}", "public void displayStats(int lowAttack, int medAttack, int highAttack)\n\t{\n\t\tSystem.out.println (\"Summary of Combat\");\n\t\tSystem.out.println (\"Total Hits Overall: \" + numHits + \" Total Blocks Overall: \" + numBlocks);\n\t\tSystem.out.println (\"Attacker Proportions: \" + \"Low \" + lowAttack + \"% \" + \"Medium \" +\n\t\t\t\t\t\t\tmedAttack + \"% \" + \"High \" + highAttack + \"% \");\n\t\tSystem.out.print (\"Defender Proportions: \" + \"Low \");\n\t\tSystem.out.printf(\"%.2f\", (lowBlocks * 100)/(count+1));\n\t\tSystem.out.print(\"% \" + \"Medium \"); \n\t\tSystem.out.printf(\"%.2f\", ((medBlocks*100)/(count+1)));\n\t\tSystem.out.print(\"% \" + \"High \");\n\t\tSystem.out.printf(\"%.2f\", ((highBlocks*100)/(count+1)));\n\t\tSystem.out.println(\"% \");\t\t\n\t\n\t}", "public boolean showPlayer(){\n\t\t\n\t\tSystem.out.println(\"\\t\"+color+\"\\t \"+playermoney+\"\\t \\t\"+totalminions+\" \\t\"+totalbuildings+\" \\t\\t\"+personalityCard.cardName);\n\t\treturn true;\n\t}", "@Override\n public void updateStats() {\n if (isEnglish) {\n String moves = NUM_MOVES + presenter.getNumMoves();\n String time = TIME_LEFT + presenter.getTimeLeft();\n String points = POINTS + presenter.getPoints();\n painterTextViewMoves.setText(moves);\n painterTextViewTime.setText(time);\n painterTextViewPoints.setText(points);\n } else {\n String moves = NUM_MOVES_CHINESE + presenter.getNumMoves();\n String time = TIME_LEFT_CHINESE + presenter.getTimeLeft();\n String points = POINTS_CHINESE + presenter.getPoints();\n painterTextViewTime.setText(time);\n painterTextViewMoves.setText(moves);\n painterTextViewPoints.setText(points);\n }\n }", "private void scoreSumUp(ArrayList<Player> players){\n for (Player player: players) {\n System.out.println(\"The Player \" + player.getUsername() + \" has total points of \" + player.getScore());\n }\n }", "private void show() {\n System.out.println(team.toString());\n }", "private String getPlayersInfo(List<LightPlayer> players, String name){\n StringBuilder stringBuilder = new StringBuilder();\n for (LightPlayer player : players){\n stringBuilder.append(player.getName());\n if (player.getName().equals(name)) {\n stringBuilder.append(\" (you)\");\n }\n\n stringBuilder\n .append(\"\\n\")\n .append(player.getColor().name())\n .append(\" \")\n .append(\"[\")\n .append(player.getColor().name().toCharArray()[0])\n .append(\"]\")\n .append(\"\\n\");\n\n if (player.getCard() != null) {\n stringBuilder.append(player.getCard().getName().name());\n }\n\n stringBuilder.append(\"\\n\\n\\n\");\n }\n\n return stringBuilder.toString();\n }", "private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.println(\"The word is:\");\n\t\tSystem.out.println(\"->\\t\" + this.word.toString().replaceAll(\" \", \"\"));\n\t\tSystem.out.println(\"Your found the word with \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t}", "public void displayStats()\n {\n if(graph == null)\n {\n clearStats();\n }\n else\n { \n pathJTextArea.setText(graph.getPathString(pathList));\n costJTextField.setText(decimal.format(graph.getPathCost(pathList)));\n timeJTextField.setText(String.valueOf(timePassed));\n }\n }", "private void show() {\n System.out.println(\"...................................................................................................................................................................\");\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n for(int i = 0; i < players.size(); i++) {\n if (state.getTurn() == i) {\n System.out.print(Color.PURPLE.getPrintColor());\n System.out.print((i+1) + \"- \" + players.get(i).toString());\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n }\n else {\n System.out.print(Color.CYAN.getPrintColor());\n System.out.print((i+1) + \"- \" + players.get(i).toString());\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n }\n }\n System.out.println();\n System.out.print(\"Direction: \");\n if (state.getDirection() == +1) {\n System.out.println(Color.PURPLE.getPrintColor() + \"clockwise ↻\");\n }\n else {\n System.out.println(Color.PURPLE.getPrintColor() + \"anticlockwise ↺\");\n }\n System.out.println(Color.RESET.getPrintColor() + \"Turn: \" + Color.PURPLE.getPrintColor() + players.get(state.getTurn()).getName() + Color.RESET.getPrintColor());\n System.out.println(currentCard.currToString());\n if (controls.get(state.getTurn()) instanceof PcControl) {\n System.out.print(players.get(state.getTurn()).backHandToString() + Color.RESET.getPrintColor());\n }\n else {\n System.out.print(players.get(state.getTurn()).handToString() + Color.RESET.getPrintColor());\n }\n }", "public static void score() {\n\t\tSystem.out.println(\"SCORE: \");\n\t\tSystem.out.println(player1 + \": \" + score1);\n\t\tSystem.out.println(player2 + \": \" + score2);\n\t}", "public static void displayScoreCard(){\r\n\t\t\r\n\t\t try {\r\n\t\t\t \r\n\t\t\t //getting the connection\r\n\t\t\tstatement = connection.createStatement();\r\n\t\t\t\r\n\t\t\t//retriving the data from the database\r\n\t\t\t ResultSet results = statement.executeQuery(\"select * from \" + tableName);\r\n\t\t\t \r\n\t\t\t //Retrieves the Players_Name, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE and OUT_FRONT of this ResultSet object's columns. \r\n\t\t\t ResultSetMetaData rsmd = results.getMetaData();\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t System.out.println(\"\\t\\t\\t\\t Fort Cherry Golf Course\");\r\n\t\t\t // print the names of the above the table\r\n\t\t\t int numberCols = rsmd.getColumnCount();\r\n\t\t\t for (int i=1; i<=numberCols; i++) \r\n\t\t\t {\r\n\t\t\t // extract each column name from the meta data and print them\r\n\t\t\t System.out.print(rsmd.getColumnLabel(i)+\"\\t\"); \r\n\t\t\t }\r\n\r\n\t\t\t //simply printing the line\r\n\t\t\t System.out.println(\"\\n--------------------------------------------------------------------------------------------------\");\r\n\t\t\t \r\n\t\t\t // Reteriving all data one by one from the data base\r\n\t\t\t while(results.next())\r\n\t\t\t {\r\n\t\t\t String players_Name = results.getString(1);\r\n\t\t\t int ONE = results.getInt(2);\r\n\t\t\t int TWO = results.getInt(3);\r\n\t\t\t int THREE = results.getInt(4);\r\n\t\t\t int FOUR = results.getInt(5);\r\n\t\t\t int FIVE = results.getInt(6);\r\n\t\t\t int SIX = results.getInt(7);\r\n\t\t\t int SEVEN = results.getInt(8);\r\n\t\t\t int EIGHT = results.getInt(9);\r\n\t\t\t int NINE = results.getInt(10);\r\n\t\t\t int OUT_FRONT = results.getInt(11);\r\n\t\t\t \r\n\t\t\t //printing the retrive data to the console\r\n\t\t\t System.out.println(players_Name + \"\\t\" + ONE + \"\\t\" + TWO + \"\\t\" + THREE + \"\\t\" + FOUR + \"\\t\" + FIVE + \"\\t\" + SIX + \"\\t\" + SEVEN + \"\\t\" + EIGHT + \"\\t\" + NINE + \"\\t\" + OUT_FRONT);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t //closing the resultset and the statement\r\n\t\t\t results.close();\r\n\t\t\t statement.close();\r\n\t\t\t \r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\r\n//displays the property of defensive players to console\r\npublic String toString() {\r\n\t\r\n\tdouble feet = getHeight()/12;\r\n\tdouble inches = getHeight()%12;\r\n\t\r\n\treturn \"\\n\" + \"\\nDefensive Player: \\n\" + getName() \r\n\t+ \"\\nCollege: \" + getCollege() \r\n\t+ \"\\nHighschool: \" + getHighschool() \r\n\t+ \"\\nAge: \" + getAge() \r\n\t+ \"\\nWeight: \" + getWeight() \r\n\t+ \"\\nHeight: \" + feet + \" ft\" + \" \" + inches + \" in\" \r\n\t+ \"\\nTeam Number: \" + getNumber() \r\n\t+ \"\\nExperience: \" + getExperience()\r\n\t+ \"\\nTeam: \" + getTeam() \r\n\t+ \"\\nPosition: \" +getPosition() \r\n\t+ \"\\nTackles : \" + getTackles() \r\n\t+ \"\\nSacks: \" +getSacks() \r\n\t+ \"\\nInterceptions: \" + getInterceptions();\r\n}", "public void printScore(PrintWriter out) {\n out.format(\"SCORE OF %d PLAYERS%n\", players.size());\n out.println(\"ID\\tCASH\\tTYPE\");\n \t\n // Cria uma lista com os jogadores\n \tList<Competitor> score = new ArrayList<Competitor>(players.keySet());\n\n \t// Ordena os jogadores com base no total de cash\n \tCollections.sort(score, new PlayerComparator());\n\n \t// Imprime os resultados\n \tfor(Competitor c : score) {\n \t\tout.format(\"%d.%d\\t%.2f\\t(%s)%n\", players.get(c).Type,\n players.get(c).Id, c.getTotalCash(),\n c.getClass().getSimpleName());\n \t}\n out.flush();\n }", "public String showdown() {\n if(this.playerH.Rank() < this.serverH.Rank()|| \n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() < this.serverH.getSecondaryRank()) ||\n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() == this.serverH.getSecondaryRank() && this.playerH.getAuxRank() < this.serverH.getAuxRank())){\n if(this.playerBet <= this.serverBet){\n this.money_server += this.playerBet + this.serverBet;\n }\n else{\n this.money_server+= this.serverBet + this.serverBet; \n this.money_player += this.playerBet - this.serverBet;\n }\n }\n else if(this.playerH.Rank() > this.serverH.Rank()|| \n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() > this.serverH.getSecondaryRank()) ||\n (this.playerH.Rank() == this.serverH.Rank() && this.playerH.getSecondaryRank() == this.serverH.getSecondaryRank() && this.playerH.getAuxRank() > this.serverH.getAuxRank())){\n if(this.playerBet >= this.serverBet){\n this.money_player += this.playerBet + this.serverBet;\n }\n else{\n this.money_player += 2*this.playerBet;\n this.money_server += this.serverBet-this.playerBet;\n }\n }\n else{\n \n this.money_player += this.playerBet;\n this.money_server += this.serverBet;\n }\n this.playerBet = 0;\n this.serverBet = 0;\n this.state = -1;\n return \"show\"+this.serverH.toString();\n }", "public PlayerStats readPlayerStatsFromStats(String username) throws IOException{\r\n\t\tint numberOfPlayers;\r\n\t\tboolean found = false;\r\n\t\tint iteration = 0;\r\n\t\tScanner statReader = new Scanner(new BufferedReader(new FileReader(\"statistics.txt\")));\r\n\t\tPlayerStats stats = new PlayerStats();\r\n\t\tnumberOfPlayers = statReader.nextInt(); // read in the number of players\r\n\t\t\r\n\t\twhile((iteration < numberOfPlayers) && (!found)) {\r\n\t\t\treadPlayerStats(stats, statReader);\r\n\t\t\tif((stats.username).equals(username) == true){\r\n\t\t\t\tfound = true;\r\n\t\t\t\tstatReader.close();\r\n\t\t\t\treturn stats;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\titeration++;\r\n\t\t\t\t// maybe make this below into its own function to save space\r\n\t\t\t\tstats.username = username;\r\n\t\t\t\tresetPlayerStats(stats);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tstatReader.close();\r\n\t\treturn stats;\r\n\t}", "public void updatePlayerHealthUI() {\n CharSequence text = String.format(\"Score: %d\", getscore());\n scoreLabel.setText(text);\n }", "private void reportWinner (Player player) {\n System.out.println();\n System.out.println(\"Player \" + player.name() +\n \" wins.\");\n System.out.println();\n }", "public abstract void onBakestatsCommand(Player player);", "public String printResults(Athletes competitor, Game gam){\n\t\tAthletes winner1 = gam.getWinner1();\n\t\tAthletes winner2 = gam.getWinner2();\n\t\tAthletes winner3 = gam.getWinner3();\n\t\t\n\t\t\t\tif(competitor == winner1){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 5\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}else if(competitor == winner2){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 3\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}else if(competitor == winner3){\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 1\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\t\t\t\t\tString data = (String.format(\n\t\t\t\t\t\t\t\"ID: %-15s \\t Name: %-25s \\t Time: %-4d seconds \\t Points earned: 0\", competitor.getID(),\n\t\t\t\t\t\t\tcompetitor.getName(), competitor.getTime()));\n\t\t\t\t\treturn data;\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void updateStatsPanel() {\n\t\t//update versus table\n\t\tuser1 = Login.getInstance().getUserOne();\n\t\tuser2 = Login.getInstance().getUserTwo();\n\t\t\n\t\tif(isVersusTableInitialized==true) {\n\t\t\tmainPanel.remove(versusTable);\n\t\t}\n\t\t\n\t\tversusTable = generateVersusTable();\n\t\tmainPanel.add(versusTable);\n\t\tisVersusTableInitialized=true;\n\t\tversusTable.setBounds(600, 160, 150, 45);\n\t\tversusTable.setBackground(Color.LIGHT_GRAY);\n\t\tversusTable.setEnabled(false);\n\t\ttitle.setForeground(Color.WHITE);\n\t\t\n\t\t//update top ten table\n\t\tif(isTopTenTableInitialized==true) {\n\t\t\tmainPanel.remove(topTenTable);\n\t\t}\n\t\t\n\t\ttopTenTable=generateTopTenTable();\n\t\tmainPanel.add(topTenTable);\n\t\tisTopTenTableInitialized=true;\n\t\ttopTenTable.setBounds(150, 160, 150, 175);\n\t\ttopTenTable.setBackground(Color.LIGHT_GRAY);\n\t\ttopTenTable.setEnabled(false);\n\t\ttitle.setForeground(Color.WHITE);\n\t}", "public void mainkan(){\n System.out.println();\n //System.out.printf(\"Waktu: %1.2f\\n\", this.oPlayer.getWaktu());\n System.out.println(\"Nama : \" + this.oPlayer.nama);\n System.out.println(\"Senjata : \" + this.oPlayer.getNamaSenjataDigunakan());\n System.out.println(\"Kesehatan : \" + this.oPlayer.getKesehatan());\n// System.out.println(\"Daftar Efek : \" + this.oPlayer.getDaftarEfekDiri());\n System.out.println(\"Nama Tempat : \" + this.namaTempat);\n System.out.println(\"Narasi : \" + this.narasi);\n }", "public void displayResult(Dealer d) {\n if (d.getPlayer2ResultMap() != null) {\n\n controller.p1result.setText(String.format(\"%.2f\", controller.p1WinPercentage) + \"%\");\n controller.p2result.setText(String.format(\"%.2f\", controller.p2WinPercentage) + \"%\");\n controller.tielabel.setText(\"tie\");\n controller.tielabel.setTextFill(Color.BROWN);\n controller.tieresult.setText(String.format(\"%.2f\", controller.tiePercentage));\n controller.tieresult.setTextFill(Color.BROWN);\n if (controller.p1WinPercentage > controller.p2WinPercentage) {\n controller.p1result.setTextFill(Color.GREEN);\n controller.p2result.setTextFill(Color.RED);\n } else {\n controller.p1result.setTextFill(Color.RED);\n controller.p2result.setTextFill(Color.GREEN);\n }\n for (int i = 0; i < controller.p2ResultList.size(); i++) {\n controller.p2ResultList.get(i).setText(controller.p2Results[i]);\n }\n } else {\n for (int i = 0; i < controller.p2ResultList.size(); i++) {\n controller.p2ResultList.get(i).setText(\"\");\n }\n controller.p2result.setText(\"\");\n controller.tielabel.setText(\"\");\n controller.tieresult.setText(\"\");\n }\n\n for (int i = 0; i < controller.p1ResultList.size(); i++) {\n\n controller.p1ResultList.get(i).setText(controller.p1Results[i]);\n }\n controller.errorLabel.setText(\"\");\n }", "protected void dumpStats() {\n\t\t// Print the header.\n\t\tSystem.out.println(\"\\n\"+phCode+\" \"+minDelta+\" \"+maxDelta);\n\t\t\n\t\t// Print the data.\n\t\tSystem.out.println(\"Bias:\");\n\t\tfor(int j=0; j<bias.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,bias.get(j).minDelta,bias.get(j).maxDelta,\n\t\t\t\t\tbias.get(j).slope,bias.get(j).offset);\n\t\t}\n\t\tSystem.out.println(\"Spread:\");\n\t\tfor(int j=0; j<spread.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,spread.get(j).minDelta,spread.get(j).maxDelta,\n\t\t\t\t\tspread.get(j).slope,spread.get(j).offset);\n\t\t}\n\t\tSystem.out.println(\"Observability:\");\n\t\tfor(int j=0; j<observ.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,observ.get(j).minDelta,observ.get(j).maxDelta,\n\t\t\t\t\tobserv.get(j).slope,observ.get(j).offset);\n\t\t}\n\t}", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public static void main(String[] args) \n {\n BaseballStats player1 = new BaseballStats(\"Daeho Kim\",\"Giants\"); \n FootballStats player2 = new FootballStats(\"Doug Baldwin\",\"Seahawks\"); \n \n player1.score();\n player1.hit();\n player1.setError();\n player1.hit();\n player2.score();\n player2.gainYard(10);\n \n System.out.println(player1);\n System.out.println(player2);\n }" ]
[ "0.7488214", "0.7347457", "0.7173626", "0.71364766", "0.70912486", "0.700494", "0.6988932", "0.6942229", "0.69186705", "0.68688416", "0.6735086", "0.6663826", "0.6662481", "0.66577494", "0.6618615", "0.66099983", "0.6589199", "0.65848887", "0.6551093", "0.6493212", "0.64539754", "0.6447104", "0.6433544", "0.6408101", "0.64066774", "0.6369164", "0.63669413", "0.635996", "0.6325831", "0.6308836", "0.6303801", "0.63018584", "0.6283615", "0.62621355", "0.6258083", "0.625619", "0.6255278", "0.62551415", "0.6252272", "0.6230785", "0.62279654", "0.6168619", "0.61616117", "0.6146667", "0.61337477", "0.6131423", "0.61051583", "0.60833895", "0.6083098", "0.6055283", "0.6054077", "0.6044794", "0.6000762", "0.5977317", "0.5968378", "0.595999", "0.5959061", "0.59587187", "0.59515715", "0.5950192", "0.59215325", "0.5911404", "0.59106976", "0.58948654", "0.5880743", "0.5879125", "0.5864951", "0.58464694", "0.5838719", "0.58358705", "0.5833243", "0.5831222", "0.5819586", "0.5815936", "0.58157915", "0.5809697", "0.58044106", "0.5803622", "0.57960135", "0.57946455", "0.57854396", "0.5780694", "0.577209", "0.5760215", "0.57460713", "0.57306206", "0.5726206", "0.57250714", "0.5722299", "0.57172525", "0.5715516", "0.57141954", "0.5671999", "0.56699324", "0.56604517", "0.5658955", "0.56562084", "0.5655319", "0.5654298", "0.56529325" ]
0.727349
2
set focus traversable to true, this lets the user tab to this component.
public boolean isFocusable() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void focus() {}", "@Override\r\n\tpublic void focus() {\r\n\t\tactivate();\r\n\t\ttoFront();\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setFocus() {\r\n\t}", "public void setFocus();", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "private void setFocusTraversable(boolean b) {\n for (Node n : nodes) n.setFocusTraversable(b);\n }", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "public boolean isFocusTraversable()\n {\n return false;\n }", "@Override\n public void setFocus() {\n }", "@Override\n\tpublic void setFocus() {\n\t}", "public void Focus() {\n }", "public void setFocusable(boolean focusable) {\r\n if (focusable==false && hasFocus())\r\n releaseFocus();\r\n this.focusable = focusable;\r\n }", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "void focus();", "void focus();", "public void setFocus() {\n\t}", "public void setFocus() {\n }", "public boolean isFocusTraversable() {\n return true; // Not supported for MenuComponents\n }", "void setFocus();", "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "public void setFocus() {\r\n System.out.println(\"TN5250JPart: calling SetSessionFocus.run(): \" + tn5250jPart.getClass().getSimpleName());\r\n SetSessionFocus.run(tabFolderSessions.getSelectionIndex(), -1, tn5250jPart);\r\n }", "public void setFocus() {\n\t\tthis.viewer.getControl().setFocus();\n\t}", "@Override\n public void setFocus()\n {\n this.textInput.setFocus();\n }", "public void requestFocus() {\n // Not supported for MenuComponents\n }", "public void setFocusedObject(Focusable element) {\n if (this.focusedElement != null && this.focusedElement != element) {\n this.focusedElement.setFocused(false);\n element.setFocused(true);\n this.focusedElement = element;\n } else if (this.focusedElement == null) {\n element.setFocused(true);\n this.focusedElement = element;\n }\n }", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "@Override\n public void setFocus() {\n if (!modes.get(BCOConstants.F_SHOW_ANALYZER)) {\n if (textViewer != null) {\n textViewer.getTextWidget().setFocus();\n }\n } else {\n if (tableControl != null) {\n tableControl.setFocus();\n }\n }\n }", "public boolean isFocusable() {\r\n return focusable;\r\n }", "@Override\n public boolean isFocusable() {\n return false;\n }", "public void focus() {\n if (toSetFocus != null) {\n toSetFocus.requestFocus();\n } else {\n root.requestFocus();\n toSetFocus = null;\n }\n }", "public void setFocused(boolean focused);", "@SuppressWarnings(\"deprecation\")\n void updateFocusTraversalKeys() {\n /*\n * Fix for 4514331 Non-editable JTextArea and similar\n * should allow Tab to keyboard - accessibility\n */\n EditorKit editorKit = getEditorKit(editor);\n if (editorKit instanceof DefaultEditorKit) {\n Set<AWTKeyStroke> storedForwardTraversalKeys = editor.\n getFocusTraversalKeys(KeyboardFocusManager.\n FORWARD_TRAVERSAL_KEYS);\n Set<AWTKeyStroke> storedBackwardTraversalKeys = editor.\n getFocusTraversalKeys(KeyboardFocusManager.\n BACKWARD_TRAVERSAL_KEYS);\n Set<AWTKeyStroke> forwardTraversalKeys =\n new HashSet<AWTKeyStroke>(storedForwardTraversalKeys);\n Set<AWTKeyStroke> backwardTraversalKeys =\n new HashSet<AWTKeyStroke>(storedBackwardTraversalKeys);\n if (editor.isEditable()) {\n forwardTraversalKeys.\n remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));\n backwardTraversalKeys.\n remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,\n InputEvent.SHIFT_MASK));\n } else {\n forwardTraversalKeys.add(KeyStroke.\n getKeyStroke(KeyEvent.VK_TAB, 0));\n backwardTraversalKeys.\n add(KeyStroke.\n getKeyStroke(KeyEvent.VK_TAB, InputEvent.SHIFT_MASK));\n }\n LookAndFeel.installProperty(editor,\n \"focusTraversalKeysForward\",\n forwardTraversalKeys);\n LookAndFeel.installProperty(editor,\n \"focusTraversalKeysBackward\",\n backwardTraversalKeys);\n }\n\n }", "public void focus() {\n\t\tJWLC.nativeHandler().wlc_output_focus(this.to());\n\t}", "public void setFocus() {\n \t\tex.setFocus();\n \t}", "public void setFocusable(boolean focusable) {\n/* 799 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\tpublic void setFocus() {\r\n\t\tif (getControl() != null)\r\n\t\t\tgetControl().setFocus();\r\n\t}", "@Override\n public void requestFocus() {\n\tif (term != null) {\n\t //term.requestActive(); // Not implemented yet\n\t // TEMPORARY\n\t // boolean result = term.requestFocusInWindow();\n\t term.requestFocus();\n\t}\n }", "private boolean testTraversalComponent(Component comp){\n \n if (parent == null){\n return false;\n }\n \n /* Build list of focus traversable components in the parent component\n * This is only done once, unless resetReport is called */\n if (!tabTraversalPerformed){\n getTraversableComponents(parent);\n }\n \n if (!comp.hasFocus()){\n // try{\n comp.requestFocus();\n // Hack for our Windowing system - it invokes IllegalStateException if requestFocus isn't called from AWT thread\n // }catch(IllegalStateException exc){\n // // LOG ONLY -/\n // if(debugLog) {\n // System.err.println(\"EXCEPTION \" + exc.getMessage());\n // System.err.println(\"TRY TO CALL IT FROM AWT THREAD\");\n // }\n // final Component comp_final = comp;\n // try{\n // SwingUtilities.invokeAndWait(\n // new Runnable() {\n // public void run() {\n // comp_final.requestFocus();\n // }\n // });\n // }catch(Exception ex){\n // if(debugLog) System.err.println(\"EXCEPTION \" + ex.getMessage());\n //\n // }\n // }\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <testTraversalComponent(Component)> - After request focus | comp=\"+comp.getClass().getName()+\" hasFocus()=\"+comp.hasFocus());\n }\n \n tabTraversalFinished = false;\n switchTabbed = false;\n \n \n /* Attach custom focus listeners */\n org.netbeans.a11y.AccessibilityTester.TraversalFocusListener listener = new org.netbeans.a11y.AccessibilityTester.TraversalFocusListener();\n \n Iterator i = traversableComponents.iterator();\n while(i.hasNext()){\n ((Component)(i.next())).addFocusListener(listener);\n }\n \n org.netbeans.a11y.AccessibilityTester.TabTraversalTimeOut timeout = new org.netbeans.a11y.AccessibilityTester.TabTraversalTimeOut();\n timeout.start();\n \n /* Tab through all components */\n try{\n Robot robot = getRobot();\n \n // - LOG ONLY\n if(debugLog) {\n System.err.println(LOG_CAPTION+\" - <testTraversalComponent(Component)> - Robot=\"+robot.hashCode());\n Iterator it = traversableComponents.iterator();\n int ssl=0;\n while(it.hasNext()){\n ssl++;\n Component fcp = (Component)(it.next());\n System.err.println(LOG_CAPTION+\" - <testTraversalComponent(Component)> - [\"+ssl+\"] \"+fcp);\n }\n System.err.println(LOG_CAPTION+\" - <testTraversalComponent(Component)> - Traversable Components + end - =======\");\n } // LOG ONLY -/\n \n \n if (traversableComponents.size() > 0){\n Component lastFocused = null;\n \n while(!tabTraversalFinished){\n robot.keyPress(KeyEvent.VK_TAB);\n robot.keyRelease(KeyEvent.VK_TAB);\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <testTraversalComponent(Component)> - --> TAB Last Focused component=\"+lastFocused);\n \n try{\n Thread.currentThread().sleep(TAB_TRAVERSAL_DELAY);\n } catch(InterruptedException e){}\n \n Component focusedComponent = listener.getFocusedComponent();\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <testTraversalComponent(Component)> - --> Focused component=\"+focusedComponent);\n \n Component reallyFocusedComponent = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <testTraversalComponent(Component)> - --> Really Focused component=\"+reallyFocusedComponent);\n \n if((focusedComponent instanceof JTabbedPane) && !testSettings.TT_showingOnly) {\n robot.keyPress(KeyEvent.VK_RIGHT);\n robot.keyRelease(KeyEvent.VK_RIGHT);\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <testTraversalComponent(Component)> - --> VK_LEFT Focused component=\"+lastFocused);\n \n try{\n Thread.currentThread().sleep(TAB_TRAVERSAL_DELAY);\n } catch(InterruptedException e){}\n robot.keyPress(KeyEvent.VK_TAB);\n robot.keyRelease(KeyEvent.VK_TAB);\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <testTraversalComponent(Component)> - --> TAB Focused component=\"+lastFocused);\n \n switchTabbed = true;\n }else\n switchTabbed = false;\n \n if((focusedComponent==null && lastFocused==null) &&\n !( (reallyFocusedComponent instanceof JTextComponent) ||\n (reallyFocusedComponent instanceof JTabbedPane) ||\n (reallyFocusedComponent instanceof JTable)) ) {\n \n if(debugLog) System.err.println(LOG_CAPTION+\" - ERROR : It's impossible test Tab traversal. After TAB, CTRL + TAB or RIGHT hitting nothing happends.\");\n \n return false;\n }\n \n if (focusedComponent==lastFocused){\n // Component probably swallowed Tab keypress so try Ctrl-Tab\n robot.keyPress(KeyEvent.VK_CONTROL);\n robot.keyPress(KeyEvent.VK_TAB);\n robot.keyRelease(KeyEvent.VK_TAB);\n robot.keyRelease(KeyEvent.VK_CONTROL);\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <testTraversalComponent(Component)> - --> CONTROL_TAB Focused component=\"+focusedComponent);\n \n try{ Thread.currentThread().sleep(TAB_TRAVERSAL_DELAY); } catch(InterruptedException e){}\n \n focusedComponent = listener.getFocusedComponent();\n \n if ((focusedComponent == lastFocused) && (!switchTabbed)){\n \n // LOG ONLY -/\n if(debugLog) System.err.println(LOG_CAPTION+\" - <testTraversalComponent(Component)> - !!!!! LOCK !!!!! \"+focusedComponent + \"==\" + lastFocused);\n \n // Stuck or window lost focus, so give up\n break;\n }\n }\n lastFocused = focusedComponent;\n }\n }\n }catch(AWTException e){ e.printStackTrace();}\n \n timeout.cancel();\n \n /* Detach focus listeners */\n i = traversableComponents.iterator();\n while(i.hasNext()){\n ((Component)(i.next())).removeFocusListener(listener);\n }\n \n /* Set flag to show at least one tab traversal performed */\n tabTraversalPerformed = true;\n \n return true;\n }", "protected void doSetFocus() {\n\t\t// Ignore\n\t}", "void addFocus();", "public void setFocus() {\n\t\tui.setFocus();\n\t}", "@Override\n\tpublic void pressTab() {\n\t\tSystem.out.println(\"Change active control.\");\n\t\t\n\t\tchangeCurrentControl(false);\n\t\t\n\t\tif (getCurrentControlIndex() < getControls().size() - 1) \n\t\t\tsetCurrentControlIndex(getCurrentControlIndex() + 1);\n\t\telse \n\t\t\tsetCurrentControlIndex(0);\n\n\t\tchangeCurrentControl(true);\n\t}", "public void setupFocusable(){\n setFocusable(true);\n setFocusTraversalKeysEnabled(false);\n fwdButton.setFocusable(false);\n revButton.setFocusable(false);\n leftButton.setFocusable(false);\n rightButton.setFocusable(false);\n this.powerIcon.setFocusable(false);\n lServoWarn.setFocusable(false);\n startToggle.setFocusable(false);\n modeToggleButton.setFocusable(false);\n sensSlider.setFocusable(false);\n }", "public void setFormFocus() {\n\t\tint column = dm.getColSelected();\n\t\tif (rowElements.size() > column) {\n\t\t\tSystem.out.println(\"FormEntryTab.setFormFocus()\");\n\t\t\trowElements.get(column).requestFocusInWindow();\n\t\t}\n\t}", "public void setFocus() {\r\n\t\tIFormPart part = _parts.get(0);\r\n\t\tif ( part != null ) part.setFocus();\r\n\t}", "public void setAccessibilityFocused(boolean focused) {\n/* 868 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setFocus() {\n\t\tcompositeQueryTree.setFocus();\n\t}", "void setFocus( ChatTarget focus );", "public void setFocused(boolean value) {\n getPolymerElement().setFocused(value);\n }", "public void setFocus(boolean focus) {\n if (focus) {\n getContainerElement().focus();\n } else {\n getContainerElement().blur();\n }\n }", "private void changeFocus() {\n focusChange(etTitle, llTitle, mActivity);\n focusChange(etOriginalPrice, llOriginalPrice, mActivity);\n focusChange(etTotalItems, llTotalItems, mActivity);\n focusChange(etDescription, llDescription, mActivity);\n }", "protected void doSetFocus() {\n \t\tif (getText() != null) {\n \t\t\tgetText().selectAll();\n \t\t\tgetText().setFocus();\n \t\t\tcheckSelection();\n \t\t\tcheckDeleteable();\n \t\t\tcheckSelectable();\n \t\t}\n \t}", "@Override\n\tprotected void handleFocus (Context context, boolean focus) {\n\t\tif (focus) context.requestFocus();\n\t}", "void setHeaderAccessibilityFocus();", "public CommonPopWindow setFocusable(boolean focusable) {\n/* 218 */ this.mFocusable = focusable;\n/* 219 */ return this;\n/* */ }", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "private void getTraversableComponents(Component comp){\n \n if ((comp instanceof Container)){\n Container container = (Container)comp;\n Component[] children = container.getComponents();\n for (int c = 0; c < children.length; c++){\n getTraversableComponents(children[c]);\n }\n }\n \n //hack for JDK 1.4 or higher if (!(testSettings.TT_showingOnly && !comp.isShowing()) && comp.isFocusTraversable()){\n if (!(testSettings.TT_showingOnly && !comp.isShowing()) && testFocusability(comp))\n traversableComponents.add(comp);\n }", "@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void focusGained(FocusEvent e) {\n }", "@Override\n public void focusGained(FocusEvent e) {\n }", "@Override\n public void focusGained(FocusEvent e) {\n }", "@Override\n public void focusGained(FocusEvent e) {\n }", "public void focus() {\n getRoot().requestFocus();\n }", "@Override\n\tpublic void focusGained(FocusEvent e) {\n\t}", "@Override\r\n\tpublic boolean isFocused() {\n\t\treturn false;\r\n\t}", "public void focusGained(FocusEvent arg0) {\r\n Object object = tabFolderSessions.getData(TabFolderSessionsData.TARGET_FOCUS_CONTROL);\r\n if (object instanceof TN5250JGUI) {\r\n // Focus set\r\n tabFolderSessions.setData(TabFolderSessionsData.TARGET_FOCUS_CONTROL, null);\r\n TN5250JGUI tn5250jGUI = (TN5250JGUI)object;\r\n }\r\n System.out.println(\"TN5250JPart: Tab folder gained focus: \" + tn5250jPart.getClass().getSimpleName());\r\n setFocus();\r\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\r\n\t\t\t\t\t\t\t}", "@Override\n public void focusGained(FocusEvent e) {\n }", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.71171546", "0.7089689", "0.68360096", "0.68341845", "0.68233985", "0.6821452", "0.6821452", "0.6821452", "0.6821452", "0.6821452", "0.6801993", "0.68007165", "0.68007165", "0.68007165", "0.68007165", "0.67866975", "0.67819023", "0.6778917", "0.6748246", "0.6733702", "0.67300314", "0.67300314", "0.67300314", "0.67300314", "0.67300314", "0.67300314", "0.67300314", "0.67227453", "0.67227453", "0.66683954", "0.66464776", "0.66318566", "0.6623836", "0.65147364", "0.64762384", "0.6460804", "0.6459005", "0.64524513", "0.64408237", "0.6433062", "0.6433062", "0.6433062", "0.64146537", "0.63792306", "0.6368298", "0.6362543", "0.63301176", "0.6301672", "0.6268274", "0.62085384", "0.6204016", "0.62033033", "0.61832565", "0.6180975", "0.6171487", "0.61606693", "0.6136519", "0.61086273", "0.6084147", "0.60695875", "0.6048861", "0.6046386", "0.60002923", "0.5984738", "0.5972317", "0.59462005", "0.5938197", "0.59337723", "0.5904963", "0.58787197", "0.5865774", "0.58420867", "0.58420867", "0.58420867", "0.58420867", "0.58420867", "0.58420867", "0.58420867", "0.5801624", "0.58001566", "0.58001566", "0.5791695", "0.5791695", "0.57865953", "0.57865953", "0.5781528", "0.5781528", "0.5781528", "0.57779014", "0.57779014", "0.57779014", "0.57779014", "0.57691133", "0.5767471", "0.57643133", "0.57576036", "0.57560676", "0.57550263", "0.5752806", "0.5752806" ]
0.66294533
32
set font size to be equal as the player size
protected void setFont(Graphics2D g2, int space, int minFontSize) { boolean fontFits = false; Font font = g2.getFont(); FontMetrics fontMetrics = g2.getFontMetrics(); int size = font.getSize(); String name = font.getName(); int style = font.getStyle(); while (!fontFits) { if (fontMetrics.getHeight() <= space) { fontFits = true; } else { if (size <= minFontSize) { fontFits = true; } else { g2.setFont(font = new Font(name, style, --size)); fontMetrics = g2.getFontMetrics(); } } } return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }", "public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}", "public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }", "public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }", "public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}", "public void setTitleFontSize(int size) {\n\t\tthis.title_fontsize = size;\n\t}", "public void setTextSizePx(float size) {\n mPaint.setTextSize(size);\n mSpaceWidth = mPaint.measureText(\" \");\n invalidate();\n }", "public void setProgressTextSize(int size){\n mProgressTextSize = Utils.sp2px(mContext, size);\n refreshTheView();\n }", "private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}", "public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }", "public float getFontSize();", "public void setSizePlayingFields()\r\n {\n setPreferredSize(new Dimension(109*8,72*8));//powieżchnia o 2 m z każdej strony większa niz boisko 106 i 69 pomnożone o 8\r\n //większe boisko żeby było widać\r\n setMaximumSize(getMaximumSize());\r\n setBackground(Color.green);\r\n }", "public void setTextSize() {\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n }", "public int getFontSize();", "public void changeSize()\n {\n //if mouse is on the play button, make it bigger\n if(Greenfoot.mouseMoved(this))\n setImage(\"play button bigger.png\");\n //if mouse is on the background, return play button to regular size\n else if(Greenfoot.mouseMoved(getWorld()))\n setImage(\"play button.png\");\n }", "public void settings() {\r\n\t\tthis.size(PlayGame.WIDTH,PlayGame.HEIGHT);\r\n\t}", "public FontRenderer setSize(float size) {\n\t\tthis.size = size;\n\t\ttransform.setScale(size);\n\t\t\n\t\treturn this;\n\t}", "private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }", "private void setFontSize(float newFontSize) {\n\t\tfontSize = newFontSize;\n\t\tproperties.setProperty(\"fontSize\", Float.toString(newFontSize));\n\n\t\t// update all text-based components\n\t\tfor (Component c : components)\n\t\t\tc.setFont(c.getFont().deriveFont(newFontSize));\n\t\t\n\t\t// update machine graphics\n\t\tupdate(); \n\t}", "public void setFontSize(int fontSize)\r\n {\r\n myFontSize = fontSize;\r\n }", "public void setTextSize(float textSize) {\n mTextContainer.setTextSize(textSize);\n }", "void setFontScale(\n float s);", "public void setFontSize(int font) {\n\t\tthis.font = font;\n\t}", "public void setFont(String fontname, int fontsize){\n\t\tint tw = textWidth;\n\t\tint fs = (int) localFont.getSize();\n\t\tlocalFont = GFont.getFont(winApp, fontname, fontsize);\n\t\tif(fontsize > fs)\n\t\t\theight += (fontsize - fs);\n\t\tsetText(text);\n\t\tif(textWidth > tw)\n\t\t\twidth += (textWidth - tw);\n\t\tArrayList<GOption> options = optGroup.getOptions();\n\t\tfor(int i = 0; i < options.size(); i++)\n\t\t\toptions.get(i).setWidth((int)width - 10);\n\t\tslider.setX((int)width - 10);\n\t}", "public void setSubtitleFontSize(int size) {\n\t\tthis.subtitle_fontsize = size;\n\t}", "public void setFontSize(int fontSize) {\n this.fontSize = fontSize;\n updateLineHeight();\n updateCursor();\n update();\n }", "public void resize_screen(){\r\n \tstop_scn_updates();\r\n \tscn_font_size = min_font_size+1;\r\n \twhile (scn_font_size < max_font_size){\r\n \t\tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \t\tcalc_screen_size();\r\n \t\tif (scn_image.getWidth() < main_panel_width\r\n \t\t\t&& scn_image.getHeight() < main_panel_height){\r\n \t\t\tscn_font_size++;\r\n \t\t} else {\r\n \t\t scn_font_size--;\r\n \t\t break;\r\n \t\t}\r\n \t} \t\r\n \tscn_font = new Font(tz390.z390_font,Font.BOLD,scn_font_size);\r\n \tcalc_screen_size();\r\n start_scn_updates();\r\n }", "public void setFontSize(float fs) {\n\t\tif (fs != fontSize) {\n\t\t\tfontSize = fs;\n\t\t\treload();\n\t\t}\n\t}", "public int getFontSize()\n \t{\n \t\treturn 13;\n \t}", "public void setFontSize(int fontSize) {\r\n try {\r\n this.setFont(this.getFont().deriveFont((float) fontSize));\r\n } catch (Exception e) {\r\n ToggleButton.logger.error(this.getClass().toString() + \" : Error establishing font size\", e);\r\n if (ApplicationManager.DEBUG) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n }\r\n }", "public void setSize(PlayerSize size) {\n if (size == this.size) {\n return; // Return, already sized like that\n }\n\n PlayerSize oldSize = this.size;\n this.size = size;\n\n updateSizeSafely(getView());\n\n if (mListener != null) {\n mListener.onPlayerSizeChanged(size, oldSize);\n }\n }", "public void setFontSizeText( String text )\r\n\t{\r\n\t\t// set the text in the Font Size text field as per the String passed in\r\n\t\tfontSizeTextField.setText( text );\r\n\t}", "public void setModifierFont(String name, int type, int size) \n {\n RendererSettings.getInstance().setLabelFont(name, type, size);\n _SPR.RefreshModifierFont();\n }", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "public float getFontSize() {\n return fontSize;\n }", "void setPaperSize(short size);", "public void update()\n\t{\n\t\tsetFont(attribs.getFont());\n\t\tTextMeshGenerator.generateTextVao(this.text, this.attribs, this.font, this.mesh);\n\t\tsize = new Vector2f(mesh.maxPoint.x(), mesh.maxPoint.y());\n\t}", "public void grow() {\n\t\thtmlFontSize += 40;\n\t}", "public double getFontSize(\n )\n {return fontSize;}", "public static void setDefaultSize(int size) {\r\n\t\tSet<Object> keySet = UIManager.getLookAndFeelDefaults().keySet();\r\n\t\tObject[] keys = keySet.toArray(new Object[keySet.size()]);\r\n\r\n\t\tfor (Object key : keys) {\r\n\t\t\tif (key != null && key.toString().toLowerCase().contains(\"font\")) {\r\n\t\t\t\tFont font = UIManager.getDefaults().getFont(key);\r\n\t\t\t\tif (font != null) {\r\n\t\t\t\t\tfont = font.deriveFont((float)size);\r\n\t\t\t\t\tUIManager.put(key, font);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int getFontSize()\r\n {\r\n return myFontSize;\r\n }", "public LabelBuilder setFontSize(int size) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.getFont().setSize(size);\n\t\treturn this;\n\n\t}", "public DisplayText (GraphicsContext gc, Canvas gameCanvas, int size) {\n\t\tthis.gc = gc;\n\t\tthis.gameCanvas = gameCanvas;\n\t\t\n\t\t vector = Font.loadFont(getClass().getResourceAsStream(\"/fonts/Vectorb.ttf\"), size); //load my custom font at the specified size \n\t}", "void setFontSpacingSlider(Font font);", "public void settings() { size(1200, 800); }", "protected void newSize() {\r\n adjustSize();\r\n halt();\r\n newGame();\r\n }", "@Override\n\tpublic void resize(int w, int h) {\n\t\tthis.leveys = w;\n\t\tthis.korkeus = h;\n\t\tthis.batch = new SpriteBatch();\n\t\tthis.ylaPalkinKorkeus = (int) (0.0931 * leveys);\n\n//\t\tskaala = Math.min((float) (w - 50) / 640,\n//\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tskaala = Math.min((float) (w - 50) / 590,\n\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 354f);\n\n\t\t//System.out.println(\"(w - 50) / 640 = \" + w + \" - 50) / 640 = \" + (float) (w - 50) / 640);\n\t\t//System.out.println(\"(h - 50 - ylaPalkinKorkeus) / 370f) = \" + h + \"- 50 - \" + ylaPalkinKorkeus + \") / 370f = \" + (float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tSystem.out.println(\"Fontin skaala: \" + skaala);\n\t\tfont2.setScale(skaala);\n\t\t//font2.setScale(skaala*0.2f);\n\t\t// leveysSkaala = w / 640;\n\t\t// korkeusSkaala = h / 480;\n\n\t}", "private void setPrefSizeForText()\n {\n double prefW = getSuggestedPrefWidth();\n double prefH = _textArea.getPrefHeight();\n setPrefSize(prefW, prefH);\n }", "public void checkTextSize(){\n mShp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n String textSize = mShp.getString(\n getString(R.string.pref_textSize_key),\n getString(R.string.pref_textSize_default)\n );\n float size = Float.parseFloat(textSize);\n mTaleText.setTextSize(TypedValue.COMPLEX_UNIT_SP,size);\n }", "public void setSize(VideoSize size) {\n this.size = size;\n }", "public void setLabelFont(int fontSize){\n Font labelFont = new Font(\"Serif\", Font.PLAIN, fontSize);\n minLabel.setFont(labelFont);\n medLabel.setFont(labelFont);\n maxLabel.setFont(labelFont);\n emptyLabel.setFont(labelFont);\n errorLabel.setFont(labelFont);\n }", "public IconBuilder fontSize(int size) {\n\t\tthis.fixedFontSize = size;\n\t\treturn this;\n\t}", "public void setTabFontSize(int tabSelectionIndex, int newFonSize) {\r\n\t\tif (tabSelectionIndex == 0) {\r\n\t\t\t//actual no special font size adaption enabled\r\n\t\t}\r\n\t\telse if (tabSelectionIndex > 0) {\r\n\t\t\tif (this.displayTab.getItem(tabSelectionIndex) instanceof DigitalWindow) {\r\n\t\t\t\t//this.settings.setDigitalDisplayFontSize(newFonSize); actual no pesistens enabled\r\n\t\t\t\tthis.digitalTabItem.setDigitalDisplayFontSize(newFonSize);\r\n\t\t\t\tthis.updateDigitalWindowChilds();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int fontSize() {\n\t\treturn fixedFontSize;\n\t}", "public int scaleForPixelHeight(int size) {\r\n\t\tif (!bitmapped && !FreeType.setPixelSizes(face, 0, size))\r\n\t\t\tthrow new GdxRuntimeException(\"Couldn't set size for font\");\r\n\t\tSizeMetrics fontMetrics = face.getSize().getMetrics();\r\n\t\tint ascent = FreeType.toInt(fontMetrics.getAscender());\r\n\t\tint descent = FreeType.toInt(fontMetrics.getDescender());\r\n\t\treturn size * size / (ascent - descent);\r\n\t}", "public void setTextLabelFontSize(int mTextLabelFontSize) {\n\t\tthis.mTextLabelFontSize = mTextLabelFontSize;\n\t}", "private void setTextSize(ViewHolder holder) {\n // Get the text size string from SharedPreferences and check for the value associated with the key\n String textSize = sharedPrefs.getString(\n mContext.getString(R.string.settings_text_size_key),\n mContext.getString(R.string.settings_text_size_default));\n\n // Change text size of TextView by using the user's stored preferences\n if(textSize.equals(mContext.getString(R.string.settings_text_size_medium_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp22));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_small_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp20));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_large_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp24));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp18));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n }\n }", "private void getFontSizeShared() {\n\t\t // get shared preference\n\t\t SharedPreferences readeShared = getSharedPreferences(\"fontSize\" , MODE_PRIVATE);\n\n\t\t if ( readeShared != null ) {\n\t\t\t String size = readeShared.getString(\"size\" , null);\n\t\t\t if ( size != null && size.length() > 0 ) {\n\t\t\t\t\tif ( size.equals(\"s\") ) {\n\n\t\t\t\t\t\t setFontSize(18);\n\n\t\t\t\t\t} else if ( size.equals(\"m\") ) {\n\n\t\t\t\t\t\t setFontSize(20);\n\n\t\t\t\t\t} else if ( size.equals(\"l\") ) {\n\n\t\t\t\t\t\t setFontSize(24);\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\t }", "public void settings() {\r\n size(750, 550);\r\n }", "public final int getFontSize() {\n return fontSize;\n }", "public abstract void resizeFrame(JFrame frame, int fontSize);", "private void updateFont() {\n this.currFont = new Font(this.currentFontFamily.getItemText(this.currentFontFamily.getSelectedIndex()),\n Integer.parseInt(this.currentFontSize.getItemText(this.currentFontSize.getSelectedIndex())),\n this.currentFontStyle.getItemText(this.currentFontStyle.getSelectedIndex()),\n Font.NORMAL,\n this.currentFontWeight.getItemText(this.currentFontWeight.getSelectedIndex())); \n }", "public void setTextViewSize(float px) {\r\n\t\tfloat scaledDensity = getResources().getDisplayMetrics().scaledDensity;\r\n\t\tint sp = (int) (px / scaledDensity);\r\n\t\tsetTextSize(sp);\r\n\t}", "public void setLabelTextSize(float labelTextSizeSp) {\n chassisView.setLabelTextSize(labelTextSizeSp);\n }", "public void setSize(String size) {\n this.size = size;\n }", "public void setSize(double size) \n {\n this.size = size;\n }", "@Override\n\tpublic void showSize() {\n\t\tSystem.out.print(\"This pen is small.\");\n\t}", "private void initLrcFontSize() {\n int screeHeight=getResources().getDisplayMetrics().heightPixels;\n int marginLeft=(int)(1.0*screeHeight/9);\n LrcView.defaultTextSize=DensityUtil.px2sp(this, (marginLeft));//设置默认的歌词大小\n LrcView.defaultDividerHeight=marginLeft/2;\n }", "public void setFont(Font value) {\r\n this.font = value;\r\n }", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "public void sizeActionPerformed(java.awt.event.ActionEvent evt) {\n myFont.size = ((Integer) size.getSelectedItem()).intValue(); /*FAULT:: myFont.size = 5; */\n }", "private void setFont() {\n\t\tsessionTitle.setFont(FONT_TITLE);\n\t\tdetailedDescription.setFont(FONT_DESCRIPTION);\n\t\texitButton.setFont(FONT_BUTTON);\n\t}", "private void setFont() {\n\t}", "private void setRawTextSize(float f) {\n if (f != this.mTextView.getPaint().getTextSize()) {\n this.mTextView.getPaint().setTextSize(f);\n boolean bl = false;\n if (Build.VERSION.SDK_INT >= 18) {\n bl = this.mTextView.isInLayout();\n }\n if (this.mTextView.getLayout() != null) {\n this.mNeedsAutoSizeText = false;\n try {\n Method method = this.getTextViewMethod(\"nullLayouts\");\n if (method != null) {\n method.invoke((Object)this.mTextView, new Object[0]);\n }\n }\n catch (Exception exception) {\n Log.w((String)\"ACTVAutoSizeHelper\", (String)\"Failed to invoke TextView#nullLayouts() method\", (Throwable)exception);\n }\n if (!bl) {\n this.mTextView.requestLayout();\n } else {\n this.mTextView.forceLayout();\n }\n this.mTextView.invalidate();\n }\n }\n }", "public void setSize(float width, float height);", "double getFontSizeAdjustment() {\n return fontSizeAdjustment;\n }", "@Override\r\n\tpublic int getFontSize() {\n\t\treturn 0;\r\n\t}", "public final void setFontSize(final int fontSize) {\n if (this.fontSize != fontSize) {\n this.fontSize = fontSize;\n flush();\n }\n }", "public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }", "@Override\n\tpublic void render(Canvas canvas) {\n\t\tPaint paint = new Paint();\n\t\tpaint.setColor(Color.parseColor(\"#D95B43\"));\n\t\tpaint.setTextSize(50 * Globals.scaleY);\n\t\tint width = (int)paint.measureText(this.toString(), 0, this.toString().length());\n\t\t\n\t\tthis.x = (int) ((gamePanel.width - width) / 2.0f);\n\t\t\n\t\tcanvas.drawText(this.toString(), x, y, paint);\n\t}", "public int getMyFontSize() {\n return myFont.size; /*Fault:: return 5; */\n }", "public static void setRecorderVideoSize(Size size){\n\t}", "@Override\n public void settings(){\n size(500, 500);\n }", "public String getFontSizeText()\r\n\t{\r\n\t\treturn fontSizeTextField.getText(); // return the text in the Font Size text field\r\n\t}", "void setSize(float w, float h) {\n _w = w;\n _h = h;\n }", "public void setModifierFont(String name, int type, int size, float tracking, Boolean kerning) \n {\n RendererSettings.getInstance().setLabelFont(name, type, size, kerning, tracking);\n _SPR.RefreshModifierFont();\n }", "public void setHightlightedTextSize(Float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mHightlightedTextSize = Utils.convertDpToPixel(size);\n\n }", "public void setSize(int size);", "private static void loadTextSizes(Context context)\n\t{\n\t\tDisplayMetrics metrics = context.getResources().getDisplayMetrics();\n\t\tTEXT_SIZE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, metrics);\n\t\tTEXT_SIZE_BIG = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 20, metrics);\n\t\tPADDING = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, metrics);\n\t\tTEXT_SPACE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 150, metrics);\n\t}", "public void setFontHeightInPoints(short height)\n {\n font.setFontHeight(( short ) (height * 20));\n }", "private void updateLineHeight() {\n Text text = new Text(\"AM\");\n text.setFont(new Font(fontType, fontSize));\n lineHeight = round(text.getLayoutBounds().getHeight());\n }", "@Override\n public void settings() {\n size(800, 800, P3D);\n }", "public StockEvent setFontSize(Integer fontSize) {\n this.fontSize = fontSize;\n return this;\n }", "public ComDialogBuilder setTitleTextSize(int textsize) {\n if(dialogTitle!=null){\n dialogTitle.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }", "public void setTextFont(Font font);", "private void drawDeckSize(Graphics2D g2)\n\t{\n\t\tFont fontyFont = new Font(\"IMPACT\", Font.BOLD, LARGE_FONT);\n\t\tg2.setFont(fontyFont);\n\t\tg2.setColor(Color.WHITE);\n\t\tString cardAmt = sizeOfDeck + \" card\";\n\t\tif (sizeOfDeck > 1)\n\t\t\tcardAmt += \"s in deck\";\n\t\telse\n\t\t\tcardAmt += \" in deck\";\n\t\tint curWidth = WIDTH_OF_SIZE_TEXT;\n\t\tif (sizeOfBurnDeck > 0)\n\t\t{\n\t\t\tcardAmt += \" ( \" + sizeOfBurnDeck + \" burned )\";\n\t\t\tcurWidth = WIDTH_OF_SIZE_TEXT_EXTENDED;\n\t\t}\n\t\tif (sizeOfDeck > 0)\n\t\t\tg2.drawString(cardAmt, frameWidth / 2 - curWidth / 2,\n\t\t\t\t\tDISTANCE_OF_SIZE_TEXT_FROM_TOP_OF_SCREEN);\n\t}", "void setFontSize(float fontSize)\r\n\t{\r\n\t\tint fontIndex = appearanceTokens.indexOf(Operator.getOperator(\"Tf\"));\r\n\t\tif (fontIndex != -1)\r\n\t\t{\r\n\t\t\tappearanceTokens.set(fontIndex - 1, new COSFloat(fontSize));\r\n\t\t}\r\n\t}", "public void settings() {\r\n size(WIDTH, HEIGHT); // Set size of screen\r\n }", "public static void adaptFontSize(JComponent component) {\n\t\tFont currentFont = component.getFont();\n\t\tFont newFont = currentFont.deriveFont((float)DPI.toScale(currentFont.getSize()));\n\t\tcomponent.setFont(newFont);\n\t}", "protected void adjustSize() {\r\n fieldDim = mineField.getSquareLength() * mineField.getFieldLength();\r\n setSize( fieldDim + X_BORDER * 2, fieldDim + Y_BORDER * 3 );\r\n validate();\r\n }", "public void setFontLevel(int level) {\n super.setFontLevel(level);\n Object[] objectsToSize = new Object[]\n {unmarkedLabel, fixedCoordinatesItem};\n FontSizer.setFonts(objectsToSize, level);\n }" ]
[ "0.7018466", "0.69654745", "0.69343436", "0.68234706", "0.6774161", "0.6761184", "0.6668455", "0.66195875", "0.661749", "0.65817785", "0.6581506", "0.65401876", "0.65365136", "0.65297616", "0.6462595", "0.6450314", "0.6441289", "0.64236134", "0.6374524", "0.63619494", "0.63502043", "0.6349715", "0.6347906", "0.632847", "0.63058674", "0.6289462", "0.6288813", "0.62478054", "0.62430596", "0.62334716", "0.6228545", "0.6124054", "0.6115859", "0.6108787", "0.60893434", "0.6087935", "0.60850096", "0.60776514", "0.6065695", "0.60555214", "0.60552573", "0.605112", "0.6004727", "0.5992487", "0.5974519", "0.5968433", "0.5963784", "0.5963507", "0.5956443", "0.5954133", "0.5933236", "0.5920843", "0.59093994", "0.58922285", "0.588803", "0.5878358", "0.5872304", "0.58600825", "0.58462983", "0.5844132", "0.5823968", "0.5813812", "0.58118933", "0.58045936", "0.58014673", "0.57943976", "0.5794263", "0.5790459", "0.57864785", "0.5782797", "0.5775052", "0.576229", "0.57539153", "0.5749824", "0.57324743", "0.5719761", "0.5713485", "0.57130635", "0.57129467", "0.5712714", "0.56976193", "0.5693381", "0.56930476", "0.5687391", "0.5681399", "0.5679029", "0.5675356", "0.56727153", "0.56702715", "0.5664286", "0.56600934", "0.5647834", "0.56467605", "0.5644862", "0.56433475", "0.56353843", "0.56336933", "0.5625155", "0.5619815", "0.5610143", "0.5601862" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79033595", "0.7804288", "0.7765498", "0.77259207", "0.76304305", "0.7621137", "0.75833404", "0.7529789", "0.7487063", "0.74565315", "0.74565315", "0.7437683", "0.7421245", "0.7402311", "0.7390894", "0.7386079", "0.737815", "0.7369255", "0.736113", "0.735479", "0.7344447", "0.734025", "0.7329128", "0.73270583", "0.7324825", "0.7317847", "0.73155415", "0.7312412", "0.7303026", "0.7303026", "0.73007256", "0.7297113", "0.729233", "0.7285319", "0.72823304", "0.7280138", "0.7277586", "0.7258777", "0.7258777", "0.7258777", "0.72585803", "0.7258243", "0.7248879", "0.72234964", "0.72184324", "0.7215719", "0.72033244", "0.7200154", "0.7198401", "0.71922433", "0.71840334", "0.7176206", "0.71674716", "0.7166383", "0.71526295", "0.7152371", "0.7134688", "0.7133906", "0.7133906", "0.7128449", "0.7128042", "0.7122815", "0.7122077", "0.7121844", "0.7121112", "0.71162665", "0.71162665", "0.71162665", "0.71162665", "0.71161425", "0.7115744", "0.71155477", "0.7113714", "0.7111134", "0.710854", "0.7107651", "0.71046424", "0.7098247", "0.70971054", "0.70954835", "0.70927733", "0.70927733", "0.7085175", "0.70818853", "0.70799553", "0.707917", "0.7072562", "0.7067317", "0.70607203", "0.7059167", "0.70591426", "0.70505077", "0.7036854", "0.7036854", "0.7034675", "0.7034399", "0.7034399", "0.7030972", "0.70300573", "0.7028323", "0.70180345" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { DBConnectionMgr dbMgr = DBConnectionMgr.getInstance(); DeptDao dd = new DeptDao(); dbMgr.getConnection(); dd.selectALL(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ A neighbour sending its routing table to a node in order to share its current knowledge of the network
public boolean exchangeDistances(Node node, Node neighbour, boolean hasUpdate, boolean splitHorizon) { int cost = node.getDistanceVector().get(neighbour); int currentBest; // current best distance to a node in the network int offeredBest; // best distance offered by the neighbour for (Node n : neighbour.getDistanceVector().keySet()) { currentBest = node.getDistanceVector().get(n); offeredBest = neighbour.getDistanceVector().get(n) + cost; if (currentBest > offeredBest && offeredBest > 0) { // split horizon execution if (splitHorizon && !neighbour.getForwardingTable().get(n).getName().equals(node.getName())) { node.getDistanceVector().put(n, offeredBest); node.getForwardingTable().put(n, neighbour); hasUpdate = true; } else { // standard DVR node.getDistanceVector().put(n, offeredBest); node.getForwardingTable().put(n, neighbour); hasUpdate = true; // System.out.println(node.getName() + " updated its // distance to " + n.getName() + " to " + offeredBest + " // via " + neighbour.getName()); } } } return hasUpdate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void send()\n {\n\n\tRouterPacket pkt;\n if(poisonEnabled){\n\t // Create a false distance table\n int[] tmpDistTable = new int[RouterSimulator.NUM_NODES];\n System.arraycopy(myDistTable,0,tmpDistTable,0,RouterSimulator.NUM_NODES);\n for(int i = 0;i<neighbours.length;i++){\n if(neighbours[i]){\n\t\t //Poisoned reverse\n for(int j = 0;j<route.length;j++){\n\t\t\t// All routes that goes through my node, set to infinity\n if(route[j] == i && j!=i){\n tmpDistTable[j] = RouterSimulator.INFINITY;\n }\n }\n\t\t // Send new packet\n pkt = new RouterPacket(myID,i,tmpDistTable);\n sendUpdate(pkt);\n }\n }\n } else {\n for (int i = 0; i < neighbours.length; i++) {\n if (neighbours[i]) {\n\t\t // Send new packet\n pkt = new RouterPacket(myID, i, myDistTable);\n sendUpdate(pkt);\n }\n }\n }\n\n\n }", "private void updateRoutingTable(){\n\tint[] current = new int[RouterSimulator.NUM_NODES];\n\tArrays.fill(current, RouterSimulator.INFINITY);\n\t\n\t//iterate through neighbours distance tables\n\t\n\tfor(int i=0;i<myNeighboursDistTable[myID].length;i++){\n\t //if shortest path goes through current node\n\t if(i==myID){\n\t\tcurrent[i] = myDistTable[i];\n\t\troute[i] = i;\n\t\tcontinue;\n\t }\n\t //iterate through neighbours\n\t for(int j = 0; j < neighbours.length; j++){\n\t\t//if a neighbour exist\n\t\tif(neighbours[j]){\n\t\t int cost = costs[j] + myNeighboursDistTable[j][i];\n\t\t //if shorter path found\n\t\t if(cost < current[i]){\n\t\t\tcurrent[i] = cost;\n\t\t\troute[i] = j;\n \t\t }\n\t\t}\n\t\t\n\t }\n\t}\n\t//if better path found, send new routingtable to neighbours\n\tif(!Arrays.equals(current, myDistTable)){\n\t System.arraycopy(current, 0, myDistTable, 0, RouterSimulator.NUM_NODES);\n\t send();\n\t}\n }", "public void changingNeighbor() {\n }", "@Override\n\tpublic synchronized void ping() {\n\t\tDatagramPacket packet = table.toDatagramPacket();\n\t\tfor(Router routerSendingTo : listOfRouters){\n\t\t\tInetSocketAddress dstAddress = new InetSocketAddress(DEFAULT_DST_NODE, routerSendingTo.getPort());\n\t\t\tpacket.setSocketAddress(dstAddress);\n\t\t\ttry {\n\t\t\t\tsocket.send(packet);\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 addedToRouteTable(long idNode, Address address){\r\n\t\t\r\n\t}", "private RtnTable processDvr(DvrPacket pkt) {\n\t\tif (pkt.sourceid == pkt.SERVER){\n\t\t\t\n\t\t\tlinkcost = pkt.mincost;\n\t\t\tneighbors = new boolean[linkcost.length];\n\t\t\t\n\t\t\tfor (int i = 0; i < linkcost.length; i++){\n\t\t\t\tif (i != this.routerId && linkcost[i] != DvrPacket.INFINITY){\n\t\t\t\t\tneighbors[i] = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}else{\n\t\t\tmincost[pkt.sourceid] = pkt.mincost;\n\t\t} ////otherwise from other router and we update mincost\n\n\t\t//update the forward table\n\t\tfor (int i = 0; i < nexthop.length; i++){\n\t\t\tint distance;\n\t\t\tif (i == this.routerId){\n\t\t\t\tdistance = 0;\n\t\t\t}\n\t\t\telse if(nexthop[i] == this.routerId){\n\t\t\t\tdistance = DvrPacket.INFINITY;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdistance = mincost[this.routerId][i];\n\t\t\t}\n\t\t\t//Bellman-Ford algorithm\n\t\t\tfor (int j = 0; j < mincost.length; j++){\n\t\t\t\tif ((mincost[j][i] + linkcost[j]) < distance) {\n\t\t\t\t\tdistance = mincost[j][i] + linkcost[j];\n\t\t\t\t\tnexthop[i] = j;\n\t\t\t\t\tmincost[this.routerId][i] = distance;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tRtnTable table1 = new RtnTable(mincost[this.routerId], nexthop);\n\t\treturn table1;\n\t}", "public void tunnel() {\r\n\t\tboolean status = true;\r\n\t\tfor (CellStorage i : node) {\r\n\t\t\tif (i.getCell().tunnelTo != null) {\r\n\t\t\t\tCellStorage tunnelTo = null;\r\n\t\t\t\t// Searching for destinated node from the tunnel\r\n\t\t\t\tfor (int k = 0; k < node.size(); k++) {\r\n\t\t\t\t\tif (node.get(k).getCell() == i.getCell().tunnelTo) {\r\n\t\t\t\t\t\ttunnelTo = node.get(k);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ti.setTunnel(tunnelTo);\r\n\r\n\t\t\t\t// Calling validateConnection method to make sure that no duplicated connection\r\n\t\t\t\t// is made.\r\n\t\t\t\t// Create new connection if no duplicate.\r\n\r\n\t\t\t\tstatus = validateConnection(i, tunnelTo);\r\n\t\t\t\tif (status == false) {\r\n\t\t\t\t\tHashMapConnectedNodes tunnelSet = new HashMapConnectedNodes();\r\n\t\t\t\t\ttunnelSet.hmConnectedNodesObj.put(i.getIndex(), i);\r\n\t\t\t\t\ttunnelSet.hmConnectedNodesObj.put(tunnelTo.getIndex(), tunnelTo);\r\n\t\t\t\t\thshMConnectedNodes.add(tunnelSet);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void findNode(ArrayList<NodeAddress> nodes){\r\n\t\tif ( nodes.size() == 0 )\r\n\t\t\treturn;\r\n\t\t//Add to route table\r\n\t\trouteTable.set(nodes);\r\n\t\t//Send pending messages\r\n\t}", "public void update_routing_window() {\n Log2(\"update_routing_window\\n\");\n Iterator<RouteEntry> iter= null;\n if (main_rtab!=null) {\n iter= main_rtab.iterator();\n }\n\n // update window\n for (int i= 0; i<tableObj.getRowCount(); i++) {\n if ((main_rtab != null) && iter.hasNext()) {\n RouteEntry next= iter.next();\n tableObj.setValueAt(\"\"+next.dest,i,0);\n tableObj.setValueAt(\"\"+next.next_hop,i,1);\n tableObj.setValueAt(\"\"+next.next_hop_area,i,2);\n tableObj.setValueAt(\"\"+next.dist,i,3);\n } else {\n tableObj.setValueAt(\"\",i,0);\n tableObj.setValueAt(\"\",i,1);\n tableObj.setValueAt(\"\",i,2);\n tableObj.setValueAt(\"\",i,3);\n }\n }\n }", "public void onReceiveGetNeighbours(GetNeighboursMessage message) {\n if (routing.get(message.sender) == null) {\n //Note: should exist cause neighbour\n routing.put(message.sender, routing.get(message.lastSender));\n }\n if (message.receiver == id) {\n // we are the destination\n Set<Integer> neighbourIds = neighbours.stream().map(Bunker::getId).collect(Collectors.toSet());\n GiveNeighboursMessage giveNeighboursMessage = new GiveNeighboursMessage();\n giveNeighboursMessage.receiver = message.sender;\n giveNeighboursMessage.sender = id;\n giveNeighboursMessage.ids = neighbourIds;\n sendGiveNeighbours(giveNeighboursMessage);\n } else {\n // route to destination\n message.lastSender = id;\n // we should know receiver at this step\n sendGetNeighbours(message);\n }\n }", "void onNodeNeighbourChange(World world, BlockPos pos, BlockPos neighbourPos);", "public void sendGetNeighbours(GetNeighboursMessage message) {\n routing.get(message.receiver).onReceiveGetNeighbours(message);\n }", "public synchronized void run() {\n\t\ttry {\n\t\t\tcnnode.BroadCastTable(cnnode.TimeStamp1,cnnode.RouteTable1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tThread.sleep(100);\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\tcnnode.PrintRouteTable(cnnode.RouteTable1);\n\t}", "public static void chooseNeighbour() {\n clique.handler(ConnectReq.class, (i, req) -> {\n int randomIndex = new Random().nextInt(connections.size());\n connections.get(randomIndex).send(req);\n });\n }", "protected void alter_for_neighbour_switch() {\n\t\tint this_l, tother_l, ns_i, ns_j, ns_n;\n\t\t\n\t\t// Let the user know...\n\t\tSystem.out.println(\" H THIS IS IN N_SWITCH (nn comparison) mode, for structure \"+INIT_NPHASE);\n\t\tSystem.out.println(\" H en_shift = \"+EN_SHIFT);\n\t\t\n\t\t// Check that there is room at the inn:\n\t\tif( n > MAX_NNS ) {\n\t\t\tthrow( new LSSimException(LSSimException.PARAM,\n\t\t\t\"neighbour switch needs \"+n+\" neighbours in MAX_NNS!\\n\"));\n\t\t}\n\t\t\n\t\t// Make both structures the same:\n\t\tthis_l = INIT_NPHASE;\n\t\ttother_l = 1 - this_l;\n\t\tfor( ns_i = 0; ns_i < n; ns_i++ ) {\n\t\t\tlatt[tother_l][ns_i].x = latt[this_l][ns_i].x;\n\t\t\tlatt[tother_l][ns_i].y = latt[this_l][ns_i].y;\n\t\t\tlatt[tother_l][ns_i].z = latt[this_l][ns_i].z;\n\t\t\t// copy nn lists as well!\n\t\t\tns_n = 0; ns_j = nns[this_l][ns_i][ns_n];\n\t\t\twhile ( ns_j != NO_MORE_NNS ) {\n\t\t\t\tnns[tother_l][ns_i][ns_n] = nns[this_l][ns_i][ns_n];\n\t\t\t\tns_n++; ns_j = nns[this_l][ns_i][ns_n];\n\t\t\t}\n\t\t\tnns[tother_l][ns_i][ns_n] = NO_MORE_NNS;\n\t\t}\n\t\t\n\t\t// Alter the neighbour list for structure 1;\n\t\tmake_it_order_n_squared(1);\n\t}", "private void sendUpdate(int dest) {\n Set<AS> prevAdvedTo = this.adjOutRib.get(dest);\n Set<AS> newAdvTo = new HashSet<AS>();\n BGPPath pathOfMerit = this.locRib.get(dest);\n\n /*\n * If we have a current best path to the destination, build a copy of\n * it, apply export policy and advertise the route\n */\n if (pathOfMerit != null) {\n BGPPath pathToAdv = pathOfMerit.deepCopy();\n\n pathToAdv.prependASToPath(this.asn);\n\n /*\n * Advertise to all of our customers\n */\n for (AS tCust : this.customers) {\n tCust.advPath(pathToAdv);\n newAdvTo.add(tCust);\n }\n\n /*\n * Check if it's our locale route (NOTE THIS DOES NOT APPLY TO\n * HOLE PUNCHED ROUTES, so the getDest as opposed to the\n * getDestinationAS _IS_ correct) or if we learned of it from a\n * customer\n */\n if (pathOfMerit.getDest() == this.asn\n || (this.getRel(pathOfMerit.getNextHop()) == 1)) {\n for (AS tPeer : this.peers) {\n tPeer.advPath(pathToAdv);\n newAdvTo.add(tPeer);\n }\n for (AS tProv : this.providers) {\n tProv.advPath(pathToAdv);\n newAdvTo.add(tProv);\n }\n }\n }\n\n /*\n * Handle the case where we had a route at one point, but have since\n * lost any route, so obviously we should send a withdrawl\n */\n if (prevAdvedTo != null) {\n prevAdvedTo.removeAll(newAdvTo);\n for (AS tAS : prevAdvedTo) {\n tAS.withdrawPath(this, dest);\n }\n }\n\n /*\n * Update the adj-out-rib with the correct set of ASes we have\n * adverstised the current best path to\n */\n this.adjOutRib.put(dest, newAdvTo);\n }", "public boolean updateRoutingTable(int foreign_id, ArrayList<ArrayList<Integer>> foreign_rt) {\n\t\tint foreign_id_idx = routingTable.get(0).indexOf(foreign_id); // gets the index of the foreign id in this routing table\n\t\tint foreign_link = -1;\n\n\t\t// gets the cost of link to the node passed into the function\n\t\tfor(Link l : links) {\n\t\t\tif(l.getDestination() == foreign_id) {\n\t\t\t\tforeign_link = l.getCost();\n\t\t\t}\n\t\t}\n\n\t\t// if the link is dead return\n\t\tif (foreign_link == -1) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// checks to see if the cost of the link is less than the cost currently in the routing table\n\t\t// or if the node passed into the function in the routing table is currently marked as dead\n\t\tif((foreign_link < routingTable.get(1).get(foreign_id_idx)) \n\t\t|| (routingTable.get(2).get(foreign_id_idx) == foreign_id) \n\t\t|| (routingTable.get(1).get(foreign_id_idx) == -1)) {\n\n\t\t\troutingTable.get(1).set(foreign_id_idx, foreign_link);\n\t\t\troutingTable.get(2).set(foreign_id_idx, foreign_id);\n\t\t}\n\n\t\t// Iterates through each item in the routing table that has just been received\n\t\tfor(int i = 0; i < foreign_rt.get(0).size(); i++) {\n\n\t\t\t// finds the corresponding entry in the local routing table\n\t\t\tint foreign_row_idx = routingTable.get(0).indexOf(foreign_rt.get(0).get(i));\n\t\t\tif(foreign_row_idx < 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// if the distance for the entry in the foreign routing table is equal to 0 and split horizon capability is on\n\t\t\tif (foreign_rt.get(1).get(i) <= 0) {\n\t\t\t\tif(splithorizon) {\n\n\t\t\t\t\t// if the foreign routing table shows that a link has gone dead to some other node then set the local routing to show that\n\t\t\t\t\tif((routingTable.get(2).get(foreign_row_idx) == foreign_id) && (foreign_rt.get(1).get(i) == -1)) {\n\t\t\t\t\t\troutingTable.get(1).set(foreign_row_idx, -1);\n\t\t\t\t\t\troutingTable.get(2).set(foreign_row_idx, -1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// if split horizon is off\n\t\t\t// if the local routing table does not have a route to the node that the foreign node is advertising\n\t\t\t// or the one being advertised is better\n\t\t\t// or if the node is the next hop in the local routing table\n\t\t\t// then update the local routing table\n\t\t\tif ( ( (routingTable.get(1).get(foreign_row_idx) < 0) \n\t\t\t|| ( (routingTable.get(1).get(foreign_row_idx) ) > (foreign_rt.get(1).get(i) + routingTable.get(1).get(foreign_id_idx) ) ) \n\t\t\t|| (routingTable.get(2).get(foreign_row_idx) == foreign_id ) ) \n\t\t\t&& (!splithorizon) ) {\n\t\t\t\troutingTable.get(1).set(foreign_row_idx, foreign_rt.get(1).get(i) + routingTable.get(1).get(foreign_id_idx));\n\t\t\t\troutingTable.get(2).set(foreign_row_idx, routingTable.get(2).get(foreign_id_idx));\n\t\t\t}\n\n\t\t\t// if split horizon is on\n\t\t\t// same as before except if this node is the next hop on the routing table being advertised don't accept\n\t\t\tif ( ( (routingTable.get(1).get(foreign_row_idx) < 0) \n\t\t\t|| ( (routingTable.get(1).get(foreign_row_idx) ) > (foreign_rt.get(1).get(i) + routingTable.get(1).get(foreign_id_idx) ) ) \n\t\t\t|| (routingTable.get(2).get(foreign_row_idx) == foreign_id ) )\t\n\t\t\t&& (splithorizon) ) {\n\t\t\t\tif(foreign_rt.get(2).get(i) != id) {\n\t\t\t\t\troutingTable.get(1).set(foreign_row_idx, foreign_rt.get(1).get(i) + routingTable.get(1).get(foreign_id_idx));\n\t\t\t\t\troutingTable.get(2).set(foreign_row_idx, foreign_id);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic void establishNeighborConn() throws Exception {\n\t\tList <Thread> tList = new ArrayList<Thread>();\n\t\tList<Integer> neighborPids = neighborMap.get(pid);\n\t\tnNeighbors = neighborPids.size();\n\t\tfor (int neighborPid : neighborPids) {\n\t\t\tThread t = new Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString neighborHostname = pidToHostnameMap.get(neighborPid);\n\t\t\t\t\t\tConnection neighborConn = new ServerConnection();\n\t\t\t\t\t\tint port = 10000 + (100*pid) + neighborPid;\n\t\t\t\t\t\tneighborConn.connectRetry(coordinatorHostname, port);\n\t\t\t\t\t\tneighborPidToHostnameMap.put(neighborPid, neighborHostname);\n\t\t\t\t\t\tneighborPidToConnMap.put(neighborPid, neighborConn);\n\t\t\t\t\t\tsendQueues.put(neighborPid, new LinkedList<String>());\n\t\t\t\t\t\tsayHelloToNeighbor(neighborConn);\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\ttList.add(t);\n\t\t\tt.start();\n\t\t}\n\t\tfor (Thread t : tList) {\n\t\t\tt.join();\n\t\t}\n\t\tSystem.out.println(neighborPidToHostnameMap);\n\t\tSystem.out.println(neighborPidToConnMap);\n\t}", "@Test\n public void directedRouting_noUTurnAtVirtualEdge() {\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(2, 3).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(3, 4).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(4, 5).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(5, 0).setDistance(1).set(speedEnc, 10, 0);\n NodeAccess na = graph.getNodeAccess();\n na.setNode(0, 1, 0);\n na.setNode(1, 1, 1);\n na.setNode(2, 1, 2);\n na.setNode(3, 0, 2);\n na.setNode(4, 0, 1);\n na.setNode(5, 0, 0);\n\n LocationIndexTree locationIndex = new LocationIndexTree(graph, graph.getDirectory());\n locationIndex.prepareIndex();\n Snap snap = locationIndex.findClosest(1.1, 0.5, EdgeFilter.ALL_EDGES);\n QueryGraph queryGraph = QueryGraph.create(graph, snap);\n\n assertEquals(Snap.Position.EDGE, snap.getSnappedPosition(), \"wanted to get EDGE\");\n assertEquals(6, snap.getClosestNode());\n\n // check what edges there are on the query graph directly, there should not be a direct connection from 1 to 0\n // anymore, but only the virtual edge from 1 to 6 (this is how the u-turn is prevented).\n assertEquals(new HashSet<>(Arrays.asList(0, 2)), GHUtility.getNeighbors(graph.createEdgeExplorer().setBaseNode(1)));\n assertEquals(new HashSet<>(Arrays.asList(6, 2)), GHUtility.getNeighbors(queryGraph.createEdgeExplorer().setBaseNode(1)));\n\n EdgeIteratorState virtualEdge = GHUtility.getEdge(queryGraph, 6, 1);\n int outEdge = virtualEdge.getEdge();\n EdgeToEdgeRoutingAlgorithm algo = createAlgo(queryGraph, weighting);\n Path path = algo.calcPath(6, 0, outEdge, ANY_EDGE);\n assertEquals(nodes(6, 1, 2, 3, 4, 5, 0), path.calcNodes());\n assertEquals(5 + virtualEdge.getDistance(), path.getDistance(), 1.e-3);\n }", "public void connect(ASNode node) {\n\n\t\t/* Create new paths for this node and other node */\n\t\tArrayList<ASNode> newPath1 = new ArrayList<ASNode>();\n\t\tArrayList<ASNode> newPath2 = new ArrayList<ASNode>();\n\t\tnewPath1.add(node);\n\t\tnewPath2.add(this);\n\t\t/* Adds the Node to each others maps to get ready for exchange */\n\t\tMap<Integer, ArrayList<ASNode>> map1 = addNodeToTable(this, paths);\n\t\tMap<Integer, ArrayList<ASNode>> map2 = addNodeToTable(node,\n\t\t\t\tnode.getPaths());\n\n\t\t/* put new path into this node */\n\t\tpaths.put(node.getASNum(), newPath1);\n\t\tmap1.put(this.ASNum, newPath2);\n\t\t/* put new path into other node */\n\t\tnode.setPathsCombine(map1);\n\t\t/* exchange maps and see if any path if shorter, if shorter than adjust */\n\t\tsetPathsCombine(map2);\n\t\t/* Add each other as neighbors */\n\t\tneighbors.add(node);\n\t\tnode.getNeighbors().add(this);\n\t\t\n\t\t/* Announce each other's paths */\n\t\tnode.announce(this);\n\t\tannounce(node);\n\t\t\n\t\t// Exchange IP tables\n\t\tfor (PrefixPair p : IPTable.keySet()) {\n\t\t\tNextPair n = new NextPair(this, IPTable.get(p).length);\n\t\t\tannounceIP(p, n);\n\t\t}\n\t\tfor (PrefixPair p : node.IPTable.keySet()) {\n\t\t\tNextPair n = new NextPair(node, node.IPTable.get(p).length);\n\t\t\tnode.announceIP(p, n);\n\t\t}\n\t\tfor (PrefixPair p : IPTable.keySet()) {\n\t\t\tNextPair n = new NextPair(this, IPTable.get(p).length);\n\t\t\tannounceIP(p, n);\n\t\t}\n\t}", "public void run() {\n\n\t\tObjectInputStream inputStream = null;\n\t\tObjectOutputStream outputStream = null;\n\n\t\ttry {\n\n\t\t\t// get packet from InputStream\n\t\t\tinputStream = new ObjectInputStream(this.socket.getInputStream());\n\t\t\tSOSPFPacket message = (SOSPFPacket) inputStream.readObject();\n\n\t\t\t// -----------------------------------------------------------------------------------------------------------------------------------------\n\t\t\t// check if message is HELLO message\n\t\t\tif (message.sospfType == 0) {\n\n\t\t\t\tSystem.out.println(\"\\nreceived HELLO from \" + message.neighborID + \";\");\n\n\t\t\t\t// message.neighborID identifies sender of packet\n\n\t\t\t\t// add a neighbour\n\t\t\t\tboolean addNeighbour = true;\n\n\t\t\t\t// check to see if sender is already a neighbour\n\t\t\t\tfor (Link currLink : router.ports) {\n\t\t\t\t\t// sender is already a neighbour (dont want to addNeighbour)\n\t\t\t\t\tif (currLink.router2.simulatedIPAddress.equals(message.neighborID)) {\n\t\t\t\t\t\taddNeighbour = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if sender is not already a neighbour, then add as neighbour\n\t\t\t\tif (addNeighbour) {\n\n\t\t\t\t\t// add a new Neighbour to myRouter\n\t\t\t\t\tif (router.ports.size() < 4) {\n\t\t\t\t\t\t// create new RouterDescription for Neighbour\n\t\t\t\t\t\tRouterDescription remoteRouter = new RouterDescription();\n\t\t\t\t\t\tremoteRouter.processIPAddress = message.srcProcessIP;\n\t\t\t\t\t\tremoteRouter.simulatedIPAddress = message.neighborID;\n\t\t\t\t\t\tremoteRouter.processPortNumber = message.srcProcessPort;\n\t\t\t\t\t\tremoteRouter.status = RouterStatus.INIT;\n\n\t\t\t\t\t\trouter.ports.add(new Link(router.rd, remoteRouter, message.srcWeight));\n\n\t\t\t\t\t\tSystem.out.println(\"set \" + message.neighborID + \" state to INIT;\");\n\n // cannot add new Neighbour because myRouter.ports are full\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"Error: Cannot add new Neighbour, ports are full\");\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t// Prepare response ---------------------------------------------------------------------\n\n\t\t\t\t// create new SOSPF packet with HELLO message\n\t\t\t\tSOSPFPacket response = new SOSPFPacket();\n\t\t\t\tresponse.sospfType = 0;\n\t\t\t\tresponse.neighborID = router.rd.simulatedIPAddress;\n\t\t\t\tresponse.srcProcessIP = router.rd.processIPAddress;\n\t\t\t\tresponse.srcProcessPort = router.rd.processPortNumber;\n\n\t\t\t\t// send response to client\n\t\t\t\toutputStream = new ObjectOutputStream(this.socket.getOutputStream());\n\t\t\t\toutputStream.writeObject(response);\n\n\t\t\t\t// get response from client\n\t\t\t\tresponse = (SOSPFPacket) inputStream.readObject();\n\n\t\t\t\t// confirm it is a HELLO response\n\t\t\t\tif (response.sospfType == 0) {\n\t\t\t\t\tSystem.out.println(\"received HELLO from \" + response.neighborID + \";\");\n\n\t\t\t\t\t// set myRouter.neighbourID.status to TWO_WAY\n\t\t\t\t\tfor (Link currLink : router.ports) {\n\t\t\t\t\t\t// check if already TWO WAY\n\t\t\t\t\t\tif (currLink.router2.simulatedIPAddress.equals(response.neighborID)) {\n\n\t\t\t\t\t\t\tcurrLink.router2.status = RouterStatus.TWO_WAY;\n\t\t\t\t\t\t\tSystem.out.println(\"set \" + response.neighborID + \" state to TWO_WAY;\");\n\n\t\t\t\t\t\t\tsendLSP(updateLSA(currLink, 0));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// message is Link State Packet\n\t\t\t\t//-----------------------------------------------------------------------------------------------------------------------------------------\n\t\t\t} else if (message.sospfType == 1) {\n//\t\t\t\tSystem.out.println(\" -- Received LSP -- \");\n\n\t\t\t\tfor (LSA receivedLSA : message.lsaArray) {\n\t\t\t\t\tLSA currentLSA = router.lsd._store.get(receivedLSA.linkStateID);\n\n\t\t\t\t\t//if the incoming LSA is newer than current or new router\n\t\t\t\t\tif (!router.lsd._store.containsKey(receivedLSA.linkStateID) || (receivedLSA.lsaSeqNumber > currentLSA.lsaSeqNumber)) {\n\t\t\t\t\t\t//System.out.println(\"NLSA : \" + message.lsaArray.lastElement().toString());\n\t\t\t\t\t\trouter.lsd._store.put(receivedLSA.linkStateID, receivedLSA);\n\n\t\t\t\t\t\tsendLSP(receivedLSA);\n\t\t\t\t\t}\n\t\t\t\t}\n\n // message is Exit Packet\n //-----------------------------------------------------------------------------------------------------------------------------------------\n\t\t\t} else if (message.sospfType == 2) {\n//\t\t\t System.out.println(\"INFO: Received a deletion request from \" + message.srcIP + \".\");\n\n\t\t\t // Create the response packet\n SOSPFPacket confirmDisconnect = new SOSPFPacket();\n confirmDisconnect.sospfType = 2;\n confirmDisconnect.srcIP = router.rd.simulatedIPAddress;\n confirmDisconnect.srcProcessPort = router.rd.processPortNumber;\n confirmDisconnect.dstIP = message.srcIP;\n confirmDisconnect.srcProcessIP = router.rd.processIPAddress;\n\n // Send the packet\n outputStream = new ObjectOutputStream(this.socket.getOutputStream());\n outputStream.writeObject(confirmDisconnect);\n outputStream.close();\n\n // Find the port that it belongs to\n int i = 0;\n Link deadLink = null;\n for (Link l : router.ports) {\n if (message.srcIP.equals(l.router2.simulatedIPAddress)) {\n deadLink = l;\n break;\n }\n else {\n i++;\n }\n }\n\n if (deadLink == null) {\n System.out.println(\"ERROR: Could not find the port to delete.\");\n throw new RuntimeException();\n }\n\n Link confirmDead = router.ports.remove(i);\n System.out.println(\"INFO: Removed \" + confirmDead.router2.simulatedIPAddress + \" from ports.\" );\n\n // updateLSA actually updates the LSD and LSA. This must always run, so don't nest this\n // inside sendLSP.\n LSA freshLSA = updateLSA(confirmDead, 1);\n sendLSP(freshLSA);\n// System.out.println(router.lsd._store.keySet());\n }\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tinputStream.close();\n\t\t\t\t//outputStream.close();\n\t\t\t\tthis.socket.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run() {\n String message = router.toString() + \"/\" + router.toString() + \"/\" + 0 + \"/\" + router.getPort() + \"/\";\n Set<Map.Entry<Node, Double>> neighbours = router.getNeighbours().entrySet();\n for (Map.Entry<Node, Double> m : neighbours) {\n Node n = m.getKey();\n message += n.toString() + \" \" + m.getValue() + \" \" + n.getPort() + \"/\";\n }\n buffer.initLSA(router.toString(), message);\n\n Processor p = new Processor(network, processing_buffer, router, nodeSequence);\n new Thread(p).start();\n\n for (Node n : router.getNeighbours().keySet()) {\n heartBeat.put(n.toString(), 0);\n }\n\n receive();\n }", "public void passingDHT(Packet packet) {\r\n\t\tjava.util.Date passDHTDate = new java.util.Date();\r\n\t\tSystem.out.println(passDHTDate + \": Received Peer Node \" + packet.packetSenderID+\"'s Distributed Hash Table\");\r\n\t\t\r\n\t\t// Iterate through Distribution Hash Table sent in packet and add to Peer Node's distribution Hash table accordingly/as needed\r\n\t\tfor(Entry<String, ArrayList<InetSocketAddress>> keys : packet.distributedHashTable.entrySet()) {\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(keys.getKey())) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(keys.getKey()).addAll(keys.getValue());\t\r\n\t\t\t\tSystem.out.println(keys.getKey());\r\n\t\t\t}\r\n\t\t\telse if (peerNode.distributedHashTable.contains(keys.getKey()) == false) {\r\n\t\t\t\tpeerNode.distributedHashTable.put(keys.getKey(), keys.getValue());\r\n\t\t\t}\r\n\t\t}\r\n\t\tcloseConnection();\r\n\t\t\r\n\t}", "protected void handleLookUp(Message m) {\n for(IP routeIP: m.getRoutePath()) {\n if(ip.getAddr().equals(routeIP.getAddr()) && ip.getPort() == routeIP.getPort()) {\n return;\n }\n }\n\n // dont spread if step over MAX_HOP\n if( m.getHop() >= m.MAX_HOP ){\n return;\n }\n m.hopAddOne();\n\n m.routePathAddRear(this.ip);\n spread(m);\n }", "public void printTable(String hint) {\r\n // creating iterator for HashMap \r\n synchronized (this) {\r\n LocalTime myDate = this.myObjDate;\r\n String string;\r\n System.out.println(\"in print table \");\r\n\r\n Iterator< HashMap.Entry< RoutingTableKey, RoutingTableInfo>> routingEntriesIterator = routingEntries.entrySet().iterator();\r\n\r\n String destAddress, nextipHost;\r\n // VirtualRouter.buffer.appendText(System.getProperty(\"line.separator\"));\r\n string = \"\\n|-------------------------------------------------------------------------------------------------------------------------|\\n\"\r\n + \" \" + hint + \" -- Last updated \" + myDate + \"\\n\"\r\n + \"|-------------------------------------------------------------------------------------------------------------------------|\\n\"\r\n + \"Dest Network\\t\\tnext ip-Host\\t\\tCost\\t\\tnextport\\t\\tmyPort\\t\\tActivated\\t\\tEstablished\\n\"\r\n + \"|-------------------------------------------------------------------------------------------------------------------------|\\n\";\r\n\r\n Platform.runLater(() -> {\r\n VirtualRouter.buffer.appendText(string);\r\n\r\n });\r\n\r\n while (routingEntriesIterator.hasNext()) {\r\n String string2;\r\n HashMap.Entry<RoutingTableKey, RoutingTableInfo> pair = (HashMap.Entry<RoutingTableKey, RoutingTableInfo>) routingEntriesIterator.next();\r\n\r\n destAddress = pair.getKey().getIp().getHostAddress() + \"-\" + pair.getKey().getHostname();\r\n nextipHost = pair.getValue().getNextipHost().getIp().getHostAddress() + \"-\" + pair.getValue().getNextipHost().getHostname();\r\n\r\n RoutingTableInfo destForwardingInfo = (RoutingTableInfo) pair.getValue();\r\n//bs ntb3 linet address btbi3to 3m berj3 forword slash bas destAddress.getHostName() 3m trj3 aw2et msln one.one.one.\r\n\r\n string2 = \"\" + destAddress + \"\\t\"\r\n + \"\" + nextipHost + \"\\t\\t\"\r\n + destForwardingInfo.cost + \"\\t\\t\"\r\n + \" \" + destForwardingInfo.nextHop + \"\\t\\t\"\r\n + \" \" + destForwardingInfo.port + \"\\t\\t\\t\"\r\n + \" \" + destForwardingInfo.activated + \"\\t\\t\"\r\n + \" \" + destForwardingInfo.established + \"\\t\\n\";\r\n // routerInterface.append(System.getProperty(\"line.separator\"));\r\n Platform.runLater(() -> {\r\n VirtualRouter.buffer.appendText(string2);\r\n\r\n });\r\n }\r\n Platform.runLater(() -> {\r\n VirtualRouter.buffer.appendText(\"|-------------------------------------------------------------------------------------------------------------------------|\\n\\n\");\r\n });\r\n }\r\n }", "public void updateDHT(Packet packet) {\r\n\t\t// If there are neighbors, insert file search for peer to enter the file into their DHT\r\n\t\tif(peerNode.peerList.size() >= 2) {\r\n\t\t\ttry {\r\n\t\t\t\tpeerNode.findPeer(peerNode);\r\n\t\t\t\t// Create Packet\r\n\t\t\t\tPacket insertPacket = new Packet();\r\n\t\t\t\tinsertPacket.eventCode = 2;\r\n\t\t\t\tinsertPacket.packetSenderID = peerNode.peerClientID;\r\n\t\t\t\tinsertPacket.peerClientIP = peerNode.peerClientIP;\r\n\t\t\t\tinsertPacket.peerClientListenPort = peerNode.peerClientListenPort;\r\n\t\t\t\tinsertPacket.fileName = packet.fileName.toLowerCase();\r\n\t\t\t\tinsertPacket.packetRecipientID = peerNode.succPeerID;\r\n\t\t\t\t\r\n\t\t\t\tpeerNode.peer2Peer = new Socket(peerNode.succPeerIP, peerNode.succPeerPort);\r\n\t\t\t\tpeerNode.peer2PeerOutStream = new ObjectOutputStream(peerNode.peer2Peer.getOutputStream());\r\n\t\t\t\tpeerNode.peer2PeerInStream = new ObjectInputStream(peerNode.peer2Peer.getInputStream());\r\n\t\t\t\t\r\n\t\t\t\tpeerNode.peer2PeerOutStream.writeObject(insertPacket);\r\n\t\t\t\t\r\n\t\t\t\tcloseConnection();\r\n\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Check if there are any neighboring peers and if not, enter into own DHT\r\n\t\telse {\r\n\t\t\tArrayList<InetSocketAddress> fileLocationList = new ArrayList<InetSocketAddress>();\r\n\t\t\tInetSocketAddress fileLocation = new InetSocketAddress(peerNode.peerClientIP, peerNode.peerClientListenPort);\r\n\t\t\tjava.util.Date date = new java.util.Date();\r\n\t\t\tif(peerNode.distributedHashTable.containsKey(packet.fileName)) {\r\n\t\t\t\tpeerNode.distributedHashTable.get(packet.fileName).add(fileLocation);\r\n\t\t\t\tSystem.out.println(date + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfileLocationList.add(fileLocation);\r\n\t\t\t\tpeerNode.distributedHashTable.put(packet.fileName, fileLocationList);\r\n\t\t\t\tSystem.out.println(date + \": Entered file: \" + packet.fileName + \" into Distributed Hash Table\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void findNewAStarPath(PedSimCity state) {\n\n\t\tRouteData route = new RouteData();\n\t\troute.origin = originNode.getID();\n\t\troute.destination = destinationNode.getID();\n\t\t//\t\toriginNode = PedSimCity.nodesMap.get(9406);\n\t\t//\t\tdestinationNode = PedSimCity.nodesMap.get(4456);\n\n\t\tif (UserParameters.empiricalABM) {\n\t\t\tSystem.out.println(\" Agent nr. \"+this.agentID + \" group \" + this.agp.groupName + \" OD \" + originNode.getID()+\" \" +destinationNode.getID());\n\t\t\tagp.defineRouteChoiceParameters();\n\t\t\tCombinedNavigation combinedNavigation = new CombinedNavigation();\n\t\t\tnewPath = combinedNavigation.path(originNode, destinationNode, agp);\n\t\t\troute.group = this.agp.groupID;\n\t\t\troute.localH = this.agp.localHeuristic;\n\t\t\troute.routeID = this.agentID.toString()+\"-\"+originNode.getID().toString()+\"-\"+destinationNode.getID().toString();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(originNode.getID() + \" \"+ destinationNode.getID()+ \" \"+ap.routeChoice);\n\t\t\tselectRouteChoice();\n\t\t\troute.routeChoice = ap.routeChoice;\n\t\t\t//\t\t\troute.routeID = numTrips;\n\t\t}\n\n\t\tList<Integer> sequenceEdges = new ArrayList<Integer>();\n\n\t\tfor (GeomPlanarGraphDirectedEdge o : newPath) {\n\t\t\t// update edge data\n\t\t\tupdateEdgeData((EdgeGraph) o.getEdge());\n\t\t\tint edgeID = ((EdgeGraph) o.getEdge()).getID();\n\t\t\tsequenceEdges.add(edgeID);\n\t\t}\n\t\troute.sequenceEdges = sequenceEdges;\n\t\tPedSimCity.routesData.add(route);\n\t\tindexOnPath = 0;\n\t\tpath = newPath;\n\n\t\t// set up how to traverse this first link\n\t\tEdgeGraph firstEdge = (EdgeGraph) newPath.get(0).getEdge();\n\t\tsetupEdge(firstEdge); //Sets the Agent up to proceed along an Edge\n\n\t\t// update the current position for this link\n\t\tupdatePosition(segment.extractPoint(currentIndex));\n\t\tnumTrips += 1;\n\t}", "public void recv(SimEnt source, Event event)\n\t{\n\t\tif(event instanceof Migrate) \n\t\t{\n\t\t\tSystem.out.println(\"Router attempts to change interface for node \" +((Migrate) event).source().networkId() + \" to interface \" +((Migrate) event).newInterface());\n\t\t\t((Migrate) event).newLink(moveInterface(((Migrate) event).source(),((Migrate) event).newInterface()));\n\t\t\tsend(getInterface(((Migrate) event).source()),event,0);\n\t\t}\n\t\telse if(event instanceof Disconnect) {\n\t\t\tLink link = (Link) removeFromInterface(((Disconnect) event).source());\n\t\t\tlink.removeConnector(this);\n\t\t}\n\t\telse if(event instanceof UniqueAddr) {\n\t\t\tSystem.out.println(toString() +\" handles a request to test if address is unique\");\n\t\t\t((UniqueAddr)event).setUnique(uniqueAddress(((UniqueAddr)event).getAddr()));\n\t\t\tsend(source, event, 0);\n\t\t}\n\t\telse if(event instanceof Solicit)\n\t\t{\n\t\t\tSystem.out.println(this.toString() + \" Received Solicitation request from Node \" + ((Solicit)event).source());\n\t\t\tadvertise();\n\t\t}\n\t\telse if(event instanceof Advertisement)\n\t\t{\n\t\t\tSystem.out.println(this.toString() + \" Received Advertisement from Router \" + ((Advertisement)event).source());\n\t\t}\n\t\telse if(event instanceof BindingRequest) {\n\t\t\tBindingRequest br = (BindingRequest) event;\n\t\t\tif(br.destination().SameAddress(getAddr())) {\n\t\t\t\tSystem.out.println(this.toString()+ \" received a binding request\");\n\t\t\t\tsend(_HA, br, 0);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Router \" + this.getAddr().networkId() + \".\" + this.getAddr().nodeId() + \" handles packet with seq: \" + ((Message) event).seq()+\" from node: \"+((Message) event).source().networkId()+\".\" + ((Message) event).source().nodeId() + \" at time: \"+SimEngine.getTime() );\n\t\t\t\tSimEnt sendNext = getInterface(br.destination());\n\t\t\t\tSystem.out.println(\"Router sends to node: \" + ((Message) event).destination().networkId()+\".\" + ((Message) event).destination().nodeId());\t\n\t\t\t\tsend (sendNext, event, _now);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if (event instanceof Message)\n\t\t{\n\t\t\t//System.out.println(\"Router \" + this.getAddr().networkId() + \".\" + this.getAddr().nodeId() + \" handles packet with seq: \" + ((Message) event).seq()+\" from node: \"+((Message) event).source().networkId()+\".\" + ((Message) event).source().nodeId() + \" at time: \"+SimEngine.getTime());\n\t\t\tSimEnt sendNext = getInterface(((Message) event).destination());\n\t\t\t//System.out.println(\"Router sends to node: \" + ((Message) event).destination().networkId()+\".\" + ((Message) event).destination().nodeId());\t\t\n\t\t\tsend (sendNext, event, _now);\n\t\t}\n\t}", "private void printNeighbourTable()\n {\n\n myGUI.println(\"Neighbour Distance Table\");\n String str = F.format(\"dst |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += (F.format(i, 15));\n }\n myGUI.println(str);\n for (int i = 0; i < str.length(); i++) {\n myGUI.print(\"-\");\n }\n myGUI.println();\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str = F.format(\"nbr \" + i + \" |\", 15);\n for (int j = 0; j < RouterSimulator.NUM_NODES; j++) {\n str += (F.format(myNeighboursDistTable[i][j], 15));\n }\n if (i != myID && neighbours[i])\n myGUI.println(str);\n }\n myGUI.println();\n }", "void addNeighbour(Territory neighbour) {\n\t\tneighbours.add(neighbour);\n\t}", "@Override\n\tvoid createNeighbourhood() {\n\t\t\n\t}", "public void connect(Hashtable<String, ArrayList<Node>> cells, Executable target) {\n Coordinate.CellIterator itr = coordinate.getCellIterator();\n while (itr.hasNext()) {\n String idx = itr.next();\n ArrayList<Node> nodes = cells.get(idx);\n if (nodes == null) continue;\n for (Node node : nodes) {\n if (coordinate.SquaredDistance(node.coordinate, coordinate) > Config.LEGAL_SQUARE_DISTANCE || node.equals(this)) {\n// System.out.println(coordinate.toString() + \" \"\n// + node.coordinate.toString() + \"\" + coordinate.SquaredDistance(node.coordinate, coordinate));\n continue;\n }\n connected.add(node);\n node.getConnected().add(this);\n// if (Config.WILL_DRAW) {\n// target.push(c -> {\n// renderEdgeTo(c, node);\n// });\n// }\n }\n }\n }", "public RoutingProcessor(Network netIn)\r\n {\r\n network_topology = netIn;\r\n routing_method = \"SHP\";\r\n }", "private boolean display_Forward_Table(int[][] matrixTopo ,int source, int[] forward_tab_dist, int[] list_Prevoius_Nodes, ArrayList<Integer> del_router) \n\t{\n\t\tint last_visited_prev = 0;\n\t\tboolean retVal = true;\n\t\t\n\t\t//If the router is deleted then don't check further. First check if it is not null otherwise exception\n\t\tif(del_router != null && del_router.contains(source))\n\t\t{\n\t\t\tSystem.out.println(\"Router \"+ (source+1) +\" is removed from topology\");\n\t\t\tretVal = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"\\nRouter \" + (source + 1) + \" Connection Table\");\n\t\t\tSystem.out.println(\"Destination\\tInterface\");\n\t\t\tSystem.out.println(\"===========================\");\n\t\t\t\n\t\t\tfor(int n=0; n<matrixTopo.length; n++)\n\t\t\t{\n\t\t\t\t//for source node just display '-' else find the previous node\n\t\t\t\tif(n == source)\n\t\t\t\t\tSystem.out.println((source + 1) + \"\\t\\t - \");\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlast_visited_prev = n;\n\t\t\t\t\t//if it is source node or already previous node then exit else iterate to find the min dist node\n\t\t\t\t\twhile(!(list_Prevoius_Nodes[last_visited_prev] == last_visited_prev || list_Prevoius_Nodes[last_visited_prev] == source))\n\t\t\t\t\t{\n\t\t\t\t\t\tlast_visited_prev = list_Prevoius_Nodes[last_visited_prev]; //iterate till first previous node\n\t\t\t\t\t}\n\t\t\t\t\tif(forward_tab_dist[n] == INFINITE_DIST)\n\t\t\t\t\t\tSystem.out.println((n+1) + \"\\t\\t Router is Down or Unreachable\"); //when a node is disconnected to the graph or in case of deleted router\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println((n+1) + \"\\t\\t \" + (last_visited_prev + 1));\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//If router is deleted from the topology then return false indicating the same\n\t\treturn retVal;\n\t}", "public void deliverLocally(RoutingHeader routingHeader) {\n \n }", "public Node() {\n\t\tsplithorizon = false;\n\t\troutingTable = new ArrayList<ArrayList<Integer>>();\n\t\troutingTable.add(new ArrayList<Integer>());\n\t\troutingTable.add(new ArrayList<Integer>());\n\t\troutingTable.add(new ArrayList<Integer>());\n\t}", "public void routingStarted(RoutingHeader routingHeader) {\n \n }", "public void routingStarted(RoutingHeader routingHeader) {\n \n }", "private void connectToRendezVous(EndpointAddress addr, RouteAdvertisement routeHint) throws IOException {\r\n\r\n // BT nothing implemented yet\r\n }", "public void calculateRoute() {\n SKRouteSettings route = new SKRouteSettings();\n route.setStartCoordinate(start);\n route.setDestinationCoordinate(end);\n route.setNoOfRoutes(1);\n switch (routingType) {\n case SHORTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_SHORTEST);\n break;\n case FASTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_FASTEST);\n break;\n case QUIET:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_QUIETEST);\n break;\n }\n route.setRouteExposed(true);\n SKRouteManager.getInstance().calculateRoute(route);\n }", "protected int route(byte buffer[], int source) {\n \n // Get the message level\n byte messageLevel = getMessageLevel( buffer );\n // get the messageID\n byte messageID[] = getMessageID( buffer );\n \n // Check that the message was not received before\n if( messageIsNew( messageID )){\n \trecordMessageID( messageID );\n }\n else{\n \treturn Constants.SUCCESS;\n }\n \n // If I am not the sender of the message\n // add it to the message queue\n if (messageLevel == Constants.MESSAGE_ALL && source != Constants.SRC_ME){\n // Add message to message queue\n \taddMessageToQueue( buffer );\n }\n else if (messageLevel == Constants.MESSAGE_TARGET){\n \tbyte[] target = getTarget( buffer );\n \tif (target == this.address) {\n \t\t//Add to the message queue\n \t\treturn Constants.SUCCESS; //DO NOT send to all threads.\n \t}\n }\n \n // Send the message to all the threads\n synchronized (this.rwThreads) {\n for (ReadWriteThread aThread : rwThreads) {\n Log.d(TAG, \"Writing to device on thread: \" + aThread.getName());\n aThread.write(buffer);\n }\n }\n \n return Constants.SUCCESS;\n }", "private final void forwardVirtualConnect(DirectSocketAddress source,\n DirectSocketAddress sourceHub, DirectSocketAddress target,\n DirectSocketAddress targetHub, long index, int timeout, int port,\n int fragment, int buffer) {\n try {\n synchronized (out) {\n out.write(MessageForwarderProtocol.CREATE_VIRTUAL);\n\n DirectSocketAddress.write(source, out);\n DirectSocketAddress.write(sourceHub, out);\n\n DirectSocketAddress.write(target, out);\n DirectSocketAddress.write(targetHub, out);\n\n out.writeLong(index);\n\n out.writeInt(timeout);\n out.writeInt(port);\n out.writeInt(fragment);\n out.writeInt(buffer);\n\n out.flush();\n }\n } catch (Exception e) {\n handleDisconnect(e);\n }\n }", "public void activate() {\n routeTables = new ConcurrentHashMap<>();\n\n routeTables.put(IPV4, new RouteTable(IPV4));\n routeTables.put(IPV6, new RouteTable(IPV6));\n\n log.info(\"Started\");\n }", "private void source_to_dest_path(int source, int dest, int[] forward_dist_tab, int[] list_Prevoius_Node, ArrayList<Integer> del_router)\n\t{\n\t\tif(del_router != null && del_router.contains(dest))\n\t\t\tSystem.out.println(\"Router \"+ (dest+1) +\" is deleted\");\n\t\telse if(del_router != null && del_router.contains(source))\n\t\t\tSystem.out.println(\"Router \"+ (source+1) +\" is deleted\");\n\t\telse\n\t\t{\n\t\t\tint[] prevNodes_List = list_Prevoius_Node;\n\t\t\tint k = dest;\n\t\t\tString path = \"\" + (dest+1);\n\t\t\t\n\t\t\t//Check if node is reachable that if it is connected in the graph then only proceed further\n\t\t\tif(forward_dist_tab[dest] != INFINITE_DIST)\n\t\t\t{\n\t\t\t\twhile(prevNodes_List[k] != source)\n\t\t\t\t{\n\t\t\t\t\tpath += \" >- \" + (prevNodes_List[k] + 1);\n\t\t\t\t\tk = prevNodes_List[k];\n\t\t\t\t}\n\t\t\t\t//for source node\n\t\t\t\tpath += \" >- \" + (source+1);\n\t\t\t\t\n\t\t\t\t//Back traversal is done using the previous node list\n\t\t\t\tString disp_path= new StringBuilder(path).reverse().toString();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nShortest distance from \"+ (source+1) +\" to \"+ (dest+1) +\":\");\n\t\t\t\tSystem.out.println(\"PATH: \"+ disp_path);\n\t\t\t\tSystem.out.println(\"COST: \" + forward_dist_tab[dest]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"\\nRouter \"+ (dest+1) +\" is dead or unreachable.\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void communicateNeighborHostnames() throws InterruptedException {\n\t\tList<Thread> tList= new ArrayList<Thread>();\n\t\tfor (int i = 0; i < nProc-1; i++) {\n\t\t\tint clientPid = i + 2;\n\t\t\tThread t = new Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tConnection conn = pidToConnMap.get(clientPid);\n\t\t\t\t\tList<Integer> clientNeighborPids = neighborMap.get(clientPid);\n\t\t\t\t\tfor (int clientNeighborPid : clientNeighborPids) {\n\t\t\t\t\t\tString neighborHostname;\n\t\t\t\t\t\tif (clientNeighborPid == 1)\n\t\t\t\t\t\t\tneighborHostname = coordinatorHostname;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tneighborHostname = pidToHostnameMap.get(clientNeighborPid);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconn.send(neighborHostname);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\ttList.add(t);\n\t\t\tt.start();\n\t\t}\n\t\tfor (Thread t : tList) {\n\t\t\tt.join();\n\t\t}\n\t}", "private void sendToNode(byte type, I_LogicalAddress la) {\n OL_Message msg = (OL_Message) socket.createMessage(null);\n ;\n msg.setHopLimit((short) 1);\n msg.setDeliveryMode(OL_Message.DELIVERY_MODE_UNICAST);\n msg.setDestinationAddress(la);\n FSM_Extension ee = new FSM_Extension(MessageStore.FSM_SYNCHRONIZATION, type, messageid, root);\n msg.addExtension(ee);\n socket.forwardToParent(msg);\n }", "private void printMyRoutingTable()\n {\n\tString str;\n\tmyGUI.println(\"My Distance table and routes\");\n str = F.format(\"dst |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += (F.format(i, 15));\n }\n myGUI.println(str);\n for (int i = 0; i < str.length(); i++) {\n myGUI.print(\"-\");\n }\n str = F.format(\"cost |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += F.format(myDistTable[i], 15);\n }\n myGUI.println();\n myGUI.println(str);\n str = F.format(\"route |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += F.format(route[i], 15);\n }\n myGUI.println(str);\n myGUI.println();\n myGUI.println(\"--------------------------------------------\");\n myGUI.println();\n\n }", "public synchronized void run() {\n\t\t\n\t\tfor (int i=0; i<cnnode.NeigList1.size(); i++) {\n\t\t\tcnnode.FormerNeigList1.get(i).SetSendNum(cnnode.NeigList1.get(i).GetSendNum());\n\t\t\tcnnode.FormerNeigList1.get(i).SetReceiveNum(cnnode.NeigList1.get(i).GetReceiveNum());\n\t\t\tSystem.out.print(\"[\"+System.currentTimeMillis()+\"] Link to Node \"+ cnnode.FormerNeigList1.get(i).GetNeigPort() +\": \" + cnnode.FormerNeigList1.get(i).GetSendNum() + \" packets sent, \" + (cnnode.FormerNeigList1.get(i).GetSendNum()-cnnode.FormerNeigList1.get(i).GetReceiveNum()) + \" packets lost, loss rate \");\n\t\t\tSystem.out.printf(\"%.2f\\n\", (float)(cnnode.FormerNeigList1.get(i).GetSendNum()-cnnode.FormerNeigList1.get(i).GetReceiveNum())/cnnode.FormerNeigList1.get(i).GetSendNum());\n\t\t}\n\t}", "private void processNeighbors() {\n for(int i = 0; i < this.nextAvailPort; i++) {\n if(this.ports[i] == null) { continue; }\n System.out.println(this.ports[i].getRemoteRouterDesc().simulatedIPAddress);\n }\n }", "protected abstract Deque<Vertex<AtomicReference>> getVehicleRoute(int entry, int exit);", "private void fourNodesTopo() {\n ReadWriteTransaction tx = dataBroker.newReadWriteTransaction();\n n(tx, true, \"n1\", Stream.of(pB(\"n1:1\"), pB(\"n1:2\"), pI(\"n1:3\"), pO(\"n1:4\"), pO(\"n1:5\")));\n n(tx, true, \"n2\", Stream.of(pB(\"n2:1\"), pB(\"n2:2\"), pO(\"n2:3\"), pI(\"n2:4\"), pI(\"n2:5\")));\n n(tx, true, \"n3\", Stream.of(pB(\"n3:1\"), pB(\"n3:2\"), pO(\"n3:3\"), pO(\"n3:4\"), pI(\"n3:5\")));\n n(tx, true, \"n4\", Stream.of(pB(\"n4:1\"), pB(\"n4:2\"), pI(\"n4:3\"), pI(\"n4:4\"), pO(\"n4:5\")));\n l(tx, \"n1\", \"n1:5\", \"n2\", \"n2:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n1\", \"n1:4\", \"n4\", \"n4:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n2\", \"n2:3\", \"n4\", \"n4:3\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n3\", \"n3:4\", \"n2\", \"n2:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n4\", \"n4:5\", \"n3\", \"n3:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n try {\n tx.submit().checkedGet();\n } catch (TransactionCommitFailedException e) {\n e.printStackTrace();\n }\n }", "private void addLinkesToGraph()\n\t{\n\t\tString from,to;\n\t\tshort sourcePort,destPort;\n\t\tMap<Long, Set<Link>> mapswitch= linkDiscover.getSwitchLinks();\n\n\t\tfor(Long switchId:mapswitch.keySet())\n\t\t{\n\t\t\tfor(Link l: mapswitch.get(switchId))\n\t\t\t{\n\t\t\t\tfrom = Long.toString(l.getSrc());\n\t\t\t\tto = Long.toString(l.getDst());\n\t\t\t\tsourcePort = l.getSrcPort();\n\t\t\t\tdestPort = l.getDstPort();\n\t\t\t\tm_graph.addEdge(from, to, Capacity ,sourcePort,destPort);\n\t\t\t} \n\t\t}\n\t\tSystem.out.println(m_graph);\n\t}", "@Test\n public void directedRouting() {\n EdgeIteratorState rightNorth, rightSouth, leftSouth, leftNorth;\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(2, 3).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(3, 4).setDistance(3).set(speedEnc, 10, 10);\n rightNorth = graph.edge(4, 10).setDistance(1).set(speedEnc, 10, 10);\n rightSouth = graph.edge(10, 5).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(5, 6).setDistance(2).set(speedEnc, 10, 10);\n graph.edge(6, 2).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(2, 7).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(7, 8).setDistance(9).set(speedEnc, 10, 10);\n leftSouth = graph.edge(8, 9).setDistance(1).set(speedEnc, 10, 10);\n leftNorth = graph.edge(9, 0).setDistance(1).set(speedEnc, 10, 10);\n\n // make paths fully deterministic by applying some turn costs at junction node 2\n setTurnCost(7, 2, 3, 1);\n setTurnCost(7, 2, 6, 3);\n setTurnCost(1, 2, 3, 5);\n setTurnCost(1, 2, 6, 7);\n setTurnCost(1, 2, 7, 9);\n\n final double unitEdgeWeight = 0.1;\n assertPath(calcPath(9, 9, leftNorth.getEdge(), leftSouth.getEdge()),\n 23 * unitEdgeWeight + 5, 23, (long) ((23 * unitEdgeWeight + 5) * 1000),\n nodes(9, 0, 1, 2, 3, 4, 10, 5, 6, 2, 7, 8, 9));\n assertPath(calcPath(9, 9, leftSouth.getEdge(), leftNorth.getEdge()),\n 14 * unitEdgeWeight, 14, (long) ((14 * unitEdgeWeight) * 1000),\n nodes(9, 8, 7, 2, 1, 0, 9));\n assertPath(calcPath(9, 10, leftSouth.getEdge(), rightSouth.getEdge()),\n 15 * unitEdgeWeight + 3, 15, (long) ((15 * unitEdgeWeight + 3) * 1000),\n nodes(9, 8, 7, 2, 6, 5, 10));\n assertPath(calcPath(9, 10, leftSouth.getEdge(), rightNorth.getEdge()),\n 16 * unitEdgeWeight + 1, 16, (long) ((16 * unitEdgeWeight + 1) * 1000),\n nodes(9, 8, 7, 2, 3, 4, 10));\n }", "public void initiate() {\n // all we know is neighbours\n Set<Integer> idsToSend = neighbours.stream().map(Bunker::getId).collect(Collectors.toSet());\n sendGetCount(idsToSend);\n }", "@Override\r\n\tpublic void placeRoad(EdgeLocation edgeLoc) {\n\t\t\r\n\t}", "private void installRoute(List<NodePortTuple> path, OFMatch match) {\r\n\r\n\t\tOFMatch m = new OFMatch();\r\n\r\n\t\tm.setDataLayerType(Ethernet.TYPE_IPv4)\r\n\t\t\t\t.setNetworkSource(match.getNetworkSource())\r\n\t\t\t\t.setNetworkDestination(match.getNetworkDestination());\r\n\r\n\t\tfor (int i = 0; i <= path.size() - 1; i += 2) {\r\n\t\t\tshort inport = path.get(i).getPortId();\r\n\t\t\tm.setInputPort(inport);\r\n\t\t\tList<OFAction> actions = new ArrayList<OFAction>();\r\n\t\t\tOFActionOutput outport = new OFActionOutput(path.get(i + 1)\r\n\t\t\t\t\t.getPortId());\r\n\t\t\tactions.add(outport);\r\n\r\n\t\t\tOFFlowMod mod = (OFFlowMod) floodlightProvider\r\n\t\t\t\t\t.getOFMessageFactory().getMessage(OFType.FLOW_MOD);\r\n\t\t\tmod.setCommand(OFFlowMod.OFPFC_ADD)\r\n\t\t\t\t\t.setIdleTimeout((short) 0)\r\n\t\t\t\t\t.setHardTimeout((short) 0)\r\n\t\t\t\t\t.setMatch(m)\r\n\t\t\t\t\t.setPriority((short) 105)\r\n\t\t\t\t\t.setActions(actions)\r\n\t\t\t\t\t.setLength(\r\n\t\t\t\t\t\t\t(short) (OFFlowMod.MINIMUM_LENGTH + OFActionOutput.MINIMUM_LENGTH));\r\n\t\t\tflowPusher.addFlow(\"routeFlow\" + uniqueFlow, mod,\r\n\t\t\t\t\tHexString.toHexString(path.get(i).getNodeId()));\r\n\t\t\tuniqueFlow++;\r\n\t\t}\r\n\t}", "public void testMissingRouteAfterMerge() throws Exception {\n a=createNode(LON, \"A\", LON_CLUSTER, null);\n b=createNode(LON, \"B\", LON_CLUSTER, null);\n Util.waitUntilAllChannelsHaveSameView(30000, 1000, a, b);\n\n x=createNode(SFO, \"X\", SFO_CLUSTER, null);\n assert x.getView().size() == 1;\n\n RELAY2 ar=a.getProtocolStack().findProtocol(RELAY2.class),\n xr=x.getProtocolStack().findProtocol(RELAY2.class);\n\n assert ar != null && xr != null;\n\n JChannel a_bridge=null, x_bridge=null;\n for(int i=0; i < 20; i++) {\n a_bridge=ar.getBridge(SFO);\n x_bridge=xr.getBridge(LON);\n if(a_bridge != null && x_bridge != null && a_bridge.getView().size() == 2 && x_bridge.getView().size() == 2)\n break;\n Util.sleep(500);\n }\n\n assert a_bridge != null && x_bridge != null;\n\n System.out.println(\"A's bridge channel: \" + a_bridge.getView());\n System.out.println(\"X's bridge channel: \" + x_bridge.getView());\n assert a_bridge.getView().size() == 2 : \"bridge view is \" + a_bridge.getView();\n assert x_bridge.getView().size() == 2 : \"bridge view is \" + x_bridge.getView();\n\n Route route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n\n // Now inject a partition into site LON\n System.out.println(\"Creating partition between A and B:\");\n createPartition(a, b);\n\n System.out.println(\"A's view: \" + a.getView() + \"\\nB's view: \" + b.getView());\n assert a.getView().size() == 1 && b.getView().size() == 1;\n\n route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n\n View bridge_view=xr.getBridgeView(BRIDGE_CLUSTER);\n System.out.println(\"bridge_view = \" + bridge_view);\n\n // Now make A and B form a cluster again:\n View merge_view=new MergeView(a.getAddress(), 10, Arrays.asList(a.getAddress(), b.getAddress()),\n Arrays.asList(View.create(a.getAddress(), 5, a.getAddress()),\n View.create(b.getAddress(), 5, b.getAddress())));\n GMS gms=a.getProtocolStack().findProtocol(GMS.class);\n gms.installView(merge_view, null);\n gms=b.getProtocolStack().findProtocol(GMS.class);\n gms.installView(merge_view, null);\n\n Util.waitUntilAllChannelsHaveSameView(20000, 500, a, b);\n System.out.println(\"A's view: \" + a.getView() + \"\\nB's view: \" + b.getView());\n\n for(int i=0; i < 20; i++) {\n bridge_view=xr.getBridgeView(BRIDGE_CLUSTER);\n if(bridge_view != null && bridge_view.size() == 2)\n break;\n Util.sleep(500);\n }\n\n route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n }", "void sendEntry(Entry e) {\n // System.out.println(\"Mapper.sendEntry()\");\n RemoteMapper dest = findMapper(e.getHash());\n try {\n if (predKey != 0) {\n removeKey(e.getHash());\n }\n dest.addEntry(e);\n } catch (RemoteException ex) {\n ex.printStackTrace();\n }\n\n }", "public void printRoutingTables(HashMap<String, Node> nodes) {\r\n\t\tfor (Node node : nodes.values()) {\r\n\t\t\tSystem.out.println(\"Node \" + node.getName() + \":\");\r\n\t\t\tnode.printRoutingTable();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onReCalculateRouteForTrafficJam() {\n\n\t}", "private void initializeFingerTable() {\n this.fingerTable = new HashMap<>();\n\n if (this.getExistingAddress() == null) {\n for (int i = 0; i < 32; i++) {\n this.fingerTable.put(i, new Finger(this.getAddress(), this.getPort()));\n }\n } else {\n try {\n // Create a socket that will contact the existing ChordServer for the fingers\n Socket socket = new Socket(this.getExistingAddress(), this.getExistingPort());\n System.out.println(\"Connection successfully established with: \" + this.getExistingAddress() + \" \" + this.getExistingPort());\n\n //Create writers/readers for the socket streams\n PrintWriter socketWriter = new PrintWriter(socket.getOutputStream(), true);\n BufferedReader socketReader = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\n BigInteger bigPow = BigInteger.valueOf(2L);\n BigInteger bigCurrentNodeId = BigInteger.valueOf(this.getId());\n\n for (int i = 0; i < 32; i++) {\n // Find successor for Node ID (id + 2^i)\n BigInteger pow = bigPow.pow(i);\n BigInteger queryId = bigCurrentNodeId.add(pow);\n\n // Send the queryId to the client\n socketWriter.println(ChordMain.FIND_SUCCESSOR + \":\" + queryId.toString());\n System.out.println(\"Sent => \" + ChordMain.FIND_SUCCESSOR + \":\" + queryId.toString());\n\n // Client response\n String clientResponse = socketReader.readLine();\n String[] response = clientResponse.split(\":\");\n String address = response[1];\n int port = Integer.valueOf(response[2]);\n System.out.println(\"Received => \" + clientResponse);\n\n // Put the finger entry into the FingerTable\n this.getFingerTable().put(i, new Finger(address, port));\n }\n\n // Close the connections\n socketWriter.close();\n socketReader.close();\n socket.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public void addRoute(IPv4AddressWithMask dstNet, IPv4Address nextHop, int outPort){\n\t\trouteTable.add(new RouteEntry(dstNet, nextHop, outPort));\n\t}", "public synchronized void addRoute(String to, String via) {\n\tif(routeExists(to, via)) {\n\t return;\n\t}\n\taddForwardEntry(to, via);\n\tinverseTable.add(via, to);\n }", "void addEdge(int source, int destination, int weight);", "public static void modifyTopology()\r\n\t{\r\n\t\tSystem.out.println(\"===============STARTING TO MODIFY TOPOLOGY==============\");\r\n\t\tscan = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Please enter Router that you want to Shutdown : \"); // Printing Instruction\r\n\t\t\r\n\t\tint delr = Integer.parseInt(scan.nextLine()); // Reading the router to be deleted\r\n\t\twhile (delr < 1 || delr > routers) {\r\n\t\t\tSystem.out.print(\"\\n The entered source router not present, Please enter Again : \");\r\n\t\t\tdelr = Integer.parseInt(scan.nextLine());\r\n\t\t}\r\n\t\tdelr = delr - 1;\r\n\t\t\r\n\t\tint[][] graph2 = new int[routers-1][routers-1];\r\n\t\tint p = 0;\r\n\t\tfor (int i = 0; i < routers; ++i) { // Loop for deleting router and shifting graphay\r\n\r\n\t\t\tif (i == delr)\r\n\t\t\t\tcontinue;\r\n\t\t\tint q = 0;\r\n\t\t\tfor (int j = 0; j < routers; ++j) // Control loop for shifting\r\n\t\t\t{\r\n\t\t\t\tif (j == delr)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\r\n\t\t\t\tgraph2[p][q] = graph[i][j]; // shifting row and column\r\n\t\t\t\t++q;\r\n\t\t\t}\r\n\t\t\t++p;\r\n\t\t}\r\n\t\t\r\n\t\trouters -= 1;\r\n\t\t\r\n\t\tSystem.out.println(\"============NEW TOPLOGY============\");\r\n\t\tfor (int row = 0; row < routers; row++) {\r\n\t\t\tfor (int col = 0; col < routers; col++) {\r\n\t\t\t\tLinkstateRouting.graph[row][col] = graph2[row][col];\r\n\t\t\t\tSystem.out.print(graph[row][col] + \"\\t\"); // Printing the new topology again\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t }\r\n\t\tSystem.out.println(\"Router \" + (delr + 1) + \" is Shutdown\");\r\n\t}", "public ArrayList<ArrayList<Integer>> getRoutingTable() {\n\t\treturn routingTable;\n\t}", "public void sendHellos() {\n\t\tint lnk = 0;\n\t\tboolean isChanged = false;\n\t\tfor (LinkInfo lnkInfo : lnkVec) {\n\n\t\t\t// if no reply to the last hello, subtract 1 from\n\t\t\t// link status if it's not already 0\n\t\t\tif (!lnkInfo.gotReply){\n\t\t\t\tif (lnkInfo.helloState != 0){\n\t\t\t\t\tlnkInfo.helloState--;\n\t\t\t\t}\t\n\n\t\t\t\t// go through the routes to check routes \n\t\t\t\t// that contain the failed link\n\t\t\t\telse {\n\t\t\t\t\tfor (Route rte : rteTbl){\n\t\t\t\t\t\tif (rte.path.contains(lnk)){\n\t\t\t\t\t\t\tif (rte.valid != false){\n\t\t\t\t\t\t\t\tisChanged = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trte.valid = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// print routing table if debug is enabled \n\t\t\t// and valid field of route is changed\n\t\t\tif (debug > 0 && isChanged){\n\t\t\t\tprintTable();\n\t\t\t}\n\n\t\t\t// send link failure advertisement if enFA is enabled\n\t\t\t// and valid field of route is changed\n\t\t\tif (enFA && isChanged){\n\t\t\t\tsendFailureAdvert(lnk);\n\t\t\t\tisChanged = false;\n\t\t\t}\n\n\t\t\t// send new hello, after setting gotReply to false\n\t\t\tlnkInfo.gotReply = false;\n\t\t\tPacket p = new Packet();\n\t\t\tp.protocol = 2;\n\t\t\tp.ttl = 100;\n\t\t\tp.srcAdr = myIp;\n\t\t\tp.destAdr = lnkInfo.peerIp;\n\t\t\tp.payload = String.format(\"RPv0\\ntype: hello\\n\"\n\t\t\t\t\t+ \"timestamp: %.3f \\n\",\n\t\t\t\t\tnow);\n\t\t\tfwdr.sendPkt(p, lnk);\n\t\t}\n\t}", "private void fiveNodesTopo() {\n ReadWriteTransaction tx = dataBroker.newReadWriteTransaction();\n n(tx, true, \"n1\", Stream.of(pI(\"n1:1\"), pB(\"n1:2\"), pI(\"n1:3\"), pO(\"n1:4\")));\n n(tx, true, \"n2\", Stream.of(pI(\"n2:1\"), pB(\"n2:2\"), pO(\"n2:3\"), pI(\"n2:4\")));\n n(tx, true, \"n3\", Stream.of(pO(\"n3:1\"), pB(\"n3:2\"), pO(\"n3:3\"), pI(\"n3:4\")));\n n(tx, true, \"n4\", Stream.of(pO(\"n4:1\"), pI(\"n4:2\"), pB(\"n4:3\"), pB(\"n4:4\")));\n n(tx, true, \"n5\", Stream.of(pI(\"n5:1\"), pB(\"n5:2\"), pB(\"n5:3\"), pO(\"n5:4\")));\n l(tx, \"n2\", \"n2:3\", \"n3\", \"n3:4\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n3\", \"n3:1\", \"n1\", \"n1:1\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n3\", \"n3:3\", \"n5\", \"n5:1\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n4\", \"n4:1\", \"n1\", \"n1:3\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n1\", \"n1:4\", \"n2\", \"n2:4\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n5\", \"n5:4\", \"n4\", \"n4:2\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n try {\n tx.submit().checkedGet();\n } catch (TransactionCommitFailedException e) {\n e.printStackTrace();\n }\n }", "public Node passAgent(){\n int length = liveNeighbors.size();\n Random rnd = new Random();\n boolean stat = false;\n Node node=null;\n while(!stat) {\n int len = rnd.nextInt(length);\n node = liveNeighbors.get(len);\n stat = node.recieveAgent(agent);\n }\n agent = null;\n updateScreen(\"removeBorder\");\n return node;\n }", "@Override\n public ArrayList<GraphEdge> getRoute(GraphNode a, GraphNode b) {\n \tHashMap<GraphNode, Double> distances = new HashMap<GraphNode, Double>();\n \tHashMap<GraphNode, GraphEdge> predecessor = new HashMap<GraphNode, GraphEdge>();\n \tHashSet<GraphNode> visited = new HashSet<GraphNode>();\n \t\n \tArrayList<GraphEdge> result = new ArrayList<GraphEdge>();\n\t\n \t//Initialize distances, predecessor, and visited\n \tfor(GraphNode g : drivableNodes) {\n \t distances.put(g, Double.MAX_VALUE);\n \t predecessor.put(g, null);\n \t}\n \t\n \tint remaining = drivableNodes.size();\n \t\n \t//Put starting node\n \tdistances.put(a, 0.0);\n \t//predecessor.put(a, null);\n \t\n \t//Main loop\n \twhile(remaining > 0) {\n \t GraphNode closest = null;\n \t double minDist = Double.MAX_VALUE;\n\n \t for(GraphNode n : distances.keySet()) {\n \t\tdouble dist = distances.get(n);\n \t\tif(!visited.contains(n) &&\n \t\t\tdist != Double.MAX_VALUE &&\n \t\t\t(minDist == Double.MAX_VALUE || dist < minDist)) {\n \t\t closest = n;\n \t\t minDist = dist;\n \t\t}\n \t }\n \t \n \t if(closest == null)\n \t\treturn null;\n \t \n \t if(closest.equals(b))\n \t\tbreak;\n \t \n \t visited.add(closest);\n \t \n \t for(GraphEdge edge : closest.getEdges()) {\n \t\tGraphNode adjacent = edge.getOtherNode(closest);\n \t\tif(adjacent != null && !visited.contains(adjacent)) {\n \t\t //Map distance value for the other Node\n \t\t double otherDist = distances.get(adjacent);\n \t\t //Weight of edge from closest node to adjacent node\n \t\t double weight = edge.getWeight();\n \t\t String way = edge.getWay();\n \t\t \n \t\t if(otherDist == Double.MAX_VALUE ||\n \t\t\t weight + minDist < otherDist) {\n \t\t\tdistances.put(adjacent, weight + minDist);\n \t\t\t\n \t\t\t//Make new edge in correct order\n \t\t\tGraphEdge corrected = new GraphEdge(closest, adjacent, weight, way);\n \t\t\t\n \t\t\tpredecessor.put(adjacent, corrected);\n \t\t }\n \t\t}\n \t }\n\n \t remaining--;\n \t}\n \t\n \t//Backtrack to build route\n \tif(distances.get(b) == Double.MAX_VALUE) {\n \t return null;\n \t} else {\n \t //buildPath(predecessor, a, b, result);\n \t //Non recursive version\n \t Stack<GraphEdge> stack = new Stack<GraphEdge>(); \n \t while(!b.equals(a)) {\n \t\tGraphEdge edge = predecessor.get(b);\n \t\t\n \t\t//Make sure vertices are in correct order\n \t\tGraphNode start = edge.getOtherNode(b);\n \t\t//double weight = edge.getWeight();\n \t\t//GraphEdge corrected = new GraphEdge(start, b, weight);\n \t\t\n \t\tstack.push(edge);\n \t\tb = start;\n \t }\n \t \n \t while(!stack.isEmpty()) {\n \t\tGraphEdge edge = stack.pop();\n \t\tresult.add(edge);\n \t }\n \t}\n \t\n\treturn result;\n }", "void forwardToAll(String text, NodeInfo senderInfo)\n {\n for (CommunicationLink node : allNodes.values())\n {\n NodeInfo nodeInfo = node.getInfo();\n if (nodeInfo.hashCode() != senderInfo.hashCode())\n {\n node.sendMessage(new Message(text, nodeInfo, senderInfo, CHAT));\n try\n {\n node.readMessage();\n } catch (IOException e)\n {\n handleNodeDeath(nodeInfo);\n logger.error(\"Node \" + myInfo + \"\\n - Failed to forward message to: \" +\n nodeInfo.getName() + \", they disconnected unexpectedly.\");\n }\n }\n }\n }", "public void join(NodeInfo info) {\n\t\taddAsPeer(info);\r\n\t\tSystem.out.println(\"Joined : \" + info.getIp() + \" \" + info.getPort());\r\n\t\t// join to obtained node\r\n\t\tString newJoinString = \"0114 JOIN \" + ip + \" \" + port;\r\n\t\tsend(newJoinString, info.getIp(), info.getPort());\r\n\t}", "public void send_data_packet(char dest, DatagramPacket dp) {\n if (win.is_local_name(dest)) {\n // Send to local node\n try {\n dp.setAddress(InetAddress.getLocalHost());\n dp.setPort(ds.getLocalPort());\n ds.send(dp);\n win.DATA_snt++;\n }\n catch (UnknownHostException e) {\n Log(\"Error sending packet to himself: \"+e+\"\\n\");\n }\n catch (IOException e) {\n Log(\"Error sending packet to himself: \"+e+\"\\n\");\n }\n \n } else { // Send to Neighbour Router\n char prox= next_Hop(dest);\n if (prox == ' ') {\n Log(\"No route to destination: packet discarded\\n\");\n } else {\n // Lookup Neighbour\n Neighbour pt= neig.locate_neig(prox);\n if (pt == null) {\n Log(\"Invalid neighbour (\"+prox+\n \") in routing table: packet discarder\\n\");\n return;\n }\n try {\n pt.send_packet(ds, dp);\n win.DATA_snt++;\n }\n catch(IOException e) {\n Log(\"Error sending DATA packet: \"+e+\"\\n\");\n }\n } \n }\n }", "private void sendNetMessage(Connect4MoveMessage message) {\n\t\tSystem.out.println(\"sending move over network\");\n\t\tSystem.out.println(\"sending row: \"+message.getRow());\n\t\tSystem.out.println(\"sending col: \"+message.getColumn());\n\t\tSystem.out.println(\"sending player: \"+message.getColor());\n\t\ttry {\n\t\t\toutput.writeObject(message);\n\t\t\toutput.flush();\n\t\t} catch (Exception x) {\n\t\t\tx.printStackTrace();\n\t\t}\n\t}", "public void addEntry(int source, int net, int distance, int nextHop)\n\t{\n\t\ttable.add(new RouteTableEntry(source, new NetworkDistancePair(net, distance), nextHop));\n\t\t\n\t\tparentActivity.runOnUiThread(new Runnable()\n\t\t{ \n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tuiManager.resetRoutingListAdapter();\n\t\t\t} // end public method run\n\t\t}); // end runOnUiThread\n\t}", "public SuperPeer forward(String command, Message message) {\n IPv4 neighbor;\n Socket nSock;\n DataOutputStream toNeighbor;\n\n message.decrementTTL().setSender(this.getAddress());\n for (String n : this.neighbors) {\n try {\n this.log(String.format(\"-> Forwarding '%s %s' to (%s)\", command, message, n));\n neighbor = new IPv4(n);\n // forward the message to each, with the TTL decremented\n nSock = new Socket(neighbor.getAddress(), neighbor.getPort());\n toNeighbor = new DataOutputStream(nSock.getOutputStream());\n\n toNeighbor.writeUTF(this.toString()); // initial handshake\n toNeighbor.writeUTF(String.format(\"%s %s\", command, message));\n nSock.close();\n } catch (Exception e) {\n this.log(String.format(\"-> Could not connect to (%s). Is it live?\", n));\n }\n }\n return this;\n }", "public void addNeighbor(Node node){\n neighbors.add(node);\n liveNeighbors.add(node);\n }", "private final void relaxNeighbors(_Node unsettledNode)\r\n {\r\n for (_Edge destinationEdge : map.getDestinations(unsettledNode))\r\n {\r\n \tif (isSettled(destinationEdge.getEndNode())) continue;\r\n \tint shortDist = getShortestDistance(unsettledNode) + destinationEdge.getWeight();// map.getDistance(unsettledNode, destinationEdge.getEndNode());\r\n if (shortDist <= getShortestDistance(destinationEdge.getEndNode()))\r\n {\r\n setShortestDistance(destinationEdge.getEndNode(), shortDist);\r\n setPredecessor(destinationEdge.getEndNode(),unsettledNode);\r\n }\r\n } \r\n }", "private void link(DefaultDirectedGraph<FStream, IndexedEdge<FStream>> G, FStream node, FStream n) {\n\t\tif (!G.containsVertex(n)) {\n\t\t\tG.addVertex(n);\n\t\t}\n\t\t\n\t\tindex_counter += 1;\n\t\tIndexedEdge<FStream> e = new IndexedEdge<FStream>(node, n, index_counter);\n\t\tG.addEdge(node, n, e);\n\t}", "public void searchNodeRequest(long idNode, Address address){\r\n\t\tArrayList<NodeAddress> node = routeTable.get(idNode);\r\n\t\tif ( node != null && node.size() != 0 ){\r\n\t\t\tmyCommunications.send(\r\n\t\t\t\t\tnew NodeAddress(0, address), \r\n\t\t\t\t\tnew FindNodeMessage( node ).toByteArray()\r\n\t\t\t);\r\n\t\t\r\n\t\t//Sending to Entity for broadcast\r\n\t\t}else{\r\n\t\t\tareaWrapper.sendtoEntity(new NodeAddress(0, address), new SearchNodeRequestMessage(idNode).toByteArray());\r\n\t\t}\r\n\t}", "public void connect(Node node) throws RemoteException, UnknownHostException {\n map = new TreeMap();\n this.chord = node;\n this.nodeKey = node.getNodeKey();\n if (chord.getPredecessor() != null) {\n predKey = chord.getPredecessor().getNodeKey();\n }\n bind(this.nodeKey);\n window.setMapper(this);\n manager = new Thread(this);\n manager.start();\n }", "public void readForward() {\n\t\tiStream = new ByteArrayInputStream(marshalledBytes);\t\n\t\tdin = new DataInputStream(new BufferedInputStream(iStream));\n\t\ttry {\n\t\t\tint nRouteStops = din.readInt();\n\t\t\tint routeByteLength = din.readInt();\n\t\t\tbyte[] routeBytes = new byte[routeByteLength];\n\t\t\tdin.readFully(routeBytes);\n\t\t\tlong payload = din.readLong();\n\n\t\t\tArrayList<String> route = new ArrayList<String>();\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(routeBytes);\n\t\t\tDataInputStream dis = new DataInputStream(bis);\n\t\t\tint nameLength; byte[] ipNameBytes; String ip;\n\t\t\tfor (int i=0; i< nRouteStops; i++ ) {\n\t\t\t\tnameLength = dis.readInt();\n\t\t\t\tipNameBytes = new byte[nameLength];\n\t\t\t\tdis.readFully(ipNameBytes);\n\t\t\t\tip = new String(ipNameBytes);\n\t\t\t\troute.add(ip);\n\t\t\t}\n\n\t\t\tif(nRouteStops == 0) {\n\t\t\t\tnode.addToReceiveSum(payload);\n\t\t\t\tnode.incrementReceiveTracker();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSocket senderSocket=null; Message message=null;\n\t\t\t\tnode.incrementRelayTracker();\n\t\t\t\tfor(int i =0; i<route.size();i++) {\n\t\t\t\t\tif (node.getConnections().getSocketWithName(route.get(i))!=null) {\n\t\t\t\t\t\tString nextStop = route.remove(i);\n\t\t\t\t\t\t message = new ForwardMessage(route,payload);\n\t\t\t\t\t\tsenderSocket = node.getConnections().getSocketWithName(nextStop);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnew TCPSender(senderSocket, message);\n\t\t\t}\n\t\t} catch (IOException e) { System.out.println(\"Failed to read message. \"); }\n\t}", "@Override\r\n\tpublic void onReCalculateRouteForTrafficJam() {\n\r\n\t}", "public void addNeighbour(final Vertex neighbour){\n\t\tneighbours.add(neighbour);\n\t}", "public void updateEntry(InetAddress destNtwk, String desthostname, RoutingTableKey nextipHost, int nexthop, Port p, int cost, int myPort) {\r\n synchronized (lockRoutingTable) {\r\n RoutingTableKey ipHost = new RoutingTableKey(destNtwk, desthostname);\r\n // RoutingTableKey nextipHost = new RoutingTableKey(nextdestNtwk, nextdesthostname);\r\n this.myObjDate = LocalTime.now();\r\n this.routingEntries.get(ipHost).setCost(cost);\r\n this.routingEntries.get(ipHost).setNextipHost(nextipHost);\r\n this.routingEntries.get(ipHost).setPortclass(p);\r\n this.routingEntries.get(ipHost).setNextHop(nexthop);\r\n this.routingEntries.get(ipHost).setPort(myPort);\r\n }\r\n }", "synchronized void sendTo(Message message, InetSocketAddress receiver) throws InterruptedException {\n Neighbor neighbor = node.getNeighbor(receiver);\n if (neighbor != null) {\n neighbor.sendMessage(message);\n }\n }", "void nodeOnline();", "public void addEntry(int source, NetworkDistancePair netDist, int nextHop)\n\t{\n\t\ttable.add(new RouteTableEntry(source, netDist, nextHop));\n\t\t\n\t\tparentActivity.runOnUiThread(new Runnable()\n\t\t{ \n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tuiManager.resetRoutingListAdapter();\n\t\t\t} // end public method run\n\t\t}); // end runOnUiThread\n\t}", "private void processDetect(String destinationIP) {\n WeightedGraph graph = WeightedGraph.createFromLSD(this.routerDesc, this.lsd);\n WeightedGraph.Vertex root = graph.getVertex(this.routerDesc.simulatedIPAddress);\n WeightedGraph.Vertex target = graph.getVertex(destinationIP);\n\n if(target == null) {\n LOG.info(\"No target found\");\n return;\n }\n\n graph.execute(root);\n\n List<WeightedGraph.Vertex> path = graph.getPath(target);\n if(path == null) {\n LOG.info(\"No path found\");\n } else {\n WeightedGraph.Vertex from = null;\n StringBuilder pathBuild = new StringBuilder();\n\n for(WeightedGraph.Vertex v : path) {\n if(from != null) {\n WeightedGraph.Edge e = graph.getEdge(from, v);\n pathBuild.append(\" ->(\").append(e.cost).append(\") \");\n }\n\n pathBuild.append(v.value + \" \");\n from = v;\n }\n\n LOG.info(pathBuild.toString());\n }\n }", "public void initialize() {\n // add direct connections to routing table\n for (Bunker neighbour : neighbours) {\n routing.put(neighbour.getId(), neighbour);\n }\n // add yourself\n routing.put(id, this);\n bunkerIdToCount.put(id, count);\n // kick off the algo\n initiate();\n }", "private void e_Neighbours(int u){ \n int edgeDistance = -1; \n int newDistance = -1; \n \n // All the neighbors of v \n for (int i = 0; i < adj.get(u).size(); i++) { \n Node v = adj.get(u).get(i); \n \n // If current node hasn't already been processed \n if (!settled.contains(v.node)) { \n edgeDistance = v.cost; \n newDistance = dist[u] + edgeDistance; \n \n // If new distance is cheaper in cost \n if (newDistance < dist[v.node]) \n dist[v.node] = newDistance; \n \n // Add the current node to the queue \n pq.add(new Node(v.node, dist[v.node])); \n } \n } \n }", "void addNeighbor(NodeKey key, GraphNode target, Map<String, String> attr);", "public void updateDHTPeerQuit(Packet packet) {\r\n\t\t\r\n\t\tif(peerNode.distributedHashTable.size() > 0) {\r\n\t\t\t// Remove address location from DHT\r\n\t\t\tjava.util.Date updateDHTDate = new java.util.Date();\r\n\t\t\tSystem.out.println(updateDHTDate + \": Peer Node \" + packet.packetSenderID + \" is leaving the network - Distributed Hash Table being updated\");\r\n\t\t\tInetSocketAddress fileLocation = new InetSocketAddress(packet.peerClientIP, packet.peerClientListenPort);\r\n\t\t\t\r\n\t Set<String> keys = peerNode.distributedHashTable.keySet();\r\n\t\t\tfor(String key: keys) {\r\n\t\t\t\tfor(int i = 0; i < peerNode.distributedHashTable.get(key).size(); i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(peerNode.distributedHashTable.get(key).get(i).getPort() == fileLocation.getPort()) {\r\n\t\t\t\t\t\tif(peerNode.distributedHashTable.get(key).size() > 1)\r\n\t\t\t\t\t\t\tpeerNode.distributedHashTable.get(key).remove(i);\r\n\t\t\t\t\t\telse if(peerNode.distributedHashTable.get(key).size() == 1) {\r\n\t\t\t\t\t\t\tpeerNode.distributedHashTable.remove(key);\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}\r\n\t\t\r\n\t\t//Pass packet on to next peer\r\n\t\tif(peerNode.succPeerID != packet.packetSenderID) {\r\n\t\t\tpeerNode.findPeer(peerNode);\r\n\t\t\tif(peerNode.succPeerID == -1) {\r\n\t\t\t\tjava.util.Date d1 = new java.util.Date();\r\n\t\t\t\tSystem.out.println(d1 + \": You have no neighboring peers to pass this information on to\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tjava.util.Date date = new java.util.Date();\r\n\t\t\t\t\tSystem.out.println(date + \": Notifying my Neighbor Peer Node that \" + packet.packetSenderID + \" is leaving the network and that their Disributed Hash Table might need to be updated\");\r\n\t\t\t\t\tpeerNode.peer2Peer = new Socket(peerNode.succPeerIP, peerNode.succPeerPort);\r\n\t\t\t\t\tpeerNode.peer2PeerOutStream = new ObjectOutputStream(peerNode.peer2Peer.getOutputStream());\r\n\t\t\t\t\tpeerNode.peer2PeerInStream = new ObjectInputStream(peerNode.peer2Peer.getInputStream());\r\n\t\t\t\t\tpeerNode.peer2PeerOutStream.writeObject(packet);\r\n\t\t\t\t\r\n\t\t\t\t\t// Close socket/connection\r\n\t\t\t\t\tcloseConnection();\r\n\t\t\t\t} \r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch blo\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t}", "public void connectClusters()\n\t{\n//\t\tfor(int i = 0; i<edges.size();i++)\n//\t\t{\n//\t\t\tEdgeElement edge = edges.get(i);\n//\t\t\tString fromNodeID = edge.fromNodeID;\n//\t\t\tNodeElement fromNode = findSubNode(fromNodeID);\n//\t\t\tString toNodeID = edge.toNodeID;\n//\t\t\tNodeElement toNode = findSubNode(toNodeID); \n//\t\t\t\n//\t\t\tif(fromNode != null && toNode != null)\n//\t\t\t{\n//\t\t\t\tPortInfo oport = new PortInfo(edge, fromNode);\n//\t\t\t\tfromNode.addOutgoingPort(oport);\n//\t\t\t\tedge.addIncomingPort(oport);\n//\t\t\t\tPortInfo iport = new PortInfo(edge, toNode);\n//\t\t\t\ttoNode.addIncomingPort(iport);\n//\t\t\t\tedge.addOutgoingPort(iport);\n//\t\t\t}\n//\t\t}\n\t}", "public Routing(char local_name, NeighbourList neig, int period, \n int min_interval, String areas, String multi_addr, int multi_port,\n Router win, DatagramSocket ds, JTable tableObj) {\n this.local_name= local_name;\n this.areas= \"0\"; // this.areas= areas;\n if ((areas == null) || (areas.length()<1)) {\n Log2(\"Invalid areas in routing constructor\");\n this.rprocesses= null;\n } else {\n this.rprocesses= new HashMap<>();\n \n // Incomplete - This version ignores the areas introduced in the GUI \n // Plase modify to support multiple areas, if you have time !\n \n Log(\"routing class only supports one area for now!\\n\\tUsing only area 0\\n\");\n this.rprocesses.put('0', \n new RoutingProcess(this, win, neig, '0', period, min_interval)); \n }\n \n this.neig= neig;\n this.local_TTL= period+TTL_ADD;\n this.win= win;\n this.ds= ds;\n this.tableObj= tableObj;\n // Initialize everything\n this.mdaemon= new MulticastDaemon(ds, multi_addr, multi_port, win, this);\n this.main_rtab= null;\n Log2(\"new Routing(local='\"+local_name+\"', period=\"+period+\n \", min_interval=\"+min_interval+\")\");\n }", "@Override\r\n\tpublic void generateMaze(Maze maze) {\n\t\tif (maze.type == 1) {\r\n\t\t\t// Normal Maze\r\n\t\t\tcreateNodesNormal(maze);\r\n\t\t} else {\r\n\t\t\t// Tunnel Maze\r\n\t\t\tcreateNodesTunnel(maze);\r\n\t\t}\r\n\r\n\t\t// create a new edge for each connected cells\r\n\t\tcreateEdge(maze);\r\n\r\n\t\t// loop through all the listed edges in random order and determine if the\r\n\t\t// cell is already connected or not, if not create a new connection.\r\n\t\twhile (!edge.isEmpty()) {\r\n\t\t\tRandom randomObj = new Random();\r\n\t\t\tx = randomObj.nextInt(edge.size());\r\n\t\t\tj = edge.get(x).getTargetDirection();\r\n\t\t\tHashMapConnectedNodes from = null;\r\n\t\t\tHashMapConnectedNodes to = null;\r\n\t\t\tHashMapConnectedNodes obj = new HashMapConnectedNodes();\r\n\t\t\tHashMapConnectedNodes toSet = null;\r\n\t\t\tboolean loop = true;\r\n\t\t\t// validateConnection method returns true if a connection is found\r\n\t\t\tstatus = validateConnection(edge.get(x).getNodeFrom(), edge.get(x).getNodeTo());\r\n\t\t\tif (status == false) {\r\n\t\t\t\t// Calls addConnectedEdge method and add to arryConnectedEdges for both of the\r\n\t\t\t\t// nodes\r\n\t\t\t\taddConnectedEdge();\r\n\r\n\t\t\t\t// Search hshMConnectedNodes for the current node to the target node\r\n\t\t\t\tfor (int counter = 0; counter < hshMConnectedNodes.size(); counter++) {\r\n\t\t\t\t\tif (hshMConnectedNodes.get(counter).searchNode(edge.get(x).getNodeFrom()))\r\n\t\t\t\t\t\tfrom = hshMConnectedNodes.get(counter);\r\n\t\t\t\t\tif (hshMConnectedNodes.get(counter).searchNode(edge.get(x).getNodeTo()))\r\n\t\t\t\t\t\tto = hshMConnectedNodes.get(counter);\r\n\t\t\t\t}\r\n\t\t\t\t// If both don't have any connection, create a new hshMConnectedNodes and add\r\n\t\t\t\t// both\r\n\t\t\t\t// node to the list.\r\n\r\n\t\t\t\tif (from == null && to == null) {\r\n\t\t\t\t\tobj.hmConnectedNodesObj.put(edge.get(x).getNodeFrom().getIndex(), edge.get(x).getNodeFrom());\r\n\t\t\t\t\tobj.hmConnectedNodesObj.put(edge.get(x).getNodeTo().getIndex(), edge.get(x).getNodeTo());\r\n\t\t\t\t\thshMConnectedNodes.add(obj);\r\n\t\t\t\t}\r\n\t\t\t\t// If only one of them have connection, combine and merge it.\r\n\t\t\t\telse if (from == null)\r\n\t\t\t\t\tto.hmConnectedNodesObj.put(edge.get(x).getNodeFrom().getIndex(), edge.get(x).getNodeFrom());\r\n\t\t\t\telse\r\n\t\t\t\t\tfrom.hmConnectedNodesObj.put(edge.get(x).getNodeTo().getIndex(), edge.get(x).getNodeTo());\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * If both nodes have connection, check for a loop by calling isLoop function.\r\n\t\t\t */\r\n\t\t\telse {\r\n\t\t\t\t// check if there is a loop in the current node\r\n\t\t\t\tfor (int counter = 0; counter < hshMConnectedNodes.size(); counter++) {\r\n\t\t\t\t\tif (hshMConnectedNodes.get(counter).searchNode(edge.get(x).getNodeTo()))\r\n\t\t\t\t\t\ttoSet = hshMConnectedNodes.get(counter);\r\n\t\t\t\t}\r\n\t\t\t\tif (toSet.hmConnectedNodesObj.containsValue(edge.get(x).getNodeFrom())) {\r\n\t\t\t\t\tloop = true;\r\n\t\t\t\t} else\r\n\t\t\t\t\tloop = false;\r\n\t\t\t\t\r\n\t\t\t\t// if no calls addConnectedEdge method and add to arryConnectedEdges for both of\r\n\t\t\t\t// the nodes\r\n\t\t\t\tif (loop == false) {\r\n\t\t\t\t\taddConnectedEdge();\r\n\t\t\t\t\tfor (int counter = 0; counter < hshMConnectedNodes.size(); counter++) {\r\n\t\t\t\t\t\tif (hshMConnectedNodes.get(counter).searchNode(edge.get(x).getNodeFrom()))\r\n\t\t\t\t\t\t\tfrom = hshMConnectedNodes.get(counter);\r\n\t\t\t\t\t\tif (hshMConnectedNodes.get(counter).searchNode(edge.get(x).getNodeTo()))\r\n\t\t\t\t\t\t\tto = hshMConnectedNodes.get(counter);\r\n\t\t\t\t\t\t;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tobj.hmConnectedNodesObj.putAll(to.hmConnectedNodesObj);\r\n\t\t\t\t\tobj.hmConnectedNodesObj.putAll(from.hmConnectedNodesObj);\r\n\t\t\t\t\thshMConnectedNodes.remove(to);\r\n\t\t\t\t\thshMConnectedNodes.remove(from);\r\n\t\t\t\t\thshMConnectedNodes.add(obj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tedge.remove(x);\r\n\t\t}\r\n\t}", "private void processStart() {\n // broadcast HELLO to every neighbors\n for(int i = 0; i < this.nextAvailPort; i++) {\n if(this.ports[i].getRemoteRouterDesc() == null) {\n continue;\n }\n\n SOSPFPacket helloPak = SOSPFPacket.createHelloPak(this.routerDesc, this.ports[i].getRemoteRouterDesc());\n this.ports[i].send(helloPak);\n\n this.ports[i].initializeHeartbeat();\n }\n }", "@Override\n\tpublic void directSend(String exchange, String routeKey, Object data) {\n\n\t}", "void transit();", "public static void main(String[] args) {\n\t\tint grid[][] = new int[][]\n\t\t\t { \n\t\t\t { 1, 1, 0, 0, 0, 0, 1, 0, 0, 0 }, \n\t\t\t { 0, 1, 0, 1, 0, 0, 0, 1, 0, 0 }, \n\t\t\t { 0, 0, 0, 1, 0, 0, 1, 0, 1, 0 }, \n\t\t\t { 1, 1, 1, 1, 0, 1, 1, 1, 1, 0 }, \n\t\t\t { 0, 0, 0, 1, 0, 0, 0, 1, 0, 1 }, \n\t\t\t { 0, 1, 0, 0, 0, 0, 1, 0, 1, 1 }, \n\t\t\t { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }, \n\t\t\t { 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 }, \n\t\t\t { 0, 0, 1, 1, 1, 1, 0, 1, 1, 0 } \n\t\t\t };\n\t\t\n // Step 1: Obtain an instance of GridBasedTrafficControl.\n Configurator cfg = new DefaultConfigurator();\n GridBasedTrafficControl gbtc = cfg.getGridBasedTrafficControl(grid);\n\t\t\n\t // Step 2: Obtain path for Journey-1.\n\t Point source1 = new Point(0, 0);\n\t Point dest1 = new Point(3,4);\t \n\t String vehicleId1 = formVehicleId(source1);\n\t List<Point> path1 = gbtc.allocateRoute(vehicleId1, source1, dest1);\n\t System.out.println(\"Route for Journey-1:\" + path1);\n\t \n\t // Step 3: Obtain path for Journey-2.\n\t // This call will not return a route as the available route conflicts with the route\n\t // allocated for Journey-1.\n\t Point source2 = new Point(3, 0);\n\t Point dest2 = new Point(2,4);\n\t String vehicleId2 = formVehicleId(source2);\n\t List<Point> path2 = gbtc.allocateRoute(vehicleId2, source2, dest2);\n\t System.out.println(\"Route for Journey-2:\" + path2);\n\t \n\t // Step 4: Start Journey-1 and mark Journey-1 as complete.\n\t GridConnectedVehicle vehicle1 = new GridConnectedVehicle(vehicleId1, gbtc);\n\t vehicle1.selfDrive(path1);\n\t gbtc.markJourneyComplete(vehicleId1, source1, dest1);\n\t \n\t // Step 5: Retry call to obtain path for Journey-2.\n\t // This call should return a valid path as Journey-1 was marked as complete.\n\t path2 = gbtc.allocateRoute(formVehicleId(source2), source2, dest2);\n\t System.out.println(\"Route for Journey-2:\" + path2);\n\t \n\t // Step 6: Start Journey-2 and mark Journey-2 as complete.\n\t GridConnectedVehicle vehicle2 = new GridConnectedVehicle(vehicleId2, gbtc);\n\t vehicle2.selfDrive(path2);\n\t gbtc.markJourneyComplete(vehicleId2, source2, dest2);\n\t}", "public HashMap<RoutingTableKey, RoutingTableInfo> getRoutingEntries() {\r\n synchronized (lockRoutingTable) {\r\n return routingEntries;\r\n }\r\n }" ]
[ "0.6940367", "0.68384385", "0.6433735", "0.6188536", "0.6182862", "0.60880375", "0.60843223", "0.60729414", "0.6071959", "0.59537154", "0.5948067", "0.59183395", "0.5912761", "0.58617955", "0.58247656", "0.5788267", "0.57826084", "0.5762599", "0.5761503", "0.5742198", "0.57129765", "0.5688963", "0.56819737", "0.5652841", "0.56474125", "0.562633", "0.5616924", "0.56100225", "0.5568825", "0.55532235", "0.55464303", "0.55457735", "0.5543734", "0.5542089", "0.5538735", "0.5537098", "0.55286056", "0.55286056", "0.55080223", "0.5507161", "0.5504739", "0.5491472", "0.5458563", "0.54569054", "0.5456286", "0.5448298", "0.54398984", "0.54299694", "0.5427913", "0.5409067", "0.5406402", "0.5405683", "0.5404098", "0.53799003", "0.53602856", "0.53567165", "0.5342665", "0.5342096", "0.5341262", "0.53285176", "0.5327084", "0.53226197", "0.5300315", "0.5287746", "0.5285689", "0.527217", "0.52705526", "0.5267151", "0.5265811", "0.52583545", "0.52558", "0.52538896", "0.5252492", "0.523992", "0.52311295", "0.52287346", "0.52268976", "0.5226776", "0.52189183", "0.521471", "0.5213379", "0.52093625", "0.5200627", "0.5191367", "0.5189979", "0.5182298", "0.51820064", "0.5179231", "0.51751566", "0.51749235", "0.51726663", "0.51676375", "0.5165278", "0.51648194", "0.51592505", "0.5150058", "0.51389873", "0.513237", "0.5129975", "0.51213086", "0.5120611" ]
0.0
-1
/ Apply the algorithm for a specific number of iterations
public void iterate(HashMap<String, Node> nodes, int iterations, boolean trace, ArrayList<Node> nodesSet) { for (int i = 1; i <= iterations; i++) { for (Node n : nodes.values()) { ArrayList<Node> neighbours = n.getNeighbours(); for (Node node : neighbours) { this.exchangeDistances(n, node, true, false); } } // print details for a custom node set if tracing is on if (trace && nodesSet != null) { for (Node node : nodesSet) { System.out.println("Node " + node.getName() + " at iteration " + i + ": "); node.printRoutingTable(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getIterations();", "void iterate( int numberOfDocs, int maxIterations ) {\r\n double[] x = new double[numberOfDocs];\r\n double[] xPrime = new double[numberOfDocs]; xPrime[0] = 1;\r\n int numIteration = 0;\r\n while (!diffLessThanEpsilon(x, xPrime) && numIteration < maxIterations) {\r\n numIteration++;\r\n x = xPrime;\r\n xPrime = multiplyWithTransition(x);\r\n }\r\n printPageRanks(xPrime);\r\n }", "@Override\n\tpublic int getIterationsNumber() {\n\t\treturn 0;\n\t}", "public void setIterations(int iter) {\n\t\tnumIterations = iter;\n\t}", "protected void runAfterIterations() {}", "@Override\n public Builder iterations(int iterations) {\n super.iterations(iterations);\n return this;\n }", "public void setIterations(int iterations) {\r\n\t\tthis.iterations = iterations;\r\n\t}", "public void runAlgorithm()\n\t{\n\t\tboolean done = false;\n while (!done)\n {\n switch (step)\n {\n case 1:\n step=stepOne(step);\n break;\n case 2:\n step=stepTwo(step);\n break;\n case 3:\n step=stepThree(step);\n break;\n case 4:\n step=stepFour(step);\n break;\n case 5:\n step=stepFive(step);\n break;\n case 6:\n step=stepSix(step);\n break;\n case 7:\n stepSeven(step);\n done = true;\n break;\n }\n }\n\t}", "public int getIteration();", "@Override\n\tpublic void run() {\n\t\tresult =\n\t\t\tStream.iterate(new int[]{0, 1}, s -> new int[]{s[1], s[0] + s[1]})\n\t\t\t\t.limit(limit)\n\t\t\t\t.map(n -> n[0])\n\t\t\t\t.collect(toList());\n\n\t}", "public native void setIterations(int iterations) throws MagickException;", "public void run() {\n for (int i = start; i <= end; i++) {\n //reset output variable\n output = 1;\n array[i] = computeFactorial(array[i]);\n }\n }", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "void iterate( int numberOfDocs, int maxIterations ) {\n\n\tdouble[] prev_a = new double[numberOfDocs];\n\tArrays.fill(prev_a, 1.0 / numberOfDocs);\n\t\n\tthis.ranks = new double[numberOfDocs];\n\tthis.ranks[0] = 1;\n\t\n\tboolean converged = false;\n\tint iterations = 0;\n\tdouble sum = 0;\n\tdouble error = 0;\n\t\n\twhile( !converged && iterations++ < maxIterations ) {\n\t\t\n\t\tif(iterations%1000==0) {\n\t\t\t//System.err.println(Integer.toString(iterations) + \"\\t iterations...\");\n\t\t\t//System.err.println(Double.toString(error) + \"\\t error.\");\n\t\t}\n\t\t\n\t\tdouble[] a = new double[numberOfDocs];\n\t\tArrays.fill(a, BORED / numberOfDocs);\n\t\t\n\t\tlink.entrySet().forEach(entry -> {\n\t entry.getValue().keySet().forEach(outLink -> {\n\t a[outLink] += ranks[entry.getKey()] * (1.0 - BORED) / out[entry.getKey()];\n\t });\n\t });\n\t\t\n\t\t/**\n\t\t// Distribution normalization\n\t\tdouble error = 0;\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\terror += a[i];\n\t\t}\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\ta[i] += a[i]/error;\n\t\t}\n\t\t*/\n\t\t\n\t\t\n\t\t\n\t\t// Epsilon threshold checking\n\t\terror = 0;\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\terror += Math.abs(a[i] - ranks[i]);\n\t\t}\n\t\t\n\t\tthis.ranks = a;\n\t\t\n\t\tif(error < EPSILON) {\n\t\t\t//System.err.println(\"Power iteration converged at iteration \" + Integer.toString(iterations));\n\t\t\tsum = Arrays.stream(a).sum(); //poner a embede ranks?\n\t for (int i = 0; i < ranks.length; i++) {\n\t ranks[i] = this.ranks[i]/sum;\n\t }\n\t\t\tconverged = true;\n\t\t}\n\t\t\n\t}\n }", "protected void runTest(int iterations) {\n\t\tsteps = 0;\n\t\trunBeforeIterations();\n\t\tfor (iteration = 0; iteration < iterations; iteration++) {\n\t\t\trunBeforeIteration();\n\t\t\tstep = 0;\n\t\t\twhile (hasNextStep()) {\n\t\t\t\trunBeforeStep();\n\t\t\t\tresult = runStep();\n\t\t\t\trunAfterStep();\n\t\t\t\tstep++;\n\t\t\t\tsteps++;\n\t\t\t}\n\t\t\trunAfterIteration();\n\t\t}\n\t\trunAfterIterations();\n\t}", "public static void main(String[] args){\n\t\t\n\t\tfor (int i = 0; i<999999;i++) results.add(0);\t\n\n\t\tsetChain(1L);\n\t\tboolean switcher = true;\n\t\t//while switch=true ... and once chain length is added to, switch = false\n \t\tlong best = 0L;\n\t\tint index=0;\n\t\t\t\n\t\tfor (long j = 1L; j < 1000000L; j++) {\n\n\t\t\tsetCur((int)j);\n\n\t\t\tfindChain(j);//} catch(Exception e){System.out.println(\"stackOverFlow :D\");}\n\t\t\tif (getChain() > best) {best = getChain(); index=getCur();}\n\t\t\t//now store results for later use if we come across that number.\n\t\t\tresults.set(getCur()-1, (int)getChain());\t\n\t\t\tsetChain(1L); //reset\n\t\t\t/* \t\n\t\t\tswitcher=true;\n\t\t\tint i = j;\n\t\t\twhile (switcher) {\n\n\t\t\t\tif (i==1) {//results.add(chainLength); \n\t\t\t\t\tif (chainLength > best) { best=chainLength; index = j;}\n\t\t\t \tchainLength=1; switcher=false;}\n\t\n\t\t\t\telse { i=recurse(i); chainLength++; }\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n//\t\t }\n\t\t}\n\t\tSystem.out.println(index);\n\t}", "public Builder<V, E> setIterations(int iterations) {\n this.iterations = iterations;\n return this;\n }", "public void doAll() {\n for (int i = 0; i < Integer.MAX_VALUE; i++) {\n sum += sumLoop(sumLoopArray);\n sum += sumIfEvenLoop(sumLoopArray);\n sum += sumIfPredicate(sumLoopArray);\n sum += sumShifted(3, 0x7f, sumLoopArray);\n addXtoArray(i, addXArray);\n sum += sumLoop(addXArray);\n addArraysIfEven(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n addArraysIfPredicate(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n sum += sumLoop(addArraysIfEvenArrayA);\n }\n }", "private static void eval5(){\n for(int i = 0; i < 46; i++){\n for(int j = i + 1; j < 47; j++){\n for(int k = j + 1; k < 48; k++){\n for(int l = k + 1; l < 49; l++){\n for(int m = l + 1; m < 50; m++){\n Evaluator.evaluate(i, j, k, l, m);\n }\n }\n }\n }\n }\n }", "public static void main(String[] args) {\n int n = 7;\n int k = 4;\n\n iterativeCombinationAlgorithm(n, k);\n }", "int getServerWorkIterations();", "int getMaximalIterationCount();", "public void nextIteration() {t++;}", "int getServerProcessingIterations();", "public void nextIteration()\n {\n actuelIteration++;\n }", "private void runExperiments()\n {\n for (int i = 0; i < count; i++)\n {\n Percolation experiment = new Percolation(size);\n int openCount = 0;\n StdRandom.setSeed(System.currentTimeMillis());\n while (!experiment.percolates())\n {\n int x = StdRandom.uniform(1, size+1);\n int y = StdRandom.uniform(1, size+1);\n if (!experiment.isOpen(x, y))\n {\n experiment.open(x, y);\n openCount++;\n }\n } \n open[i] = (double) openCount / (size * size);\n }\n }", "public void iterate() {\n\n\t\tArrayList<int[]> pts = new ArrayList<int[]>();\n\t\tfor (int i = 0; i < POINTS_PER_ITER; i++) {\n\t\t\tint x = Window.mathRandom.nextInt(width);\n\t\t\tint y = Window.mathRandom.nextInt(width);\n\t\t\tpts.add(new int[] { x, y });\n\t\t}\n\n\t\tint[] bestPoint = new int[] {};\n\t\tdouble maxDist = 0;\n\t\tfor (int[] point : pts) {\n\t\t\tdouble dist = getDistFromOthers(point);\n\t\t\tif (dist > maxDist) {\n\t\t\t\tmaxDist = dist;\n\t\t\t\tbestPoint = point;\n\t\t\t}\n\t\t}\n\t\tif (check(bestPoint)) {\n\t\t\tpoints.add(bestPoint);\n\t\t} else {\n\t\t\tremainingPoints += 1;\n\t\t}\n\t}", "public native int getIterations() throws MagickException;", "protected void runBeforeIterations() {}", "@Override\n protected void runOneIteration() throws Exception {\n }", "private static TaskResult task4(int iterations) {\n\n System.out.println(\"\\n\\nTASK 4:\");\n System.out.printf(\"Generating a graph using HillClimbing algorithm \" +\n \"with %s iterations...\\n\", iterations);\n int[] puzzleSizes = new int[]{5, 7, 9, 11};\n int ITERATIONS = iterations;\n Solution solutions[][] = new Solution[puzzleSizes.length][ITERATIONS];\n double times_ms[][] = new double[puzzleSizes.length][ITERATIONS];\n int maxK = 0;\n Graph maxGraph = null;\n for (int i = 0; i < puzzleSizes.length; i++) { // for each puzzle size\n maxK = 0;\n maxGraph = null;\n for (int j = 0; j < ITERATIONS; j++) {\n Graph graph = new Graph(puzzleSizes[i]);\n graph.populateGraph();\n graph.populateNeighbors();\n graph.setDistances();\n Solution solution = Algorithms.BFS(graph);\n Result hillResult = Algorithms.HillClimbing(graph, solution, j);\n solution = hillResult.getSolution();\n double time_ms = hillResult.getComputationTime_ms();\n if (solution.getK() > maxK){\n maxK = solution.getK();\n maxGraph = new Graph(graph);\n }\n solutions[i][j] = solution;\n times_ms[i][j] = time_ms;\n }\n }\n System.out.printf(\"Hill Climbing Algorithm Complete!\\n\\n\");\n TaskResult result = new TaskResult(solutions, times_ms, maxK, maxGraph);\n return result;\n }", "private int determineNumberOfIterations()\r\n\t{\r\n\t\tint number = 0;\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_E.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_A.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\treturn number * 2; // *2 is to account for the reversed branch iterations\r\n\t}", "public void run() {\n long millis;\n TestCaseImpl tc = _testCase;\n \n // Force GC and record current memory usage\n _memoryBean.gc();\n _heapBytes = _memoryBean.getHeapMemoryUsage().getUsed();\n \n // Get number of threads to adjust iterations\n int nOfThreads = tc.getIntParam(Constants.NUMBER_OF_THREADS);\n \n int runIterations = 0;\n String runTime = tc.getParam(Constants.RUN_TIME);\n if (runTime != null) {\n // Calculate end time\n long startTime = Util.currentTimeMillis();\n long endTime = startTime + Util.parseDuration(runTime);\n \n // Run phase\n do {\n run(tc); // Call run\n runIterations++;\n millis = Util.currentTimeMillis();\n } while (endTime >= millis);\n }\n else {\n // Adjust runIterations based on number of threads\n runIterations = tc.getIntParam(Constants.RUN_ITERATIONS) / nOfThreads;\n \n // Run phase\n for (int i = 0; i < runIterations; i++) {\n run(tc); // Call run\n }\n }\n \n // Accumulate actual number of iterations\n synchronized (tc) {\n int actualRunIterations = \n tc.hasParam(Constants.ACTUAL_RUN_ITERATIONS) ? \n tc.getIntParam(Constants.ACTUAL_RUN_ITERATIONS) : 0;\n tc.setIntParam(Constants.ACTUAL_RUN_ITERATIONS, \n actualRunIterations + runIterations);\n }\n }", "public void setIterations(int iterations) {\n\t\tthis.m_iterations = iterations;\n\t}", "public void updateModuleOneIteration (final double timestep);", "private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }", "void calculatePR( int iteration){\n\t\t\n\t\ttotal_nodes = inlinks.size();\n\t\tfor(String page : inlinks.keySet()){\n\t\t\tPageRank.put(page, (1/(double)(total_nodes)));\n\t\t\tinit_PageRank.put(page, (1/(double)(total_nodes)));\n\t\t}\n \n double ppx = 0.0;\n boolean cond = true;\n int itr =1;\n // while(iteration >0){ //Used for Graph page rank calculation; c\n while(cond){ \n \tSystem.out.println(\"Iteration\"+itr); \n double sinkPR = 0;\n for(String s: sink){\n \tsinkPR = sinkPR + (PageRank.get(s)); //calculate total sink PR\n }\n \n double entropy = 0.0;\n \n for(String s: PageRank.keySet()){\n \tdouble newPR;\n \tnewPR = (1.0 -d)/total_nodes;\n \tnewPR = newPR + (d*sinkPR)/total_nodes;\n \tSet<String> in = inlinks.get(s); //pages pointing to P\n \tif(in != null){\n \t\tfor(String s1 : in){\n \t\t\tnewPR = newPR + d* (PageRank.get(s1)/outlinks_count.get(s1)); \t\t \n \t\t}\n \t} \n \t\tnew_PageRank.put(s, newPR);\n \t\tentropy = entropy + (newPR*(Math.log(newPR)/Math.log(2))); //entroPy calculation\n \t}\n \n PageRank.putAll(new_PageRank);\n ppx = Math.pow(2,-1*entropy);\n System.out.println(\"perplexity : \"+ ppx);\n ppx_list.add(ppx);\n if(ppx_list.size()>5) \n \tcond= !check(4);\n \n itr++;\n \t\n //\t iteration --; //Used for page Rank Calculation of Graph\n } \n\t}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "private static void Run() {\n\t\tfor (int i = 0; i < Width; i++) {\n\t\t\tfor (int j = 0; j < Height; j++) {\n\t\t\t\tUpdate(CountNeighbors(i, j), i, j);\n\t\t\t}\n\t\t}\n\t}", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void calculate() throws InterruptedException {\n\tfor (int i = 1; i <= 100; i++) {\n\t Thread.sleep(100);\n\t update(i);\n\t}\n }", "@Override\n\tpublic Integer call() {\n\t\tint count = ThreadLocalRandom.current().nextInt(1, 11);\n\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tSystem.out.println(\"Running...\" + i);\n\t\t}\n\n\t\treturn count;\n\t}", "public static void reduceByOneUsingLoop(int j) {\n long now = System.currentTimeMillis();\n if (j >= 0) {\n\n int count = 0;\n while (count < j) {\n count += 1;\n System.out.println(\"Completed call \" + count + \" using loop\");\n }\n\n System.out.println(\"Loop is completed in millisec \" + (System.currentTimeMillis() - now));\n\n }\n }", "public final static void main(String[] args) {\n\t\tfinal int n = 8;\n\t\tfinal int k = 4;\n\n\t\tStreamSupport.stream(\n\t\t\t\tnew PermutationSpliterator(Selection.of(n, k)),\n\t\t\t\tfalse)\n\t\t\t\t.forEachOrdered(a -> {});\n\n\t\tfor (int cur = 0; cur < 70; cur++) {\n\t\t\tlong tCur = cur;\n\t\t\tfinal int x = (n - k)+1;\n\t\t\tint i = k;\n\t\t\tfinal int[] array = new int[k];\n\t\t\twhile (i >= 1) {\n\t\t\t\tarray[i-1] = (int) (tCur % x);\n\t\t\t\ttCur /= i--;\n\t\t\t}\n\t\t}\n\t}", "int getNumIterations(int precision);", "public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }", "public void iterate()\n\t{\n\t\tfor (int p = 0; p < parasites.length; p++)\n\t\t\tpFitnesses[p][1] = 0;\n\t\t\n\t\ttry\n\t\t{\t// calculate fitnesses against other population\n\t\t\texecutor.invokeAll(tasks);\n\t\t\t// calculate fitness against hall of fame individuals\n\t\t\texecutor.invokeAll(hofTasks);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something bad happened...\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\n\t\tArrays.sort(hFitnesses,new ArrayComparator(1,false));\n\t\tArrays.sort(pFitnesses,new ArrayComparator(1,false));\n\t\t\n\t\tint bestIndex = (int)pFitnesses[0][0];\n\t\tint size = parHOF.length;\n\t\t\n\t\tparHOF[generations%size]=new NeuralPlayer(-1,\"HOF P\",(BasicNetwork)parasites[(int)bestIndex].net.clone());\n\t\tbestIndex = (int)hFitnesses[0][0];\n\t\thostHOF[generations%size]=new NeuralPlayer(1,\"HOF H\",(BasicNetwork)hosts[(int)bestIndex].net.clone());\n\t\t\n\t\tint matePopIndex = (int)(matingPer*popSize)+1;\n\t\tRandom indexG = new Random();\n\t\t// allow top percentage to breed and replace bottom 2*percentage\n\t\t// leave everyone else alone\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = hosts[(int)hFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = hosts[(int)hFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = hosts[(int)hFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = parasites[(int)pFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = parasites[(int)pFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = parasites[(int)pFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t// mutate everyone except top percentage (matingPer)\n\t\tfor (int i = 0; i < popSize*3*matingPer; i++)\n\t\t{\n\t\t\tmutate(parasites[(int)pFitnesses[popSize - 1 - i][0]]);\n\t\t\tmutate(hosts[(int)hFitnesses[popSize - 1 - i][0]]);\n\t\t}\n\t\t\n\t\tgenerations+=1;\n\t\t// every now and then reseed the population with a good individual\n\t\tif (generations%50 == 0)\n\t\t{\n\t\t\thosts[indexG.nextInt(hosts.length)].net = (BasicNetwork)allTimeBestHost.net.clone();\n\t\t\tparasites[indexG.nextInt(parasites.length)].net = (BasicNetwork)allTimeBestPara.net.clone();\n\t\t}\n\t\t\t\n\t}", "public abstract void runAlgorithm();", "public void run() throws Exception {\r\n long start_time;\r\n // Make sure everything is ready\r\n checkIfReady();\r\n\r\n while (CurrentIteration < MaxIteration) {\r\n System.out.println(\"\\tWorking on iteration \" + (CurrentIteration + 1)\r\n + \" out of \" + MaxIteration);\r\n\r\n // Check to see whether we need to add more candidates\r\n if (Candidates.size() <= CurrentIteration) {\r\n start_time = System.currentTimeMillis();\r\n if (PrintStatus) {\r\n System.out.print(\"\\nGenerating list of new candidates...\");\r\n }\r\n // If needed, train the optimization algorithm\r\n if (ObjectiveFunction instanceof MultiObjectiveEntryRanker) {\r\n MultiObjectiveEntryRanker Ptr = (MultiObjectiveEntryRanker) ObjectiveFunction;\r\n Ptr.train((MultiPropertyDataset) getFullDataset(CurrentIteration));\r\n }\r\n \r\n Dataset new_entries = getNewCandidates();\r\n if (Candidates.size() != currentIteration()) {\r\n throw new Exception(\"Candidates array incorrect size. Ensure getNewCandidates did not edit it.\");\r\n }\r\n Candidates.add(new_entries);\r\n Oracle.importDataset(new_entries);\r\n if (PrintStatus) {\r\n System.out.println(\"Done.\");\r\n UtilityOperations.printRunTime(start_time);\r\n }\r\n }\r\n\r\n // Evaluate all the new candidates using the oracle\r\n start_time = System.currentTimeMillis();\r\n if (PrintStatus) {\r\n System.out.print(\"\\nEvaluating new candidates...\");\r\n }\r\n Oracle.evaluateEntries();\r\n if (PrintStatus) {\r\n System.out.println(\"Done.\");\r\n UtilityOperations.printRunTime(start_time);\r\n }\r\n\r\n // If all entries have been calculated, add them to Candidates and continue\r\n if (Oracle.isComplete()) {\r\n if (PrintStatus) {\r\n System.out.println(\"Oracle has finished calculating.\");\r\n }\r\n Dataset new_entries = Oracle.extractDataset();\r\n Candidates.set(CurrentIteration, new_entries);\r\n CurrentIteration++;\r\n } else {\r\n // If not, return\r\n if (PrintStatus) {\r\n System.out.println(\"Oracle did not finish calculating. Check back later.\");\r\n }\r\n return;\r\n }\r\n }\r\n }", "public int getIterationLimit() {return iterationLimit;}", "public void RunAlgo(int i,Set<Session> s, ArrayList<Set<Session>> courses){\n System.out.println(i);\n if(i==courses.size()) {\n Set<Session> temp= copySet(s);\n if(allCombinations.size()>maxSize) flag=false;\n allCombinations.add(temp);\n System.out.println(allCombinations.size());\n return;\n }\n Set<Session> current = courses.get(i);\n for (Session x : current) {\n if (isGoodMatch(x, s)) {\n s.add(x);\n if(flag)\n RunAlgo(i + 1, s, courses);\n s.remove(x);\n }\n }\n\n }", "public void runAlgorithm() {\r\n if (srcImage == null) {\r\n MipavUtil.displayError(\"AlgorithmRegularizedIsotropicDiffusion.run() Source Image is null\");\r\n return;\r\n }\r\n\r\n if (srcImage.getNDims() == 2 || do25D) {\r\n timeStep = 0.2f;\r\n }\r\n else {\r\n timeStep = 0.15f;\r\n }\r\n\r\n if (srcImage.isColorImage()) {\r\n if (srcImage.getNDims() == 2) {run2DC(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2DC(srcImage.getExtents()[2]); }\r\n else run3DC();\r\n }\r\n else {\r\n if (srcImage.getNDims() == 2) { run2D(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2D(srcImage.getExtents()[2]); }\r\n else run3D();\r\n }\r\n }", "public void run(int numberOfSteps) {\n\t\tgenerateCells();\n\t\tfor(int i = 0; i < numberOfSteps; i++) {\n\t\t\tprogressCells();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint maxRepeats = 0, number = -1;\n\t\tfor(int i = 1; i < 1000; i++) {\n\t\t\tif(!willTerminate(i)) {\n\t\t\t\tList<Integer> remainders = new ArrayList<Integer>();\n\t\t\t\tint repeats = numberOfRepeats(i, remainders);\n\t\t\t\tif(repeats > maxRepeats) {\n\t\t\t\t\tmaxRepeats = repeats;\n\t\t\t\t\tnumber = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(number);\n\t}", "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 void cycle() {\r\n processTask(); // tune relative frequency?\r\n processConcept(); // use this order to check the new result\r\n }", "protected abstract void calculateNextFactor();", "protected AbstractTest(int iterations) {\n\t\tthis.iterations = iterations;\n\t}", "public void run() {\n // Print runner description\n System.out.println(this.description);\n \n // Create a list of integers\n List <Integer> myList = makeList(30000);\n \n // Record starting time, for benchmarking\n long startTime = System.currentTimeMillis();\n \n // Execute 1000 solve syscles, to accumlate some time\n int result = 0;\n for (int i = 1; i <= 1000; i++) {\n result = runOnce(myList);\n }\n // Record ending time \n long endTime = System.currentTimeMillis();\n \n // Show the result and the execution time \n System.out.format(\"The result is %d.\\n\", result);\n System.out.println(\"Total execution time: \" + \n (endTime-startTime) + \"ms\\n\");\n }", "public void alternateFunction()\n\t{\n\t\tstart();\n\t\trunAlgorithm();\n\t}", "@Override\n\t\tprotected void compute() {\n\t\t\tif (end - start < workSize) {\n\t\t\t\tresultsQueue.offer(new Results(start, end, findPrimes(start, end)));\n\t\t\t} else {\n\t\t\t\t// Divide into two pieces\n\t\t\t\tint mid = (start + end) / 2;\n\n\t\t\t\tinvokeAll(new FindPrimes(start, mid), new FindPrimes(mid + 1, end));\n\t\t\t}\n\t\t}", "@Override\n public DRFLPSolution algorithm(DRFLPInstance instance) {\n try {\n List<Future<DRFLPSolution>> futures = new ArrayList<>();\n RandomManager.reinitialize(RandomType.LEGACY, 0, this.n);\n for (int i = 0; i < n; i++) {\n int _i = i;\n futures.add(executor.submit(() -> {\n RandomManager.reset(_i);\n return alg.algorithm(instance);\n }));\n }\n var results = ConcurrencyUtil.awaitAll(futures);\n DRFLPSolution best = null;\n for(var solution: results){\n if(solution.isBetterThan(best)){\n best = solution;\n }\n }\n return best;\n } finally {\n executor.shutdown();\n }\n }", "public void run() {\n // solve();\n faster();\n }", "private static int runBenchmark(int n) {\n int result = 0;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n result = benchmarkedMethod();\n }\n }\n return result;\n }", "private static void eval7(){\n int z = 0;\n for(int i = 0; i < 46; i++){\n for(int j = i + 1; j < 47; j++){\n for(int k = j + 1; k < 48; k++){\n for(int l = k + 1; l < 49; l++){\n for(int m = l + 1; m < 50; m++){\n for(int n = m + 1; n < 51; n++){\n for(int o = n + 1; o < 52; o++){\n Evaluator.evaluate(i, j, k, l, m, n, o);\n }\n }\n }\n }\n }\n }\n }\n }", "protected void evolve()\n\t\t{\tif(this_gen < NUMBER_GENERATIONS) {\n\t\t\t\t// Create a new generation.\n\t\t\t\tfloat avg_fit=Float.MIN_VALUE, max_fit=Float.MIN_VALUE, sum_fit=0;\n\t\t\t\tfloat tot_wait=0, avg_wait=0, tot_move=0, avg_move=0;\n\n\t\t\t\tfor(int i=0;i<NUMBER_INDIVIDUALS;i++) {\n\t\t\t\t\tfloat fit = calcFitness(inds[i]);\n\t\t\t\t\tinds[i].setFitness(fit);\n\t\t\t\t\tsum_fit\t += fit;\n\t\t\t\t\tmax_fit = fit>max_fit ? fit : max_fit;\n\t\t\t\t\ttot_wait += inds[i].getWait();\n\t\t\t\t\ttot_move += inds[i].getMove();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tavg_wait = tot_wait/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_move = tot_move/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_fit = sum_fit/NUMBER_INDIVIDUALS;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Stats of prev. gen: (a-wait,a-move)=(\"+avg_wait+\",\"+avg_move+\")\"+\" (a-fit,mx-fit)=(\"+avg_fit+\",\"+max_fit+\")\");\n\t\t\t\tSystem.out.println(\"Evolving...\");\n\t\t\t\t\n\t\t\t\t// Sorts the current Individual-array on fitness, descending\n\t\t\t\tinds = sortIndsArr(inds);\n\t\t\t\t\n\t\t\t\tint num_mating = (int) Math.floor(NUMBER_INDIVIDUALS*(1-ELITISM_FACTOR));\n\t\t\t\tint num_elitism = (int) Math.ceil(NUMBER_INDIVIDUALS*ELITISM_FACTOR);\n\t\t\t\tif(num_mating%2!=0) {\n\t\t\t\t\tnum_mating--;\n\t\t\t\t\tnum_elitism++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIndividual[] newInds = new Individual[NUMBER_INDIVIDUALS];\n\t\t\t\t\n\t\t\t\t// Tournament selection\n\t\t\t\tfor(int i=0;i<num_mating;i+=2) {\n\t\t\t\t\tIndividual mamma=null, pappa=null;\n\t\t\t\t\tfloat chn_mum = random.nextFloat();\n\t\t\t\t\tfloat chn_pap = random.nextFloat();\n\t\t\t\t\tfloat fit_mum, sum_fit2=0, sum_fit3=0;\n\t\t\t\t\tint index_mum = -1;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tsum_fit2 += (inds[j].getFitness()/sum_fit);\n\t\t\t\t\t\tif(chn_mum <= sum_fit2) {\n\t\t\t\t\t\t\tmamma = inds[j];\n\t\t\t\t\t\t\tindex_mum = j;\n\t\t\t\t\t\t\tfit_mum = mamma.getFitness();\n\t\t\t\t\t\t\tsum_fit2 = sum_fit-fit_mum;\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\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tif(j!=index_mum) {\n\t\t\t\t\t\t\tsum_fit3 += (inds[j].getFitness()/sum_fit2);\n\t\t\t\t\t\t\tif(chn_pap <= sum_fit3) {\n\t\t\t\t\t\t\t\tpappa = inds[j];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Mating...: \"+mamma.getFitness()+\",\"+pappa.getFitness());\n\t\t\t\t\tIndividual[] kids = mate(mamma, pappa);\n\t\t\t\t\tnewInds[i]\t= kids[0];\n\t\t\t\t\tnewInds[i+1]= kids[1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Elitism\n\t\t\t\tfor(int i=0;i<num_elitism;i++) {\n\t\t\t\t\tnewInds[i+num_mating] = inds[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinds = newInds;\t\t\t\t\t\t\t\t\n\t\t\t\tthis_gen++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Done with evolving\");\n\t\t\t\t// set the best individual as the ruling champ?\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "@Override\n\tpublic int getMaxIterations() {\n\t\treturn maxIterations;\n\t}", "public void runOneIteration() {\n\t\t// Update user latent vectors\n\t\tfor (int u = 0; u < userCount; u++) {\n\t\t\tupdate_user(u);\n\t\t}\n\n\t\t// Update item latent vectors\n\t\tfor (int i = 0; i < itemCount; i++) {\n\t\t\tupdate_item(i);\n\t\t}\n\t}", "@Override\n\tpublic Void call() throws Exception {\n\t\tList<Integer> list=new ArrayList<>(THRESHOLD);\n\t\tfor(int i=0;i<iterations;i++) {\n\t\t\tlist.add(ThreadLocalRandom.current().nextInt());\n\t\t\tif(list.size() == THRESHOLD) {\n\t\t\t\t//To avoid contention at queue level sending data in chunks.\n\t\t\t\tqueue.put(list);\n\t\t\t\tlist = new ArrayList<>(THRESHOLD);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private static long calc1()\n {\n final int min = 1000;\n final int max = 10000;\n\n // initialize\n List<List<Integer>> m = new ArrayList<>();\n for (int k = 0; k < end; k++) {\n List<Integer> list = new ArrayList<Integer>();\n int n = 1;\n while (k >= start) {\n int p = pkn(k, n);\n if (p >= max) {\n break;\n }\n if (p >= min) {\n list.add(p);\n }\n n++;\n }\n m.add(list);\n }\n\n boolean[] arr = new boolean[end];\n arr[start] = true;\n\n List<Integer> solutions = new ArrayList<>();\n List<Integer> list = m.get(start);\n for (Integer first : list) {\n LinkedList<Integer> values = new LinkedList<>();\n values.add(first);\n f(m, arr, values, 1, solutions);\n // we stop at the first solution found\n if (!solutions.isEmpty()) {\n break;\n }\n }\n\n // solutions.stream().forEach(System.out::println);\n int res = solutions.stream().reduce(0, Integer::sum);\n return res;\n }", "@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 }", "private void baseAlgorithm() {\n\t\tlong start = System.nanoTime();\n\t\tinitCentroids();\n\t\tint counter = 0;\n\t\twhile (counter < 1000\n\t\t\t\t&& (lastCentroids == null || !SeriesComparator.equalClustering(lastCentroids, centroids))) {\n\t\t\tresetClusters();\n\t\t\tassignPoints();\n\t\t\tlastCentroids = new ArrayList<Point2D>(centroids);\n\t\t\tcalculateNewMean();\n\t\t\tbasicIterations++;\n\t\t\tcounter++;\n\t\t}\n\t\tconvertToClustering();\n\t\tbasicRuntime = System.nanoTime() - start;\n\t}", "public static void main(String[] args) throws IOException {\n int target = 974;\n ArrayList<Integer> factors = new ArrayList<>();\n\n\n for (int i = 1; i <= target; i++) {\n if (target % i == 0) {\n factors.add(i);\n }\n }\n\n int total = 0;\n for (int factor : factors) {\n total += factor;\n }\n\n\n\n System.out.println(\"Result: \" + total);\n System.out.println(\"Done!\");\n }", "public void nextIterate() {\n\tdd1[0] = POW2_53 * d1;\n\tdd1[1] = 0.0;\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(POW3_33, Math.floor(dd2[0]), dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n\tif (d1 < 0.0) {\n\t d1 += POW3_33;\n\t}\n }", "private void fletcher_loop(){\r\n\t\tfor(; i.getPosition() < array1.getLength(); i.increment(null, duration)){\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(2,3);\r\n\t\t\tshowCalc_1(sum1.get(), array1.getData(i.getPosition()));\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum1.add(array1.getData(i.getPosition())); sum1.mod(255); sum1.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(3,4);\r\n\t\t\tsum1.switchHighlight(); \r\n\t\t\tshowCalc_1(sum2.get(), sum1.get());\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum2.add(sum1.get()); sum2.mod(255); sum2.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsum2.switchHighlight();\r\n\t\t\tsc.toggleHighlight(4,2);\r\n\t\t}\r\n\t}", "@Test\n public void testFactor_4args() {\n System.out.println(\"factor\");\n int[] number = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};\n int[] weighting = {1, 2, 2, 3, 4, 5};\n int start = 4;\n int end = 9;\n AbstractMethod instance = new AbstractMethodImpl();\n int[] expResult = {0, 1, 2, 15, 16, 15, 12, 14, 8, 9};\n int[] result = instance.factor(number, weighting, start, end);\n assertArrayEquals(expResult, result);\n\n\n }", "public final int getIterations() {\n \t\treturn iterations;\n \t}", "int getMinimalIterationCount();", "public void run (){\n\t\tfor (int i =0; i<iterationCount; i++){\n\n\t\t\t//challengeCheck returns 1 if list is Empty and ready to proceed to making a challenge\n\t\t\t//returns 0 if there are still challenges in list. \n\n\t\t\t//while (challengeCheck() == 0){\n\t\t\tif (challengeCheck() == 1){\n\t\t\t\tmakeChallenge();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmLc.iterate() ;\n\t\t\t\t}", "private void advanceAllDrones(Set<Drone> droneSet, float deltaTime, int nbIterations) throws InterruptedException {\n\t\t//first set the time interval for all the drones\n\t\tfor(Drone drone: droneSet){\n\t\t drone.setNbIterations(nbIterations);\n\t\t\tdrone.setDeltaTime(deltaTime);\n\t\t}\n\t\t//get the execution pool\n\t\tExecutorService droneThreads = this.getDroneThreads();\n\t\t//System.out.println(\"used ThreadPool: \" + this.getDroneThreads());\n\t\t//first invoke all the next states\n\t\tList<Future<Void>> unfinishedThreads = droneThreads.invokeAll(droneSet);\n\t\tList<Future<Void>> finishedThreads = new ArrayList<>();\n\t\t//then wait for all the futures to finish\n\t\tboolean allFinished = false;\n\t\t//keeps looping until all drones are advanced to the next state\n\t\twhile(!allFinished){\n\t\t\t//first get the first thread\n\t\t\tFuture<Void> droneFuture = unfinishedThreads.get(0);\n\n\t\t\t//wait until the first thread finishes\n\t\t\ttry {\n\t\t\t\tdroneFuture.get();\n\t\t\t\t//check if there was an exception\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tif(e.getCause() instanceof AngleOfAttackException){\n\t\t\t\t\tSystem.out.println(\"angle of attack exception\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"An error occurred: \" + e.getCause().toString());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//get all the finished elements\n\t\t\tfinishedThreads = unfinishedThreads.stream()\n\t\t\t\t\t.filter(future -> future.isDone())\n\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t//check if any of the finished threads got into trouble\n\t\t\tfor(Future<Void> finishedFuture: finishedThreads){\n\t\t\t\ttry {\n\t\t\t\t\tfinishedFuture.get();\n\t\t\t\t\t//check if there occurred an error\n\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\tif(e.getCause() instanceof AngleOfAttackException){\n\t\t\t\t\t\tthrow (AngleOfAttackException) e.getCause(); //rethrow, info for the main loop\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//filter out all the elements that are finished\n\t\t\tunfinishedThreads = unfinishedThreads.stream()\n\t\t\t\t\t.filter(future -> !future.isDone())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t//check if drone futures is empty ot not\n\t\t\tif(unfinishedThreads.size() == 0){\n\t\t\t\tallFinished = true;\n\t\t\t}\n\t\t}\n\t\t//we may exit, all the drones have been set to state k+1\n\t}", "public void simulate(int numberOfWeeks) {\n setChanged();\n notifyObservers(true);\n\n int finalWeek = weeksElapsed + numberOfWeeks;\n\n for (int i = weeksElapsed + 1; i <= finalWeek; i++) {\n ecosystem.simulateOneWeek(i);\n weeksElapsed++;\n //constructPoolList();\n constructPoolHashMap();\n }\n\n setChanged();\n notifyObservers(false);\n }", "public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}", "int process(int maxBlocks);", "public void trainFromExamples(int noOfIteration, double eenta) throws FileNotFoundException {\n //Use the wordcount to calcualte the weight verctor repetetively\n for (int count = 0; count < noOfIteration; count++) \n {\n for (List<Integer> wordCount : wordCountSpamList) \n {\n //Compute the new weight vector\n calculateNewWeightVector(eenta, true, wordCount);\n \n }\n for (List<Integer> wordCount : wordCountHamList) \n {\n //Compute the new weight vector\n calculateNewWeightVector(eenta, false, wordCount);\n \n }\n }\n \n }", "public static void main(String[] args) {\n\n long a_i3 = 3;\n long a_i2 = 4;\n long a_i1 = 10;\n\n int MOD = 1000_000_000 + 7;\n\n for (int i = 4; i < 30; i++) {\n long a_i = (a_i1 + 2 * a_i2 + 4 * a_i3) % MOD;\n System.out.println(\"N: \" + i + \" --> \" + a_i);\n\n a_i3 = a_i2;\n a_i2 = a_i1;\n a_i1 = a_i;\n }\n\n old1();\n }", "public int getIterations() {\n return iterations;\n }", "@Override public void init_loop() {\n loop_cnt_++;\n }", "public void run(){\n\n for (int locIdx = begN; locIdx < endN; locIdx++) {\n\n // do mean-shift for profiles at these locations\n\n for (int profileIdx=0; profileIdx<profiles.get(locIdx).size(); profileIdx++) {\n\n // access the detection\n// int profileLength = profiles.get(locIdx).get(profileIdx).length;\n\n // calculate peaks for the ring 'profileIdx'\n ArrayList<Float> currPeaks = extractPeakIdxsList(profiles.get(locIdx).get(profileIdx), startIdx.get(profileIdx), finishIdx.get(locIdx).get(profileIdx));\n\n //if (currPeaks.size()<3) {\n // // it is not a bifurcation according to MS for this ring, don't calculate further, leave empty fields of peakIdx at this location\n // break;\n //}\n //else {\n // add those points\n for (int pp=0; pp<currPeaks.size(); pp++){\n peakIdx.get(locIdx).get(profileIdx).add(pp, currPeaks.get(pp));\n }\n //}\n\n/*\n\t\t\t\tfor (int k=0; k<nrPoints; k++) {\n start[k] = ((float) k / nrPoints) * profileLength;\n }\n\n\t\t\t\tTools.runMS( \tstart,\n \tprofiles.get(locIdx).get(profileIdx),\n \tmaxIter,\n \tepsilon,\n \th,\n\t\t\t\t\t\t\t\tmsFinish);\n*/\n\n /*\n for (int i1=0; i1<nrPoints; i1++) {\n convIdx.get(locIdx).get(profileIdx)[i1] = (float) msFinish[i1];\n }\n*/\n/*\n int inputProfileLength = profiles.get(locIdx).get(profileIdx).length;\n Vector<float[]> cls = Tools.extractClusters1(msFinish, minD, M, inputProfileLength);\n\t\t\t\textractPeakIdx(cls, locIdx, profileIdx); // to extract 3 major ones (if there are three)\n*/\n\n }\n\n }\n\n }", "public void setNbIterations(int nbIterations) {\n\t\tthis.nbIterations = nbIterations;\n\t}", "private void trainNetwork(long iterations) {\n\t\ttrainer.startTraining(network, iterations);\r\n\r\n\t}", "@Override\r\n\tpublic int runn(int k) {\n\t\treturn 0;\r\n\t}", "public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }", "private void runBest() {\n }", "public void resetIteration(){\n\t\titeration = 0;\n\t}", "@Override\n protected void run() {\n for (long number : numbers){\n addTask(new FindFactorsTask(new FindFactorsTask.SearchOptions(number)));\n }\n executeTasks();\n\n //Find common factors\n final Set<Long> set = new HashSet<>(((FindFactorsTask) getTasks().get(0)).getFactors());\n for (int i = 1; i < getTasks().size(); ++i){\n set.retainAll(((FindFactorsTask) getTasks().get(i)).getFactors());\n }\n\n //Find largest factor\n gcf = Collections.max(set);\n }", "public void run() {\n BigInteger answer = BigInteger.valueOf(0);\n String stringInt;\n List<Integer> list = new ArrayList<Integer>();\n int sum = 0;\n\n answer = MathFunctions.numberFactorial(100);\n\n stringInt = answer.toString();\n\n\n\n list = MathFunctions.addStringToArray(stringInt);\n\n for (int i = 0; i < list.size(); i++)\n sum += list.get(i);\n\n this.answer = sum;\n }", "public void evolve(int i) {\n\t\tfurniturePriority=100;\r\n\t}", "protected void runAfterIteration() {}", "void computePageRank(int num_iters){\n\t\t if(num_iters < 0) return;\n\t\t double rank[] = new double[numofvert]; // array that will hold the rank number\n\t\t double prevrank[] = new double[numofvert];\n\t\t int node[] = new int [numofvert];\n\t\t Arrays.fill(rank, 0);\n\t\t Arrays.fill(prevrank,1);\n\t\t RowHeadNode prevrow = dGraphin.getfirstRow();\n\t\t for(int i = 0; i < node.length;i++){//making node array\n\t\t\t node[i] = i;\n\t\t }\n\t\t if(num_iters == 0){\n\t\t\t Arrays.fill(rank,1);//return an array filled with ones\n\t\t\t print(rank,node);\n\t\t\t return;\n\t\t }\n\t\t for(int i = 0; i < num_iters;i++){\n\t\t\t RowHeadNode currentrow = dGraphin.getfirstRow();\n\t\t\t while (currentrow != null){\n\t\t\t\t rank[currentrow.getRowidx()] = currentrow.getPR(prevrank,outdegree);//pagerank function\n\t\t\t\t prevrow = currentrow;\n\t\t\t\t currentrow = currentrow.getNextRow();//increment row\n\t\t\t }\n\t\t\t for(int c = 0; c < numofvert;c++)// put rank values into the prevrank array\n\t\t\t\t prevrank[c] = rank[c];\n\t\t }\n\t\t \n\t\t selectionSort(prevrank,node,numofvert);// sort arrays based on calculated pagerank\n\t\t print(prevrank,node);\n\t\t return;\n\t }", "public static int calculate()\n {\n final List<Integer> oneToNine = IntStream.iterate(1, n -> n + 1)\n .limit(9)\n .boxed()\n .collect(toList());\n final List<List<Integer>> permutations = HeapPermutations.of(oneToNine);\n\n // System.out.println(permutations.size());\n //2- for each permutation\n // a. find all breaking 2 points to break\n // b. check first two sections' third is equal to the last section\n // c. if yes, add combintion to result, otherwise skip\n\n return permutations.stream()\n .flatMap(toTriples()) //find all combinations xx X yy = zz\n .filter(isPandigital()) // allow pandigital tripes through\n .map(Triple::getThird) // get the product\n .distinct() // get distinct products only given the problem statement does not allow repetition (see hint)\n .mapToInt(i -> i) // convert to primitive\n .sum(); // and finally get the sum\n }" ]
[ "0.6731819", "0.6267503", "0.6209739", "0.6204473", "0.61470824", "0.61441964", "0.61430794", "0.6131222", "0.612107", "0.6111382", "0.61093897", "0.60912573", "0.60442716", "0.6026359", "0.60221505", "0.6007342", "0.59735394", "0.5933906", "0.59238654", "0.59197116", "0.5892086", "0.581546", "0.5809317", "0.57948464", "0.5789903", "0.5785676", "0.57780856", "0.5764811", "0.57603323", "0.57602143", "0.5690494", "0.5687265", "0.5662948", "0.5653883", "0.56490177", "0.56393325", "0.56253535", "0.5623077", "0.5618744", "0.5618252", "0.56175315", "0.5612894", "0.5600672", "0.5595031", "0.55852103", "0.5580757", "0.5579061", "0.5571737", "0.5559927", "0.5552707", "0.5546428", "0.5539549", "0.5533895", "0.55332226", "0.553313", "0.55251884", "0.5507925", "0.5507846", "0.55037105", "0.5503324", "0.5499314", "0.54969907", "0.549357", "0.54875994", "0.5480727", "0.54766935", "0.54734784", "0.54734623", "0.5471202", "0.5446087", "0.5436711", "0.5425679", "0.54206616", "0.54093707", "0.54082865", "0.5406961", "0.5392258", "0.5389114", "0.5382543", "0.5374946", "0.53612965", "0.53547525", "0.53541076", "0.5345796", "0.53400564", "0.5331339", "0.53265613", "0.5310775", "0.53094876", "0.5308655", "0.53031254", "0.53016317", "0.53012496", "0.5296894", "0.5289052", "0.5288261", "0.5282668", "0.52786934", "0.527645", "0.5271845", "0.5270674" ]
0.0
-1
/ Execute the DVR algorithm until convergence
public void converge(HashMap<String, Node> nodes, boolean splitHorizon) { int i = 1; boolean linkUpdate = false; boolean hasUpdate = false; while (true) { // System.out.println("Iteration " + i); // update any incorrect links for (Node n : nodes.values()) { linkUpdate = n.checkLinks(nodes); } // exchange information from neighbour to neighbour for (Node n : nodes.values()) { ArrayList<Node> neighbours = n.getNeighbours(); for (Node node : neighbours) { hasUpdate = this.exchangeDistances(n, node, hasUpdate, splitHorizon); } } // if no new updates, the network has converged if (!hasUpdate && !linkUpdate) { break; } // avoid count to infinity problem if split horizon has been // activated if (!hasUpdate && linkUpdate && splitHorizon) { break; } hasUpdate = false; // stop execution if the count to infinity problem has been // encountered if (!splitHorizon && i > 10 && !hasUpdate) { System.out.println("Taking too long to converge..."); break; } i++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void runAlgorithm()\n\t{\n\t\tboolean done = false;\n while (!done)\n {\n switch (step)\n {\n case 1:\n step=stepOne(step);\n break;\n case 2:\n step=stepTwo(step);\n break;\n case 3:\n step=stepThree(step);\n break;\n case 4:\n step=stepFour(step);\n break;\n case 5:\n step=stepFive(step);\n break;\n case 6:\n step=stepSix(step);\n break;\n case 7:\n stepSeven(step);\n done = true;\n break;\n }\n }\n\t}", "public void run() 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 void run() {\n // solve();\n faster();\n }", "@Override\n\tpublic void run() {\n\t\tif(algoRuning==1){\n\t\t\tspDist.runAlgDist();\n\t\t}else{\n\t\t\tspTime.runAlgTime();\n\t\t}\n\t}", "public void cycle() {\r\n processTask(); // tune relative frequency?\r\n processConcept(); // use this order to check the new result\r\n }", "void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}", "public SolutionSet execute() throws JMetalException, ClassNotFoundException, IOException {\n initialization();\n createInitialSwarm() ;\n evaluateSwarm();\n initializeLeaders() ;\n initializeParticlesMemory() ;\n updateLeadersDensityEstimator() ;\n\n while (!stoppingCondition()) {\n computeSpeed(iterations_, maxIterations_);\n computeNewPositions();\n perturbation();\n evaluateSwarm();\n updateLeaders() ;\n updateParticleMemory() ;\n updateLeadersDensityEstimator() ;\n iterations_++ ;\n }\n\n tearDown() ;\n return paretoFrontApproximation() ;\n }", "public void execute(){\n drivetrain.tankDrive(0.6 * direction, 0.6 * direction);\n // slower than full speed so that we actually bring down the bridge,\n // not just slam it and push balls the wrong way\n }", "public ModelParams optimize() throws Exception {\n\t\tint iterCount = 0;\n\t\tdivergence = KLDivergenceCalculator.calculate(cState, tState);\n\t\tSystem.out.println(\"KL Divergence : \" + divergence);\n\t\t// ((DivergenceChart) BeanFinder\n\t\t// .findBean(MetaConstants.BEAN_DIVERGENCE_CHART)).update(\n\t\t// iterCount, divergence);\n\t\tdouble delta[] = null;\n\t\tdouble theta[] = data.getParams().getParams();\n\t\tdouble newDivergence = 0.0d;\n\t\tdouble initialStep = data.getInitialStepSize();\n\t\tboolean optimized = false;\n\t\tdo {\n\t\t\tdelta = computeGradient(theta);\n\t\t\tfor (double step = initialStep; iterCount < data.getMaxIterations(); step /= 10) {\n\t\t\t\tSystem.out.println(\"Step size : \" + step);\n\t\t\t\tSystem.out.println(\"KL divergence before taking a step : \"\n\t\t\t\t\t\t+ KLDivergenceCalculator.calculate(cState, tState));\n\t\t\t\tfor (int i = 0; i < delta.length; i++) {\n\t\t\t\t\tif (Double.isNaN(delta[i]))\n\t\t\t\t\t\tSystem.out.print(\"delta is NAN!!\" + delta[i] + \", \");\n\t\t\t\t\ttheta[i] -= step * delta[i];\n\t\t\t\t\tSystem.out.print((theta[i]) + \", \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tgetNewState(theta);\n\t\t\t\titerCount++;\n\t\t\t\tnewDivergence = KLDivergenceCalculator\n\t\t\t\t\t\t.calculate(cState, tState);\n\t\t\t\tSystem.out.println(\"KL Divergence : \" + newDivergence);\n\t\t\t\t// ((DivergenceChart) BeanFinder\n\t\t\t\t// .findBean(MetaConstants.BEAN_DIVERGENCE_CHART)).update(\n\t\t\t\t// iterCount, newDivergence);\n\t\t\t\tif (newDivergence < divergence) {\n\t\t\t\t\tdivergence = newDivergence;\n\t\t\t\t\tinitialStep = step;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// before taking the next step size, reset theta to what it was\n\t\t\t\tfor (int i = 0; i < delta.length; i++)\n\t\t\t\t\ttheta[i] += step * delta[i];\n\t\t\t\tgetNewState(theta); // Added for checking. Not required.\n\t\t\t}\n\t\t\toptimized = optimized(theta);\n\t\t} while (!optimized && iterCount < data.getMaxIterations());\n\t\tModelParams optimParams = null;\n\t\tif (optimized) {\n\t\t\toptimParams = new ModelParams();\n\t\t\toptimParams.setParams(theta);\n\t\t}\n\t\treturn optimParams;\n\t}", "protected void execute() {\n\t\tcurrent = Robot.encoder.getDistance();\n\t\terror = target - current;\n\t\tscaled_error = error * scale;\n\t\tP = Constants.kDriveTrainP * scaled_error;\n\t\tI += Constants.kDriveTrainI * scaled_error;\n\t\tD = (scaled_error - p_error) / Constants.kDriveTrainD;\n\n\t\tdouble output = P + I + D;\n\n\t\tSmartDashboard.putNumber(\"cur_angle\", Robot.imu.getAngleZ());\n\t\tSmartDashboard.putNumber(\"output\", output);\n\t\tSmartDashboard.putNumber(\"encoder distance\", Robot.encoder.getDistance());\n//\t\tRobot.chassis.tankDrive(output, output);\n\t\tdouble theta = 0 - Robot.imu.getAngleZ();\n\t\tdouble correction = theta * 0.035;\n\t\tSmartDashboard.putNumber(\"correction\", correction);\n\t\tif (theta < 0)\n\t\t\tRobot.mChassis.tankDrive(output + correction, output);\n\t\telse if (theta > 0)\n\t\t\tRobot.mChassis.tankDrive(output, output + correction);\n\t\telse\n\t\t\tRobot.mChassis.tankDrive(output, output);\n\n\t\tif (Math.abs(error) < 0.1)\n\t\t\tisFinished = true;\n\n\t}", "protected void execute() {\n\t\tdouble error = -1;\n\t\tdouble proportion = 1;\n\t\tdouble coefficient = 1;\n\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartDepth)) { error = Robot.depth_.get_degrees_x(); }\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartCubeSearch)) { error = Robot.cube_.get_degrees_x(); }\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartRFT)) { error = Robot.rft_.get_degrees_x(); }\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.PlatformBlueSearch) || \n\t\t\t\tvision.equalsIgnoreCase(SocketVisionSender.PlatformRedSearch)) { error = Robot.platform_.get_degrees_x(); }\n\t\t\n\t\tif(error == -1) {\n\t\t\tproportion = Drivetrain.kPGyroConstant * (Robot.drivetrain.getGyroHeading() - initHeading);\n\n\t\t} else {\n\t\t\tproportion = error * kP;\n\t\t\t//drive vision\n\t\t\tif(error == 0) initHeading = Robot.drivetrain.getGyroHeading();\n\t\t}\n\n\t\tcoefficient = (initDistance - Robot.drivetrain.getRightEncoderPos(0)) / initDistance;\n\t\tcoefficient = Robot.drivetrain.thresholdVBus(coefficient);\n\n\t\tRobot.drivetrain.tankDrive(coefficient * (vBus - proportion), -coefficient * (vBus + proportion));\n\n\t}", "public void runAlgorithm() {\r\n if (srcImage == null) {\r\n MipavUtil.displayError(\"AlgorithmRegularizedIsotropicDiffusion.run() Source Image is null\");\r\n return;\r\n }\r\n\r\n if (srcImage.getNDims() == 2 || do25D) {\r\n timeStep = 0.2f;\r\n }\r\n else {\r\n timeStep = 0.15f;\r\n }\r\n\r\n if (srcImage.isColorImage()) {\r\n if (srcImage.getNDims() == 2) {run2DC(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2DC(srcImage.getExtents()[2]); }\r\n else run3DC();\r\n }\r\n else {\r\n if (srcImage.getNDims() == 2) { run2D(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2D(srcImage.getExtents()[2]); }\r\n else run3D();\r\n }\r\n }", "public boolean execute() {\n\t\t\t\t\n\t\tif( numberOfEncoders == 1) {\n\t\t\tif (Math.abs(rightDistanceTraveled - distance) <= error || Math.abs(leftDistanceTraveled - distance) <= error) {\n\t\t\t\tthis.reset();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse if( numberOfEncoders == 2) {\n\t\t\tif (Math.abs(leftDistanceTraveled - distance) <= error && Math.abs(rightDistanceTraveled - distance) <= error ) {\n\t\t\t\tthis.reset();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n//\t\t\tif(Math.abs(prevErrorLeft - leftDistanceTraveled) <= 3 && Math.abs(prevErrorRight - rightDistanceTraveled) <= 3 && stallStartTime == 0) {\n//\t\t\t\tstallStartTime = System.currentTimeMillis();\n//\t\t\t} else {\n//\t\t\t\tstallStartTime = 0;\n//\t\t\t}\n\t\t}\n//\t\tSystem.out.println(stallStartTime + \" \" + Math.abs(prevErrorLeft - leftDistanceTraveled));\n//\t\tif(stallStartTime + timeout > System.currentTimeMillis()) {\n//\t\t\tthis.reset();\n//\t\t\treturn true;\n//\t\t}\n\t\t\n\t\tif(Math.abs(leftDistanceTraveled - distance) > error) {\n\t\t\tleftDistanceTraveled = SensorInputControl.getInstance().getEncoder(SensorType.DRIVE_TRAIN_LEFT_ENCODER).getDistance();\n\t\t\tleftDriveOutput = leftDistanceControlLoop.getPID(distance, leftDistanceTraveled);\n\t\t\t\n\t\t\tif(leftDriveOutput > 0) {\n\t\t\t\tleftDriveOutput = (leftDriveOutput < AutoDriveForward.MIN_SPEED ? AutoDriveForward.MIN_SPEED : leftDriveOutput);\n\t\t\t} else if(leftDriveOutput < 0) {\n\t\t\t\tleftDriveOutput = (leftDriveOutput > -AutoDriveForward.MIN_SPEED ? -AutoDriveForward.MIN_SPEED : leftDriveOutput);\n\t\t\t}\n\t\t} else {\n\t\t\tleftDistanceControlLoop.reset();\n\t\t\tleftDriveOutput = 0;\n\t\t}\n\t\t\n\t\tif(Math.abs(rightDistanceTraveled - distance) > error) {\n\t\t\trightDistanceTraveled = -SensorInputControl.getInstance().getEncoder(SensorType.DRIVE_TRAIN_RIGHT_ENCODER).getDistance();\n\t\t\trightDriveOutput = rightDistanceControlLoop.getPID(distance, rightDistanceTraveled);\n\t\t\t\n\t\t\tif(rightDriveOutput > 0) {\n\t\t\t\trightDriveOutput = (rightDriveOutput < AutoDriveForward.MIN_SPEED ? AutoDriveForward.MIN_SPEED : rightDriveOutput);\n\t\t\t} else if (rightDriveOutput < 0) {\n\t\t\t\trightDriveOutput = (rightDriveOutput > -AutoDriveForward.MIN_SPEED ? -AutoDriveForward.MIN_SPEED : rightDriveOutput);\n\t\t\t}\n\t\t} else {\n\t\t\trightDistanceControlLoop.reset();\n\t\t\trightDriveOutput = 0;\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"AutoDriveFwd::[left speed, right speed] \" + leftDriveOutput + \", \" + rightDriveOutput);\n\t\t\n\t\tDrivetrainControl.getInstance().setLeftDriveSpeed(-leftDriveOutput);\n\t\tDrivetrainControl.getInstance().setRightDriveSpeed(-rightDriveOutput);\n\t\t\n\t\tprevErrorLeft = leftDistanceTraveled - distance;\n\t\tprevErrorRight = rightDistanceTraveled - distance;\n\n\t\t\n\t\treturn false;\n\t\t\n\t}", "protected void execute() {\n \t\n \tcurrentAngle = Robot.gyroSubsystem.gyroPosition();\n\t\tpercentComplete = Math.abs((targetAngle-currentAngle)/goal)*speedFactor;\n\t\t\n\t\tif (percentComplete < minSpeed) \n\t\t{\n\t\t\tpercentComplete = minSpeed;\n\t\t}\n\n\t\t\n\t\tif (targetAngle - error > currentAngle)\n\t\t{\n\t\t\tRobot.driveSubsystem.arcadeDrive(0, percentComplete);\n\t\t}\n\t\telse if (targetAngle + error < currentAngle)\n\t\t{\n\t\t\tRobot.driveSubsystem.arcadeDrive(0, -percentComplete);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tRobot.driveSubsystem.arcadeDrive(0, 0);\n\t\t}\n }", "@Override\n public void execute() {\n swerve.drive(0, 0, \n turnPID.calculate(swerve.getHeadingDouble(), angleSetpoint) * Constants.Swerve.kMaxAngularSpeed\n , false);\n }", "private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }", "public void step() {\r\n for(int i = 0;i<numberOfCars;i++) {\r\n xtemp[i] = x[i];\r\n }\r\n for(int i = 0;i<numberOfCars;i++) {\r\n if(v[i]<maximumVelocity) {\r\n v[i]++; // acceleration\r\n }\r\n int d = xtemp[(i+1)%numberOfCars]-xtemp[i]; // distance between cars\r\n if(d<=0) { // periodic boundary conditions, d = 0 correctly treats one car on road\r\n d += roadLength;\r\n }\r\n if(v[i]>=d) {\r\n v[i] = d-1; // slow down due to cars in front\r\n }\r\n if((v[i]>0)&&(Math.random()<p)) {\r\n v[i]--; // randomization\r\n }\r\n x[i] = (xtemp[i]+v[i])%roadLength;\r\n flow += v[i];\r\n }\r\n steps++;\r\n computeSpaceTimeDiagram();\r\n }", "public boolean execute() {\n\t\t\n\t\tfor (int i = 0; i <Network.size(); i++) {\n\t\t\t\n\t\t\tMyNode n = (MyNode)Network.get(i);\n\t\t\t//MyNode n1 = (MyNode) n;\t\t\n \n System.out.println(\"The frobenius_norm at node\"+\"(\"+i+\"):\"+n.frobenius_norm);\n\t\t\tretVal=retVal &&(n.frobenius_norm<=threshold);\n\t\t\tSystem.out.println(retVal);\n }\n if(retVal)\n {\n \t System.out.println(\"ALgorithm Converged...###########################!\");\n \t return myNewSVMCode.end;\n }\n else\t\n {\n\t\treturn false;\n }\n }", "public void run(){\n this.p_absoluteTemperature = 0.001;\n //this.p_temperatureFactor = 7.5;\n this.p_temperatureFactor = 10;\n \n // Set original and current temperature\n this.temperatureInitial = 100;\n this.temperature = 100;\n \n runAlgorithm();\n }", "public void run() {\n\t\tfor(int i = 0; i < 100; i++) {\n\t\t\t// E step\n\t\t\tsigma = calculateNewSigma();\n\t\t\t// M step\n\t\t\tu = calculateNewU();\n\t\t\t//System.out.println(\"u= \"+u+\"; sigma= \"+sigma);\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"u= \"+u+\"; sigma= \"+sigma);\n\t}", "@Override\n\tpublic void run() {\n\t\tBS.approach(AV);\n\t}", "protected void execute() {\n\t\tBBox bBox = bBoxLocator.getBBox();\n\t\tSmartDashboard.putBoolean(\"Can See With Vision\", wasDetected);\n\n\t\tif (bBox != null) {\n\t\t\twasDetected = true;\n\t\t\tpidAngle.setSetpoint(Robot.drivetrain.getHeading() + bBox.angleDeg);\n\t\t\tSmartDashboard.putNumber(\"PID Vision Setpoint Angle\", pidAngle.getSetpoint());\n\t\t}\n\n\t\tif (!waitForVision || wasDetected) {\n\t\t\tRobot.drivetrain.drive(driveOutput * (useAccelerationFiler ? filter.output() : 1), driveCurve);\n\t\t}\n\t}", "public void execute() {\n\t\t\n\t\tdrivetrain.updateAnglePID();\n\t\t\n//\t\tif (drivetrain.currentControl()) {\n//\t\t\tdrivetrain.shiftGears();\n//\t\t}\n\t}", "public void run() {\n\t\tSolver localSolver;\n\t\t\n\t\t// Run forever\n\t\t// This is a daemon thread and should not keep the program from terminating\n\t\twhile (true) {\n\t\t\t\n\t\t\t// Check if paused\n\t\t\t// Wait here if required\n\t\t\tsynchronized(this) {\n\t\t\t\tif (paused) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twait();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\tcontinue; // Go back to top of while loop\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\t// Make a copy of the solver to use\n\t\t\t\t\t// Cannot access solver value outside synchronised section\n\t\t\t\t\tlocalSolver = solver;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Run solver\n\t\t\t// Must not use any values which require synchronisation\n\t\t\t//System.out.println(\"Start \"+localSolver.getType());\n\t\t\tRoute[] newRoute = localSolver.run();\n\t\t\t//System.out.println(\"Finish\");\n\t\t\t\n\t\t\t// Get the total cost of all the routes combined\n\t\t\tint newTotalCost = 0;\n\t\t\tfor (Route r : newRoute) newTotalCost += r.getCost();\n\t\t\t\n\t\t\t// Check if new route is better than previous\n\t\t\t// If so then swap it out\n\t\t\tsynchronized(this) {\n\t\t\t\tif (localSolver == solver) {\n\t\t\t\t\tif ((totalCost >= newTotalCost) || (totalCost < 1)) {\n\t\t\t\t\t\troute = newRoute;\n\t\t\t\t\t\ttotalCost = newTotalCost;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tresetRoute();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tThread.sleep(750);\n\t\t} catch (InterruptedException ex) {\n\t\t\treturn;\n\t\t}\n\t\tinitializeLabels();\n\t\tint iteration = 0;\n\t\twhile (iteration++ < maxIterations && !Thread.interrupted()) {\n\t\t\tappData.showCurrentIteration(iteration);\n\t\t\tassignLabels();\n\t\t\tif(iteration % updateInterval == 0){\n\t\t\t\tappData.updateChart(iteration);\n\t\t\t\tif (!isContinuous) {\n\t\t\t\t\tappData.enableRun();\n\t\t\t\t\ttocontinue.set(false);\n\t\t\t\t\twhile (!tocontinue()) { //wait until play is clicked\n\t\t\t\t\t\tif (Thread.interrupted()) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tappData.disableRun();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(750);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif(iteration-1 == maxIterations){\n\t\t\tappData.completeAlgorithm(); //algorithm exhausted all iterations\n\t\t\tappData.updateChart(maxIterations);\n\t\t}else{\n\t\t\tappData.autocompleteAlgorithm(); //algorithm terminated by itself\n\t\t\tappData.updateChart(iteration);\n\t\t}\n\t}", "public void alternateFunction()\n\t{\n\t\tstart();\n\t\trunAlgorithm();\n\t}", "protected void execute() {\n\ttry {\n\t if(!theLoader.loaderJag.getReverseLimitOK()) { // then we must be at the limit\n\t\t\n\t\t// since we're at the limit, calibrate!!\n\t\ttheLoader.CalibrateCurrentToLimitPosition();\n\t\t\n\t\t// now that we've calibrated, go to the start postition\n\t\ttheLoader.setOffsetSetpoint(Loader.START_OFFSET);\n\t\tisDone = true;\n\t }\n\t} catch (CANTimeoutException ex) {\n\t ex.printStackTrace();\n\t}\n }", "protected void execute ()\n\t{\n\t\t//Take and process new image every .5 seconds\n\t\tif (System.currentTimeMillis() % 500 == 0)\n\t\t{\n\t\t\tSubsystems.goalVision.processNewImage();\n\t\t}\n\n\t\tif (Subsystems.goalVision.getProportionalGoalX() < X_OFFSET\n\t\t - DEADBAND)\n\t\t//the goal is to the left\n\t\t{\n\t\t\t//turn left\n\t\t\tSubsystems.transmission.drive(motorRatio, -motorRatio);\n\t\t}\n\t\t//the goal is to the right\n\t\telse if (Subsystems.goalVision.getProportionalGoalX() > X_OFFSET\n\t\t + DEADBAND)\n\t\t{\n\t\t\t//turn right\n\t\t\tSubsystems.transmission.drive(-motorRatio, motorRatio);\n\t\t}\n\t}", "public void runAlgorithm() {\r\n \r\n // Algorithm to determine the outer abdominal and inner subcutaneous boundary \r\n if (!initializedFlag) {\r\n init();\r\n }\r\n if (!initializedFlag) {\r\n return;\r\n }\r\n \r\n if (srcImage.getNDims() == 2) {\r\n calc2D();\r\n \r\n } else if (srcImage.getNDims() == 3) {\r\n calc25D();\r\n \r\n }\r\n\r\n ViewUserInterface.getReference().getMessageFrame().append(\"directory: \" +imageDir+\"\\n\", ViewJFrameMessage.DEBUG);\r\n \r\n \tViewJFrameImage frame = new ViewJFrameImage(srcImage);\r\n \tsrcImage.unregisterAllVOIs();\r\n \tsrcImage.registerVOI(abdomenVOI);\r\n \tsrcImage.registerVOI(subcutaneousVOI);\r\n \tframe.saveAllVOIsTo(imageDir);\r\n \t\r\n \tframe.dispose();\r\n \r\n }", "public void Loop() {\n //if the drive mode is encoders then mirror the rear motors so that we just use the encoders of the front motors\n if(driveMode == DriveMode.Run_With_Encoders){\n rearLeftDrive.setVelocity(frontLeftDrive.getVelocity());\n rearRightDrive.setVelocity(frontRightDrive.getVelocity());\n }\n }", "public void runTillNextPhase () throws NormalizeNullVectorException\n {\n \tint currentPhase = getPhase ();\n \tLearningEditProposal bestEditProposal = getBestEdit (true, true);\n while ((bestEditProposal != null) && (currentPhase == getPhase ()))\n {\n step ( bestEditProposal.getEdit ());\n bestEditProposal = getBestEdit (true, true);\n }\n }", "public Sample run() {\n\t\t// termination criterion\n\t\tint runsUnchanged = 0;\n\t\tboolean terminated = false;\n\t\tdouble prevBestSampleFit = 0; // remember to set this at some\n\t\t\t\t\t\t\t\t\t\t// point\n\t\tint runs = 0; // testing, remove\n\n\t\t System.out.println(\"Evaluating Particles\");\n\t\t// 1) evaluate all particles\n\t\t// 2) set gBest\n\t\tdouble maxFit = problem.getWorstValue();\n\t\tfor (Particle p : pop) {\n\t\t\tp.calcFitness();\n\n\t\t\t// number of evals done is incremented by numSamples\n\t\t\tnumFitnessEvals += numSamples;\n\n\t\t\tdouble fit = p.getBestSample().getFitness();\n\t\t\t// find initial gBest\n\t\t\tif (problem.compare(maxFit, fit) == 1) {\n\t\t\t\tmaxFit = fit;\n\t\t\t\tbestSample = p.getBestSample();\n\t\t\t\tgBest = p.copy();\n\t\t\t\t System.out.println(\"Global best:\");\n\t\t\t\t bestSample.print();\n\t\t\t}\n\t\t}\n\n\t\twhile (!terminated) {\n\t\t\t System.out.println(\"\\n \\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\");\n\t\t\t System.out.println(\" %%%%%%%%%%%%% RUN \" + runs);\n\t\t\t System.out.println(\" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\");\n\n\t\t\t// iterate through all particles\n\t\t\tfor (Particle p : pop) {\n\t\t\t\t// System.out.println(\"\\n >>>> Particle \");\n\t\t\t\t// p.print();\n\n\t\t\t\t// 1) update velocity\n//\t\t\t\tSystem.out.println(\">> Velocity Update\");\n\t\t\t\tp.updateVelocity(omega, phi1, phi2, gBest);\n\n\t\t\t\t// 2) update position\n//\t\t\t\tSystem.out.println(\">> Position Update \");\n\t\t\t\tp.updatePosition();\n\t\t\t\t// p.print();\n\n\t\t\t\t// 2.5) change the previous best sample fitness\n\t\t\t\tprevBestSampleFit = bestSample.getFitness();\n\n\t\t\t\t// 3) evaluate fitness\n//\t\t\t\tSystem.out.println(\">> Fitness Calc\");\n\t\t\t\tdouble fit = p.calcFitness(); // this is never used\n\t\t\t\t// number of evals done is incremented by numSamples\n\t\t\t\tnumFitnessEvals += numSamples;\n\n\t\t\t\tdouble sampleFit = p.getBestSample().getFitness();\n\n\t\t\t\t// System.out.println(\"Sample fitness: \" + sampleFit + \" >? Best\n\t\t\t\t// fitness: \" + bestSample.getFitness());\n\n\t\t\t\t// compares and adjusts gBest\n\t\t\t\tif (problem.compare(bestSample.getFitness(), sampleFit) == 1) {\n\t\t\t\t\tsetBestSample(p.getBestSample());\n\t\t\t\t\t// set gBest and bias\n\t\t\t\t\tsetGBest(p);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// updating fitness for evaluation\n\t\t\tfitnesses.add(bestSample.getFitness());\n\n\t\t\t// Next half-dozen or so lines used to determine convergence\n\t\t\tif (Math.abs(prevBestSampleFit - bestSample.getFitness()) < threshold) {\n\t\t\t\trunsUnchanged++;\n\t\t\t} else {\n\t\t\t\trunsUnchanged = 0;\n\t\t\t}\n\t\t\tif (runsUnchanged >= numToConsiderConverged) {\n\t\t\t\t// return if the solution hasn't significantly changed in a\n\t\t\t\t// certain\n\t\t\t\t// number of iterations\n\t\t\t\tterminated = true;\n\t\t\t}\n\t\t\truns++;\n\t\t\t// System.out.println(\">>>>>> RUNS: \" + runs);\n\t\t}\n\n\t\tSystem.out.println(\"Returning best sample:\");\n\t\tbestSample.print();\n\t\tSystem.out.println(\"Fitness: \" + bestSample.getFitness());\n\n\t\tSystem.out.println(\"Fitness Aross Evals:\");\n\t\tfor (Double d : fitnesses) {\n\t\t\tSystem.out.print(d + \" \");\n\t\t}\n\t\tSystem.out.println();\n\n\t\treturn bestSample;\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000*20);\r\n\t\t\t\t\t\tas.generateDiagModel(dataset);\r\n\t\t\t\t\t\tRDFReasoning.output(dataset);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "protected void execute() {\n \t\n \tdouble angleDifference;\n \t\n \tif (useTargetAngle) {\n \t\tangleDifference = Math.abs(Gyroscope.simplifyAngle(Robot.gyroscope.getGlobalRotation()) - Gyroscope.simplifyAngle(targetAngle));\n \t}\n \telse {\n \t\tangleDifference = Math.abs(Robot.gyroscope.getRotation());\n \t}\n \t\n \tif (angleDifference > ROTATION_THRESHOLD) {\n \t\tif (Robot.gyroscope.getRotation() > 0) {\n \t\t\tadjustPercentRight = ROTATION_PERCENT;\n \t\t\tadjustPercentLeft = 1;\n \t\t}\n \t\telse {\n \t\t\tadjustPercentRight = 1;\n \t\t\tadjustPercentLeft = ROTATION_PERCENT;\n \t\t}\n \t}\n \t\n \trightEncoderPID.setSetpoint(getVelocity() * adjustPercentRight);\n \tleftEncoderPID.setSetpoint(getVelocity() * adjustPercentLeft);\n \t\n \t//print out debug data to smartdash\n \tSmartDashboard.putNumber(\"Left Encoder Vel:\", Robot.drive.leftEncoder.getRate());\n \tSmartDashboard.putNumber(\"Right Encoder Vel\", Robot.drive.rightEncoder.getRate());\n \t\n \tSmartDashboard.putNumber(\"Left Encoder Dist\", Robot.drive.leftEncoder.getDistance());\n \tSmartDashboard.putNumber(\"Right Encoder Dist\", Robot.drive.leftEncoder.getDistance());\n \t\n \tupdateState();\n \t\n \t//keep at low speed if decelerating period is up\n \tif (currentState == DriveState.decelerating && (timer.get() > tAccelerating)) {\n \trightEncoderPID.setSetpoint(FINAL_ADJUST_SPEED);\n \tleftEncoderPID.setSetpoint(FINAL_ADJUST_SPEED);\n \t}\n }", "protected void execute() {\n double rightSpeed, leftSpeed, x, y;\n //Set x and y to their axis values\n x = driver.getRawAxis(InputConstants.rightXAxis);\n y = driver.getRawAxis(InputConstants.leftYAxis);\n //Drive Smoothing\n\n //Set the left and rightspeed using x and y\n leftSpeed = y - x;\n rightSpeed = y + x;\n \n\n //Set the left and right side of the drive\n driveTrain.setLeftVBus(-leftSpeed);\n driveTrain.setRightVBus(-rightSpeed);\n\n\n\n }", "public abstract void runAlgorithm();", "@Override\n public void execute() {\n\n angleCorrection = pidAngle.run(drivetrain.getGyroAngle(), targetAngle);\n \n speedCorrection = pidSpeed.run(distanceTraveled, targetDistance);\n \n if (speedCorrection > 1.0) {\n speedCorrection = 1.0;\n } else if (speedCorrection < -1.0) {\n speedCorrection = -1.0;\n }\n drivetrain.autoDrive(speedCorrection * direction * kAutoDriveSpeed + angleCorrection, speedCorrection * direction*kAutoDriveSpeed - angleCorrection);\n SmartDashboard.putNumber(\"Angle Correction\", angleCorrection);\n SmartDashboard.putNumber(\"Speed Correction\", speedCorrection);\n\n double totalRotationsRight = Math.abs((drivetrain.getMasterRightEncoderPosition() - rightEncoderStart));\n double totalRotationsLeft = Math.abs((drivetrain.getMasterLeftEncoderPosition() - leftEncoderStart));\n\n distanceTraveled = (kWheelDiameter * Math.PI * (totalRotationsLeft + totalRotationsRight) / 2.0) / AUTO_ENCODER_REVOLUTION_FACTOR;\n }", "private void run() {\n\n //if no time has elapsed, do not do anything\n if (Harness.getTime().equals(lastRunTime)) {\n return;\n }\n\n //double deltaV, deltaX;\n double newSpeed;\n double newPosition;\n double targetSpeed = 0;\n double currentSpeed = 0;\n double acceleration = 0;\n\n switch (driveOrderedState.speed()) {\n case STOP:\n targetSpeed = 0.0;\n break;\n case LEVEL:\n targetSpeed = LevelingSpeed;\n break;\n case SLOW:\n targetSpeed = SlowSpeed;\n break;\n case FAST:\n targetSpeed = FastSpeed;\n break;\n default:\n throw new RuntimeException(\"Unknown speed\");\n }\n /*\n * JDR Bug fix to make the speed stop in the case where the command is\n * Direction=STOP but speed is something other than STOP.\n */\n if (driveOrderedState.direction() == Direction.STOP) {\n targetSpeed = 0.0;\n }\n if (driveOrderedState.direction() == Direction.DOWN) {\n targetSpeed *= -1;\n }\n\n currentSpeed = driveSpeedState.speed();\n if (driveSpeedState.direction() == Direction.DOWN) {\n currentSpeed *= -1;\n }\n\n if (Math.abs(targetSpeed) > Math.abs(currentSpeed)) {\n //need to accelerate\n acceleration = Acceleration;\n } else if (Math.abs(targetSpeed) < Math.abs(currentSpeed)) {\n //need to decelerate\n acceleration = -1 * Deceleration;\n } else {\n acceleration = 0;\n }\n if (currentSpeed < 0) {\n //reverse everything for negative motion (going down)\n acceleration *= -1;\n }\n\n //get the time offset in seconds since the last update\n double timeOffset = SimTime.subtract(Harness.getTime(), lastRunTime).getFracSeconds();\n //remember this time as the last update\n lastRunTime = Harness.getTime();\n\n //now update speed\n //deltav = at\n newSpeed = currentSpeed + (acceleration * timeOffset);\n\n //deltax= vt+ 1/2 at^2\n newPosition = carPositionState.position() +\n (currentSpeed * timeOffset) + \n (0.5 * acceleration * timeOffset * timeOffset);\n if ((currentSpeed < targetSpeed &&\n newSpeed > targetSpeed) ||\n (currentSpeed > targetSpeed &&\n newSpeed < targetSpeed)) {\n //if deltaV causes us to exceed the target speed, set the speed to the target speed\n driveSpeedState.setSpeed(Math.abs(targetSpeed));\n } else {\n driveSpeedState.setSpeed(Math.abs(newSpeed));\n }\n //determine the direction\n if (driveSpeedState.speed() == 0) {\n driveSpeedState.setDirection(Direction.STOP);\n } else if (targetSpeed > 0) {\n driveSpeedState.setDirection(Direction.UP);\n } else if (targetSpeed < 0) {\n driveSpeedState.setDirection(Direction.DOWN);\n }\n carPositionState.set(newPosition);\n\n physicalConnection.sendOnce(carPositionState);\n physicalConnection.sendOnce(driveSpeedState);\n\n log(\" Ordered State=\", driveOrderedState,\n \" Speed State=\", driveSpeedState,\n \" Car Position=\", carPositionState.position(), \" meters\");\n }", "@Override\npublic void run() {\n\n while(true){\n \n driveSimulation();\n\n waitSleep(5);\n }\n \n}", "public void run() throws Exception {\r\n long start_time;\r\n // Make sure everything is ready\r\n checkIfReady();\r\n\r\n while (CurrentIteration < MaxIteration) {\r\n System.out.println(\"\\tWorking on iteration \" + (CurrentIteration + 1)\r\n + \" out of \" + MaxIteration);\r\n\r\n // Check to see whether we need to add more candidates\r\n if (Candidates.size() <= CurrentIteration) {\r\n start_time = System.currentTimeMillis();\r\n if (PrintStatus) {\r\n System.out.print(\"\\nGenerating list of new candidates...\");\r\n }\r\n // If needed, train the optimization algorithm\r\n if (ObjectiveFunction instanceof MultiObjectiveEntryRanker) {\r\n MultiObjectiveEntryRanker Ptr = (MultiObjectiveEntryRanker) ObjectiveFunction;\r\n Ptr.train((MultiPropertyDataset) getFullDataset(CurrentIteration));\r\n }\r\n \r\n Dataset new_entries = getNewCandidates();\r\n if (Candidates.size() != currentIteration()) {\r\n throw new Exception(\"Candidates array incorrect size. Ensure getNewCandidates did not edit it.\");\r\n }\r\n Candidates.add(new_entries);\r\n Oracle.importDataset(new_entries);\r\n if (PrintStatus) {\r\n System.out.println(\"Done.\");\r\n UtilityOperations.printRunTime(start_time);\r\n }\r\n }\r\n\r\n // Evaluate all the new candidates using the oracle\r\n start_time = System.currentTimeMillis();\r\n if (PrintStatus) {\r\n System.out.print(\"\\nEvaluating new candidates...\");\r\n }\r\n Oracle.evaluateEntries();\r\n if (PrintStatus) {\r\n System.out.println(\"Done.\");\r\n UtilityOperations.printRunTime(start_time);\r\n }\r\n\r\n // If all entries have been calculated, add them to Candidates and continue\r\n if (Oracle.isComplete()) {\r\n if (PrintStatus) {\r\n System.out.println(\"Oracle has finished calculating.\");\r\n }\r\n Dataset new_entries = Oracle.extractDataset();\r\n Candidates.set(CurrentIteration, new_entries);\r\n CurrentIteration++;\r\n } else {\r\n // If not, return\r\n if (PrintStatus) {\r\n System.out.println(\"Oracle did not finish calculating. Check back later.\");\r\n }\r\n return;\r\n }\r\n }\r\n }", "@Override\n public void runOpMode() throws InterruptedException {\n initialize();\n\n waitForStart();\n\n /* drivetrain.Strafe(1F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(1F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(1F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 20, Direction.LEFT); */\n\n sleep(6000);\n\n drivetrain.Strafe(.5F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 30, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 30, Direction.LEFT);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.1f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.3f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.5f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 2f, this);\n\n\n /*drivetrain.Strafe(.75F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.75F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.75F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 20, Direction.LEFT);\n sleep(6000);\n\n drivetrain.Strafe(.5F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.RIGHT);\n sleep(2000);\n\n\n drivetrain.Strafe(.5F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.LEFT);\n sleep(2000); */\n\n drivetrain.StopAll();\n\n\n\n }", "protected void execute() {\n\t\tthrottle = getThrottle();\n\t\tturn = getCorrectTurnValue();\n\t\tforward = getForward();\n\t\tright = (forward - turn) * throttle;\n\t\tleft = (forward + turn) * throttle;\n\n\t\tRobot.driveTrain.driveManual(right, left);\n\t\tif (Robot.oi.bShiftUp.get()) {\n\t\t\tRobot.driveTrain.shiftToHigh(true);\n\t\t} else if (Robot.oi.bShiftDown.get()) {\n\t\t\tRobot.driveTrain.shiftToHigh(false);\n\t\t}\n\t}", "public void driveTrainLoop() {\n if (Config.getInstance().getBoolean(Key.ROBOT__HAS_DRIVETRAIN)) {\n // Check User Inputs\n double driveThrottle = mOperatorInterface.getDriveThrottle();\n double driveTurn = mOperatorInterface.getDriveTurn();\n\n boolean WantsAutoAim = mOperatorInterface.getFeederSteer();\n\n // Continue Driving\n if (WantsAutoAim == true) {\n // Harvest Mode - AutoSteer Functionality\n // Used for tracking a ball\n // we may want to limit the speed?\n // RobotTracker.RobotTrackerResult DriveResult =\n // mRobotTracker.GetFeederStationError(Timer.getFPGATimestamp());\n mDriveState = DriveState.AUTO_DRIVE;\n\n VisionPacket vp = mRobotTracker.GetTurretVisionPacket(Timer.getFPGATimestamp());\n // mDrive.autoSteerFeederStation(driveThrottle, vp.Error_Angle);\n } else {\n // Standard Manual Drive\n mDrive.setDrive(driveThrottle, driveTurn, false);\n\n // if we were previously in auto drive.. turn it off\n if (mDriveState == DriveState.AUTO_DRIVE) {\n mDriveState = DriveState.MANUAL;\n }\n }\n }\n }", "@Override\n\tprotected void execute() {\n\t\terror = turnPID.getError();\n\t\toutput = turnPID.compute();\n\n\t\tif (Math.abs(error) < turnThreshold) {\n\t\t\tclockCounter++;\n\t\t\tif (clockCounter >= CLOCK_MAX) {\n\t\t\t\tisFinished = true;\n\t\t\t}\n\t\t} else {\n\t\t\tclockCounter = 0;\n\t\t}\n\t\tRobot.driveTrain.tankDrive(output, -output);\n\t}", "@Override\n public void execute() {\n // Use squared inputs\n // Might want to change that for competition\n m_driveTrain.arcadeDrive(m_throttle.getAsDouble(), m_turn.getAsDouble(), true);\n }", "public void runOpMode() throws InterruptedException {\n leftWheel = hardwareMap.dcMotor.get(\"leftWheel\");\n rightWheel = hardwareMap.dcMotor.get(\"rightWheel\");\n leftArm = hardwareMap.dcMotor.get(\"leftArm\");\n rightArm = hardwareMap.dcMotor.get(\"rightArm\");\n rightDistance = hardwareMap.get(DistanceSensor.class, \"rightDistance\");\n leftColor = hardwareMap.colorSensor.get(\"leftColor\");\n rightWheel.setDirection(DcMotorSimple.Direction.REVERSE);\n count = 21;\n step = 3;\n subStep = 0;\n\n sample_ready = false;\n lander_unlatched = false;\n\n //prepares and resets robot by resetting encoders\n resetDriveEncoders();\n\n //prepares robot for arm movement by setting arm motors to go to a certain position-modifiable by user input (the d-pad)\n// leftArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n// rightArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //HSV value array\n\n //Sends color sensor input values to the phone\n waitForStart();\n\n while (opModeIsActive()) {\n telemetry.update();\n\n\n telemetry.addLine()\n .addData(\"step\", step)\n .addData(\"subStep\", subStep)\n .addData(\"count\", count);\n telemetry.addLine()\n .addData(\"RightWheel: \", rightWheel.getCurrentPosition())\n .addData(\"LeftWheel: \", leftWheel.getCurrentPosition())\n .addData(\"TICKS_PER_WHEEL_ROTATION: \", TICKS_PER_WHEEL_ROTATION);\n\n\n//sets the step of where we are in the process to one\n // step = 1;\n//enables the if statement for lander_unlatched\n lander_unlatched = true;\n//moves the robot from the lander to where the samples are\n if (step == 1) {\n// leftWheel.setPower(0.7);\n// rightWheel.setPower(0.5);\n// leftWheel.setTargetPosition(1621);\n// rightWheel.setTargetPosition(820);\n step = 2;\n }\n if (step == 2) {\n// if (hsvValues[0] > 50) {\n// leftWheel.setPower(-0.7);\n// rightWheel.setPower(-0.5);\n// leftWheel.setTargetPosition(1221);\n step = 3;\n }\n// if step 2 is finished, makes the robot turn toward the wall, then drives against the wall.\n if (step == 3) {\n moveToDepot();\n }\n //1150 Target Units == about 1 foot, 96 Units/inch\n//sets the wheel power to 0 to limit movement\n// if (rightWheel.getCurrentPosition() == -rotation) {\n // rightWheel.setPower(0);\n //leftWheel.setPower(0);\n// }\n// if (leftWheel.getCurrentPosition() == 100) {\n// leftWheel.setPower(0);\n// rightWheel.setPower(0);\n// }\n\n sample_ready = true;\n\n// if (sample_ready) {\n//\n }\n }", "public void run() {\n\t\tparams.set(\"Status\", \"Configuring\");\n\t\tJob.animate();\n\t\t\n\t\tint tsim = params.iget(\"Sim Time\");\n\t\tReadInUtil riu = new ReadInUtil(params.sget(\"Parameter File\"));\n\t\tp2 = riu.getOFCparams();\n\t\tdouble[] av = new double[]{0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9};\n\t\triu = null;\n\t\t\n\t\twhile(true){\n\t\t\tfor(double alpha : av){\n\t\t\t\tparams.set(\"Status\", \"Intializing\");\n\t\t\t\tparams.set(\"Dissipation (\\u03B1)\",alpha);\n\t\t\t\tp2.set(\"Dissipation (\\u03B1)\",alpha);\n\t\t\t\tJob.animate();\n\t\t\t\tmodel = new ofc2Dfast(p2);\n\t\t\t\tmodel.setClength(tsim);\n\t\t\t\t// read in stress from file\n\t\t\t\triu = new ReadInUtil(model.getOutdir()+File.separator+model.getBname()+\"_Stress_\"+(int)(100*alpha)+\".txt\");\n\t\t\t\tmodel.setStress(riu.getData(0));\t\t\t\t\n\t\t\t\t\n\t\t\t\t// simulate <i>tsim</i> time steps\n\t\t\t\tfor(int tt = 0 ; tt < tsim ; tt++){\n\t\t\t\t\tmodel.evolve(tt, false);\n\t\t\t\t\tif(tt%1000 == 0){\n\t\t\t\t\t\tparams.set(\"Status\",tt);\n\t\t\t\t\t\tJob.animate();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// append data to data file\n\t\t\t\tmodel.appendCdata(model.getOutdir()+File.separator+model.getBname()+\"_Catalogue_\"+(int)(100*alpha)+\".txt\",tsim);\n\t\t\n\t\t\t\t// replace old stress file with new stress file\n\t\t\t\tPrintUtil.overwriteFile(model.getOutdir()+File.separator+model.getBname()+\"_Stress_\"+(int)(100*alpha)+\".txt\",model.getStress());\n\t\t\t\t\n\t\t\t\t// print summary of events in log file\n\t\t\t\teditLogFile(tsim, alpha);\n\t\t\t\t\n\t\t\t\t// update seed\n\t\t\t\tp2.set(\"Random Seed\", p2.iget(\"Random Seed\")+1);\n\t\t\t}\n\t\t}\n\t}", "public void step (double dt){ \r\n setValues();\r\n //Do Step \r\n int steps=(int)dt;\r\n for (int i=0;i<steps;i++)\r\n eval(commandUpdate); \r\n getValues(); \r\n }", "protected void execute() {\n \tdouble currentAngle = driveTrain.gyro.getYaw();\n \tdriveTrain.drive.arcadeDrive(speed, 0);\n }", "public Vector run(){\n generationCount = 0;\n solutionList = new Vector();\n bannedList = new Vector();\n solutionCounter = 0;\n whenToHalt.init();\n //INITIALIZE THE POPULATION\n\n population = initializer.getGenes(populationSize, fitnessFunction, minRadius, maxRadius);\n fitnessArray = new double[populationSize];\n //COMPUTE FITNESSES\n for (int x = 0; x < populationSize; x++){\n Gene next = (Gene) population.get(x);\n fitnessArray[x] = next.getFitness();\n }\n\n Arrays.sort(fitnessArray);\n\n while (! stop()){\n //RUN THROUGH THE GENERATIONS\n population = step();\n }\n\n if (useList){\n return solutionList;\n } else {\n return population;\n }\n }", "protected void execute() {\n\t\t// Get output from PID and dvide by 4\n\t\tdouble output = Robot.minipidSubsystem.getOutput(Robot.gyroSubsystem.GyroPosition(), 90) * 0.25;\n\n\t\t// limit output to 25% in either direction\n\t\tif (output > 25)\n\t\t\toutput = 25;\n\t\telse if (output < -25)\n\t\t\toutput = -25;\n\n\t\t// convert output to a value the drive subsystem can use (-1 to 1)\n\t\toutput /= 100;\n\n\t\t// drive the robot, only providing the turn speed\n\t\tRobot.driveSubsystem.robotDrive.arcadeDrive(0, output);\n\t\t// Robot.driveSubsystem.tankDrive(-output, output);\n\t}", "protected void execute() {\n \tRobot.driveTrain.driveByArcade(_speed, 0);\n }", "private static void run() throws InterruptedException {\r\n\t\tif (runAllAlgorithms) {\r\n\t\t\trunAll();\r\n\t\t}\r\n\t\telse {\r\n\t\t\trunIndividual(algorithmCode, algorithmParameters);\r\n\t\t}\r\n\t}", "protected void execute() {\n \t// \"Demo Mode\" turns off the driveline for demonstration events so that we don't have to pull fuses.\n \t// Ideally, we only check this every few seconds to avoid performance implications at competitions.\n\t\tif ((++m_loops%500) == 0) { // at 20ms/loop, 50 loops per second, so limit query to 500 loops per 10 seconds\n\t\t\tm_demoMode = SmartDashboard.getBoolean(\"Demo Mode\", false);// default to false if not found in the table\n\t\t}\n\t\tif (!m_demoMode) {\n\t\t\tRobot.driveTrain.octaCanumDriveWithJoysticks(Robot.oi.joyLeft, Robot.oi.joyRight);\n \t}\n \t\n }", "@Override\n public void run() {\n try {\n while (this.getState() != Thread.State.TERMINATED) {\n IDataModel dataModel = myDataModelController.getCurrentModel();\n\n if ((dataModel != null) && (!dataModel.isModelChecked())) {\n runAllValidations(dataModel);\n }\n Thread.sleep(CYCLE_SLEEP_TIME);\n }\n } catch (InterruptedException e) {\n // state = Thread.State.TERMINATED;\n this.interrupt();\n }\n }", "protected void execute() {\r\n\r\n double tempInches = Robot.driveTrain.getRangeInches();\r\n if(tempInches<0)\r\n {\r\n Robot.driveTrain.stop();\r\n return;\r\n }\r\n\r\n if (tempInches > Preferences.ultraStopDistance) {\r\n if (Preferences.tankDriveMode) {\r\n Robot.driveTrain.tankDrive(Robot.oi.getDriverLeft().getY(), Robot.oi.getDriverRight().getY());\r\n } else {\r\n Robot.driveTrain.arcadeDrive(Robot.oi.getDriverLeft().getY(), Robot.oi.getDriverRight().getX());\r\n }\r\n } else if(complete == false) {\r\n if(Robot.driveTrain.autoTurnToAngle(0)){\r\n complete = true;\r\n Robot.driveTrain.setDirection();\r\n Robot.driveTrain.resetEncoders();\r\n }\r\n }\r\n\r\n if (complete) {\r\n //Robot.driveTrain.autoTurnToAngle(0);\r\n Robot.driveTrain.autoDriveStraight(tempInches - Preferences.ultraStopDistance);\r\n }\r\n\r\n }", "public void run() {\n setSpeed(MAX_SPEED, MAX_SPEED);\n while (step(TIME_STEP) != 16) {\n String name = \"\";\n if (behaviourList.get(2).takeControl()){\n name = \"inFrontOfWall\";\n behaviourList.get(2).action();\n } else if (behaviourList.get(1).takeControl()){\n name = \"isBallanceBall\";\n behaviourList.get(1).action();\n } else if (behaviourList.get(0).takeControl()){\n name = \"searchBall\";\n behaviourList.get(0).action();\n }\n printDistanceInfo(name);\n }\n }", "protected void execute() {\n \tRobot.driveTrain.arcadeNoConstants(MOVE_SPEED_PERCENT, Robot.driveTrain.gyroPReturn(direction));\n }", "void find_steady_conditions () {\n // System.out.println(\"-- find_steady_conditions: \" + can_do_gui_updates);\n // double min_lift = parse_force_constraint(tf_tkoff_min_lift);\n double max_drag = parse_force_constraint(tf_tkoff_max_drag);\n boolean saved_flag = can_do_gui_updates;\n can_do_gui_updates = false;\n vpp.steady_flight_at_given_speed(5, 0);\n can_do_gui_updates = saved_flag;\n recomp_all_parts();\n\n\n // this animation idea alas does not work now... \n // //add a bit of animation in case the rider crosses the takeoff speed.\n // if (alt_val == 0 && foil_lift() >= load) { // need to raise up\n // while (alt_val < 70 && foil_lift() >= load) {\n // alt_val += 0.1;\n // loadPanel();\n // viewer.repaint();\n // // try { Thread.sleep(100); } catch (InterruptedException e) {}\n // saved_flag = can_do_gui_updates;\n // can_do_gui_updates = false;\n // vpp.steady_flight_at_given_speed(5, 0);\n // can_do_gui_updates = saved_flag;\n // }\n // }\n\n if (alt_val == 0 && foil_lift() >= load) { // need to raise up\n // viewer.start_raise = true; // this is experimentsl, has quirks....\n alt_val = 70;\n } else if (alt_val > 0 && foil_lift() < load) { // must splash\n // viewer.start_descend = true; // this is experimentsl, has quirks....\n alt_val = 0;\n }\n\n \n loadPanel();\n if (total_drag() > max_drag) \n dash.outTotalDrag.setForeground(Color.red);\n if (foil_lift() < load) \n dash.outTotalLift.setForeground(Color.red);\n }", "void run() throws Exception {\n // you can alter this method if you need to do so\n IntegerScanner sc = new IntegerScanner(System.in);\n PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n int TC = sc.nextInt(); // there will be several test cases\n while (TC-- > 0) {\n V = sc.nextInt();\n\n // clear the graph and read in a new graph as Adjacency List\n AdjList = new Vector < Vector < IntegerPair > >();\n for (int i = 0; i < V; i++) {\n AdjList.add(new Vector < IntegerPair >());\n\n int k = sc.nextInt();\n while (k-- > 0) {\n int j = sc.nextInt(), w = sc.nextInt();\n AdjList.get(i).add(new IntegerPair(j, w)); // edge (road) weight (in minutes) is stored here\n }\n }\n\n PreProcess(); // optional\n\n Q = sc.nextInt();\n while (Q-- > 0)\n pr.println(Query(sc.nextInt(), sc.nextInt(), sc.nextInt()));\n\n if (TC > 0)\n pr.println();\n }\n\n pr.close();\n }", "protected void execute() {\n \ttry{\n \t\tsizeArray = Robot.vision.getNumberArray(\"size\", Robot.def);\n \t\txArray = Robot.vision.getNumberArray(\"x\", Robot.def);\n \t\tif(sizeArray.length == 2)\n \t\t\tsizeL2Array = sizeArray;\n \t\tif(xArray.length == 2)\n \t\t\txL2Array = xArray;\n \t\tif(sizeL2Array.length > 1 && xL2Array.length > 1 && sizeL2Array[0]<targetSize){\n\t\t\t\tjosh();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//System.out.println(\"bad\");\n\t\t\t\tDrive.setLeft(0);\n\t\t\t\tDrive.setRight(0);\n\t\t\t}\n \t}\n \tcatch(Exception ex){\n \t\tnoBubbles = true;\n \t}\n }", "@Override\n\tprotected void execute() {\n \tif (timer + waitTime < Timer.getFPGATimestamp()) {\n \t\tcheckEnc = true;\n \t\tSmartDashboard.putString(\"WARNING\", \"checking\");\n \t}\n \t\n \tif(checkEnc){\n \t\tif(Math.abs(Robot.driveTrain.leftEnc.getDistance()) < badEncTolerance){\n \t\t\terrorDistance = Math.abs((distance - Robot.driveTrain.rightEnc.getDistance()));\n \t\t} else if(Math.abs(Robot.driveTrain.rightEnc.getDistance()) < badEncTolerance){\n \t\t\terrorDistance = Math.abs((distance - Robot.driveTrain.leftEnc.getDistance()));\n \t\t} else {\n \t\t\terrorDistance = Math.abs(distance - Robot.driveTrain.getEncDistance());\n \t\t}\n \t} else {\n \t\terrorDistance = Math.abs((distance - Robot.driveTrain.getEncDistance()));\n \t}\n\t\t\n\t\terrorAngle = Robot.driveTrain.getTurnAngle(currentAngle, Robot.driveTrain.imu.getAngleZ() / 4);\n\t\t\n\t\tif(incSpeed){\n\t\t\t\n\t\t\t//increase the speed applied to the motors to prevent initial jolting of robot\n\t\t\tincSpeedStep += .035;\n\t\t\t\n\t\t\t//if the speeding up speed applied to the motors is close to what we want\n\t\t\t//jump out ofthe loop\n\t\t\tif(incSpeedStep > minSpeed)\n\t\t\t\tincSpeed = false;\n\t\t\t\n\t\t\t//applies speed to motor\n\t\t\tRobot.driveTrain.leftDrive.set(incSpeedStep);\n \t\tRobot.driveTrain.leftDrive2.set(incSpeedStep);\n Robot.driveTrain.rightDrive.set(-incSpeedStep);\n Robot.driveTrain.rightDrive2.set(-incSpeedStep);\n\t\t}\n\t\t\n\t\t//if the robot drives out of the angle tolerance to drive \n\t\t//forward, a motor speed up or cool down is applied\n\t\tif(Math.abs(errorAngle) < angleTolerance){\n\t\t\t//apply a motor change based upon how far off angle\n\t\t\t//motorChange = Math.abs(errorAngle) * .001;\n\t\t\t//turning too far right\n\t\t\t\n\t\t\tdouble average = (leftSpeed + rightSpeed) / 2;\n\t\t\tleftSpeed = average;\n\t\t\trightSpeed = average;\n\t\t\t\n\t\t\tif(errorAngle < 0){\n\t\t\t\tif(rightSpeed < maxSpeed){\n\t\t\t\t\trightSpeed += (motorChange);\n\t\t\t\t} else {\n\t\t\t\t\tleftSpeed -= (motorChange / 3);\n\t\t\t\t}\n\t\t\t//turning too far left\n\t\t\t} else if(errorAngle > 0){\n\t\t\t\tif(leftSpeed < maxSpeed){\n\t\t\t\t\tleftSpeed += (motorChange);\n\t\t\t\t} else {\n\t\t\t\t\trightSpeed -= (motorChange / 3);\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t\t\n\t\t\tif(errorAngle < 0){\n\t\t\t\tif(rightSpeed < maxSpeed){\n\t\t\t\t\trightSpeed += (motorChange * 1.4 * Math.abs(errorAngle));\n\t\t\t\t} else {\n\t\t\t\t\tleftSpeed -= (motorChange * 1.4 * Math.abs(errorAngle));\n\t\t\t\t}\n\t\t\t//turning too far left\n\t\t\t} else if(errorAngle > 0){\n\t\t\t\tif(leftSpeed < maxSpeed){\n\t\t\t\t\tleftSpeed += (motorChange * 1.4 * Math.abs(errorAngle));\n\t\t\t\t} else {\n\t\t\t\t\trightSpeed -= (motorChange * 1.4 * Math.abs(errorAngle));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSmartDashboard.putDouble(\"Auto Angle Error\", errorAngle);\n\t\tSmartDashboard.putNumber(\"Auto Distance Error\", errorDistance);\n\n\t\t\t\t\n\t\t//clamp set speeds so they can be applied to the \n\t\t//motors without errors or exceptions\n\t\tleftSpeed = Robot.ktMath.clamp(leftSpeed, minSpeed, maxSpeed);\n\t\trightSpeed = Robot.ktMath.clamp(rightSpeed, minSpeed, maxSpeed);\n\t\t\n\t\tif(refinedDistance == false && incSpeed == false){\n\t\t\t//Update driving speeds on both sides of the driveTrain\n\t\t\tif (leftSpeed * kP * errorDistance * flip >= leftSpeed * flip) {\n\t\t\t\tRobot.driveTrain.leftDrive.set(leftSpeed * flip);\n\t\t\t\tRobot.driveTrain.leftDrive2.set(leftSpeed * flip);\n\t\t\t} else {\n\t\t\t\tRobot.driveTrain.leftDrive.set(leftSpeed * kP * errorDistance * flip);\n\t\t\t\tRobot.driveTrain.leftDrive2.set(leftSpeed * kP * errorDistance * flip);\n\t\t\t}\n\t\t\t\n\t\t\tif (rightSpeed * kP * errorDistance * flip >= rightSpeed * flip) {\n\t\t\t\tRobot.driveTrain.rightDrive.set(-rightSpeed * flip);\n\t\t\t\tRobot.driveTrain.rightDrive2.set(-rightSpeed * flip);\n\t\t\t} else {\n\t\t\t\tRobot.driveTrain.rightDrive.set(-rightSpeed * kP * errorDistance * flip);\n\t\t\t\tRobot.driveTrain.rightDrive2.set(-rightSpeed * kP * errorDistance * flip);\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.abs(errorDistance) < tolerance){\n\t\t\t\trefinedDistance = true;\n\t\t\t}\n\t\t} else if(incSpeed == false){\n\t\t\tif(errorDistance > 0){\n \t\t\tRobot.driveTrain.leftDrive.set(refiningMotorSpeed * flip);\n\t \t\tRobot.driveTrain.leftDrive2.set(refiningMotorSpeed * flip);\n\t Robot.driveTrain.rightDrive.set(-refiningMotorSpeed * flip);\n\t Robot.driveTrain.rightDrive2.set(-refiningMotorSpeed * flip);\n \t\t} else {\n \t\t\tRobot.driveTrain.leftDrive.set(-refiningMotorSpeed * flip);\n\t \t\tRobot.driveTrain.leftDrive2.set(-refiningMotorSpeed * flip);\n\t Robot.driveTrain.rightDrive.set(refiningMotorSpeed * flip);\n\t Robot.driveTrain.rightDrive2.set(refiningMotorSpeed * flip);\n \t\t}\n \t\t\n \t\t/*if(Math.abs(errorDistance) < refinedTolerance){\n \t\t\tRobot.driveTrain.leftDrive.set(0);\n \t\t\tRobot.driveTrain.rightDrive.set(0);\n \t\t\tfinished = true;\n \t\t}*/\n\t\t}\n\t\t\n\t\tif(Math.abs(errorDistance) < refinedTolerance){\n\t\t\tRobot.driveTrain.leftDrive.set(0);\n\t\t\tRobot.driveTrain.rightDrive.set(0);\n\t\t\tfinished = true;\n\t\t}\n\t\t\n\t\tSmartDashboard.putNumber(\"Auto Left Enc\", Robot.driveTrain.leftEnc.getDistance());\n\t\tSmartDashboard.putNumber(\"Auto Right Enc\", Robot.driveTrain.rightEnc.getDistance());\n\t\tSmartDashboard.putNumber(\"Auto Enc Dist Combined\", errorDistance);\n\t}", "public boolean iterate() {\n\t\tupdated = false;\n//\t\tSystem.out.println(\"QN iterations \"+iterations);\n\t\tif( mode == 0 ) {\n\t\t\treturn computeSearchDirection();\n\t\t} else {\n\t\t\treturn performLineSearch();\n\t\t}\n\t}", "public void run() {\r\n\t\t\t\t\r\n\t\t\t\tdouble t=0; //setting the time = 0\r\n\t\t\t\tdouble Vt = g / (4*Pi*bSize*bSize*k); // Terminal velocity\r\n\t\t\t\tdouble Vox = Vo*Math.cos(theta*Pi/180); // X component of initial velocity\r\n\t\t\t\tdouble Voy=Vo*Math.sin(theta*Pi/180); // Y component of initial velocity\r\n\t\t\t\t\r\n\t\t\t\tdouble Vx; \r\n\t\t\t\tdouble Vy;\r\n\t\t\t\t\r\n\t\t\t\tdouble Xlast=0; //defining Xlast before the simulation\r\n\t\t\t\tdouble Ylast=0; //defining Ylast before the simulation\r\n\t\t\t\t\r\n\t\t\t\tdouble KEx = 0.5*Vox*Vox; //Kinetic energy in X direction\r\n\t\t\t\tdouble KEy = 0.5*Voy*Voy; //Kinetic energy in Y direction\r\n\t\t\t\t\r\n\t\t\t\tdouble KExx =KEx; \r\n\t\t\t\tdouble KEyy = KEy;\r\n\t\t\t\t\r\n\t\t\t\tdouble X= 0;\r\n\t\t\t\tdouble Y;\r\n\t\t\t\t\r\n\t\t\t\tint ScrX;\r\n\t\t\t\tint ScrY;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\twhile (SIMRunning) { //start of the simulation loop\r\n//\t\t\t\tif(bSim.keepGoing) {\r\n\t\t\t\t\r\n\t\t\t\tX = Vox*Vt/g*(1-Math.exp(-g*t/Vt)) + Xi; // X position during simulation\r\n\t\t\t\tY = (bSize + Vt/g*(Voy+Vt)*(1-Math.exp(-g*t/Vt))-Vt*t); // Y position during simulation\r\n\t\t\t\t\r\n\t\t\t\tVy=(Y-Ylast)/DELTA;// Estimate Vy from difference\r\n\t\t\t\tVx = (X-Xlast)/DELTA; // Estimate Vx from difference\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tif (Vy<0 && Y<=bSize) { //when collision is detected \r\n\t\t\t\t\t\tKExx=KEx;\r\n\t\t\t\t\t\tKEyy=KEy;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tKEx = 0.5*Vx*Vx*(1-loss); //change of the kinetic energy in X direction\r\n\t\t\t\t\t\tKEy = 0.5*Vy*Vy*(1-loss); //change of the kinetic energy in Y direction\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t if(Vox<0) {\r\n\t\t\t\t\t\t\tVox = -Math.sqrt(KEx*2); //X component of initial velocity affected by the loss of energy\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t else {\r\n\t\t\t\t\t\t\tVox = Math.sqrt(KEx*2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tVoy = Math.sqrt(KEy*2); //Y component of initial velocity affected by the loss of energy\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tt=0;\r\n\t\t\t\t\t\tXi = X; // change of Xinit for the next parabola\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t//display updates\r\n\t\t\t\tScrX = (int) ((X-bSize)*SCALE);\r\n\t\t\t\tScrY = (int) (HEIGHT-(Y+bSize)*SCALE);\r\n\t\t\t\tmyBall.setLocation(ScrX,ScrY);\r\n\t\t\t\t\t\r\n\t\t\t\tXlast=X;\r\n\t\t\t\tYlast=Y;\r\n\t\t\t\tt += DELTA;\t\t\r\n\t\t\t\r\n\t\t\t//if the TracePoint method from bSim equals to true\r\n\t\t\t//trace the trajectory\r\n\t\t\tif(link.getTracePoint()) {\r\n\t\t\t\tdotTrace(X,Y);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tif ((KEx+KEy)<ETHR || (KEx+KEy)>(KExx+KEyy)) {\t//condition to break\t\r\n\t\t \t SIMRunning=false;\t\t//state of the simulation\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(50); //pause for 50 milliseconds\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcatch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\t//}\r\n//\t\t\tif((KEx+KEy)>ETHR && (KExx+KEyy>=(KEx+KEy)));\r\n//\t\t\t\tSIMRunning = false; //state of the simulation \r\n\t\t\r\n\t}", "protected void execute() {\n\n\t\t// SmartDashboard.putString(\"DB/String 0\", \"Vision was reached = \" +\n\t\t// Vision.getInstance().reached());\n\n\t\t// checks to see if the trigger is pressed, and sends diff variables\n\t\t// accordingly\n\n\t\tif (DriveTrain.getInstance().orientationTriggerGet()) {\n\t\t\tDriveTrain.getInstance().tankDrive(getLeftStick(), -getRightStick(), squaredInputs);\n\n\t\t} else {\n\t\t\tDriveTrain.getInstance().tankDrive(-getRightStick(), getLeftStick(), squaredInputs);\n\t\t}\n\n\t}", "@Override\t\n\tpublic void run() {\n\t\tif(running) {\n\t\t\ttry {\n\t\t\t\tfloat[] results=new float[3];\n\t\t\t\tLocation current;\n\t\t\t\tcurrent=gps.getCurrentLocation();\t\t\n\t\t\t\tLocation.distanceBetween(current.getLatitude(), current.getLongitude(), step.getLocation().getLatitude(), step.getLocation().getLongitude(), results);\t\t\n\t\t\t\tdistance=results[0];\n\t\t\t\t\n\t\t\t\tamount++;\n\t\t\t\t\n\t\t\t\tif(amount==3) {\n\t\t\t\t\tchange=true;\n\t\t\t\t\tvoicer.speak(\"Para\");\n\t\t\t\t\tamount=0;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tvoicer.speak(\"Continúa \"+(int)distance);\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\tcatch(Exception ex) {\n\t\t\t\tvoicer.speak(\"Excepcionaca\");\n\t\t\t}\n\t\t}\t\t\n\t}", "@Override\r\n public void initialRun(){\r\n tProcess = parser.nextSimProcessTime();\r\n System.out.println();\r\n boolean goRun=true;\r\n while(goRun){\r\n\r\n if(currentTime == tProcess){\r\n mc = parser.simProcess(mc);\r\n tProcess = parser.nextSimProcessTime();\r\n }\r\n mc.doOneStep();\r\n\r\n if(makeVideo){\r\n if(currentTime%FrameRate ==0){\r\n\r\n vid.addLatticeFrame(mc.getSimSystem().getSystemImg());\r\n makeVideo = vid.isWritten();\r\n }\r\n }\r\n\r\n if((currentTime % 10) ==0){System.out.println(\"t:\"+currentTime+\" M:\"+mc.getM());}\r\n currentTime++;\r\n\r\n\r\n goRun = !(mc.nucleated());\r\n if(mc.getM()<0 && currentTime> 300){goRun=false;}\r\n if(currentTime > maxT){goRun= false;}\r\n }\r\n\r\n if(makeVideo){\r\n vid.writeVideo();\r\n }\r\n }", "@Override\n public void execute() {\n var swerveModuleStates = calcDrive(//\n xSmooth.calc(xSpd.get() * DriveConstants.kTeleDriveMaxSpeedMetersPerSecond), //\n ySmooth.calc(ySpd.get() * DriveConstants.kTeleDriveMaxSpeedMetersPerSecond), //\n rotSmooth.calc(rotSpd.get() * DriveConstants.kTeleDriveMaxAngularSpeedRadiansPerSecond), //\n fieldOriented);\n swerveDrivetrain.setModuleStates(swerveModuleStates);\n }", "private void doVels() {\n\t\tthis.launchPerVel = Math.sqrt((2d * body.getGm() * this.launchApoAlt) / (this.launchPerAlt * this.a));\n\t\tthis.launchApoVel = Math.sqrt((2d * body.getGm() * this.launchPerAlt) / (this.launchApoAlt * this.a));\n\t}", "protected void execute() {\r\n\t//double leftSpeed = oi.leftUpAndDown();\r\n\tdouble leftSpeed = motorScalerLeft.scale(oi.leftUpAndDown() * fullSpeed);\r\n\tSmartDashboard.putNumber(\"debug\\\\leftSpeed\", leftSpeed);\r\n\t\r\n\t//double rightSpeed = oi.rightUpAndDown();\r\n\tdouble rightSpeed = motorScalerRight.scale(oi.rightUpAndDown() * fullSpeed);\r\n\tSmartDashboard.putNumber(\"debug\\\\rightSpeed\", rightSpeed);\r\n\t\r\n\ttheDrive.goVariable(-leftSpeed,-rightSpeed);\r\n }", "public void run() {\r\n if (stateRegistry.getDriveDirection() == REVERSE) {\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontRight, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearRight, true);\r\n robotDrive.tankDrive(rightDriveJoystick, leftDriveJoystick);\r\n }\r\n else {\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kFrontRight, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearLeft, false);\r\n robotDrive.setInvertedMotor(RobotDrive.MotorType.kRearRight, false);\r\n robotDrive.tankDrive(leftDriveJoystick, rightDriveJoystick);\r\n }\r\n }", "@Override\n\tprotected void execute() {\n\t\tif (isFinished()) {\n\t\t\tRobot.drive.speed(0.0, 0.0);\n\t\t\treturn;\n\t\t}\n\n\t\tdouble distance = Robot.lidar.getRange() - range;\n\t\tdouble speed = Math.cbrt(distance / 3.0) / 3.0;\n\t\tRobot.drive.speed(-speed, -speed);\n\t\tSmartDashboard.putNumber(\"Drive Range Distance\", distance);\n\t}", "public void run() {\n\t\tinit();\n\t\thalt = false;\n\t\tif (convex == null) {\n\t\t\treturn;\n\t\t}\n\t\twhile (!halt && queue.size() > 0) {\n\t\t\tstep();\n\t\t\tevaluateCurrentLevel();\n\t\t}\n\t\talreadyRun = true;\n\t}", "@Override\n public void execute() {\n // finds goal and gets speed to turn\n double speed = vision.getPIDOfGoal();\n if (speed == -1000)\n return;\n\n // System.out.println(speed);\n drivetrain.tankDrive(speed, -speed);\n }", "public void run() {\n initRun();\n while (true) {\n this.step();\n }\n }", "@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tif(!(mazeCollection.containsKey(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Maze doesn't exist\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t//if solution for this maze exists\n\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tif(paramArray[1].toString().equals(\"bfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> bfs=new BFS<Position>();\n\t\t\t\t\tSolution<Position> sol=bfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(paramArray[1].toString().equals(\"dfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> dfs=new DFS<Position>();\n\t\t\t\t\tSolution<Position> sol=dfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Invalid algorithm\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public int run(Point xS, Point xE)\n throws OptimizerException, Exception\n {\n boolean terminate = false;\n boolean f1eqf2 = false;\n // Vector of points, used for parallel computation\n Point[] x = new Point[2];\n x[0] = new Point(xS.getDimensionContinuous(), xS.getDimensionDiscrete(), xS.getDimensionF());\n x[1] = (Point)x0.clone();\n \n x0 = (Point)xS.clone();\n x3 = (Point)xE.clone();\n \n dx = LinAlg.subtract(x3.getX(), x0.getX());\n double I = 1.; // interval length (in terms of alpha, which is normalized)\n nIntRed = 0; // zero-based step of interval division\n I *= getReductionFactor();\n x[1].setX( LinAlg.add(x0.getX(), LinAlg.multiply(I, dx)) );\n nIntRed++;\n I *= getReductionFactor();\n x[0].setX( LinAlg.add(x0.getX(), LinAlg.multiply(I, dx)) );\n // initial function evaluation\n\n x = getF(x);\n \tx1 = (Point)x[0].clone();\n x2 = (Point)x[1].clone();\n\n do\n {\n nIntRed++;\n I *=getReductionFactor();\n\n if (x2.getF(0) < x1.getF(0))\n { // data management\n fLowBor = x1.getF(0); // we need that for one of the stopping criteria\n x0 = (Point)x1.clone();\n x1 = (Point)x2.clone();\n // new point\n x2.setX( LinAlg.subtract(x3.getX(), LinAlg.multiply(I, dx)) );\n x2 = getF(x2);\n }\n else\n { // data management\n fLowBor = x2.getF(0); // we need that for one of the stopping criteria\n x3 = (Point)x2.clone();\n x2 = (Point)x1.clone();\n // new point\n x1.setX( LinAlg.add(x0.getX(), LinAlg.multiply(I, dx)) );\n x1 = getF(x1);\n }\n\n // check for null space of objective function, unless\n // stoCri is equal to one\n if (stoCri != 1 && x1.getF(0) == x2.getF(0))\n {\n if (f1eqf2) // the last two were also equal, so the\n terminate = true; // current three are equal\n f1eqf2 = true;\n }\n else // reset flag\n f1eqf2 = false;\n } while (iterate() && !terminate);\n\n // tolerance achieved or maximum number of iteration exceeded\n // store minimum value\n if (x1.getF(0) < x2.getF(0))\n {\n xLow = (Point)x0.clone();\n xMin = (Point)x1.clone();\n xUpp = (Point)x2.clone(); \n }\n else\n {\n xLow = (Point)x1.clone();\n xMin = (Point)x2.clone();\n xUpp = (Point)x3.clone(); \n }\n // if we got a null space\n if (terminate) return -2;\n // check whether the maximum number of iteration is exceeded\n if (stoCri == 1)\n if (!isDFltdFMin()) return -1;\n // if search has been successful\n return +1;\n }", "public void run() {\n // Main loop:\n // Perform simulation steps of 64 milliseconds\n // and leave the loop when the simulation is over\n while (step(64) != -1) {\n // Read the _distanceSensors:\n // Enter here functions to read sensor data, like:\n // double val = distanceSensor.getValue();\n\n // Process sensor data here\n\n // Enter here functions to send actuator commands, like:\n // led.set(1);\n };\n }", "@Override\n public void run() {\n\n // Define vehicle label if undefined\n if (this.label == null) {\n this.label = \"Vehicle_\" + this.getId();\n }\n\n // Ask roundabout object for path\n Deque<Vertex<AtomicReference>> path = this.getVehicleRoute(this.source, this.destination);\n Vertex<AtomicReference> last = null;\n\n // Get entry queue\n ConcurrentLinkedQueue<Vehicle> entry = this.roundabout.queueOnEntry(this, this.source);\n\n // Wait for first in queue\n while (entry.peek() != this) this.vehicleSleep(waitOnQueue());\n\n // Traverse Path\n for (Vertex<AtomicReference> v : path) {\n\n // Accelerate between path nodes\n if (this.speed < this.maxSpeed) this.speed = accelerate(this.speed);\n\n // Move to node\n while (!v.getValue().compareAndSet(null, this)) {\n\n // Decelerate to not crash into another vehicle\n while (this.speed > 0) this.speed = decelerate(this.speed);\n\n System.out.println(this.label + \": Waiting for next node \" + v.getKey());\n\n // Wait\n this.vehicleSleep(waitToTravel());\n }\n\n // Accelerate for next in case it has stopped\n while (this.speed <= 0) this.speed = accelerate(this.speed);\n\n System.out.println(this.label + \": Moving to node \" + v.getKey() + \" for \" + travel());\n\n // Moving from node to node\n this.vehicleSleep(travel());\n\n // Remove myself from queue only after locking the first node\n if (path.peekFirst() == v) entry.remove(this);\n\n // Release last node\n while (last != null && !last.getValue().compareAndSet(this, null)) ;\n\n // Assign v as the last node which it travelled to\n last = v;\n }\n\n // Release last node\n while (!last.getValue().compareAndSet(this, null)) ;\n }", "private static void runAll() throws InterruptedException {\r\n\t\tSystem.out.println(RankEvaluator.printTitle() + \"\\tAvgP\\tTrain Time\\tTest Time\");\r\n\t\t\r\n\t\t// Prefetching user/item similarity:\r\n\t\tif (userSimilarityPrefetch) {\r\n\t\t\tuserSimilarity = calculateUserSimilarity(MATRIX_FACTORIZATION, ARC_COS, 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tuserSimilarity = new SparseMatrix(userCount+1, userCount+1);\r\n\t\t}\r\n\t\t\r\n\t\tif (itemSimilarityPrefetch) {\r\n\t\t\titemSimilarity = calculateItemSimilarity(MATRIX_FACTORIZATION, ARC_COS, 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\titemSimilarity = new SparseMatrix(itemCount+1, itemCount+1);\r\n\t\t}\r\n\t\t\r\n\t\t// Regularized SVD\r\n\t\tint[] svdRank = {1, 5, 10};\r\n\t\t\r\n\t\tfor (int r : svdRank) {\r\n\t\t\tdouble learningRate = 0.005;\r\n\t\t\tdouble regularizer = 0.1;\r\n\t\t\tint maxIter = 100;\r\n\t\t\t\r\n\t\t\tbaseline = new RegularizedSVD(userCount, itemCount, maxValue, minValue,\r\n\t\t\t\tr, learningRate, regularizer, 0, maxIter, false);\r\n\t\t\tSystem.out.println(\"SVD\\tFro\\t\" + r + \"\\t\" + testRecommender(\"SVD\", baseline));\r\n\t\t}\r\n\t\t\r\n\t\t// Rank-based SVD\r\n\t\tint[] rsvdRank = {1, 5, 10};\r\n\t\tfor (int r : rsvdRank) {\r\n\t\t\trunRankBasedSVD(RankEvaluator.LOGISTIC_LOSS, r, 6000, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.LOG_LOSS_MULT, r, 1700, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.LOG_LOSS_ADD, r, 1700, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.EXP_LOSS_MULT, r, 370, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.EXP_LOSS_ADD, r, 25, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.HINGE_LOSS_MULT, r, 1700, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.HINGE_LOSS_ADD, r, 1700, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.EXP_REGRESSION, r, 40, true);\r\n\t\t}\r\n\t\t\r\n\t\t// Paired Global LLORMA\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 5, 1, 1500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 5, 5, 1000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 5, 10, 500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 10, 1, 3000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 10, 5, 2000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 10, 10, 1000, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 5, 1, 1200, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 5, 5, 1200, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 5, 10, 900, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 10, 1, 3000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 10, 5, 3000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 10, 10, 2000, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 5, 1, 450, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 5, 5, 250, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 5, 10, 110, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 10, 1, 1000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 10, 5, 400, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 10, 10, 200, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 5, 1, 20, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 5, 5, 13, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 5, 10, 7, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 10, 1, 40, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 10, 5, 25, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 10, 10, 15, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 5, 1, 1000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 5, 5, 500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 5, 10, 300, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 10, 1, 2000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 10, 5, 1000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 10, 10, 500, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 5, 1, 1200, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 5, 5, 1200, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 5, 10, 500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 10, 1, 2500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 10, 5, 2500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 10, 10, 1000, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 5, 1, 60, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 5, 5, 40, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 5, 10, 20, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 10, 1, 120, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 10, 5, 80, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 10, 10, 40, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 5, 1, 4500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 5, 5, 3500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 5, 10, 2500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 10, 1, 9000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 10, 5, 7000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 10, 10, 5000, true);\r\n\t}", "private void runBest() {\n }", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tvd.increase();\r\n\t\t\t\t}", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\t\n\t\t\tgenerateVisitors();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\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\tgenerateOutVisitors();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\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 static void DVR(int startingRouterId) {\n /**\n * pseudocode\n */\n /*\n while(convergence)\n {\n //convergence means no change in any routingTable before and after executing the following for loop\n for each router r <starting from the router with routerId = startingRouterId, in any order>\n {\n 1. T <- getRoutingTable of the router r\n 2. N <- find routers which are the active neighbors of the current router r\n 3. Update routingTable of each router t in N using the \n routing table of r [Hint: Use t.updateRoutingTable(r)]\n }\n }\n */\n\n convergence = true;\n\n while (convergence) {\n convergence = false;\n int count = 0;\n int id = 0;\n while (count < routers.size()) {\n id = (startingRouterId + count - 1) % (routers.size()) + 1;\n Router router = getRouter(id);\n System.out.println(\"DVR on router: \" + router.getRouterId());\n\n for (Integer neighbourId : router.getNeighborRouterIds()) {\n Router neighbour = getRouter(neighbourId.intValue());\n if (neighbour.getState()) {\n neighbour.updateRoutingTable(router);\n }\n\n }\n count++;\n }\n\n }\n\n }", "public static void main(java.lang.String[] args) {\r\n\t\tdouble TotalWaitTimeHistogram = 0;\r\n\t\tint k = 0;\r\n\t\twhile (k < 20) {\r\n\t\t\t// make a new experiment\r\n\t\t\t// Use as experiment name a OS filename compatible string!!\r\n\t\t\t// Otherwise your simulation will crash!!\r\n\t\t\r\n\t\t\tExperiment experiment = new Experiment(\"Vancarrier Model\");\r\n\r\n\t\t\t// make a new model\r\n\t\t\t// null as first parameter because it is the main model and has no\r\n\t\t\t// mastermodel\r\n\t\t\tVancarrierModel vc_1st_p_Model = new VancarrierModel(null, \"Vancarrier Model\", true, false);\r\n\r\n\t\t\t// connect Experiment and Model\r\n\t\t\tvc_1st_p_Model.connectToExperiment(experiment);\r\n\r\n\t\t\t// set trace\r\n\t\t\texperiment.tracePeriod(new TimeInstant(0), new TimeInstant(100));\r\n\r\n\t\t\t// now set the time this simulation should stop at\r\n\t\t\t// let him work 1500 Minutes\r\n\t\t\t//experiment.stop(new TimeInstant(1500));\r\n\t\t\texperiment.stop(new TimeInstant(1500));\r\n\t\t\texperiment.setShowProgressBar(false);\r\n\r\n\t\t\t// start the Experiment with start time 0.0\r\n\t\t\texperiment.start();\r\n\r\n\t\t\t// --> now the simulation is running until it reaches its ending\r\n\t\t\t// criteria\r\n\t\t\t// ...\r\n\t\t\t// ...\r\n\t\t\t// <-- after reaching ending criteria, the main thread returns here\r\n\r\n\t\t\t// print the report about the already existing reporters into the\r\n\t\t\t// report file\r\n\t\t\texperiment.report();\r\n\r\n\t\t\t// stop all threads still alive and close all output files\r\n\t\t\texperiment.finish();\r\n\r\n\t\t\tTotalWaitTimeHistogram += vc_1st_p_Model.waitTimeHistogram.getMean();\r\n\r\n\t\t\tk++;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Truck Wait Times Mean of \" + k + \" iterations: \" + (TotalWaitTimeHistogram / k));\r\n\t}", "public void execute(OutputManager om) {\n int voxelNumber = 0;\n while (CL_Initializer.data.more())\n try {\n \n double[] nextVoxel = CL_Initializer.data.nextVoxel();\n double[] nextGradAdj = {};\n if (CL_Initializer.gradAdj!= null) {\n nextGradAdj = CL_Initializer.gradAdj.nextVoxel();\n }\n\n // Fit or output background default.\n double backgroundB0 = CL_Initializer.imPars\n .geoMeanZeroMeas(nextVoxel);\n boolean bg = isBG(backgroundB0);\n if (bg) {\n int ipv = 0;\n int vps = 0;\n if (CL_Initializer.compartmentModel) {\n ipv = fitter.getNumValuesPerRun();\n vps = fitter.getNumValuesPerSolution();\n }\n else {\n ipv = inv.itemsPerVoxel();\n vps = ipv;\n }\n\n double[] voxOut = new double[ipv];\n \n for(int i=0; i<ipv; i=i+vps) {\n\n \t// Set the exitcode to -1 to indicate background.\n \tvoxOut[i] = -1;\n \n \tif (backgroundB0 > 0.0) {\n \t\tvoxOut[i+1] = Math.log(backgroundB0);\n \t} else {\n \t\tvoxOut[i+1] = 0.0;\n \t}\n }\n\t\n om.output(voxOut);\n \n // The inverter may have other operations to perform\n // in background voxels.\n if (!CL_Initializer.compartmentModel)\n inv.background();\n \n } else try {\n // Fit the model and output the result.\n if (CL_Initializer.compartmentModel) {\n double[][] fit;\n if (CL_Initializer.gradAdj!=null) {\n fit = fitter.fit(nextVoxel, nextGradAdj);\n }\n else {\n fit = fitter.fit(nextVoxel);\n }\n for (int i = 0; i < fit.length; i++) {\n om.output(fit[i]);\n }\n }\n \n else {\n\n double[] fittedData;\n if (CL_Initializer.gradAdj!=null) {\n fittedData = inv.invert(nextVoxel, nextGradAdj);\n }\n else {\n fittedData = inv.invert(nextVoxel);\n }\n\n om.output(fittedData);\n\n }\n\n } catch (MinimizerException e) {\n\n throw new LoggedException(e);\n\n }\n\n logger.fine(\"Completed voxel: \" + voxelNumber + \" \" + bg);\n\n voxelNumber++;\n \n } catch (DataSourceException e) {\n throw new LoggedException(\"The data file does not contain a whole number of voxels. Check the scheme file. Got Exception \" + e);\n }\n \n // Output statistics compiled by the inverter.\n if (!CL_Initializer.compartmentModel)\n inv.close();\n \n // Flush output\n om.close();\n \n }", "public void run() {\n\t\twhile (true){\n\t\t\tthis.value ++;\n\t\t\tsetChanged();\n\t\t\tnotifyObservers(this.value);\n\t\t\tSystem.out.println(\"Nouvelle valeur \");\n\t\t\tthis.alg.execute();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\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}", "@Override\n public DRFLPSolution algorithm(DRFLPInstance instance) {\n try {\n List<Future<DRFLPSolution>> futures = new ArrayList<>();\n RandomManager.reinitialize(RandomType.LEGACY, 0, this.n);\n for (int i = 0; i < n; i++) {\n int _i = i;\n futures.add(executor.submit(() -> {\n RandomManager.reset(_i);\n return alg.algorithm(instance);\n }));\n }\n var results = ConcurrencyUtil.awaitAll(futures);\n DRFLPSolution best = null;\n for(var solution: results){\n if(solution.isBetterThan(best)){\n best = solution;\n }\n }\n return best;\n } finally {\n executor.shutdown();\n }\n }", "private void calculations() {\n\t\tSystem.out.println(\"Starting calculations\\n\");\n\t\tcalcMedian(myProt.getChain(requestedChain));\n\t\tcalcZvalue(myProt.getChain(requestedChain));\n\t\tcalcSVMweightedZvalue(myProt.getChain(requestedChain));\n\t}", "@Override\n public void run() {\n for (int i = start; i < end; i++) {\n Node node = nodes.get(i);\n //Filter out nearby crime\n List<Crime> relatedCrimes = crimes.parallelStream()\n .filter((crime) -> Math.abs(crime.getLongitude() - node.getLongitude()) < 0.04) //1.72 miles in coordinate representation\n .filter((crime -> Math.abs(crime.getLatitude() - node.getLatitude()) < 0.04))\n .collect(Collectors.toList());\n for (Crime crime : relatedCrimes) {\n GKDE.gaussianKDEAccumulate(crime, node);\n }\n GKDE.gaussianKDEResult(node, 10);\n }\n //release the latch\n latch.countDown();\n }", "@Override\n public void run() {\n Point current = remainingPoints.remove(0); // always start at first point\n solutionOfAntK.add(current);\n Point next;\n double[] imaginaryDistances;\n double imaginaryDistance;\n int x, y; // -> index of points: -> to get the correct values form the matrices T & D\n int indexToRemove;\n for (int i = 0; i < tourSize - 1; i++) {\n imaginaryDistances = new double[remainingPoints.size()];\n imaginaryDistance = 0;\n for (int j = 0; j < remainingPoints.size(); j++) {\n next = remainingPoints.get(j);\n x = current.getId();\n y = next.getId();\n imaginaryDistances[j] = (Math.pow(T.get(x, y), alpha)) / (Math.pow(D.get(x, y), beta));\n imaginaryDistance += imaginaryDistances[j];\n }\n indexToRemove = getNextPoint(imaginaryDistances, imaginaryDistance);\n tourLengthOfAntK += utils.Utils.euclideanDistance2D(remainingPoints.get(indexToRemove), current);\n current = remainingPoints.remove(indexToRemove);\n solutionOfAntK.add(current);\n\n }\n // add distance from last point to start points\n tourLengthOfAntK += utils.Utils.euclideanDistance2D(solutionOfAntK.get(-1 + solutionOfAntK.size()), startPoint);\n\n }", "public void run() {\n\t\ttry {\n\t\t\tcurrentTime = System.currentTimeMillis();\n\t\t\twhile (distanciaAtual < distanciaTotal) {\n\t\t\t\tsteps++;\n\t\t\t\tRandom gerador = new Random();\n\t\t\t\tint passo = gerador.nextInt(6);\n\t\t\t\tdistanciaAtual += passo;\n\t\t\t\tif (steps % 10 == 0) {\n\t\t\t\t\tSystem.out.println(\"A Tartaruga Número \" + idTartaruga + \" deu: \" + steps + \" passos. E andou: \" + distanciaAtual + \" centímetros.\");\n\t\t\t\t}\n\t\t\t\tThread.sleep(gerador.nextInt(4));\n\t\t\t}\n\t\t\tdouble completedTime = System.currentTimeMillis() - currentTime;\n\t\t\tcorrida.setTempoPassosGasto(idTartaruga, completedTime, steps);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private static void vel_step ( int N, double[] u, double[] v, double[] u0, double[] v0,\r\n\t\tfloat visc, float dt )\r\n\t\t{\r\n\t\tadd_source ( N, u, u0, dt ); add_source ( N, v, v0, dt );\r\n\t\t\r\n\t\t/*\r\n\t\tdraw_dens ( N, v );\r\n\t\tdraw_dens ( N, v0 );\r\n\t\t*/\r\n\t\t\r\n\t\t//SWAP ( u0, u ); \r\n\t\t\r\n\t\tdouble[] temp;\r\n\t\ttemp=u0;\r\n\t\tu0=u;\r\n\t\tu=temp;\r\n\t\t//draw_dens ( N, u );\r\n\t\tdiffuse ( N, 1, u, u0, visc, dt );\r\n\t\t//draw_dens ( N, u );\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t//SWAP ( v0, v ); \r\n\t\t//double[] temp;\r\n\t\ttemp=v0;\r\n\t\tv0=v;\r\n\t\tv=temp;\r\n\t\t//draw_dens ( N, v );\r\n\t\t//draw_dens ( N, v0 );\r\n\t\tdiffuse ( N, 2, v, v0, visc, dt );\r\n\t\t//draw_dens ( N, v );\r\n\t\t//System.out.println(\"V\");\r\n\t\t//draw_dens ( N, v );\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\tdraw_dens ( N, v );\r\n\t\tdraw_dens ( N, v0 );\r\n\t\t*/\r\n\t\tproject ( N, u, v, u0, v0 );\r\n\t\t//SWAP ( u0, u ); \r\n\t\ttemp=u0;\r\n\t\tu0=u;\r\n\t\tu=temp;\r\n\t\t\r\n\t\t//SWAP ( v0, v );\r\n\t\ttemp=v0;\r\n\t\tv0=v;\r\n\t\tv=temp;\r\n\t\t//System.out.println(\"V\");\r\n\t\t//draw_dens ( N, v );\r\n\t\t\r\n\t\t/*\r\n\t\tdraw_dens ( N, v );\r\n\t\tdraw_dens ( N, v0 );\r\n\t\t*/\r\n\t\t\r\n\t\tadvect ( N, 1, u, u0, u0, v0, dt ); \r\n\t\tadvect ( N, 2, v, v0, u0, v0, dt );\r\n\t\tproject ( N, u, v, u0, v0 );\r\n\t\t}", "@Override\n public void run() {\n while (Step < 4) {\n switch (Step) {\n case 0:\n paso0();\n break;\n case 1:\n paso1();\n break;\n case 2:\n paso2();\n break;\n case 3:\n paso3();\n break;\n default:\n graph.NodoObjetivo = miObjetivo;\n graph.paintGrafo();\n }\n // retardo de un segundo\n graph.sleep();\n }\n graph.NodoObjetivo = miObjetivo;\n graph.paintGrafo();\n }", "@Override\n\t\tpublic void run() {\n\t\t\twhile(!board.hasConverged()){\n\t\t\t\tfor(int x=0; x<board.getMaxX();x++)\n\t\t\t\t\tfor(int y=0; y<board.getMaxY();y++)\n\t\t\t\t\t\tboard.setNewValue(x,y,computeValue(x,y));\n\t\t\t\ttry{\n\t\t\t\t\tbarrier.await();//每次调用 await() 都将返回能到达屏障处的线程的索引\n\t\t\t\t}catch(InterruptedException ex){\n\t\t\t\t\treturn;\n\t\t\t\t}catch (BrokenBarrierException ex){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void calibrationPhase() {\n\t\t// iterate over all secret combination\n\t\tfor (Secret secretA : this.dataSet.getSecrets()) {\n\t\t\tfor (Secret secretB : this.dataSet.getSecrets()) {\n\t\t\t\tif(secretA != secretB) {\n\t\t\t\t\tif(this.optimalBox[0] == 0.0 && this.optimalBox[1] == 0.0) {\n\t\t\t\t\t\tif(searchOptimalBox(secretA, secretB)) {\n\t\t\t\t\t\t\tint smallestSize = searchSmallestSize(secretA, secretB);\n\t\t\t\t\t\t\tthis.openValidationPhase(secretA, secretB, smallestSize, this.optimalBox);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthis.optimalBox = new double[2];\n\t\t\t\t\t\tthis.optimalBox[0] = 0.0;\n\t\t\t\t\t\tthis.optimalBox[1] = 0.0;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint smallestSize = searchSmallestSize(secretA, secretB);\n\t\t\t\t\t\tif(smallestSize != 0) {\n\t\t\t\t\t\t\tplotPool.plot(\"Filtered Measurments: User Input Optimal Box (\" + secretA.getName() + \"-\" + secretB.getName() + \")\", this.optimalBox[0], this.optimalBox[1]);\n\n\t\t\t\t\t\t\tthis.openValidationPhase(secretA, secretB, smallestSize, this.optimalBox);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlogger.warning(secretA.getName() + \" < \" + secretB.getName() + \": no significant different result found! You need to measure more times.\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "protected void execute() {\n \tSystem.out.println(\"Gyro: \" + Drivetrain.gyro.getAngle());\n\t\tif (degrees > 0) {\n\t\t\twhile (Drivetrain.gyro.getAngle() < degrees) {\n\t\t\t\tDrivetrain.frontRight.set(ControlMode.PercentOutput, 0.25);\n\t\t\t\tDrivetrain.rearRight.set(ControlMode.PercentOutput, 0.25);\n\t\t\t\tDrivetrain.frontLeft.set(ControlMode.PercentOutput, 0.25);\n\t\t\t\tDrivetrain.rearLeft.set(ControlMode.PercentOutput, 0.25);\n\t\t\t}\n\t\t} \n\t\telse {\n\t\t\twhile (Drivetrain.gyro.getAngle() > degrees) {\n\t\t\t\tDrivetrain.frontRight.set(ControlMode.PercentOutput, -0.25);\n\t\t\t\tDrivetrain.rearRight.set(ControlMode.PercentOutput, -0.25);\n\t\t\t\tDrivetrain.frontLeft.set(ControlMode.PercentOutput, -0.25);\n\t\t\t\tDrivetrain.rearLeft.set(ControlMode.PercentOutput, -0.25);\n\t\t\t}\n\t\t}\n }", "private static void automate() {\n \tLOG.info(\"Begin automation task.\");\n \t\n \tcurrentOpticsXi = clArgs.clusteringOpticsXi;\n \tdouble opticsXiMax = (clArgs.clusteringOpticsXiMaxValue > ELKIClusterer.MAX_OPTICS_XI ? ELKIClusterer.MAX_OPTICS_XI : clArgs.clusteringOpticsXiMaxValue);\n \tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \tint opticsMinPointsMax = clArgs.clusteringOpticsMinPtsMaxValue;\n \t\n \tLOG.info(\"optics-xi-start: {}, optics-xi-min-points-start: {}, optics-xi-step-size: {}, optics-min-points-step-size: {}\",\n \t\t\tnew Object[] { \n \t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints), \n \t\t\t\tdf.format(clArgs.clusteringOpticsXiStepSize), df.format(clArgs.clusteringOpticsMinPtsStepSize)\n \t\t\t});\n \t\n \twhile (currentOpticsXi <= opticsXiMax) {\n \t\twhile (currentOpticsMinPoints <= opticsMinPointsMax) {\n \t\t\t// Run automation for each combination of opticsXi and opticsMinPoints\n \t\t\tLOG.info(\"Run automation with optics-xi: {}, optics-xi-min-points: {}\", \n \t\t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints));\n \t\t\t\n \t\t\ttry {\n\t \t\t\t// Step 1: Clustering\n\t \t\t\tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir, currentOpticsXi, currentOpticsMinPoints);\n\t \t\t\t\n\t \t\t\t// Step 2: Build shared framework\n\t \t\t\tbuildFramework();\n\t \t\t\t\n\t \t\t\t// Step 3: Build user hierarchical graphs\n\t \t\t\tbuildHierarchicalGraphs();\n\t \t\t\t\n\t \t\t\t// Step 4: Calculate similarity between all users and create evaluation results afterwards\n\t \t\t\tcalculateSimilarity();\n \t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(\"An error occurred during the automation task. Jumping to the next pass.\", e);\n\t\t\t\t} finally {\n\t \t\t\t// Step 5: Clean up for the next run\n\t \t\t\tcleanAutomationResults();\n\t \t\t\t\n\t \t\t\t// Increase the currentOpticsMinPoints for the next run if desired\n\t \t\t\tif (clArgs.clusteringOpticsMinPtsStepSize > 0)\n\t \t\t\t\tcurrentOpticsMinPoints += clArgs.clusteringOpticsMinPtsStepSize;\n\t \t\t\telse\n\t \t\t\t\tbreak;\n\t\t\t\t}\n \t\t}\n \t\t// Reset current values\n \t\tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \t\t\n \t\t// Increase currentOpticsXi for the next run if desired\n \t\tif (clArgs.clusteringOpticsXiStepSize > 0)\n\t\t\t\tcurrentOpticsXi += clArgs.clusteringOpticsXiStepSize;\n\t\t\telse\n\t\t\t\tbreak;\n \t}\n \t\n \tLOG.info(\"End automation task.\");\n }", "public void run() {\n\t\t\t\tfor(int each=0; each<this.inputString.length(); each++) {\r\n\t\t\t\t\tCharacter currentInput = this.inputString.charAt(each);\r\n\t\t\t\t\t//Test input char\r\n\t\t\t\t\tif(!currentInput.equals('0') && !currentInput.equals('1') ) {\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//Make the transition\r\n\t\t\t\t\tthis.currentState = this.delta.calculate(this.currentState.getToken()+currentInput);\r\n\t\t\t\t\tthis.currentlyRead += currentInput;\r\n\t\t\t\t\tSystem.out.println(\"Remainder for : \" + Integer.parseInt(this.currentlyRead ,2)\r\n\t\t\t\t\t\t\t\t\t\t+ \" -> \"+Integer.parseInt(this.gamma.getOuput(currentState),2));\r\n\t\t\t\t}\r\n\r\n\t}", "public void run() {\n if(_dest!=null) {\n approachDest();\n return;\n }\n if(Rand.d100(_frequency)) {\n MSpace m = in.b.getEnvironment().getMSpace();\n if(!m.isOccupied()) {\n Logger.global.severe(in.b+\" has come unstuck\");\n return;\n }\n MSpace[] sur = m.surrounding();\n int i = Rand.om.nextInt(sur.length);\n for(int j=0;j<sur.length;j++) {\n if(sur[i]!=null&&sur[i].isWalkable()&&accept(sur[i])) {\n in.b.getEnvironment().face(sur[i]);\n MSpace sp = in.b.getEnvironment().getMSpace().move(in.b.getEnvironment().getFacing());\n if(sp!=null&&(in.b.isBlind()||!sp.isOccupied())) {\n _move.setBot(in.b);\n _move.perform();\n }\n break;\n }\n if(++i==sur.length) {\n i = 0;\n }\n }\n }\n else if(_dest==null&&Rand.d100(_travel)) {\n _dest = findNewSpace();\n //System.err.println(in.b+\" DEST: \"+_dest);\n }\n }", "public void run() {\n System.out.println(name + \" , go!!!\" );\n\n //start running\n while (getCheckpoint() != 20){\n //delay running\n int randNumber = (int) Math.round(LetsGO.getRandomNumber()*weight);\n try {\n Thread.sleep(randNumber);\n }\n catch (InterruptedException e){\n System.out.println(name+\"interrupted.\");\n }\n System.out.println(name + \" has passed checkpoint\" + checkpoint);\n checkpoint++;\n }\n //finished running\n System.out.println(name + \"has finished!\");\n }" ]
[ "0.6523486", "0.6437068", "0.63944566", "0.6352836", "0.61815435", "0.61784583", "0.610698", "0.61008877", "0.60562086", "0.605286", "0.60216355", "0.6004237", "0.59815305", "0.59490746", "0.5945702", "0.5933726", "0.5928147", "0.5915611", "0.5913177", "0.59096485", "0.5877799", "0.58763516", "0.58754146", "0.5839762", "0.5839289", "0.5809761", "0.5788041", "0.5780365", "0.5772478", "0.5760591", "0.5727927", "0.5718078", "0.57139164", "0.5709297", "0.5699283", "0.56978047", "0.5680444", "0.56755096", "0.56669", "0.56607395", "0.56495506", "0.56454337", "0.564436", "0.5642217", "0.56275403", "0.562688", "0.562292", "0.5620504", "0.55934197", "0.5591925", "0.5580655", "0.558036", "0.5574848", "0.5566677", "0.55645585", "0.5561858", "0.5558581", "0.5558344", "0.55576754", "0.55240273", "0.552322", "0.5522917", "0.55210954", "0.5516235", "0.5506133", "0.5503387", "0.5501357", "0.54918563", "0.5485082", "0.54820514", "0.5470494", "0.5470371", "0.546782", "0.54554", "0.54432416", "0.54394084", "0.5437981", "0.54373056", "0.54364693", "0.5435968", "0.543592", "0.54292595", "0.54262644", "0.5422669", "0.54169166", "0.5413128", "0.5412231", "0.5409806", "0.54069203", "0.53936344", "0.539342", "0.53927124", "0.53893554", "0.5389273", "0.5386448", "0.53816956", "0.538084", "0.5378382", "0.5378089", "0.5373512", "0.5373393" ]
0.0
-1
/ Track the best route from a source to a destination
public void findBestRoute(Node src, Node dst) { ArrayList<Node> route = new ArrayList<>(); Node curr = src; while (!curr.getName().equals(dst.getName())) { curr = curr.getForwardingTable().get(dst); route.add(curr); } System.out.print("Best route so far is: "); for (Node node : route) { System.out.print(node.getName() + " "); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processDetect(String destinationIP) {\n WeightedGraph graph = WeightedGraph.createFromLSD(this.routerDesc, this.lsd);\n WeightedGraph.Vertex root = graph.getVertex(this.routerDesc.simulatedIPAddress);\n WeightedGraph.Vertex target = graph.getVertex(destinationIP);\n\n if(target == null) {\n LOG.info(\"No target found\");\n return;\n }\n\n graph.execute(root);\n\n List<WeightedGraph.Vertex> path = graph.getPath(target);\n if(path == null) {\n LOG.info(\"No path found\");\n } else {\n WeightedGraph.Vertex from = null;\n StringBuilder pathBuild = new StringBuilder();\n\n for(WeightedGraph.Vertex v : path) {\n if(from != null) {\n WeightedGraph.Edge e = graph.getEdge(from, v);\n pathBuild.append(\" ->(\").append(e.cost).append(\") \");\n }\n\n pathBuild.append(v.value + \" \");\n from = v;\n }\n\n LOG.info(pathBuild.toString());\n }\n }", "private List<Pair<Integer, Integer>> getBestPath(Pair<Integer, Integer> curLocation, Pair<Integer, Integer> dest) {\n\t\tList<Pair<Integer, Integer>> path = new LinkedList<Pair<Integer, Integer>>();\n\t\t\n\t\t\n\t\tNode current = new Node(curLocation.getX(), curLocation.getY(), getHitProbability(curLocation.getX(), curLocation.getY()));\n\t\tNode target = new Node(dest.getX(), dest.getY(), getHitProbability(dest.getX(), dest.getY()));\n\t\tList<Node> openSet = new ArrayList<>();\n List<Node> closedSet = new ArrayList<>();\n \n \n while (true) {\n openSet.remove(current);\n List<Node> adjacent = getAdjacentNodes(current, closedSet, target);\n\n // Find the adjacent node with the lowest heuristic cost.\n for (Node neighbor : adjacent) {\n \tboolean inOpenset = false;\n \tList<Node> openSetCopy = new ArrayList<>(openSet);\n \tfor (Node node : openSetCopy) {\n \t\tif (neighbor.equals(node)) {\n \t\t\tinOpenset = true;\n \t\t\tif (neighbor.getAccumulatedCost() < node.getAccumulatedCost()) {\n \t\t\t\topenSet.remove(node);\n \t\t\t\topenSet.add(neighbor);\n \t\t\t}\n \t\t}\n \t}\n \t\n \tif (!inOpenset) {\n \t\topenSet.add(neighbor);\n \t}\n }\n\n // Exit search if done.\n if (openSet.isEmpty()) {\n System.out.printf(\"Target (%d, %d) is unreachable from position (%d, %d).\\n\",\n target.getX(), target.getY(), curLocation.getX(), curLocation.getY());\n return null;\n } else if (/*isAdjacent(current, target)*/ current.equals(target)) {\n break;\n }\n\n // This node has been explored now.\n closedSet.add(current);\n\n // Find the next open node with the lowest cost.\n Node next = openSet.get(0);\n for (Node node : openSet) {\n if (node.getCost(target) < next.getCost(target)) {\n next = node;\n }\n }\n// System.out.println(\"Moving to node: \" + current);\n current = next;\n }\n \n // Rebuild the path using the node parents\n path.add(new Pair<Integer, Integer>(curLocation.getX(), curLocation.getY()));\n while(current.getParent() != null) {\n \tcurrent = current.getParent();\n \tpath.add(0, new Pair<Integer, Integer>(current.getX(), current.getY()));\n }\n \n if (path.size() > 1) {\n \tpath.remove(0);\n }\n \n\t\treturn path;\n\t}", "public BestPath getBestPath(String origin, String destination, FlightCriteria criteria) {\r\n\t\tint originIndex = 0;\r\n\t\tif(airportNames.contains(origin)){\r\n\t\t\toriginIndex = airportNames.indexOf(origin);\r\n\t\t}\r\n\t\tint destinationIndex = 0;\r\n\t\tif(airportNames.contains(destination)){\r\n\t\t\tdestinationIndex = airportNames.indexOf(destination);\r\n\t\t}\r\n\t\tAirport start = allAirports.get(originIndex);\r\n\t\tAirport goal = allAirports.get(destinationIndex);\r\n\r\n\t\tPriorityQueue<Airport> queue = new PriorityQueue<Airport>();\r\n\t\tLinkedList<String> path = new LinkedList<String>();\r\n\r\n\t\tstart.setWeight(0);\r\n\t\tqueue.add(start);\r\n\t\tAirport current;\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tcurrent = queue.poll();\r\n\t\t\tif(current.compareTo(goal) == 0) {\r\n\t\t\t\tdouble finalWeight = current.getWeight();\r\n\t\t\t\twhile(current.compareTo(start) != 0){\r\n\t\t\t\t\tpath.addFirst(current.getAirport());\r\n\t\t\t\t\tcurrent = current.getPrevious();\r\n\t\t\t\t}\r\n\t\t\t\tpath.addFirst(start.getAirport());\r\n\t\t\t\tBestPath bestPath = new BestPath(path, finalWeight);\r\n\t\t\t\treturn bestPath;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent.visited = true;\r\n\t\t\tAirport neighbor = current;\r\n\t\t\tArrayList<Flight> currentFlights;\r\n\t\t\tfor (int i = 0; i < current.size(); i++){\r\n\t\t\t\tcurrentFlights = new ArrayList<Flight>();\r\n\t\t\t\tcurrentFlights = current.getOutgoingFlights();\r\n\t\t\t\tneighbor = currentFlights.get(i).getDestination();\r\n\t\t\t\t\r\n\t\t\t\tdouble neighborWeight = neighbor.getWeight();\r\n\t\t\t\tcurrentFlights.get(i).setWeight(criteria);\r\n\t\t\t\tdouble flightWeight = currentFlights.get(i).getFlightWeight();\r\n\t\t\t\tif(neighborWeight > (current.getWeight() + flightWeight)){\r\n\t\t\t\t\tqueue.add(neighbor);\r\n\t\t\t\t\tneighbor.setPrevious(current);\r\n\t\t\t\t\tneighbor.setWeight(current.getWeight() + flightWeight);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void findFastestRoute(Point2D start, Point2D end){\n shortestPath = null;\n try {\n RouteFinder routeFinder = new RouteFinder(start, end); //Create a RouteFinder and let it handle it.\n travelMethod(routeFinder);\n routeFinder.setFastestRoute();\n fastestPath = routeFinder.getFastestPath(); //retrieve the fastest route from it\n setTravelInfo(routeFinder);\n RoutePlanner routePlanner = new RoutePlanner(fastestPath); //create a routePlanner to get direction for path\n addToDirectionPane(routePlanner.getDirections());\n }catch(IllegalArgumentException | NullPointerException e){\n addToDirectionPane(new String[]{\"No fastest path between the two locations was found\"});\n setTravelInfo(null);\n fastestPath = null;\n\n }\n\n repaint();\n\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:07.082 -0500\", hash_original_method = \"71B2FD618F41F3F10AED78DDC584C5B5\", hash_generated_method = \"D5C1464D9CBFFD7FDEF25798ABF91481\")\n \npublic static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) {\n if ((routes == null) || (dest == null)) return null;\n\n RouteInfo bestRoute = null;\n // pick a longest prefix match under same address type\n for (RouteInfo route : routes) {\n if (NetworkUtils.addressTypeMatches(route.mDestination.getAddress(), dest)) {\n if ((bestRoute != null) &&\n (bestRoute.mDestination.getNetworkPrefixLength() >=\n route.mDestination.getNetworkPrefixLength())) {\n continue;\n }\n if (route.matches(dest)) bestRoute = route;\n }\n }\n return bestRoute;\n }", "@Override\n\tpublic List<Path> getShortestRoute(Location src, Location dest, String edgePropertyName) {\n\t\t//array to keep track of visited vertexes\n\t\tboolean[] visited = new boolean[locations.size()];\n\t\t//array to store weights\n\t\tdouble[] weight = new double[locations.size()];\n\t\t//array to store predecessors\n\t\tLocation[] pre = new Location[locations.size()];\n\t\t//creates priority queue\n\t\tPriorityQueue<LocWeight> pq = new PriorityQueue<LocWeight>();\n\t\t// initializes every vertex misted mark to false\n\t\tfor (int i = 0; i < visited.length; i++)\n\t\t\tvisited[i] = false;\n\t\t// initializes every vertex's total weight to infinity\n\t\tfor (int i = 0; i < weight.length; i++)\n\t\t\tweight[i] = Double.POSITIVE_INFINITY;\n\t\t// initializes every vertex's predecessor to null\n\t\tfor (int i = 0; i < pre.length; i++)\n\t\t\tpre[i] = null;\n\t\t//sets start vertex's total weight to 0\n\t\tweight[locations.indexOf(src)] = 0;\n\t\t//insert start vertex in priroty queue\n\t\tpq.add(new LocWeight(src, 0.0));\n\t\t\n\t\tString[] edgeNames = getEdgePropertyNames();\n\t\tint indexProp = 0;\n\t\tfor (int i = 0; i < edgeNames.length; i++) {\n\t\t\tif (edgeNames[i].equalsIgnoreCase(edgePropertyName))\n\t\t\t\tindexProp = i;\n\t\t}\n\t\twhile (!pq.isEmpty()) {\n\t\t\tLocWeight c = pq.remove();\n\t\t\t//set C's visited mark to true\n\t\t\tvisited[locations.indexOf(c)] = true;\n\n\t\t\tList<Location> neighbors = getNeighbors(c.getLocation());\n\t\t\t//for each unvisited successor adjacent to C\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\n\t\t\t\tif (visited[locations.indexOf(neighbors.get(i))] == false) {\n\t\t\t\t\t//change successor's total weight to equal C's weight + edge weight from C to successor\n\t\t\t\t\tweight[locations.indexOf(neighbors.get(i))] = c.getWeight() + getEdgeIfExists(c.getLocation(), neighbors.get(i)).getProperties().get(indexProp);\n\t\t\t\t\tpre[locations.indexOf(neighbors.get(i))] = c.getLocation();\n\t\t\t\t\tLocWeight succ = new LocWeight(neighbors.get(i), weight[locations.indexOf(neighbors.get(i))]);\n\t\t\t\t\t//if successor is already in pq, update its total weight\n\t\t\t\t\tif (pq.contains(succ)) {\n\t\t\t\t\t\tpq.remove(succ);\n\t\t\t\t\t}\n\t\t\t\t\t//if not already there, add\n\t\t\t\t\tpq.add(succ);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\n\t\t}\n\t\t\n\t\tArrayList<Path> path = new ArrayList<Path>();\n\t\t//find predecessor of each vertex and construct shortest path then return it\n\t\tLocation curr1 = dest;\n\t\twhile (pre[locations.indexOf(curr1)] != null) {\n\t\t\tpath.add(getEdgeIfExists(pre[locations.indexOf(curr1)], curr1));\n\t\t\tcurr1 = pre[locations.indexOf(curr1)];\n\t\t}\n\t\t//to show path from the start\n\t\tfor (int i = path.size() - 1; i >= 0; i--)\n\t\t\tpath.add(path.remove(i));\n\n\n\t\treturn path;\n\t}", "public BestPath getBestPath(String origin, String destination, FlightCriteria criteria, String airliner) {\r\n\t\tint originIndex = 0;\r\n\t\tif(airportNames.contains(origin)){\r\n\t\t\toriginIndex = airportNames.indexOf(origin);\r\n\t\t}\r\n\t\tint destinationIndex = 0;\r\n\t\tif(airportNames.contains(destination)){\r\n\t\t\tdestinationIndex = airportNames.indexOf(destination);\r\n\t\t}\r\n\t\tAirport start = allAirports.get(originIndex);\r\n\t\tAirport goal = allAirports.get(destinationIndex);\r\n\r\n\t\tPriorityQueue<Airport> queue = new PriorityQueue<Airport>();\r\n\t\r\n\t\tLinkedList<String> path = new LinkedList<String>();\r\n\r\n\t\tstart.setWeight(0);\r\n\t\tqueue.add(start);\r\n\t\tAirport current;\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tcurrent = queue.poll();\r\n\t\t\t\r\n\t\t\tif(current.compareTo(goal) == 0) {\r\n\t\t\t\tdouble finalWeight = current.getWeight();\r\n\t\t\t\t\r\n\t\t\t\twhile(current.compareTo(start) != 0){\r\n\t\t\t\t\t\r\n\t\t\t\t\tpath.addFirst(current.getAirport());\r\n\t\t\t\t\tcurrent = current.getPrevious();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tpath.addFirst(start.getAirport());\r\n\t\t\t\tBestPath bestPath = new BestPath(path, finalWeight);\r\n\t\t\t\treturn bestPath;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent.visited = true;\r\n\t\t\tAirport neighbor = current;\r\n\t\t\tArrayList<Flight> currentFlights;\r\n\t\t\tfor (int i = 0; i < current.size(); i++){\r\n\t\t\t\tcurrentFlights = new ArrayList<Flight>();\r\n\t\t\t\tcurrentFlights = current.getOutgoingFlights();\r\n\t\t\t\tneighbor = currentFlights.get(i).getDestination();\r\n\t\t\t\tdouble neighborWeight = neighbor.getWeight();\r\n\t\t\t\tcurrentFlights.get(i).setWeight(criteria);\r\n\t\t\t\tdouble flightWeight = currentFlights.get(i).getFlightWeight();\r\n\t\t\t\tif((neighborWeight > (current.getWeight() + flightWeight)) && currentFlights.get(i).getCarrier() == airliner){\r\n\t\t\t\t\tqueue.add(neighbor);\r\n\t\t\t\t\tneighbor.setPrevious(current);\r\n\t\t\t\t\tneighbor.setWeight(current.getWeight() + flightWeight);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public List<Node> computeDijkstraShortestPath(Node source, Node destination) {\n\n source.minDistance = 0.;\n PriorityQueue<Node> nodeQueue = new PriorityQueue<Node>();\n nodeQueue.add(source);\n\n int destinationGroup = destination._groupID;\n\n while (!nodeQueue.isEmpty()) {\n Node v = nodeQueue.poll();\n\n Log.i(\"bbb\", \"In dijsk node name \"+ v._waypointName);\n //Stop searching when reach the destination node\n\n\n if(destinationGroup!=0){\n\n if(v._groupID==destinationGroup){\n destination = navigationGraph.get(navigationGraph.size()-1).nodesInSubgraph.get(v._waypointID);\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n break;\n }\n\n }\n\n if (v._waypointID.equals(destination._waypointID))\n break;\n\n\n // Visit each edge that is adjacent to v\n for (Edge e : v._edges) {\n Node a = e.target;\n Log.i(\"bbb\", \"node a \"+a._waypointName);\n double weight = e.weight;\n double distanceThroughU = v.minDistance + weight;\n if (distanceThroughU < a.minDistance) {\n nodeQueue.remove(a);\n a.minDistance = distanceThroughU;\n a.previous = v;\n Log.i(\"bbb\", \"set previous\");\n nodeQueue.add(a);\n }\n }\n }\n\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n return getShortestPathToDestination(destination);\n }", "public int shortestRouteBetweenTowns(Town origin, \n\t\t\tTown destination) {\n\t\treturn findShortestRoute(origin, \n\t\t\t\tdestination, 0, 0);\n\t}", "public void findShortestRoute(Point2D start, Point2D end){\n fastestPath = null;\n try {\n RouteFinder routeFinder = new RouteFinder(start, end);\n travelMethod(routeFinder);\n routeFinder.setShortestRoute();\n shortestPath = routeFinder.getShortestPath();\n setTravelInfo(routeFinder);\n RoutePlanner routePlanner = new RoutePlanner(shortestPath);\n addToDirectionPane(routePlanner.getDirections());\n }catch(IllegalArgumentException | NullPointerException e){\n addToDirectionPane(new String[]{\"No shortest path between the two locations was found\"});\n setTravelInfo(null);\n shortestPath = null;\n }\n\n repaint();\n\n }", "public List<Integer> getRoute(int start, int destination, Map<Transport, Integer> tickets) {\n\n List<Node<Integer>> nodes = graph.getNodes();\n //Initialisation\n Map<Node<Integer>, Double> unvisitedNodes = new HashMap<Node<Integer>, Double>();\n Map<Node<Integer>, Double> distances = new HashMap<Node<Integer>, Double>();\n Map<Node<Integer>, Node<Integer>> previousNodes = new HashMap<Node<Integer>, Node<Integer>>();\n Node<Integer> currentNode = graph.getNode(start);\n\n for (Node<Integer> node : nodes) {\n if (!currentNode.getIndex().equals(node.getIndex())) {\n distances.put(node, Double.POSITIVE_INFINITY);\n } else {\n distances.put(node, 0.0);\n }\n Integer location = node.getIndex();\n try {\n unvisitedNodes.put(node, (1/pageRank.getPageRank(location)));\n } catch (Exception e) {\n System.err.println(e);\n }\n previousNodes.put(node, null);\n }\n //Search through the graph\n while (unvisitedNodes.size() > 0) {\n Node<Integer> m = minDistance(distances, unvisitedNodes);\n if (m == null) break;\n currentNode = m;\n if (currentNode.getIndex().equals(destination)) break;\n unvisitedNodes.remove(currentNode);\n\n step(graph, distances, unvisitedNodes, currentNode, previousNodes, tickets);\n }\n\n //Move backwards finding the shortest route\n List<Integer> route = new ArrayList<Integer>();\n while (previousNodes.get(currentNode) != null) {\n route.add(0, currentNode.getIndex());\n currentNode = previousNodes.get(currentNode);\n }\n route.add(0, currentNode.getIndex());\n return route;\n }", "private void source_to_dest_path(int source, int dest, int[] forward_dist_tab, int[] list_Prevoius_Node, ArrayList<Integer> del_router)\n\t{\n\t\tif(del_router != null && del_router.contains(dest))\n\t\t\tSystem.out.println(\"Router \"+ (dest+1) +\" is deleted\");\n\t\telse if(del_router != null && del_router.contains(source))\n\t\t\tSystem.out.println(\"Router \"+ (source+1) +\" is deleted\");\n\t\telse\n\t\t{\n\t\t\tint[] prevNodes_List = list_Prevoius_Node;\n\t\t\tint k = dest;\n\t\t\tString path = \"\" + (dest+1);\n\t\t\t\n\t\t\t//Check if node is reachable that if it is connected in the graph then only proceed further\n\t\t\tif(forward_dist_tab[dest] != INFINITE_DIST)\n\t\t\t{\n\t\t\t\twhile(prevNodes_List[k] != source)\n\t\t\t\t{\n\t\t\t\t\tpath += \" >- \" + (prevNodes_List[k] + 1);\n\t\t\t\t\tk = prevNodes_List[k];\n\t\t\t\t}\n\t\t\t\t//for source node\n\t\t\t\tpath += \" >- \" + (source+1);\n\t\t\t\t\n\t\t\t\t//Back traversal is done using the previous node list\n\t\t\t\tString disp_path= new StringBuilder(path).reverse().toString();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nShortest distance from \"+ (source+1) +\" to \"+ (dest+1) +\":\");\n\t\t\t\tSystem.out.println(\"PATH: \"+ disp_path);\n\t\t\t\tSystem.out.println(\"COST: \" + forward_dist_tab[dest]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"\\nRouter \"+ (dest+1) +\" is dead or unreachable.\");\n\t\t\t}\n\t\t}\n\t}", "public void computeAllPaths(String source)\r\n {\r\n Vertex sourceVertex = network_topology.get(source);\r\n Vertex u,v;\r\n double distuv;\r\n\r\n Queue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\r\n \r\n \r\n // Switch between methods and decide what to do\r\n if(routing_method.equals(\"SHP\"))\r\n {\r\n // SHP, weight of each edge is 1\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + 1;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n else if (routing_method.equals(\"SDP\"))\r\n {\r\n // SDP, weight of each edge is it's propagation delay\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + u.adjacentVertices.get(key).propDelay;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n } \r\n }\r\n }\r\n else if (routing_method.equals(\"LLP\"))\r\n {\r\n // LLP, weight each edge is activeCircuits/AvailableCircuits\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = Math.max(u.minDistance,u.adjacentGet(key).load());\r\n //System.out.println(u.adjacentGet(key).load());\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n }\r\n }\r\n }", "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 interface RoutingAlgorithm {\n public void initMapInfo(int[][] map);\n public int getShortestPath(int start,int end);\n}", "public void findDestination() {\n\t\t\n\t}", "public final int findMaxFlow(final String[] sources, final String[] destinations) {\r\n\t\t//TODO Add you code here\r\n if(Arrays.equals(sources, destinations)){\r\n return SOURCES_SAME_AS_DESTINATIONS;\r\n } else{\r\n Node startNode;\r\n String sourceName = sources[0];\r\n String sinkName = destinations[0];\r\n\r\n //check if sources/sinks exists and if multiple sources/sinks, create \"superSource/-Sink\"\r\n boolean sourceNotFound = false;\r\n if (sources.length > 1){\r\n sourceNotFound = addSuperNode(\"superSource\", sources);\r\n sourceName = \"superSource\";\r\n }else\r\n sourceNotFound = findNode(sourceName) == null;\r\n boolean destinationNotFound = false;\r\n if (destinations.length > 1){\r\n destinationNotFound = addSuperNode(\"superSink\", destinations);\r\n sinkName = \"superSink\";\r\n }else\r\n destinationNotFound = findNode(sinkName) == null;\r\n\r\n if(sourceNotFound && destinationNotFound)\r\n return NO_SOURCE_DESTINATION_FOUND;\r\n else if (sourceNotFound)\r\n return NO_SOURCE_FOUND;\r\n else if (destinationNotFound)\r\n return NO_DESTINATION_FOUND;\r\n\r\n //set flow to 0\r\n setZero();\r\n ArrayList<Node> path = new ArrayList<>();\r\n startNode = findNode(sourceName);\r\n //find first path, if no path found return NO_PATH\r\n Node pathNode = pathfinder.findPathFlow(sourceName, sinkName, nodes);\r\n if (pathNode.getName().equals(\"null\") && pathNode.getDelay() == -4)\r\n return NO_PATH;\r\n //main loop;\r\n while (pathNode.getName() != \"null\") {\r\n double flow = Double.POSITIVE_INFINITY;\r\n path.clear();\r\n //find minimum residual capacity in path as new flow\r\n while (pathNode != null) {\r\n path.add(pathNode);\r\n if (pathNode != startNode && pathNode.getEdgeToPrevious().getResidualFlow() < flow)\r\n flow = pathNode.getEdgeToPrevious().getResidualFlow();\r\n pathNode = pathNode.getPreviousInPath();\r\n }\r\n //add min(new flow. residual capacity) to old flow, and subtract same from residual capacity\r\n for (int i = 0; i < path.size(); i++) {\r\n if (path.get(i) != startNode) {\r\n path.get(i).getEdgeToPrevious().setFlow(path.get(i).getEdgeToPrevious().getFlow() + Math.min(flow, path.get(i).getEdgeToPrevious().getResidualFlow()));\r\n path.get(i).getEdgeToPrevious().setResidualFlow(path.get(i).getEdgeToPrevious().getResidualFlow() - Math.min(flow, path.get(i).getEdgeToPrevious().getResidualFlow()));\r\n }\r\n }\r\n //find next path\r\n pathNode = pathfinder.findPathFlow(sourceName, sinkName, nodes);\r\n }\r\n //after algorithm is done maximum flow is the summation of all the outgoing flows of all the sources/destinations\r\n return startNode.getOutgoingFlow();\r\n }\r\n\t}", "public List<String> computeBestPath(String source, String dest)\r\n {\r\n Vertex v;\r\n List<String>shortestPath = new LinkedList<String>();\r\n \r\n // First, relax all nodes\r\n computeAllPaths(source);\r\n \r\n // Then go through each one and return the path as a list of strings\r\n for (v= network_topology.get(dest); v != null; v = v.previous)\r\n { \r\n shortestPath.add(v.name);\r\n }\r\n \r\n Collections.reverse(shortestPath);\r\n \r\n // Clear the relaxed values so that they can be recalculated with each term\r\n clearPathData();\r\n \r\n return shortestPath;\r\n }", "@Override\n public Double calculateShortestPathFromSource(String from, String to) {\n Node source = graph.getNodeByName(from);\n Node destination = graph.getNodeByName(to);\n source.setDistance(0d);\n Set<Node> settledNodes = new HashSet<>();\n PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = unsettledNodes.poll();\n for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Double distance = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n calculateMinimumDistance(adjacentNode, distance, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();\n }", "public List<Node> getShortestPathToDestination(Node destination) {\n List<Node> path = new ArrayList<Node>();\n\n\n\n for (Node node = destination; node != null; node = node.previous){\n Log.i(\"bbb\", \"get path \"+node._waypointName);\n path.add(node);\n }\n\n // reverse path to get correct order\n Collections.reverse(path);\n return path;\n }", "public List<node_info> shortestPath(int src, int dest);", "private int findAllRoutesBetweenTowns(Town origin, \n\t\t\tTown destination, int weight, \n\t\t\tint maxDistance) {\n\t\tint routes = 0;\n\t\tif (this.routingTable.containsKey(origin) && \n\t\t\t\tthis.routingTable.containsKey(\n\t\t\t\t\t\tdestination)) {\n\n\t\t\tEdge edge = this.routingTable.get(origin);\n\t\t\twhile (edge != null) {\n\t\t\t\tweight += edge.weight;\n\t\t\t\tif (weight <= maxDistance) {\n\t\t\t\t\tif (edge.destination.equals(\n\t\t\t\t\t\t\tdestination)) {\n\t\t\t\t\t\troutes++;\n\t\t\t\t\t\troutes += \n\t\t\t\t\t\t\tfindAllRoutesBetweenTowns(\n\t\t\t\t\t\t\t\tedge.destination, \n\t\t\t\t\t\t\t\tdestination, weight, \n\t\t\t\t\t\t\t\tmaxDistance);\n\t\t\t\t\t\tedge = edge.next;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\troutes += \n\t\t\t\t\t\t\tfindAllRoutesBetweenTowns(\n\t\t\t\t\t\t\t\tedge.destination, \n\t\t\t\t\t\t\t\tdestination, weight, \n\t\t\t\t\t\t\t\tmaxDistance);\n\t\t\t\t\t\tweight -= edge.weight;\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\tweight -= edge.weight;\n\n\t\t\t\tedge = edge.next;\n\t\t\t}\n\t\t} else {\n\t\t\tnoRouteException();\n\n\t\t}\n\t\treturn routes;\n\n\t}", "private void recalcBestPath(int dest) {\n boolean changed;\n\n List<BGPPath> possList = this.inRib.get(dest);\n BGPPath currentBest = this.pathSelection(possList);\n BGPPath currentInstall = this.locRib.get(dest);\n\n /*\n * We need to handle advertisements in one of two cases a) we have found\n * a new best path and it's not the same as our current best path b) we\n * had a best path prior, but currently do not\n */\n changed = (currentBest != null && (currentInstall == null || !currentBest.equals(currentInstall)))\n || (currentBest == null && currentInstall != null);\n this.locRib.put(dest, currentBest);\n if (this.isWardenAS()) {\n if (currentBest == null) {\n this.routeStatusMap.put(dest, AS.RS_NULL);\n } else if (this.botSet == null) {\n this.routeStatusMap.put(dest, AS.RS_CLEAN);\n } else if (currentBest.containsAnyOf(this.botSet)) {\n this.routeStatusMap.put(dest, AS.RS_DIRTY);\n } else {\n this.routeStatusMap.put(dest, AS.RS_CLEAN);\n }\n }\n\n /*\n * If we have a new path, mark that we have a dirty destination\n */\n if (changed) {\n this.dirtyDest.add(dest);\n }\n }", "public int[] djekstra(Router root, Router destination){\n //if router and destination same\n if (root.getID() == destination.getID()){\n int[] result = new int[2];\n result[0] = root.getID();\n result[1] = 0;\n hops.add(0);\n return result;\n }\n\n //Storing shortest path currently known\n int[] shortestPath = new int[size];\n //Storing the weights of the current router's connection to neighbors\n int[] currentNeighborConnectionWeight = new int[size];\n\n //First set all of the positions to 9999 (pseudo infinity)\n for (int i = 0; i < shortestPath.length;i++){\n shortestPath[i] = 9999;\n }\n\n // Set the distance to itself as 0, mark as visited\n shortestPath[root.getID()-1] = 0;\n root.visit();\n\n //For each connection the root has, set the shortestPath available to the weight to the neighbor\n for (Connection c : root.getConnections()){\n shortestPath[c.getDestination().getID()-1] = c.getWeight();\n }\n\n //Find the smallest router to start the algorithm\n //ID of smallest router, start the value with the first available option\n int smallestRouterID = 0;\n int smallestRouterWeight = 9999;\n //Router used for iterating\n Router current = null;\n //Storing path length\n int totalPathLength = 0;\n\n\n //Find the shortest available path link to start with\n for (int k = 0; k < shortestPath.length; k++){\n if ((shortestPath[k] < smallestRouterWeight) && (shortestPath[k] != 0)){\n // Check to see if dead end\n if (routers.get(k).getConnections().size() > 1){\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n } else if (routers.get(k).getID() == destination.getID()){ //edge case\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n }\n }\n }\n // add its weight\n totalPathLength += smallestRouterWeight;\n\n //This is where we start our first step\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n //System.out.println(\"First step--> Router:\" + smallestRouterID + \" Weight to router from root:\" + smallestRouterWeight);\n //Now we loop\n Router firstRouter = current;\n boolean done = false;\n while (done == false){\n //Break case 1, we found the router\n if (current.getID() == destination.getID()){\n // check if root has available connections\n\n // set current to root and store totalPathLength to new variable && store hops in new array ArrayList\n // compare totals and store the one that's lower ++ hops list too\n // could we recursively call djekstra?\n done = true;\n // System.out.println(\"Router found\");\n break;\n }\n\n //Break case 2, all of the connections have been visited already\n boolean destinationAvailable = hasAvailableConnections(current);\n if (destinationAvailable == false){\n if(hasAvailableConnections(root)){\n current = root;\n hops.clear();\n totalPathLength= 0;\n } else {\n done = true;\n // System.out.println(\"v-- No more routers available\");\n break;\n }\n }\n\n //set all to 9999 to assume we cant see\n for (int a = 0; a < currentNeighborConnectionWeight.length; a++){\n currentNeighborConnectionWeight[a] = 9999;\n }\n\n //Recalculate for new path lengths\n for (Connection c : current.getConnections()){\n //Only calculate path for routers that havent been visited\n if (c.getDestination().getVisit() == false){\n currentNeighborConnectionWeight[c.getDestination().getID()-1] = c.getWeight();\n }\n }\n\n //Find the next step to take\n //Find the shortest available path link to start with\n smallestRouterID = 0;\n smallestRouterWeight = 9999;\n for (int b = 0; b < currentNeighborConnectionWeight.length; b++){\n if ((currentNeighborConnectionWeight[b] < smallestRouterWeight)){\n // id is pos+1\n smallestRouterID = b + 1;\n smallestRouterWeight = currentNeighborConnectionWeight[b];\n }\n }\n\n // add its weight\n totalPathLength += smallestRouterWeight;\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n // System.out.println(\"Next shortest path--> Router: \" + current.getID() + \" Length from root:\" + totalPathLength);\n\n\n } // <--------------------------------------------------------------------------------End of while loop\n\n // returns <lasthop, pathcost>\n int[] result = new int[2];\n //Check and see if the path length is smaller then the original\n if (totalPathLength <= shortestPath[destination.getID()-1]){\n //System.out.println(\"Case new \" + firstRouter.getID());\n shortestPath[destination.getID()-1] = totalPathLength;\n result[0] = firstRouter.getID();\n result[1] = shortestPath[destination.getID()-1];\n } else {\n //root was shorter\n //System.out.println(\"Case old \" + root.getID());\n result[0] = root.getID();\n result[1] = shortestPath[destination.getID()-1];\n }\n // System.out.println(\"Next hop:\" + current.getID() + \" Total Distance:\" + shortestPath[destination.getID()-1]);\n\n //reset the visited list\n for (Router r: routers){\n r.unvisit();\n }\n return result;\n }", "int getDestination();", "private int relayPayloadDestination(OverlayNodeSendsData event) {\n\t\tint destination = event.getDestID();\n\t\tif (nodesToSendTo.getConnections().containsKey(destination))\n\t\t\treturn destination;\n\t\telse { // determine which routing entry to send it to\n\t\t\tint bestHopLen = 128;\n\t\t\tint bestHop = 0;\n\t\t\tboolean increasedHopDist = false;\n\t\t\tboolean finalFlag = false;\n\t\t\tif (event.getDestID() < myAssignedID)\n\t\t\t\tdestination += 128; // previously 127\n\t\t\tfor (Map.Entry<Integer, TCPConnection> entry : nodesToSendTo.getConnections()\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tint possibleHop = entry.getKey();\n\t\t\t\tif (possibleHop < myAssignedID) {\n\t\t\t\t\tpossibleHop += 128;\n\t\t\t\t\tincreasedHopDist = true;\n\t\t\t\t} else {\n\t\t\t\t\tincreasedHopDist = false;\n\t\t\t\t}\n\t\t\t\tif (possibleHop < destination\n\t\t\t\t\t\t&& ((destination - possibleHop) < bestHopLen)) {\n\t\t\t\t\tbestHopLen = destination - possibleHop;\n\t\t\t\t\tbestHop = possibleHop;\n\t\t\t\t\tfinalFlag = increasedHopDist;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (finalFlag)\n\t\t\t\tbestHop -= 128;\n\t\t\treturn bestHop;\n\t\t}\n\t}", "private static void shortestPath(Map<Integer, DistanceInfo> distanceTable,\n int source, int destination)\n {\n // Backtrack using a stack, using the destination node\n Stack<Integer> stack = new Stack<>();\n stack.push(destination);\n\n // Backtrack by getting the previous node of every node and putting it on the stack.\n // Start at the destination.\n int previousVertex = distanceTable.get(destination).getLastVertex();\n while (previousVertex != -1 && previousVertex != source)\n {\n stack.push(previousVertex);\n previousVertex = distanceTable.get(previousVertex).getLastVertex();\n }\n\n if (previousVertex ==-1)\n {\n System.err.println(\"No path\");\n }\n else\n {\n System.err.println(\"Shortest path: \");\n while (! stack.isEmpty())\n {\n System.err.println(stack.pop());\n }\n }\n }", "@Override\n public ArrayList<GraphEdge> getRoute(GraphNode a, GraphNode b) {\n \tHashMap<GraphNode, Double> distances = new HashMap<GraphNode, Double>();\n \tHashMap<GraphNode, GraphEdge> predecessor = new HashMap<GraphNode, GraphEdge>();\n \tHashSet<GraphNode> visited = new HashSet<GraphNode>();\n \t\n \tArrayList<GraphEdge> result = new ArrayList<GraphEdge>();\n\t\n \t//Initialize distances, predecessor, and visited\n \tfor(GraphNode g : drivableNodes) {\n \t distances.put(g, Double.MAX_VALUE);\n \t predecessor.put(g, null);\n \t}\n \t\n \tint remaining = drivableNodes.size();\n \t\n \t//Put starting node\n \tdistances.put(a, 0.0);\n \t//predecessor.put(a, null);\n \t\n \t//Main loop\n \twhile(remaining > 0) {\n \t GraphNode closest = null;\n \t double minDist = Double.MAX_VALUE;\n\n \t for(GraphNode n : distances.keySet()) {\n \t\tdouble dist = distances.get(n);\n \t\tif(!visited.contains(n) &&\n \t\t\tdist != Double.MAX_VALUE &&\n \t\t\t(minDist == Double.MAX_VALUE || dist < minDist)) {\n \t\t closest = n;\n \t\t minDist = dist;\n \t\t}\n \t }\n \t \n \t if(closest == null)\n \t\treturn null;\n \t \n \t if(closest.equals(b))\n \t\tbreak;\n \t \n \t visited.add(closest);\n \t \n \t for(GraphEdge edge : closest.getEdges()) {\n \t\tGraphNode adjacent = edge.getOtherNode(closest);\n \t\tif(adjacent != null && !visited.contains(adjacent)) {\n \t\t //Map distance value for the other Node\n \t\t double otherDist = distances.get(adjacent);\n \t\t //Weight of edge from closest node to adjacent node\n \t\t double weight = edge.getWeight();\n \t\t String way = edge.getWay();\n \t\t \n \t\t if(otherDist == Double.MAX_VALUE ||\n \t\t\t weight + minDist < otherDist) {\n \t\t\tdistances.put(adjacent, weight + minDist);\n \t\t\t\n \t\t\t//Make new edge in correct order\n \t\t\tGraphEdge corrected = new GraphEdge(closest, adjacent, weight, way);\n \t\t\t\n \t\t\tpredecessor.put(adjacent, corrected);\n \t\t }\n \t\t}\n \t }\n\n \t remaining--;\n \t}\n \t\n \t//Backtrack to build route\n \tif(distances.get(b) == Double.MAX_VALUE) {\n \t return null;\n \t} else {\n \t //buildPath(predecessor, a, b, result);\n \t //Non recursive version\n \t Stack<GraphEdge> stack = new Stack<GraphEdge>(); \n \t while(!b.equals(a)) {\n \t\tGraphEdge edge = predecessor.get(b);\n \t\t\n \t\t//Make sure vertices are in correct order\n \t\tGraphNode start = edge.getOtherNode(b);\n \t\t//double weight = edge.getWeight();\n \t\t//GraphEdge corrected = new GraphEdge(start, b, weight);\n \t\t\n \t\tstack.push(edge);\n \t\tb = start;\n \t }\n \t \n \t while(!stack.isEmpty()) {\n \t\tGraphEdge edge = stack.pop();\n \t\tresult.add(edge);\n \t }\n \t}\n \t\n\treturn result;\n }", "void storeSource(McastRoute route, HostId hostId, Set<ConnectPoint> connectPoints);", "public static VCAgent getNextHopUsingDVCR(VCAgent current, VCAgent destination, VCAgent prevAgent, VCContext context){\r\n\t\tHashMap<VCAgent, Double> neighborDistances = new HashMap<>();\r\n\t\t\r\n\t\tVCAgent mostUpdatedAgent = current;\r\n\t\tfor(VCAgent neighbor : current.getNeighbors()){\r\n\t\t\tif(neighbor.getVcLocalTable().getUpdateTime() > mostUpdatedAgent.getVcLocalTable().getUpdateTime())\r\n\t\t\t\tmostUpdatedAgent = neighbor;\r\n\t\t}\r\n\t\tdouble minDistance = Double.valueOf(Double.POSITIVE_INFINITY );\r\n\t\tdouble maxDistance = Double.valueOf(Double.NEGATIVE_INFINITY );\r\n\t\tfor(VCAgent neighbor : current.getNeighbors()){\r\n\t\t\tif(neighbor.equals(destination))\r\n\t\t\t\treturn neighbor;\r\n\t\t\tif(neighbor.equals(prevAgent))\r\n\t\t\t\tcontinue;\r\n\t\t\tdouble distToDestination = getL2NormDistance(mostUpdatedAgent, neighbor, destination, context);\r\n\t\t\tneighborDistances.put(neighbor, distToDestination);\r\n\t\t\tif(distToDestination < minDistance) {\r\n\t\t\t\tminDistance = distToDestination;\r\n\t\t\t} \r\n\t\t\tif(distToDestination > maxDistance) {\r\n\t\t\t\tmaxDistance = distToDestination;\r\n\t\t\t}\r\n\t\t}\r\n\t\tdouble currentDistance = getL2NormDistance(mostUpdatedAgent, current, destination, context);\r\n\t\tif(minDistance <= maxDistance) {\r\n\t\t\tif(minDistance !=0 && ( minDistance < currentDistance)) { // next hop found\r\n\t\t\t\tArrayList<VCAgent> minNeighborDistances = new ArrayList<>();\r\n\t\t\t\tfor(VCAgent neighbor: neighborDistances.keySet())\r\n\t\t\t\t\tif(neighborDistances.get(neighbor) == minDistance)\r\n\t\t\t\t\t\tminNeighborDistances.add(neighbor);\r\n\t\t\t\treturn minNeighborDistances.get(context.getRandom().nextInt(minNeighborDistances.size()));\r\n\t\t\t}\r\n\t\t} \r\n\t\tif(current.getNeighbors().size() == 0)\r\n\t\t\treturn null;\r\n\t\tVCAgent minHopAgent = current.getNeighbors().get(0);\r\n\t\tList<VCAgent> anchorAgents = VCMessageHelper.getAnchorAgents(\r\n\t\t\t\tcontext.getWorld(), ForwarderSensorAgent.class);\r\n//\t\tList<List<VCAgent>> powersetofAnchors = powerSet(anchorAgents);\r\n//\t\tpowersetofAnchors.toArray();\r\n//\t\tfor(int i = powersetofAnchors.size()-1; i >= 0; i--) {\r\n//\t\t\tif(powersetofAnchors.get(i).size() != 4)\r\n//\t\t\t\tcontinue;\r\n\t\t\tminDistance = Double.valueOf(Double.POSITIVE_INFINITY );\r\n\t\t\ttry {\r\n\t\t\t\tfor(VCAgent neighbor : current.getNeighbors()){\r\n\t\t\t\t\tif(neighbor.equals(prevAgent))\r\n\t\t\t\t\t\tcontinue;\r\n//\t\t\t\t\tdouble distToDestination = getApproximatedHopsToDest(\r\n//\t\t\t\t\t\t\tneighbor, destination, powersetofAnchors.get(i), context);\r\n\t\t\t\t\tdouble distToDestination = getApproximatedHopsToDest(\r\n\t\t\t\t\t\t\tneighbor, destination, anchorAgents.subList(0, 4), context);\r\n\t\t\t\t\tif(distToDestination < minDistance) {\r\n\t\t\t\t\t\tminDistance = distToDestination;\r\n\t\t\t\t\t\tminHopAgent = neighbor;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn minHopAgent;\r\n//\t\t\t\tcurrentDistance = getApproximatedHopsToDest(\r\n//\t\t\t\t\t\tcurrent, destination, powersetofAnchors.get(i), context);\r\n\t\t\t} catch (RuntimeException e) {\r\n\t\t\t\tsolveEquationFails++;\r\n//\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t}\r\n\t\treturn null;\r\n\t}", "private void calculateShortestRoute(String strSourceTerminal){\n\t\tshortestTravelTime = new HashMap<>();\n\n //stores parent of every terminal in shortest travel time\n parent = new HashMap<>();\n \n //heap + map data structure\n MinimumHeap<BaggageTerminal> minHeap = new MinimumHeap<>();\n\n //initialize all terminal with infinite distance from source terminal\n for(BaggageTerminal baggageTerminal : graph.getTerminals()){\n minHeap.add(Integer.MAX_VALUE, baggageTerminal);\n }\n \n BaggageTerminal sourceTerminal = graph.getTerminal(strSourceTerminal);\n \n //set distance of source terminal to itself 0\n minHeap.decrease(sourceTerminal, 0);\n\n //put it in map\n shortestTravelTime.put(sourceTerminal, 0);\n\n //source terminal parent is null\n parent.put(sourceTerminal, null);\n\n //iterate till heap is not empty\n while(!minHeap.empty()){\n //get the min value from heap node which has vertex and distance of that vertex from source vertex.\n MinimumHeap<BaggageTerminal>.Node heapNode = minHeap.extractMinNode();\n BaggageTerminal currentTerminal = heapNode.key;\n\n //update shortest distance of current vertex from source vertex\n shortestTravelTime.put(currentTerminal, heapNode.weight);\n\n //iterate through all connections of current terminal\n for(Connection connection : currentTerminal.getConnections()){\n\n //get the adjacent terminal\n BaggageTerminal adjacent = getConnectingTerminal(currentTerminal, connection);\n\n //if heap does not contain adjacent vertex means adjacent vertex already has shortest distance from source vertex\n if(!minHeap.containsData(adjacent)){\n continue;\n }\n\n //add distance of current vertex to edge weight to get distance of adjacent vertex from source vertex\n //when it goes through current vertex\n int newDistance = shortestTravelTime.get(currentTerminal) + connection.getWeight();\n\n //see if this above calculated distance is less than current distance stored for adjacent vertex from source vertex\n if(minHeap.getWeight(adjacent) > newDistance) {\n minHeap.decrease(adjacent, newDistance);\n parent.put(adjacent, currentTerminal);\n }\n }\n }\n return;\n }", "public void calculateRoute() {\n SKRouteSettings route = new SKRouteSettings();\n route.setStartCoordinate(start);\n route.setDestinationCoordinate(end);\n route.setNoOfRoutes(1);\n switch (routingType) {\n case SHORTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_SHORTEST);\n break;\n case FASTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_FASTEST);\n break;\n case QUIET:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_QUIETEST);\n break;\n }\n route.setRouteExposed(true);\n SKRouteManager.getInstance().calculateRoute(route);\n }", "@SuppressWarnings(\"unused\")\n private void notSoLazyPathfinder(final Coords dest, final MoveStepType type,\n final int timeLimit) {\n final long endTime = System.currentTimeMillis() + timeLimit;\n\n MoveStepType step = type;\n if (step != MoveStepType.BACKWARDS) {\n step = MoveStepType.FORWARDS;\n }\n\n final MovePathComparator mpc =\n new MovePathComparator(dest, step == MoveStepType.BACKWARDS);\n\n MovePath bestPath = clone();\n\n // A collection of paths we have already explored\n final HashMap<MovePath.Key, MovePath> discovered =\n new HashMap<MovePath.Key, MovePath>();\n discovered.put(bestPath.getKey(), bestPath);\n\n // A collection of hte possible next-moves\n final PriorityQueue<MovePath> candidates =\n new PriorityQueue<MovePath>(110, mpc);\n candidates.add(bestPath);\n\n boolean keepLooping = getFinalCoords().distance(dest) > 1;\n int loopcount = 0;\n\n // Keep looping while we have candidates to explore, and certain stop\n // conditions aren't met (time-limit, destination found, etc)\n while ((candidates.size() > 0) && keepLooping) {\n final MovePath candidatePath = candidates.poll();\n final Coords startingPos = candidatePath.getFinalCoords();\n final int startingElev = candidatePath.getFinalElevation();\n\n // Check to see if we have found the destination\n if (candidatePath.getFinalCoords().distance(dest) == 0) {\n bestPath = candidatePath;\n keepLooping = false;\n break;\n }\n\n // Get next possible steps\n final Iterator<MovePath> adjacent =\n candidatePath.getNextMoves(step == MoveStepType.BACKWARDS,\n step == MoveStepType.FORWARDS).iterator();\n // Evaluate possible next steps\n while (adjacent.hasNext()) {\n final MovePath expandedPath = adjacent.next();\n\n if (expandedPath.getLastStep().isMovementPossible(getGame(),\n startingPos, startingElev)) {\n\n if (discovered.containsKey(expandedPath.getKey())) {\n continue;\n }\n candidates.add(expandedPath);\n discovered.put(expandedPath.getKey(), expandedPath);\n // Make sure the candidate list doesn't get too big\n if (candidates.size() > 100) {\n candidates.remove(candidates.size() - 1);\n }\n }\n }\n // If we're doing a special movement, like charging or DFA, we will\n // have to take extra steps to see if we can finish off the move\n // this is because getNextMoves only considers turning and\n // forward/backward movement\n if (type == MoveStepType.CHARGE ||\n type == MoveStepType.DFA){\n MovePath expandedPath = candidatePath.clone();\n expandedPath.addStep(type);\n if (expandedPath.getLastStep().isMovementPossible(getGame(),\n startingPos, startingElev)) {\n\n if (discovered.containsKey(expandedPath.getKey())) {\n continue;\n }\n candidates.add(expandedPath);\n discovered.put(expandedPath.getKey(), expandedPath);\n // Make sure the candidate list doesn't get too big\n if (candidates.size() > 100) {\n candidates.remove(candidates.size() - 1);\n }\n }\n }\n\n\n loopcount++;\n if (((loopcount % 256) == 0) && keepLooping\n && (candidates.size() > 0)) {\n final MovePath front = candidates.peek();\n if (front.getFinalCoords().distance(dest) < bestPath\n .getFinalCoords().distance(dest)) {\n bestPath = front;\n }\n if (System.currentTimeMillis() > endTime) {\n keepLooping = false;\n System.out.println(\"Time limit reached searching \" +\n \"for path!\");\n }\n }\n } // end while\n //System.out.println(\"iteration count: \" + loopcount);\n if (getFinalCoords().distance(dest) > bestPath.getFinalCoords().distance(dest)) {\n // Make the path we found, this path.\n steps = bestPath.steps;\n }\n if (!getFinalCoords().equals(dest)) {\n lazyPathfinder(dest, type);\n }\n }", "private void analyzeRoute(ArrayList<LatLng> route) {\n if (route == null) route = this.route;\n double runningDistance = 0;\n if (waypoints == null) waypoints = new Stack<>();\n\n ArrayList<LatLng> reverseRoute = new ArrayList<>();\n reverseRoute.addAll(route);\n Collections.reverse(reverseRoute);\n\n LatLng previousWaypoint = new LatLng(0, 0);\n Iterator<LatLng> it = reverseRoute.iterator();\n if (it.hasNext())\n previousWaypoint = it.next();\n\n mMap.addMarker(new MarkerOptions().position(previousWaypoint).title(\"Destination\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN)));\n\n while (it.hasNext()) {\n LatLng waypoint = it.next();\n double distance = directionsHelper.getDistanceInMeters(waypoint, previousWaypoint);\n runningDistance += distance;\n previousWaypoint = waypoint;\n waypoints.push(new Waypoint(waypoint.latitude, waypoint.longitude, runningDistance));\n }\n }", "private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }", "private PathCostFlow findCheapestPath(int start, int end, double max_flow) throws Exception {\n if (getNode(start) == null || getNode(end) == null\n || !getNode(start).isSource() || getNode(end).isSource()) {\n throw new IllegalArgumentException(\"start must be the index of a source and end must be the index of a sink\");\n }\n double amount = Math.min(Math.min(getNode(start).getResidualCapacity(),\n getNode(end).getResidualCapacity()), max_flow);\n\n boolean[] visited = new boolean[n];\n int[] parent = new int[n];\n for (int i = 0; i < n; i++) {\n parent[i] = -1;\n }\n double[] cost = new double[n];\n for (int i = 0; i < n; i++) {\n cost[i] = Integer.MAX_VALUE;\n }\n cost[start] = 0;\n\n PriorityQueue<IndexCostTuple> queue = new PriorityQueue<IndexCostTuple>();\n queue.add(new IndexCostTuple(start, 0));\n\n while (!queue.isEmpty()) {\n IndexCostTuple current = queue.poll();\n\n // we found the target node\n if (current.getIndex() == end) {\n ArrayList<Integer> path = new ArrayList<Integer>();\n path.add(new Integer(end));\n while (path.get(path.size() - 1) != start) {\n path.add(parent[path.get(path.size() - 1)]);\n }\n Collections.reverse(path);\n if ((path.get(0) != start) || (path.get(path.size() - 1) != end)) {\n throw new Exception(\"I fucked up coding Dijkstra's\");\n }\n return new PathCostFlow(path, cost[end], amount);\n }\n\n // iterate through all possible neighbors of the current node\n for (int i = 0; i < n; i++) {\n SingleEdge e = matrix[current.getIndex()][i];\n if ((!visited[i]) && (e != null)\n && (current.getCost() + e.getCost(amount) < cost[i])) {\n cost[i] = current.getCost() + e.getCost(amount);\n parent[i] = current.getIndex();\n\n // update the entry for this node in the queue\n IndexCostTuple newCost = new IndexCostTuple(i, cost[i]);\n queue.remove(newCost);\n queue.add(newCost);\n }\n }\n visited[current.getIndex()] = true;\n }\n\n return null; //the target node was unreachable\n }", "public Trip getShortestRoute(Station src, Station dst)\n {\n if (src.equals(dst)) return new Trip(); // no self loops\n\n String key = src.getId() + \"-\" + dst.getId();\n\n if (tripDict.containsKey(key))\n {\n TreeSet<Trip> trips = (TreeSet<Trip>) this.tripDict.get(key);\n\n return trips.first();\n }\n\n return null;\n }", "@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tList<node_data> ans = new ArrayList<>();\n\t\tthis.shortestPathDist(src, dest);\n\t\tif(this.GA.getNode(src).getWeight() == Integer.MAX_VALUE || this.GA.getNode(dest).getWeight() == Integer.MAX_VALUE){\n\t\t\tSystem.out.print(\"There is not a path between the nodes.\");\n\t\t\treturn null;\n\t\t}\n\t\tgraph copied = this.copy();\n\t\ttransPose(copied);\n\t\tnode_data first = copied.getNode(dest);\n\t\tans.add(first);\n\t\twhile (first.getKey() != src) {\n\t\t\tCollection<edge_data> temp = copied.getE(first.getKey());\n\t\t\tdouble check= first.getWeight();\n\t\t\tif(temp!=null) {\n\t\t\t\tfor (edge_data edge : temp) {\n\t\t\t\t\tif (copied.getNode(edge.getDest()).getWeight() + edge.getWeight() == check) {\n\t\t\t\t\t\tfirst = copied.getNode(edge.getDest());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tans.add(first);\n\t\t}\n\t\tList<node_data> ans2 = new ArrayList<>();\n\t\tfor (int i = ans.size()-1;i>=0;i--){\n\t\t\tans2.add(ans.get(i));\n\t\t}\n\t\treturn ans2;\n\t}", "private void launchAlternativeRouteCalculation() {\n SKRouteSettings route = new SKRouteSettings();\n route.setStartCoordinate(new SKCoordinate(-122.392284, 37.787189));\n route.setDestinationCoordinate(new SKCoordinate(-122.484378, 37.856300));\n // number of alternative routes specified here\n route.setNoOfRoutes(3);\n route.setRouteMode(SKRouteSettings.SKROUTE_CAR_FASTEST);\n route.setRouteExposed(true);\n SKRouteManager.getInstance().setRouteListener(this);\n SKRouteManager.getInstance().calculateRoute(route);\n }", "public static void findShortestRoadMap(String fileName, String source, String dest, String outputName){\n try {\n PrintWriter writer = new PrintWriter(outputName, \"UTF-8\");\n\n Dijkstra d = new Dijkstra(new Graph(fileName));\n writer.println(d.getPath(source, dest));\n writer.close();\n\n System.out.println(\"Wrote path to file \" + outputName);\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "public double shortestPathDist(int src, int dest);", "private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }", "private void updateRoutingTable(){\n\tint[] current = new int[RouterSimulator.NUM_NODES];\n\tArrays.fill(current, RouterSimulator.INFINITY);\n\t\n\t//iterate through neighbours distance tables\n\t\n\tfor(int i=0;i<myNeighboursDistTable[myID].length;i++){\n\t //if shortest path goes through current node\n\t if(i==myID){\n\t\tcurrent[i] = myDistTable[i];\n\t\troute[i] = i;\n\t\tcontinue;\n\t }\n\t //iterate through neighbours\n\t for(int j = 0; j < neighbours.length; j++){\n\t\t//if a neighbour exist\n\t\tif(neighbours[j]){\n\t\t int cost = costs[j] + myNeighboursDistTable[j][i];\n\t\t //if shorter path found\n\t\t if(cost < current[i]){\n\t\t\tcurrent[i] = cost;\n\t\t\troute[i] = j;\n \t\t }\n\t\t}\n\t\t\n\t }\n\t}\n\t//if better path found, send new routingtable to neighbours\n\tif(!Arrays.equals(current, myDistTable)){\n\t System.arraycopy(current, 0, myDistTable, 0, RouterSimulator.NUM_NODES);\n\t send();\n\t}\n }", "@Override\r\n public List<V> shortestPath(V start, V destination) {\r\n Vertex a = null, b = null;\r\n try {\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n\r\n while (vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if (start.compareTo(v.vertexName) == 0)\r\n a = v;\r\n if (destination.compareTo(v.vertexName) == 0)\r\n b = v;\r\n }\r\n if (a == null || b == null) {\r\n vertexIterator.next();\r\n }\r\n\r\n } catch (NoSuchElementException e) {\r\n throw e;\r\n }\r\n\r\n computePaths(map.get(start), destination);\r\n return getShortestPathTo(destination, start);\r\n }", "@Override\n public List<node_data> shortestPath(int src, int dest) {\n reset();\n for (node_data node : G.getV()) {\n node.setWeight(Double.POSITIVE_INFINITY);\n }\n\n DWGraph_DS.Node currentNode = (DWGraph_DS.Node) G.getNode(src);\n currentNode.setWeight(0);\n PriorityQueue<node_data> unvisitedNodes = new PriorityQueue(G.nodeSize(), weightComperator);\n unvisitedNodes.addAll(G.getV());\n HashMap<Integer, node_data> parent = new HashMap<>();\n parent.put(src, null);\n\n while (currentNode.getWeight() != Double.POSITIVE_INFINITY) {\n if (G.getNode(dest).getTag() == 1) {\n break;\n }\n for (edge_data edge : G.getE(currentNode.getKey())) {\n DWGraph_DS.Node neighbor = (DWGraph_DS.Node) G.getNode(edge.getDest());\n double tmpWeight = currentNode.getWeight() + edge.getWeight();\n if (tmpWeight < neighbor.getWeight()) {\n neighbor.setWeight(tmpWeight);\n unvisitedNodes.remove(neighbor);\n unvisitedNodes.add(neighbor);\n parent.put(neighbor.getKey(), currentNode);\n }\n }\n currentNode.setTag(1);\n if(currentNode.getKey()==dest) break;\n unvisitedNodes.remove(currentNode);\n currentNode = (DWGraph_DS.Node) unvisitedNodes.poll();\n }\n /*\n Rebuild the path list\n */\n if (!parent.keySet().contains(dest)) return null;\n List<node_data> pathList = new ArrayList<>();\n currentNode = (DWGraph_DS.Node) G.getNode(dest);\n while (parent.get(currentNode.getKey()) != null) {\n pathList.add(currentNode);\n currentNode = (DWGraph_DS.Node) parent.get(currentNode.getKey());\n }\n Collections.reverse(pathList);\n return pathList;\n }", "private void computeShortestPathsFromSource(V source) {\n\t\tBFSDistanceLabeler<V, E> labeler = new BFSDistanceLabeler<V, E>();\n\t\tlabeler.labelDistances(mGraph, source);\n\t\tdistances = labeler.getDistanceDecorator();\n\t\tMap<V, Number> currentSourceSPMap = new HashMap<V, Number>();\n\t\tMap<V, E> currentSourceEdgeMap = new HashMap<V, E>();\n\n\t\tfor (V vertex : mGraph.getVertices()) {\n\n\t\t\tNumber distanceVal = distances.get(vertex);\n\t\t\t// BFSDistanceLabeler uses -1 to indicate unreachable vertices;\n\t\t\t// don't bother to store unreachable vertices\n\t\t\tif (distanceVal != null && distanceVal.intValue() >= 0) {\n\t\t\t\tcurrentSourceSPMap.put(vertex, distanceVal);\n\t\t\t\tint minDistance = distanceVal.intValue();\n\t\t\t\tfor (E incomingEdge : mGraph.getInEdges(vertex)) {\n\t\t\t\t\tfor (V neighbor : mGraph\n\t\t\t\t\t\t\t.getIncidentVertices(incomingEdge)) {\n\t\t\t\t\t\tif (neighbor.equals(vertex))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t// V neighbor = mGraph.getOpposite(vertex,\n\t\t\t\t\t\t// incomingEdge);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNumber predDistanceVal = distances.get(neighbor);\n\n\t\t\t\t\t\tint pred_distance = predDistanceVal.intValue();\n\t\t\t\t\t\tif (pred_distance < minDistance && pred_distance >= 0) {\n\t\t\t\t\t\t\tminDistance = predDistanceVal.intValue();\n\t\t\t\t\t\t\tcurrentSourceEdgeMap.put(vertex, incomingEdge);\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\tmDistanceMap.put(source, currentSourceSPMap);\n\t\tmIncomingEdgeMap.put(source, currentSourceEdgeMap);\n\t}", "private void search(final Map<String, Integer> routes, Vertex current, Vertex finishVertex, int maxDistance, String currentRoute, int currentDistance) {\r\n if(current == finishVertex) {\r\n routes.put(currentRoute, currentDistance);\r\n }\r\n for(Edge e : current.getIncidentEdges()) {\r\n if(e.getDistance() + currentDistance <= maxDistance)\r\n search(routes, e.getOppositeVertex(current), finishVertex, maxDistance, currentRoute + e.getOppositeVertex(current).getName(), e.getDistance() + currentDistance);\r\n }\r\n }", "double estimatedDistanceToGoal(Vertex s, Vertex goal);", "public int headFor(Coordinate place) {\n\n\t\tif (place == null) {\n\t\t\tSystem.out.println(\"ERROR: can't move toward nonexistant location\");\n\t\t\treturn -1;\n\t\t}\n\n\t\t// first, record from where the agent is starting\n\t\tstartPoint = this.geometry.getCoordinate();\n\t\tgoalPoint = null;\n\n\t\tif (!(edge.getTo().equals(node) || edge.getFrom().equals(node))) {\n\t\t\tSystem.out.println((int) world.schedule.getTime() + \"\\tMOVE_ERROR_mismatch_between_current_edge_and_node\");\n\t\t\treturn -2;\n\t\t}\n\n\t\t///////////////////// FINDING THE GOAL ////////////////////\n\t\t// set up goal information\n\t\ttargetDestination = world.snapPointToRoadNetwork(place);\n\n\t\tGeoNode destinationNode = world.snapPointToNode(targetDestination);\n\t\tif (destinationNode == null) {\n\t\t\tSystem.out.println((int) world.schedule.getTime() + \"\\tMOVE_ERROR_invalid_destination_node\");\n\t\t\treturn -2;\n\t\t}\n\n\t\t// be sure that if the target location is not a node but rather a point along an\n\t\t// edge, that point is recorded\n\t\tif (destinationNode.geometry.getCoordinate().distance(targetDestination) > world.resolution)\n\t\t\tgoalPoint = targetDestination;\n\t\telse\n\t\t\tgoalPoint = null;\n\n\t\t///////////////// FINDING A PATH /////////////////////\n\n\t\tpath = pathfinder.astarPath(node, destinationNode, world.roads);\n\n\t\t// if it fails, give up\n\t\tif (path == null) {\n\t\t\treturn -1;\n\t\t}\n\n\t\t//////////////////// CHECK FOR BEGINNING OF PATH ///////////////////\n\t\t// we want to be sure that we're situated on the path *right now*, and that if\n\t\t// the path doesn't include the link we're on at this moment that we're both\n\t\t// a) on a link that connects to the startNode\n\t\t// b) pointed toward that startNode\n\t\t// Then, we want to clean up by getting rid of the edge on which we're already\n\t\t// located\n\n\t\t// Make sure we're in the right place, and face the right direction\n\t\tif (edge.getTo().equals(node))\n\t\t\tdirection = 1;\n\t\telse if (edge.getFrom().equals(node))\n\t\t\tdirection = -1;\n\t\telse {\n\t\t\tSystem.out.println((int) world.schedule.getTime() + \"MOVE_ERROR_mismatch_between_current_edge_and_node_2\");\n\t\t\treturn -2;\n\t\t}\n\n\t\t// reset stuff\n\t\tif (path.size() == 0 && targetDestination.distance(geometry.getCoordinate()) > world.resolution) {\n\t\t\tpath.add(edge);\n\t\t\tnode = (GeoNode) edge.getOtherNode(node);\n\t\t}\n\n\t\t//////////////////// CHECK FOR END OF PATH //////////////\n\n\t\tif (goalPoint != null) {\n\n\t\t\tListEdge myLastEdge = world.getClosestEdge(goalPoint, world.resolution, world.networkEdgeLayer, world.fa);\n\n\t\t\tif (myLastEdge == null) {\n\t\t\t\tSystem.out.println((int) world.schedule.getTime() + \"\\tMOVE_ERROR_goal_point_is_too_far_from_any_edge\");\n\t\t\t\treturn -2;\n\t\t\t}\n\n\t\t\t// make sure the point is on the last edge\n\t\t\tEdge lastEdge;\n\t\t\tif (path.size() > 0)\n\t\t\t\tlastEdge = path.get(0);\n\t\t\telse\n\t\t\t\tlastEdge = edge;\n\n\t\t\tPoint goalPointGeometry = world.fa.createPoint(goalPoint);\n\t\t\tif (!lastEdge.equals(myLastEdge)\n\t\t\t\t\t&& ((MasonGeometry) lastEdge.info).geometry.distance(goalPointGeometry) > world.resolution) {\n\t\t\t\tif (lastEdge.getFrom().equals(myLastEdge.getFrom()) || lastEdge.getFrom().equals(myLastEdge.getTo())\n\t\t\t\t\t\t|| lastEdge.getTo().equals(myLastEdge.getFrom()) || lastEdge.getTo().equals(myLastEdge.getTo()))\n\t\t\t\t\tpath.add(0, myLastEdge);\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println((int) world.schedule.getTime()\n\t\t\t\t\t\t\t+ \"\\tMOVE_ERROR_goal_point_edge_is_not_included_in_the_path\");\n\t\t\t\t\treturn -2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// set up the coordinates\n\t\tthis.startIndex = segment.getStartIndex();\n\t\tthis.endIndex = segment.getEndIndex();\n\n\t\treturn 1;\n\t}", "public TrainRoute calculateShortestRoute(Train train) {\n\t\tSet<Integer> allVertices = layout.vertexSet();\n\t\tHashSet<Integer> visitedNodes = new HashSet<Integer>(layout.vertexSet().size());\n\t\tdouble totalWeight = ((DefaultBlock)blockData.get(train.currentBlock)).blockLength - train.distanceTraveledOnBlock;\n\t\tInteger currentBlock = null;\n\t\tInteger destinationBlock = null;\n\t\tLinkedList<Integer> path = new LinkedList<Integer>();\n\t\tHashMap<LinkedList<Integer>, Double> allSimplePaths = new HashMap<LinkedList<Integer>, Double>();\n\t\tfor (Integer i : allVertices) {\n\t\t\tif (i.equals(train.currentBlock)) {\n\t\t\t\tcurrentBlock = i;\n\t\t\t}\n\t\t\tif (i.equals(train.destination)) {\n\t\t\t\tdestinationBlock = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfindSimplePaths(currentBlock, destinationBlock, totalWeight, path, allVertices, visitedNodes, allSimplePaths);\n\t\t// Create a route object for all of the paths\n\t\tLinkedList<TrainRoute> allTrainRoutes = new LinkedList<TrainRoute>();\n\t\tfor (LinkedList<Integer> p : allSimplePaths.keySet()) {\n\t\t\tDouble pathDistance = allSimplePaths.get(p);\n\t\t\tp.add(0, currentBlock);\n\t\t\tpathDistance += ((DefaultBlock)blockData.get(currentBlock)).blockLength;\n\t\t\tpathDistance += ((DefaultBlock)blockData.get(p.get(p.size()-1))).blockLength/2;\n\t\t\t// create the TrainRoute Object\n\t\t\tdouble trainSpeed = ((DefaultBlock)blockData.get(train.currentBlock)).speedLimit;\n\t\t\tif (train.maxSpeed < trainSpeed) {\n\t\t\t\ttrainSpeed = train.maxSpeed;\n\t\t\t}\n\t\t\tdouble authority = train.authority;\n\t\t\tif (authority > pathDistance) {\n\t\t\t\tauthority = pathDistance;\n\t\t\t}\n\n\t\t\tallTrainRoutes.add(new TrainRoute(lineName, train.currentBlock, p, trainSpeed, authority, pathDistance));\n\t\t}\n\t\tCollections.sort(allTrainRoutes);\n\t\tblockToControllerMap.get(currentBlock).addRoute(allTrainRoutes.get(0));\n\t\treturn allTrainRoutes.get(0);\n\t}", "private int best_Broadcasting_Router(int[][] matrx)\n\t{\n\t\tint best_router = -1;\n\t\tint min = INFINITE_DIST;\n\t\tint[] min_dist = new int[matrx.length];\n\t\tint[] forward_min_dist_table = new int[matrx.length];\n\t\tint[] prev_node = new int[matrx.length];\n\t\t\n\t\tfor(int s=0; s<matrx.length; s++)\n\t\t{\n\t\t\t//Compute shortest path for every node\n\t\t\tforward_min_dist_table = shrtst_Path_Dijkstra_Algo(matrx, s, forward_min_dist_table, prev_node);\n\t\t\t\n\t\t\t//only include reachable nodes for total\n\t\t\tfor(int i=0; i<forward_min_dist_table.length; i++)\n\t\t\t{\n\t\t\t\tif(forward_min_dist_table[i] != INFINITE_DIST)\n\t\t\t\t\tmin_dist[s] += forward_min_dist_table[i];\n\t\t\t}\n\t\t}\n\t\t//min_dist array contains min distance from every node to every other node\n\t\tfor(int n=0; n<min_dist.length; n++)\n\t\t{\n\t\t\tSystem.out.println(\"Total cost of router \"+ (n+1) +\" to other nodes is: \"+ min_dist[n]);\n\t\t\tif(min_dist[n] < min && min_dist[n] != 0)\n\t\t\t{\n\t\t\t\tmin = min_dist[n];\n\t\t\t\tbest_router = n;\n\t\t\t}\n\t\t}\n\t\treturn (best_router + 1);\n\t}", "private static long getShortestDistance(String origin, String destination) \n\t\tthrows IOException, ParserConfigurationException, SAXException{\n\t\t\t\t\n\t\tURL googleReq = new URL(\"http://maps.google.com/maps/api/directions/xml?origin=\"+origin.replace(\" \", \"+\").replace(\",\", \"\")+\n\t\t\t\t\"&destination=\"+destination.replace(\" \", \"+\").replace(\",\", \"\")+\"&sensor=false\");\n\t\t\n\t\tURLConnection urlConnection = googleReq.openConnection();\n\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\tDocument doc = db.parse(urlConnection.getInputStream());\n\t\ttry{\n\t\t\t/*\n\t\t\t * we write the response to an xml file\n\t\t\t * just for supervision\n\t\t\t */\n\t\t\tSource source = new DOMSource(doc);\n\t\t\tFile file = new File(\"response.xml\");\n\t\t\tResult result = new StreamResult(file);\n\n\t\t\t// Write the DOM document to the file\n\t\t\tTransformer xformer = TransformerFactory.newInstance().newTransformer();\n\t\t\txformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t} catch (TransformerException e) {\n\t\t}\n\n\t\tNode stNode = doc.getElementsByTagName(\"status\").item(0);\n\t\tlong dst = -1;\n\t\tif(stNode.getTextContent().equals(\"OK\")){\n\t\t\t//extract the distance from the response\n\t\t\tNodeList routeLst = doc.getElementsByTagName(\"route\");\n\t\t\t\n\t\t\tfor(int rCtr=0;rCtr<routeLst.getLength();rCtr++){\n\t\t\t\tlong routeDist = 0;\n\t\t\t\tNode route = routeLst.item(rCtr);\n\t\t\t\t\n\t\t\t\tNodeList distLst = ((Element)route).getElementsByTagName(\"distance\");\n\n\t\t\t\tfor(int dCtr=0;dCtr<distLst.getLength();dCtr++){\n\t\t\t\t\tNode distanceNode = distLst.item(dCtr);\n\t\t\t\t\tif(distanceNode.getParentNode().getNodeName().equals(\"leg\")){\n\t\t\t\t\t\tNodeList distChild = ((Element)distanceNode).getElementsByTagName(\"value\");\n\t\t\t\t\t\tfor(int ch=0;ch<distChild.getLength();ch++){\n\t\t\t\t\t\t\tNode tmpChild = distChild.item(ch);\n\t\t\t\t\t\t\t\trouteDist += Long.parseLong(tmpChild.getTextContent());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(routeDist<dst || dst==-1)\n\t\t\t\t\tdst=routeDist;\n\t\t\t} //end route\n\t\t\tSystem.out.println(\"Shortest distance: \"+dst+\" meters\");\n\t\t}\n\t\telse{\n\t\t\tSystem.err.println(\"RESPONSE STATUS NOT OK!\");\t//probably over_query_limit status\n\t\t}\n\t\t\n\t\treturn dst;\n\t}", "@Override\r\n public Collection<OptimizedItinerary> getBestItineraryByTime(String origin, Collection<RouteNode> routes) throws OptimizedItineraryStrategyException {\r\n log.info(String.format(\"** Getting best itineraries (based on time) from %s, using Dijkstra algorithm. **\", origin));\r\n \r\n if (!isOriginPresent(routes, origin))\r\n \tthrow new OptimizedItineraryStrategyException(String.format(\"Origin city: %s is not present.\", origin));\r\n \t\r\n Set<String> allDestinations = getDestinations(routes, origin);\r\n HipsterDirectedGraph<String,Long> graph = doGraphWithTimes(routes);\r\n \r\n // call Dijkstra for the same origen and all the destinations ...\r\n Collection<OptimizedItinerary> results = allDestinations.stream()\r\n .map(destination -> doDijkstra(graph, origin, destination))\r\n .collect(Collectors.toList());\r\n \r\n return results;\r\n }", "T getDestination(T nodeOrigin, F flow);", "@Override\r\n public Collection<OptimizedItinerary> getBestItineraryByHops(String origin, Collection<RouteNode> routes) throws OptimizedItineraryStrategyException{\r\n log.info(String.format(\"** Getting best itineraries (based on hops) from %s, using Dijkstra algorithm. **\", origin));\r\n \r\n if (!isOriginPresent(routes, origin))\r\n \tthrow new OptimizedItineraryStrategyException(String.format(\"Origin city: %s is not present.\", origin));\r\n \r\n Set<String> allDestinations = getDestinations(routes, origin);\r\n HipsterDirectedGraph<String,Long> graph = doGraphHops(routes);\r\n \r\n Collection<OptimizedItinerary> results = allDestinations.stream()\r\n .map(destination -> doDijkstra(graph, origin, destination))\r\n .collect(Collectors.toList());\r\n \r\n return results;\r\n }", "@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tint[] prev = new int[dwg.nodeSize()];\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\tprev[src%dwg.nodeSize()] = -1;\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t\tprev[u.getKey()%dwg.nodeSize()] = v.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tList<node_data> ans = new ArrayList<node_data>();\n\t\tint run = dest;\n\t\twhile(run != src) {\n\t\t\tans.add(0,dwg.getNode(run));\n\t\t\trun = prev[run%dwg.nodeSize()];\n\t\t}\n\t\tans.add(0, dwg.getNode(src));\n\n\t\treturn ans;\n\t}", "public static List<MapTile> findPath(MovableObject mO, GameObject destination) {\n List<MapTile> openList = new LinkedList<>();\n List<MapTile> closedList = new LinkedList<>();\n List<MapTile> neighbours = new ArrayList<>();\n Point objectTileCoord = mO.getGridCoordinates();\n Point destinationTileCoord = destination.getGridCoordinates();\n MapTile currentTile;\n try {\n currentTile = mapGrid.mapGrid[objectTileCoord.x][objectTileCoord.y];\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.print(\"Error while getting current tile for pathfinding. Trying to adapt coords.\");\n if (mO.getX() >= MapManager.getWorldWidth()) {\n objectTileCoord.x -= 1;\n }\n if (mO.getY() >= MapManager.getWorldHeight()) {\n objectTileCoord.y -= 1;\n }\n if (mO.getY() >= MapManager.getWorldHeight() && mO.getX() >= MapManager.getWorldWidth()) {\n objectTileCoord.x -= 1;\n objectTileCoord.y -= 1;\n }\n currentTile = mapGrid.mapGrid[objectTileCoord.x][objectTileCoord.y];\n }\n\n currentTile.setParentMapTile(null);\n currentTile.totalMovementCost = 0;\n openList.add(currentTile);\n\n boolean notDone = true;\n\n while (notDone) {\n neighbours.clear();\n currentTile = getLowestCostTileFromOpenList(openList, currentTile);\n closedList.add(currentTile);\n openList.remove(currentTile);\n\n //ReachedGoal?\n if ((currentTile.xTileCoord == destinationTileCoord.x) && (currentTile.yTileCoord == destinationTileCoord.y)) {\n try {\n return getResultListOfMapTiles(currentTile);\n } catch (Exception e) {\n System.out.println(\"closed list size: \" + closedList.size());\n throw e;\n }\n }\n\n neighbours.addAll(currentTile.getNeighbourTiles());\n neighbours.removeAll(closedList);\n\n for (MapTile mapTile : neighbours) {\n if (openList.contains(mapTile)) {\n // compare total movement costs.\n if (mapTile.totalMovementCost > currentTile.getMovementCostToTile(mapTile) + currentTile.totalMovementCost) {\n mapTile.setParentMapTile(currentTile);\n mapTile.totalMovementCost = currentTile.getMovementCostToTile(mapTile) + currentTile.totalMovementCost;\n }\n } else {\n mapTile.setParentMapTile(currentTile);\n mapTile.totalMovementCost = currentTile.totalMovementCost + currentTile.getMovementCostToTile(mapTile);\n openList.add(mapTile);\n }\n }\n }\n return null;\n }", "public void shortestRouteDijkstra(){\n int landmark1 = l1.getSelectionModel().getSelectedIndex();\n int landmark2 = l2.getSelectionModel().getSelectedIndex();\n GraphNodeAL<MapPoint> lm1 = landmarkList.get(landmark1);\n GraphNodeAL<MapPoint> lm2 = landmarkList.get(landmark2);\n\n shortestRouteDij(lm1, lm2);\n }", "public static void connectNetwork(int src, int dest, boolean printPath)\r\n\t{\r\n\t\tint v = routers;\r\n\t\t\r\n\t\tint parent[] = new int[v];//parent node array\r\n\t\tint dist[] = new int[v];// distance array\r\n\t\tboolean visited[] = new boolean[v];// visited will be either true or false\r\n\t\t\r\n\t\t// initialize parent, distance arrays\r\n\t\tfor (int i = 0; i < v; i++ ) { \r\n\t\t\tvisited[i] = false;\r\n\t\t\tparent[i] = -1;\r\n\t\t\tdist[i] = Integer.MAX_VALUE;\r\n\t\t}\r\n\t\t\r\n\t\t// initialize the source distance as zero\r\n\t\tdist[src] = 0;\r\n\t\t\r\n\t\t// get minimum edge from the unvisited nodes\r\n\t\tfor (int count = 0; count < v-1; count++) { // loop for all v nodes\r\n\t\t\t\r\n\t\t\tint start = -1;\r\n\t\t\tint min = Integer.MAX_VALUE;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < v; i++) {\r\n\t\t\t\tif (visited[i] == false && dist[i] < min) {\r\n\t\t\t\t\tmin = dist[i];\r\n\t\t\t\t\tstart = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// minimum distance is computed for all connected edges\r\n\t\t\tif (start == -1) \r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// update the current node as visited\r\n\t\t\tvisited[start] = true;\r\n\t\t\t\r\n\t\t\t// update all adjacent nodes' distance array\r\n\t\t\tfor (int end = 0; end < v; end++) {\r\n\t\t\t\tif ((visited[end] != true) && (graph[start][end] != -1) &&\r\n\t\t\t\t\t\t(dist[start] != Integer.MAX_VALUE) &&\r\n\t\t\t\t\t\t(dist[start] + graph[start][end] < dist[end])) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tdist[end] = dist[start] + graph[start][end];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// start node is the parent node in BFS tree\r\n\t\t\t\t\tparent[end] = start;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\tif (dest != -1) {\r\n\t\t\t\r\n\t\t\t// Case#4: shortest path between source and destination nodes \r\n\t\t\tif (parent[dest] == -1) {\r\n\t\t\t\tSystem.out.println(\"There is no path from \" + (src+1) + \" to \" + (dest+1) + \" exists.\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Shortest distance from \" + (src+1) + \" to \" + (dest+1) + \" is: \" + dist[dest]);\r\n\t\t\t\tSystem.out.print(\"Corresponding Shortest Path is: \");\r\n\t\t\t\tprintNodes(parent, parent[dest], src);\r\n\t\t\t\tSystem.out.println(dest+1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n System.out.println(\"The Shortest Distance from node you entered, \"+ (src+1) + \" are\\n\");\r\n //Printing shortest path length\r\n\t\t\tSystem.out.println(\"Destination\\tDistance\\n========================\");\r\n for (int i = 0; i < v; i++) {\r\n System.out.println(\"\\t\"+ (i+1) + \"\\t \"+ dist[i]); // Printing the node number and distance\r\n }\r\n \r\n\t\t\tif (printPath == true) {\r\n\t\t\t\t\r\n\t\t\t\t// case#2: Print all shortest paths from source node\r\n\t\t\t\tfor (int i = 0; i < v; i++) {\r\n\t\t\t\t\tif (i == src)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\telse if (parent[i] == -1) {\r\n\t\t\t\t\t\tSystem.out.println(\"Shortest path from \" + (src+1) + \" to \" + (i+1) + \" doesn't exist.\");\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.print(\"Shortest Path from \" + (src+1) + \" to \" + (i+1) + \" is: \");\r\n\t\t\t\t\tprintNodes(parent, parent[i], src);\r\n\t\t\t\t\tSystem.out.println(i+1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public static void getShortestPath()\r\n\t{\r\n\t\tScanner scan = new Scanner(System.in); //instance for input declared\r\n\t\tSystem.out.print(\"\\nPlease enter the Source node for shortest path: \");\r\n\t\tint src = scan.nextInt() - 1;\r\n\t\twhile(src < 0 || src > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered source node is out of range, please enter again: \"); // Printing error\r\n\t\t\tsrc = scan.nextInt() - 1;\t//re-input source\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.print(\"Please enter the destination node for shortest path: \");\r\n\t\tint dest = scan.nextInt() - 1;\r\n\t\twhile(dest < 0 || dest > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered destination node is out of range, please enter again: \"); // Printing error\r\n\t\t\tdest = scan.nextInt() - 1;\t//re-input destination\r\n\t\t}\r\n\t\t\r\n\t\tconnectNetwork(src, dest, true);\r\n\t}", "@Override\r\n public List<node_info> shortestPath(int src, int dest) {\r\n double i = shortestPathDist(src, dest);\r\n double j, k, s, mark = 1;\r\n ArrayList<node_info> Rlist = new ArrayList<>();\r\n ArrayList<node_info> Llist = new ArrayList<>();\r\n Rlist.clear();\r\n Llist.clear();\r\n j = i;\r\n for (node_info curr : this.Graph.getV()) {\r\n curr.setInfo(\"clear\");\r\n }\r\n this.Graph.getNode(src).setInfo(\"tmp\");\r\n Rlist.add(this.Graph.getNode(dest));\r\n node_info nd = this.Graph.getNode(dest);\r\n node_info temp = this.Graph.getNode(dest);\r\n while (j != 0 && j > 0) {\r\n for (node_info curr0 : this.Graph.getV(nd.getKey())) {\r\n if (curr0.getInfo() != null) {\r\n temp = curr0;\r\n k = this.Graph.getEdge(nd.getKey(), curr0.getKey());\r\n s = j - k;\r\n if ((s - curr0.getTag() < 0.001 && s - curr0.getTag() > -0.001) && nd.getInfo() != null) {\r\n Rlist.add(curr0);\r\n j = curr0.getTag();\r\n curr0.setInfo(\"tmp\");\r\n mark = 1;\r\n nd = curr0;\r\n }\r\n }\r\n }\r\n if (mark == 0) {\r\n i = j;\r\n temp.setInfo(null);\r\n Rlist.clear();\r\n Rlist.add(this.Graph.getNode(dest));\r\n mark = 1;\r\n }\r\n mark = 0;\r\n }\r\n for (int t = (Rlist.size() - 1); t >= 0; t--) {\r\n Llist.add(Rlist.get(t));\r\n }\r\n return Llist;\r\n }", "public interface PathCalculationStrategy {\n\t\n\t/**\n\t * Returns the shortest path for a Journey.\n\t * \n\t * @param grid the traffic grid.\n\t * @param src the source location.\n\t * @param dest the destination location.\n\t * \n\t * @return a List containing the path for the Journey.\n\t */\n\tList<Point> getPath(int grid[][], Point src, Point dest);\n}", "Set<ConnectPoint> sourcesFor(McastRoute route);", "private void calculateShortestDistances (GraphStructure graph,int startVertex,int destinationVertex) {\r\n\t\t//traverseRecursively(graph, startVertex);\r\n\t\tif(pathList.contains(destinationVertex)) {\r\n\t\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\t\tdistanceArray[startVertex]=0;\r\n\t\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\t\tList<Edge> list;\r\n\t\t\tlist = graph.getAdjacencyList()[startVertex];\r\n\t\t\tif(startVertex==destinationVertex) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\tif(! isVisited[value.getVertex()]) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[startVertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t\tshortestPathList.add(value.getVertex());\r\n\t\t\t\t\t\t\tcalculateShortestDistances(graph,value.getVertex(), distanceValueOfDestinationVertex);\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/*for(Integer value : spanningTreeSet) {\r\n\t\t\t\tSystem.out.print(value+\" \");\r\n\t\t\t}*/\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No route is present between given vertices !\");\r\n\t\t}\r\n\t}", "String getRouteDest();", "@Override\n public int findLowerCostPath(City src, City dest) {\n List<City> cityList = new ArrayList<>(cityManager.getAll());\n int[] travelCosts = new int[cityList.size()]; // accumulate minimum travel costs through each city\n boolean[] exploredCity = new boolean[cityList.size()];\n int currCityId = src.getId();\n Arrays.fill(travelCosts, INF); //All travel costs are INF\n travelCosts[currCityId - 1] = 0; //except src\n\n //Iterate\n for (int i = 0; i < cityList.size(); i++) {\n int minCost = INF;\n // if we get destination, ignore, it will be last explored city\n if (currCityId != dest.getId())\n exploredCity[currCityId - 1] = true;\n //find all paths of city to iterate\n Set<Path> paths = findAllPaths(cityList.get(currCityId - 1));\n for (Path path : paths) {\n if (exploredCity[path.getDestId() - 1])\n continue;\n //if from city cost + path cost < to city cost, then assign new value\n if (path.getCost() + travelCosts[path.getSrcId() - 1] < travelCosts[path.getDestId() - 1]) {\n travelCosts[path.getDestId() - 1] = travelCosts[path.getSrcId() - 1] + path.getCost();\n }\n //find minimum path cost of cur city\n if (path.getCost() < minCost) {\n minCost = path.getCost();\n currCityId = path.getDestId();\n }\n }\n //to find remaining not explored cities\n if (minCost == INF) {\n for (int j = 0; j < exploredCity.length; j++) {\n if (!exploredCity[j] && dest.getId() != (j + 1) && travelCosts[j] != INF) {\n currCityId = j + 1;\n }\n }\n }\n }\n //last explored city is destination\n exploredCity[dest.getId() - 1] = true;\n\n return travelCosts[dest.getId() - 1];\n }", "String viewRouteDetails(String source, String destination);", "public static RouteDetails findShortestRoute(Graph g, String start, String end) {\n\t\tAlgorithmGraph ag = new AlgorithmGraph(g);\n\t\treturn ag.getShortestRoute(start, end);\n\t}", "private int bfs(String source, String destination, Map<String, List<String>> graph) {\n\n class Node {\n String word;\n int distance = 0;\n\n public Node(String word, int distance) {\n this.word = word;\n this.distance = distance;\n }\n }\n\n final Queue<Node> queue = new LinkedList<>();\n Set<String> visited = new HashSet<>();\n queue.offer(new Node(source, 0)); //distance of source to source is 0\n visited.add(source);\n\n while (!queue.isEmpty()) {\n\n final Node node = queue.poll();\n final int distance = node.distance;\n\n //if we reached the destination node\n if (node.word.equals(destination)) {\n return distance + 1;\n }\n\n //try all word which is 1 weight away\n for (String neighbour : graph.getOrDefault(node.word, new ArrayList<>())) {\n if (!visited.contains(neighbour)) {\n visited.add(neighbour);\n queue.offer(new Node(neighbour, distance + 1));\n }\n }\n\n\n }\n return 0;\n }", "private void sendUpdate(int dest) {\n Set<AS> prevAdvedTo = this.adjOutRib.get(dest);\n Set<AS> newAdvTo = new HashSet<AS>();\n BGPPath pathOfMerit = this.locRib.get(dest);\n\n /*\n * If we have a current best path to the destination, build a copy of\n * it, apply export policy and advertise the route\n */\n if (pathOfMerit != null) {\n BGPPath pathToAdv = pathOfMerit.deepCopy();\n\n pathToAdv.prependASToPath(this.asn);\n\n /*\n * Advertise to all of our customers\n */\n for (AS tCust : this.customers) {\n tCust.advPath(pathToAdv);\n newAdvTo.add(tCust);\n }\n\n /*\n * Check if it's our locale route (NOTE THIS DOES NOT APPLY TO\n * HOLE PUNCHED ROUTES, so the getDest as opposed to the\n * getDestinationAS _IS_ correct) or if we learned of it from a\n * customer\n */\n if (pathOfMerit.getDest() == this.asn\n || (this.getRel(pathOfMerit.getNextHop()) == 1)) {\n for (AS tPeer : this.peers) {\n tPeer.advPath(pathToAdv);\n newAdvTo.add(tPeer);\n }\n for (AS tProv : this.providers) {\n tProv.advPath(pathToAdv);\n newAdvTo.add(tProv);\n }\n }\n }\n\n /*\n * Handle the case where we had a route at one point, but have since\n * lost any route, so obviously we should send a withdrawl\n */\n if (prevAdvedTo != null) {\n prevAdvedTo.removeAll(newAdvTo);\n for (AS tAS : prevAdvedTo) {\n tAS.withdrawPath(this, dest);\n }\n }\n\n /*\n * Update the adj-out-rib with the correct set of ASes we have\n * adverstised the current best path to\n */\n this.adjOutRib.put(dest, newAdvTo);\n }", "@Override\n public void calcRoute(final GeoPoint origin, final GeoPoint destination, double bearing, CallbackOnlineRouteReceiver callback){\n final String origLatLong = origin.getLatitude() + \",\" + origin.getLongitude();\n String destLatLong = destination.getLatitude() + \",\" + destination.getLongitude();\n\n // converting the heading to a string\n String heading = String.valueOf(bearing).split(\"\\\\.\")[0];\n\n // then we make the request to Bing API\n BingRequests mapsService = RoutingAPIs.getInstance().connectToBingMaps();\n Call<BingRespGetRoute> responseGetRoute =\n mapsService.requestDirections(\n origLatLong,\n destLatLong,\n heading,\n NavConfig.getLanguageTag(),\n NavConfig.API_KEY);\n\n // enqueuing the response\n responseGetRoute.enqueue(new Callback<BingRespGetRoute>() {\n @Override\n public void onResponse(@NonNull Call<BingRespGetRoute> call, @NonNull Response<BingRespGetRoute> response) {\n\n if (response.isSuccessful() && response.body() != null) {\n // once we get a successful response...\n List<RoutePoint> routePoints = new ArrayList<>(); // we start a new list of RoutePoints, that will be returned\n\n try {\n // we get a list of all the route points\n List<GeoPoint> routeGeoPoints = response.body()\n .getBingRouteResourceSets()[0]\n .getResources()[0]\n .getRoutePath()\n .getLine()\n .getLinePoints();\n\n // then we get a list of all pertinent data from the Bing API\n BingRouteLeg[] bingRouteLegs = response.body()\n .getBingRouteResourceSets()[0]\n .getResources()[0]\n .getRouteLegs();\n\n List<BingItineraryItem> allItems = new ArrayList<>();\n for (BingRouteLeg currentLeg : bingRouteLegs) {\n // adding all itinerary items on the same list (itinerary items encapsulate traffic info, instructions, ...)\n allItems.addAll(Arrays.asList(currentLeg.getItineraryItems()));\n }\n\n // we create a final version of our items list\n final List<BingItineraryItem> allInstructions = new ArrayList<>(allItems);\n\n // finally, we create a string with all route point coordinates to feed the snap to roads request\n String pointsString = \"\";\n for (GeoPoint point : routeGeoPoints) {\n pointsString = pointsString.concat(String.valueOf(point.getLatitude()))\n .concat(\",\")\n .concat(String.valueOf(point.getLongitude()))\n .concat(\";\");\n }\n // for the last point, we simply remove the final \";\"\n pointsString = pointsString.substring(0, pointsString.length() - 1);\n\n Log.d(TAG, \"Bing request Get Route was successful. Requesting snap to roads.\");\n // once we get a successful response, we make a new snap to roads request\n Call<BingRespSnapToRoad> responseSnapToRoad =\n mapsService.requestSnapToRoad(\n pointsString,\n NavConfig.API_KEY);\n\n // enqueuing the snap to roads response\n responseSnapToRoad.enqueue(new Callback<BingRespSnapToRoad>() {\n\n @Override\n public void onResponse(Call<BingRespSnapToRoad> call, Response<BingRespSnapToRoad> response) {\n\n try {\n\n BingSnappedPoint[] snappedPoints\n = response.body()\n .getBingSnapResourceSets()[0]\n .getResources()[0]\n .getSnappedPoints();\n\n List<RoutePoint> allRoutePoints = new ArrayList<>();\n\n // now we build each RoutePoint\n for (BingSnappedPoint point : snappedPoints) {\n\n double latitude = point.getCoordinates().getLatitude();\n double longitude = point.getCoordinates().getLongitude();\n\n GeoPoint gp = new GeoPoint(latitude, longitude);\n RoutePoint newRP = new RoutePoint(gp);\n\n newRP.setStreetName(point.getStreetName());\n newRP.setRecommendedSpeed(String.valueOf(point.getSpeedLimit()));\n\n allRoutePoints.add(newRP);\n }\n\n /* we end up with two parallel lists. One with all the points (allRoutePoints) and another\n with all the instruction data (allInstructions). We have to join them together. We'll cycle\n through all instructions and, for each one, we'll find the closest RoutePoint. Once we do,\n we simply assign all the instructions to that point */\n\n for (BingItineraryItem currentItem : allInstructions) {\n\n // for each item, we find its closest RoutePoint\n RoutePoint closestPoint = findClosestRoutePoint(currentItem, allRoutePoints);\n\n // and complement it\n if (closestPoint != null)\n complementRoutePointFromItem(closestPoint, currentItem);\n\n }\n callback.returnSuccess(allRoutePoints);\n\n } catch (Exception e) {\n Log.e(TAG, \"Exception while retrieving snap to roads: \" + response.message());\n Log.e(TAG, \"Processing original request\");\n e.printStackTrace();\n\n // On failure, we process our original response, without the snapped points\n List<RoutePoint> originalResponseRPs = processOriginalResponse(routeGeoPoints, allInstructions);\n callback.returnSuccess(originalResponseRPs);\n }\n }\n\n @Override\n public void onFailure(Call<BingRespSnapToRoad> call, Throwable throwable) {\n Log.e(TAG, \"ERROR while retrieving Bing snap to roads request. Processing original request\");\n // On failure, we process our original response, without the snapped points\n List<RoutePoint> originalResponseRPs = processOriginalResponse(routeGeoPoints, allInstructions);\n callback.returnSuccess(originalResponseRPs);\n }\n });\n\n } catch (Exception e) {\n Log.e(TAG, \"Exception while retrieving route: \" + response.message());\n e.printStackTrace();\n callback.returnFailure(origin, destination); // calculate an offline route on failure\n }\n } else {\n Log.e(TAG, \"Route request not accepted: \" + response.message());\n callback.returnFailure(origin, destination); // calculate an offline route on failure\n }\n }\n @Override\n public void onFailure(@NonNull Call<BingRespGetRoute> call, @NonNull Throwable t) {\n Log.w(TAG, \"No connection.\");\n callback.returnFailure(origin, destination); // calculate an offline route on failure\n }\n });\n }", "@Override\n public List<node_info> shortestPath(int src, int dest) {\n int counter=0;//counter for index of listPath\n List<node_info> listPath=new ArrayList<node_info>();//The reverse list that is returned\n List<node_info> listResult=new ArrayList<node_info>();//the returned list\n if(!DijkstraHelp(src,dest)) return null;//if there is no path from src to dest\n if(src==dest) {\n listPath.add(this.ga.getNode(src));\n return listPath;\n }\n //the other case:\n node_info d=this.ga.getNode(dest);\n listPath.add(counter,d);//insert the dest in order to go from destination to source\n //counter++;\n weighted_graph gCopy=copy();\n Iterator<node_info> it=gCopy.getV().iterator();//run on the whole graph\n while(it.hasNext()){\n if(listPath.get(counter).getKey()==src) break;//if we finished\n if(gCopy.getV(listPath.get(counter).getKey()).contains(it.next())) {//remove the nodes that we were already checked if\n //they need to be insert to listPath\n continue;\n }\n Iterator<node_info> currentIt=gCopy.getV(listPath.get(counter).getKey()).iterator();//iterator on the ni-list of the\n //last node were insert to the listPath\n if(currentIt!=null) {\n node_info min=null;\n while (currentIt.hasNext()){\n node_info currentLoop=currentIt.next();\n if(currentLoop.getTag()+gCopy.getEdge(listPath.get(counter).getKey(),currentLoop.getKey())==\n listPath.get(counter).getTag()){//check if this is the node that appropriate to the shortest path\n min=currentLoop;\n }\n }\n listPath.add(min);//insert to listPath\n counter++;\n }\n }\n for(int i=listPath.size()-1;i>=0;i--){\n listResult.add(listPath.size()-i-1,listPath.get(i));//reverse the list\n }\n return listResult;\n }", "Destination getDestination();", "void onSucceedFindDirection(List<RouteBeetweenTwoPointsDTO> route);", "@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn Double.parseDouble(dwg.getNode(dest).getInfo());\n\t}", "private String getShortestPath(final Pair<Long, Long> src, final Pair<Long, Long> dst,\n final String passCode, final boolean first) {\n final var queue = new LinkedList<Node>();\n final var seen = new HashSet<Node>();\n //start from source\n final var srcNode = new Node( src, \"\" );\n queue.add( srcNode );\n seen.add( srcNode );\n\n int max = 0;\n while ( !queue.isEmpty() ) {\n final var curr = queue.remove();\n if ( curr.pos.equals( dst ) ) {\n if ( first ) {\n //shortest path\n return curr.path;\n } else {\n //store path length\n max = curr.path.length();\n //stop this path\n }\n } else {\n for ( final var neighbour : getNeighbours( curr, passCode ) ) {\n //unseen neighbour\n if ( seen.add( neighbour ) ) {\n //add to the queue\n queue.add( neighbour );\n }\n }\n }\n }\n\n return itoa( max );\n }", "private void findPath2(List<Coordinate> path) {\n List<Integer> cost = new ArrayList<>(); // store the total cost of each path\n // store all possible sequences of way points\n ArrayList<List<Coordinate>> allSorts = new ArrayList<>();\n int[] index = new int[waypointCells.size()];\n for (int i = 0; i < index.length; i++) {// generate the index reference list\n index[i] = i;\n }\n permutation(index, 0, index.length - 1);\n for (Coordinate o1 : originCells) {\n for (Coordinate d1 : destCells) {\n for (int[] ints1 : allOrderSorts) {\n List<Coordinate> temp = getOneSort(ints1, waypointCells);\n temp.add(0, o1);\n temp.add(d1);\n int tempCost = 0;\n for (int i = 0; i < temp.size() - 1; i++) {\n Graph graph = new Graph(getEdge(map));\n Coordinate start = temp.get(i);\n graph.dijkstra(start);\n Coordinate end = temp.get(i + 1);\n graph.printPath(end);\n tempCost = tempCost + graph.getPathCost(end);\n if (graph.getPathCost(end) == Integer.MAX_VALUE) {\n tempCost = Integer.MAX_VALUE;\n break;\n }\n }\n cost.add(tempCost);\n allSorts.add(temp);\n }\n }\n }\n System.out.println(\"All sorts now have <\" + allSorts.size() + \"> items.\");\n List<Coordinate> best = allSorts.get(getMinIndex(cost));\n generatePath(best, path);\n setSuccess(path);\n }", "@Override\r\n public Double calcDistance(List<Point> src, List<Point> dst) {\r\n // Local Variables\r\n Double shortestDistance = Double.MAX_VALUE;\r\n Double currentDistance;\r\n\r\n // for each point in source\r\n for (Point p1:src) {\r\n // for each point in destination\r\n for (Point p2:dst) {\r\n // calc distance\r\n currentDistance = p1.distanceFrom(p2);\r\n\r\n // current < shortest -> update\r\n if(currentDistance < shortestDistance ){\r\n shortestDistance = currentDistance;\r\n }\r\n\r\n }\r\n }\r\n\r\n return shortestDistance;\r\n }", "@Override\n\tpublic Direction nextMove(State state)\n\t{\n\t\t\n\t\tthis.direction = Direction.STAY;\n\t\tthis.hero = state.hero();\n\t\tthis.position = new Point( this.hero.position.right, this.hero.position.left ); //x and y are reversed, really\n\t\t\n\t\tthis.pathMap = new PathMap( state, this.position.x, this.position.y );\n\n\t\t//find the richest hero\n\t\tHero richestHero = state.game.heroes.get(0);\n\t\tif( richestHero == this.hero ) { richestHero = state.game.heroes.get(1); } //just grab another hero if we are #0\n\t\t\n\t\tfor( Hero hero : state.game.heroes )\n\t\t{\n\t\t\tif( hero != this.hero && hero.gold > richestHero.gold )\n\t\t\t{\n\t\t\t\trichestHero = hero;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//get all interesting sites\n\t\tList<TileInfo> minesInRange = this.pathMap.getSitesInRange( TileType.FREE_MINE, 20 );\t//mines in vicinity\n\t\tList<TileInfo> takenMinesInRange = this.pathMap.getSitesInRange( TileType.TAKEN_MINE, (100-richestHero.life)/2 );\t//mines in vicinity\n\t\tList<TileInfo> pubsInRange = this.pathMap.getSitesInRange( TileType.TAVERN, (int)(Math.pow(100-this.hero.life,2)*state.game.board.size/5000) );\t\t//pubs in vicinity\n\t\t\n\t\t//first visit pubs (apparently we need it)\n\t\tif( pubsInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( pubsInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then visit the mines\n\t\telse if( minesInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( minesInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then visit taken mines\n\t\telse if( takenMinesInRange.size() != 0 )\n\t\t{\n\t\t\tthis.direction = this.pathMap.getDirectionTo( takenMinesInRange.get(0) );\n\t\t}\n\t\t\n\t\t//then hunt for players\n\t\telse\n\t\t{\n\t\t\t//kill the richest hero! (but first full health)\n\t\t\tif( this.hero.life > 85 )\n\t\t\t{\n\t\t\t\tthis.direction = this.pathMap.getDirectionTo( richestHero.position.right, richestHero.position.left );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//run away!!!\n\t\t\t\tthis.direction = intToDir( (int)(Math.random()*4) );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//VisualPathMap.getInstance( pathMap );\n\t\t\n\t\treturn this.direction;\n\t}", "private Destination cheapestDestinations(String originCode, Trip trip){\n\t\tSortedSet<Destination> possibleDestinations = new TreeSet<Destination>(DESTINATION_COMPARATOR);\n\t\tList<TopRoute> routes = this.topRoutesService.getTopRoutes();\n\t\tfor (TopRoute route : routes) {\n\t\t\tif (route.getFrom().equals(originCode) && !trip.isVisited(route.getTo())) {\n\t\t\t\tpossibleDestinations.add(createDestination(originCode, route));\n\t\t\t\t//LOGGER.debug(\"adding new destination from {} to {}\", route.getFrom(),route.getTo());\n\t\t\t}\t\n\t\t}\n\t\ttry{\n\t\t\treturn possibleDestinations.first();\n\t\t}\n\t\tcatch(NoSuchElementException e){\n\t\t\tthrow new RoutesNotFoundException(\"Error there's no route available\", e);\n\t\t}\n\t}", "void storeSources(McastRoute route, Set<ConnectPoint> sources);", "private int heuristic(int x, int y, MapLocation goal) {\n return Math.max(Math.abs(x - goal.x), Math.abs(y - goal.y));\n }", "@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tif(src== dest ) return 0;\n\t\tif(this.GA.getNode(src)==null || this.GA.getNode(dest)==null) throw new RuntimeException(\"Wrong input,Missing nodes.\");\n\t\tsetNodes();\n\t\tnode_data temp = this.GA.getNode(src);\n\t\ttemp.setWeight(0);\n\t\tSTPRec(temp, this.GA.getNode(dest));\n\t\tdouble ans = this.GA.getNode(dest).getWeight();\n\t\treturn ans;\n\t}", "public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}", "public String findShortestRoute(char start, char finish) {\r\n PriorityQueue<Vertex> Q = new PriorityQueue<>(new Comparator<Vertex>() {\r\n @Override\r\n public int compare(Vertex v1, Vertex v2) {\r\n return Integer.compare(v1.getDistanceFromStart(), v2.getDistanceFromStart());\r\n }\r\n });\r\n\r\n Vertex startVert = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == start) {\r\n v.setDistanceFromStart(0);\r\n v.setPrevious(v);\r\n startVert = v;\r\n }\r\n else {\r\n v.setDistanceFromStart(Integer.MAX_VALUE);\r\n v.setPrevious(null);\r\n }\r\n Q.add(v);\r\n }\r\n if(startVert == null) {\r\n throw new IllegalArgumentException(\"start vertex is not in graph\");\r\n }\r\n\r\n Vertex finishVert = null;\r\n while(!Q.isEmpty()) {\r\n Vertex v = Q.remove(); // remove first vertex in queue, the shortest path has been found to this vertex\r\n if(v.getName() == finish) {\r\n finishVert = v;\r\n break; // finish quicker\r\n }\r\n for(Edge incidentEdge : v.getIncidentEdges()) {\r\n Vertex adjacentVertex = incidentEdge.getOppositeVertex(v);\r\n int alt = v.getDistanceFromStart() + incidentEdge.getDistance();\r\n if(alt < adjacentVertex.getDistanceFromStart()) { // if going through this edge shortens the route to adjacentVertex\r\n adjacentVertex.setDistanceFromStart(alt);\r\n adjacentVertex.setPrevious(v);\r\n Q.remove(adjacentVertex); // increase the priority of adjacent vertices if this vertex shortens their route\r\n Q.add(adjacentVertex);\r\n }\r\n }\r\n }\r\n \r\n // throw exception if finish vertex not found\r\n if(finishVert == null) {\r\n throw new IllegalArgumentException(\"finish vertex is not in graph\");\r\n }\r\n \r\n // build the return value by adding vertex names from finish to start,\r\n // reversing the string, then concatenating the distance\r\n StringBuilder sb = new StringBuilder();\r\n for(Vertex v = finishVert; v != startVert; v = v.getPrevious()) {\r\n sb.append(v.getName());\r\n }\r\n return sb.append(start).reverse().append(finishVert.getDistanceFromStart()).toString();\r\n }", "public ArrayList<Vertex> gpsrPath(int sourceIndex, int sinkIndex) {\r\n ArrayList<Vertex> locationcopy;\r\n \tlocationcopy=new ArrayList<Vertex>(location);\r\n \tint currentIndex, nearestIndex;\r\n \tdouble bestdist,dist;\r\n \tArrayList<Vertex> GPSRpath;\r\n \tGPSRpath= new ArrayList<Vertex>(0);\r\n \tcurrentIndex=sourceIndex;\r\n \tVertex sourcenode, sinknode, currentnode, nearestnode;\r\n \tsourcenode=locationcopy.get(sourceIndex);\r\n \tsinknode=locationcopy.get(sinkIndex);\r\n \tdist=bestdist=sourcenode.distance(sinknode);\r\n \tGPSRpath.add(sourcenode);\r\n \tint i;\r\n\t\t\r\n \twhile(true)\r\n \t{\r\n \t\tcurrentnode=locationcopy.get(currentIndex);\r\n \t\tnearestIndex=currentIndex;\r\n \tfor(i=0;i<locationcopy.size();i++)\r\n \t{\r\n \t\tif(locationcopy.get(i).distance(currentnode)<=transmissionRange)\r\n \t\t{\r\n \t\t\tif(bestdist>(dist=locationcopy.get(i).distance(sinknode))) \r\n \t\t\t\t{\r\n \t\t\t\tbestdist=dist;\r\n \t\t\t\tnearestIndex=i;\r\n \t\t\t\t}\t\r\n \t\t\tif(dist==0) break;\r\n \t\t}\t\t\r\n \t}\r\n \tif(nearestIndex!=currentIndex)\r\n \t{\r\n \t\tnearestnode=locationcopy.get(nearestIndex);\r\n \t\tGPSRpath.add(nearestnode);\r\n \t\tif(dist==0) return GPSRpath;\r\n \t\tlocationcopy.remove(currentIndex);\r\n \t\tif(sinkIndex>currentIndex) sinkIndex-=1;\r\n \t\tif(nearestIndex>currentIndex) currentIndex=nearestIndex-1; else currentIndex=nearestIndex;\r\n \t\t//currentIndex=locationcopy.indexOf(nearestnode);\r\n \t\t//sinkIndex=locationcopy.indexOf(sinknode);\r\n \t}\r\n \telse return new ArrayList<Vertex>(0);\r\n \t}\r\n }", "protected int bestDirection(int _y, int _x)\n {\n int sX = -1, sY = -1;\n for (int i = 0; i < m; i++) {\n boolean breakable = false;\n for (int j = 0; j < n; j++) {\n if (map[i][j] == 'p' || map[i][j] == '5') {\n sX = i;\n sY = j;\n breakable = true;\n break;\n }\n }\n if(breakable) break;\n sX =0; sY = 0;\n }\n Pair s = new Pair(sX, sY);\n Queue<Pair> queue = new Queue<Pair>();\n int[][] distance = new int[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n distance[i][j] = -1;\n distance[sX][sY] = 0;\n queue.add(s);\n /*\n System.out.println(\"DEBUG TIME!!!!\");\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.print(map[i][j]);\n System.out.println();\n }\n System.out.println();\n */\n while (!queue.isEmpty())\n {\n Pair u = queue.remove();\n for (int i = 0; i < 4; i++)\n {\n int x = u.getX() + hX[i];\n int y = u.getY() + hY[i];\n if (!validate(x, y)) continue;\n if (distance[x][y] != -1) continue;\n if (!canGo.get(map[x][y])) continue;\n distance[x][y] = distance[u.getX()][u.getY()] + 1;\n queue.add(new Pair(x, y));\n }\n }\n\n //slove if this enemy in danger\n //System.out.println(_x + \" \" + _y);\n if (inDanger[_x][_y])\n {\n int direction = -1;\n boolean canAlive = false;\n int curDistance = dangerDistance[_x][_y];\n int distanceToBomber = m * n;\n if (curDistance == -1) return 0;\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y)) continue;\n if (dangerDistance[x][y] == -1) continue;\n if (dangerDistance[x][y] < curDistance)\n {\n curDistance = dangerDistance[x][y];\n direction = i;\n distanceToBomber = distance[x][y];\n } else if (dangerDistance[x][y] == curDistance)\n {\n if (distanceToBomber == -1 || distanceToBomber > distance[x][y])\n {\n direction = i;\n distanceToBomber = distance[x][y];\n }\n }\n }\n if (direction == -1) direction = random.nextInt(4);\n allowSpeedUp = true;\n return direction;\n }\n // or not, it will try to catch bomber\n else\n {\n /*\n System.out.println(\"x = \" + _x + \"y = \" + _y);\n for(int i = 0; i < n; i++) System.out.printf(\"%2d \",i);\n System.out.println();\n for(int i = 0; i < m; i++)\n {\n for(int j = 0; j < n; j++)\n System.out.printf(\"%2d \",distance[i][j]);\n System.out.println();\n }\n System.out.println();\n System.out.println();\n */\n int direction = -1;\n int[] die = new int[4];\n for (int i = 0; i < 4; i++)\n die[i] = 0;\n int curDistance = distance[_x][_y];\n for (int i = 0; i < 4; i++)\n {\n int x = _x + hX[i];\n int y = _y + hY[i];\n if (!validate(x, y))\n {\n die[i] = 1;\n continue;\n }\n ;\n if (inDanger[x][y])\n {\n die[i] = 2;\n continue;\n }\n if (distance[x][y] == -1) continue;\n if (distance[x][y] < curDistance)\n {\n curDistance = distance[x][y];\n direction = i;\n }\n }\n if(curDistance < 4) allowSpeedUp = true;\n else allowSpeedUp = false; //TODO: TEST :))\n if (direction == -1)\n {\n for (int i = 0; i < 4; i++)\n if (die[i] == 0) return i;\n for (int i = 0; i < 4; i++)\n if (die[i] == 1) return i;\n return 0;\n } else return direction;\n }\n }", "private static void computePaths(Vertex source) {\n source.minDistance = 0;\n // retrieves with log(n) time\n PriorityQueue<Vertex> vertexPriorityQueue = new PriorityQueue<>();\n\n //BFS traversal\n vertexPriorityQueue.add(source);\n\n // O((v + e) * log(v))\n while (!vertexPriorityQueue.isEmpty()) {\n // this poll always returns the shortest distance vertex at log(v) time\n Vertex vertex = vertexPriorityQueue.poll();\n\n //visit each edge exiting vertex (adjacencies)\n for (Edge edgeInVertex : vertex.adjacencies) {\n // calculate new distance between edgeInVertex and target\n Vertex targetVertex = edgeInVertex.target;\n double edgeWeightForThisVertex = edgeInVertex.weight;\n double distanceThruVertex = vertex.minDistance + edgeWeightForThisVertex;\n if (distanceThruVertex < targetVertex.minDistance) {\n // modify the targetVertex with new calculated minDistance and previous vertex\n // by removing the old vertex and add new vertex with updates\n vertexPriorityQueue.remove(targetVertex);\n targetVertex.minDistance = distanceThruVertex;\n // update previous with the shortest distance vertex\n targetVertex.previous = vertex;\n vertexPriorityQueue.add(targetVertex);// adding takes log(v) time because needs to heapify\n }\n }\n }\n }", "public void updateDestination(){\r\n\t\tdestination.update_pc_arrivalFlows(flows);\r\n\t}", "public List<String> getShortestRoute(String start, String end) {\n\t\tif (!vertices.contains(start)) return null;\n\t\tMap<String, Vertex> verticesWithDistance = new HashMap<String, Vertex>();\n\t\tVertex starting = new Vertex(start, 0);\n\t\tverticesWithDistance.put(start, starting);\n\t\tstarting.route.add(starting.name);\n\t\tfor (String v : vertices) {\n\t\t\tif (!v.equals(start))\n\t\t\t\tverticesWithDistance.put(v, new Vertex(v, -1));\n\t\t}\n\t\treturn searchByDijkstra(starting, end , verticesWithDistance);\n\t}", "@Override\n\tprotected void landAction(){\n\t\tdestIndex++;\n\t\tif(destIndex>=track.size())\n\t\t\tdestIndex=0;\n\t\tdestination=track.get(destIndex);\n\t\t\n\t}", "public void calcSP(Graph g, Vertex source){\n // Algorithm:\n // 1. Take the unvisited node with minimum weight.\n // 2. Visit all its neighbours.\n // 3. Update the distances for all the neighbours (In the Priority Queue).\n // Repeat the process till all the connected nodes are visited.\n\n // clear existing info\n// System.out.println(\"Calc SP from vertex:\" + source.name);\n g.resetMinDistance();\n source.minDistance = 0;\n PriorityQueue<Vertex> queue = new PriorityQueue<Vertex>();\n queue.add(source);\n\n while(!queue.isEmpty()){\n Vertex u = queue.poll();\n for(Edge neighbour:u.neighbours){\n// System.out.println(\"Scanning vector: \"+neighbour.target.name);\n Double newDist = u.minDistance+neighbour.weight;\n\n // get new shortest path, empty existing path info\n if(neighbour.target.minDistance>newDist){\n // Remove the node from the queue to update the distance value.\n queue.remove(neighbour.target);\n neighbour.target.minDistance = newDist;\n\n // Take the path visited till now and add the new node.s\n neighbour.target.path = new ArrayList<>(u.path);\n neighbour.target.path.add(u);\n// System.out.println(\"Path\");\n// for (Vertex vv: neighbour.target.path) {\n// System.out.print(vv.name);\n// }\n// System.out.print(\"\\n\");\n\n// System.out.println(\"Paths\");\n neighbour.target.pathCnt = 0;\n neighbour.target.paths = new ArrayList<ArrayList<Vertex>>();\n if (u.paths.size() == 0) {\n ArrayList<Vertex> p = new ArrayList<Vertex>();\n p.add(u);\n neighbour.target.paths.add(p);\n neighbour.target.pathCnt++;\n } else {\n for (ArrayList<Vertex> p : u.paths) {\n ArrayList<Vertex> p1 = new ArrayList<>(p);\n p1.add(u);\n// for (Vertex vv : p1) {\n// System.out.print(vv.name);\n// }\n// System.out.print(\"\\n\");\n neighbour.target.paths.add(p1);\n neighbour.target.pathCnt++;\n }\n }\n\n //Reenter the node with new distance.\n queue.add(neighbour.target);\n }\n // get equal cost path, add into path list\n else if (neighbour.target.minDistance == newDist) {\n queue.remove(neighbour.target);\n for(ArrayList<Vertex> p: u.paths) {\n ArrayList<Vertex> p1 = new ArrayList<>(p);\n p1.add(u);\n neighbour.target.paths.add(p1);\n neighbour.target.pathCnt++;\n }\n queue.add(neighbour.target);\n }\n }\n }\n }", "public int queryDistance(int destination){\n\t\treturn distances[destination];\n\t}", "@Override\n public int compareTo(RouteNode o) {\n return Double.compare(this.estimatedDistanceToTarget, o.estimatedDistanceToTarget);\n }", "public int shortestPath(Village startVillage, Village targetVillage) {\n// setting the initial point 's minimum distance to zera\n startVillage.setMinDistance(0);\n// accourting to bellman ford if there are n number of dots then n-1 iterations to be done to find the minimum distances of every dot from one initial dot\n int length = this.villageList.size();\n// looping n-1 times\n for (int i = 0; i < length - 1; i++) {\n// looping through all the roads and mark the minimum distances of all the possible points\n for (Road road : roadList) {\n\n\n// if the road is a main road then skip the path\n if (road.getWeight() == 900)\n continue; //why 900 ? : just a random hightest number as a minimum distance and same 900 is used as a mix number\n Village v = road.getStartVertex();\n Village u = road.getTargetVertex();\n// if the newly went path is less than the path it used to be the update the min distance of the reached vertex\n int newLengtha = v.getMinDistance() + road.getWeight();\n if (newLengtha < u.getMinDistance()) {\n u.setMinDistance(newLengtha);\n u.setPreviousVertex(v);\n }\n int newLengthb = u.getMinDistance() + road.getWeight();\n if (newLengthb < v.getMinDistance()) {\n v.setMinDistance(newLengthb);\n v.setPreviousVertex(v);\n }\n }\n }\n// finally return the minimum distance\n return targetVillage.getMinDistance();\n }", "private void sendRequest() {\n double origLat = currLatLng.latitude;\n double origLong = currLatLng.longitude;\n double destLat = destLatLng.latitude;\n double destLong = destLatLng.longitude;\n String origin = origLat + \",\" + origLong;\n String destination = destLat + \",\" + destLong;\n Log.d(TAG, \"sendRequest: origin LatLong- \" + \" destination LaatLng- \" + destLatLng);\n try {\n new DirectionFinder(this, origin, destination).execute();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }", "@Test\n public void directedRouting_noUTurnAtVirtualEdge() {\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(2, 3).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(3, 4).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(4, 5).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(5, 0).setDistance(1).set(speedEnc, 10, 0);\n NodeAccess na = graph.getNodeAccess();\n na.setNode(0, 1, 0);\n na.setNode(1, 1, 1);\n na.setNode(2, 1, 2);\n na.setNode(3, 0, 2);\n na.setNode(4, 0, 1);\n na.setNode(5, 0, 0);\n\n LocationIndexTree locationIndex = new LocationIndexTree(graph, graph.getDirectory());\n locationIndex.prepareIndex();\n Snap snap = locationIndex.findClosest(1.1, 0.5, EdgeFilter.ALL_EDGES);\n QueryGraph queryGraph = QueryGraph.create(graph, snap);\n\n assertEquals(Snap.Position.EDGE, snap.getSnappedPosition(), \"wanted to get EDGE\");\n assertEquals(6, snap.getClosestNode());\n\n // check what edges there are on the query graph directly, there should not be a direct connection from 1 to 0\n // anymore, but only the virtual edge from 1 to 6 (this is how the u-turn is prevented).\n assertEquals(new HashSet<>(Arrays.asList(0, 2)), GHUtility.getNeighbors(graph.createEdgeExplorer().setBaseNode(1)));\n assertEquals(new HashSet<>(Arrays.asList(6, 2)), GHUtility.getNeighbors(queryGraph.createEdgeExplorer().setBaseNode(1)));\n\n EdgeIteratorState virtualEdge = GHUtility.getEdge(queryGraph, 6, 1);\n int outEdge = virtualEdge.getEdge();\n EdgeToEdgeRoutingAlgorithm algo = createAlgo(queryGraph, weighting);\n Path path = algo.calcPath(6, 0, outEdge, ANY_EDGE);\n assertEquals(nodes(6, 1, 2, 3, 4, 5, 0), path.calcNodes());\n assertEquals(5 + virtualEdge.getDistance(), path.getDistance(), 1.e-3);\n }", "public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}", "private int shortestDistance(Vertex dest) {\n Integer d = distance.get(dest);\n if (d==null)\n return Integer.MAX_VALUE;\n return d;\n }", "public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.69696164", "0.6723387", "0.65041465", "0.649462", "0.64869463", "0.64685416", "0.6418658", "0.6376217", "0.6360575", "0.6343372", "0.624179", "0.62229973", "0.62121046", "0.62100387", "0.6208173", "0.62045133", "0.6151597", "0.6138397", "0.6087353", "0.6069434", "0.60641515", "0.606165", "0.6054553", "0.6028022", "0.6024671", "0.6021932", "0.6021533", "0.6011054", "0.6004662", "0.5987287", "0.5978789", "0.59766525", "0.5973526", "0.5971287", "0.5933128", "0.59307116", "0.5928344", "0.5926762", "0.5901813", "0.5897108", "0.5887016", "0.5882623", "0.5865564", "0.58552635", "0.5854458", "0.5834816", "0.5828778", "0.58239174", "0.58210933", "0.5818704", "0.5814847", "0.5813673", "0.5812743", "0.581147", "0.5799394", "0.5797866", "0.57926184", "0.57863915", "0.5777636", "0.5774006", "0.57578254", "0.5755145", "0.5740208", "0.5735417", "0.572976", "0.57287055", "0.57281655", "0.57279754", "0.57198405", "0.5715418", "0.57070524", "0.5705976", "0.5688082", "0.5684226", "0.5682795", "0.5678936", "0.56692344", "0.566303", "0.5659234", "0.565858", "0.5653782", "0.5642686", "0.5636893", "0.5627855", "0.5625185", "0.5612949", "0.56094813", "0.5607672", "0.5603436", "0.55968595", "0.5593017", "0.558273", "0.55734944", "0.55714214", "0.556916", "0.55550784", "0.5551082", "0.5545922", "0.55454797", "0.55264294" ]
0.7407562
0
/ Fail a specific link between two nodes in the network
public void failLink(Node n1, Node n2) { n1.getDistanceVector().put(n2, Integer.MAX_VALUE); n2.getDistanceVector().put(n1, Integer.MAX_VALUE); n1.getForwardingTable().put(n2, null); n2.getForwardingTable().put(n1, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void linkFailed(Mtp2 link) {\n linkset.remove(link);\n \n //restart initial alignment after T17 expires\n link.failLink();\n \n //notify mtp user part\n if (!linkset.isActive() ) {\n \tl4IsUp = false;\n \tif(mtpUser != null)\n \t{\n \t\tmtpUser.linkDown();\n \t}\n }\n }", "@Test\n\tpublic void testTearDownLink() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"1\");\n\t\tuser3.setID(\"2\");\n\t\tsn.addUser(user1);\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\t\n\t\ttry {\n\t\t\tsn.tearDownLink(null, null, null, null);\t\n\t\t} catch (NullPointerException np) {\n\t\t\tSystem.out.println(\"EXPECTED(3/4): Null arguments\");\n\t\t} catch (UninitializedObjectException uo) {\n\t\t\tSystem.out.println(\"UNEXPECTED: should never be thrown\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tassertFalse(\"IDs are identical\", sn.tearDownLink(\"1\", \"1\", early, status));\n\t\t\tassertFalse(\"One ID isnt a user\", sn.tearDownLink(\"1\", \"3\", early, status));\n\t\t\tsn.establishLink(\"1\", \"2\", early, status);\n\t\t\tassertTrue(\"Link is valid and active\", sn.tearDownLink(\"1\", \"2\", mid, status));\n\t\t\tassertFalse(\"Link is valid and inactive\", sn.tearDownLink(\"1\", \"2\", late, status));\n\t\t} catch (UninitializedObjectException uo) {\n\t\t\tSystem.out.println(\"UNEXPECTED: should never be thrown\");\n\t\t}\n\t}", "@Test\n public void connectionNotFound() {\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(2, 3).setDistance(1).set(speedEnc, 10, 0);\n\n Path path = calcPath(0, 3, 0, 1);\n assertNotFound(path);\n }", "public void sendFailed(LinkLayerMessage message) {\n\t\t\n\t}", "@Test\n public void tr2()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(0,1);\n assertTrue(graph.reachable(sources, targets));\n\n\n }", "@Test \r\n void create_edge_between_to_nonexisted_vertexes() {\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!adjacentA.contains(\"B\")) { \r\n fail();\r\n }\r\n if(adjacentB.contains(\"A\")) { \r\n fail();\r\n }\r\n }", "@Override\n public boolean link(T dataX, T dataY) throws NodeNotFoundException { return link(dataX, dataY, 1.0); }", "@Test\n public void tr1()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n assertFalse(graph.reachable(sources, targets));\n }", "@Test\n public void tr3()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(1,0);\n assertFalse(graph.reachable(sources, targets));\n }", "@Test\n\tpublic void testEstablishLink() {\n\t\tresetTestVars();\n\t\tuser1.setID(\"1\");\n\t\tuser2.setID(\"1\");\n\t\tuser3.setID(\"2\");\n\t\tsn.addUser(user1);\n\t\tsn.addUser(user2);\n\t\tsn.addUser(user3);\n\t\t\n\t\ttry {\n\t\t\tsn.establishLink(null, null, null, status);\n\t\t} catch (NullPointerException np) {\n\t\t\tSystem.out.println(\"EXPECTED(1/4): Null arguments\");\n\t\t} catch (UninitializedObjectException uo) {\n\t\t\tSystem.out.println(\"UNEXPECTED: should never be thrown\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tassertFalse(\"IDs are identical\", sn.establishLink(\"1\", \"1\", early, status));\n\t\t} catch (UninitializedObjectException | IllegalArgumentException e) {\n\t\t\tSystem.out.println(\"EXPECTED(2/4): No loops allowed (same ID)\");\n\t\t}\n\t\ttry {\n\t\t\tassertFalse(\"One ID isnt a user\", sn.establishLink(\"1\", \"3\", early, status));\n\t\t\tassertTrue(\"Distinct valid users\", sn.establishLink(\"1\", \"2\", early, status));\n\t\t\tassertFalse(\"Link is already active\", sn.establishLink(\"1\", \"2\", mid, status));\n\t\t\tsn.tearDownLink(\"1\", \"2\", mid, status);\n\t\t\tassertTrue(\"Link is currently torn down\", sn.establishLink(\"1\", \"2\", late, status));\n\t\t} catch (UninitializedObjectException uo) {\n\t\t\tSystem.out.println(\"UNEXPECTED: shouldnt be thrown\");\n\t\t}\n\t}", "void nodeFailedToStop(Exception e);", "@Test\n public void notConnectedDueToRestrictions() {\n int sourceNorth = graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10).getEdge();\n int sourceSouth = graph.edge(0, 3).setDistance(2).set(speedEnc, 10, 10).getEdge();\n int targetNorth = graph.edge(1, 2).setDistance(3).set(speedEnc, 10, 10).getEdge();\n int targetSouth = graph.edge(3, 2).setDistance(4).set(speedEnc, 10, 10).getEdge();\n\n assertPath(calcPath(0, 2, sourceNorth, targetNorth), 0.4, 4, 400, nodes(0, 1, 2));\n assertNotFound(calcPath(0, 2, sourceNorth, targetSouth));\n assertNotFound(calcPath(0, 2, sourceSouth, targetNorth));\n assertPath(calcPath(0, 2, sourceSouth, targetSouth), 0.6, 6, 600, nodes(0, 3, 2));\n }", "@Test\n public void testInvalidAttemptLinks() {\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(0, 0));\n largeMaze.setEnd(Maze.position(4, 4));\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n\n //invoke attemptLinks\n try {\n testPillars = largeMaze.getPillars();\n testPillar = testPillars.get(Maze.position(3,3));\n testPillar.setPlanksLeft(0);\n attemptLinks.invoke(solver.getClass(), testPillar, largeMaze.getEnd(), testESet, testNQueue);\n } catch (Exception e) {\n fail(\"Unexpectedly could not invoke attemptLinks().\");\n }\n\n assertEquals(0, testESet.size());\n assertEquals(0, testNQueue.size());\n }", "public void sendFailureAdvert(int failedLnk){\n\t\tint failIp = lnkVec.get(failedLnk).peerIp;\n\t\tString failIpString = Util.ip2string(failIp);\n\n\t\tfor (int lnk = 0; lnk < nborList.size(); lnk++) {\n\t\t\tif (lnkVec.get(lnk).helloState == 0) continue;\n\t\t\tPacket p = new Packet();\n\t\t\tp.protocol = 2; p.ttl = 100;\n\t\t\tp.srcAdr = myIp;\n\t\t\tp.destAdr = lnkVec.get(lnk).peerIp;\n\t\t\tp.payload = String.format(\"RPv0\\ntype: fadvert\\n\"\n\t\t\t\t\t+ \"linkfail: %s %s %.3f %s\\n\",\n\t\t\t\t\tmyIpString, failIpString, now, myIpString);\n\t\t\tfwdr.sendPkt(p,lnk);\n\t\t}\n\t}", "private void checkConnection( SquareNode a , SquareNode b ) {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tSquareEdge edgeA = a.edges[i];\n\t\t\tif( edgeA == null )\n\t\t\t\tcontinue;\n\n\t\t\tSquareNode common = edgeA.destination(a);\n\t\t\tint commonToA = edgeA.destinationSide(a);\n\t\t\tint commonToB = CircularIndex.addOffset(commonToA,1,4);\n\n\t\t\tSquareEdge edgeB = common.edges[commonToB];\n\t\t\tif( edgeB != null && edgeB.destination(common) == b ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tfail(\"Failed\");\n\t}", "void link(Portal portal1, Portal portal2);", "@Test(timeout = 30000)\n public void testMoveBlockFailure() {\n // Test copy\n testMoveBlockFailure(conf);\n // Test hardlink\n conf.setBoolean(DFSConfigKeys\n .DFS_DATANODE_ALLOW_SAME_DISK_TIERING, true);\n conf.setDouble(DFSConfigKeys\n .DFS_DATANODE_RESERVE_FOR_ARCHIVE_DEFAULT_PERCENTAGE, 0.5);\n testMoveBlockFailure(conf);\n }", "@Override\n public boolean addConnection(String firstNodeName, String secondNodeName) throws NodeException {\n\n try {\n if (containsNode(getSingleNode(firstNodeName)) && containsNode(getSingleNode(secondNodeName))) {\n getSingleNode(firstNodeName).newNeighbour(getSingleNode(secondNodeName));\n getSingleNode(secondNodeName).newNeighbour(getSingleNode(firstNodeName));\n return true;\n }\n } catch (NodeException e) {\n throw new NodeException(\"Jeden z Vámi zadaných prvků neexistuje!\");\n }\n\n return false;\n }", "@Test\n\tpublic void TestTwoLinksAreHandledOkay() {\n\t\tJabberMessage msg = new JabberMessage();\n\t\tmsg.setMessage(\"Hello There! http://reddit.com http://google.com\");\n\t\tmsg.setId(1);\n\t\tmsg.setUsername(\"Test\");\n\t\tmsg.setTimestamp(\"NOW!\");\n\t\tLink link = null;\n\t\ttry {\n\t\t\tlink = lh.convertMessageToLink(msg);\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Couldnt convert message to link\");\n\t\t}\n\t\tif (link.getUrl().equals(\"http://reddit.com\") || link.getUrl().equals(\"http://google.com\")) {\n\t\t\t// pass\n\t\t}\n\t\telse {\n\t\t\tfail(\"Can't handle two URL's\");\n\t\t}\n\t}", "@Test\n (expected=Exception.class)\n public void testExceptionLinkPillars() throws Exception{\n smallMaze.linkPillars(null, null);\n }", "@Test\r\n\tpublic void testLink2Link(){\r\n\t\t\r\n\t\tRunSettings runSettings = new RunSettings();\r\n\t\tMap<Integer,int[]> currentRunResults = new HashMap<Integer,int[]>();\r\n\t\t\r\n\t\tcreateOutputDir(runSettings);\t\t\t\t\t\t\t\t\t\t\t//lanes: f\tsignals: f\tlink2link: f\r\n\t\tTSAnalyzeLink2Link handler = new TSAnalyzeLink2Link(runSettings);\r\n\t\tcurrentRunResults = runAndGetResults(runSettings, handler);\r\n\t\tcheckRunResults(runSettings, currentRunResults);\r\n\t\t\r\n\t\trunSettings.setUseLanes(true);\t\t\t\t\t\t\t\t\t\t\t//lanes: T\tsignals: f\tlink2link: f\r\n\t\tcreateOutputDir(runSettings);\r\n\t\thandler.setToNextRun(runSettings);\r\n\t\tcurrentRunResults = runAndGetResults(runSettings, handler);\r\n\t\tcheckRunResults(runSettings, currentRunResults);\r\n\t\t\r\n\t\trunSettings.setUseLanes(false);\t\t\t\t\t\t\t\t\t\t\t//lanes: f\tsignals: T\tlink2link: f\r\n\t\trunSettings.setUseSignals(true);\r\n\t\tcreateOutputDir(runSettings);\r\n\t\thandler.setToNextRun(runSettings);\r\n\t\tcurrentRunResults = runAndGetResults(runSettings, handler);\r\n\t\tcheckRunResults(runSettings, currentRunResults);\r\n\r\n\t\trunSettings.setUseLink2Link(true);\t\t\t\t\t\t\t\t\t\t//lanes: f\tsignals: f\tlink2link: T\r\n\t\trunSettings.setUseSignals(false);\r\n\t\tcreateOutputDir(runSettings);\r\n\t\thandler.setToNextRun(runSettings);\r\n\t\tcurrentRunResults = runAndGetResults(runSettings, handler);\r\n\t\tcheckRunResults(runSettings, currentRunResults);\r\n\t\t\r\n\t\trunSettings.setUseSignals(true); \t\t\t\t\t\t\t\t\t\t//lanes: f\tsignals: T\tlink2link: T\r\n\t\tcreateOutputDir(runSettings);\r\n\t\thandler.setToNextRun(runSettings);\r\n\t\tcurrentRunResults = runAndGetResults(runSettings, handler);\r\n\t\tcheckRunResults(runSettings, currentRunResults);\r\n\t\t\r\n\t\trunSettings.setUseLanes(true);\t\t\t\t\t\t\t\t\t\t\t//lanes: T\tsignals: f\tlink2link: T\r\n\t\trunSettings.setUseSignals(false);\r\n\t\tcreateOutputDir(runSettings);\r\n\t\thandler.setToNextRun(runSettings);\r\n\t\tcurrentRunResults = runAndGetResults(runSettings, handler);\r\n\t\tcheckRunResults(runSettings, currentRunResults);\r\n\t\t\r\n\t\trunSettings.setUseLink2Link(false);\t\t\t\t\t\t\t\t\t\t//lanes: T\tsignals: T\tlink2link: f\r\n\t\trunSettings.setUseSignals(true);\r\n\t\tcreateOutputDir(runSettings);\r\n\t\thandler.setToNextRun(runSettings);\r\n\t\tcurrentRunResults = runAndGetResults(runSettings, handler);\r\n\t\tcheckRunResults(runSettings, currentRunResults);\r\n\t\t\r\n\t\trunSettings.setUseLink2Link(true);\t\t\t\t\t\t\t\t\t\t//lanes: T\tsignals: T\tlink2link: T\r\n\t\tcreateOutputDir(runSettings);\r\n\t\thandler.setToNextRun(runSettings);\r\n\t\tcurrentRunResults = runAndGetResults(runSettings, handler);\r\n\t\tcheckRunResults(runSettings, currentRunResults);\r\n\t\t\r\n\t\thandler.writeResults();\r\n\t\t\r\n\t}", "@Test \r\n void insert_two_vertexs_then_create_edge(){\r\n graph.addVertex(\"A\");\r\n graph.addVertex(\"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!adjacentA.contains(\"B\")) { \r\n fail();\r\n }\r\n if(adjacentB.contains(\"A\")) { \r\n fail();\r\n }\r\n }", "public void nodeConnectionFailure(String hostname) \n\t{\n\t\tthis.failureManager.nodeConnectionFailure(hostname);\n\t}", "public boolean link(Node n1, Node n2) {\n\n\t\t//Validate n1 has a value\n\t\tif (n1 == null) { return false; } \n\t\t\n\t\t//Validate n2 has a value\n\t\tif (n2 == null) { return false; } \t\t\n\n\t\t//Verify nodes arn't the same\n\t\tif (n1 == n2) { return false; } \n\t\t\n\t\t//verify n1 and n2 are in the network\n\t\tif(!(nodes.contains(n1) && nodes.contains(n2))){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//Add node 2 as neighbor to node 1 and vice-versa\n\t\tif (n1.addNeighbor(n2) && n2.addNeighbor(n1)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private Link findLink(Node start, Node end, List<Link> links) throws Exception {\r\n Link link = new Link();\r\n boolean found = false;\r\n for (int i=0; i<links.size(); i++) {\r\n Link templink = links.get(i); \r\n if ( templink.getStartPort().getNode().equals(start) &&\r\n templink.getEndPort().getNode().equals(end)) {\r\n if (found) {\r\n if (link.getDelay() > templink.getDelay()) {\r\n // A link with smaller weight, connecting the same nodes,\r\n // has already been found\r\n continue;\r\n }\r\n }\r\n found = true;\r\n \r\n link = findLink(templink.getStartPort(), templink.getEndPort(), links);\r\n }\r\n }\r\n \r\n if (!found) {\r\n throw new Exception(\"PF exception: No connecting link found\");\r\n }\r\n return link;\r\n }", "@Test\n public void multipleNetServers() throws Exception {\n String gNode1 = \"graphNode1\";\n String gNode2 = \"graphNode2\";\n\n Map<String, String> rcaConfTags = new HashMap<>();\n rcaConfTags.put(\"locus\", RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n IntentMsg msg = new IntentMsg(gNode1, gNode2, rcaConfTags);\n wireHopper2.getSubscriptionManager().setCurrentLocus(RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n\n wireHopper1.sendIntent(msg);\n\n WaitFor.waitFor(() ->\n wireHopper2.getSubscriptionManager().getSubscribersFor(gNode2).size() == 1,\n 10,\n TimeUnit.SECONDS);\n GenericFlowUnit flowUnit = new SymptomFlowUnit(System.currentTimeMillis());\n DataMsg dmsg = new DataMsg(gNode2, Lists.newArrayList(gNode1), Collections.singletonList(flowUnit));\n wireHopper2.sendData(dmsg);\n wireHopper1.getSubscriptionManager().setCurrentLocus(RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n\n WaitFor.waitFor(() -> {\n List<FlowUnitMessage> receivedMags = wireHopper1.getReceivedFlowUnitStore().drainNode(gNode2);\n return receivedMags.size() == 1;\n }, 10, TimeUnit.SECONDS);\n }", "public void testMissingRouteAfterMerge() throws Exception {\n a=createNode(LON, \"A\", LON_CLUSTER, null);\n b=createNode(LON, \"B\", LON_CLUSTER, null);\n Util.waitUntilAllChannelsHaveSameView(30000, 1000, a, b);\n\n x=createNode(SFO, \"X\", SFO_CLUSTER, null);\n assert x.getView().size() == 1;\n\n RELAY2 ar=a.getProtocolStack().findProtocol(RELAY2.class),\n xr=x.getProtocolStack().findProtocol(RELAY2.class);\n\n assert ar != null && xr != null;\n\n JChannel a_bridge=null, x_bridge=null;\n for(int i=0; i < 20; i++) {\n a_bridge=ar.getBridge(SFO);\n x_bridge=xr.getBridge(LON);\n if(a_bridge != null && x_bridge != null && a_bridge.getView().size() == 2 && x_bridge.getView().size() == 2)\n break;\n Util.sleep(500);\n }\n\n assert a_bridge != null && x_bridge != null;\n\n System.out.println(\"A's bridge channel: \" + a_bridge.getView());\n System.out.println(\"X's bridge channel: \" + x_bridge.getView());\n assert a_bridge.getView().size() == 2 : \"bridge view is \" + a_bridge.getView();\n assert x_bridge.getView().size() == 2 : \"bridge view is \" + x_bridge.getView();\n\n Route route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n\n // Now inject a partition into site LON\n System.out.println(\"Creating partition between A and B:\");\n createPartition(a, b);\n\n System.out.println(\"A's view: \" + a.getView() + \"\\nB's view: \" + b.getView());\n assert a.getView().size() == 1 && b.getView().size() == 1;\n\n route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n\n View bridge_view=xr.getBridgeView(BRIDGE_CLUSTER);\n System.out.println(\"bridge_view = \" + bridge_view);\n\n // Now make A and B form a cluster again:\n View merge_view=new MergeView(a.getAddress(), 10, Arrays.asList(a.getAddress(), b.getAddress()),\n Arrays.asList(View.create(a.getAddress(), 5, a.getAddress()),\n View.create(b.getAddress(), 5, b.getAddress())));\n GMS gms=a.getProtocolStack().findProtocol(GMS.class);\n gms.installView(merge_view, null);\n gms=b.getProtocolStack().findProtocol(GMS.class);\n gms.installView(merge_view, null);\n\n Util.waitUntilAllChannelsHaveSameView(20000, 500, a, b);\n System.out.println(\"A's view: \" + a.getView() + \"\\nB's view: \" + b.getView());\n\n for(int i=0; i < 20; i++) {\n bridge_view=xr.getBridgeView(BRIDGE_CLUSTER);\n if(bridge_view != null && bridge_view.size() == 2)\n break;\n Util.sleep(500);\n }\n\n route=getRoute(x, LON);\n System.out.println(\"Route at sfo to lon: \" + route);\n assert route != null;\n }", "@Test\n @WithSystemProperty(key = IgniteSystemProperties.IGNITE_DUMP_THREADS_ON_FAILURE, value = \"false\")\n public void testConnectingNodesStopIfNoConnectedNodeIsPresented() throws Exception {\n /*\n Test reproduces the needed behavior (two nodes in CONNECTING state) doing the following:\n - it starts two regular nodes, node0 (coordinator) and node1 (just another server) with special\n discovery SPIs;\n - when node1 receives NodeAddFinished for subsequently started node2, it doesn't send it to the node\n but closes disco socket to node2 leaving it in CONNECTING state and generating NodeFailed for it.\n Also at this moment node3 is started;\n - when node0 receives this NodeFailed it fails (because special SPI throws an exception) and stops;\n - when node1 receives another join request from node2 or NodeAdded from node3 reaches it back,\n node1's special SPI also throws an exception so it goes down as well;\n - as a result, both node2 and node3 get stuck in CONNECTING state and as they use special IpFinders\n they see each other and are able to send join requests to each other back and forth.\n\n The whole purpose of the test is to verify that these two nodes won't stuck in CONNECTING state forever\n and will eventually stop.\n */\n\n usePortFromNodeName = true;\n\n final AtomicInteger joinReqsCntr = new AtomicInteger(0);\n\n final AtomicReference<IgniteInternalFuture> futureRef = new AtomicReference();\n\n final UUID node2Id = UUID.randomUUID();\n\n final TcpDiscoverySpi node0SpecialSpi = new TcpDiscoverySpi() {\n @Override protected void startMessageProcess(TcpDiscoveryAbstractMessage msg) {\n if (msg instanceof TcpDiscoveryNodeFailedMessage) {\n TcpDiscoveryNodeFailedMessage failedMsg = (TcpDiscoveryNodeFailedMessage)msg;\n\n UUID failedNodeId = failedMsg.failedNodeId();\n\n if (failedNodeId.equals(node2Id))\n throw new RuntimeException(\"Stop node0 exception\");\n }\n\n if (msg instanceof TcpDiscoveryJoinRequestMessage) {\n TcpDiscoveryJoinRequestMessage joinReq = (TcpDiscoveryJoinRequestMessage)msg;\n\n if (joinReq.node().id().equals(node2Id))\n joinReqsCntr.incrementAndGet();\n }\n }\n };\n\n final TcpDiscoverySpi node1SpecialSpi = new TcpDiscoverySpi() {\n @Override protected void startMessageProcess(TcpDiscoveryAbstractMessage msg) {\n if (msg instanceof TcpDiscoveryNodeAddFinishedMessage) {\n TcpDiscoveryNodeAddFinishedMessage finishedMsg = (TcpDiscoveryNodeAddFinishedMessage)msg;\n\n UUID nodeId = finishedMsg.nodeId();\n\n if (nodeId.equals(node2Id)) {\n Object workerObj = GridTestUtils.getFieldValue(impl, \"msgWorker\");\n\n OutputStream out = GridTestUtils.getFieldValue(workerObj, \"out\");\n\n try {\n out.close();\n\n log.warning(\"Out to 'sick' node closed\");\n }\n catch (Exception ignored) {\n // No-op.\n }\n\n futureRef.set(GridTestUtils.runAsync(() -> {\n try {\n startGrid(NODE_WITH_PORT_ID_3);\n }\n catch (Exception ignored) {\n //NO-op.\n }\n }));\n }\n }\n\n if (msg instanceof TcpDiscoveryJoinRequestMessage) {\n TcpDiscoveryJoinRequestMessage joinReq = (TcpDiscoveryJoinRequestMessage)msg;\n\n int joinReqsCount = joinReqsCntr.get();\n\n if (joinReq.node().id().equals(node2Id) && joinReqsCount == 1)\n throw new RuntimeException(\"Stop node1 exception by subsequent join req\");\n }\n\n if (msg instanceof TcpDiscoveryNodeAddedMessage) {\n TcpDiscoveryNodeAddedMessage addedMsg = (TcpDiscoveryNodeAddedMessage)msg;\n\n if (addedMsg.node().discoveryPort() == 47503)\n throw new RuntimeException(\"Stop node1 exception by new node added msg\");\n }\n }\n };\n\n specialSpi = node0SpecialSpi;\n\n startGrid(NODE_WITH_PORT_ID_0);\n\n specialSpi = node1SpecialSpi;\n\n startGrid(NODE_WITH_PORT_ID_1);\n\n specialIpFinder0 = new TcpDiscoveryVmIpFinder(false);\n\n ((TcpDiscoveryVmIpFinder)specialIpFinder0).setAddresses(Arrays.asList(\"127.0.0.1:47501\", \"127.0.0.1:47503\"));\n\n specialIpFinder1 = new TcpDiscoveryVmIpFinder(false);\n\n ((TcpDiscoveryVmIpFinder)specialIpFinder1).setAddresses(Arrays.asList(\"127.0.0.1:47502\"));\n\n specialSpi = null;\n\n nodeId = node2Id;\n\n boolean expectedExceptionThrown = false;\n\n try {\n startGrid(NODE_WITH_PORT_ID_2);\n }\n catch (Exception e) {\n Throwable cause0 = e.getCause();\n\n assertNotNull(cause0);\n\n Throwable cause1 = cause0.getCause();\n\n assertNotNull(cause1);\n\n String errorMsg = cause1.getMessage();\n\n assertTrue(\n \"Expected error message was not found: \" + errorMsg,\n errorMsg.contains(\"Failed to connect to any address from IP finder\")\n );\n\n expectedExceptionThrown = true;\n }\n\n assertTrue(\"Expected exception was not thrown.\", expectedExceptionThrown);\n\n IgniteInternalFuture startGridFut = futureRef.get();\n\n if (startGridFut != null)\n startGridFut.get();\n }", "@Test\r\n void test_insert_two_vertice_with_one_edge_remove_edge() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n vertices = graph.getAllVertices();\r\n // B should be an adjacent vertex of A\r\n if(!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n //Check that A and B are in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")) {\r\n fail();\r\n }\r\n //There's one edge in the graph\r\n if(graph.size() != 1) {\r\n fail();\r\n }\r\n //Remove edge from A to B\r\n graph.removeEdge(\"A\", \"B\");\r\n // Check that A and B are still in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")) {\r\n fail();\r\n }\r\n // B should not be an adjacent vertex of \r\n if(graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n // There are no more edges in the graph\r\n if(graph.size() != 0) {\r\n fail();\r\n }\r\n }", "public boolean unlink(Node n1, Node n2) {\n\t\t\n\t\t//Validate n1 has a value\n\t\tif (n1 == null) { return false; } \n\t\t\n\t\t//Validate n has a value\n\t\tif (n2 == null) { return false; } \t\t\t\n\t\t\n\t\t//Verify nodes arn't the same\n\t\tif (n1 == n2) { return false; } \n\t\t\n\t\t//verify n1 and n2 are in the network\n\t\tif(!(nodes.contains(n1) && nodes.contains(n2))){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//Remove node 2 as neighbor from node 1 and vice versa\n\t\tif (n1.removeNeighbor(n2) && n2.removeNeighbor(n1)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean deleteConnection(GraphNode nodeA, GraphNode nodeB) {\n if (nodeB.getAdjacent().contains(nodeA)) {\n //do the thing\n nodeA.removeAdjacent(nodeB);\n nodeB.removeAdjacent(nodeA);\n return true;\n }\n return false;\n }", "public final void connectIfNotFound(N n1, E edge, N n2) {\n if (!isConnected(n1, edge, n2)) {\n connect(n1, edge, n2);\n }\n }", "@Override\n public void reportNodeCommunicationFailure(String nodeName, Throwable t) {\n failedNodeInteractions.add(nodeName);\n int failureCount = failedNodeInteractions.count(nodeName);\n if (failureCount >= successiveProxyFailuresBeforeReestablishing\n || exceptionContains(t, ConnectException.class, EOFException.class)) {\n dropNodeProxy(nodeName, failureCount);\n }\n }", "private void checkEdgeExistance(Node a, Node b, int weight) {\n for (Edge edge : a.getEdges()) {\n if (edge.getSource() == a && edge.getDestination() == b) {\n edge.setWeight(weight);\n return;\n }\n }\n a.getEdges().add(new Edge(a, b, weight));\n }", "void onConnectToNetByIPFailure();", "public void removeEdge(int node1, int node2)\n{\n\tif(getNodes().containsKey(node1) && getNodes().containsKey(node2))\n\t{\n\t\tNode n1 = (Node) getNodes().get(node1);\n\t\tNode n2 = (Node) getNodes().get(node2);\n\n\t\tif(n1.getEdgesOf().containsKey(node2))\n\t\t{\n\t\t\tedge_size--;\n\t\t\tmc++;\n\t\t\tn1.getEdgesOf().remove(node2);\n\n\t\t}\n\t\tif(n2.getEdgesOf().containsKey(node1))\n\t\t{\n\t\t\tedge_size--;\n\t\t\tmc++;\n\t\t\tn2.getEdgesOf().remove(node1);\n\n\t\t}\n\t\t\n\t\telse {\n\t\t\t\n\t\t\t//System.out.println(\"Edge doesnt exist\");\n\t\t}\n\t}\n\telse {\n\t\treturn;\n\t\t//System.out.println(\"src or dest doesnt exist\");\n\t}\n}", "@Test\r\n void test_remove_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"B\");\r\n graph.removeEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n } \r\n }", "public String failure(Integer failedNode){\n Integer previousNode = IPmap.lowerKey(failedNode); //find the previous and next node of the failed node\n Integer nextNode = IPmap.higherKey(failedNode);\n try{\n removeNode(failedNode);\n }catch(Exception e){}\n return Integer.toString(previousNode) + Integer.toString(nextNode); //return both\n }", "public void drawUndirectedEdge(String label1, String label2) {\n }", "@Test\r\n void test_insert_two_vertice_with_one_edge_remove_non_existent_edge() {\r\n // Add three vertices with two edges\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n vertices = graph.getAllVertices();\r\n // B should be an adjacent vertex of A\r\n if(!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n // C should be an adjacent vertex of B\r\n if(!graph.getAdjacentVerticesOf(\"B\").contains(\"C\")){\r\n fail();\r\n }\r\n //Check that A,B and C are in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")\r\n | !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n // There are two edges in the graph\r\n if(graph.size() != 2) {\r\n fail();\r\n }\r\n // Try are remove edge from A to C\r\n graph.removeEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"D\");\r\n graph.removeEdge(\"E\", \"F\");\r\n graph.removeEdge(null, \"A\");\r\n graph.removeEdge(\"A\", null);\r\n //Graph should maintain its original shape\r\n if(!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")){\r\n fail();\r\n }\r\n // C should be an adjacent vertex of B\r\n if(!graph.getAdjacentVerticesOf(\"B\").contains(\"C\")){\r\n fail();\r\n }\r\n //Check that A,B and C are in the graph\r\n if(!vertices.contains(\"A\") |!vertices.contains(\"B\")\r\n | !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n // There are two edges in the graph\r\n if(graph.size() != 2) {\r\n fail();\r\n }\r\n }", "private void ruleR2(Node a, Node b, Node c, Graph graph) {\n if (!graph.isAdjacentTo(a, c)) {\n return;\n }\n\n if (graph.getEndpoint(b, a) == Endpoint.TAIL && graph.getEndpoint(a, b) == Endpoint.ARROW\n && graph.getEndpoint(b, c) == Endpoint.ARROW && graph.getEndpoint(a, c) == Endpoint.CIRCLE) {\n if (!isArrowpointAllowed(graph, a, c)) {\n return;\n }\n\n graph.setEndpoint(a, c, Endpoint.ARROW);\n } else if (graph.getEndpoint(a, b) == Endpoint.ARROW && graph.getEndpoint(c, b) == Endpoint.TAIL\n && graph.getEndpoint(b, c) == Endpoint.ARROW && graph.getEndpoint(a, c) == Endpoint.CIRCLE\n ) {\n if (!isArrowpointAllowed(graph, a, c)) {\n return;\n }\n\n graph.setEndpoint(a, c, Endpoint.ARROW);\n }\n }", "private void handleFailureAdvert(String[] lines, int lnk) {\n\t\t// example path vector line\n\t\t// fadvert: 1.2.0.1 1.3.0.1 345.678 1.4.0.1 1.2.0.1\n\t\t// meaning link 1.2.0.1 to 1.3.0.1 is failed\n\n\n\t\t// Parse the path vector line.\n\t\t// If there is loop in path vector, ignore this packet.\n\t\tboolean rteChanged = false;\n\t\tString[] chunks = lines[2].split(\":\");\n\t\tString[] pathVec = chunks[1].split(\" \");\n\t\tfor (int i = 3; i < pathVec.length; i++){\n\t\t\tfor (int j = i; j < pathVec.length; j++){\n\t\t\t\tif (pathVec[i].equals(pathVec[j])){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// go through routes to check if it contains the link\n\t\t// set the route as invalid (false) if it does\n\t\tfor (Route rte : rteTbl){\n\t\t\trteChanged = false;\n\t\t\tif (rte.path.contains(lnk)){\n\t\t\t\trte.valid = false;\n\t\t\t\trteChanged = true;\n\t\t\t}\n\t\t\t// update the time stamp if route is changed\n\t\t\t// print route table if route is changed and debug is enabled\n\t\t\tif (rteChanged){\n\t\t\t\tRoute update = rte;\n\t\t\t\tupdate.timestamp = now;\n\t\t\t\tupdateRoute(rte, update);\n\t\t\t\tif (debug > 0){printTable();}\n\t\t\t\t// If one route is changed, extend the message \n\t\t\t\t// and send it to other neighbors.\n\t\t\t\tsendFailureAdvert(rte.outLink);\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testCreateLinkMalformed() {\n\t\tLink result = helper.createLink(\"htp:/bad.com\");\n\t\tassertEquals(\"htp:/bad.com\", result.getUrl());\n\t\tassertFalse(result.isValid());\n\t}", "void onNodeBroken(World world, BlockPos pos);", "public void transferLink(Node one, Node two){ \n\t\t//System.out.println(\" in transferLink\");\n\t\tif (one.parent == nil){\n\t\t\t//System.out.println(\" u is root \" + u.id + \" v is \" + v.id);\n\t root=two;\n\t }else if(one==one.parent.right){\n\t \tone.parent.right = two; \n\t }else{\n\t \tone.parent.left = two;\n\t }\n\t \n\t two.parent = one.parent;\n\t}", "void removeDirectedEdge(final Node first, final Node second)\n {\n if (first.connectedNodes.contains(second))\n first.connectedNodes.remove(second);\n\n }", "@Test\n\tpublic void harderLinkTest() {\n\t\tCompassRoom eastRoom = new CompassRoom(\"eastRoom\");\n\t\tCompassRoom westRoom = new CompassRoom(\"westRoom\");\n\t\t// Link rooms.\n\t\twestRoom.linkTo(CompassDirections.East, eastRoom); // [west] -> [east]\n\t\teastRoom.linkTo(CompassDirections.West, westRoom); // [west] <- [east]\n\t\t\n\t\tassertEquals(\"westRoom should link east to eastRoom.\",\n\t\t\t\teastRoom, westRoom.getExitRoom(CompassDirections.East));\n\t\tassertEquals(\"eastRoom should link west to westRoom.\",\n\t\t\t\twestRoom, eastRoom.getExitRoom(CompassDirections.West));\n\t\tassertEquals(\"westRoom should not have a west exit.\",\n\t\t\t\tnull, westRoom.getExitRoom(CompassDirections.West));\n\t\tassertEquals(\"eastRoom should not have an east exit.\",\n\t\t\t\tnull, eastRoom.getExitRoom(CompassDirections.East));\n\t}", "@Test\n public void testNoLinkPillars(){\n try {\n smallMaze.linkPillars(Maze.position(0, 0), Maze.position(2,0));\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown.\");\n }\n\n pillar = smallPillarMap.get(Maze.position(0,0));\n pillarNeighbors = pillar.getNeighbors();\n assertFalse(pillarNeighbors.containsKey(new Pillar(2, 0)));\n\n try {\n smallMaze.linkPillars(Maze.position(1, 0), Maze.position(2,2));\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown.\");\n }\n\n pillar = smallPillarMap.get(Maze.position(1,0));\n pillarNeighbors = pillar.getNeighbors();\n assertFalse(pillarNeighbors.containsKey(new Pillar(2, 2)));\n\n try {\n smallMaze.linkPillars(Maze.position(1, 2), Maze.position(0,0));\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown.\");\n }\n\n pillar = smallPillarMap.get(Maze.position(1,2));\n pillarNeighbors = pillar.getNeighbors();\n assertFalse(pillarNeighbors.containsKey(new Pillar(0, 0)));\n }", "@Test\n public void testIsValidonNotConnectedMap() {\n mapModel.removeLink(\"TerritoryD\", \"TerritoryC\");\n\n boolean expResult = false;\n boolean result = mapModel.isValid();\n assertEquals(expResult, result);\n }", "public void stopNode() throws HoneycombTestException {\n\n assert nodes.size() >= numBounce;\n\n /* Pick numBounce nodes, remember their IDs, stop each node \n */\n for (int i = 0; i < numBounce; i++) {\n int nodeId = pickClusterNode(nodes);\n Log.INFO(\"BOUNCE NODE \" + nodeId);\n bouncing.add(new Integer(nodeId));\n \n ClusterNode n = cm.getNode(nodeId);\n if (n.isMaster())\n cm.setMasterFailover();\n if (n.isVice())\n cm.setViceFailover();\n n.stopNode(failMode);\n\n HCUtil.doSleep(computeSkew(), \"node bounce skew\");\n }\n }", "private void createNodeFailure(String path) {\n LOG.warn(\"failed to create task node\" + path);\n setDone(path, FAILURE);\n }", "@Test\n void test03_addEdgeBetweenVerticesWhichDontExist() {\n graph.addEdge(\"a\", \"b\");\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\"); // creates mock up vertex list\n if (!graph.getAllVertices().equals(vertices)) { // compares vertices list\n fail(\"Graph didn't add the vertices correctly\");\n }\n List<String> adjOfA = new ArrayList<>();\n adjOfA.add(\"b\"); // creates mock up adjacent list\n if (!graph.getAdjacentVerticesOf(\"a\").equals(adjOfA)) { // compares adjacent lists\n fail(\"Graph didn't correctly place adjacent vertices\");\n }\n }", "public void handleLink(Node from, Node to) {\n\t\t\r\n\t}", "private void verifyLinks(String[][] linkSelfO1O2IDs) {\n // fill expectedLinkIDs\n List expectedLinkIDs = new ArrayList(); // catenation of linkID + o1ID + o2ID\n for (int linkIdx = 0; linkIdx < linkSelfO1O2IDs.length; linkIdx++) {\n String[] linkIDs = linkSelfO1O2IDs[linkIdx];\n String linkID = linkIDs[0];\n String o1ID = linkIDs[1];\n String o2ID = linkIDs[2];\n expectedLinkIDs.add(linkID + o1ID + o2ID);\n }\n\n // fill actualLinkIDs\n List actualLinkIDs = new ArrayList(); // catenation of linkID + o1ID + o2ID\n NST linkNST = DB.getLinkNST();\n ResultSet resultSet = linkNST.selectRows(); // \"o1_id\", \"o2_id\"\n while (resultSet.next()) {\n int linkID = resultSet.getOID(1);\n int o1ID = resultSet.getOID(2);\n int o2ID = resultSet.getOID(3);\n actualLinkIDs.add(linkID + \"\" + o1ID + \"\" + o2ID);\n }\n\n // compare\n assertEquals(expectedLinkIDs.size(), actualLinkIDs.size());\n assertTrue(expectedLinkIDs.containsAll(actualLinkIDs));\n }", "public void connect(int node1, int node2, double w)\n{\n\tif(getNodes().containsKey(node1) && getNodes().containsKey(node2) && (node1 != node2))\n\t{\n\t \tNode n1 = (Node)getNodes().get(node1);\n\t\t Node n2 = (Node)getNodes().get(node2);\n\t\t\n\t\tif(!n1.hasNi(node2)&&!n2.hasNi(node1))\n\t\t{\n\t\t\tEdge e=new Edge(w,node1,node2);\n\t\t\tn1.addEdge(e);\n\t\t\tn2.addEdge(e);\n\t\t\tmc++;//adding an edge\n\t\t\tedge_size++;\n\t\t}\n\t\telse\n\t\t\t// if the edge already exist in the HashMap of the two nodes\n\t\t\t//we want only update the weight of the edge.\n\t\t{\n\t\t\tn1.getEdgesOf().get(node2).set_weight(w);\n\t\t\tn2.getEdgesOf().get(node1).set_weight(w);\n\t\t}\n\t\t\n\t}\n\telse {\n\t\treturn;\n\t\t//System.out.println(\"src or dst doesnt exist OR src equals to dest\");\n\t}\n}", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "static boolean isValidLinkTarget(LWLink link, LWComponent linkSource, LWComponent linkTarget)\n {\n if (linkTarget == linkSource && linkSource != null) {\n if (DEBUG.LINK) reject(linkTarget, \"source == target\");\n return false;\n }\n // TODO: allow loop-back link if it's a CURVED link...\n\n // don't allow links between parents & children\n if (linkSource != null) {\n if (linkTarget.getParent() == linkSource ||\n linkSource.getParent() == linkTarget) {\n if (DEBUG.LINK) reject(linkTarget, \"parent-child link\");\n return false;\n }\n if (linkTarget != null) {\n if (!linkSource.canLinkTo(linkTarget)) {\n if (DEBUG.LINK) reject(linkTarget, \"source denies target; src=\" + linkSource);\n return false;\n }\n }\n }\n\n if (link != null && linkTarget == link.getParent()) {\n // if a link is inside something, don't link to it (?)\n if (DEBUG.LINK) reject(linkTarget, \"target is parent of the new link\");\n return false;\n }\n\n if (link != null && linkTarget instanceof LWLink && linkTarget.isConnectedTo(link)) {\n // Don't permit a link to link back to a link that's connected to it.\n if (DEBUG.LINK) reject(linkTarget, \"this link already connected to target\");\n return false;\n }\n\n\n// New code, tho we don't actually need these constraints:\n// if (linkTarget instanceof LWLink) {\n// if (DEBUG.LINK) outln(\"target is link: \" + linkTarget);\n// if (linkTarget.isConnectedTo(linkSource)) {\n// if (DEBUG.LINK) reject(linkTarget, \"target link-to-link loop\");\n// return false;\n// } else if (link != null && linkTarget.isConnectedTo(link)) {\n// if (DEBUG.LINK) reject(linkTarget, \"this link already connected to target\");\n// return false;\n// }\n// }\n \n// if (linkSource instanceof LWLink) {\n// if (linkSource.isConnectedTo(linkTarget)) {\n// if (DEBUG.LINK) reject(linkTarget, \"source link-to-link loop; src=\" + linkSource);\n// return false;\n// }// else if (link != null\n// }\n\n\n return true;\n\n\n// The old code: \n// boolean ok = true;\n// if (linkTarget instanceof LWLink) {\n// LWLink target = (LWLink) linkTarget;\n// ok &= (target.getHead() != linkSource &&\n// target.getTail() != linkSource);\n// }\n// if (linkSource instanceof LWLink) {\n// LWLink source = (LWLink) linkSource;\n// ok &= (source.getHead() != linkTarget &&\n// source.getTail() != linkTarget);\n// }\n// return ok;\n }", "public void deletelink(Integer linkId);", "@Test\n public void testWithUnknownLabel() throws Exception {\n LogicalGraph socialGraph = getSocialNetworkLoader().getLogicalGraph();\n LogicalGraph result = socialGraph\n .callForGraph(new VertexDeduplication<>(\"NotInTheGraph\", Arrays.asList(\"a\", \"b\")));\n collectAndAssertTrue(socialGraph.equalsByData(result));\n }", "@Test(description = \"Verify node's update reject request with the same responsible for different matching \"\n + \"node_type+External ID (Negative)\", groups = \"smoke\")\n public void updateRegisteredNodeWithSameResponsibleForDifferentMatchingTest() {\n AccountEntity cameraResponsible = new AccountEntityManager().createAccountEntity();\n Response cameraResponsibleResponse =\n AccountEntityServiceMethods.createAccountEntityRequest(cameraResponsible);\n Integer cameraResponsibleId = getAccountId(cameraResponsibleResponse);\n\n //Create responsible for airsensor\n AccountEntity airsensorResponsible = new AccountEntityManager().createAccountEntity();\n Response airsensorResponsibleResponse =\n AccountEntityServiceMethods.createAccountEntityRequest(airsensorResponsible);\n Integer airsensorResponsibleId = getAccountId(airsensorResponsibleResponse);\n\n //LWA Camera registration\n LightWeightAccount.Node node = createDefaultNode();\n\n LightWeightAccount lwa = createDefaultLightWeightAccount(node)\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getCurrentDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START));\n\n LightWeightAccountServiceMethods.newNodeRegistration(lwa).then().statusCode(200);\n\n //LWA Airsensor registration\n LightWeightAccount.Node node2 = createDefaultNode()\n .setNodeType(\"AIRSENSOR\")\n .setAttributes(new HashMap<String, Object>() {{\n put(\"msisdn\", \"value1\");\n put(\"oem\", \"11\");\n put(\"location\", \"12356\");\n put(\"model\", \"1234\");\n }});\n\n LightWeightAccount lwa2 = createDefaultLightWeightAccount(node2)\n .setResponsibleId(airsensorResponsibleId.toString())\n .setStartDate(DateTimeHelper.getCurrentDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START));\n\n LightWeightAccountServiceMethods.newNodeRegistration(lwa2).then().statusCode(200);\n\n //Update camera with same responsible\n LightWeightAccount lwaCameraUpdated = new LightWeightAccount()\n .setExternalId(lwa.getExternalId())\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getTomorrowDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START))\n .setNode(new LightWeightAccount.Node().setNodeType(node.getNodeType()));\n\n //request rejection check\n LightWeightAccountServiceMethods.updateNodeRegistration(lwaCameraUpdated).then().statusCode(428);\n\n //Update airsensor with new responsible\n LightWeightAccount lwaAirsensorUpdated = new LightWeightAccount()\n .setExternalId(lwa2.getExternalId())\n .setResponsibleId(cameraResponsibleId.toString())\n .setStartDate(DateTimeHelper.getTomorrowDate(DateTimeHelper.DATE_PATTERN_DEFAULT_START))\n .setNode(new LightWeightAccount.Node().setNodeType(\"AIRSENSOR\"));\n\n //request rejection check\n LightWeightAccountServiceMethods.updateNodeRegistration(lwaAirsensorUpdated).then().statusCode(200);\n }", "@Test\n\tpublic void testWithAnUnexistenceRoute() {\n\t\tassertEquals(Trains.distanceRoute(\"A\", \"E\", \"D\"), \"NO SUCH ROUTE\");\n\t}", "public void testNodeNotReachableFromClusterManager() throws Exception {\n startCluster(3);\n\n String clusterManagerNode = internalCluster().getClusterManagerName();\n String nonClusterManagerNode = null;\n while (nonClusterManagerNode == null) {\n nonClusterManagerNode = randomFrom(internalCluster().getNodeNames());\n if (nonClusterManagerNode.equals(clusterManagerNode)) {\n nonClusterManagerNode = null;\n }\n }\n\n logger.info(\"blocking request from cluster-manager [{}] to [{}]\", clusterManagerNode, nonClusterManagerNode);\n MockTransportService clusterManagerTransportService = (MockTransportService) internalCluster().getInstance(\n TransportService.class,\n clusterManagerNode\n );\n if (randomBoolean()) {\n clusterManagerTransportService.addUnresponsiveRule(\n internalCluster().getInstance(TransportService.class, nonClusterManagerNode)\n );\n } else {\n clusterManagerTransportService.addFailToSendNoConnectRule(\n internalCluster().getInstance(TransportService.class, nonClusterManagerNode)\n );\n }\n\n logger.info(\"waiting for [{}] to be removed from cluster\", nonClusterManagerNode);\n ensureStableCluster(2, clusterManagerNode);\n\n logger.info(\"waiting for [{}] to have no cluster-manager\", nonClusterManagerNode);\n assertNoClusterManager(nonClusterManagerNode);\n\n logger.info(\"healing partition and checking cluster reforms\");\n clusterManagerTransportService.clearAllRules();\n\n ensureStableCluster(3);\n }", "@Test\n void test001_addValidFriendshipFor2BuddiesInNetwork() {\n\n try {\n christmasBuddENetwork.addFriendship(\"santa\", \"grinch\");\n christmasBuddENetwork.addFriendship(\"santa\", \"rudolph\");\n christmasBuddENetwork.addFriendship(\"comet\", \"santa\");\n christmasBuddENetwork.addFriendship(\"prancer\", \"grinch\");\n christmasBuddENetwork.addFriendship(\"prancer\", \"comet\");\n\n\n // no exception should be thrown because this is a different network:\n lonelERedNosedRudolphNetwork.addFriendship(\"santa\", \"grinch\");\n // adding another friendship to the different network\n lonelERedNosedRudolphNetwork.addFriendship(\"blitzen\", \"donder\");\n // the lonelERedNosedRudolphNetwork should have 4 buddEs: santa, grinch,\n // blitzen, and donder\n Set<User> lonelERudolphSet = lonelERedNosedRudolphNetwork.getAllUsers();\n int numLonelERudolphBuddEs = lonelERudolphSet.size();\n if (numLonelERudolphBuddEs != 4) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did \"\n + \"NOT return 4 for the # of BuddEs in the \"\n + \"lonelERedNosedRudolphNetwork but instead returned: \"\n + numLonelERudolphBuddEs);\n }\n // we should see that blitzen and donder each just have 1 buddE in the\n // lonelERedNosedRudolphNetwork:\n lonelERedNosedRudolphNetwork.setCentralUser(\"blitzen\");\n User centralUserBlitzen = lonelERedNosedRudolphNetwork.getCentralUser();\n Set<User> blitzensFriends = centralUserBlitzen.getFriends();\n int numFriendsOfBlitzen = blitzensFriends.size(); // please note this\n // should be 1\n\n if (numFriendsOfBlitzen != 1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 1 for the # of buddEs Blitzen has (Donder) and \"\n + \"instead returned: \" + numFriendsOfBlitzen);\n }\n for (User i : blitzensFriends)\n\n if ((!i.getName().equals(\"donder\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Blitzens buddE list is NOT correct\");\n\n }\n\n lonelERedNosedRudolphNetwork.setCentralUser(\"donder\");\n User centralUserDonder = lonelERedNosedRudolphNetwork.getCentralUser();\n Set<User> dondersFriends = centralUserDonder.getFriends();\n int numFriendsOfDonder = dondersFriends.size(); // please note this should\n // be 1\n\n if (numFriendsOfDonder != 1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 1 for the # of buddEs Donder has (Blitzen) and \"\n + \"instead returned: \" + numFriendsOfDonder);\n }\n\n for (User i : dondersFriends) {\n if ((!i.getName().equals(\"blitzen\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Donders buddE list is NOT correct\");\n\n }\n }\n\n\n\n // ensuring we have added all 5 buddEs to the christmasBuddENetwork\n // because addFriendship should do\n // this :)\n // we should have 5 buddEs: santa, grinch, rudolph, comet, and prancer in\n // the network\n Set<User> allChristmasBuddEsSet = christmasBuddENetwork.getAllUsers();\n int numOfBuddEs = allChristmasBuddEsSet.size();\n if (numOfBuddEs != 5) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did \"\n + \"NOT return 5 for the # of BuddEs in the christmasBuddENetwork \"\n + \"but instead returned: \" + numOfBuddEs);\n }\n\n // checking Santa's friendships:\n // Santa's friends: grinch, rudolph, and comet (3 friends)\n christmasBuddENetwork.setCentralUser(\"santa\");\n User centralUserSanta = christmasBuddENetwork.getCentralUser();\n Set<User> santasFriends = centralUserSanta.getFriends();\n int numFriendsOfSanta = santasFriends.size(); // please note this should\n // be 3\n\n if (numFriendsOfSanta != 3) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 3 for the # of friends Santa has (Grinch, Rudolph, \"\n + \"and Comet) and instead returned: \" + numFriendsOfSanta);\n }\n\n ArrayList<String> santaBudsList = new ArrayList<String>();\n for (User i : santasFriends) {\n santaBudsList.add(i.getName());\n }\n\n if ((!santaBudsList.contains(\"grinch\"))\n || (!santaBudsList.contains(\"comet\"))\n || (!santaBudsList.contains(\"rudolph\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Santas buddE list is NOT correct\");\n\n }\n\n // checking Grinch's friendships:\n // we should have 2 friends: santa and prancer\n christmasBuddENetwork.setCentralUser(\"grinch\");\n User centralUserGrinch = christmasBuddENetwork.getCentralUser();\n Set<User> grinchsFriends = centralUserGrinch.getFriends();\n int numFriendsOfGrinch = grinchsFriends.size(); // please note this should\n // be 2\n\n if (numFriendsOfGrinch != 2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 2 for the # of friends Grinch has (Santa and \"\n + \"Prancer) and instead returned: \" + numFriendsOfGrinch);\n }\n\n ArrayList<String> grinchBudsList = new ArrayList<String>();\n for (User i : grinchsFriends) {\n grinchBudsList.add(i.getName());\n }\n\n\n if ((!grinchBudsList.contains(\"santa\"))\n || (!grinchBudsList.contains(\"prancer\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Grinchs buddE list is NOT correct\");\n\n }\n\n // checking Comet's friendships:\n // Comet's friends: Santa and Prancer (2 buddEs)\n christmasBuddENetwork.setCentralUser(\"comet\");\n User centralUserComet = christmasBuddENetwork.getCentralUser();\n Set<User> cometsFriends = centralUserComet.getFriends();\n int numFriendsOfComet = cometsFriends.size(); // please note this should\n // be 2\n\n if (numFriendsOfComet != 2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 2 for the # of buddEs reindeer Comet has (Santa and \"\n + \"Prancer) and instead returned: \" + numFriendsOfComet);\n }\n\n ArrayList<String> cometBudsList = new ArrayList<String>();\n for (User i : cometsFriends) {\n cometBudsList.add(i.getName());\n }\n\n if ((!cometBudsList.contains(\"santa\"))\n || (!cometBudsList.contains(\"prancer\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Comets buddE list is NOT correct\");\n\n }\n\n // checking Prancer's friendships:\n // Prancer's friends: Grinch and Comet (2 buddEs)\n christmasBuddENetwork.setCentralUser(\"prancer\");\n User centralUserPrancer = christmasBuddENetwork.getCentralUser();\n Set<User> prancersFriends = centralUserPrancer.getFriends();\n int numFriendsOfPrancer = cometsFriends.size(); // please note this should\n // be 2\n\n if (numFriendsOfPrancer != 2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 2 for the # of buddEs reindeer Prancer has (Grinch \"\n + \"and Comet) and instead returned: \" + numFriendsOfPrancer);\n }\n\n ArrayList<String> prancerBudsList = new ArrayList<String>();\n for (User i : prancersFriends) {\n prancerBudsList.add(i.getName());\n }\n\n if ((!prancerBudsList.contains(\"grinch\"))\n || (!prancerBudsList.contains(\"comet\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Prancers buddE list is NOT correct\");\n }\n\n // checking Rudolph's friendships:\n // Rudolph's friends: Santa (1 buddE)\n christmasBuddENetwork.setCentralUser(\"rudolph\");\n User centralUserRudolph = christmasBuddENetwork.getCentralUser();\n Set<User> rudolphsFriends = centralUserRudolph.getFriends();\n int numFriendsOfRudolph = rudolphsFriends.size(); // please note this\n // should be 1\n\n if (numFriendsOfRudolph != 1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Did\"\n + \" NOT return 1 for the # of buddEs Red-Nose reindeer Rudolph has \"\n + \"(Santa) and instead returned: \" + numFriendsOfRudolph);\n }\n\n ArrayList<String> rudolphBudsList = new ArrayList<String>();\n for (User i : rudolphsFriends) {\n rudolphBudsList.add(i.getName());\n }\n\n\n if ((!rudolphBudsList.contains(\"santa\"))) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :(\"\n + \" Rudolphs buddE list is NOT correct\");\n }\n\n } catch (IllegalNullArgumentException e1) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Threw \"\n + \"an IllegalNullArgumentException when trying to add a valid \"\n + \"friendship!\");\n } catch (UserNotFoundException e2) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Threw \"\n + \"a UserNotFoundException when trying to add a valid friendship!\");\n } catch (Exception e3) {\n fail(\"test001_addValidFriendshipFor2BuddiesInNetwork(): FAILED! :( Threw \"\n + \"an Exception when trying to add a valid friendship!\");\n }\n\n\n\n // please see if Grinch is in this set\n\n\n }", "public void testdeassociate2() throws Exception {\r\n try {\r\n this.dao.deassociate(new Address(), -1, true);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@Test\r\n\tpublic void testScanePage_malformedLink() {\n\t}", "@Test\n\tpublic void deleteA_useAwithB_danglingEdgeTest() {\n\t\tHenshinResourceSet resourceSet = new HenshinResourceSet(PATH);\n\n\t\t// Load the module:\n\t\tModule module = resourceSet.getModule(\"simpleTgRules.henshin\", false);\n\n\t\tUnit deleteAUnit = module.getUnit(\"deleteA\");\n\t\tRule deleteARule = (Rule) deleteAUnit;\n\n\t\tUnit useAwithBUnit = module.getUnit(\"useAwithB\");\n\t\tRule useAwithBRule = (Rule) useAwithBUnit;\n\n\t\tConflictAnalysis atomicCoreCPA = new ConflictAnalysis(deleteARule, useAwithBRule);\n\t\tList<ConflictAtom> computedConflictAtoms = atomicCoreCPA.computeConflictAtoms();\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, computedConflictAtoms.size());\n\t\t// System.out.println(\"number of conflict atoms:\n\t\t// \"+computedConflictAtoms.size());\n\t\t// for(ConflictAtom conflictAtom : computedConflictAtoms){\n\t\t// System.out.println(conflictAtom);\n\t\t// }\n\n\t\tAtomCandidateComputation candComp = new AtomCandidateComputation(deleteARule, useAwithBRule);\n\t\tList<Span> conflictAtomCandidates = candComp.computeAtomCandidates();\n\n\t\tSet<MinimalConflictReason> reasons = new HashSet<>();//\n\t\tfor (Span candidate : conflictAtomCandidates) {\n\t\t\tnew MinimalReasonComputation(deleteARule, useAwithBRule).computeMinimalConflictReasons(candidate, reasons);\n\t\t}\n\t\t// should be 0 due to dangling edge condition. First rule deletes a node\n\t\t// and second rule requires to have an edge on that node!\n\t\tAssert.assertEquals(0, reasons.size());\n\n\t\t// Set<Span> minimalConflictReasons = reasons;\n\t\t// System.out.println(\"number of minimal conflict reasons:\n\t\t// \"+minimalConflictReasons.size());\n\t\t// for(Span minimalConflictReason : minimalConflictReasons){\n\t\t// System.out.println(minimalConflictReason);\n\t\t// }\n\t}", "public void fail() {\r\n\t\tcontestantIt.currentC().updatePoints(-FAIL);\r\n\t}", "@Test\n\tpublic void testNetworkCreationValid() {\n\t\tassertEquals(N_TESTNODES, testNet.nodeCount());\n\t\tfor (int i = 0; i < testNodes.length; i++) {\n\t\t\tassertTrue(testNet.nodes().contains(testNodes[i]));\n\t\t\tassertEquals(i, testNodes[i].getSimulationId());\n\t\t}\n\n\t\t// Test that link insertion works.\n\t\tfinal int N_LINKS = N_TESTNODES * (N_TESTNODES - 1) / 2;\n\t\tfor (INodeImpl node : testNodes) {\n\n\t\t\tfor (INodeImpl neighbour : testNodes) {\n\n\t\t\t\tif (node != neighbour && !node.isNeighbour(neighbour)) {\n\t\t\t\t\ttestNet.createLink(node, neighbour, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tassertEquals(N_LINKS, testNet.linkCount());\n\n\t\tfor (INodeImpl node : testNodes) {\n\n\t\t\tfor (INodeImpl neighbour : testNodes) {\n\n\t\t\t\tif (node != neighbour) {\n\t\t\t\t\tassertTrue(node.isNeighbour(neighbour));\n\t\t\t\t\tassertTrue(neighbour.isNeighbour(node));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void tr5()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(3);\n targets.add(0);\n targets.add(1);\n assertThrows(IllegalArgumentException.class, () ->graph.reachable(sources, targets));\n }", "@Test\r\n void test_insert_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n }\r\n\r\n }", "public void connect(int a, int b) {\n int a_root = find(a);\r\n int b_root = find(b);\r\n if(a_root!=b_root){\r\n graph[a_root] = b_root;\r\n count-=1;\r\n }\r\n \r\n }", "public LWTRTPdu disConnect() throws IncorrectTransitionException;", "@Test\n public void testAttemptLinks() {\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(0, 0));\n largeMaze.setEnd(Maze.position(4, 4));\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n\n //invoke attemptLinks\n try {\n testPillars = largeMaze.getPillars();\n testPillar = testPillars.get(Maze.position(3,3));\n testPillar.setPlanksLeft(1);\n attemptLinks.invoke(solver.getClass(), testPillar, largeMaze.getEnd(), testESet, testNQueue);\n } catch (Exception e) {\n fail(\"Unexpectedly could not invoke attemptLinks().\");\n }\n\n assertEquals(3, testESet.size());\n assertEquals(3, testNQueue.size());\n }", "@Test\n\tpublic void testAddLinkInvalidMultExceeded() {\n\n\t\t// create 1 Address and some Persons\n\t\tAddress adr = new Address();\n\t\tPerson jojo1 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tPerson jojo2 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641015\\\"\");\n\t\tPerson jojo3 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641016\\\"\");\n\t\tPerson jojo4 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641017\\\"\");\n\t\tPerson jojo5 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641018\\\"\");\n\t\tPerson jojo6 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641019\\\"\");\n\n\t\t// add more persons than allowed\n\t\tadr.addInhabitant(jojo1);\n\t\tadr.addInhabitant(jojo2);\n\t\tadr.addInhabitant(jojo3);\n\t\tadr.addInhabitant(jojo4);\n\t\tadr.addInhabitant(jojo5);\n\t\ttry {\n\t\t\tadr.addInhabitant(jojo6);\n\t\t\tAssert.fail();\n\t\t} catch (ValidationException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}", "@Test\r\n void remove_nonexistent_vertex() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.removeVertex(\"D\");\r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\"))\r\n fail();\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\"))\r\n fail();\r\n \r\n }", "@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }", "@Test\n void test07_tryToRemoveNonExistentEdge() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\");\n graph.addVertex(\"c\");\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"b\", \"c\"); // adds two edges\n try {\n graph.removeEdge(\"e\", \"f\"); // remove non existent edge\n } catch (Exception e) {\n fail(\"Shouldn't have thrown exception\");\n }\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\");\n vertices.add(\"c\"); // creates mock up vertex list\n\n if (!graph.getAllVertices().equals(vertices)) { // checks if vertices weren't added or removed\n fail(\"wrong vertices are inserted into the graph\");\n }\n if (graph.size() != 2) {\n fail(\"wrong number of edges in the graph\");\n }\n\n }", "public void linkRoom(Map linkMap){\n\n\n\t\t//complete the link\n\t\tPoint stair1 = STAIR_POINT;\n\t\tPoint stair2;\n\n\n\t\tRectangle[] rooms2 = linkMap.getRooms();\n\t\tstair2 = MapRand.randPoint(MapRand.innerRectangle(rooms2[MapRand.randInt(rooms2.length -1)]));\n\n\t\t//ensure staircase gets a free space\n\t\twhile ((linkMap.getTile(stair2.x, stair2.y).getItemCount() > 0) || (linkMap.getTile(stair2.x, stair2.y).isOccupied() == true)){\n\t\t\tstair2 = MapRand.randPoint(MapRand.innerRectangle(rooms2[MapRand.randInt(rooms2.length -1)]));\n\t\t}\n\n\n\t\t//create the special staircase link\n\t\tthis.map.setTile(stair1.x, stair1.y, new StairTile(this.map, linkMap, stair1, stair2, true));\n\t\tlinkMap.setTile(stair2.x, stair2.y, new StairTile(linkMap, this.map, stair2, stair1));\n\n\t}", "public abstract void disconnectInDirection(N n1, N n2);", "public void failure(ActionInvocation actionInvocation, UpnpResponse upnpResponse, String s) {\n/* 152 */ UPNPService.logger.warning(\"unable to map port for \" + port.toString());\n/* 153 */ port.addException(port.toString(), new Exception(s));\n/* */ }", "@Test\n @SuppressWarnings(\"JUnitTestMethodWithNoAssertions\")\n public void testTriangleToOsmAndGraphhopper() throws RoutingNetworkStoreException, IOException\n {\n\n }", "public void sendHellos() {\n\t\tint lnk = 0;\n\t\tboolean isChanged = false;\n\t\tfor (LinkInfo lnkInfo : lnkVec) {\n\n\t\t\t// if no reply to the last hello, subtract 1 from\n\t\t\t// link status if it's not already 0\n\t\t\tif (!lnkInfo.gotReply){\n\t\t\t\tif (lnkInfo.helloState != 0){\n\t\t\t\t\tlnkInfo.helloState--;\n\t\t\t\t}\t\n\n\t\t\t\t// go through the routes to check routes \n\t\t\t\t// that contain the failed link\n\t\t\t\telse {\n\t\t\t\t\tfor (Route rte : rteTbl){\n\t\t\t\t\t\tif (rte.path.contains(lnk)){\n\t\t\t\t\t\t\tif (rte.valid != false){\n\t\t\t\t\t\t\t\tisChanged = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trte.valid = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// print routing table if debug is enabled \n\t\t\t// and valid field of route is changed\n\t\t\tif (debug > 0 && isChanged){\n\t\t\t\tprintTable();\n\t\t\t}\n\n\t\t\t// send link failure advertisement if enFA is enabled\n\t\t\t// and valid field of route is changed\n\t\t\tif (enFA && isChanged){\n\t\t\t\tsendFailureAdvert(lnk);\n\t\t\t\tisChanged = false;\n\t\t\t}\n\n\t\t\t// send new hello, after setting gotReply to false\n\t\t\tlnkInfo.gotReply = false;\n\t\t\tPacket p = new Packet();\n\t\t\tp.protocol = 2;\n\t\t\tp.ttl = 100;\n\t\t\tp.srcAdr = myIp;\n\t\t\tp.destAdr = lnkInfo.peerIp;\n\t\t\tp.payload = String.format(\"RPv0\\ntype: hello\\n\"\n\t\t\t\t\t+ \"timestamp: %.3f \\n\",\n\t\t\t\t\tnow);\n\t\t\tfwdr.sendPkt(p, lnk);\n\t\t}\n\t}", "void nodeFailedToStart(Exception e);", "public void connect(ASNode node) {\n\n\t\t/* Create new paths for this node and other node */\n\t\tArrayList<ASNode> newPath1 = new ArrayList<ASNode>();\n\t\tArrayList<ASNode> newPath2 = new ArrayList<ASNode>();\n\t\tnewPath1.add(node);\n\t\tnewPath2.add(this);\n\t\t/* Adds the Node to each others maps to get ready for exchange */\n\t\tMap<Integer, ArrayList<ASNode>> map1 = addNodeToTable(this, paths);\n\t\tMap<Integer, ArrayList<ASNode>> map2 = addNodeToTable(node,\n\t\t\t\tnode.getPaths());\n\n\t\t/* put new path into this node */\n\t\tpaths.put(node.getASNum(), newPath1);\n\t\tmap1.put(this.ASNum, newPath2);\n\t\t/* put new path into other node */\n\t\tnode.setPathsCombine(map1);\n\t\t/* exchange maps and see if any path if shorter, if shorter than adjust */\n\t\tsetPathsCombine(map2);\n\t\t/* Add each other as neighbors */\n\t\tneighbors.add(node);\n\t\tnode.getNeighbors().add(this);\n\t\t\n\t\t/* Announce each other's paths */\n\t\tnode.announce(this);\n\t\tannounce(node);\n\t\t\n\t\t// Exchange IP tables\n\t\tfor (PrefixPair p : IPTable.keySet()) {\n\t\t\tNextPair n = new NextPair(this, IPTable.get(p).length);\n\t\t\tannounceIP(p, n);\n\t\t}\n\t\tfor (PrefixPair p : node.IPTable.keySet()) {\n\t\t\tNextPair n = new NextPair(node, node.IPTable.get(p).length);\n\t\t\tnode.announceIP(p, n);\n\t\t}\n\t\tfor (PrefixPair p : IPTable.keySet()) {\n\t\t\tNextPair n = new NextPair(this, IPTable.get(p).length);\n\t\t\tannounceIP(p, n);\n\t\t}\n\t}", "protected void mutateAddLink() {\n\t\t// Make sure network is not fully connected\n\n\t\t// Sum number of connections\n\t\tint totalconnections = numGenes();\n\n\t\t// Find number of each type of node\n\t\tint in = population.numInputs;\n\t\tint out = population.numOutputs;\n\t\tint hid = numNodes() - (in + out);\n\n\t\t// Find the number of possible connections.\n\t\t// Links cannot end with an input\n\t\tint fullyconnected = 0;\n\t\tfullyconnected = (in + out + hid) * (out + hid);\n\n\t\tif (totalconnections == fullyconnected)\n\t\t\treturn;\n\n\t\t// Pick 2 nodes for a new connection and submit it\n\t\tNNode randomstart;\n\t\tNNode randomend;\n\t\tdo {\n\t\t\trandomstart = getRandomNode();\n\t\t\trandomend = getRandomNode();\n\t\t} while (randomend.type == NNode.INPUT\n\t\t\t\t|| hasConnection(randomstart.ID, randomend.ID));\n\n\t\tint newgeneinno = population\n\t\t\t\t.getInnovation(randomstart.ID, randomend.ID);\n\t\tGene newgene = new Gene(newgeneinno, randomstart.ID, randomend.ID,\n\t\t\t\tBraincraft.randomWeight(), true);\n\t\tpopulation.registerGene(newgene);\n\t\tsubmitNewGene(newgene);\n\n\t\tif (Braincraft.gatherStats)\n\t\t\tBraincraft.genetics.add(\"link creation mutation \" + ID + \" \"\n\t\t\t\t\t+ newgene.innovation + \" \" + randomstart.ID + \" \"\n\t\t\t\t\t+ randomend.ID);\n\t}", "@DisplayName(\"Add undirected edge\")\n @Test\n public void testAddEdgeUndirected() {\n graph.addEdge(new Edge(3, 4));\n List<Integer> l0 = new ArrayList<>();\n l0.add(0);\n List<Integer> l1 = new ArrayList<>();\n l1.add(4);\n Assertions.assertEquals(l0.get(0), graph.getNeighbours(4).get(0));\n Assertions.assertEquals(l1.get(0), graph.getNeighbours(0).get(0));\n }", "@Test\n public void tr0()\n {\n Graph g = new Graph(1);\n Set<Integer> nodes = new TreeSet<Integer>();\n nodes.add(0);\n assertTrue(g.reachable(nodes, nodes));\n }", "void onConnectToNetByIPReject();", "private void edgeDown(String source, String dest) {\r\n\t\tVertex v = vertexMap.get(source);\r\n\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\tif (edge.getDestination().equals(dest))\r\n\t\t\t\tedge.setStatus(false);\r\n\t\t}\r\n\t}", "@DisplayName(\"Test if the graph is directed\")\n @Test\n public void testIsDirected() {\n Assertions.assertFalse(graph.isDirected());\n }", "@Test\n\tpublic void targetsTest() {\n\t\tgraph.addVertex(A);\n\t\tgraph.addVertex(B);\n\t\tgraph.addVertex(C);\n\t\tgraph.addVertex(D);\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(A);\n\t\tvertices.add(B);\n\t\tedge_0.addVertices(vertices);\n\t\tgraph.addEdge(edge_0);\n\t\tassertTrue(graph.targets(A).keySet().contains(B));\n\t\tassertTrue(graph.targets(A).get(B) == 1);\n\t}", "private void checkFlowFromTo(\n NodeAdaptor source, NodeAdaptor target) {\n if (source.isChoreographyActivity() && target.isChoreographyActivity()) {\n Collection<NodeAdaptor> nodesWithoutParticipation =\n getFinalTasksWithoutParticipant(source,\n ((ChoreographyNodeAdaptor) target).getActiveParticipant());\n if (!nodesWithoutParticipation.isEmpty()) {\n validator.addMessage(\n \"initiatorOfChoreographyActivityNotParticipantInPriorActivity\",\n target, nodesWithoutParticipation);\n }\n }\n }", "@Test\n public void tr4()\n {\n Graph graph = new Graph(2);\n assertThrows(IllegalArgumentException.class, () -> graph.reachable(null, null));\n }", "public boolean dependentOn(PDGNode node1, PDGNode node2);", "private static boolean edgeConnectsTwoMachines(int rootOne, int rootTwo, Set<Integer> machines,\n\t\t\tSet<Integer> rootsLeadingToMachines) {\n\t\tboolean rootOne_leadsToMachine = rootsLeadingToMachines.contains(rootOne);\n\t\tboolean rootTwo_leadsToMachine = rootsLeadingToMachines.contains(rootTwo);\n\t\tboolean rootOne_isMachine = machines.contains(rootOne);\n\t\tboolean rootTwo_isMachine = machines.contains(rootTwo);\n\n\t\treturn (rootOne_leadsToMachine || rootOne_isMachine) && (rootTwo_leadsToMachine || rootTwo_isMachine);\n\t}", "public void connect(int a, int b) {\n\t\tint rootA = find(a);\n\t\tint rootB = find(b);\n\t\tif (rootA != rootB) {\n\t\t\tgraph[rootA] = rootB;\n\t\t}\n }", "public boolean validateConnection(CellStorage from, CellStorage to) {\r\n\t\tHashMapConnectedNodes nodeFrom = null;\r\n\t\tHashMapConnectedNodes nodeTo = null;\r\n\t\tif (hshMConnectedNodes.size() == 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor (int counter = 0; counter < hshMConnectedNodes.size(); counter++) {\r\n\t\t\tif (hshMConnectedNodes.get(counter).searchNode(from))\r\n\t\t\t\tnodeFrom = hshMConnectedNodes.get(counter);\r\n\t\t\tif (hshMConnectedNodes.get(counter).searchNode(to))\r\n\t\t\t\tnodeTo = hshMConnectedNodes.get(counter);\r\n\t\t}\r\n\t\tif (nodeFrom == null || nodeTo == null)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "public LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;", "public void fail( String reason );", "@Test\r\n public void graphTest(){\r\n DirectedGraph test= new DirectedGraph();\r\n\r\n //create shops and add to nodes list\r\n Shop one=new Shop(1,new Location(10,10));\r\n Shop two =new Shop(2,new Location(20,20));\r\n Shop three=new Shop(3,new Location(30,30));\r\n Shop four=new Shop(4,new Location(40,40));\r\n assertEquals(test.addNode(one),true);\r\n assertEquals(test.addNode(two),true);\r\n assertEquals(test.addNode(three),true);\r\n assertEquals(test.addNode(four),true);\r\n\r\n //try to add a duplicate\r\n assertEquals(test.addNode(new Shop(1,new Location(10,10))),false);\r\n\r\n //add edge\r\n assertEquals(test.addEdge(one,two,5),true);\r\n assertEquals(test.addEdge(one,three,2),true);\r\n assertEquals(test.addEdge(two,three,6),true);\r\n assertEquals(test.addEdge(four,two,8),true);\r\n\r\n //obtain a facility from the graph\r\n assertEquals(test.getFacility(one),one);\r\n\r\n //try to obtain a non-existent facility \r\n assertEquals(test.getFacility(new Shop(12,new Location(50,50))),null);\r\n\r\n //test closest neighbor \r\n assertEquals(test.returnClosestNeighbor(one),three);\r\n assertEquals(test.returnClosestNeighbor(two),one);\r\n }" ]
[ "0.6568132", "0.6072493", "0.59869653", "0.59828216", "0.59185946", "0.5917072", "0.5883362", "0.5851464", "0.5842917", "0.58123314", "0.57594395", "0.5683459", "0.56776583", "0.5647066", "0.5624526", "0.5598129", "0.5562463", "0.55364263", "0.55252993", "0.55020857", "0.548206", "0.545683", "0.5454312", "0.5446923", "0.54187936", "0.541825", "0.54169446", "0.5391998", "0.538842", "0.53850096", "0.5383768", "0.53624964", "0.53548646", "0.5346054", "0.53264564", "0.53259295", "0.53164285", "0.52981246", "0.52900225", "0.52816415", "0.52771366", "0.52687407", "0.5266271", "0.52625227", "0.5258265", "0.5250714", "0.52394396", "0.5239036", "0.52346146", "0.5231222", "0.5217913", "0.5203775", "0.5200523", "0.51985747", "0.5196855", "0.5192859", "0.5185151", "0.5151617", "0.5149367", "0.5147084", "0.51456416", "0.51419353", "0.5101808", "0.5094366", "0.50888634", "0.50806", "0.50766253", "0.5069369", "0.50682265", "0.5065407", "0.5050641", "0.503497", "0.50297534", "0.50277084", "0.5022278", "0.5022022", "0.5020056", "0.5011799", "0.50072384", "0.50016594", "0.4990145", "0.4984062", "0.497201", "0.49715936", "0.4971096", "0.49631557", "0.49585629", "0.49538708", "0.4953843", "0.494919", "0.4949159", "0.4944321", "0.49407163", "0.49356455", "0.49240783", "0.49189633", "0.49150866", "0.49144545", "0.49022916", "0.4900644" ]
0.7903352
0
/ Change the cost of a certain link in the network
public void changeCost(Node n1, Node n2, int cost) { n1.getDistanceVector().put(n2, cost); n2.getDistanceVector().put(n1, cost); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLinkCost(long linkCost) {\n if ((LinkCost - linkCost) > 100) {\n LinkCost = linkCost;\n } else {\n LinkCost = (linkCost*2 + getLinkCost()*8)/10;\n }\n }", "public void forceLinkCost(long linkCost) {\n LinkCost = linkCost;\n }", "public void editLink(int id, int cost) {\n\t\tfor (Link l : links) {\n\t\t\tif(l.getDestination() == id) {\n\t\t\t\tl.setCost(cost);\n\t\t\t}\n\t\t}\n\t}", "public double getCost(ReadOnlyProperty<Double> linkCost){\r\n\t\tdouble travelCost = 0;\r\n\t\tfor(int l: getLinks()){\r\n\t\t\ttravelCost += getLinkProbability(l) * linkCost.get(l);\r\n\t\t}\r\n\t\treturn travelCost;\r\n\t}", "private double computeCost(Link link, boolean ignorePenalties) {\n \t\tdouble result = link.getLength() / (link.getMaxSpeed_r() / 3.6);\r\n \t\tif (ignorePenalties)\r\n \t\t\treturn result;\r\n \t\tDouble penalty = penalties.get(link);\r\n \t\tif (null != penalty)\r\n \t\t\tresult *= (1 + penalty);\r\n \t\treturn result;\r\n \t}", "public void updateBestLink(int newbestCost, Station newbestStation, Neighbor thisNeighbor) {\r\n\t\t\tstationRef = thisNeighbor.stationRef;\r\n\t\t\tcost = thisNeighbor.cost;\r\n\t\t\tprice = thisNeighbor.price;\r\n\r\n\t\t\tviaStation = newbestStation;\r\n\t\t\ttotalCost = newbestCost;\r\n\t\t}", "double setCost(double cost);", "void setCost(double cost);", "@Override\r\n\tpublic void setCost(double newCost) {\n\r\n\t}", "double setEstimatedCost(double cost);", "protected void setCost(double cost) \r\n\t{\tthis.cost = cost;\t}", "public void setEdgeCost(int from, int to, double newCost) {\n //make sure the nodes given are valid\n assert (from < nodeVector.size()) && (to < nodeVector.size()) :\n \"<SparseGraph::SetEdgeCost>: invalid index\";\n\n //visit each neighbour and erase any edges leading to this node\n ListIterator<edge_type> it = edgeListVector.get(from).listIterator();\n while (it.hasNext()) {\n edge_type curEdge = it.next();\n if (curEdge.getTo() == to) {\n curEdge.setCost(newCost);\n break;\n }\n }\n }", "public void setCost(double cost){\n this.cost = cost;\n }", "public long getLinkCost() {\n return LinkCost;\n }", "public void setCost(double cost) {\r\n this.cost = cost;\r\n }", "NodeConnection(Node linkNode, int linkCost)\n\t{\n\t\tm_nTravelCost = linkCost;\n\t\tm_linkedNode = linkNode;\n\t}", "public void setCost(double value) {\n this.cost = value;\n }", "public void setCost(double cost) {\n this.cost = cost;\n }", "private void setCost(int u, double d) {\n\t\tgetVertex(u).setCost(d);\n\t}", "public void setCost(final float newCost) {\r\n\t\tthis.cost = new Float(newCost);\r\n\t}", "public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }", "public void setCost(int c) {\r\n this.cost = c;\r\n }", "public void setCost(double cost) {\n\t\tthis.cost = cost;\n\t}", "public void setCost(int cost) {\n \t\tthis.cost = cost;\n \t}", "public void setCost(double cost) {\n\n\t\tthis.cost = cost;\n\t}", "void changeCost(ArrayList<CostsChanges> changes);", "public abstract float getCost(AStarNode paramAStarNode);", "@Override\n\tprotected void setCost(double cst) {\n\t\t\n\t}", "public void setCost(Integer cost) {\n this.cost = cost;\n }", "public void setCost(Number cost)\r\n {\r\n m_cost = cost;\r\n }", "public void setCost(int cost) {\n\t\tthis.cost = cost;\n\t}", "public void set_cost(int value) {\n setUIntElement(offsetBits_cost(), 16, value);\n }", "public abstract float getEstimatedCost(AStarNode paramAStarNode);", "protected void mutateAddLink() {\n\t\t// Make sure network is not fully connected\n\n\t\t// Sum number of connections\n\t\tint totalconnections = numGenes();\n\n\t\t// Find number of each type of node\n\t\tint in = population.numInputs;\n\t\tint out = population.numOutputs;\n\t\tint hid = numNodes() - (in + out);\n\n\t\t// Find the number of possible connections.\n\t\t// Links cannot end with an input\n\t\tint fullyconnected = 0;\n\t\tfullyconnected = (in + out + hid) * (out + hid);\n\n\t\tif (totalconnections == fullyconnected)\n\t\t\treturn;\n\n\t\t// Pick 2 nodes for a new connection and submit it\n\t\tNNode randomstart;\n\t\tNNode randomend;\n\t\tdo {\n\t\t\trandomstart = getRandomNode();\n\t\t\trandomend = getRandomNode();\n\t\t} while (randomend.type == NNode.INPUT\n\t\t\t\t|| hasConnection(randomstart.ID, randomend.ID));\n\n\t\tint newgeneinno = population\n\t\t\t\t.getInnovation(randomstart.ID, randomend.ID);\n\t\tGene newgene = new Gene(newgeneinno, randomstart.ID, randomend.ID,\n\t\t\t\tBraincraft.randomWeight(), true);\n\t\tpopulation.registerGene(newgene);\n\t\tsubmitNewGene(newgene);\n\n\t\tif (Braincraft.gatherStats)\n\t\t\tBraincraft.genetics.add(\"link creation mutation \" + ID + \" \"\n\t\t\t\t\t+ newgene.innovation + \" \" + randomstart.ID + \" \"\n\t\t\t\t\t+ randomend.ID);\n\t}", "public void setCost(Integer cost) {\r\n\t\tthis.cost = cost;\r\n\t}", "public void setNodeALLEdages(int from, double newCost){\n for(NavNode n1 :getNodeList(from)){\n setEdgeCost(from,n1.getIndex(),newCost);\n setEdgeCost(n1.getIndex(),from,newCost);\n }\n }", "public void setCost(double cost) {\n /**\n * @return sets the cost of the Ice Cream with the double argument\n */\n this.cost = cost;\n }", "public void add_cost(float cost){\n costs[next_index] = cost;\n next_index++;\n }", "Integer cost(PathFindingNode node, PathFindingNode neighbour);", "@Override\r\n\tpublic void addToCost() {\n\t\t\r\n\t}", "public void addLinkCapacity(NodePair link, Double bwOccupation){\n\t\tif(this.linkBandwidth.get(link)!=null){\n\t\t\tthis.linkBandwidth.put(link, this.linkBandwidth.get(link)+bwOccupation);\n\t\t}else{\n\t\t\tthis.linkBandwidth.put(link, bwOccupation);\n\t\t}\n\t}", "public void setLinkCapacityOverOneNeighbor(int neighbor, double bandwidthTolerance) {\n HashMap<Double, Double> bandwidthToleranceToLinkCapacities = this.linkCapacities.get(neighbor);\n if (bandwidthToleranceToLinkCapacities == null) {\n bandwidthToleranceToLinkCapacities = new HashMap<>();\n }\n Double trafficFactor = this.getTrafficOverLinkBetween(neighbor);\n bandwidthToleranceToLinkCapacities.put(bandwidthTolerance, trafficFactor * bandwidthTolerance);\n this.linkCapacities.put(neighbor, bandwidthToleranceToLinkCapacities);\n }", "public void updateEntry(InetAddress destNtwk, String desthostname, RoutingTableKey nextipHost, int nexthop, Port p, int cost, int myPort) {\r\n synchronized (lockRoutingTable) {\r\n RoutingTableKey ipHost = new RoutingTableKey(destNtwk, desthostname);\r\n // RoutingTableKey nextipHost = new RoutingTableKey(nextdestNtwk, nextdesthostname);\r\n this.myObjDate = LocalTime.now();\r\n this.routingEntries.get(ipHost).setCost(cost);\r\n this.routingEntries.get(ipHost).setNextipHost(nextipHost);\r\n this.routingEntries.get(ipHost).setPortclass(p);\r\n this.routingEntries.get(ipHost).setNextHop(nexthop);\r\n this.routingEntries.get(ipHost).setPort(myPort);\r\n }\r\n }", "@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}", "@Override\n public void setCost( double cost ) {\n throw new UnsupportedOperationException( \"Not supported yet.\" );\n }", "public void update(NetworkNode networkNode);", "double getCost();", "double getCost();", "private static NodeWithWeightDistanceTotal updateNextNodeAlgo2(Node nextNode, Edge edge, Integer weightDistanceTotal) {\n if (edge.weight + edge.getDestination().getDistanceToZ() < weightDistanceTotal) {\n weightDistanceTotal = (edge.weight + edge.getDestination().getDistanceToZ());\n return new NodeWithWeightDistanceTotal(edge.destination, weightDistanceTotal);\n // System.out.println(nextNode.getName());\n }\n return new NodeWithWeightDistanceTotal(nextNode, weightDistanceTotal);\n }", "public void changingNeighbor() {\n }", "public static double computeAccidentCosts(double demand, Link link, ArrayList<Integer> roadType){\n\n\t\t// in EUR per 1000 vehicle-km\n\t\tdouble costRateTable[][][] = {\n\t\t\t\t\n\t\t\t/*\tposition 1\n\t\t\t * \t\tcolumn 0: 'Außerhalb von bebauten Gebiet, Kfz-Straße'\n\t\t\t * \t\tcolumn 1: 'Innerhalb von bebauten Gebiet, Kfz-Straße'\n\t\t\t * \t\tcolumn 2: 'Außerhalb von bebauten Gebiet'\n\t\t\t * \t\tcolumn 3: 'Innerhalb von bebauten Gebiet'\n\t\t\t * \n\t\t\t * \tposition 2: number of lanes\n\t\t\t */\n\t\t\t\n\t\t\t// 'planfrei': positon 0 --> 0\n\t\t\t{\n\t\t\t\t{ 0 , 0 , 0 , 0 }, // 1 lane\n\t\t\t\t{ 23.165 , 23.165 , 0 , 0 }, // 2 lane\n\t\t\t\t{ 23.79 , 23.79 , 0 , 0 }, // 3 lane\n\t\t\t\t{ 23.79 , 23.79 , 0 , 0 } // 4 lane\n\t\t\t},\n\t\t\t// 'plangleich': positon 0 --> 1\n\t\t\t{\n\t\t\t\t{ 61.785 , 101.2 , 61.785 , 101.2 }, // 1 lane\n\t\t\t\t{ 31.63 , 101.53 , 31.63 , 101.53 }, // 2 lane\n\t\t\t\t{ 37.84 , 82.62 , 34.735 , 101.53 }, // 3 lane\n\t\t\t\t{ 0 , 0 , 0 , 101.53 } // 4 lane\n\t\t\t},\n\t\t\t// tunnel: positon 0 --> 2\n\t\t\t{\n\t\t\t\t{ 9.56 , 15.09 , 9.56 , 15.09 }, // 1 lane\n\t\t\t\t{ 11.735 , 14.67425 , 0 , 17.57 }, // 2 lane\n\t\t\t\t{ 11.735 , 11.735 , 0 , 17.57 }, // 3 lane\n\t\t\t\t{ 9.11 , 9.11 , 0 , 17.57 } // 4 lane\n\t\t\t}\t\t\n\t\t};\n\t\t\n\t\tdouble costRate = costRateTable[roadType.get(0)][roadType.get(2)-1][roadType.get(1)]; \n\t\tif (costRate == 0) {\n\t\t\tlog.warn(\"Accident cost rate for link \" + link.getId().toString() + \" is 0. (roadtype: \" + roadType.toString() + \")\" );\n\t\t}\n\t\t\n\t\tdouble vehicleKm = demand * (link.getLength() / 1000.);\n\t\t\n\t\tdouble accidentCosts = costRate * (vehicleKm / 1000.);\n\t\t\n\t\treturn accidentCosts;\t\t\n\t}", "@Override\n\tpublic double cost() {\n\t\treturn 10000;\n\t}", "public static void editLoanCost() {\n //We can only edit loan cost on Videos.\n char[] type = {'v'};\n String oldID = getExistingID(\"Video\", type);\n\n //Validate ID\n if (oldID != null) {\n //Run input validation\n String[] choiceOptions = {\"4\", \"6\"};\n int newLoan = Integer.parseInt(receiveStringInput(\"Enter new Loan Fee:\", choiceOptions, true, 1));\n try {\n //Replace the loan fee\n inv.replaceLoan(oldID, newLoan);\n } catch (IncorrectDetailsException e) {\n System.out.println(Utilities.ERROR_MESSAGE + \" Adding failed due to \" + e + \" with error message: \\n\" + e.getMessage());\n }\n } else System.out.println(Utilities.INFORMATION_MESSAGE + \"Incorrect ID, nothing was changed.\");\n }", "private double actionCost(StarNode node) {\n StarNode previous = node.getPreviousNode();\n double xDist = previous.getXCoord() - node.getXCoord();\n double yDist = previous.getYCoord() - node.getYCoord();\n double totalDist = Math.sqrt(xDist*xDist + yDist*yDist);\n node.setG(previous.getG() + totalDist);\n return node.getG();\n }", "@Override\n\tpublic int cost() {\n\t\treturn 5000;\n\t}", "int getCost();", "int getCost();", "int getCost();", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Test\n public void worksWithTurnCosts() {\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 4).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(0, 3).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(3, 4).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(4, 5).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(5, 2).setDistance(1).set(speedEnc, 10, 10);\n\n setRestriction(0, 3, 4);\n setTurnCost(4, 5, 2, 6);\n\n // due to the restrictions we have to take the expensive path with turn costs\n assertPath(calcPath(0, 2, 0, 6), 6.4, 4, 6400, nodes(0, 1, 4, 5, 2));\n // enforcing going south from node 0 yields no path, because of the restricted turn 0->3->4\n assertNotFound(calcPath(0, 2, 3, ANY_EDGE));\n // without the restriction its possible\n assertPath(calcPath(0, 2, ANY_EDGE, ANY_EDGE), 0.2, 2, 200, nodes(0, 1, 2));\n }", "@Override\n public void calculateCost(final ResourceAllocation allocation) {\n final IReservable reservable = this.resourceDataSource.get(allocation.getResourceId());\n\n final double units = getCostUnits(allocation, reservable);\n\n // check on external ??\n final double costPerUnit = reservable.getCostPerUnit();\n final int quantity = allocation.getQuantity();\n // calculate cost and round to 2 decimals\n final double cost = DataSourceUtils.round2(costPerUnit * units * quantity);\n\n allocation.setCost(cost);\n }", "@Override\n public double cost()\n {\n return this.price * this.number;\n }", "public void calculateCost(AStarNode parentNode, AStarNode endNode)\n \t{\n \t\tthis.costFromStart = parentNode.getCostFromStart() + node.getCost();\n \t\tthis.heuristic = ModelUtils.INSTANCE.getDistance(this.getPosition(), endNode.getPosition());\n \t\tthis.totalCost = this.costFromStart + this.heuristic;\n \t\tthis.parent = parentNode;\n \t}", "public synchronized void updateBotTrafficOverOneNeighbor(int neighbor, double amountOfTraffic) {\n this.botTraffic.put(neighbor, this.botTraffic.get(neighbor) + amountOfTraffic);\n }", "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", "public void setLinkCapacity(int linkCapacity) {\n LinkCapacity = linkCapacity;\n }", "public void changePrice(TripDTO trip, BigDecimal price);", "public void buyhouse(int cost){\n\t\n}", "@Override\n\tpublic void updateTotalCost(String card, double cost) {\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = DbcpConnectionPool.getConnection();\n\t\t\tCallableStatement cstmt = conn.prepareCall(\"{call Member_updateTotalCost(?,?)}\");\n\t\t\tcstmt.setString(1, card);\n\t\t\tcstmt.setDouble(2, cost);\n\t\t\tcstmt.executeUpdate();\n\t\t\tcstmt.close();\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void pay(int cost) {\r\n\t\tmoney -= cost;\r\n\t}", "public int getCost(int newID) {\n\t\tint idx = routingTable.get(0).indexOf(newID);\n\t\tif (idx > -1) {\n\t\t\treturn routingTable.get(1).get(idx);\n\t\t} else {\n\t\t\tSystem.out.println(\"Error\");\n\t\t\treturn 0;\n\t\t}\n\t}", "private void updateDistance(String s1, String s2)\n\t{\n\t\tString name = EdgeUtil.formatEdge(s1, s2);\n\t\tint weightOld = this.listNode.get(s2).getDistanceFromOrigin();\n\t\tint weightNew = this.listNode.get(s1).getDistanceFromOrigin() + this.listEdge.get(name).getWeight();\n\t\t\n\t\tif(weightOld > weightNew) {\n\t\t\tthis.listNode.get(s2).setDistanceFromOrigin(weightNew);\n\t\t\tthis.listNode.get(s2).setPrecedent(s1);\n\t\t}\n\t}", "public void addConnection(Node linkedNode, int linkCost)\n\t{\n\t\t// create the connectoin and link this node up\n\t\tm_vConnectedNodes.add(new NodeConnection(linkedNode, linkCost));\n\t}", "@Override\n\tpublic void setVehicleCost(double van, double railway, double airplane) {\n\t\tconstantPO.setVanCost(van);\n\t\tconstantPO.setRailwayCost(railway);\n\t\tconstantPO.setAirplaneCost(airplane);\n\t}", "public abstract double getCost();", "@Override\n public long cost() {\n return 100;\n }", "BlockChainLink getClaimerLink(BlockChainLink link, TransactionInput in);", "@Override\r\n\tpublic int cost() {\n\t\treturn b1.cost() + 1;\r\n\t}", "public void setCost(int[] cost){\n\t\tthis.cost = cost;\n\t}", "public boolean setCost(int newCost)\n {\n boolean valid = false;\n if (newCost > 0)\n {\n cost = newCost;\n valid = true;\n }\n return valid;\n }", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "public abstract double getLinkProbability(int linkId);", "protected abstract double getDefaultCost();", "private void updateNetworkSpeed() {\n Message obtain = Message.obtain();\n obtain.what = 200000;\n long j = 0;\n if (isDemoOrDrive() || this.mDisabled || !this.mIsNetworkConnected) {\n obtain.arg1 = 0;\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n return;\n }\n long currentTimeMillis = System.currentTimeMillis();\n long totalByte = getTotalByte();\n if (totalByte == 0) {\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n totalByte = getTotalByte();\n }\n long j2 = this.mLastTime;\n if (j2 != 0 && currentTimeMillis > j2) {\n long j3 = this.mTotalBytes;\n if (!(j3 == 0 || totalByte == 0 || totalByte <= j3)) {\n j = ((totalByte - j3) * 1000) / (currentTimeMillis - j2);\n }\n }\n obtain.arg1 = 1;\n obtain.obj = Long.valueOf(j);\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = currentTimeMillis;\n this.mTotalBytes = totalByte;\n postUpdateNetworkSpeedDelay((long) this.mNetworkUpdateInterval);\n }", "public abstract double cost(List<Drink> drinks, Double originalPrice, String pattern);", "private RtnTable processDvr(DvrPacket pkt) {\n\t\tif (pkt.sourceid == pkt.SERVER){\n\t\t\t\n\t\t\tlinkcost = pkt.mincost;\n\t\t\tneighbors = new boolean[linkcost.length];\n\t\t\t\n\t\t\tfor (int i = 0; i < linkcost.length; i++){\n\t\t\t\tif (i != this.routerId && linkcost[i] != DvrPacket.INFINITY){\n\t\t\t\t\tneighbors[i] = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}else{\n\t\t\tmincost[pkt.sourceid] = pkt.mincost;\n\t\t} ////otherwise from other router and we update mincost\n\n\t\t//update the forward table\n\t\tfor (int i = 0; i < nexthop.length; i++){\n\t\t\tint distance;\n\t\t\tif (i == this.routerId){\n\t\t\t\tdistance = 0;\n\t\t\t}\n\t\t\telse if(nexthop[i] == this.routerId){\n\t\t\t\tdistance = DvrPacket.INFINITY;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdistance = mincost[this.routerId][i];\n\t\t\t}\n\t\t\t//Bellman-Ford algorithm\n\t\t\tfor (int j = 0; j < mincost.length; j++){\n\t\t\t\tif ((mincost[j][i] + linkcost[j]) < distance) {\n\t\t\t\t\tdistance = mincost[j][i] + linkcost[j];\n\t\t\t\t\tnexthop[i] = j;\n\t\t\t\t\tmincost[this.routerId][i] = distance;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tRtnTable table1 = new RtnTable(mincost[this.routerId], nexthop);\n\t\treturn table1;\n\t}", "abstract float linkSize(String link);", "public Cost(float c) {\r\n defaultCost = c;\r\n }", "public abstract int getCost();", "public abstract int getCost();", "public abstract int getCost();", "public final void changeCost(final ArrayList<CostsChanges> changes) {\n for (CostsChanges change : changes) {\n if (change.getId() == this.getId()) {\n setInitialInfrastructureCost(change.getInfrastructureCost());\n }\n }\n }", "public void setCost(BigDecimal cost) {\r\n this.cost = cost;\r\n }", "public void addCost(int amount) {\n\t\tcost = amount;\n\t}", "public void alter(){\n\t\t//Alter the network to show change\n\t\t//Removes the connection between Nodes 2-3 and 4-3\n\t\tnodes.get(\"192.168.0.2\").delPort(0);\n\t\tnodes.get(\"192.168.0.4\").delPort(1);\n\t}", "public void updateWeightEdge(String srcLabel, String tarLabel, int weight) {\n // Implement me!\n\n String e = srcLabel + tarLabel;\n if (indexOf(e, edges) < 0) {\n return;\n }\n\n\n int srcInt = indexOf(srcLabel, vertices);\n int tarInt = indexOf(tarLabel, vertices);\n weights[srcInt][edges.get(e)] = weight;\n weights[tarInt][edges.get(e)] = weight * (-1);\n\n if (weight == 0) {\n edges.remove(e);\n return;\n }\n\n\n\n }", "public void setCost(int maxTemp) {\n\t\tthis.cost = 900 + (200 * (Math.pow( 0.7, ((double)maxTemp/5.0) )));\n\t}", "private void doChargeSet(int newSetting)\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n CHARGE_NODE_HTML_DATA,\r\n CONTROL_URL,\r\n SN_HOST,\r\n makeChargeControl(newSetting),\r\n cookieData,\r\n false,\r\n token,\r\n secret ) ); \r\n }", "float getCostReduction();", "public void setPostCost(int newPostCost){\n post.setCost(newPostCost);\n }" ]
[ "0.7428536", "0.68762916", "0.67884076", "0.6700589", "0.66541487", "0.6614239", "0.6599276", "0.65935564", "0.6340599", "0.6269509", "0.62086624", "0.617704", "0.614789", "0.60475636", "0.6004043", "0.59982413", "0.5995757", "0.5984476", "0.59633505", "0.5948951", "0.5896549", "0.5872014", "0.5861761", "0.5827125", "0.5792528", "0.5776824", "0.5775761", "0.57631856", "0.57528013", "0.57473785", "0.57437384", "0.5729757", "0.5726474", "0.5723457", "0.56817013", "0.5650339", "0.56487787", "0.56357974", "0.5617714", "0.56152123", "0.5591471", "0.55441546", "0.55381876", "0.55347884", "0.55147046", "0.550089", "0.5493282", "0.5493282", "0.5478418", "0.5470149", "0.5436377", "0.54276055", "0.5419085", "0.5417723", "0.5405465", "0.54040736", "0.54040736", "0.54040736", "0.54024976", "0.5395932", "0.5363463", "0.53626215", "0.53602386", "0.5339556", "0.53394055", "0.532944", "0.5324859", "0.53017867", "0.5283895", "0.5277914", "0.52683985", "0.52676964", "0.5260606", "0.5239124", "0.5231014", "0.5226683", "0.5224708", "0.5224386", "0.5217451", "0.52115387", "0.51990193", "0.51983196", "0.5187055", "0.51776946", "0.51720506", "0.516959", "0.51691705", "0.5163632", "0.5143802", "0.5143802", "0.5143802", "0.514344", "0.51364315", "0.5136192", "0.5129389", "0.51283646", "0.5127607", "0.5123816", "0.5113701", "0.5110187" ]
0.6584787
8
/ Print the routing tables of all nodes in the network
public void printRoutingTables(HashMap<String, Node> nodes) { for (Node node : nodes.values()) { System.out.println("Node " + node.getName() + ":"); node.printRoutingTable(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printTable() {\n\t\tString s = String.format(\"Routing table (%.3f)\\n\"\n\t\t\t\t+ \"%10s %10s %8s %5s %10s \\t path\\n\", now, \"prefix\", \n\t\t\t\t\"timestamp\", \"cost\",\"link\", \"VLD/INVLD\");\n\t\tfor (Route rte : rteTbl) {\n\t\t\ts += String.format(\"%10s %10.3f %8.3f\",\n\t\t\t\t\trte.pfx.toString(), rte.timestamp, rte.cost);\n\n\t\t\ts += String.format(\" %5d\", rte.outLink);\n\n\t\t\tif (rte.valid == true)\n\t\t\t\ts+= String.format(\" %10s\", \"valid\");\n\t\t\telse\n\t\t\t\ts+= String.format(\" %10s \\t\", \"invalid\");\n\n\t\t\tfor (int r :rte.path)\n\t\t\t\ts += String.format (\" %s\",Util.ip2string(r));\n\n\t\t\tif (lnkVec.get(rte.outLink).helloState == 0)\n\t\t\t\ts += String.format(\"\\t ** disabled link\");\n\t\t\ts += \"\\n\";\n\t\t}\n\t\tSystem.out.println(s);\n\t}", "private void printMyRoutingTable()\n {\n\tString str;\n\tmyGUI.println(\"My Distance table and routes\");\n str = F.format(\"dst |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += (F.format(i, 15));\n }\n myGUI.println(str);\n for (int i = 0; i < str.length(); i++) {\n myGUI.print(\"-\");\n }\n str = F.format(\"cost |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += F.format(myDistTable[i], 15);\n }\n myGUI.println();\n myGUI.println(str);\n str = F.format(\"route |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += F.format(route[i], 15);\n }\n myGUI.println(str);\n myGUI.println();\n myGUI.println(\"--------------------------------------------\");\n myGUI.println();\n\n }", "private void printNeighbourTable()\n {\n\n myGUI.println(\"Neighbour Distance Table\");\n String str = F.format(\"dst |\", 15);\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str += (F.format(i, 15));\n }\n myGUI.println(str);\n for (int i = 0; i < str.length(); i++) {\n myGUI.print(\"-\");\n }\n myGUI.println();\n for (int i = 0; i < RouterSimulator.NUM_NODES; i++) {\n str = F.format(\"nbr \" + i + \" |\", 15);\n for (int j = 0; j < RouterSimulator.NUM_NODES; j++) {\n str += (F.format(myNeighboursDistTable[i][j], 15));\n }\n if (i != myID && neighbours[i])\n myGUI.println(str);\n }\n myGUI.println();\n }", "protected void printAll() {\n\t\tSystem.out.println(\"Network maps\");\n\t\tSystem.out.println(\"\tAddresses\");\n\t\ttry {\n\t\t\tPreparedStatement pstmt = \n\t\t\t\t\tthis.agent.getDatabaseManager().getConnection().prepareStatement(\n\t\t\t\t\t\t\tthis.agent.getDatabaseManager().selectAll);\n\t ResultSet rs = pstmt.executeQuery();\n\t // loop through the result set\n while (rs.next()) {\n \t System.out.printf(\"%s -> %s\\n\", rs.getString(\"username\"), rs.getString(\"address\"));\n }\n\t\t} catch (Exception e) {\n\t\t\tAgent.errorMessage(\n\t\t\t\t\tString.format(\"ERROR when trying to get all the address of the table users in the database\\n\"), e);\n\t\t}\n\t\tSystem.out.println(\"\tmapSockets\");\n\t\tfor (String u: this.mapSockets.keySet()) {\n\t\t\tSystem.out.printf(\"%s -> %s\\n\", u, this.mapSockets.get(u));\n\t\t}\n\t}", "public void printTable(String hint) {\r\n // creating iterator for HashMap \r\n synchronized (this) {\r\n LocalTime myDate = this.myObjDate;\r\n String string;\r\n System.out.println(\"in print table \");\r\n\r\n Iterator< HashMap.Entry< RoutingTableKey, RoutingTableInfo>> routingEntriesIterator = routingEntries.entrySet().iterator();\r\n\r\n String destAddress, nextipHost;\r\n // VirtualRouter.buffer.appendText(System.getProperty(\"line.separator\"));\r\n string = \"\\n|-------------------------------------------------------------------------------------------------------------------------|\\n\"\r\n + \" \" + hint + \" -- Last updated \" + myDate + \"\\n\"\r\n + \"|-------------------------------------------------------------------------------------------------------------------------|\\n\"\r\n + \"Dest Network\\t\\tnext ip-Host\\t\\tCost\\t\\tnextport\\t\\tmyPort\\t\\tActivated\\t\\tEstablished\\n\"\r\n + \"|-------------------------------------------------------------------------------------------------------------------------|\\n\";\r\n\r\n Platform.runLater(() -> {\r\n VirtualRouter.buffer.appendText(string);\r\n\r\n });\r\n\r\n while (routingEntriesIterator.hasNext()) {\r\n String string2;\r\n HashMap.Entry<RoutingTableKey, RoutingTableInfo> pair = (HashMap.Entry<RoutingTableKey, RoutingTableInfo>) routingEntriesIterator.next();\r\n\r\n destAddress = pair.getKey().getIp().getHostAddress() + \"-\" + pair.getKey().getHostname();\r\n nextipHost = pair.getValue().getNextipHost().getIp().getHostAddress() + \"-\" + pair.getValue().getNextipHost().getHostname();\r\n\r\n RoutingTableInfo destForwardingInfo = (RoutingTableInfo) pair.getValue();\r\n//bs ntb3 linet address btbi3to 3m berj3 forword slash bas destAddress.getHostName() 3m trj3 aw2et msln one.one.one.\r\n\r\n string2 = \"\" + destAddress + \"\\t\"\r\n + \"\" + nextipHost + \"\\t\\t\"\r\n + destForwardingInfo.cost + \"\\t\\t\"\r\n + \" \" + destForwardingInfo.nextHop + \"\\t\\t\"\r\n + \" \" + destForwardingInfo.port + \"\\t\\t\\t\"\r\n + \" \" + destForwardingInfo.activated + \"\\t\\t\"\r\n + \" \" + destForwardingInfo.established + \"\\t\\n\";\r\n // routerInterface.append(System.getProperty(\"line.separator\"));\r\n Platform.runLater(() -> {\r\n VirtualRouter.buffer.appendText(string2);\r\n\r\n });\r\n }\r\n Platform.runLater(() -> {\r\n VirtualRouter.buffer.appendText(\"|-------------------------------------------------------------------------------------------------------------------------|\\n\\n\");\r\n });\r\n }\r\n }", "public static void printRouteTable(RouteTable resource) {\n StringBuilder info = new StringBuilder();\n info\n .append(\"Route table: \")\n .append(resource.id())\n .append(\"\\n\\tName: \")\n .append(resource.name())\n .append(\"\\n\\tResource group: \")\n .append(resource.resourceGroupName())\n .append(\"\\n\\tRegion: \")\n .append(resource.region())\n .append(\"\\n\\tTags: \")\n .append(resource.tags());\n\n // Output routes\n Map<String, Route> routes = resource.routes();\n info.append(\"\\n\\tRoutes: \").append(routes.values().size());\n for (Route route : routes.values()) {\n info\n .append(\"\\n\\t\\tName: \")\n .append(route.name())\n .append(\"\\n\\t\\t\\tDestination address prefix: \")\n .append(route.destinationAddressPrefix())\n .append(\"\\n\\t\\t\\tNext hop type: \")\n .append(route.nextHopType().toString())\n .append(\"\\n\\t\\t\\tNext hop IP address: \")\n .append(route.nextHopIpAddress());\n }\n\n // Output associated subnets\n List<Subnet> subnets = resource.listAssociatedSubnets();\n info.append(\"\\n\\tAssociated subnets: \").append(subnets.size());\n for (Subnet subnet : subnets) {\n info\n .append(\"\\n\\t\\tResource group: \")\n .append(subnet.parent().resourceGroupName())\n .append(\"\\n\\t\\tNetwork name: \")\n .append(subnet.parent().name())\n .append(\"\\n\\t\\tSubnet name: \")\n .append(subnet.name())\n .append(\"\\n\\tSubnet's route table ID: \")\n .append(subnet.routeTableId());\n }\n info.append(\"\\n\\tDisable BGP route propagation: \").append(resource.isBgpRoutePropagationDisabled());\n System.out.println(info.toString());\n }", "void printNodes(){\n\t\tfor(int i=0;i<Table.length;i++){\r\n\t\t\tfor(StockNode t=Table[i];t!=null;t=t.next){\r\n\t\t\t\tSystem.out.println(t.stockName+\":\"+t.stockValue+\" \"+t.transactions);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void printGraph() {\n\t\tSystem.out.println(\"-------------------\");\n\t\tSystem.out.println(\"Printing graph...\");\n\t\tSystem.out.println(\"Vertex=>[Neighbors]\");\n\t\tIterator<Integer> i = vertices.keySet().iterator();\n\t\twhile(i.hasNext()) {\n\t\t\tint name = i.next();\n\t\t\tSystem.out.println(name + \"=>\" + vertices.get(name).printNeighbors());\n\t\t}\n\t\tSystem.out.println(\"-------------------\");\n\t}", "public void print() {\n\t\tint l = 0;\n\t\tSystem.out.println();\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tSystem.out.print(vertexList[v].id);\n\t\t\tfor (Neighbor nbr = vertexList[v].adjList; nbr != null; nbr = nbr.next) {\n\t\t\t\tSystem.out.print(\" -> \" + vertexList[nbr.vertexNumber].id + \"(\"\n\t\t\t\t\t\t+ nbr.weight + \")\");\n\t\t\t\tl++;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n\t\tSystem.out.println(\"Number of edges = \" + l / 2);\n\t}", "private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void printNodes(){\n for(int i =0; i<n;i++)\n System.out.print(key[i]+\" \");\n System.out.println(isLeaf);\n if (!isLeaf){\n for(int i =0; i<=n;i++){\n c[i].printNodes();\n }\n }\n }", "public static void printTopology(HashMap<Integer, Tuple> topology) {\n log.println(\"Printing Link State Database:\");\n for (int i = 0; i < NUM_ROUTERS; i++) {\n log.println(\"R\" + router_id + \" -> R\" + (i + 1) + \" nbr link \" + num_links[i]);\n }\n Iterator iter = topology.entrySet().iterator();\n while (iter.hasNext()) {\n Map.Entry entry = (Map.Entry) iter.next();\n Tuple tuple = (Tuple) entry.getValue();\n log.println(\"R\" + router_id + \" -> R\" + tuple.router_id + \" link \" + tuple.link_id + \" cost \" + tuple.link_cost);\n }\n log.print(\"\\n\");\n }", "private void printNetworks() {\n// for (GeneticNeuralNetwork network : networks)\n// System.out.println(network);\n// System.out.println(\"----------***----------\");\n// ////\n }", "public static void printRIB(Graph graph) {\n log.println(\"Printing Routing Information Base (RIB):\");\n log.println(\"R\" + router_id + \" -> LOCAL, 0\");\n for (Node n : graph.nodes) {\n if (n.id == router_id) {\n continue;\n } else {\n log.print(\"R\" + router_id);\n List<Node> shortestPathList = n.shortestPath;\n for (int i = 1; i < shortestPathList.size(); i++) {\n Node tmp = shortestPathList.get(i);\n log.print(\" -> R\" + tmp.id);\n }\n log.print(\" -> R\" + n.id + \", \" + n.distance);\n }\n log.print(\"\\n\");\n }\n log.print(\"\\n\");\n }", "public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}", "public void printAdjacencyMatrix();", "void printNodesWithEdges()\n {\n for ( int i = 0; i < this.numNodes; i++ )\n {\n Node currNode = this.nodeList.get(i);\n System.out.println(\"Node id: \" + currNode.id );\n \n int numEdges = currNode.connectedNodes.size();\n for ( int j = 0; j < numEdges; j++ )\n {\n Node currEdge = currNode.connectedNodes.get(j);\n System.out.print(currEdge.id + \",\");\n }\n\n System.out.println();\n } \n\n \n }", "public void printGraphStructure() {\n\t\tSystem.out.println(\"Vector size \" + nodes.size());\n\t\tSystem.out.println(\"Nodes: \"+ this.getSize());\n\t\tfor (int i=0; i<nodes.size(); i++) {\n\t\t\tSystem.out.print(\"pos \"+i+\": \");\n\t\t\tNode<T> node = nodes.get(i);\n\t\t\tSystem.out.print(node.data+\" -- \");\n\t\t\tIterator<EDEdge<W>> it = node.lEdges.listIterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tEDEdge<W> e = it.next();\n\t\t\t\tSystem.out.print(\"(\"+e.getSource()+\",\"+e.getTarget()+\", \"+e.getWeight()+\")->\" );\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void printMatrix()\n {\n for(int i = 0; i < n; i++)\n {\n System.out.println();\n for(int j = 0; j < n; j++)\n {\n System.out.print(connectMatrix[i][j] + \" \");\n }\n }\n }", "public void printGraph(){\n\t\tSystem.out.println(\"[INFO] Graph: \" + builder.nrNodes + \" nodes, \" + builder.nrEdges + \" edges\");\r\n\t}", "void printGraph() {\n System.out.println(\n \"All vertices in the graph are presented below.\\n\" +\n \"Their individual edges presented after a tab. \\n\" +\n \"-------\");\n\n for (Map.Entry<Vertex, LinkedList<Vertex>> entry : verticesAndTheirEdges.entrySet()) {\n LinkedList<Vertex> adj = entry.getValue();\n System.out.println(\"Vertex: \" + entry.getKey().getName());\n for (Vertex v : adj) {\n System.out.println(\" \" + v.getName());\n }\n }\n }", "public void print() {\n for (int i = 0; i < table.length; i++) {\n System.out.printf(\"%d: \", i);\n \n HashMapEntry<K, V> temp = table[i];\n while (temp != null) {\n System.out.print(\"(\" + temp.key + \", \" + temp.value + \")\");\n \n if (temp.next != null) {\n System.out.print(\" --> \");\n }\n temp = temp.next;\n }\n \n System.out.println();\n }\n }", "public void displayPaths() {\r\n\t\tlog.debug(\"startPaths\");\r\n\t\tfor ( Map.Entry<Integer, Vector<Edge>> entry: startPaths.entrySet()) {\r\n\t\t\tfor ( Edge edge: entry.getValue()) {\r\n\t\t\t\tlog.debug( entry.getKey() + \": \" + edge.StartRoom + \"->\" + edge.door + \"->\" + edge.DestinationRoom );\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.debug(\"destinationPaths\");\r\n\t\tfor ( Map.Entry<Integer, Vector<Edge>> entry: destinationPaths.entrySet()) {\r\n\t\t\tfor ( Edge edge: entry.getValue()) {\r\n\t\t\t\tlog.debug( entry.getKey() + \": \" + edge.StartRoom + \"->\" + edge.door + \"->\" + edge.DestinationRoom );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void printNode(){\n\t\tSystem.out.println(\"\\nCurrent neigbor: \" + serventList.size());\n\t\tfor(int i = 0;i<serventList.size();i++){\n\t\t\tServentInfo b = serventList.get(i);\n\t\t\tSystem.out.println(\"(\" + b.IP + \":\" + b.port + \"); \");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}", "public void print() {\n\t\tfor (int count = 0; count < adjacencyList.length; count++) {\n\t\t\tLinkedList<Integer> edges = adjacencyList[count];\n\t\t\tSystem.out.println(\"Adjacency list for \" + count);\n\n\t\t\tSystem.out.print(\"head\");\n\t\t\tfor (Integer edge : edges) {\n\t\t\t\tSystem.out.print(\" -> \" + edge);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void printGraph() {\n\t\tStringJoiner j = new StringJoiner(\", \");\n\t\tfor(Edge e : edgeList) {\n\t\t\tj.add(e.toString());\n\t\t}\n\t\t\n\t\tSystem.out.println(j.toString());\n\t}", "public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }", "void printGraph();", "public void printRoute() {\n\t\tString route = new String(\"[ROUTE INFO] - Cost: \");\n\t\tif(cost == 0) {\n\t\t\troute += \" Not Yet Calculated, \";\n\t\t}\n\t\telse {\n\t\t\troute += (\"\" + this.cost + \", \");\n\t\t}\n\t\troute += (\"Route Length: \" + solutionLength + \", Route: \");\n\t\troute += \"(\" + solutionRepresentation.get(0).getX() + \",\" + solutionRepresentation.get(0).getY() + \")\";\n\t\tfor(int i = 1; i < solutionLength; i++) {\n\t\t\troute+= \" -> (\" + solutionRepresentation.get(i).getX() + \",\" + solutionRepresentation.get(i).getY() + \")\";\n\t\t}\n\t\tSystem.out.println(route);\n\t}", "private String printRoute() {\n String r = String.valueOf(this.route.get(0));\n int index = 1;\n while (index < this.route.size()) {\n r = r + \" - \" + this.route.get(index);\n index++;\n }\n return r;\n }", "private void printGraphModel() {\n System.out.println(\"Amount of nodes: \" + graphModel.getNodes().size() +\n \" || Amount of edges: \" + graphModel.getEdges().size());\n System.out.println(\"Nodes:\");\n int i = 0;\n for (Node n : graphModel.getNodes()) {\n System.out.println(\"#\" + i + \" \" + n.toString());\n i++;\n }\n System.out.println(\"Edges:\");\n i = 0;\n for (Edge e : graphModel.getEdges()) {\n System.out.println(\"#\" + i + \" \" + e.toString());\n i++;\n }\n }", "private void display_Topo_Matrix(int[][] matrix) \n\t{\n\t\tSystem.out.println(\"\\nReview Topology Matrix:\");\n\t\tfor(int row=0; row<matrix.length; row++)\n\t\t{\n\t\t\tfor(int col=0; col<matrix[row].length; col++)\n\t\t\t{\n\t\t\t\tSystem.out.print(matrix[row][col] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void print(){\n for (int i = 0; i < hashTable.length; i++){\n if (hashTable[i] != null){\n LLNodeHash ptr = hashTable[i];\n while (ptr.getNext() != null){\n System.out.print(\"(\" + ptr.getKey() + \", \" + ptr.getFreq() + \")\");\n ptr = ptr.getNext();\n }\n System.out.print(\"(\" + ptr.getKey() + \", \" + ptr.getFreq() + \")\");\n }\n }\n }", "String showAllNodes();", "public void print (){\r\n for (int i = 0; i < graph.size(); ++i){\r\n graph.get(i).print();\r\n }\r\n }", "public void printNodes() {\n\t\tprintNodes(root);\n\n\t}", "public void display() {\r\n int v;\r\n Node n;\r\n \r\n for(v=1; v<=V; ++v){\r\n System.out.print(\"\\nadj[\" + toChar(v) + \"] ->\" );\r\n for(n = adj[v]; n != z; n = n.next) \r\n System.out.print(\" |\" + toChar(n.vert) + \" | \" + n.wgt + \"| ->\"); \r\n }\r\n System.out.println(\"\");\r\n }", "public String printRoute()\r\n {\r\n String res = this.getRoute().stream()\r\n .map(entry -> entry.getKey().getId()\r\n + \":\"\r\n + entry.getValue()\r\n + \";\")\r\n .collect(Collectors.joining());\r\n System.out.println(res);\r\n return res;\r\n }", "public void printNodes() {\n\t\tNode currentNode = headNode;\n\t\tif(currentNode==null) {\n\t\t\tSystem.out.println(\" The Node is Null\");\n\t\t\treturn;\n\t\t} else {\n\t\t\tSystem.out.print(\" \"+ currentNode.getData());\n\t\t\twhile(currentNode.getNextNode()!=null) {\n\t\t\t\tcurrentNode = currentNode.getNextNode();\n\t\t\t\tSystem.out.print(\"=> \"+ currentNode.getData());\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void displayNodes() {\n Node node = this.head;\n StringBuilder sb = new StringBuilder();\n while (node != null) {\n sb.append(node.data).append(\" \");\n node = node.next;\n };\n\n System.out.println(sb.toString());\n }", "public void print(){\n String res = \"\" + this.number;\n for(Edge edge: edges){\n res += \" \" + edge.toString() + \" \";\n }\n System.out.println(res.trim());\n }", "public void printAll() {\n Node node = head;\n\n while (node != null) {\n System.out.println(node.getStudent());\n node = node.getLink();\n }\n System.out.println();\n }", "private static void printTheBoards(Node node) {\n\t\t\n\t\tArrayList<Node> finalList = new ArrayList<>();\n\t\tdo {\n\t\t\tfinalList.add(node);\n\t\t\tnode = node.parent;\n\t\t} while (node.parent != null);\n\t\tnode.printBoard();\n\t\tCollections.reverse(finalList);\n\t\tfor (Node temp : finalList) {\n\t\t\ttemp.printBoard();\n\t\t}\n\t\tSystem.out.println(\"Path cost: \" + finalList.size());\n\t}", "public void printHashTable()\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < bucketSize; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"Hash Bucket: \" + i + \": \");\n\n\t\t\t\t\t\tNode current = bucketList[i];\n\n\t\t\t\t\t\twhile (current.getNext() != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(current.getData() + \" \");\n\t\t\t\t\t\t\t\tcurrent = current.getNext();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tSystem.out.println(current.getData());\n\t\t\t\t\t}\n\t\t\t}", "public void printEdges() {\n\t\tSystem.out.println(\"Edges\");\n\t\tIterator<Edge> i = edges.iterator();\n\t\twhile(i.hasNext()) {\n\t\t\tEdge e = i.next();\n\t\t\tSystem.out.println(e.toString());\n\t\t}\n\t}", "private void printInfo() {\n for (Coordinate c1 : originCells) {\n System.out.println(\"Origin: \" + c1.toString());\n }\n for (Coordinate c2 : destCells) {\n System.out.println(\"destination: \" + c2.toString());\n }\n for (Coordinate c3 : waypointCells) {\n System.out.println(\"way point: \" + c3.toString());\n }\n }", "public void printInfo() {\n\t\tString nodeType = \"\";\n\t\tif (nextLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Output Node\";\n\t\t} else if (prevLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Input Node\";\n\t\t} else {\n\t\t\tnodeType = \"Hidden Node\";\n\t\t}\n\t\tSystem.out.printf(\"%n-----Node Values %s-----%n\", nodeType);\n\t\tSystem.out.printf(\"\tNumber of nodes in next layer: %d%n\", nextLayerNodes.size());\n\t\tSystem.out.printf(\"\tNumber of nodes in prev layer: %d%n\", prevLayerNodes.size());\n\t\tSystem.out.printf(\"\tNext Layer Node Weights:%n\");\n\t\tNode[] nextLayer = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextLayer.length; i++) {\n\t\t\tnextLayer[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\tfor (int i = 0; i < nextLayerNodes.size(); i++) {\n\t\t\tSystem.out.printf(\"\t\t# %f%n\", nextLayerNodes.get(nextLayer[i]));\n\t\t}\n\t\tSystem.out.printf(\"%n\tPartial err partial out = %f%n%n\", getPartialErrPartialOut());\n\t}", "private static void printCircuit() {\n\tfor (Gate i: gates) {\n\t System.out.println( i.toString() );\n\t}\n\tfor (Wire r: wires) {\n\t System.out.println( r.toString() );\n\t}\n }", "public void dumpTable() {\n Enumeration elements = table.elements();\n while (elements.hasMoreElements()){\n SymbolTableEntry printEntry = (SymbolTableEntry) elements.nextElement();\n printName(printEntry);\n }\n }", "private void printTable() {\n System.out.println(\"COMPLETED SLR PARSE TABLE\");\n System.out.println(\"_________________________\");\n System.out.print(\"\\t|\");\n // print header\n for(int i = 0; i < pHeader.size(); i++) {\n pHeader.get(i);\n System.out.print(\"\\t\" + i + \"\\t|\");\n }\n System.out.println();\n // print body\n for(int i = 0; i < parseTable.size(); i++) {\n System.out.print(i + \"\\t|\");\n for(int j = 0; j < parseTable.get(i).size(); j++) {\n System.out.print(\"\\t\" + parseTable.get(i).get(j) + \"\\t|\");\n }\n System.out.println();\n }\n System.out.println();\n System.out.println(\"END OF SLR PARSE TABLE\");\n System.out.println();\n }", "void printGraph() {\n for (Vertex u : this) {\n System.out.print(u + \": \");\n for (Edge e : u.Adj) {\n System.out.print(e);\n }\n System.out.println();\n }\n }", "public void printGraph() {\n System.out.println( );\n // the cell number corresponding to a location on a GameBoard\n String cell = \"\"; \n // the distance a cell is from the starting location\n String dist = \"\"; \n\n // for every cell in the graph\n for ( int i = 0; i < graph.length; i++ ) {\n\n // format graph by prefixing a 0 if the number is less\n // than 10. this will ensure output is uniform\n if ( graph[i].graphLoc < 10 )\n cell = \"0\" + graph[i].graphLoc;\n else\n cell = graph[i].graphLoc + \"\";\n\n // format distance by prefixing a space if the number\n // is between 0 and 9 inclusive\n if ( graph[i].dist < 10 && graph[i].dist >= 0 )\n dist = graph[i].dist + \" \";\n // give red color if the cell was never checked\n else if ( graph[i].dist == -1 )\n dist = ANSI_RED + graph[i].dist + \"\" + ANSI_RESET;\n else\n dist = graph[i].dist + \"\";\n\n // print the cell and distance\n // an example output is [13: 5]\n System.out.print(\"[\"+cell+\":\"+dist+\"]\");\n\n // create a new line for the next row\n if ( (i+1) % GameBoard.COLUMNS == 0 )\n System.out.println(\"\\n\");\n }\n }", "public String printRouteStops()\r\n {\r\n String route_output = \"-> \";\r\n for (Stop s : stops_map)\r\n {\r\n route_output = route_output + s.getId() + \" ->\";\r\n }\r\n\r\n return route_output;\r\n }", "public static void printLookupTable(HashMap<Integer, String> map) {\n\t\tint size = map.size();\n\t\tfor(int i = 0; i < size; i++) { \n\t\t\tSystem.out.println(\"vertex descriptor:\\t\" + i + \"\\taddress:\\t\" + map.get(i));\n\t\t}\n\t}", "void printSubgraphs() {\n StringBuilder sb = new StringBuilder();\n for(int sgKey: listOfSolutions.keySet()) {\n HashMap<Integer, Long> soln = listOfSolutions.get(sgKey);\n // inside a soln\n //sb.append(\"S:8:\");\n for(int key: soln.keySet()) {\n sb.append(key + \",\" + soln.get(key) + \";\");\n\n }\n sb.setLength(sb.length() - 1);\n sb.append(\"\\n\");\n }\n System.out.println(\"\\n\" + sb.toString());\n }", "public void printAllNodes() {\n\t\tNode current = head;\n\n\t\twhile( current != null ) {\n\t\t\tSystem.out.println(current.data);\n\t\t\tcurrent = current.next;\n\t\t}\n\t}", "public void print() {\n System.out.println(\"Scheme print:\");\n System.out.println(\" Blocks:\");\n for (Block block : this.blocks) {\n // System.out.println(\" \" + block.getName() + \" (\" + block.getID() + \")\");\n for (Integer id : block.getConnections()) {\n System.out.println(\" \" + id);\n }\n //System.out.println(\" \" + block.outputs.getFirst().getDstID());\n }\n /*System.out.println(\" Connections:\");\n for (Con connection : this.connections) {\n System.out.println(\" [\" + connection.src + \"]---[\" + connection.dst + \"]\");\n }*/\n if(this.queue_set){\n System.out.println(\" Queue: \" + this.queue);\n }\n else{\n System.out.println(\" Queue not loaded\");\n }\n }", "public void printNode(){\r\n // make an appropriately lengthed array of formatting\r\n // to separate rows/space coordinates\r\n String[] separators = new String[puzzleSize + 2];\r\n separators[0] = \"\\n((\";\r\n for (int i=0; i<puzzleSize; i++)\r\n separators[i+1] = \") (\";\r\n separators[puzzleSize+1] = \"))\";\r\n // print the rows\r\n for (int i = 0; i<puzzleSize; i++){\r\n System.out.print(separators[i]);\r\n for (int j = 0; j<puzzleSize; j++){\r\n System.out.print(this.state[i][j]);\r\n if (j<puzzleSize-1)\r\n System.out.print(\" \");\r\n }\r\n }\r\n // print the space's coordinates\r\n int x = (int)this.space.getX();\r\n int y = (int)this.space.getY();\r\n System.out.print(separators[puzzleSize] + x + \" \" + y + separators[puzzleSize+1]);\r\n }", "public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttmp+=\"^\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttmp+=\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttmp+=\"V\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\ttmp+=\"<\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\telse if(this.table.field[i][j].obj != null) {\n \t\t\t\ttmp = this.table.field[i][j].obj.name;\n \t\t\t}\n \t\t\tSystem.out.print(\" \" + tmp);\n \t\t}\n \t\t\tSystem.out.println(\"\");\n \t}\n }", "public void printVisitedCells()\r\n\t{\r\n\t\tSystem.out.print(\"+ +\");\r\n\t\tfor (int i = 1; i < this.getWidth(); i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"-+\");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\r\n\t\tfor (int i = 0; i < this.getHeight(); i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < this.getWidth(); j++)\r\n\t\t\t{\r\n\t\t\t\tCell c = this.getCellAt(i, j);\r\n\t\t\t\t// if cells are connected, no wall is printed in between them\r\n\t\t\t\tif (c.hasDoorwayTo(Cell.WEST))\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(\"|\");\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(c.getDiscoveryTime() != -1)\r\n\t\t\t\t\tSystem.out.print(c.getDiscoveryTime() % 10);\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < this.getWidth(); j++)\r\n\t\t\t{\r\n\t\t\t\tCell c = this.getCellAt(i, j);\r\n\t\t\t\tSystem.out.print(\"+\");\r\n\r\n\t\t\t\tif (c.hasDoorwayTo(Cell.SOUTH) || c == this.getCellAt(getHeight()-1, getWidth()-1))\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"+\");\r\n\t\t}\r\n\t}", "void print() {\n\n\t\t// Print \"Sym Table\"\n\t\tSystem.out.print(\"\\nSym Table\\n\");\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tHashMap<String, Sym> M = list.get(i);\n\t\t\t// Print each HashMap in list\n\t\t\tSystem.out.print(String.format(M.toString() + \"\\n\"));\n\t\t}\n\n\t\t// Print New Line\n\t\tSystem.out.println();\n\t}", "public ArrayList<ArrayList<Integer>> getRoutingTable() {\n\t\treturn routingTable;\n\t}", "private boolean display_Forward_Table(int[][] matrixTopo ,int source, int[] forward_tab_dist, int[] list_Prevoius_Nodes, ArrayList<Integer> del_router) \n\t{\n\t\tint last_visited_prev = 0;\n\t\tboolean retVal = true;\n\t\t\n\t\t//If the router is deleted then don't check further. First check if it is not null otherwise exception\n\t\tif(del_router != null && del_router.contains(source))\n\t\t{\n\t\t\tSystem.out.println(\"Router \"+ (source+1) +\" is removed from topology\");\n\t\t\tretVal = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"\\nRouter \" + (source + 1) + \" Connection Table\");\n\t\t\tSystem.out.println(\"Destination\\tInterface\");\n\t\t\tSystem.out.println(\"===========================\");\n\t\t\t\n\t\t\tfor(int n=0; n<matrixTopo.length; n++)\n\t\t\t{\n\t\t\t\t//for source node just display '-' else find the previous node\n\t\t\t\tif(n == source)\n\t\t\t\t\tSystem.out.println((source + 1) + \"\\t\\t - \");\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlast_visited_prev = n;\n\t\t\t\t\t//if it is source node or already previous node then exit else iterate to find the min dist node\n\t\t\t\t\twhile(!(list_Prevoius_Nodes[last_visited_prev] == last_visited_prev || list_Prevoius_Nodes[last_visited_prev] == source))\n\t\t\t\t\t{\n\t\t\t\t\t\tlast_visited_prev = list_Prevoius_Nodes[last_visited_prev]; //iterate till first previous node\n\t\t\t\t\t}\n\t\t\t\t\tif(forward_tab_dist[n] == INFINITE_DIST)\n\t\t\t\t\t\tSystem.out.println((n+1) + \"\\t\\t Router is Down or Unreachable\"); //when a node is disconnected to the graph or in case of deleted router\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println((n+1) + \"\\t\\t \" + (last_visited_prev + 1));\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//If router is deleted from the topology then return false indicating the same\n\t\treturn retVal;\n\t}", "private void printFrequencyTable() {\n System.out.println(\"\\nPrinting the frequency table:\");\n while(!frequencyTable.isEmpty()) {\n frequencyTable.remove().printNode();\n }\n }", "void dump() {\n\t\tSystem.out.print(\"I am: \" + (territoryID));\n\t\tSystem.out.print(\"\\tNeighbour of:\");\n\n\t}", "private String printRoute(Rota r) {\n StringBuilder s = new StringBuilder();\n\n for (String d : r.getPontos()) {\n s.append(d + \"->\");\n }\n s = s.replace(s.length() - 2, s.length(), \".\");\n\n return s.toString();\n }", "private void addLinkesToGraph()\n\t{\n\t\tString from,to;\n\t\tshort sourcePort,destPort;\n\t\tMap<Long, Set<Link>> mapswitch= linkDiscover.getSwitchLinks();\n\n\t\tfor(Long switchId:mapswitch.keySet())\n\t\t{\n\t\t\tfor(Link l: mapswitch.get(switchId))\n\t\t\t{\n\t\t\t\tfrom = Long.toString(l.getSrc());\n\t\t\t\tto = Long.toString(l.getDst());\n\t\t\t\tsourcePort = l.getSrcPort();\n\t\t\t\tdestPort = l.getDstPort();\n\t\t\t\tm_graph.addEdge(from, to, Capacity ,sourcePort,destPort);\n\t\t\t} \n\t\t}\n\t\tSystem.out.println(m_graph);\n\t}", "public void printTable() {\r\n System.out.println(frame+\") \");\r\n for (int y = 0; y < table.length; y++) {\r\n System.out.println(Arrays.toString(table[y]));\r\n }\r\n frame++;\r\n }", "public void printTree() {\n Object[] nodeArray = this.toArray();\n for (int i = 0; i < nodeArray.length; i++) {\n System.out.println(nodeArray[i]);\n }\n }", "public void printEdges()\n\t{\n\t\tSystem.out.println(\"Printing all Edges:\");\n\t\tIterator<DSAGraphVertex> itr = vertices.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\titr.next().printAdjacent();\n\t\t}\n\t}", "private void computeAllPaths()\n {\n for (Station src : this.graph.stations)\n {\n List<Station> visited = new ArrayList<Station>();\n computePathsForNode(src, null, null, visited);\n }\n Print.printTripList(this.tripList);\n }", "public void printList() {\n\t\tNode tnode = head;\n\t\twhile (tnode != null) {\n\t\t\tSystem.out.print(tnode.data + \"->\");\n\t\t\ttnode = tnode.next;\n\t\t}\n\t}", "public void dump() {\n System.out.println(\"ID : \"+hostID);\n for (int i=0; i<hostAddresses.size(); i++) System.out.println(\" - addresse : \"+hostAddresses.elementAt(i).getNormalizedAddress());\n System.out.println(\"CPU : \"+cpuLoad);\n System.out.println(\"Memoire : \"+memoryLoad);\n System.out.println(\"Batterie : \"+batteryLevel);\n System.out.println(\"Threads : \"+numberOfThreads);\n System.out.println(\"CMs : \"+numberOfBCs);\n System.out.println(\"connecteurs : \"+numberOfConnectors);\n System.out.println(\"connecteurs entree reseau : \"+numberOfConnectorsNetworkInputs);\n System.out.println(\"connecteurs sortie reseau : \"+numberOfConnectorsNetworkOutputs);\n System.out.println(\"Traffic PF entree : \"+networkPFInputTraffic);\n System.out.println(\"Traffic PF sortie : \"+networkPFOutputTraffic);\n System.out.println(\"Traffic application entree : \"+networkApplicationInputTraffic);\n System.out.println(\"Traffic application sortie : \"+networkApplicationOutputTraffic);\n }", "public void dumpRules()\n\t{\n\t\tif(chain == null)\n\t\t\treturn;\n\t\t\n\t\tIterator it = chain.keySet().iterator();\n\t\tIterator subIt = null;\n\t\t\n\t\tString key = null;\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tkey = (String)it.next();\n\t\t\tSystem.out.print(key + \" --> \");\n\t\t\t\n\t\t\tsubIt = (chain.get(key)).iterator();\n\t\t\t\n\t\t\twhile(subIt.hasNext())\n\t\t\t\tSystem.out.print(subIt.next() + \", \");\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "void printSolution(int dist[], int n) {\n for (int i = 0; i < V; i++) {\n String node = \"Start\";\n switch (i) {\n case 1:\n node = \"A\";\n break;\n case 2:\n node = \"B\";\n break;\n case 3:\n node = \"C\";\n break;\n case 4:\n node = \"D\";\n break;\n case 5:\n node = \"E\";\n break;\n case 6:\n node = \"F\";\n break;\n case 7:\n node = \"G\";\n break;\n case 8:\n node = \"H\";\n break;\n case 9:\n node = \"I\";\n }\n System.out.println(\"Source -> Node: \" + node + \": \" + dist[i]);\n }\n }", "public void getInfo() {\n System.out.println(\"INFO Node : \"+address+ \" connected to nodes \");\n for(Node node : getConnectedNodes()){\n System.out.print(\"Node :\"+node.getAddress()+\" with edge : \");\n getEdge(this, node).printEdge();\n }\n \n }", "public void display(){\n\t\tSystem.out.println(\"node: \"+name+\", at \"+drawnNode.getXPosition()+\",\"+drawnNode.getYPosition()+\", colour \"+drawnNode.getColour());\n\t\tif(outArcs.length > 0)\n\t\t\tSystem.out.println(\"out arcs:\");\n\t\tfor(int i=0;i<outArcs.length;i++)\n\t\t\tSystem.out.println(\"to \"+outArcs[i].getEndNode().getName());\n\t}", "private void fourNodesTopo() {\n ReadWriteTransaction tx = dataBroker.newReadWriteTransaction();\n n(tx, true, \"n1\", Stream.of(pB(\"n1:1\"), pB(\"n1:2\"), pI(\"n1:3\"), pO(\"n1:4\"), pO(\"n1:5\")));\n n(tx, true, \"n2\", Stream.of(pB(\"n2:1\"), pB(\"n2:2\"), pO(\"n2:3\"), pI(\"n2:4\"), pI(\"n2:5\")));\n n(tx, true, \"n3\", Stream.of(pB(\"n3:1\"), pB(\"n3:2\"), pO(\"n3:3\"), pO(\"n3:4\"), pI(\"n3:5\")));\n n(tx, true, \"n4\", Stream.of(pB(\"n4:1\"), pB(\"n4:2\"), pI(\"n4:3\"), pI(\"n4:4\"), pO(\"n4:5\")));\n l(tx, \"n1\", \"n1:5\", \"n2\", \"n2:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n1\", \"n1:4\", \"n4\", \"n4:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n2\", \"n2:3\", \"n4\", \"n4:3\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n3\", \"n3:4\", \"n2\", \"n2:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n4\", \"n4:5\", \"n3\", \"n3:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n try {\n tx.submit().checkedGet();\n } catch (TransactionCommitFailedException e) {\n e.printStackTrace();\n }\n }", "public void print(){\n if (isLeaf){\n for(int i =0; i<n;i++)\n System.out.print(key[i]+\" \");\n System.out.println();\n }\n else{\n for(int i =0; i<n;i++){\n c[i].print();\n System.out.print(key[i]+\" \");\n }\n c[n].print();\n }\n }", "public void printStats() {\n\t\t\n\t\tif(grafo==null) {\n\t\t\t\n\t\t\tthis.createGraph();\n\t\t}\n\t\t\n\t\tConnectivityInspector <Airport, DefaultWeightedEdge> c = new ConnectivityInspector<>(grafo);\n\t\t\n\t\tSystem.out.println(c.connectedSets().size());\n\n\t}", "void printNode() {\n\t\tint j;\n\t\tSystem.out.print(\"[\");\n\t\tfor (j = 0; j <= lastindex; j++) {\n\n\t\t\tif (j == 0)\n\t\t\t\tSystem.out.print (\" * \");\n\t\t\telse\n\t\t\t\tSystem.out.print(keys[j] + \" * \");\n\n\t\t\tif (j == lastindex)\n\t\t\t\tSystem.out.print (\"]\");\n\t\t}\n\t}", "public void printEdges(){\n System.out.print(\" |\");\n for(int i=0;i<size;i++)\n System.out.print(\" \"+i+\" \");\n System.out.print(\"\\n\");\n for(int i=0;i<size+1;i++)\n System.out.print(\"-------\");\n System.out.print(\"\\n\");\n for(int i=0;i<size;i++){\n System.out.print(\" \"+i+\" |\");\n for(int j=0;j<size;j++){\n System.out.print(\" \"+Matrix[i][j]+\" \");\n }\n System.out.print(\"\\n\");\n }\n }", "public void printAll() {\n \tfor (int i = 0; i < Table.size(); i++) {\n \t\tList<T> data = Table.get(i);\n \t\tdata.placeIterator();\n \t\twhile (!data.offEnd()) {\n \t\t\tSystem.out.print(data.getIterator() + \"\\n\");\n \t\t\tdata.advanceIterator();\n \t\t}\n \t\t\n \t}\n }", "public void print() {\r\n this.table.printTable();\r\n }", "public void printAdjacencyList() {\n \n for ( int i=0; i<vertex_adjacency_list.size(); i++ ) {\n \n vertex_adjacency_list.get( i ).printVertex();\n \n }\n \n }", "public void printEdges(PrintWriter os) {\n\n\n // Implement me!\n for (String e : edges.keySet()) {\n String src = e.substring(0, 1);\n String tar = e.substring(1, 2);\n int srcInt = indexOf(e.substring(0, 1), vertices);\n int eInt = edges.get(e);\n int w = getEdgeWeight(src, tar);\n\n os.println(src + \" \" + tar + \" \" + w);\n\n }\n\n }", "private static void print(ArrayList<Node<BinaryTreeNode<Integer>>> n) {\n\t\tfor(int i=0; i<n.size(); i++) {\n\t\t\tNode<BinaryTreeNode<Integer>> head = n.get(i);\n\t\t\twhile(head != null) {\n\t\t\t\tSystem.out.print(head.data.data+\" \");\n\t\t\t\thead = head.next;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }", "public void printAll() {\n\t\tNode node = root;\n\t\twhile (node != null) {\n\t\t\tSystem.out.println(node.data);\n\t\t\tnode = node.left;\n\t\t}\n\t}", "public void displayMatrix(){\r\n\t\t\r\n\t\tfor (int i = 0; i < head.getOrder(); i++) {\r\n\t\t\tElementNode e = head.gethead();\r\n\t\t\tif( i > 0){\r\n\t\t\t\tfor (int j = 0; j <= i-1; j++) {\r\n\t\t\t\t\te = e.getNextRow();\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t\tfor (int j = 0; j < head.getOrder(); j++) {\r\n\t\t\t\tSystem.out.print( e.getData() + \" \");\r\n\t\t\t\te = e.getNextColumn();\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t}\r\n\t}", "public static void printSolutionTable() {\n\t\tIAWorklist.printSolutionTable();\n\n\t}", "public void print() {\n\t\tint i = 1;\n\t\tfor (String s: g.keySet()) {\n\t\t\tSystem.out.print(\"Element: \" + i++ + \" \" + s + \" --> \");\n\t\t\tfor (String k: g.get(s)) {\n\t\t\t\tSystem.out.print(k + \" ### \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void printTable() {\n System.out.println(\"\\nMenu:\");\n System.out.println(\"(LR) - List All Recipients\");\n System.out.println(\"(LO) - List All Donors\");\n System.out.println(\"(AO) - Add New Donor\");\n System.out.println(\"(AR) - Add New Recipient\");\n System.out.println(\"(RO) - Remove Donor\");\n System.out.println(\"(RR) - Remove Recipient\");\n System.out.println(\"(SR) - Sort Recipients\");\n System.out.println(\"(SO) - Sort Donors\");\n System.out.println(\"(Q) - Quit\");\n }", "public String toString() {\n\t\tString tester = \"\";\n\t\tfor(String node : nodes.keySet())\n\t\t{\n\t\t\ttester += \" \" + nodes.get(node) + \" \\n\";\n\t\t}\n\t\treturn tester;\n\t}", "public void printAll() {\n\t\tfor(int i = 0; i<r.length; i++)\n\t\t\tprintReg(i);\n\t\tprintReg(\"hi\");\n\t\tprintReg(\"lo\");\n\t\tprintReg(\"pc\");\n\t}", "public void printTrie() // Wrapper Method.\n\t{\n\t\tStringBuilder str = new StringBuilder();\n\t\tprintTrie(this.root, str, 0);\n\t}", "public void print(){\n\t\tfor (int i = 0; i < numRows; i++) {\n\t\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\t\tSystem.out.print(table[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void printMap(mapNode[][] nodes){\n\t\tint sizeOfMap = nodes.length;\r\n\t\tfor (int i = 0; i < sizeOfMap; i++) {\r\n\t\t\tfor (int j = 0; j < sizeOfMap; j++) {\r\n\t\t\t\tif (j == 9) {\r\n\t\t\t\t\tif(nodes[j][i].getOwnElevation() == 999999999){\r\n\t\t\t\t\t\tSystem.out.println(\"X\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(nodes[j][i].getOwnElevation() == -1){\r\n\t\t\t\t\t\tSystem.out.println(\"*\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tSystem.out.println(nodes[j][i].getOwnElevation());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(nodes[j][i].getOwnElevation() == 999999999){\r\n\t\t\t\t\t\tSystem.out.print(\"X \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(nodes[j][i].getOwnElevation() == -1){\r\n\t\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tSystem.out.print(nodes[j][i].getOwnElevation()+\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void print() {\n\t// Skriv ut en grafisk representation av kösituationen\n\t// med hjälp av klassernas toString-metoder\n System.out.println(\"A -> B\");\n System.out.println(r0);\n System.out.println(\"B -> C\");\n System.out.println(r1);\n System.out.println(\"turn\");\n System.out.println(r2);\n //System.out.println(\"light 1\");\n System.out.println(s1);\n //System.out.println(\"light 2\");\n System.out.println(s2);\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}" ]
[ "0.7858394", "0.76588106", "0.7088602", "0.6844646", "0.6761336", "0.6739269", "0.6648594", "0.6599641", "0.6584565", "0.6581946", "0.6561974", "0.6545855", "0.6501915", "0.64939374", "0.64671683", "0.6444417", "0.6441816", "0.6432178", "0.6427339", "0.6385905", "0.63404477", "0.63067156", "0.62996066", "0.62723184", "0.62677664", "0.6259188", "0.62444156", "0.62421733", "0.61810833", "0.617616", "0.6169783", "0.61415714", "0.61343145", "0.61286956", "0.612658", "0.6118792", "0.6067951", "0.60614735", "0.6060533", "0.6059285", "0.6051108", "0.6028026", "0.60224885", "0.5993539", "0.59888345", "0.5985932", "0.5981883", "0.5973825", "0.59559035", "0.59458864", "0.59456736", "0.5943134", "0.5942602", "0.5934495", "0.5932156", "0.5930083", "0.59216166", "0.59147424", "0.59100115", "0.59064573", "0.5900056", "0.58993196", "0.58832836", "0.5871111", "0.58641815", "0.58592075", "0.5857988", "0.5854914", "0.5833675", "0.58316404", "0.5828788", "0.582463", "0.5823437", "0.58166283", "0.58136815", "0.58042526", "0.5801843", "0.5796381", "0.57908577", "0.57873946", "0.57812536", "0.5773242", "0.57715845", "0.57705945", "0.57665116", "0.57651633", "0.576357", "0.57616955", "0.57610106", "0.5759056", "0.5757535", "0.57501936", "0.572286", "0.572186", "0.5721665", "0.57205635", "0.5717183", "0.571621", "0.5713847", "0.57117844" ]
0.80849314
0
assigned to Ignore button
public void advanceInconsistencyList() { inconsistenciesFound.remove(0); possessiveTurn = false; checkingEngine.replaceTextwithList(); typeHere.setText(checkingEngine.getText()); goThroughInconsistencies(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIgnore() {\n\t\t\tignore = true;\n\t\t}", "private void disableButtons()\r\n {\r\n }", "@Override\n protected void negativeClick() {\n\n }", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}", "public boolean ignore() {\n\t\tif(ignoreT<=0) return false; // if ignoreT is 0, the user gets control again\n\t\telse return true; // otherwise the user doesn't have control\n\t}", "private void disableButtons() {\n for (DeployCommand cmd : DeployCommand.values()){\n setButtonEnabled(cmd, false);\n }\n butDone.setEnabled(false);\n setLoadEnabled(false);\n setUnloadEnabled(false);\n setAssaultDropEnabled(false);\n }", "default void disableFollowButton() {}", "@Override\r\n\tprotected void onBoEdit() throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoEdit();\r\n\t}", "protected boolean hasNegativeButton() {\n return false;\n }", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}", "public boolean ignore()\n {\n return nameValues.getValue( FormTags.LINK_TYPE )[0].equals( \"Ignore\" );\n }", "@Override\n protected void ignoreUi(UiWatcher watcher) {\n Logger.debug(\"Ignoring to the checkbox\");\n watcher.ignore(theCheckBox);\n }", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "@Override\n\tpublic boolean onMouse(MouseEvent buttonEvent) {\n\t\treturn false;\n\t}", "private void disableP1Buttons(){\n game_BTN_p1_lightAttack.setEnabled(false);\n game_BTN_p1_strongAttack.setEnabled(false);\n game_BTN_p1_brutalAttack.setEnabled(false);\n }", "static void ignore() {\n }", "public void disableOkButton() {\n okButton.setEnabled(false);\n }", "public boolean hasNeutralButton(){\n return true;\n }", "public void setIgnored(Boolean ignored) {\n this.ignored = ignored;\n }", "public void disableHighlightButton(ImageButton imageButtonNotClicked) {\n imageButtonNotClicked.clearColorFilter();\n }", "public void disableChoice() {\n\t\t// Disable the buttons, dimming them\n\t\trock.setEnabled(false);\n\t\tpaper.setEnabled(false);\n\t\tscissors.setEnabled(false);\n\t}", "@Override\r\n\tprotected void onBoCancel() throws Exception {\n\t\tsuper.onBoCancel();\r\n\t\t// 修改按钮属性\r\n\t\tif(myaddbuttun){\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t.setEnabled(true);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t.setEnabled(false);\r\n\t\t\tmyaddbuttun=true;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}else{\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t\t.setEnabled(false);\r\n\t\t\tgetButtonManager().getButton(\r\n\t\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t\t.setEnabled(true);\r\n\t\t\tmyaddbuttun=false;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}\r\n\t}", "public void enableSaveButton()\n {\n boilerplate.getSaveButton().setDisable(false);\n }", "private void cancelButtonActionPerformed(ActionEvent e) {\n }", "public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }", "public void setIgnore( DockSituationIgnore ignore ) {\r\n this.ignore = ignore;\r\n }", "private void disableButton(Button b) {\n b.setPressed(false);\n b.setEnabled(false);\n }", "void disableAddContactButton();", "String disabledButton();", "public boolean isIgnored() {\n return m_ignored;\n }", "public void disableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(false);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnListenAgain.setEnabled(false);\n\t}", "protected void onDiscard() {\r\n this.setActive(false);\r\n }", "@Override\n\tpublic boolean onClick(Player player, int buttonID) {\n\t\treturn false;\n\t}", "public void disableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(false);\n }\n }", "public void disable()\n {\n // Disable all the buttons one by one\n for (int col = 0; col < COLUMNS; col++ )\n {\n drop[col].setEnabled(false);\n }\n }", "public void disableButtons() {\n\n for (Button b: buttons) {\n b.setClickable(false);\n }\n\n }", "protected boolean hasPositiveButton() {\n return false;\n }", "public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}", "@Override\n\tpublic Button getEraseParameterButton() {\n\t\treturn parameterButtonBar.getEraseButton();\n\t}", "public DockSituationIgnore getIgnore() {\r\n return ignore;\r\n }", "protected void disableButtons() {\n if (mFalseButton.isPressed() || mTrueButton.isPressed())\n mFalseButton.setEnabled(false);\n mTrueButton.setEnabled(false);\n }", "void btnCancel();", "public Boolean isIgnored() {\n return ignored;\n }", "public void disableEndOfProductionButton(){\n this.endOfproductionButton.setEnabled(false);\n }", "@FXML\n void setBtnCancelOnClick() {\n this.setDisableLocation(true);\n this.setDisableContent(true);\n this.setDisablePrice(true);\n this.setDisableAds(true);\n this.setDisableSelectedButtons(true);\n this.tableViewAds.setDisable(false);\n\n this.lblStatusValue.setText(\"The operation was canceled.\");\n }", "public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void disableP2Buttons(){\n game_BTN_p2_lightAttack.setEnabled(false);\n game_BTN_p2_strongAttack.setEnabled(false);\n game_BTN_p2_brutalAttack.setEnabled(false);\n }", "@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }", "void disableClearAllParametersButton();", "public boolean isCancelled()\n\t{\n\t\treturn _buttonHit;\n\t}", "@Override\n public void OnCancelButtonPressed() {\n }", "@Override\r\n\tprotected void onCancelActionSelection(SelectionEvent e) {\n\t\tSystem.out.println(\"Cancel button implementation\");\r\n\t}", "public void disableButtons() {\n p1WinPoint.setEnabled(false);\n p2WinPoint.setEnabled(false);\n }", "public void onCancelClick()\r\n {\r\n\r\n }", "@Override\n public void OnCancelButtonPressed() {\n }", "public void setIgnoreTextEvent(boolean bIgnoreTextEvent) {\n m_bIgnoreTextEvent = bIgnoreTextEvent;\n }", "private JButton getRejectButton() {\n return ((OkCancelButtonPanel) getButtonPanel()).getCancelButton();\n }", "public JButton getUncapturedBtn() {\r\n\t\tthis.uncapturedBtn = new JButton(\"Uncaptured File\");\r\n\t\tthis.uncapturedBtn.addActionListener(this);\r\n\t\tthis.uncapturedBtn.setEnabled(ComponentData.getUncapturedBtnIsEnabled());\r\n\t\treturn this.uncapturedBtn; \r\n\t}", "@Override\n\tpublic boolean onMousePressed(MouseButtonEvent event) {\n\t\treturn false;\n\t}", "private JButton getJButtonDiscnnt() {\r\n\t\tif (jButtonDiscnnt == null) {\r\n\t\t\tjButtonDiscnnt = new JButton();\r\n\t\t\tjButtonDiscnnt.setBounds(new Rectangle(269, 82, 60, 23));\r\n\t\t\tjButtonDiscnnt.setMargin(new Insets(2, 5, 2, 5));\r\n\t\t\tjButtonDiscnnt.setEnabled(false);\r\n\t\t\tjButtonDiscnnt.setText(\"断开\");\r\n\t\t}\r\n\t\treturn jButtonDiscnnt;\r\n\t}", "public void indicateNot() {\r\n notIndicated = true;\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tACTION_B_DISABLE(arg0);\r\n\t\t\t}", "HasClickHandlers getCancelButton();", "@Override\n\tpublic Button getEraseDefineButton() {\n\t\treturn defineButtonBar.getEraseButton();\n\t}", "public void handleClick(int mouseButton)\n\t{\n\t\t// do nothing\n\t}", "public void disable()\n\t{\n\t\tplayButton.setEnabled(false);\n\t\tpassButton.setEnabled(false);\n\t\tbigTwoPanel.setEnabled(false);\n\t}", "public void createNoBanButton() {\n\t\tnoban = new JButton(\"Click here if the current team missed a ban\");\n\t\tnoban.setName(\"noban\");\n\t\tnoban.setBackground(Color.GRAY);\n\t\tnoban.setForeground(Color.WHITE);\n\t\tnoban.setBorderPainted(false);\n\t\tnoban.addActionListener(this);\n\t\tnoban.setBounds(400, 50, 400, 100);\n\t\tbottomPanel.add(noban, new Integer(1));\n\t}", "public void userClickedOnTable()\r\n {\r\n this.detailedStudentViewButton.setDisable(false);\r\n }", "void killButton() {\n //goes through all columns\n for (int i = 0; i < 7; i++) {\n //if the not of valid move is true, disable the buttons\n if (!Checker.validMove(currentBoard, i)) {\n Inputbuttons[i].setEnabled(false);\n }\n }\n }", "public void dama_DamaCloseButtonListener() {\n this.buttonDisabled = false;\n }", "@Override\n public void onDisabled() {\n }", "public void onBlockedUserClicked(Button button) {\n this.unblockButton.setDisable(false);\n\n if (selectedButton != null) {\n selectedButton.setStyle(\"\");\n selectedButton.getStyleClass().clear();\n selectedButton.getStyleClass().add(\"blockedUserElement\");\n }\n\n selectedButton = button;\n\n selectedButton.getStyleClass().add(\"blockedUserElementSelected\");\n }", "@Override\n public void disableProductionButtons() {\n gameboardPanel.disableProductionButtons();\n leaderCardsPanel.disableProductionButtons();\n }", "void turnOffButtonsNotIn(TransactionType tt1, TransactionType tt2) {\n\t\tfor (TransactionType t : perTransRB.keySet()) {\n\t\t\tif (t == tt1)\n\t\t\t\tcontinue;\n\t\t\tif (t == tt2)\n\t\t\t\tcontinue;\n\t\t\tfor (RbSite rbs : perTransRB.get(t)) {\n\t\t\t\trbs.rb.setValue(false);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic boolean onCancel() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "public void handleSkipAction(ActionEvent event){\n sender.sendInput(\"skip action\");\n }", "public void selectNonstopForReturn() {\n\t\tif (!nonStopButtonForReturnTrip.isSelected()) {\n\t\t\tnonStopButtonForReturnTrip.click();\n\t\n\t\t}\n\t}", "public JButtonOperator btCancel() {\n if (_btCancel==null) {\n _btCancel = new JButtonOperator(this, Bundle.getStringTrimmed(\"org.openide.Bundle\", \"CTL_CANCEL\"));\n }\n return _btCancel;\n }", "private JButton getBtnCancel() {\n if (btnCancel == null) {\n btnCancel = new JButton();\n btnCancel.setText(\"Odustani\");\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n selected = false;\n setVisible(false);\n }\n });\n }\n return btnCancel;\n }", "private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}", "@Override\n public void disableEndOfProductionButton() {\n gameboardPanel.disableEndOfProductionButton();\n }", "public void setUnlabeled(){\n\t\tthis._isLabeled = false;\n\t}", "@Override\r\n\tpublic void onBoAdd(ButtonObject bo) throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoAdd(bo);\r\n\t\tgetBillCardPanelWrapper().getBillCardPanel().setHeadItem(\"pp_archive\", 0);\r\n\t}", "@FXML private void okButtonActivity() {\n if (activeUser != null && !activeUser.getUsername().equals(recipe.getAuthor())){\n okButton.setDisable(false);\n }\n }", "public void disable();", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tindoorFlag = !indoorFlag;\n\t\t\t//indoorFlag = true;\n\t\t}", "private void rHintButton(Button button){\r\n button.getStyleClass().remove(\"closedButton\");\r\n button.getStyleClass().add(\"chooseButtons\");\r\n button.setMouseTransparent(false);\r\n }", "protected void onDisabled() {\n // Do nothing.\n }", "public abstract void Disabled();", "@Test\n\tpublic void addButtons__wrappee__SkipTrackTest() throws Exception {\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.ogg &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.volumecontrol &&\n\t\t\t\tConfiguration.shufflerepeat &&\n\t\t\t\tConfiguration.skiptrack\n\t\t) {\n\t\tstart();\n\t\t\t\n\t\t\tConfiguration.skiptrack = false;\n\t\t\t\n\t\t\tWhitebox.invokeMethod(gui, \"addButtons__wrappee__SkipTrack\");\n\t\t\tJButton button = (JButton) MemberModifier.field(Application.class, \"btnNextTrack\").get(gui);\n\t\t\tassertTrue(button.getBounds().getX() == 100);\n\t\t\tassertTrue(button.getBounds().getY() == 279);\n\t\t\tassertTrue(button.getBounds().getWidth() == 64);\n\t\t\tassertTrue(button.getBounds().getHeight() == 23);\n\t\t}\n\t}", "void bsButtonHandling(){\n\n Boolean checkFlag = false;\n for(int i = 0; i < 4; ++i){\n if(operatorButtonClicked[i]){\n checkFlag = true;\n break;\n }\n }\n\n // -----------------------------------------------------\n // if an operator button was clicked then ignore BS\n if(checkFlag == false){\n numberOnDisplay = Integer.parseInt(display.getText().toString());\n numberOnDisplay = numberOnDisplay/10;\n display.setText(Integer.toString(numberOnDisplay));\n numberOnDisplay = 0;\n }\n }", "public void discardUserAction() {\n\t\tshowAnimalList();\n\t}", "public void hideStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "protected void ACTION_B_DISABLE(ActionEvent arg0) {\n\r\n\t\tL_FilterStatusBox.setText(\"Disabled (All Ports)\");\r\n\t}", "@Test\r\n\tpublic void testButtonPressedDisabled() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tbutton.disable();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "@Override\n public boolean isUndo() {\n return false;\n }", "void onCancelClicked();", "private void disableButtons(boolean b) {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n bt[i][j].setDisable(b);\n bt[i][j].setStyle(\"-fx-border-color:transparent\");\n }\n }\n }" ]
[ "0.70742995", "0.68872494", "0.66977376", "0.6696712", "0.6679272", "0.6671046", "0.6508554", "0.6473849", "0.6416813", "0.6399985", "0.6370531", "0.6353673", "0.6336588", "0.6308996", "0.63058925", "0.6258532", "0.62276185", "0.6216984", "0.61774063", "0.6169518", "0.6163661", "0.615977", "0.61495256", "0.6119172", "0.61122596", "0.6087394", "0.60814846", "0.6079209", "0.6066559", "0.60655785", "0.60615563", "0.6053746", "0.6053242", "0.6050536", "0.6007471", "0.6001368", "0.5995993", "0.5986625", "0.59852153", "0.59833676", "0.59833336", "0.59797233", "0.5972234", "0.5964616", "0.5959813", "0.5953931", "0.5938991", "0.59327877", "0.59316593", "0.5916405", "0.59128547", "0.59093654", "0.590448", "0.59032565", "0.59027267", "0.5893933", "0.5881175", "0.58675486", "0.58647335", "0.58547276", "0.58488125", "0.5846713", "0.58463097", "0.5845738", "0.5845158", "0.58436346", "0.5834532", "0.58330613", "0.583112", "0.58275497", "0.58221096", "0.5821375", "0.58206594", "0.5813749", "0.58114123", "0.5809431", "0.5808744", "0.5805669", "0.5801296", "0.5799172", "0.57955414", "0.5789212", "0.57795006", "0.577762", "0.57616806", "0.57613146", "0.57592326", "0.5755902", "0.57555044", "0.5749264", "0.57484907", "0.57468337", "0.5726637", "0.57234174", "0.5723189", "0.57227355", "0.57217616", "0.5713829", "0.57079357", "0.570161", "0.5696492" ]
0.0
-1
Rename does not operate on link targets Do not resolveLink when checking permissions of src and dst Check write access to parent of src
@Deprecated @SuppressWarnings("deprecation") private static boolean renameTo(FSDirectory fsd, FSPermissionChecker pc, String src, String dst, boolean logRetryCache) throws IOException { final INodesInPath srcIIP = fsd.getINodesInPath4Write(src, false); // Note: We should not be doing this. This is move() not renameTo(). final String actualDst = fsd.isDir(dst) ? dst + Path.SEPARATOR + new Path(src).getName() : dst; final INodesInPath dstIIP = fsd.getINodesInPath4Write(actualDst, false); if (fsd.isPermissionEnabled()) { fsd.checkPermission(pc, srcIIP, false, null, FsAction.WRITE, null, null, false); // Check write access to ancestor of dst fsd.checkPermission(pc, dstIIP, false, FsAction.WRITE, null, null, null, false); } if (NameNode.stateChangeLog.isDebugEnabled()) { NameNode.stateChangeLog.debug("DIR* FSDirectory.renameTo: " + src + " to " + dst); } final long mtime = Time.now(); boolean stat = false; fsd.writeLock(); try { stat = unprotectedRenameTo(fsd, src, actualDst, srcIIP, dstIIP, mtime); } finally { fsd.writeUnlock(); } if (stat) { fsd.getEditLog().logRename(src, actualDst, mtime, logRetryCache); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = SWIFT_TEST_TIMEOUT)\n public void testRenameFileToSelf() throws Throwable {\n if (!renameSupported()) return;\n Path filepath = path(\"test/file\");\n createFile(filepath);\n //HDFS expects rename src, src -> true\n rename(filepath, filepath, true, true, true);\n //verify the file is still there\n assertIsFile(filepath);\n }", "public static boolean renameRootTarget(String path, String oldname, String name) {\n File file = new File(path + File.separator + oldname);\n File newf = new File(path + File.separator + name);\n\n if (name.length() < 1)\n return false;\n\n try {\n if (!readReadWriteFile())\n RootTools.remount(path, \"rw\");\n\n execute(\"mv \" + getCommandLineString(file.getAbsolutePath()) + \" \"\n + getCommandLineString(newf.getAbsolutePath()));\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return false;\n }", "@Override\n public boolean isRename() {\n return false;\n }", "public native static void jniremoveLink(int srcId, int dstId) throws AddDBException;", "@Test(timeout = SWIFT_TEST_TIMEOUT)\n public void testRenameChildDirForbidden() throws Exception {\n assumeRenameSupported();\n\n Path parentdir = path(\"/test/parentdir\");\n fs.mkdirs(parentdir);\n Path childFile = new Path(parentdir, \"childfile\");\n createFile(childFile);\n //verify one level down\n Path childdir = new Path(parentdir, \"childdir\");\n rename(parentdir, childdir, false, true, false);\n //now another level\n fs.mkdirs(childdir);\n Path childchilddir = new Path(childdir, \"childdir\");\n rename(parentdir, childchilddir, false, true, false);\n }", "@Test(timeout = SWIFT_TEST_TIMEOUT)\n public void testRenameFileIntoExistingDirectory() throws Exception {\n assumeRenameSupported();\n\n Path src = path(\"/test/olddir/file\");\n createFile(src);\n Path dst = path(\"/test/new/newdir\");\n fs.mkdirs(dst);\n rename(src, dst, true, false, true);\n Path newFile = path(\"/test/new/newdir/file\");\n if (!fs.exists(newFile)) {\n String ls = ls(dst);\n LOG.info(ls(path(\"/test/new\")));\n LOG.info(ls(path(\"/test/hadoop\")));\n fail(\"did not find \" + newFile + \" - directory: \" + ls);\n }\n assertTrue(\"Destination changed\",\n fs.exists(path(\"/test/new/newdir/file\")));\n }", "@Test(timeout = SWIFT_TEST_TIMEOUT)\n public void testRenameDirToSelf() throws Throwable {\n assumeRenameSupported();\n Path parentdir = path(\"/test/parentdir\");\n fs.mkdirs(parentdir);\n Path child = new Path(parentdir, \"child\");\n createFile(child);\n\n rename(parentdir, parentdir, false, true, true);\n //verify the child is still there\n assertIsFile(child);\n }", "void checkRename(Object oldId, Object newId) throws UPAException;", "public abstract void rename(String newName);", "public void rename (String newName) throws Exception;", "public boolean renameTo(Resource dest) throws SecurityException {\n if (dest instanceof FileResource) {\n return _file.renameTo(((FileResource) dest)._file);\n } else {\n return false;\n }\n }", "public void testPackageRenameWithResource() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n IFile file = ((IFolder) fragment.getResource()).getFile(\"x.properties\");\n String content = \"A file with no references\";\n file.create(getStream(content), true, null);\n setReadOnly(file);\n RenameJavaElementDescriptor descriptor = RefactoringSignatureDescriptorFactory.createRenameJavaElementDescriptor(IJavaRefactorings.RENAME_PACKAGE);\n descriptor.setJavaElement(fragment);\n descriptor.setNewName(\"org.test2\");\n descriptor.setUpdateReferences(true);\n RefactoringStatus status = performRefactoring(descriptor);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(1, validatedEditPaths.size());\n assertTrue(validatedEditPaths.contains(cu1.getPath()));\n }", "public static void main(String[] args){\nFile from = new File(\"d:/prac/shubha.txt\");\r\n//rename and change the file and folder\r\nFile to = new File(\"d:/prac/Sub1/shubha.txt\");\r\n//Rename\r\nif (from.renameTo(to))\r\nSystem.out.println(\"Successfully Moved the file\");\r\nelse\r\nSystem.out.println(\"Error while moving the file\");\r\n}", "@SuppressWarnings(\"unused\")\n\tpublic boolean renameFolder(final File source,\n\t\t\t\t\t\t\t\tfinal File target)\n\t\t\tthrows WritePermissionException\n\t{\n\t\t// First try the normal rename.\n\t\tif (source.renameTo(target)) {\n\t\t\treturn true;\n\t\t}\n\t\tif (target.exists()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Try the Storage Access Framework if it is just a rename within the same parent folder.\n\t\tif (Util.hasLollipop() && source.getParent().equals(target.getParent())) {\n\t\t\tUsefulDocumentFile document = getDocumentFile(source, true, true);\n\t\t\tif (document == null)\n\t\t\t\treturn false;\n\t\t\tif (document.renameTo(target.getName())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// Try the manual way, moving files individually.\n\t\tif (!mkdir(target)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tFile[] sourceFiles = source.listFiles();\n\n\t\tif (sourceFiles == null) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfor (File sourceFile : sourceFiles) {\n\t\t\tString fileName = sourceFile.getName();\n\t\t\tFile targetFile = new File(target, fileName);\n\t\t\tif (!copyFile(sourceFile, targetFile)) {\n\t\t\t\t// stop on first error\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// Only after successfully copying all files, delete files on source folder.\n\t\tfor (File sourceFile : sourceFiles) {\n\t\t\tif (!deleteFile(sourceFile)) {\n\t\t\t\t// stop on first error\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void testPackageRenameWithResource2() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class MyClass {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"MyClass.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n IFile file = ((IFolder) fragment.getResource()).getFile(\"x.properties\");\n byte[] content = \"This is about 'org.test' and more\".getBytes();\n file.create(new ByteArrayInputStream(content), true, null);\n file.refreshLocal(IResource.DEPTH_ONE, null);\n setReadOnly(file);\n RenameJavaElementDescriptor descriptor = RefactoringSignatureDescriptorFactory.createRenameJavaElementDescriptor(IJavaRefactorings.RENAME_PACKAGE);\n descriptor.setJavaElement(fragment);\n descriptor.setNewName(\"org.test2\");\n descriptor.setUpdateReferences(true);\n descriptor.setUpdateQualifiedNames(true);\n descriptor.setFileNamePatterns(\"*.properties\");\n RefactoringStatus status = performRefactoring(descriptor);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(2, validatedEditPaths.size());\n assertTrue(validatedEditPaths.contains(cu1.getPath()));\n assertTrue(validatedEditPaths.contains(file.getFullPath()));\n }", "public void testPackageRename2() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class A {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu1 = fragment.createCompilationUnit(\"A.java\", buf.toString(), true, null);\n setReadOnly(cu1);\n buf = new StringBuffer();\n buf.append(\"package org.test;\\n\");\n buf.append(\"public class B {\\n\");\n buf.append(\"}\\n\");\n fragment.createCompilationUnit(\"B.java\", buf.toString(), true, null);\n // not read only\n IPackageFragment fragment2 = getRoot().createPackageFragment(\"org.other\", true, null);\n buf = new StringBuffer();\n buf.append(\"package org.other;\\n\");\n buf.append(\"public class C extends org.test.A {\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu3 = fragment2.createCompilationUnit(\"C.java\", buf.toString(), true, null);\n setReadOnly(cu3);\n RenameJavaElementDescriptor descriptor = RefactoringSignatureDescriptorFactory.createRenameJavaElementDescriptor(IJavaRefactorings.RENAME_PACKAGE);\n descriptor.setJavaElement(fragment);\n descriptor.setNewName(\"org.test2\");\n descriptor.setUpdateReferences(true);\n RefactoringStatus status = performRefactoring(descriptor);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(2, validatedEditPaths.size());\n assertTrue(validatedEditPaths.contains(cu1.getPath()));\n assertTrue(validatedEditPaths.contains(cu3.getPath()));\n }", "public static boolean forceRename(File a, File b) {\n boolean success = a.renameTo(b);\n \n // If that didn't work, try copying the file.\n if (!success) {\n success = CommonUtils.copy(a, b);\n //if copying succeeded, get rid of the original\n //at this point any active uploads will have been killed\n if (success)\n \ta.delete();\n }\n return success;\n }", "@Test(timeout = SWIFT_TEST_TIMEOUT)\n public void testRenameRootDirForbidden() throws Exception {\n assumeRenameSupported();\n rename(path(\"/\"),\n path(\"/test/newRootDir\"),\n false, true, false);\n }", "boolean hasRename();", "public RenameTResponse rename(String path, String dstPath, RenameTOptions options) throws alluxio.thrift.AlluxioTException, org.apache.thrift.TException;", "public static boolean renameRootTarget(RootFile before, RootFile after) {\n File file = new File(before.getParent() + File.separator + before.getName());\n File newf = new File(after.getParent() + File.separator + after.getName());\n\n if (after.getName().length() < 1)\n return false;\n\n try {\n if (!readReadWriteFile())\n RootTools.remount(before.getPath(), \"rw\");\n\n execute(\"mv \" + getCommandLineString(file.getAbsolutePath()) + \" \"\n + getCommandLineString(newf.getAbsolutePath()));\n return true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return false;\n }", "public boolean renameFile(String srcPath, String dstPath)\n\t\t\tthrows HDFSServerManagementException {\n\n\t\tDataAccessService dataAccessService = HDFSAdminComponentManager\n\t\t\t\t.getInstance().getDataAccessService();\n\t\tFileSystem hdfsFS = null;\n\t\tPath src = new Path(srcPath);\n\t\tPath dest = new Path(dstPath);\n\t\tboolean fileExists = false;\n\t\ttry {\n\t\t\thdfsFS = dataAccessService.mountCurrentUserFileSystem();\n\t\t} catch (IOException e) {\n\t\t\tString msg = \"Error occurred while trying to mount file system.\";\n\t\t\thandleException(msg, e);\n\t\t}\n\t\ttry {\n\t\t\tif (hdfsFS != null && !hdfsFS.exists(dest)) {\n\t\t\t\treturn hdfsFS.rename(src, dest);\n\t\t\t} else {\n\t\t\t fileExists = true;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tString msg = \"Error occurred while trying to rename file.\";\n\t\t\thandleException(msg, e);\n\t\t}\n\t\thandleItemExistState(fileExists, true, false);\n\t\treturn false;\n\t}", "private static boolean updateFilePermissions(File source, File target, boolean targetAlreadyExisted)\n\t\t\tthrows DeploymentException {\n\t\tSet<PosixFilePermission> permissionsFrom = FilesUtils.getPermissions(source);\n\t\tSet<PosixFilePermission> permissionsTo = FilesUtils.getPermissions(target);\n\n\t\t// update permission if necessary\n\t\tif (!CollectionUtils.isEqualCollection(permissionsFrom, permissionsTo)) {\n\t\t\tif (targetAlreadyExisted)\n\t\t\t\tlog.info(\"updating file permissions {}\", target);\n\t\t\tFilesUtils.updatePermissions(target, permissionsFrom);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public void rename(String src, String dst) \n\tthrows IOException {\n\n\tFTPClient ftp = null;\n\n\ttry {\n\t ftp = connect(host, port, username, password);\n\n\t if (!ftp.rename(src, dst)) {\n\t\tthrow new IOException(\"could not rename: \" + src + \", \" + dst);\n\t }\n\t} finally {\n\t if (ftp != null) {\n\t\ttry {\n\t\t ftp.disconnect();\n\t\t} catch (IOException ex) {\n\t\t log.warn(ex);\n\t\t} finally {\n\t\t ftp = null;\n\t\t}\n\t }\n\t}\n }", "protected void rename(String oldname, String newname) throws IOException { //TODO map this to the FileSystem\n\t\tthrow new IOException( \"not implemented\" ); //TODO map this to the FileSystem\n\t}", "private void rename(File file, String name) {\n\t\t\r\n\t}", "public int handleRenameError(String source, String target, int errCode, String errMsg);", "private void migrate (String name)\t{\n\t\ttry{\n\t\t\tFile f1 = new File( sourceDir + name);\n\t\t\t\n\t\t\tif (!f1.exists())\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tFile f2 = new File(targetDir +name);\n\t\t\t\n\t\t InputStream in = new FileInputStream(f1);\n\t\t \n\t\t OutputStream out = new FileOutputStream(f2);\n\n\t\t byte[] buf = new byte[1024];\n\t\t int len;\n\t\t while ((len = in.read(buf)) > 0){\n\t\t out.write(buf, 0, len);\n\t\t }\n\t\t in.close();\n\t\t out.close();\n\t\t System.out.println(\"File copied.\");\n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t System.out.println(ex.getMessage() + \" in the specified directory.\");\n\t\t System.exit(0);\n\t\t }\n\t\t catch(IOException e){\n\t\t System.out.println(e.getMessage()); \n\t\t }\n\t}", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.renameFile(\"\", \"j@uFOT>+?Kq_S&<|u-\");\n }", "static boolean localMove(File source, File target) {\n\t\tif (target.exists())\n\t\t\tif (!target.delete()) {\n\t\t\t\tlogConsole(0, target.getPath() + \" delete failed\", null);\n\t\t\t\treturn false;\n\t\t\t}\n\t\tif (source != null)\n\t\t\tif (!source.renameTo(target)) {\n\t\t\t\tlogConsole(0, target.getPath() + \" rename failed\", null);\n\t\t\t\treturn false;\n\t\t\t}\n\t\treturn true;\n\t}", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.renameFile(\"nf`=i9F^I\", \"nf`=i9F^I\");\n }", "@Test\n public void renameFileTest(){\n fail();\n }", "private static void renameName2(File f, int index) {\n\t\tif(!f.renameTo(new File(f.getParent(),index+\".jpg\"))){\n\t\t\tSystem.out.println(f.getName()+\"文件重命名失败\");\n\t\t}\n\t}", "private String newName(Folder targetFolder) {\n HashSet<String> nameSet = targetFolder.hashSet();\n String currName = this.getName();\n while (nameSet.contains(currName)) {\n currName = \"(copy)\" + currName;\n }\n return currName;\n }", "public void rename(String Path, String name, String newName);", "@Override\n\tpublic void rename(String oldName, String newName) {\n\n\t}", "private void testAclConstraints006() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testAclConstraints006\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\",\n\t\t\t\t\tDmtSession.LOCK_TYPE_EXCLUSIVE);\n\n\t\t\tString expectedRootAcl = \"Add=*\";\n\t\t\tsession.setNodeAcl(TestExecPluginActivator.INTERIOR_NODE,\n\t\t\t\t\tnew org.osgi.service.dmt.Acl(expectedRootAcl));\n\n\t\t\tsession.renameNode(TestExecPluginActivator.INTERIOR_NODE,TestExecPluginActivator.RENAMED_NODE_NAME);\n\t\t\tTestExecPlugin.setAllUriIsExistent(true);\n\t\t\tTestCase.assertNull(\"Asserts that the method rename deletes the ACL of the source.\",session.getNodeAcl(TestExecPluginActivator.INTERIOR_NODE));\n\t\t\t\n\t\t\tTestCase.assertEquals(\"Asserts that the method rename moves the ACL from the source to the destiny.\",\n\t\t\t\t\texpectedRootAcl,session.getNodeAcl(TestExecPluginActivator.RENAMED_NODE).toString());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\ttbc.failUnexpectedException(e);\n\t\t} finally {\n\t\t\ttbc.cleanUp(session,TestExecPluginActivator.RENAMED_NODE);\n\t\t\tTestExecPlugin.setAllUriIsExistent(false);\n\t\t}\n\t}", "boolean renameDocument(String currentPath, String destinationPath);", "public void fix(TaskListener listener) throws IOException, InterruptedException {\n File dir = new File(job.getRootDir(), \"outOfOrderBuilds\");\n dir.mkdirs();\n File dst = new File(dir, buildDir.getName());\n listener.getLogger().println(\"Renaming \"+buildDir);\n listener.getLogger().println(\" -> \"+dst);\n if (!buildDir.renameTo(dst)) {\n FilePath bd = new FilePath(buildDir);\n bd.copyRecursiveTo(new FilePath(dst));\n bd.deleteRecursive();\n }\n\n // if there's a symlink delete it\n new File(buildDir.getParentFile(),String.valueOf(n)).delete();\n }", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:28.372 -0500\", hash_original_method = \"E4C63287FA81E5CD749A3DF00B7871AE\", hash_generated_method = \"A395ADC766F313790DA998F5853068A3\")\n \n void nameChanged(String newName){\n \t//Formerly a native method\n \taddTaint(newName.getTaint());\n }", "protected VRL mv(VRL vrl, String newNameOrPath, boolean nameIsPath)\n throws VlException {\n throw new nl.uva.vlet.exception.NotImplementedException(\n \"Cloud storage services don't support move or rename!\");\n\n }", "public LinkNode(DirectoryNode parent, FileNode target, String name) {\n\t\tsuper(parent, name);\n\t\tsuper.setVirtualSourceNode(target);\n\t\t/*link = target;\n\t\tsuper.setOffset(0);\n\t\tif(link != null){\n\t\t\tsuper.setLength(link.getLength());\n\t\t\tsuper.setSourcePath(link.getSourcePath());\t\n\t\t}*/\n\t\tsuper.setOffset(0);\n\t\tif(target != null){\n\t\t\tsuper.setLength(target.getLength());\n\t\t\tsuper.setSourcePath(target.getSourcePath());\n\t\t}\n\t}", "public boolean renameFolder(String srcPath, String dstPath)\n\t\t\tthrows HDFSServerManagementException {\n\n\t\tDataAccessService dataAccessService = HDFSAdminComponentManager\n\t\t\t\t.getInstance().getDataAccessService();\n\t\tFileSystem hdfsFS = null;\n\t\tboolean isFolderExists = false;\n\t\ttry {\n\t\t\thdfsFS = dataAccessService.mountCurrentUserFileSystem();\n\t\t} catch (IOException e) {\n\t\t\tString msg = \"Error occurred while trying to mount file system.\";\n\t\t\thandleException(msg, e);\n\t\t}\n\t\ttry {\n\t\t\tif (hdfsFS != null && !hdfsFS.exists(new Path(dstPath))) {\n\t\t\t\treturn hdfsFS.rename(new Path(srcPath), new Path(dstPath));\n\t\t\t} else {\n\t\t\t\tisFolderExists = true;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tString msg = \"Error occurred while trying to rename folder.\";\n\t\t\thandleException(msg, e);\n\t\t}\n\t\thandleItemExistState(isFolderExists, true, true);\n\t\treturn false;\n\t}", "public static native void link(String oldpath, String newpath) throws IOException;", "@Override\n\tpublic void rename(String name) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Test\n public void checkFilename(){\n boolean actual = rename.renameFile(\"jazz\",\"tomsmith\");\n assertTrue(actual);\n }", "private static void mover(String nombre, String directorio) {\n\t\tFile archivo = new File(nombre);\n\t\tFile dir = new File(directorio);\n\t\tboolean correcto = archivo.renameTo(new File(dir, \n\t\t\t\tarchivo.getName()));\n\t\tif (!correcto) {\n\t\t\tSystem.out.println(\"--> El fichero no se ha podido \" +\n\t\t\t\t\t\"mover\");\n\t\t}\n\t}", "public static native void rename(String oldpath, String newpath)\n throws IOException;", "public static native void symlink(String oldpath, String newpath)\n throws IOException;", "@Test\n public void checkIfFileHasBeenRenamedOrNot(){\n boolean actual = rename.renameFile(\"jazz\",\"tomsmith\");\n assertTrue(actual);\n }", "@Override\n public void rename(String name) throws SQLException, ElementExistException {\n \n }", "protected void setLinkOnly(FileNode target){\n\t\t//link = target;\n\t\t//super.setSourcePath(link.getSourcePath());\n\t\tsuper.setVirtualSourceNode(target);\n\t\tif(target != null) super.setSourcePath(target.getSourcePath());\n\t}", "public void renameTree(String oldName, String newName) throws DuplicateNameException;", "public boolean rename(File dest) {\n\t\tboolean result = false;\n\n\t\ttry{\n\t\t\tif (this.exists()) {\n\t\t\t\tif (this.isFile() && dest.isDirectory()) System.err.println(\"a file can not rename to a directory\");;\n\t\t\t\tif (this.isDirectory() && dest.isFile()) System.err.println(\"a directory can not rename to a file\");\n\t\t\t\t\n\t\t\t\tthis.renameTo(dest);\n\t\t\t}\n\n\t\t\tresult = true;\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn result;\n\t}", "private static void renameName1(File f, String fileName) {\n\t\tif(!f.renameTo(new File(f.getParent(),fileName+\".jpg\"))){\n\t\t\tSystem.out.println(f.getName()+\"文件重命名失败\");\n\t\t}\n\t}", "public void markSrvTargetNameReplace() throws JNCException {\n markLeafReplace(\"srvTargetName\");\n }", "@Override\n public void rename(Name oldName, Name newName) throws NamingException {\n validSupportName(oldName);\n validSupportName(newName);\n\n if (oldName == newName || oldName.equals(newName))\n return;\n String nn = newName.get(newName.size());\n\n\n }", "public boolean moveFile(final File source, final File target) throws WritePermissionException\n\t{\n\t\t// First try the normal rename.\n\t\tif (source.renameTo(target)) {\n\t\t\treturn true;\n\t\t}\n\n\t\tboolean success = copyFile(source, target);\n\t\tif (success) {\n\t\t\tsuccess = deleteFile(source);\n\t\t}\n\t\treturn success;\n\t}", "@Override\r\n\tpublic boolean renameFile(String oldFileName, String newFileName) throws FileSystemUtilException {\r\n\t\tthrow new FileSystemUtilException(\"000000\",null,Level.ERROR,null);\r\n\r\n\t}", "protected void renameNode( String workspaceName,\n NodeKey key,\n Path newPath,\n Segment oldSegment,\n Name primaryType,\n Set<Name> mixinTypes ) {\n\n }", "boolean renameFile(File f, File newName);", "public void fileRename(String sourcePath, String targetPath) {\n\t \tFile file = new File(sourcePath); \n\t \tfile.renameTo(new File(targetPath));\n\t \t}", "public void testMoveFileWithReplace() throws Exception {\n IPackageFragment fragment = getRoot().createPackageFragment(\"org.test\", true, null);\n IPackageFragment otherFragment = getRoot().createPackageFragment(\"org.test1\", true, null);\n IFile file = ((IFolder) fragment.getResource()).getFile(\"x.properties\");\n String content = \"A file with no references\";\n file.create(getStream(content), true, null);\n setReadOnly(file);\n IFile file2 = ((IFolder) otherFragment.getResource()).getFile(\"x.properties\");\n file2.create(getStream(content), true, null);\n setReadOnly(file2);\n IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(new IResource[] { file }, new IJavaElement[] {});\n assertTrue(policy.canEnable());\n JavaMoveProcessor javaMoveProcessor = new JavaMoveProcessor(policy);\n javaMoveProcessor.setDestination(ReorgDestinationFactory.createDestination(otherFragment));\n javaMoveProcessor.setReorgQueries(new MockReorgQueries());\n RefactoringStatus status = performRefactoring(new MoveRefactoring(javaMoveProcessor), true);\n if (status != null)\n assertTrue(status.toString(), status.isOK());\n Collection<IPath> validatedEditPaths = RefactoringTestRepositoryProvider.getValidatedEditPaths(getRoot().getJavaProject().getProject());\n assertEquals(1, validatedEditPaths.size());\n // replaced\n assertTrue(validatedEditPaths.contains(file2.getFullPath()));\n }", "public void renameFile(File from, File to) {\n if (!from.renameTo(to)) {\n Log.e(ConstantVariables.ERR, ConstantVariables.RENAME_FAILED);\n }\n }", "protected void renameAliasReference(String from, String to)\n {\n if(castor.getCastorRelationChoice().getOneToMany().getFromAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setFromAlias(to);\n \n if(castor.getCastorRelationChoice().getOneToMany().getToAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setToAlias(to);\n }", "private boolean renomeiaArquivo(File origem, File destino)\n\t{\n\t\t// Tenta executar o renameTo da classe File. Caso o destino seja em filesystem diferente entao\n\t\t// este comando ira falhar, portanto realiza a copia do arquivo, executa o delete para entao\n\t\t// retornar a funcao\n\t\tboolean renomeou = origem.renameTo(destino);\n\t\t// Se o comando falhou entao tenta copiar e apagar o arquivo\n\t\tif (!renomeou)\n\t\t{\n\t\t\trenomeou = copiaArquivo(origem,destino);\n\t\t\t// Caso tenha conseguido copiar o arquivo origem para o destino, entao remove o arquivo\n\t\t\t// origem. Simulacao do move.\n\t\t\tif (renomeou)\n\t\t\t\trenomeou = origem.delete();\n\t\t}\n\t\treturn renomeou;\n\t}", "public void rename(String n){\n name = n;\r\n }", "public void renameTo(String newName, String path) {\n File curr = new File(path);\n String oldName = curr.getName();\n curr.renameTo(new File(curr.getParentFile(), newName));\n // log this rename step if any change is made.\n if (oldName != newName) {\n SystemMain.log(oldName, newName);\n }\n }", "public static void main(String[] args) throws IOException \n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tFile dir = new File(\"C:\\\\apache-tomcat-7.0.52\\\\webapps\\\\proj\");\t \n\t\t dir.mkdir();\n\t\t \n\t\t /* File dir1 = new File(\"C:\\\\Root\\\\module\");\n\t\t dir1.mkdir();\n\t\t \t \n\t\t File dir2 = new File(\"C:\\\\Root\\\\module\\\\file\"); \n\t\t dir2.mkdir(); \n\t\t \n\t\t File f=new File(\"C:\\\\Root\\\\module\\\\file\\\\rid.txt\");\n\t\t\tf.createNewFile();\n\t\t\tFileWriter fw=new FileWriter(f);\n\t\t\tfw.write(\"hi ridd\");\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\t\n\t\t\t File f1=new File(\"C:\\\\Root\\\\module\\\\file\\\\vid.txt\");\n\t\t f1.createNewFile();\n\t\t FileWriter fw1=new FileWriter(f1);\n\t\t\tfw1.write(\"hi vidd\");\n\t\t\tfw1.flush();\n\t\t\tfw1.close();\n\n\t\t\t File f2=new File(\"C:\\\\Root\\\\module\\\\file\\\\khu.txt\");\n\t\t\t f2.createNewFile();\n\t\t\t FileWriter fw2=new FileWriter(f2);\n\t\t\t fw2.write(\"hi khu\");\n\t\t\t fw2.flush();\n\t\t\t fw2.close();\n\t\t\t \n\t\t\t File f3=new File(\"C:\\\\Root\\\\module\\\\file\\\\anu.txt\");\n\t\t\t f3.createNewFile();\n\t\t\t FileWriter fw3=new FileWriter(f3);\n\t\t\t fw3.write(\"hi anuu\");\n\t\t fw3.flush();\n\t\t\t fw3.close();\n\t\t\t\t\t\t\n\t\t \n\t\t /*rename a file*/\n\t\t\t\t \n\t\t}", "@Test\r\n public void moveToFileWithSameName() {\r\n currentDirectory.addNewFile(\"file\");\r\n Dir dirWithFile = currentDirectory.getSubDirectoryByName(\"child\");\r\n File fileWithContents = dirWithFile.getFileByName(\"file\");\r\n fileWithContents.setContent(\"content\");\r\n command.executeCommand(\"file\", \"child/file\", root, currentDirectory);\r\n File fileInRoot = currentDirectory.getFileByName(\"file\");\r\n // content in file in root is removed\r\n assertTrue(fileInRoot.getContents().equals(\"\"));\r\n }", "private static INodeFile[] verifySrcFiles(FSDirectory fsd, String[] srcs,\n INodesInPath targetIIP, FSPermissionChecker pc) throws IOException {\n Set<INodeFile> si = new LinkedHashSet<>();\n final INodeFile targetINode = targetIIP.getLastINode().asFile();\n final INodeDirectory targetParent = targetINode.getParent();\n // now check the srcs\n for (String src : srcs) {\n final INodesInPath iip = fsd.getINodesInPath4Write(src);\n // permission check for srcs\n if (pc != null) {\n fsd.checkPathAccess(pc, iip, FsAction.READ); // read the file\n fsd.checkParentAccess(pc, iip, FsAction.WRITE); // for delete\n }\n\n final INode srcINode = iip.getLastINode();\n final INodeFile srcINodeFile = INodeFile.valueOf(srcINode, src);\n // make sure the src file and the target file are in the same dir\n if (srcINodeFile.getParent() != targetParent) {\n throw new HadoopIllegalArgumentException(\"Source file \" + src\n + \" is not in the same directory with the target \"\n + targetIIP.getPath());\n }\n // source file cannot be the same with the target file\n if (srcINode == targetINode) {\n throw new HadoopIllegalArgumentException(\"concat: the src file \" + src\n + \" is the same with the target file \" + targetIIP.getPath());\n }\n\n if(srcINodeFile.getStoragePolicyID() == HdfsConstants.DB_STORAGE_POLICY_ID) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" is stored in DB.\");\n }\n\n // source file cannot be under construction or empty\n if(srcINodeFile.isUnderConstruction() || srcINodeFile.numBlocks() == 0) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" is invalid or empty or underConstruction\");\n }\n // source file's preferred block size cannot be greater than the target\n // file\n if (srcINodeFile.getPreferredBlockSize() >\n targetINode.getPreferredBlockSize()) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" has preferred block size \" + srcINodeFile.getPreferredBlockSize()\n + \" which is greater than the target file's preferred block size \"\n + targetINode.getPreferredBlockSize());\n }\n si.add(srcINodeFile);\n }\n \n // make sure no two files are the same\n if (si.size() < srcs.length) {\n // it means at least two files are the same\n throw new HadoopIllegalArgumentException(\n \"concat: at least two of the source files are the same\");\n }\n return si.toArray(new INodeFile[si.size()]);\n }", "@Override\n public void caseARenamingExp(ARenamingExp node)\n {\n inARenamingExp(node);\n if(node.getRenameComp() != null)\n {\n node.getRenameComp().apply(this);\n }\n outARenamingExp(node);\n }", "public void copy(String name, String oldPath, String newPath);", "@ARule(\n\t\tsa = 66,\n\t\tdesc = \"Every link must have exactly one activity as source and one as target\",\n\t\tauthor = \"[email protected]\",\n\t\tdate = \"02/17/2007\",\n\t\terrors=\"BPELC_LINK__NAME_USED\"\n\t)\n\tpublic void rule_CheckIfSourceAlreadyUsed_12 () {\n\t\t\n\t\tfTargetMap = getValue(fFlowNode, FlowValidator.TARGET_MAP,null);\n\t\t\t\t\t\n\t\tIProblem problem;\n\t\t\n\t\tif (fTargetMap.containsKey(ncName)) {\n\t\t\tproblem = createError();\n\t\t\tproblem.fill(\"BPELC_LINK__NAME_USED\",\n\t\t\t\ttoString(mNode.nodeName()),\n\t\t\t\tncName\n\t\t\t);\t\t\t\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\t//\ttargets/target\n\t\tfTargetMap.put( ncName, mNode.parentNode().parentNode() );\n\t}", "private boolean doSingleFileMove(Path src, Path dst) throws IOException {\n RecoverableWriter writer;\n try {\n writer = fileSystem.createRecoverableWriter();\n } catch (UnsupportedOperationException ignore) {\n // Some writer not support RecoverableWriter, so fallback to per record moving.\n // For example, see the constructor of HadoopRecoverableWriter. Although it not support\n // RecoverableWriter, but HadoopPathBasedBulkFormatBuilder can support streaming\n // writing.\n return false;\n }\n\n RecoverableFsDataOutputStream out = writer.open(dst);\n try (FSDataInputStream in = fileSystem.open(src)) {\n IOUtils.copyBytes(in, out, false);\n } catch (Throwable t) {\n out.close();\n throw t;\n }\n out.closeForCommit().commit();\n return true;\n }", "@Override\n public MethodOutcome renameFileIntoRootOutcome() {\n return new MethodOutcome(MethodOutcome.Type.RETURNS_FALSE);\n }", "@Test\n public void checkIfNewFilenameAlreadyExists(){\n Music randomMusicCD1 = new Music(\"Random CD 1\", \"11/12/1993\",\"Rock\",\"Jack\",12,100);\n DiscFile<Music> randomMusicFile1 = new DiscFile<Music>(randomMusicCD1, randomMusicCD1.getTitle(), randomMusicCD1.getFullDetails(), \"randomcCD1\");\n\n Music randomMusicCD2 = new Music(\"Random CD 2\", \"08/05/2004\",\"Pop\",\"Ben\",8,70);\n DiscFile<Music> randomMusicFile2 = new DiscFile<Music>(randomMusicCD2, randomMusicCD1.getTitle(), randomMusicCD2.getFullDetails(), \"randomCD2\");\n\n boolean actual = rename.renameFile(\"tomsmith\",\"badboymusic\");\n assertTrue(actual);\n }", "public abstract void setName( String name ) throws SourceException;", "public void testRenameToNonJava() throws JavaModelException {\n\t\tIPath projectPath = env.addProject(\"Project\"); //$NON-NLS-1$\n\t\tenv.addExternalJars(projectPath, Util.getJavaClassLibs());\n\t\t\n\t\t// remove old package fragment root so that names don't collide\n\t\tenv.removePackageFragmentRoot(projectPath,\"\"); //$NON-NLS-1$\n\t\t\n\t\tIPath root = env.addPackageFragmentRoot(projectPath, \"src\"); //$NON-NLS-1$\n\t\tenv.setOutputFolder(projectPath, \"bin\"); //$NON-NLS-1$\n\t\t\n\t\tIPath cuPath = env.addClass(root, \"p1\", \"X\", //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"package p1;\\n\"+ //$NON-NLS-1$\n\t\t\t\"public class X extends Y {\\n\"+ //$NON-NLS-1$\n\t\t\t\"}\\n\" //$NON-NLS-1$\n\t\t\t);\n\t\t\t\n\t\tfullBuild(projectPath);\n\t\texpectingOnlyProblemsFor(cuPath);\n\t\texpectingOnlySpecificProblemFor(cuPath, new Problem(\"X\", \"Y cannot be resolved to a type\", cuPath, 35, 36, CategorizedProblem.CAT_TYPE)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\n\t\t\n\t\tenv.renameCU(root.append(\"p1\"), \"X.java\", \"X.txt\"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\tincrementalBuild(projectPath);\n\t\texpectingNoProblems();\n\t}", "public static void copy(String owner, Path src, Path target) throws CWLException {\r\n final Path finalSrc = toFinalSrcPath(src);\r\n if (src.toFile().exists() && Files.isReadable(src)) {\r\n CopyOption[] options = new CopyOption[] {\r\n StandardCopyOption.COPY_ATTRIBUTES,\r\n StandardCopyOption.REPLACE_EXISTING\r\n };\r\n final Path finalTarget = toFinalTargetPath(src, target);\r\n if (!finalTarget.getParent().toFile().exists()) {\r\n logger.debug(\"mkdir \\\"{}\\\"\", finalTarget.getParent());\r\n mkdirs(owner, finalTarget.getParent());\r\n }\r\n logger.debug(\"copy \\\"{}\\\" to \\\"{}\\\"\", finalSrc, finalTarget);\r\n try {\r\n if (finalSrc.toFile().isDirectory()) {\r\n Files.walkFileTree(finalSrc, new FileVisitor<Path>() {\r\n @Override\r\n public FileVisitResult preVisitDirectory(Path dir,\r\n BasicFileAttributes attrs) throws IOException {\r\n Files.copy(dir, finalTarget.resolve(finalSrc.relativize(dir)),\r\n StandardCopyOption.COPY_ATTRIBUTES);\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\r\n Files.copy(file, finalTarget.resolve(finalSrc.relativize(file)),\r\n StandardCopyOption.COPY_ATTRIBUTES);\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\r\n throw exc;\r\n }\r\n });\r\n } else {\r\n Files.copy(finalSrc, finalTarget, options);\r\n }\r\n } catch (IOException e) {\r\n throw new CWLException(\r\n ResourceLoader.getMessage(\"cwl.io.copy.failed\",\r\n finalSrc.toString(),\r\n finalTarget.toString(),\r\n e.getMessage()),\r\n 255);\r\n }\r\n } else {\r\n throw new CWLException(ResourceLoader.getMessage(\"cwl.io.file.unaccessed\", finalSrc.toString()),\r\n 255);\r\n }\r\n }", "private void renameFile() {\n ProjectFile file = (ProjectFile) viewer.getSelectedNode();\n String newName = (String)\n JOptionPane.showInputDialog(\n viewer,\n \"Enter the new name of the file:\",\n \"Rename file\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n null,\n file.toFile().getName()\n );\n \n if (newName != null) {\n Project p = viewer.getCurrentProject();\n \n File oldFile = file.toFile();\n\n Buffer b = jEdit.getBuffer(oldFile.getAbsolutePath());\n if (b != null) {\n jEdit.closeBuffer(viewer.getView(),b);\n }\n \n File newFile = new File(oldFile.getParent() + File.separator + newName);\n if (!oldFile.renameTo(newFile)) {\n JOptionPane.showMessageDialog(\n viewer,\n \"Could not rename selected file!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE\n );\n }\n \n if (b != null) {\n jEdit.openFile(viewer.getView(),newFile.getAbsolutePath());\n }\n \n p.removeFile(file);\n p.importFile(new ProjectFile(newFile.getAbsolutePath()));\n }\n }", "@Test\n public void testUpdatePropertiesNameToAlreadyExisting() throws Exception {\n final MockSession session = spy(this.session);\n final Node root = new MockNode(session);\n\n MockContext ctx = (MockContext) MgnlContext.getInstance();\n ctx.addSession(WORKSPACE_NAME, session);\n\n // mocking rename operation\n doAnswer(new Answer<Void>() {\n\n @Override\n public Void answer(InvocationOnMock invocation) throws Throwable {\n String srcAbsPath = (String) invocation.getArguments()[0];\n String dstAbsPath = (String) invocation.getArguments()[1];\n session.removeItem(srcAbsPath);\n String dstRelPath = StringUtils.substringAfter(dstAbsPath, root.getPath());\n root.addNode(dstRelPath);\n return null;\n }\n }).when(session).move(anyString(), anyString());\n\n // GIVEN\n String existingName = \"existingName\";\n String subNodeName = \"subNode\";\n\n root.setProperty(existingName, \"42\");\n Node subNode = root.addNode(subNodeName);\n long nodeCount = root.getNodes().getSize();\n long propertyCount = root.getProperties().getSize();\n DummyJcrNodeAdapter adapter = new DummyJcrNodeAdapter(subNode);\n\n // WHEN\n adapter.getItemProperty(ModelConstants.JCR_NAME).setValue(existingName);\n adapter.applyChanges();\n\n // THEN\n assertTrue(root.hasProperty(existingName));\n assertFalse(root.hasNode(existingName));\n assertFalse(root.hasNode(subNodeName));\n assertEquals(nodeCount, root.getNodes().getSize());\n assertEquals(propertyCount, root.getProperties().getSize());\n }", "@Override\n\tpublic void rename(String newName) {\n\t\tint lastDot = newName.lastIndexOf('.');\n\t\tif (lastDot == -1) {\n\t\t\tclsInfo.changeShortName(newName);\n\t\t\treturn;\n\t\t}\n\t\tif (isInner()) {\n\t\t\taddWarn(\"Can't change package for inner class: \" + this + \" to \" + newName);\n\t\t\treturn;\n\t\t}\n\t\t// change class package\n\t\tString newPkg = newName.substring(0, lastDot);\n\t\tString newShortName = newName.substring(lastDot + 1);\n\t\tif (changeClassNodePackage(newPkg)) {\n\t\t\tclsInfo.changePkgAndName(newPkg, newShortName);\n\t\t} else {\n\t\t\tclsInfo.changeShortName(newShortName);\n\t\t}\n\t}", "public boolean rename(String dest) {\n\t\treturn this.rename(new File(dest));\n\t}", "@Override\r\n\tpublic void move(String srcAbsPath, String destAbsPath)\r\n\t\t\tthrows ItemExistsException, PathNotFoundException,\r\n\t\t\tVersionException, ConstraintViolationException, LockException,\r\n\t\t\tRepositoryException {\n\t\t\r\n\t}", "public void setRename( String rename ) {\n rename_ = rename;\n }", "public void updateClassNameinAST(List<String> originalNames, String newSuffix) {\n\t\t\n\t\tList<SimpleName> updateableNames;\n\t\tString originalName;\n\t\tSimpleName nameToUpdate;\n\t\t\t\n\t\tupdateableNames = this.gpMaterial.getUpdateableNames();\n\t\t\t\n\t\tCollections.sort(updateableNames, new Comparator<SimpleName>() {\n\t\t\tpublic int compare(SimpleName f1, SimpleName f2) {\n\t\t\t\treturn f1.toString().compareTo(f2.toString());\n\t\t\t}\n\t\t});\n\t\tCollections.sort(originalNames);\n\t\tint origNameIndex = 0;\n\t\tboolean foundAtLeastOnce = false;\n\t\t\n\t\tfor (int upNamesIndex = 0; upNamesIndex < updateableNames.size()\n\t\t\t\t&& origNameIndex < originalNames.size(); upNamesIndex++) {\n\t\t\t\t\t\n\t\t\t\tnameToUpdate = updateableNames.get(upNamesIndex);\n\t\t\t\toriginalName = originalNames.get(origNameIndex);\n\t\t\t\tif (nameToUpdate.toString().startsWith(originalName + \"_\")\n\t\t\t\t\t\t|| nameToUpdate.toString().equals(originalName)) {\n\n\t\t\t\t\tNodeOperators.rename(nameToUpdate,\n\t\t\t\t\t\t\toriginalName + newSuffix, getRewriter());\n\t\t\t\t\t\n\t\t\t\t\tfoundAtLeastOnce = true;\n\t\t\t\t} else if (foundAtLeastOnce) {\n\t\t\t\t\t// we've found at least one instance of the simpleName that\n\t\t\t\t\t// needed updating\n\t\t\t\t\torigNameIndex++; // on to the next name that needs to be\n\t\t\t\t\t\t\t\t\t\t// updated\n\t\t\t\t\tfoundAtLeastOnce = false;\n\t\t\t\t\tupNamesIndex--;\n\t\t\t\t}\n\t\t}\n\t\tgetCodeString();\n\t}", "@Override\r\n\tpublic void updateName(int eno, String newName) {\n\r\n\t}", "public void execute(Request request, Response response, boolean do_copy) throws IOException, HTTPException {\n\t\t\n\t\tURI uri = request.getUri();\n\t\tIDirectory source_parent = getParent(uri); // Get the parent directory of the source location.\n\t\tString source_base_name = UriUtil.baseName(uri); // Get the name of the location within that directory.\n\t\tString if_header = request.getHeader(HTTP.HEADER_IF); // Get the If header.\n\t\tString lock_token = getLockTokenFromIfHeader(if_header);\n\t\t\n\t\tDiagnostic.trace(\"Source name = \" + source_base_name, Diagnostic.RUN);\n\t\t\n\t\t// Deal with the destination location.\n\t\tString destination_header = request.getHeader(HTTP.HEADER_DESTINATION);\n\t\tif (destination_header == null) throw new HTTPException(\"No destination specified\");\n\t\t\n\t\ttry {\n\t\t\tURI destination_file_path = new URI(destination_header); // Get the file path of the destination location.\n\t\t\tIDirectory destination_parent = getParent(destination_file_path); // Get the parent directory of that location.\n\t\t\tString destination_base_name = UriUtil.baseName(destination_file_path); // Get the name of the location within that directory.\n\t\t\t\n\t\t\t// Should overwrite unless flag explicitly set to false in header.\n\t\t\t// See RFC 2518 8.8.6/7.\n\t\t\tboolean overwrite = shouldOverwrite(request);\n\t\t\t\n\t\t\t// Remember whether destination is non-null, for setting result code.\n\t\t\tboolean destination_not_null = destination_parent.contains(destination_base_name);\n\t\t\t\n\t\t\t// If a lock token was specified in an If header, the file must be currently locked with the given token.\n\t\t\tif (lock_token != null) lock_manager.checkWhetherLockedWithToken(uri, lock_token);\n\t\t\t\n\t\t\t// TODO check if the destination is locked, in which case must have lock token. Ditto for source in case of move.\n\t\t\t\n\t\t\t// Either copy the object or move it.\n\t\t\tif (do_copy) {\n\t\t\t\tfile_system.copyObject(source_parent, source_base_name, destination_parent, destination_base_name, overwrite);\n\t\t\t} else {\n\t\t\t\tfile_system.moveObject(source_parent, source_base_name, destination_parent, destination_base_name, overwrite);\n\t\t\t}\n\t\t\t\n\t\t\tif (destination_not_null) response.setStatusCode(HTTP.RESPONSE_NO_CONTENT);\n\t\t\telse response.setStatusCode(HTTP.RESPONSE_CREATED);\n\t\t\t\n\t\t\tresponse.close();\n\t\t}\n\t\tcatch (LockUseException e) {\n handleLockException(lock_token, e);\n\t\t}\n\t\tcatch (BindingAbsentException e) {\n\t\t\tthrow new HTTPException(\"Source object not found\", HTTP.RESPONSE_NOT_FOUND, true);\n\t\t}\n\t\tcatch (BindingPresentException e) {\n\t\t\tthrow new HTTPException(\"Destination non-null with no-overwrite\", HTTP.RESPONSE_PRECONDITION_FAILED, true);\n\t\t}\n\t\tcatch (PersistenceException e) {\n\t\t\tthrow new HTTPException(\"Couldn't create copy\", HTTP.RESPONSE_INTERNAL_SERVER_ERROR, true);\n\t\t}\n\t\tcatch (URISyntaxException e) {\n\t\t\tthrow new HTTPException(\"Invalid destination path\", HTTP.RESPONSE_BAD_REQUEST, true);\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n String datasetName = \"renameTestDS\";\n _dataset = TDBFactory.createDataset(datasetName);\n _renameTestModel = _dataset.getNamedModel(\"http://www.boeing.com/sem/renametest\");\n\n try {\n String res1 = \"http://www.boeing.com/sem/renametest#User-user7\";\n String res2 = \"http://www.boeing.com/sem/renametest#User-user8\";\n\n Resource res1Resource = _renameTestModel.createResource(res1);\n Property typeProp = ResourceFactory.createProperty(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\");\n Resource thing = _renameTestModel.createResource(\"http://www.w3.org/2002/07/owl#Thing\");\n\n Statement stmt = ResourceFactory.createStatement(res1Resource, typeProp, thing);\n\n _renameTestModel.add(stmt);\n ResourceUtils.renameResource(res1Resource, res2);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "void copy(IRodinElement container, IRodinElement sibling, String rename,\n\t\t\tboolean replace, IProgressMonitor monitor) throws RodinDBException;", "public void testNewSeqCloneNamedSrcConflict() throws Exception\n {\n String accid = \"T00513\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setCellLine(\"HeLa\");\n MolecularSource ms =\n msProcessor.processNewSeqSrc(accid, raw);\n assertEquals(new Integer(-40), ms.getMSKey());\n // check qc tables\n String sql = \"select count(*) from QC_MS_NameConflict \" +\n \"where _jobstream_key = \" + jobkey;\n ResultsNavigator nav = radar.executeQuery(sql);\n RowReference row = nav.getRowReference();\n nav.next();\n assertEquals(new Integer(1), row.getInt(1));\n\n }", "private void correctConflictingNames(final List<DataObject> sourceDataObjects, final ObjectIdentity<?> targetLocationIdentity, final DmsOperation operation) throws ServiceException {\n final Map<ObjectIdentity<?>, String> originalNames = newHashMap();\n Map<String, DataObject> unresolvedDataObjects = newHashMap();\n final Set<String> resolvedNamesLowercased = newHashSet();\n\n for (final DataObject dataObject : sourceDataObjects) {\n final String objectName = getObjectNameProperty(dataObject);\n originalNames.put(dataObject.getIdentity(), objectName);\n unresolvedDataObjects.put(objectName.toLowerCase(), dataObject);\n }\n\n // Loop until all names are resolved (i.e. no more conflicts)\n int attempt = 0;\n while (!unresolvedDataObjects.isEmpty()) {\n ++attempt;\n\n // Get names conflicting with objects in repository\n final Collection<String> conflictingNamesInRepository = getConflictingNamesInRepository(unresolvedDataObjects.keySet(), targetLocationIdentity);\n\n // Move non-conflicting objects to resolved\n final Iterator<Entry<String, DataObject>> unresolvedDataObjectsIterator = unresolvedDataObjects.entrySet().iterator();\n while (unresolvedDataObjectsIterator.hasNext()) {\n final Entry<String, DataObject> unresolvedDataObjectsEntry = unresolvedDataObjectsIterator.next();\n final String nameLowercased = unresolvedDataObjectsEntry.getKey();\n if (!conflictingNamesInRepository.contains(nameLowercased)) {\n resolvedNamesLowercased.add(nameLowercased);\n unresolvedDataObjectsIterator.remove();\n }\n }\n\n // For conflicting objects, apply name correction template and rebuild map of unresolved objects\n final Map<String, DataObject> newUnresolvedDataObjects = newHashMap();\n for (final Entry<String, DataObject> unresolvedDataObjectsEntry : unresolvedDataObjects.entrySet()) {\n final DataObject unresolvedDataObject = unresolvedDataObjectsEntry.getValue();\n final String currentName = getObjectNameProperty(unresolvedDataObject);\n final String originalName = originalNames.get(unresolvedDataObject.getIdentity());\n final String originalBaseName = removeExtension(originalName);\n final String originalExtensionSuffix = originalName.substring(originalBaseName.length()); // extension including dot (if any)\n\n final String correctedBaseName = String.format(\n getConfig().getConflictingNameTemplate(operation, attempt),\n originalBaseName, attempt, attempt + 1\n );\n final String correctedName = correctedBaseName + originalExtensionSuffix;\n\n if (correctedName.equalsIgnoreCase(currentName)) {\n throw new InsightConfigurationException(String.format(\n \"Failed resolving name conflict for '%s'. Please check '%s' configuration setting\",\n originalName, String.format(\"dataObject.%s.conflictingNameTemplate\", operation.name().toLowerCase()) // TODO(): think how to avoid duplicating property name here and in config class\n ));\n }\n\n final String correctedNameLowercased = correctedName.toLowerCase();\n if (!resolvedNamesLowercased.contains(correctedNameLowercased)) {\n // No conflict with previously resolved names ==> apply name correction\n unresolvedDataObject.getProperties().set(\"object_name\", correctedName);\n newUnresolvedDataObjects.put(correctedNameLowercased, unresolvedDataObject);\n } else {\n // Conflict with a previously resolved name ==> do not apply name correction\n newUnresolvedDataObjects.put(unresolvedDataObjectsEntry.getKey(), unresolvedDataObject);\n }\n }\n unresolvedDataObjects = newUnresolvedDataObjects;\n }\n }", "@Override\r\n\tpublic boolean renameFolder(String oldDirName, String newDirName) throws FileSystemUtilException {\r\n\t\tthrow new FileSystemUtilException(\"000000\",null,Level.ERROR,null);\r\n\r\n\t}", "private void moveToFinal(String imageName, String sourceDirectory,\n\t\t\t\tString destinationDirectory) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\ttry {\n\n\t\t\t\tFile afile = new File(sourceDirectory + imageName);\n\t\t\t\tFile bfile = new File(destinationDirectory + imageName);\n\t\t\t\tif (afile.renameTo(bfile)) {\n\t\t\t\t\tSystem.out.println(\"File is moved successful!\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"File is failed to move!\");\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}", "public void move(String source, String dest)\n throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, RepositoryException {\n if (!(repository.getDataSource() instanceof ExternalDataSource.Writable)) {\n throw new UnsupportedRepositoryOperationException();\n }\n if (source.equals(dest)) {\n return;\n }\n ExternalData oldData = repository.getDataSource().getItemByPath(source);\n ((ExternalDataSource.Writable) repository.getDataSource()).move(source, dest);\n ExternalData newData = repository.getDataSource().getItemByPath(dest);\n if (oldData.getId().equals(newData.getId())) {\n return;\n }\n getRepository()\n .getStoreProvider()\n .getIdentifierMappingService()\n .updateExternalIdentifier(oldData.getId(), newData.getId(), getRepository().getProviderKey(),\n getRepository().getDataSource().isSupportsHierarchicalIdentifiers());\n }", "private void updateFileName(ImageDataModel dataModel, String rename) {\r\n try {\r\n File file = dataModel.getFile();\r\n // method to rename the file and then set to model data for update the index of file in main list\r\n dataModel.setFile(FileUtils.renameFile(dataModel.getFile(), rename));\r\n if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance())\r\n .equals(Constant.LIST_VIEW)) {\r\n GalleryHelper.imageFolderMap.get(nameKey).get(0).setFile(dataModel.getFile());\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelper.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n }\r\n }\r\n if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).\r\n equals(Constant.ALBUM_VIEW)) {\r\n // Update the name of Main List of GalleryHelper.class\r\n GalleryHelper.imageFolderMap.get(nameKey).get(0).setFile(dataModel.getFile());\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelper.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageDataModelList.get(0).setFile(dataModel.getFile());\r\n }\r\n }\r\n\r\n /*\r\n * Scan old and new file to update entry into content provider.\r\n * */\r\n FileUtils.scanFile(PhotoViewActivity.this, dataModel.getFile());\r\n FileUtils.scanFile(PhotoViewActivity.this, file);\r\n // update local database for time\r\n mediaFileDuration.updateFileName(dataModel.getFile().getAbsolutePath(), file.getAbsolutePath());\r\n //Update toolbar with new file name\r\n String name = dataModel.getFile().getName();\r\n String actualName = FileUtils.getSecureFileName(name);\r\n if (actualName != null && !actualName.equalsIgnoreCase(\"\")) {\r\n updateTileBar(actualName);\r\n } else {\r\n updateTileBar(name);\r\n }\r\n } catch (Exception e) {\r\n SDKUtils.showToast(PhotoViewActivity.this, e.toString());\r\n }\r\n }", "public static WTPartUsageLink changeLink(String parentOid, String childOid, String newChildOid) throws RemoteException, WTException, WTPropertyVetoException {\n WTPartUsageLink link = FindLink.findLink(parentOid, childOid);\n\n WTPart newChildPart = null;\n NmOid newChildNmOid = NmOid.newNmOid(newChildOid);\n Object refObject = newChildNmOid.getRefObject();\n if (refObject != null && refObject instanceof WTPart) {\n newChildPart = (WTPart) refObject;\n }\n\n if (link != null) {\n link.setUses(newChildPart.getMaster());\n //保存\n link = (WTPartUsageLink) PersistenceHelper.manager.save(link);\n\n WTPart roleA = link.getUsedBy();\n WTPartMaster roleB = link.getUses();\n System.out.println(\"new link :\" + link);\n System.out.println(\"roleA parent :\" + roleA.getName());\n System.out.println(\"roleB child :\" + roleB.getName());\n }\n\n return link;\n }", "private RestNodeModel renameNode(ContentModel node)\n {\n String newName = node.getName() + \"_updated\";\n JsonObject renameJson = Json.createObjectBuilder().add(\"properties\",\n Json.createObjectBuilder().add(\"cm:name\", newName)).build();\n return restClient.authenticateUser(testUser).withCoreAPI().usingNode(node).updateNode(renameJson.toString());\n }", "@Test\n public void testExec4() throws Exception {\n mv.exec(new String[]{\"mv\", \"reg1\", \"reg2\"}, io);\n assertEquals(\"overwrite\", ((MockFileSystem) fs).getFileRecord());\n }" ]
[ "0.6340741", "0.6027258", "0.59873736", "0.5959073", "0.5853283", "0.58417165", "0.58362377", "0.5782541", "0.57773423", "0.57278734", "0.5711694", "0.56709415", "0.5653397", "0.56281346", "0.56128484", "0.5608713", "0.55824167", "0.55617017", "0.5559338", "0.55012417", "0.5492031", "0.54873216", "0.5484054", "0.5472241", "0.5471874", "0.5418858", "0.53866136", "0.53267664", "0.53237885", "0.53108627", "0.5298765", "0.5283174", "0.5270759", "0.5265986", "0.525776", "0.52551013", "0.52493936", "0.5240613", "0.5213728", "0.52118105", "0.5180972", "0.51759946", "0.51584464", "0.51548946", "0.5142151", "0.5113026", "0.51126975", "0.5092585", "0.5090362", "0.5050334", "0.50499076", "0.5031649", "0.50214076", "0.501247", "0.5011361", "0.50055695", "0.49978983", "0.4993212", "0.4990573", "0.49893415", "0.49872246", "0.49805528", "0.49696925", "0.49574456", "0.49540895", "0.4945527", "0.49373806", "0.49131584", "0.49075407", "0.48955783", "0.489263", "0.4888092", "0.48856762", "0.48854265", "0.48838896", "0.48826203", "0.48549348", "0.48508623", "0.48409447", "0.48298246", "0.48293558", "0.48266974", "0.48222175", "0.48185086", "0.48167157", "0.4784086", "0.47703493", "0.4768655", "0.47608113", "0.47551388", "0.47405356", "0.47396424", "0.47258148", "0.47145307", "0.4714044", "0.47123012", "0.47105786", "0.46990457", "0.46970135", "0.46940964" ]
0.61915475
1
/ Intent edicion=new Intent(este,Modpasmisg1.class); edicion.putExtra("nombre",movie.getTitle()); edicion.putExtra("dias",String.valueOf(movie.getDias())); Log.d("descripcion",movie.getGenre()); edicion.putExtra("descripcion",movie.getGenre()); edicion.putExtra("categoria",String.valueOf(movie.getCategoria())); este.startActivity(edicion);
@Override public void onClick(View view) { final int[] n = {1}; AlertDialog.Builder b = new AlertDialog.Builder(este); Object[] objectList = nombres.toArray(); final String[] types = Arrays.copyOf(objectList,nombres.size(),String[].class); b.setTitle("Seleccione un logro"); b.setItems(types, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); movie.setLogro(numeritos.get(which)); holder.genre.setText(types[which]); moviesList.set(position,movie); //------------------------------------- Toast.makeText(este, "Logro asignado!", Toast.LENGTH_LONG).show(); //------------------------------------- //Log.d("numeritosel",""+nombres.get(which)); } }); b.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n\n Intent i = new Intent(context, DetailActivity.class); //create intent to switch screen\n\n //trying to place movie into putExtra by putting it into Parcelable value (bc method can't take movie object)\n //we use Parcelable (go to AndroidStudio ref. where they have the code to allow u to use Parceler library\n //essentially, you place the implementation code into buildgradle file\n i.putExtra(\"movie\", Parcels.wrap(movie));\n //add @Parcel to Movie class and add empty constructor as shown in AU (android U) page + empty constructor\n //now you can go to DetailActivity to retrieve the whole movie object just by using an intent\n\n context.startActivity(i);\n\n }", "@Override\n public void onClick(View view) {\n String moviename=pname2.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n String moviename=pname4.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n String moviename=pname3.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n String moviename=pname5.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n String moviename=pname.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n Intent i = new Intent(getActivity(), CadastroDespesaItem.class);\n i.putExtra(\"Reembolso\", Reembolso);\n Bundle params = new Bundle();\n params.putString(\"CU_LOGIN\", prpUsuario_Logado);\n params.putString(\"CU_ID\", prpUsuario_ID);\n params.putString(\"TIPO_PESQUISA\", _gsTIPOPESQUISA);\n i.putExtras(params);\n\n startActivity(i);\n }", "@Override\n public void onClick(Movie movie) {\n Intent intent = new Intent(this, DetailActivity.class);\n intent.putExtra(Intent.EXTRA_TEXT, movie);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), DetailActivity.class)\n .putExtra(\"title\", model.getMovieName())\n .putExtra(\"vote_average\", model.getVotes() + \"\")\n .putExtra(\"overview\", model.getMovieOverview())\n .putExtra(\"popularity\", model.getMoviePopularity() + \"\")\n .putExtra(\"release_date\", model.getMovieReleaseDate())\n .putExtra(\"vote_count\", model.getMovieVoteCount())\n .putExtra(\"Picture\", model.getMoviePoster());\n\n startActivity(intent);\n\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(getActivity(),VerTerapiaRecyclerActivity.class);\n i.putExtra(\"nombre\", getActivity().getIntent().getExtras().getString(\"nombre\"));\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n\n\n Intent int1 = new Intent(getApplicationContext(), lista.class);\n int1.putExtra(\"variableInvitado\", Sesion);\n startActivity(int1 );\n }", "@Override\n public void onClick(View v) {\n Intent p1page = new Intent(v.getContext(), AshmoleanMusuem.class);\n startActivity(p1page);\n }", "@Override\n public void onDetailsClick(int position) {\n Intent intent = new Intent(getActivity(), MovieViewActivity.class);\n intent.putExtra(\"movieName\", memoirs.get(position).getMovieName());\n intent.putExtra(\"userId\", userId);\n intent.putExtra(\"from\", \"memoir\");\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setClass(getApplicationContext(), Atividade2.class);\n //envio do parametro chamado parametro1\n intent.putExtra(\"parametro1\", \"este é um parametro\");\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent=new Intent(activity.getApplicationContext(),ServisTalebi.class);\n intent.putExtra(\"id\",talep.getId().toString());\n intent.putExtra(\"baslik\",talep.getBaslik().toString());\n intent.putExtra(\"aciklama\",talep.getAciklama().toString());\n intent.putExtra(\"durum\",talep.getDurum().toString());\n intent.putExtra(\"yorum\",talep.getYorum().toString());\n\n activity.startActivity(intent);\n\n\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, DetailActivity.class);\n intent.putExtra(\"nb\", nama[position]);\n intent.putExtra(\"gb\", gambar[position]);\n intent.putExtra(\"dt\", detail[position]);\n context.startActivity(intent);\n\n\n\n\n }", "@Override\n public void onClick(View v) {\n Referinta.Verset = v.getId();\n\n Intent intent = new Intent(getContext(), TextActivity.class);\n // 2. put key/value data\n\n // intent.putExtra(\"referinta\", referinta );\n // intent.putExtra(\"message\", capitole[1]);\n\n // 3. or you can add data to a bundle\n\n\n // 5. start the activity\n startActivity(intent);\n // finish();\n\n }", "@Override\n public void onClick(Movie movie) {\n Intent intent = new Intent(this, DetailActivity.class);\n //send movie object\n intent.putExtra(ConstantsClass.SELECTED_MOVIE_EXTRA_KEY, movie);\n //start Detail Activity\n startActivityForResult(intent, 1);\n }", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition(); // item pos\n if (position != RecyclerView.NO_POSITION) { // if position is valid\n Movie movie = movies.get(position); // get movie at current position\n Intent intent = new Intent(context, MovieDetailsActivity.class); // makes intent\n intent.putExtra(Movie.class.getSimpleName(), Parcels.wrap(movie));\n // ^^ serializes movie using parceler. it uses short name as key, movie as value\n context.startActivity(intent); // start activity\n }\n }", "@Override\n public void onClick(View v) {\n Intent i=new Intent(mContext,DetailAnnonceCovoitureur.class);\n Intent intent=((Activity) mContext).getIntent();\n String s=intent.getStringExtra(\"action\");\n i.putExtra(\"action\",s);\n Bundle b = new Bundle();\n b.putSerializable(\"annonce\",annonceCovoitureurs.get(position));\n i.putExtras(b);\n mContext.startActivity(i);\n }", "@Override\n public void onClick(View v) {\n Movie movieItem = (Movie) containerView.getTag (); // getting the current movie item from setTag(movieItem)\n int position = getAdapterPosition (); //getting the position index i.e. it start from 0\n Log.d(\"Position\", \"\"+position + movieItem.getTitle ());\n Intent intent = new Intent (v.getContext (), DetailActivity.class);\n\n // intent.putParcelableArrayListExtra(\"ALLMOVIELIST\", (ArrayList<? extends Parcelable>) allList);\n intent.putExtra (\"movieTitle\", movieItem.getTitle ());\n intent.putExtra (\"movieImage\", movieItem.getImage());\n\n v.getContext ().startActivity (intent);\n }", "void mChapie(){\n Intent i = new Intent(context,Peminjaman.class);\n context.startActivity(i);\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n MovieWithDetails movie = movies.get((NUM_ITEMS_PER_PAGE * increment) + position);\n Intent singleMovie = new Intent(ListViewActivity.this, SingleMovieActivity.class);\n singleMovie.putExtra(\"title\", movie.getMovie().getTitle());\n singleMovie.putExtra(\"year\", String.valueOf(movie.getMovie().getYear()));\n singleMovie.putExtra(\"director\", movie.getMovie().getDirector());\n ArrayList<String> genres = new ArrayList<>();\n ArrayList<String> stars = new ArrayList<>();\n for (Genre g : movie.getGenres()) {\n genres.add(g.getName());\n }\n for (Star s : movie.getStars()) {\n stars.add(s.getName());\n }\n singleMovie.putStringArrayListExtra(\"genres\", genres);\n singleMovie.putStringArrayListExtra(\"stars\", stars);\n\n startActivity(singleMovie);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent it = new Intent(ManaInsertActivity.this,ManaMediActivity.class); \n it.putExtras(it);\n startActivity(it);\n\t\t\t}", "public void goToCrearMomentoActivity(int i, Momento momento){\n Intent intent = new Intent(getApplicationContext(),CrearMomentoActivity.class);\n Bundle bundle = new Bundle();\n bundle.putInt(\"opcion\",i);\n intent.putExtra(\"opcion\",i);\n intent.putExtra(\"momento\",momento);\n startActivity(intent);\n }", "public void miClick(View v){\n Bundle bundle = new Bundle();\n bundle.putString(\"nombre\", edtNombre.getText().toString());\n bundle.putString(\"apellido\", edtApellido.getText().toString());\n int iEdad = Integer.parseInt(edtEdad.getText().toString());\n bundle.putInt(\"edad\",iEdad);\n int iSexo;\n if(rgS.getCheckedRadioButtonId() == R.id.rbtnM)\n iSexo = 0;\n else if(rgS.getCheckedRadioButtonId() == R.id.rbtnF)\n iSexo = 1;\n else\n iSexo = 2;\n bundle.putInt(\"sexo\", iSexo);\n inDatos.putExtras(bundle);\n startActivity(inDatos);\n\n }", "public void vistaApoyo (View view){\n Intent interfaz = new Intent(this,MainApoyo.class);\n Intent enviar = new Intent( view.getContext(), MainNivelesReto.class );\n //Metodo que me permite crear variable\n enviar.putExtra(\"IdCategoria\", getIntent().getStringExtra(\"IdCategoria\") );\n startActivity(interfaz);\n finish();\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(mContext, ItemDetailsActivity.class);\n\n intent.putExtra(\"name\", modellist.get(postition).getTitle());\n intent.putExtra(\"picture\", modellist.get(postition).getType() + postition);\n intent.putExtra(\"cost\", modellist.get(postition).getCost());\n intent.putExtra(\"id\", modellist.get(postition).getId());\n intent.putExtra(\"description\", modellist.get(postition).getDescription());\n intent.putExtra(\"extra\", modellist.get(postition).getExtra());\n\n mContext.startActivity(intent);\n// Toast.makeText(mContext, \"Make the user see the details of the item\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\tMovie movie=movieList.get(position);\n\t//\t\t\t\tToast.makeText(getActivity(), movie.getJianjie(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\n\t\t\t\t\tIntent intent = new Intent(getActivity(),com.demo.cats.MovieDetailsActivity.class);\n\t\t\t\t\tfinal All mymovie = (All)getActivity().getApplication();\n\t\t\t\t\tmymovie.setMymovie(movie.getNamemovie());\n//\t\t\t\t\tToast.makeText(getActivity(), cinema.getAddresscinema(), Toast.LENGTH_SHORT).show();\n\n\t\t\t \tstartActivity(intent); \n\t\t\t\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, layout2Activity.class);\n\n //creo bundle que va a llevar los datos ingresados\n Bundle datos = new Bundle();\n\n //agrego datos ingresados al bundle creado\n datos.putString(\"nombre\", nombreIngresado.getText().toString());\n datos.putString(\"apellido\", apellidoIngresado.getText().toString());\n datos.putString(\"edad\", edadIngresada.getText().toString());\n\n //asocio el bundle con el intent creado arriba\n intent.putExtras(datos);\n\n //ejecuto el intent\n startActivity(intent);\n\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(context, NewsDetails.class);\n intent.putExtra(\"desc\", desc.getText().toString()); // here key is = desc\n intent.putExtra(\"pubdate\", pub.getText().toString()); //key is = pubdate ,, nd in next activity key must be same\n intent.putExtra(\"title\", txtTitle.getText().toString());\n intent.putExtra(\"shdesc\", shdesc.getText().toString());\n intent.putExtra(\"postedby\", uname.getText().toString());\n context.startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n\n Movie movie = new Movie(\"abc\");\n ContentValues contentValues = new ContentValues();\n contentValues.put(MoviesContract.Movies.TITLE,movie.getTitle());\n getContentResolver().insert(MoviesContract.Movies.CONTENT_URI,contentValues);\n //fetchMovies();\n\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, MovieTrailerActivity.class); // makes intent\n\n // grab videolink\n//\n// String url = API_BASE_URL + \"/movie/\" + movie.getId() + \"/videos\"; // create url -- endpoint is videos\n// RequestParams params = new RequestParams();\n// params.put(API_KEY_PARAM, \"a07e22bc18f5cb106bfe4cc1f83ad8ed\"); // api key always required\n// client.get(url, params, new JsonHttpResponseHandler() {\n// @Override\n// public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n// try {\n// JSONArray results = response.getJSONArray(\"results\"); // root node\n// String video_key = results.getJSONObject(0).getString(\"key\");\n// Toast.makeText(context, video_key, Toast.LENGTH_SHORT).show();\n//\n// } catch (JSONException e) {\n// Toast.makeText(context, \"failed to retreive video\", Toast.LENGTH_SHORT).show();\n// }\n// }\n//\n// @Override\n// public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n// Toast.makeText(context, \"failed to retreive video\", Toast.LENGTH_SHORT).show();\n// }\n// });\n\n //intent.putExtra(Movie.class.getSimpleName(), Parcels.wrap(movie));\n // ^^ serializes movie using parceler. it uses short name as key, movie as value\n context.startActivity(intent); // start activity\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n MovieDetails movieDetails = movieDetailsAdapter.getItem(i);\n Intent intent = new Intent(MainActivity.this,MovieDetailActivity.class);\n intent.putExtra(\"movieDetails\",movieDetails);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(chitietsanpham.this, thanhtoandathang.class);\n // Intent intent = new Intent(mContext,chitietsanpham.class);\n intent.putExtra(\"name\",name);\n // intent.putExtra(\"image\",mData.get(position).getPhoto());\n intent.putExtra(\"gia\",gia1);\n startActivity(intent);\n }", "@Override public void onClick(View view) {\n Intent nuevo_lugar = new Intent(getApplicationContext(), EdicionLugarActivity.class);\n nuevo_lugar.putExtra(\"_id\", \"UID\");\n startActivity(nuevo_lugar);\n }", "public void onClick(View v) {\n\n finish();\n Intent i=new Intent(getApplicationContext(),menhde.class);\n i.putExtra(\"id\", \"7\");\n startActivity(i);\n\n }", "@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, stringdata); //putting the data into the intent\r\n startActivity(mysqlintent); //launching the mysql activity\r\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Intent intent = new Intent(MainActivity.this, TarefaActivity.class);\n intent.putExtra(\"TITULO\", tarefas.get(position).getNome());\n\n\n Intent inten2 = new Intent (MainActivity.this, TarefaActivity.class);\n intent.putExtra(\"DESCRICAO\", tarefas.get(position).getDescricao());\n startActivity(intent);\n }", "@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(getContext(), Detalles.class);\n // Enlace a la web de la noticia\n intent.putExtra(\"Enlace\", direccionDesarrollador);\n startActivity(intent);\n }", "private void getMoviesData() {\n movieId = getIntent().getIntExtra(MOVIE_ID, 0);\n }", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "private void showAboutActivity(String name){\n Intent i = new Intent(this, WelcomeActivity.class);\n i.putExtra(\"userName\",name);\n //se muestra la segunda actividad\n startActivity(i);\n\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Cursor cursor = ResolverHelper.getData((int) id, MainListaActivity.this.getContentResolver());\n Bundle bundle = new Bundle();\n while(cursor.moveToNext()){\n bundle.putString(Constants._ID,cursor.getString(0));\n bundle.putString(Constants.PRODUCENT,cursor.getString(1));\n bundle.putString(Constants.MODEL_NAME,cursor.getString(2));\n bundle.putString(Constants.ANDR_VER,cursor.getString(3));\n bundle.putString(Constants.WWW,cursor.getString(4));\n }\n cursor.close();\n Intent intent = new Intent(MainListaActivity.this,PhoneActivity.class);\n intent.putExtras(bundle);\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n MovieItem movieItem = arrayAdapter.getItem(position);\n Intent i = new Intent(getActivity(), DetailActivity.class);\n i.putExtra(\"myData\", movieItem);\n startActivity(i);\n }", "void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ti.setClass(getBaseContext(), CinemaLogin.class);\n\t\t\t\ti.putExtra(\"MovieTitle\", movietitle);\n\t\t\t\tstartActivity(i);\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) { Intent intent = new Intent(v.getContext(), ItemDescriptionActivity.class);\n// intent.putExtra(\"title\", data.get(position).getItems().get(position).getTitle());\n// intent.putExtra(\"description\", data.get(position).getItems().get(position).getDescription());\n// v.getContext().startActivity(intent);\n//\n Intent intent = new Intent(v.getContext(), ItemListActivity.class);\n intent.putExtra(\"id\", data.get(position).getId());\n activityContext.startActivity(intent);\n }", "public void onClick(View v) {\n Intent i = new Intent(MovieDetailsActivity.this, MovieTrailerActivity.class);\n // put \"extras\" into the bundle for access in the second activity\n //getVideo();\n i.putExtra(\"videoId\", key);\n // brings up the second activity\n startActivity(i);\n\n }", "@Override //Con esto se redirige a la DisplayActivity\n public void onClick(View v) {Intent goToDisplay = new Intent(context,DisplayActivity.class);\n\n /*Se añaden además otros dos parámetros: el id (para que sepa a cuál libro buscar)\n y el título (para ponerlo como título\n */\n goToDisplay.putExtra(\"ID\",id);\n goToDisplay.putExtra(\"titulo\", title);\n\n //Se inicia la DisplayActivity\n context.startActivity(goToDisplay);\n String url=null;\n goToDisplay.putExtra(\"http://http://127.0.0.1:5000/archivo/<ID>\", url);\n\n }", "@Override\n public void onClick(View v) {\n Intent i=new Intent(getApplicationContext(),pagos.class);\n String user=bl.getString(\"user\");\n //pasar a la nueva ventana el user del usuario\n i.putExtra(\"user\",String.valueOf(user));\n //pasar a la nueva ventana el saldo del usuario\n i.putExtra(\"saldo\",etSaldo.getText().toString());\n //lanzar la nueva ventana\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id)\n {\n \t Toast.makeText(getApplicationContext(),\n \t\t\t ((TextView) view).getText(), Toast.LENGTH_SHORT).show();\n \t Intent intent = new Intent(getApplicationContext(), RoomActivity.class);\n \t Bundle b = new Bundle();\n \t b.putString(\"title\", ((TextView) view).getText().toString());\n \t intent.putExtras(b);\n \t view.getContext().startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> av, View v, int pos,\n long id) {\n Toast.makeText(getActivity(), data.get(pos).get(\"Desc\"), Toast.LENGTH_SHORT).show();\n Intent i = new Intent(getActivity(), DetailActivity.class);\n i.putExtra(\"Play\",data.get(pos).get(\"Desc\"));\n i.putExtra(\"Detail\",data.get(pos).get(\"Player\"));\n i.putExtra(\"Category\",\"Diversity\");\n i.putExtra(\"Img\",data.get(pos).get(\"Imagemain\"));\n startActivity(i);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Movie movie = mMoviesAdapter.getData().get(position);\n Intent intent = new Intent(getActivity(), MovieDetailsActivity.class)\n .putExtra(getString(R.string.movie_object_intent), movie);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Visa.this,Recepit.class);\n startActivity(intent);\n\n\n }", "@Override\n public void ViewOnItemClick(int position) {\n\n int movieID = this.movie_populars.get(position).getId();\n\n Intent intent = new Intent(MainActivity.this, Movie_Profile.class);\n intent.putExtra(\"MovieID\", movieID);\n startActivity(intent);\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent intent=new Intent(ActMore.this,ActRecommend.class);\n//\t\t\t\t \n//\t\t\t\t Bundle bundle=new Bundle();\n//\t\t\t\t bundle.putInt(\"id\", 1);\n//\t\t\t\t intent.putExtras(bundle);\n\t\t ActMore.this.startActivity(intent);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n Intent detail=new Intent(getBaseContext(),DetailArticle.class);\n detail.putExtra(\"webURL\",webHotURL);\n startActivity(detail);\n }", "public void onClick(View view){\n Intent toDetailActivity = new Intent (view.getContext(), Detail.class);\n toDetailActivity.putExtra(\"nama\", nama.getText().toString());\n toDetailActivity.putExtra(\"gender\",avatarCode);\n toDetailActivity.putExtra(\"pekerjaan\", job.getText().toString());\n view.getContext().startActivity(toDetailActivity);\n }", "@Override\n public void onClick(View v) {\n GREETER=edit.getText().toString();\n\n //Acceder al segundo Activity y mandarle un string\n Intent intent=new Intent(MainActivity.this,SecondActivity.class);\n intent.putExtra(\"greeter\",GREETER); //ID + dato a enviar a Second Acitivty\n startActivity(intent);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View item, int position, long l) {\n Dados dados = (Dados) listaInventario.getItemAtPosition(position);\n\n Intent intentVaiProFormulario = new Intent(ListaInventarioActivity.this, FormularioActivity.class);//CHAMA OUTRA TELA\n intentVaiProFormulario.putExtra(\"dados\", dados);\n startActivity(intentVaiProFormulario);\n\n }", "public void repitencia(View view){\n Intent rep = new Intent(this, Repitencia.class);\n startActivity(rep);\n }", "public void onItemClick(AdapterView<?> a, View v, int position, long id) {\n Intent myIntent = new Intent(MainActivity.this, DetailActivity.class);\n myIntent.putExtra(getResources().getString(R.string.pasoDatosGasolinera), presenterGasolineras.getGasolineras().get(position));\n MainActivity.this.startActivity(myIntent);\n\n }", "public void vistaInterfazNiveles (View view){\n Intent interfaz = new Intent(this,MainActivity.class);\n //Intancio el Objeto Intent que necesito enviar la información\n Intent enviar = new Intent( view.getContext(), MainNivelesReto.class );\n //Metodo que me permite crear variable\n enviar.putExtra(\"IdCategoria\", getIntent().getStringExtra(\"IdCategoria\") );\n startActivity(interfaz);\n finish();\n }", "public void onClick(View v) {\n\n finish();\n Intent i=new Intent(getApplicationContext(), maotu.class);\n i.putExtra(\"id\", \"1\");\n startActivity(i);\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n Intent i = new Intent(getActivity(), MediaDetailActivity.class);\n Media media = lectures.get(position);\n i.putExtra(\"url\", media.getUrl());\n i.putExtra(\"type\", media.type);\n i.putExtra(\"author\", media.author);\n i.putExtra(\"author_image_url\", media.getImageUrl());\n i.putExtra(\"name\", media.getName());\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(getActivity(), DetailActivity.class);\n intent.putExtra(\"NAME\", (String) mNameTextView.getText());\n intent.putExtra(\"REALNAME\", (String) mRealNameTextView.getText());\n intent.putExtra(\"URL\", (String) mHero.getUrl());\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n String newName = etname.getText().toString();\n String newAge = etage.getText().toString();\n String newPicture = etpicture.getText().toString();\n\n // put the strings into a message for MainActivity\n\n //start MainActivity again\n\n\n Intent i = new Intent(v.getContext(), MainActivity.class);\n\n i.putExtra(\"modifier\", positionToEdit);\n i.putExtra(\"nom\", newName);\n i.putExtra(\"age\", newAge);\n i.putExtra(\"photo\", newPicture);\n startActivity(i);\n }", "public void onClick(View v) {\n\n finish();\n Intent i=new Intent(getApplicationContext(),gioitu.class);\n i.putExtra(\"id\", \"4\");\n startActivity(i);\n\n }", "private void obtener(){\n Bundle bundle = getIntent().getExtras();\n id = bundle.getString(\"id\");\n nombre = bundle.getString(\"nombre\");\n apellido = bundle.getString(\"apellido\");\n telefono = bundle.getInt(\"telefono\");\n //seteo de datos\n editTextN.setText(nombre);\n editTextA.setText(apellido);\n editTextT.setText(String.valueOf(telefono));\n }", "@Override\n public void onClick(String[] movieInformation) {\n Context context = this;\n Class destinationClass = DetailActivity.class;\n Intent intentToStartDetailActivity = new Intent(context, destinationClass);\n intentToStartDetailActivity.putExtra (\"movieInfo\", movieInformation);\n startActivity(intentToStartDetailActivity);\n }", "@Override\n public void onClick(View v) {\n Intent cambioVentana = new Intent(Portada.this, Preferencias.class);\n startActivity(cambioVentana);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), ActivitySonidoImagenText.class);\n //guardamos el id del boton\n intent.putExtra(\"category\", mCategory);\n intent.putExtra(\"boton\", v.getId());\n startActivityForResult(intent, RESULT_OK);\n //Log.d(\"ID DEL BOTON\", String.valueOf(v.getId()));\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, DemandDetailActivity.class);\n //intent.putExtra(\"id\",String.valueOf(item.getPid()));\n intent.putExtra(\"pid\", String.valueOf(item.getPid()));\n intent.putExtra(\"uid\", String.valueOf(item.getUid()));\n mContext.startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, CardapioActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent p3page = new Intent(v.getContext(), MagdalenCollege.class);\n startActivity(p3page);\n }", "public void botaosale(View v) {\n startActivity(new Intent(this, com.example.appstore.newsale.class));\n }", "public void Next(){\n Bundle extras = new Bundle();\n extras.putString(\"IdEvento\", IdEvento); // se obtiene el valor mediante getString(...)\n\n Intent intent = new Intent(this, AtendiendoEmergencia.class);\n //Agrega el objeto bundle a el Intne\n intent.putExtras(extras);\n //Inicia Activity\n startActivity(intent);\n }", "private void GotoGraficos(String data){\n Intent intent = new Intent(this, Graficos_Sesion.class);\n intent.putExtra(\"url\", data);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n String nombre = editNombre.getText().toString();\n String nacimiento = editNace.getText().toString();\n String telefono = editPhone.getText().toString();\n String email = editEmail.getText().toString();\n String descripcion = editDescript.getText().toString();\n\n //podria pasar los datos en variable directo a cada intent pero queria probar los objetos\n\n nuevo = new Contacto(nombre,telefono,email,nacimiento,descripcion);\n\n\n Intent intento = new Intent(MainActivity.this,ConfirmarActivity.class);\n /*pName es una var de texto que tiene el string \"Nombre\"\n * para mantener nuestro codigo ordenando lo uso asi\n * sin embargo tambien puedo poner por ejemplo \"nombre\"\n y de igual manera pedirlo en confirmarActivity.java*/\n intento.putExtra(getResources().getString(R.string.pName),nuevo.getNombre());\n intento.putExtra(getResources().getString(R.string.pNace), nuevo.getNacimiento());\n intento.putExtra(getResources().getString(R.string.pPhone), nuevo.getTelefono());\n intento.putExtra(getResources().getString(R.string.pEmail), nuevo.getEmail());\n intento.putExtra(getResources().getString(R.string.pDescript), nuevo.getDescript());\n startActivity(intento);\n }", "@Override\n public void onClick(View v) {\n Intent cambioVentana = new Intent(Portada.this, MainActivity.class);\n startActivity(cambioVentana);\n }", "@Override\n public void onClick(View v) {\n int position = getAdapterPosition();\n Movies movies = mData.get(position);\n\n movies.setTitle(movies.getTitle());\n movies.setOverview(movies.getOverview());\n\n Intent intent = new Intent(itemView.getContext(), DetailMovieActivity.class);\n intent.putExtra(DetailMovieActivity.EXTRA_MOVIE, movies);\n itemView.getContext().startActivity(intent);\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent datosSustento = new Intent(context,DatosSustentoActivity.class);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.TIPO_ACCION, DatosSustentoActivity.ACCION_ACTUALIZAR);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_CLIENTE, codigo_cliente);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_PLAN, codigo_plan);\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_ACTIVIDAD, codigo_actividad);\t\t\t\t\t\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.CODIGO_SUSTENTO, sustentoTemporal.getCodigoSustento());\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.DESCRIPCION_SUSTENTO, sustentoTemporal.getDescripcionActividad());\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.TIPO_SUSTENTO, sustentoTemporal.getTipoActividad());\r\n\t\t\t\t\tdatosSustento.putExtra(DatosSustentoActivity.FECHA_VISITA, sustentoTemporal.getFechaVisita());\t\t\t\t\t\r\n\t\t\t\t\tcontext.startActivity(datosSustento);\r\n\t\t\t\t}", "public void series (View vista){\n\n Intent series = new Intent(this,ActivitySeries.class);\n startActivity (series);\n\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\tint ligaNr = Integer.parseInt(v.getContentDescription().toString().split(\";\")[0]);\n\t\t\t\t\tint spielNr = Integer.parseInt(v.getContentDescription().toString().split(\";\")[1]);\n\t\t\t\t\tIntent intent = new Intent(getActivity().getApplicationContext(), SpielActivity.class);\n\t\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\t\tbundle.putString(\"liganame\", ligaName);\n\t\t\t\t\tbundle.putInt(\"liganummer\", ligaNr);\n\t\t\t\t\tbundle.putInt(\"spielnummer\", spielNr);\n\t\t\t\t\tintent.putExtras(bundle);\n\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}", "@Override\n\t public void onClick(View view) {\n\t \tIntent i;\n\t \tif (botonPrincipal.equals(\"2\"))\n\t \t{\n\t \t\ti = new Intent(getApplicationContext(), Dispositivo.class);\n\t \t}\n\t \telse\n\t \t{\n\t \t\ti = new Intent(getApplicationContext(), SetPersianas.class);\n\t \t}\n\t \t\t\t\ti.putExtra(\"codigo_dispositivo\" , cod_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"estado_dispositivo\" , est_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"descripcion_dispositivo\", desc_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"tipo_dispositivo\", tipo_disp[position-1]);\n\t \t\t\t\ti.putExtra(\"codigo_habitacion\", cod_hab);\n\t \t\t\t\ti.putExtra(\"habitacion\", hab_dom);\n\t \t\t\t\ti.putExtra(\"botonPrincipal\",botonPrincipal);\n\t startActivity(i);\n\t finish();\n\t }", "@Override\n public void onClick(View view) {\n final String e = imagedat.get(0).getCategory();\n Intent c = new Intent(MainActivity.this, categories_Activity.class) ;\n c.putExtra(\"Cat\", e);\n startActivity(c);\n }", "@Override\n public void onClick(View view) {\n Bundle bundle = new Bundle();\n bundle.putString(\"name\",daftarGuild.get(position).getNameGuild());\n bundle.putString(\"sub\",daftarGuild.get(position).getSubject());\n bundle.putInt(\"level\",daftarGuild.get(position).getLevelRequirement());\n Intent intent = new Intent(context, AdvGuildDetail.class);\n intent.putExtras(bundle);\n context.startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Thought chosenThought = thoughts.get((int) v.getTag());\n Intent thoughtContentIntent = new Intent(getActivity(), ThougtContentActivity.class);\n thoughtContentIntent.putExtra(\"id\", chosenThought.thoughtId.toString());\n thoughtContentIntent.putExtra(\"image\", chosenThought.imagePath.getPath());\n thoughtContentIntent.putExtra(\"recording\", chosenThought.recordingPath.getPath());\n thoughtContentIntent.putExtra(\"title\", chosenThought.title);\n thoughtContentIntent.putExtra(\"details\", chosenThought.details);\n startActivity(thoughtContentIntent);\n }", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n Review reviewsarapan = this.list.get(position);\n\n Intent intent = new Intent(ctx, ReviewDetails.class);\n intent.putExtra(\"detail_id\", reviewsarapan.getId_review());\n intent.putExtra(\"detail_gambar\", \"http://192.168.1.36/Pampo/gambar_detail/\"+reviewsarapan.getGambar_detail());\n System.out.println(\"Gambar : \"+ reviewsarapan.getGambar_detail());\n intent.putExtra(\"detail_judul\", reviewsarapan.getJudul_review());\n intent.putExtra(\"detail_deskripsi\", reviewsarapan.getDeskripsi_review());\n this.ctx.startActivity(intent);\n }", "public void mantUnidades(View view){\n Intent intent = new Intent(this, mant_unidades.class);\n startActivity(intent);\n }", "public void run() {\n Intent intent = new Intent(MainActivity.this, Summit.class);\n String description = woeid.getWoeid();\n intent.putExtra(EXTRA_MESSAGE, description);\n // Log.d(\"Long\", description);\n startActivity(intent);\n }", "@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(BoilerRoom.this, ScanQR.class);\n //intent.putExtra( \"id\", tvmechID.getText().toString() );\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Toast.makeText(getActivity(),\"bal\",Toast.LENGTH_SHORT).show();\n Intent intent=new Intent(getActivity(),osmanyhallcapt.class);\n startActivity(intent);\n }", "public void onClick(View v) {\n\n finish();\n Intent i=new Intent(getApplicationContext(),thantu.class);\n i.putExtra(\"id\", \"6\");\n startActivity(i);\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent intent=new Intent(ActMore.this,ActInfo.class);\n\t\t\t\t \n\t\t\t\t Bundle bundle=new Bundle();\n\t\t\t\t bundle.putInt(\"id\", 0);\n\t\t\t\t intent.putExtras(bundle);\n\t\t ActMore.this.startActivity(intent);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n Intent i = new Intent(context, Detail.class);\n i.putExtra(\"id\", id);\n i.putExtra(\"firstname\", firstname);\n i.putExtra(\"lastname\", lastname);\n i.putExtra(\"email\", email);\n i.putExtra(\"image\", image);\n context.startActivity(i);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(getApplicationContext(), EditAssessment.class);\n intent.putExtra(\"termID\", termID);\n intent.putExtra(\"courseID\", courseID);\n intent.putExtra(\"assessmentID\", assessmentID);\n startActivity(intent);\n }", "public void bSitio2(View view){\n Intent i = new Intent(getApplicationContext(), MapsActivity.class);\n i.putExtra(\"Latitud\", 6.269434 );\n i.putExtra(\"Longitud\", -75.18322);\n i.putExtra(\"destino\", \"Represa Guatapé\");\n startActivity(i);\n }", "public void mantItinerario(View view){\n Intent intent = new Intent(this, mant_itinerario.class);\n startActivity(intent);\n }", "public void bSitio1(View view){\n Intent i = new Intent(getApplicationContext(), MapsActivity.class);\n i.putExtra(\"Latitud\", 6.21999);\n i.putExtra(\"Longitud\", -75.190537);\n i.putExtra(\"destino\", \"Isla Guaca\");\n startActivity(i);\n }" ]
[ "0.7548558", "0.70260864", "0.7013749", "0.7007053", "0.6998899", "0.6972535", "0.6959091", "0.6958349", "0.69111294", "0.68816406", "0.68784785", "0.6876792", "0.6857525", "0.6853623", "0.6851723", "0.6809261", "0.68014073", "0.6733532", "0.67312604", "0.6706823", "0.6702498", "0.6692863", "0.66888946", "0.66157347", "0.65900815", "0.6587711", "0.6569841", "0.65619004", "0.6561813", "0.65581334", "0.6555608", "0.6544461", "0.651181", "0.6502314", "0.650167", "0.647697", "0.6457348", "0.6456911", "0.6454997", "0.6444626", "0.6441351", "0.6440505", "0.6435134", "0.6434123", "0.64316404", "0.64272684", "0.64222753", "0.6421538", "0.641948", "0.64179546", "0.64153904", "0.6401585", "0.6398798", "0.6397761", "0.63969624", "0.639123", "0.6366961", "0.63664234", "0.63624686", "0.6361063", "0.63456595", "0.6337986", "0.6320938", "0.6318789", "0.6318027", "0.63158196", "0.631129", "0.6305837", "0.630406", "0.6297003", "0.62945604", "0.62903726", "0.62889194", "0.62867665", "0.6285729", "0.628039", "0.6272504", "0.6264811", "0.62367", "0.62337625", "0.62196994", "0.62194693", "0.62164867", "0.6202462", "0.62010795", "0.62009645", "0.6198258", "0.6197772", "0.61916876", "0.61807865", "0.61799246", "0.6161113", "0.61588335", "0.6147485", "0.6144701", "0.6129214", "0.612503", "0.61229014", "0.6121265", "0.6114877", "0.6114704" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Dept dept= new Dept(1212, "IT", "Bangalore"); Emp emp = new Emp(1234, "Tarun", 9999999999L, dept); System.out.println(emp); Emp e1=null; try { e1 = (Emp) emp.clone(); } catch (CloneNotSupportedException e) { // TODO Auto-generated catch block e.printStackTrace(); } dept.setLocation("Chennai"); System.out.println(e1); }
{ "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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_one_page, menu); //Setting up the Share Action Provider provider = (ShareActionProvider) menu.findItem(R.id.menu_share).getActionProvider(); provider.setShareIntent(getDefaultShareIntent()); return super.onCreateOptionsMenu(menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246451", "0.7201833", "0.7195169", "0.7176824", "0.71071094", "0.7039687", "0.70379424", "0.7011622", "0.70095545", "0.69799995", "0.6945173", "0.69389343", "0.6933555", "0.69172555", "0.69172555", "0.68906796", "0.688355", "0.687496", "0.6874772", "0.68613136", "0.68613136", "0.68613136", "0.68613136", "0.6852252", "0.6846455", "0.6818823", "0.6816676", "0.68122935", "0.68119055", "0.68119055", "0.6805087", "0.68003947", "0.6797015", "0.67904633", "0.6789411", "0.67871827", "0.6782913", "0.67593676", "0.6756442", "0.6747255", "0.6742987", "0.6742987", "0.6740183", "0.67392707", "0.67249876", "0.67237884", "0.67217875", "0.67217875", "0.6719964", "0.6711429", "0.6706682", "0.67035955", "0.6699167", "0.66980296", "0.6696009", "0.6694031", "0.66855574", "0.66825926", "0.66825926", "0.6682556", "0.66795844", "0.6678825", "0.6676161", "0.66680866", "0.66665506", "0.66625977", "0.6657122", "0.6657122", "0.6657122", "0.6656225", "0.6653723", "0.6653723", "0.6653723", "0.66520125", "0.6651581", "0.6649255", "0.6648212", "0.6646545", "0.6646233", "0.66460145", "0.6645477", "0.6644324", "0.66441935", "0.6642723", "0.66420346", "0.66412085", "0.6638387", "0.6633755", "0.66334134", "0.66321", "0.663127", "0.663127", "0.663127", "0.6628276", "0.6627496", "0.6626989", "0.6625628", "0.6623483", "0.6620039", "0.66181844", "0.66181844" ]
0.0
-1
Returns a share intent
private Intent getDefaultShareIntent(){ Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_SUBJECT, "SUBJECT"); intent.putExtra(Intent.EXTRA_TEXT,"Extra Text"); return intent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void launchShareIntent() {\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_SEND);\n sendIntent.putExtra(Intent.EXTRA_TEXT, gif.getFullGif().getUrl());\n sendIntent.setType(\"text/plain\");\n startActivity(Intent.createChooser(sendIntent, getString(R.string.share_dialog_title)));\n }", "private void createShareIntent() {\n String body2 = TEXT_TO_SHARE2;\n\n //Step 2: Create the shareIntent with action 'Intent.ACTION_SEND'\n Intent sendIntent = new Intent(Intent.ACTION_SEND);\n\n //Step 3: Specify the intent type\n //E.g. shareIntent.setType(\"text/plain\");\n sendIntent.setType(\"text/plain\");\n\n //Step 4: Add the text to share as an extra data (Intent.EXTRA_TEXT)\n sendIntent.putExtra(Intent.EXTRA_TEXT, body2);\n\n Intent shareIntent = Intent.createChooser(sendIntent, null);\n\n //Step 5: Start shareIntent\n startActivity(shareIntent);\n\n }", "private Intent Shareintent(){\n Intent Shareintent = new Intent(Intent.ACTION_SEND);\n Shareintent.setType(\"text/html\");\n Shareintent.putExtra(Intent.EXTRA_SUBJECT, \"SUBJECT\");\n Shareintent.putExtra(Intent.EXTRA_TEXT, \"http://www.habeshastudent.com/m/video.html\");\n return Shareintent;\n\n\n }", "private Intent getDefaultShareIntent(){\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"text/plain\");\n // Log.d(\"data\", data + \" Intent\");\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Send Default Massage\");\n intent.putExtra(Intent.EXTRA_TEXT,data);\n return intent;\n }", "public Intent returnShareIntent() {\n Intent intent = new Intent(Intent.ACTION_INSERT);\n // Sets the MIME type\n intent.setType(ContactsContract.Contacts.CONTENT_TYPE);\n // store data in intent\n intent.putExtra(ContactsContract.Intents.Insert.NAME, this.name);\n intent.putExtra(ContactsContract.Intents.Insert.PHONE, this.mobile);\n intent.putExtra(ContactsContract.Intents.Insert.EMAIL, this.email);\n intent.putExtra(ContactsContract.Intents.Insert.COMPANY, this.company);\n intent.putExtra(ContactsContract.Intents.Insert.POSTAL, this.postal);\n intent.putExtra(ContactsContract.Intents.Insert.JOB_TITLE, this.job);\n intent.putExtra(ContactsContract.Intents.Insert.NOTES, this.detail);\n return intent;\n }", "@Override\n public void onClick(View v) {\n String shareBody =item.title.toString()+\"\\n\\n\"+getResources().getString(R.string.item_show)+\"\\n\"+ Config.APP_IMAGES_URL.replace(\"uploads/\",\"share/\")+item.id;\n Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n sharingIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.app_name));\n startActivity(Intent.createChooser(sharingIntent, getResources().getString(R.string.app_name)));\n }", "@Override\n public void onClick(View view) {\n Intent sharingIntent = new Intent(Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n sharingIntent.putExtra(Intent.EXTRA_TITLE,title );\n sharingIntent.putExtra(Intent.EXTRA_TEXT,description);\n startActivity(Intent.createChooser(sharingIntent,\"Share using\"));\n\n }", "private void _tweetShare(Activity act, String title, String description)\n {\n try {\n Intent shareIntent = new Intent(Intent.ACTION_SEND);\n shareIntent.setType(\"text/plain\");\n shareIntent.setPackage(\"com.twitter.android\");\n shareIntent.putExtra(Intent.EXTRA_TITLE, title);\n shareIntent.putExtra(Intent.EXTRA_TEXT, description);\n act.startActivity(shareIntent);\n } catch (ActivityNotFoundException ex) {\n String tweetUrl = StringUtils.join(\" \",\"https://twitter.com/intent/tweet?text=\", title, description);\n Uri uri = Uri.parse(tweetUrl);\n act.startActivity(new Intent(Intent.ACTION_VIEW, uri));\n }\n }", "public static Intent createShareIntent(String title) {\n Intent shareIntent = new Intent(Intent.ACTION_SEND);\n shareIntent.setType(\"text/plain\");\n shareIntent.putExtra(Intent.EXTRA_TEXT, title);\n return shareIntent;\n }", "private void setShareIntent(Intent shareIntent) {\n if(shareIntent.resolveActivity(getActivity().getPackageManager())!=null) {\n if (mShareActionProvider != null) {\n mShareActionProvider.setShareIntent(shareIntent);\n }\n } else {\n Toast.makeText(getActivity(), R.string.no_application_found,Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onClick(View v) {\n Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n String shareBody = caption + \" - \" + description;\n sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Sobers Stories\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n startActivity(Intent.createChooser(sharingIntent, \"Share With Friends\"));\n\n }", "private void addShareAction() {\n\t\t// TODO Auto-generated method stub\n\t\tWindow window = getWindow();\n\t\tint width = getWindowManager().getDefaultDisplay().getWidth();\n\t\tint height = getWindowManager().getDefaultDisplay().getHeight();\n\t\tString shareContent = \"\" + 100 * mRightResultCount/mImagesID.size();\n\t\tString mShareFileName = File.separator + \"/color_blindness_result.png\";\n\t\t\n\t\tIntent shareIntent = new Intent(Intent.ACTION_SEND);\n\t\tFile file = ScreenShotForShare.GetScreenShotFile(window, width, height, mShareFileName); \n\t\tif (file != null)\n\t\t\tshareIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));\n\t\tshareIntent.setType(\"text/image/png\"); \n\t\tshareIntent.putExtra(Intent.EXTRA_SUBJECT, \"\");\n\t\tshareIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.shareResult, shareContent) + \"%\");\n \tstartActivity(Intent.createChooser(shareIntent, getString(R.string.share))); \n\t}", "private void shareRecipe(){\n Intent shareRecipeIntent = new Intent();\n shareRecipeIntent.setAction(Intent.ACTION_SEND);\n shareRecipeIntent.putExtra(Intent.EXTRA_TITLE, \"Check out this recipe that I found on My Recipes Book\");\n shareRecipeIntent.putExtra(Intent.EXTRA_TEXT, setTextForSharing());\n shareRecipeIntent.setType(\"text/plain\");\n startActivity(Intent.createChooser(shareRecipeIntent, getResources().getString(R.string.share_intent_text)));\n }", "protected void shareIt() {\n\t\tIntent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\r\n\t\tsharingIntent.setType(\"text/plain\");\r\n\t\tString shareBody = content.getText().toString();\r\n\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Sharing\");\r\n\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\r\n\t\tstartActivity(Intent.createChooser(sharingIntent, \"Share via\"));\r\n\t}", "protected void addShare() {\n \t\t((InputMethodManager) this.getContext().getSystemService(\n \t\t\t\tContext.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(\n \t\t\t\tthis.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n \t\tIntent intent = new Intent(Intent.ACTION_SEND);\n \t\tArrayList<String> images = this.mNoteItemModel.getImages();\n \t\tLog.i(TAG, images.toString());\n \t\tif (images.isEmpty())\n \t\t\tintent.setType(\"text/plain\");\n \t\telse if (images.size() == 1) {\n \t\t\tintent.setType(\"image/*\");\n \t\t} else if (images.size() > 1) {\n \t\t\tintent.setAction(Intent.ACTION_SEND_MULTIPLE);\n \t\t\tintent.setType(\"images/*\");\n \t\t}\n \t\tintent.putExtra(Intent.EXTRA_TITLE, \"Share my note...\");\n \t\tintent.putExtra(Intent.EXTRA_TEXT, this.mNoteItemModel.getContent());\n \t\tif (images.size() == 1) {\n \t\t\tUri uri = this.mNoteItemModel.getImageUri(images.get(0));\n \t\t\tintent.putExtra(Intent.EXTRA_STREAM, uri);\n \t\t} else if (images.size() > 1) {\n \t\t\tArrayList<Uri> uris = new ArrayList<Uri>();\n \t\t\tfor (String image : images) {\n \t\t\t\turis.add(this.mNoteItemModel.getImageUri(image));\n \t\t\t}\n \t\t\tintent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);\n \t\t}\n \t\tthis.getContext().startActivity(Intent.createChooser(intent, \"Share\"));\n \t}", "@Override\r\n public void onClick(View v) {\n UMImage urlImage = new UMImage(LotteryListActivity.this,\r\n share.getImage());\r\n new ShareAction(LotteryListActivity.this)\r\n .setPlatform(SHARE_MEDIA.SINA)\r\n .withText(share.getContent()).withTitle(share.getTitle()).withMedia(urlImage)\r\n .withTargetUrl(share.getUrl())\r\n .setCallback(umShareListener).share();\r\n\r\n }", "public static Intent getAndroidShareIntent(CharSequence chooseTitle, CharSequence subject, CharSequence content) {\n Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);\n shareIntent.setType(\"text/plain\");\n shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);\n shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, content);\n return Intent.createChooser(shareIntent, chooseTitle);\n }", "public static void onClickShareButton(Context context) {\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_SEND);\n sendIntent.putExtra(Intent.EXTRA_TEXT, context.getResources().getString(R.string.share_msg));\n sendIntent.setType(\"*/*\");\n context.startActivity(sendIntent);\n }", "@Override\r\n public void onClick(View v) {\n UMImage urlImage = new UMImage(LotteryListActivity.this,\r\n share.getImage());\r\n new ShareAction(LotteryListActivity.this)\r\n .setPlatform(SHARE_MEDIA.WEIXIN)\r\n .withText(share.getContent()).withTitle(share.getTitle()).withMedia(urlImage)\r\n .withTargetUrl(share.getUrl())\r\n .setCallback(umShareListener).share();\r\n\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_detail, menu);\n MenuItem mi = menu.findItem(R.id.shareid);\n\n sap = (ShareActionProvider) MenuItemCompat.getActionProvider(mi);\n Intent iu = new Intent(Intent.ACTION_SEND);\n TextView tv = (TextView) findViewById(R.id.my_weat);\n data = tv.getText().toString();\n iu.setType(\"text/plain\");\n Log.e(\"hello\", data);\n iu.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);\n iu.putExtra(Intent.EXTRA_TEXT, data + \" #Sunshineapp\");\n if(sap!=null) {\n Log.e(\"uclicked\", \"share button\");\n sap.setShareIntent(iu);\n //startActivity(iu);\n }\n return true;\n }", "@Override\r\n public void onClick(View v) {\n UMImage urlImage = new UMImage(LotteryListActivity.this,\r\n share.getImage());\r\n new ShareAction(LotteryListActivity.this)\r\n .setPlatform(SHARE_MEDIA.WEIXIN_CIRCLE)\r\n .withText(share.getContent()).withTitle(share.getTitle()).withMedia(urlImage)\r\n .withTargetUrl(share.getUrl())\r\n .setCallback(umShareListener).share();\r\n\r\n }", "private static void shareToInstagram(Context context, Uri uri) {//content://media/external/images/media/451\n // /storage/emulated/0/メリーズ スマイルDays/20151106_032146.jpg\n // /storage/emulated/0/メリーズ スマイルDays/20151106_020312.jpg\n\n Toast.makeText(context, \"start sharing to instagram \" + uri.getPath(), Toast.LENGTH_SHORT).show();\n String instagramPackage = \"com.instagram.android\";\n if (AppUtil.getInstance().isAppInstalled(context, instagramPackage)) {\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"image/*\");\n intent.putExtra(Intent.EXTRA_STREAM, uri);\n intent.setPackage(instagramPackage);\n// startActivity(Intent.createChooser(intent, \"Share to\"));\n context.startActivity(intent);\n } else {\n Toast.makeText(context, \"to use this feature, you must have an Instagram application is installed\", Toast.LENGTH_SHORT).show();\n }\n\n }", "private void createInstagramIntent(String type, String mediaPath) {\n Intent share = new Intent(Intent.ACTION_SEND);\n\n // Set the MIME type\n share.setType(type);\n share.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n share.setPackage(\"com.instagram.android\");\n\n // Create the URI from the media\n File media = new File(mediaPath);\n Uri uri = FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName() + \".Utils.GenericFileProvider\", media);\n\n // Add the URI to the Intent.\n share.putExtra(Intent.EXTRA_STREAM, uri);\n share.putExtra(Intent.EXTRA_TEXT, \"YOUR TEXT HERE\");\n\n // Broadcast the Intent.\n startActivity(Intent.createChooser(share, \"Share to\"));\n }", "public void shareApp() {\n Intent shareIntent = new Intent(Intent.ACTION_SEND);\n shareIntent.setType(\"text/*\");\n shareIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.app_name));\n shareIntent.putExtra(Intent.EXTRA_TEXT, \"Try this \" + getResources().getString(R.string.app_name) + \" App: https://play.google.com/store/apps/details?id=\" + getApplicationContext().getPackageName());\n startActivity(Intent.createChooser(shareIntent, \"Share Using\"));\n }", "private void shareLink(View v) {\n Intent share = new Intent(Intent.ACTION_SEND);\n\n // If you want to share a png image only, you can do:\n // setType(\"image/png\"); OR for jpeg: setType(\"image/jpeg\");\n share.setType(\"image/*\");\n\n // Make sure you put example png image named myImage.png in your\n // directory\n\n\n Log.d(\"\", \"PATH:\" + path);\n\n File imageFileToShare = new File(path);\n Uri uri = Uri.fromFile(imageFileToShare);\n share.putExtra(Intent.EXTRA_TEXT, \"https://play.google.com/store/apps/details?id=btech.natural.wallpaper\");\n share.putExtra(Intent.EXTRA_STREAM, uri);\n\n startActivity(Intent.createChooser(share, \"Share Image!\"));\n }", "private void setShareIntent(String text) {\n\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_SEND);\n sendIntent.putExtra(Intent.EXTRA_TEXT, text);\n sendIntent.setType(\"text/plain\");\n\n if (shareActionProvider != null) {\n shareActionProvider.setShareIntent(sendIntent);\n }\n }", "private void sharePlan(){\n Intent shareIntent = new Intent(Intent.ACTION_SEND);\n shareIntent.setType(\"text/plain\");\n shareIntent.putExtra(Intent.EXTRA_SUBJECT, \"My Planit Plan\");\n shareIntent.putExtra(Intent.EXTRA_TEXT,\n \"Hi All! This is my plan made using Planit! www.planit.com/10293987\");\n startActivity(Intent.createChooser(shareIntent, \"Share with\"));\n }", "private static Pair<Drawable, CharSequence> getShareableIconAndName(Intent shareIntent) {\n Drawable directShareIcon = null;\n CharSequence directShareTitle = null;\n\n final ComponentName component = getLastShareComponentName();\n boolean isComponentValid = false;\n if (component != null) {\n shareIntent.setPackage(component.getPackageName());\n List<ResolveInfo> resolveInfoList =\n PackageManagerUtils.queryIntentActivities(shareIntent, 0);\n for (ResolveInfo info : resolveInfoList) {\n ActivityInfo ai = info.activityInfo;\n if (component.equals(new ComponentName(ai.applicationInfo.packageName, ai.name))) {\n isComponentValid = true;\n break;\n }\n }\n }\n if (isComponentValid) {\n boolean retrieved = false;\n final PackageManager pm = ContextUtils.getApplicationContext().getPackageManager();\n try {\n // TODO(dtrainor): Make asynchronous and have a callback to update the menu.\n // https://crbug.com/729737\n try (StrictModeContext ignored = StrictModeContext.allowDiskReads()) {\n directShareIcon = pm.getActivityIcon(component);\n directShareTitle = pm.getActivityInfo(component, 0).loadLabel(pm);\n }\n retrieved = true;\n } catch (NameNotFoundException exception) {\n // Use the default null values.\n }\n RecordHistogram.recordBooleanHistogram(\n \"Android.IsLastSharedAppInfoRetrieved\", retrieved);\n }\n\n return new Pair<>(directShareIcon, directShareTitle);\n }", "public void share(View view){\n Toast.makeText(this, \"Loading share options ...\", Toast.LENGTH_SHORT).show();\n //Create an intent to share\n Intent sharingIntent = new Intent(Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n String shareBody = \"You should check out \" + getString(R.string.app_name) + \", an app where you can easily find books at the school library!\";\n if(currentBook.title != null)\n shareBody = \"Check out \\\"\" + currentBook.title + \"\\\", a book that I found with the app, \" + getString(R.string.app_name);\n sharingIntent.putExtra(Intent.EXTRA_SUBJECT, \"\" + getString(R.string.app_name));\n sharingIntent.putExtra(Intent.EXTRA_TEXT, shareBody);\n startActivity(Intent.createChooser(sharingIntent, \"Share via\"));\n }", "private void shareFlipzu() {\n\t\t\n\t\t//create the intent \n\t\tIntent shareIntent = \n\t\t new Intent(android.content.Intent.ACTION_SEND); \n\t\t \n\t\t//set the type \n\t\tshareIntent.setType(\"text/plain\"); \n\t\t \n\t\t//add a subject \n\t\tshareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \n\t\t \"Check out this cool App\");\t\t\n\t\t \n\t\t//build the body of the message to be shared \n\t\tString shareMessage = \"Flipzu, live audio broadcast from your Android phone: https://market.android.com/details?id=\" + APP_PNAME; \n\t\t \n\t\t//add the message \n\t\tshareIntent.putExtra(android.content.Intent.EXTRA_TEXT, \n\t\t shareMessage); \n\t\t \n\t\t//start the chooser for sharing \n\t\tstartActivity(Intent.createChooser(shareIntent, \n\t\t getText(R.string.share_app))); \n\n\t}", "@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tDialog dialog=new Dialog(Glory.this);\n\t\t\t\tdialog.setContentView(R.layout.share_dialog_layout);\n\t\t\t\tdialog.setTitle(\"Share Via\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfbIcon=(TextView)dialog.findViewById(R.id.fb_icon);\n\t\t\t\ttwitterIcon=(TextView)dialog.findViewById(R.id.twitter_icon);\n\t\t\t\tgPlusIcon=(TextView)dialog.findViewById(R.id.gplus_icon);\n\t\t\t\t\n\t\t\t\tfbIcon.setTypeface(font);\n\t\t\t\ttwitterIcon.setTypeface(font);\n\t\t\t\tgPlusIcon.setTypeface(font);\n\t\t\t\n\t\t\t\t\n\t\t\t\tfbIcon.setOnClickListener(new OnClickListener() \n\t\t\t\t{\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) \n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tString url = \"https://www.facebook.com/dialog/feed?app_id=1507764116109075&\" +\n\t\t\t\t\t\t\t\t \t \"link=https://play.google.com/store/apps/details?id=com.achyuthnfn.cnbfinal&\" +\n\t\t\t\t\t\t\t\t \t \"caption=GuessIn&\" +\n\t\t\t\t\t\t\t\t \t \"description=\"+Uri.parse(\"My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out the new game by @nfnlabs called GuessIn!\")+\n\t\t\t\t\t\t\t\t \t \"&redirect_uri=https://www.facebook.com/connect/login_success.html\"+\n\t\t\t\t\t\t\t\t \t \"&picture=http://nfnlabs.in/wp-content/uploads/2014/06/Share%20Image.png\";\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tintent.setData(Uri.parse(url));\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\ttwitterIcon.setOnClickListener(new OnClickListener() \n\t\t\t\t{\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tString url = \"https://twitter.com/intent/tweet?text=My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out Guessin by @nfnlabs:&url=\"+Uri.parse(\"http://goo.gl/CGmGEx\");\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tUri uri=Uri.parse(url);\n\t\t\t\t\t\tintent.setData(uri);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tgPlusIcon.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tIntent intent= new PlusShare.Builder(Glory.this)\n\t\t\t\t\t\t\t.setText(\"My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out the new game by @nfnlabs called GuessIn!\")\n\t\t\t\t\t\t\t.setType(\"text/plain\")\n\t\t\t\t\t\t\t.setContentUrl(Uri.parse(\"https://play.google.com/store/apps/details?id=com.achyuthnfn.cnbfinal\"))\n\t\t\t\t\t\t\t.getIntent();\n\t\t\t\t\t\tstartActivityForResult(intent, 0);\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\tdialog.show();\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tIntent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n\t\t\t\t\tsharingIntent.setType(\"text/plain\");\n\t\t\t\t\tString URL = \"http://market.android.com/details?id=com.appsmarttech.ultitrack92\";\n\t\t\t\t\tString shareBody = \"I just completed \" + dayID + \" of the P90X, and I tracked it using UltiTrack! get it here \" + URL;\n\t\t\t\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"I am Awesome!!!\");\n\t\t\t\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n\t\t\t\t\tstartActivity(Intent.createChooser(sharingIntent, \"Share via\"));\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}", "public void onShareclicked(MenuItem mi) {\n\t\tSmartImageView ivImage = (SmartImageView) findViewById(R.id.ivResult);\r\n\t\tUri bmpUri = getLocalBitmapUri(ivImage);\r\n\t\tif (bmpUri != null) {\r\n\t\t\t// Construct a ShareIntent with link to image\r\n\t\t\tIntent shareIntent = new Intent();\r\n\t\t\tshareIntent.setAction(Intent.ACTION_SEND);\r\n\t\t\tshareIntent.putExtra(Intent.EXTRA_STREAM, bmpUri);\r\n\t\t\tshareIntent.setType(\"image/*\");\r\n\t\t\t// Launch sharing dialog for image\r\n\t\t\tstartActivity(Intent.createChooser(shareIntent, \"Share Content\"));\r\n\t\t} else {\r\n\t\t\tLog.e(\"ERROR\", \"Image sending failed\");\r\n\t\t}\r\n\t\t\r\n\t}", "protected void showShare() {\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationData = ApplicationData.readApplicationData(this);\n \t\t\tif(applicationData != null){\n \t\t\t\tIntent intent = getIntent();\n \t\t\t\tNextLevel nextLevel = (NextLevel)intent.getSerializableExtra(ApplicationData.NEXT_LEVEL_TAG);\n \t\t\t\tAppLevelDataItem item = applicationData.getDataItem(this, nextLevel);\t\t\t\t\n \t\t\t\tAppDataItemText textItem;\n \t\t\t\ttry {\n \t\t\t\t\ttextItem = (AppDataItemText)item;\n \t\t\t\t\t\n \t\t\t\t\tIntent sharingIntent = new Intent(Intent.ACTION_SEND);\n \t\t\t\t\tsharingIntent.setType(\"text/plain\");\n \t\t\t\t\t//sharingIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] { \"[email protected]\" });\n \t\t\t\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, textItem.getItemText());\n \t\t\t\t\tstartActivity(Intent.createChooser(sharingIntent,\"Compartir contenido\"));\n \n \t\t\t\t}catch (ClassCastException e) {\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (InvalidFileException e) {\n \t\t}\n \t}", "public void shareApp(String link) {\n\n\n String shareBody = link + \"\\n\" + \"https://play.google.com/store/apps/details?id=\" + getApplicationContext().getPackageName();\n\n Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, getResources().getString(R.string.app_name) + \" -Download App from playstore\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody + \"\\n\" + \"Promo code-\" + new SessionManager(this).getREFERAL_CODE());\n\n Intent i = new Intent(Intent.createChooser(sharingIntent, \"Share via\"));\n startActivity(i);\n\n\n }", "private void createInstagramIntent(String type, Uri uri, String caption){\n Intent share = new Intent(Intent.ACTION_SEND);\n\n // Set the MIME type\n share.setType(type);\n\n // Add the URI and the caption to the Intent.\n share.putExtra(Intent.EXTRA_STREAM, uri);\n share.putExtra(Intent.EXTRA_TEXT, caption);\n share.setPackage(\"com.instagram.android\");\n\n // Broadcast the Intent.\n mContext.startActivity(share);\n }", "public void Share(String url) {\n Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, url);\n Intent createChooser = Intent.createChooser(sharingIntent, \"Share via\");\n createChooser.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(createChooser);\n }", "private void setShareIntent(Intent shareIntent) {\n if (mShareActionProvider != null) {\n mShareActionProvider.setShareIntent(shareIntent);\n }\n }", "private void setShareIntent(Intent shareIntent) {\n if (mShareActionProvider != null) {\n mShareActionProvider.setShareIntent(shareIntent);\n }\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tIntent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); \n\t\tsharingIntent.setType(\"text/plain\");\n\t\tString shareBody = \"I scored \"+score+\" points!How much can you score?Install the game Space Prowler from the Play Store now!\";\n\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Subject Here\");\n\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n\t\tstartActivity(Intent.createChooser(sharingIntent, \"Share via\"));\n\t\t\n\t}", "public boolean onOptionsItemSelected(MenuItem item) \n\t{\n\t\tswitch (item.getItemId())\n\t\t{\n\tcase R.id.share:\n \n\t\tIntent sendIntent = new Intent(Intent.ACTION_SEND);\n\t\t//sendIntent.setAction(Intent.ACTION_SEND);\n\t\tsendIntent.putExtra(Intent.EXTRA_TEXT,\"Download the App 'Nyimbo Za Kristo' with midi and categorized hymns. Click on this link https://play.google.com/store/apps/details?id=com.chalo.nzk\");\n\t\tsendIntent.setType(\"text/plain\");\n\t\tstartActivity(sendIntent);\n return true;\n \n \n default:\n \n\t\treturn super.onOptionsItemSelected(item);\n\t}\n\t}", "@Override\r\n\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n\r\n switch (item.getItemId()) {\r\n\r\n case R.id.mShare:\r\n\r\n Intent i = new Intent(\r\n\r\n android.content.Intent.ACTION_SEND);\r\n\r\n i.setType(\"text/plain\");\r\n\r\n i.putExtra(\r\n\r\n android.content.Intent.EXTRA_TEXT, \"This is my grocery list\");\r\n\r\n startActivity(Intent.createChooser(\r\n\r\n i,\r\n\r\n \"Share using\"));\r\n\r\n break;\r\n\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n\r\n }", "private void shareImage() {\n Intent share = new Intent(Intent.ACTION_SEND);\n\n // If you want to share a png image only, you can do:\n // setType(\"image/png\"); OR for jpeg: setType(\"image/jpeg\");\n share.setType(\"image/*\");\n\n // Make sure you put example png image named myImage.png in your\n // directory\n\n\n Log.d(\"PATH\", \"PATH:\" + path);\n\n File imageFileToShare = new File(path);\n Uri uri = Uri.fromFile(imageFileToShare);\n //share.putExtra(Intent.EXTRA_TEXT, \"https://play.google.com/store/apps/details?id=kailash.natural.wallpaper\");\n share.putExtra(Intent.EXTRA_STREAM, uri);\n\n startActivity(Intent.createChooser(share, \"Share Image!\"));\n }", "private void share(String title, String text)\n {\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_SEND);\n sendIntent.putExtra(Intent.EXTRA_TEXT, text);\n sendIntent.setType(\"text/plain\");\n startActivity(Intent.createChooser(sendIntent, title));\n }", "@Override\n\tpublic void share(Integer points){\n\t\tIntent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n\t\tsharingIntent.setType(\"text/plain\");\n\t\tString shareBody = \"I got \"+ points.toString()+\" points in the game \" + getResources().getString(R.string.app_name)+\". Are you able to beat me? https://play.google.com/store/apps/details?id=\"+getPackageName();\n\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n\t\tstartActivity(Intent.createChooser(sharingIntent, \"Share via\"));\n\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n Intent share=new Intent(android.content.Intent.ACTION_SEND);\n\n share.setType(\"text/plain\");\n share.putExtra(android.content.Intent.EXTRA_SUBJECT,news.getTitle());\n share.putExtra(android.content.Intent.EXTRA_TEXT,\"Follow the link : \"+MainActivity.base_url+news.getAbsolute_url()+\" to read more\");\n startActivity(Intent.createChooser(share,\"Share via\"));\n\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_SEND);\n\n\t\t\t\tFile f = new File(imagePath);\n\t\t\t\tif (f != null && f.exists() && f.isFile()) {\n\t\t\t\t\tintent.setType(\"image/jpg\");\n\t\t\t\t\tUri u = Uri.fromFile(f);\n\t\t\t\t\tintent.putExtra(Intent.EXTRA_STREAM, u);\n\t\t\t\t}\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"分享图片\"));\n\t\t\t}", "public Intent mo34965a(Context context) {\n Intent intent = new Intent(\"android.intent.action.SEND\");\n intent.setDataAndType(Uri.parse(String.format(\"snapchat://%s?link=%s\", new Object[]{this.f30606a.getDeeplinkUrlPath(), this.f30607b})), this.f30606a.getIntentType());\n Uri fileProviderUri = SnapUtils.getFileProviderUri(context, this.f30606a.getMediaFile());\n SnapSticker snapSticker = this.f30606a.getSnapSticker();\n String str = \"android.intent.extra.STREAM\";\n if (snapSticker != null) {\n Uri fileProviderUri2 = SnapUtils.getFileProviderUri(context, snapSticker.getStickerFile());\n intent.putExtra(\"sticker\", snapSticker.getJsonForm(fileProviderUri2).toString());\n ArrayList arrayList = new ArrayList();\n if (fileProviderUri != null) {\n arrayList.add(fileProviderUri);\n }\n arrayList.add(fileProviderUri2);\n if (arrayList.size() > 1) {\n intent.putParcelableArrayListExtra(str, arrayList);\n intent.setAction(\"android.intent.action.SEND_MULTIPLE\");\n } else if (!arrayList.isEmpty()) {\n intent.putExtra(str, (Parcelable) arrayList.get(0));\n }\n } else if (fileProviderUri != null) {\n intent.putExtra(str, fileProviderUri);\n }\n String attachmentUrl = this.f30606a.getAttachmentUrl();\n if (!TextUtils.isEmpty(attachmentUrl)) {\n intent.putExtra(\"attachmentUrl\", attachmentUrl);\n }\n String captionText = this.f30606a.getCaptionText();\n if (!TextUtils.isEmpty(captionText)) {\n intent.putExtra(\"captionText\", captionText);\n }\n return intent;\n }", "public static void attachShareIntent(Context context, ImageButton button, String url) {\n String subject = context.getResources().getString(R.string.intent_subject);\n String title = context.getResources().getString(R.string.intent_title);\n button.setOnClickListener(view -> {\n Intent sharingIntent = new Intent(Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n sharingIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n sharingIntent.putExtra(Intent.EXTRA_TEXT, url);\n context.startActivity(Intent.createChooser(sharingIntent, title));\n });\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(Intent.ACTION_SEND);\n\t\t\t\ti.setType(\"text/plain\");\n\t\t\t\ti.putExtra(Intent.EXTRA_SUBJECT, \"Sharing URL\");\n\t\t\t\ti.putExtra(Intent.EXTRA_TEXT, prodUrl);\n\t\t\t\tstartActivity(Intent.createChooser(i, \"Share URL\"));\n\t\t\t}", "protected abstract Intent getIntent();", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_share:\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"text/plain\");\n String link;\n //Test if its from google or b-ok\n if(book.getVolumeInfo().getWebLink().contains(\"books.google.com\")) {\n link = book.getVolumeInfo().getWebLink();\n }\n else {\n link = \"https://1lib.eu\" + book.getVolumeInfo().getWebLink();\n }\n intent.putExtra(Intent.EXTRA_TEXT, link);\n startActivity(Intent.createChooser(intent, \"Share with\"));\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "public final Intent mo49194a(Context context) {\n Intent intent = new Intent(\"android.intent.action.SEND\");\n intent.setDataAndType(Uri.parse(C1642a.m8034a(\"snapchat://%s?link=%s\", new Object[]{this.f50510a.getDeeplinkUrlPath(), this.f50511b})), this.f50510a.getIntentType());\n Uri fileProviderUri = SnapUtils.getFileProviderUri(context, this.f50510a.getMediaFile());\n SnapSticker snapSticker = this.f50510a.getSnapSticker();\n if (snapSticker != null) {\n Uri fileProviderUri2 = SnapUtils.getFileProviderUri(context, snapSticker.getStickerFile());\n intent.putExtra(\"sticker\", snapSticker.getJsonForm(fileProviderUri2).toString());\n ArrayList arrayList = new ArrayList();\n if (fileProviderUri != null) {\n arrayList.add(fileProviderUri);\n }\n arrayList.add(fileProviderUri2);\n if (arrayList.size() > 1) {\n intent.putParcelableArrayListExtra(\"android.intent.extra.STREAM\", arrayList);\n intent.setAction(\"android.intent.action.SEND_MULTIPLE\");\n } else if (!arrayList.isEmpty()) {\n intent.putExtra(\"android.intent.extra.STREAM\", (Parcelable) arrayList.get(0));\n }\n } else if (fileProviderUri != null) {\n intent.putExtra(\"android.intent.extra.STREAM\", fileProviderUri);\n }\n String attachmentUrl = this.f50510a.getAttachmentUrl();\n if (!TextUtils.isEmpty(attachmentUrl)) {\n intent.putExtra(\"attachmentUrl\", attachmentUrl);\n }\n String captionText = this.f50510a.getCaptionText();\n if (!TextUtils.isEmpty(captionText)) {\n intent.putExtra(\"captionText\", captionText);\n }\n return intent;\n }", "private void shareOnFacebook() {\n // Take a screen shot\n takeScreenShot(imgSharedFacebook);\n final File screenShotfile = new File(SCREENSHOTS_LOCATIONS, mQuestionScreenShotName);\n final Uri screenShotUri = Uri.fromFile(screenShotfile);\n final String shareSubject = \"Congratulation!\";\n String shareBody = \"http://p2a.asia\";\n if (mSession != null) {\n shareBody = \"You won P2A ASEAN Game with \" + mSession.get_session_total_score() +\n \" score. Visit our site here: http://www.p2a.asia\";\n }\n final Intent sharingTotalScoreIntent = new Intent(Intent.ACTION_SEND);\n sharingTotalScoreIntent.putExtra(Intent.EXTRA_SUBJECT, shareSubject);\n sharingTotalScoreIntent.putExtra(Intent.EXTRA_TEXT, shareBody);\n sharingTotalScoreIntent.setType(\"image/*\");\n sharingTotalScoreIntent.putExtra(Intent.EXTRA_STREAM, screenShotUri);\n sharingTotalScoreIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivity(Intent.createChooser(sharingTotalScoreIntent, \"Share your score via\"));\n }", "public void changeShareIntent(ShareActionProvider mShareActionProvider, Intent shareIntent) {\n mShareActionProvider.setShareIntent(shareIntent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id==R.id.action_share){\n Intent shareintent = Share.share(content);\n startActivity(Intent.createChooser(shareintent, getResources().getString(R.string.app_name)));\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tif(share!=null){\n\t\t\t\tif(v.getId()==R.id.QQShare){\n\t\t\t\t\tshare.QQShare();\n\t\t\t\t}else if(v.getId()==R.id.SinaShare){\n\t\t\t\t\tshare.SinaShare();\n\t\t\t\t}else if(v.getId()==R.id.WxShare){\n\t\t\t\t\tshare.WxShare();\n\t\t\t\t}else if(v.getId()==R.id.QQKJShare){\n\t\t\t\t\tshare.QQKJShare();\n\t\t\t\t}else if(v.getId()==R.id.SmsShare){\n\t\t\t\t\tshare.SMSShare();\n\t\t\t\t}\n\t\t\t}\n\t\t\tpw.dismiss();\n\t\t\t\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n\n getMenuInflater().inflate(R.menu.menu_aboutus, menu);\n\n// Inflate the menu; this adds items to the action bar if it is present.\n\n MenuItem shareItem = menu.findItem(R.id.menu_share);\n myShareActionProvider = (ShareActionProvider) MenuItemCompat.getActionProvider(shareItem);\n myShareActionProvider.setShareHistoryFileName(\n ShareActionProvider.DEFAULT_SHARE_HISTORY_FILE_NAME);\n myShareActionProvider.setShareIntent(Shareintent());\n\n return super.onCreateOptionsMenu(menu);\n\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n MenuItem item = menu.findItem(R.id.menu_item_share);\r\n ShareActionProvider myShareActionProvider = (ShareActionProvider)MenuItemCompat.getActionProvider(item);\r\n myShareActionProvider.setShareHistoryFileName(\"test\");\r\n \r\n Intent myIntent = new Intent();\r\n myIntent.setAction(Intent.ACTION_SEND);\r\n myIntent.putExtra(Intent.EXTRA_TEXT, getResources().getString(R.string.sms_body));\r\n myIntent.setType(\"text/plain\");\r\n\r\n myShareActionProvider.setShareIntent(myIntent);\r\n\r\n\t\treturn true;\r\n\t}", "public void shareToFacebook(View view) {\n Uri path = imageWithThumbnail.getImageUri();\n\n // create email intent first to remove bluetooth + others options\n Intent emailIntent = new Intent();\n emailIntent.setAction(Intent.ACTION_SEND);\n // Native email client doesn't currently support HTML, but it doesn't hurt to try in case they fix it\n emailIntent.putExtra(Intent.EXTRA_TEXT, \"#Selfie@NYPSIT\");\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"#Selfie@NYPSIT\");\n emailIntent.putExtra(Intent.EXTRA_STREAM, path);\n emailIntent.setType(\"image/jpeg\");\n // Create the chooser based on the email intent\n Intent openInChooser = Intent.createChooser(emailIntent, \"Share to\");\n\n // Check for other packages that open our mime type\n Intent sendIntent = new Intent(Intent.ACTION_SEND);\n sendIntent.setType(\"image/jpeg\");\n\n PackageManager pm = getContext().getPackageManager();\n List<ResolveInfo> resInfo = pm.queryIntentActivities(sendIntent, 0);\n List<LabeledIntent> intentList = new ArrayList<LabeledIntent>();\n for (int i = 0; i < resInfo.size(); i++) {\n // Extract the label, append it, and repackage it in a LabeledIntent\n ResolveInfo ri = resInfo.get(i);\n String packageName = ri.activityInfo.packageName;\n if (packageName.contains(\"com.amuletxheart.cameraderie\")) {\n emailIntent.setPackage(packageName);\n }\n intentList.add(new LabeledIntent(emailIntent, packageName, ri.loadLabel(pm), ri.icon));\n }\n // Get our custom intent put here as we only want your app to get it not others\n Intent customIntent = new Intent(\"facebooktestingimageandtext.intent.action.SEND\");\n customIntent.setType(\"image/jpeg\");\n customIntent.setAction(\"facebooktestingimageandtext.intent.action.SEND\");\n\n resInfo = pm.queryIntentActivities(customIntent, 0);\n for (int i = 0; i < resInfo.size(); i++) {\n // Extract the label, append it, and repackage it in a LabeledIntent\n ResolveInfo ri = resInfo.get(i);\n String packageName = ri.activityInfo.packageName;\n if (packageName.contains(\"com.amuletxheart.cameraderie\")) {\n Intent intent = new Intent();\n intent.setComponent(new ComponentName(packageName, ri.activityInfo.name));\n intent.setAction(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_STREAM, path);\n intent.setType(\"image/jpeg\");\n if (packageName.contains(\"com.amuletxheart.cameraderie\")) {\n // My custom facebook intent to do something very simple!\n intent.putExtra(Intent.EXTRA_TEXT, \"caption #testhashtag\");\n }\n intentList.add(new LabeledIntent(intent, packageName, ri.loadLabel(pm), ri.icon));\n }\n }\n // convert the list of intents(intentList) to array and add as extra intents\n LabeledIntent[] extraIntents = intentList.toArray(new LabeledIntent[intentList.size()]);\n openInChooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, extraIntents);\n\n mContext.startActivity(openInChooser);\n }", "public void sharePage(){\n Intent shareIntent = new Intent(Intent.ACTION_VIEW);\n shareIntent.setData(Uri.parse(\"http://192.168.43.105:5000\"));//edit url\n startActivity(shareIntent);\n }", "com.google.cloud.dialogflow.cx.v3.Intent getIntent();", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()){\n case R.id.share: // share with friends through social media\n Intent sharingIntent = new Intent(Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n sharingIntent.putExtra(Intent.EXTRA_SUBJECT, \"\");\n sharingIntent.putExtra(Intent.EXTRA_TEXT, \"\");\n try {\n startActivity(Intent.createChooser(sharingIntent, \"Share via\"));\n break;\n } catch(ActivityNotFoundException e){Toast.makeText(MainActivity.this, \"There are no social media apps installed.\", Toast.LENGTH_SHORT).show();\n }\n\n case R.id.rate: // rate the app\n Uri uri = Uri.parse(\"market://details?id=\" + getPackageName());\n Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);\n // To count with Play market backstack, After pressing back button,\n // to taken back to our application, we need to add following flags to intent.\n goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY |\n Intent.FLAG_ACTIVITY_NEW_DOCUMENT |\n Intent.FLAG_ACTIVITY_MULTIPLE_TASK);\n try {\n startActivity(goToMarket);\n break;\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"http://play.google.com/store/apps/details?id=\" + getPackageName())));\n }\n\n case R.id.about:\n Intent newIntent = new Intent(MainActivity.this, about.class );\n startActivity(newIntent);\n }\n return super.onOptionsItemSelected(item);\n }", "public void dialogShare()\n\t {\n\t \tAlertDialog.Builder builder = new AlertDialog.Builder(this); \n\t \tbuilder\n\t \t.setMessage(\"Congratulations! you just finished the \" + dayName + \" workout!! Do you want to tell your friends?\")\n\t \t.setTitle(\"Share with your Friends?\")\n\t .setCancelable(false)\n\t .setNegativeButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t \t//since they said yes, we are going to show them the share dialog\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tIntent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n\t\t\t\t\tsharingIntent.setType(\"text/plain\");\n\t\t\t\t\tString URL = \"http://market.android.com/details?id=com.appsmarttech.ultitrack92\";\n\t\t\t\t\tString shareBody = \"I just completed \" + dayID + \" of the P90X, and I tracked it using UltiTrack! get it here \" + URL;\n\t\t\t\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"I am Awesome!!!\");\n\t\t\t\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n\t\t\t\t\tstartActivity(Intent.createChooser(sharingIntent, \"Share via\"));\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}\n\t })\n\n\t .setPositiveButton(\"No\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t//since they said no, we take them to the launch activity\n\t \t\n\t\t\t\tstartActivity(intent);\n\t\t\t\t}\n\t });\n\t \t\n\t \tAlertDialog alert = builder.create();\n\t \t\n\t \talert.show();\n\t }", "public void onClickShare(MenuItem mi) {\n mCanvas.getSurfaceView().queueEvent(new Runnable() {public void run() {\n mCanvas.save(mSavePath, PaintPaint.AUTOSAVE);\n File file = new File(mSavePath+PaintPaint.AUTOSAVE);\n Intent intent = new Intent(android.content.Intent.ACTION_SEND);\n intent.setType(\"image/png\");\n intent.putExtra(Intent.EXTRA_STREAM,Uri.fromFile(file));\n startActivity(Intent.createChooser(intent, \"Share image\"));\n }});\n }", "@Override\r\n public void onClick(View v) {\r\n\r\n PackageManager pm = getPackageManager();\r\n try {\r\n\r\n Intent waIntent = new Intent(Intent.ACTION_SEND);\r\n waIntent.setType(\"image/jpeg\");\r\n String text = \"YOUR TEXT HERE\";\r\n\r\n PackageInfo info = pm.getPackageInfo(\"com.whatsapp\", PackageManager.GET_META_DATA);\r\n //Check if package exists or not. If not then code\r\n //in catch block will be called\r\n waIntent.setPackage(\"com.whatsapp\");\r\n\r\n //waIntent.putExtra(Intent.EXTRA_TEXT, text);\r\n waIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(\"file:///sdcard/path-to-your-image.jpg\"));\r\n context.startActivity(Intent.createChooser(waIntent, \"Share with\"));\r\n\r\n } catch (PackageManager.NameNotFoundException e) {\r\n Toast.makeText(context, \"WhatsApp not Installed\", Toast.LENGTH_SHORT).show();\r\n }\r\n\r\n }", "@Override\n protected void sendChooserIntent(WindowAndroid windowAndroid, Intent sharingIntent) {\n super.sendChooserIntent(windowAndroid, sharingIntent);\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) \n\t\t\t\t\t{\n\t\t\t\t\t\tString url = \"https://www.facebook.com/dialog/feed?app_id=1507764116109075&\" +\n\t\t\t\t\t\t\t\t \t \"link=https://play.google.com/store/apps/details?id=com.achyuthnfn.cnbfinal&\" +\n\t\t\t\t\t\t\t\t \t \"caption=GuessIn&\" +\n\t\t\t\t\t\t\t\t \t \"description=\"+Uri.parse(\"My smartphone just thought of a word and I guessed it in \"+attempts+\" attempts. Check out the new game by @nfnlabs called GuessIn!\")+\n\t\t\t\t\t\t\t\t \t \"&redirect_uri=https://www.facebook.com/connect/login_success.html\"+\n\t\t\t\t\t\t\t\t \t \"&picture=http://nfnlabs.in/wp-content/uploads/2014/06/Share%20Image.png\";\n\t\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\tintent.setData(Uri.parse(url));\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}", "public String getIsShare() {\n return isShare;\n }", "@Override\r\n\tpublic void ShowShare(Context _in_context, String _in_data) {\n\t\tTypeSDKLogger.e( \"ShowShare\");\r\n\t}", "public void shareViaWhatsappNativeOption() {\n nativeWhatsappShareButton.click();\n }", "public void share(View view) {\n if (urlImage != \"\") {\n try {\n new ShareOnFacebook(bitmapArray, this).share();\n } catch (Exception e) {\n e.printStackTrace();\n Intent mIntentFacebookBrowser = new Intent(Intent.ACTION_SEND);\n String mStringURL = \"https://www.facebook.com/sharer/sharer.php?u=\" + urlImage;\n mIntentFacebookBrowser = new Intent(Intent.ACTION_VIEW, Uri.parse(mStringURL));\n startActivity(mIntentFacebookBrowser);\n }\n }\n }", "private void _fbAppShare(Activity act, UiLifecycleHelper uiHelper, String link, String description)\n {\n try {\n FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(act)\n .setLink(link != null && !link.equals(\"\") ? link : \"\")\n .setDescription(description != null && !description.equals(\"\") ? description : \"\")\n .build();\n uiHelper.trackPendingDialogCall(shareDialog.present());\n } catch (FacebookException ex) {\n String urlParameters = String.format(Constants.FB_SHARE_URL,\n act.getString(R.string.app_url), act.getString(R.string.app_name));\n Utilities.getInstance().openURL(act, urlParameters);\n }\n }", "private void shareToFacebook(Context context, CallbackManager callbackManager, Uri uri) {\n Toast.makeText(context, \"start sharing to facebook, \" + uri.getPath(), Toast.LENGTH_SHORT).show();\n //com.facebook.orca\n //com.facebook.katana\n //com.example.facebook\n //com.facebook.android\n String facebookPackage = \"com.facebook.katana\";\n if (AppUtil.getInstance().isAppInstalled(context, facebookPackage)) {\n //using default intent\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"image/*\");\n// intent.putExtra(Intent.EXTRA_STREAM, uri);\n// intent.putExtra(Intent.EXTRA_TEXT, \"this is a simple extra text\");\n// intent.setPackage(facebookPackage);\n//// startActivity(Intent.createChooser(intent, \"pick an app to ...\"));\n// startActivity(intent);\n\n //using sdk but native facebook app has been installed\n sharePhotoToFacebook(context, callbackManager, uri);\n\n } else {\n loginAndShareToFacebook(context, callbackManager, uri);\n }\n\n\n }", "private void setUpShareAppListener() {\n shareAppButton.setOnClickListener(v -> {\n try {\n Intent i = new Intent(Intent.ACTION_SEND);\n i.setType(\"text/plain\");\n i.putExtra(Intent.EXTRA_SUBJECT, getResources().getString(R.string.app_name));\n String aux = \"Download the app\\n\";\n aux = aux + \"https://drive.google.com/file/d/11oh5KY-V3GAdRjmZECbD5cOD1T8syDJs/view?usp=sharing\" + getBaseContext().getPackageName();\n i.putExtra(Intent.EXTRA_TEXT, aux);\n startActivity(i);\n } catch (Exception e) {\n }\n });\n }", "private void shareToTwitter(Context context, Uri uri) {\n Toast.makeText(context, \"start sharing to twitter \" + uri.getPath(), Toast.LENGTH_SHORT).show();\n String twitterPackage = \"com.twitter.android\";\n if (AppUtil.getInstance().isAppInstalled(context, twitterPackage)) {\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_STREAM, uri);\n intent.putExtra(Intent.EXTRA_TEXT, \"the simple text\");\n intent.setType(\"image/*\");\n intent.setPackage(twitterPackage);\n context.startActivity(intent);\n\n //using Twitter Tweet Composer\n //The Twitter Android Application allows apps to start the exported Tweet composer via an Intent.\n //The Twitter Android compose is feature-rich, familiar to users, and has options for attaching images and videos.\n //If the Twitter app is not installed, the intent will launch twitter.com in a browser, but the specified image will be ignored.\n// TweetComposer.Builder builder = new TweetComposer.Builder(this)\n// .text(\"just setting up my Fabric.\")\n// .image(uri);\n// builder.show();\n\n } else {\n //The TwitterKit Tweet Composer (Beta) is a lightweight composer which lets users compose Tweets with App Cards from within your application.\n // It does not depend on the Twitter for Android app being installed.\n\n// Card card = new Card.AppCardBuilder(MainActivity.this)\n// .imageUri(uri)\n// .iPhoneId(\"123456\")\n// .iPadId(\"654321\")\n// .build();\n//\n// TwitterSession session = TwitterCore.getInstance().getSessionManager().getActiveSession();\n// Intent intent = new ComposerActivity.Builder(MainActivity.this).session(session).card(card).createIntent();\n// startActivity(intent);\n Toast.makeText(context, \"to use this feature, you must have an Twitter application is installed\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_share) {\n createShareIntent();\n }\n\n return super.onOptionsItemSelected(item);\n }", "public Intent getIntent() {\n return mIntent;\n }", "@Override\n\tpublic ToolStripButton getShareButton() {\n\t\treturn shareButton;\n\t}", "@Override\r\n\tpublic void ShowShare(Context _in_context, String _in_data) {\n\t\tTypeSDKLogger.e(\"ShowShare\");\r\n\t}", "public Intent getIntent() {\n return mIntent;\n }", "@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tNoteEditView.this.addShare();\n \t\t\t}", "@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\r\n\t\tcase R.id.img_btn_share:\r\n\t\t\tIntent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); \r\n\t\t sharingIntent.setType(\"text/plain\");\r\n\t\t String shareBody =getIntent().getStringExtra(\"web\");\r\n\t\t sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Subject Here\");\r\n\t\t sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\r\n\t\tstartActivity(Intent.createChooser(sharingIntent, \"Share via\"));\r\n\t\t\tbreak;\r\n\t\tcase R.id.img_btn_web:\r\n\t\t\tString web=getIntent().getStringExtra(\"web\");\r\n\t\t\tif(web.equals(\"\")==false){\r\n\t\t\tIntent webintent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(getIntent().getStringExtra(\"web\")));\r\n\t\t\tstartActivity(webintent);\r\n\t\t\t}else{\r\n\t\t\t\tif(current.getLanguage().equals((\"el\")))\r\n\t\t\t\tToast.makeText(this, \" Η ιστοσελίδα δεν είναι διαθέσιμη\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\telse\r\n\t\t\t\t\tToast.makeText(this, \"Webpage is not available\", Toast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\t\t\tbreak;\t\r\n\t\tcase R.id.img_btn_email:\r\n\t\t\tif(getIntent().getStringExtra(\"email\").equals(\"\")==false){\r\n\t\t\t\r\n\t\t\tIntent intent = new Intent(Intent.ACTION_SENDTO); // it's not ACTION_SEND\r\n\t\t\tintent.setType(\"text/plain\");\t\t\r\n\t\t\t\r\n\t\t\tintent.setData(Uri.parse(\"mailto:\"+getIntent().getStringExtra(\"email\"))); // or just \"mailto:\" for blank\r\n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // this will make such that when user returns to your app, your app is displayed, instead of the email app.\r\n\t\t\tstartActivity(intent);}\r\n\t\t\r\n\t\telse{\r\n\t\t\tif(current.getLanguage().equals((\"el\")))\r\n\t\t\tToast.makeText(this, \" Το email δεν είναι διαθέσιμο\", Toast.LENGTH_SHORT).show();\r\n\t\t\telse\r\n\t\t\t\tToast.makeText(this, \"email is not available\", Toast.LENGTH_SHORT).show();\r\n\t\t}\r\n\t\t\tbreak;\r\n\t\tcase R.id.img_btn_map:\r\n\t\t\tIntent mymap=new Intent(SingleRecord.this,Map.class);\r\n\t\t\tmymap.putExtra(\"lat\", getIntent().getStringExtra(\"mylat\"));\r\n\t\t\tmymap.putExtra(\"lng\", getIntent().getStringExtra(\"mylng\"));\r\n\t\t\tmymap.putExtra(\"name\", getIntent().getStringExtra(\"name\"));\r\n\t\t\tstartActivity(mymap);\r\n\t\tbreak;\r\n\t\tcase R.id.img_btn_direction:\r\n\t\t\t\r\n\t\t\tIntent i = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(\"http://maps.google.com/maps?saddr=\"+current_lat+\",\"+current_lng+\"&daddr=\"+mylat+\",\"+mylng));\r\n\t\t\tstartActivity(i);\r\n\t\t\tbreak;\r\n\t\tcase R.id.tv_tel1:\r\n\t\t\tSystem.out.println(tel1);\r\n\t\t\tIntent callIntent1 = new Intent(Intent.ACTION_CALL);\r\n\t\t\tcallIntent1.setData(Uri.parse(\"tel:\"+getNumber(tel1)));\r\n\t\t\tstartActivity(callIntent1);\r\n\t\t\tbreak;\r\n\t\tcase R.id.tv_tel2:\r\n\t\t\tIntent callIntent2 = new Intent(Intent.ACTION_CALL);\r\n\t\t\tcallIntent2.setData(Uri.parse(\"tel:\"+getNumber(tel2)));\r\n\t\t\tstartActivity(callIntent2);\r\n\t\t\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase R.id.tv_tel3:\r\n\t\t\tIntent callIntent3 = new Intent(Intent.ACTION_CALL);\r\n\t\t\tcallIntent3.setData(Uri.parse(\"tel:\"+getNumber(tel3)));\r\n\t\t\tstartActivity(callIntent3);\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase R.id.btn_menu:\r\n\t\t\tSystem.out.println(url_attach);\r\n\t\t\tdownloadfile task=new downloadfile();\r\n\t\t\t\r\n\t\t\ttask.execute(url_attach);\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "void mo21580A(Intent intent);", "public void onShareAdded(ShareEntry shareEntry);", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.details, menu);\n\n // Set up ShareActionProvider's default share intent\n mShareActionProvider = (ShareActionProvider) menu.findItem(R.id.action_share).getActionProvider();\n mShareActionProvider.setShareIntent(getDefaultIntent());\n\n return true;\n }", "@Override\r\n\t\t\tpublic void onClick(View v)\r\n\t\t\t{\n\t\t\t\tshareViaFacebook();\r\n\t\t\t}", "private void sharePic(Uri uri)\n \t {\n\t\t Intent whatsappIntent = new Intent(Intent.ACTION_SEND);\n\t whatsappIntent.setType(\"image/*\");\n\t\n\t whatsappIntent.putExtra(Intent.EXTRA_TEXT, \"Your text here\");\n\t whatsappIntent.putExtra(Intent.EXTRA_STREAM, uri); \n\t whatsappIntent.setPackage(\"com.whatsapp\"); \n\t \n\t \n\t PackageManager pm = getApplicationContext().getPackageManager();\n \t final List<ResolveInfo> matches = pm.queryIntentActivities(whatsappIntent, 0);\n \t boolean temWhatsApp = false;\n \t for (final ResolveInfo info : matches)\n \t {\n \t \t if (info.activityInfo.packageName.startsWith(\"com.whatsapp\")) \n \t \t {\n\t \t final ComponentName name = new ComponentName(info.activityInfo.applicationInfo.packageName, info.activityInfo.name);\n\t \t temWhatsApp = true;\n\t \t break;\n \t \t }\n \t } \n \t if(temWhatsApp) \n \t {\n \t //abre whatsapp\n \t \t startActivity(Intent.createChooser(whatsappIntent, \"Your Awesome Text and Pic...\"));\n \t } else {\n \t //alerta - vocÍ deve ter o whatsapp instalado\n \t Toast.makeText(this, \"Error\", Toast.LENGTH_SHORT).show();\n \t }\n\t }", "@Override\n\tpublic void onShareButton() {\n\t\tDialogs.getShareEditDialog(this, false).show();\n\t}", "protected Intent getStravaActivityIntent()\n {\n return new Intent(this, MainActivity.class);\n }", "public boolean canShare();", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch (id) {\n case R.id.logout:\n // signout();\n return true;\n\n case R.id.share:\n\n String nombre, correo;\n nombre = mAuth.getCurrentUser().getDisplayName();\n correo = mAuth.getCurrentUser().getEmail();\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_SEND);\n sendIntent.putExtra(Intent.EXTRA_TEXT, nombre + \"\\n\" + correo);\n sendIntent.setType(\"text/plain\");\n startActivity(sendIntent);\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.detail, menu);\n\n // Retrieve the share menu item\n MenuItem menuItem = menu.findItem(R.id.action_share);\n\n // Get the provider and hold onto it to set/change the share intent\n ShareActionProvider mShareActionProvider = (ShareActionProvider) MenuItemCompat.getActionProvider(menuItem);\n\n\n // Attach an intent to this ShareActionProvider. You can update this at any time,\n // like when the user selects a new piece of data they might like to share.\n if (mShareActionProvider != null) {\n mShareActionProvider.setShareIntent(createShareForecastIntent());\n } else {\n Log.d(TAG, \"Share Action Provider is null?\");\n }\n\n return true;\n }", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tMyShareEntity MF1= list.get(i);\n\t\t\t\t\t\tIntent it = new Intent(mContext,SharingCenterDetail.class);\n\t\t\t\t\t\t\n\t\t\t\t\t\tit.putExtra(\"sid\", MF1.getId());\n\t\t\t\t\t\tit.putExtra(\"pid\", MF1.getPERSONID());\n\t\t\t\t\t\tit.putExtra(\"pname\", MF1.getName());\n\t\t\t\t\t\t\n\t\t\t\t\t\tmContext.startActivity(it);\n\t\t\t\t\t}", "private void genSharedPostOnFacebook () {\n shareLinkContent = new ShareLinkContent.Builder()\n .setContentTitle(\"Your Title\")\n .setContentDescription(\"Your Description\")\n .setContentUrl(Uri.parse(\"URL[will open website or app]\"))\n .setImageUrl(Uri.parse(\"image or logo [if playstore or app store url then no need of this image url]\"))\n .build();\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.share) {\n Intent sendInt = new Intent(Intent.ACTION_SEND);\n sendInt.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.app_name));\n sendInt.putExtra(Intent.EXTRA_TEXT, \"Kuy, Download Kesegaran Telyu Di Android Kamu! dijamin gakbakalan nyesel deh!\\n\\n\\\"\"+getString(R.string.app_name)+\"\\\" \\nhttps://play.google.com/store/apps/details?id=id.luckytruedev.shitposting\");\n sendInt.setType(\"text/plain\");\n startActivity(Intent.createChooser(sendInt, \"Bagikan Ke Teman\"));\n return true;\n }\n if (id == R.id.rating) {\n Intent ps = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=id.luckytruedev.shitposting\"));\n startActivity(ps);\n return true;\n }\n if (id == R.id.moreapps) {\n Intent luckytrue = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/developer?id=LuckyTrue+Development\"));\n startActivity(luckytrue);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public static Intent shareText(String subject, String text) {\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_SEND);\n if (!TextUtils.isEmpty(subject)) {\n intent.putExtra(Intent.EXTRA_SUBJECT, subject);\n }\n intent.putExtra(Intent.EXTRA_TEXT, text);\n intent.setType(\"text/plain\");\n return intent;\n }", "private void share() {\n try {\n File imagesFolder = new File(getCacheDir(), \"images\");\n if (!imagesFolder.exists()) {\n if (!imagesFolder.mkdirs()) {\n Log.e(\"Pixelart\", \"Could not create directory\");\n }\n }\n File cacheFile = new File(imagesFolder, \"shared_image.png\");\n FileOutputStream fos = new FileOutputStream(cacheFile);\n sprite.compress(Bitmap.CompressFormat.PNG, 100, fos);\n fos.flush();\n fos.close();\n Uri uri = FileProvider.getUriForFile(this,\n \"com.funguscow.fileprovider\",\n cacheFile);\n Intent shareIntent = new Intent();\n shareIntent.setAction(Intent.ACTION_SEND);\n shareIntent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n shareIntent.putExtra(Intent.EXTRA_STREAM, uri);\n shareIntent.setDataAndType(uri, \"image/png\");\n startActivity(Intent.createChooser(shareIntent, \"Share\"));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_settings) {\n\n Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n String shareBody = \"https://play.google.com/store/apps/details?id=lohitprojects.bitcointrack&hl=en\";\n String shareContent1=\"\\n✦ Bitcoin Track\\n\";\n String shareContent2=\"✦ Everything you need to know about Bitcoin \\n✦ Live bitcoin rate Tracking in any Currency | Wallets | Mining | Historical Records\";\n String shareContent3 = \"\\n✦ \";\n sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Subject Here\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareContent1+shareContent2+shareContent3+shareBody);\n startActivity(Intent.createChooser(sharingIntent, \"Share via\"));\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void run() {\n String str;\n String str2 = str;\n boolean z = jSONArray.length() > 1;\n final Intent intent = new Intent(z ? \"android.intent.action.SEND_MULTIPLE\" : \"android.intent.action.SEND\");\n final PendingIntent broadcast = PendingIntent.getBroadcast(SocialSharing.this.cordova.getActivity().getApplicationContext(), 0, new Intent(SocialSharing.this.cordova.getActivity().getApplicationContext(), ShareChooserPendingIntent.class), 134217728);\n intent.addFlags(524288);\n String str3 = null;\n try {\n if (jSONArray.length() <= 0 || \"\".equals(jSONArray.getString(0))) {\n intent.setType(\"text/plain\");\n if (SocialSharing.notEmpty(str2)) {\n intent.putExtra(\"android.intent.extra.SUBJECT\", str2);\n }\n if (SocialSharing.notEmpty(str3)) {\n str2 = SocialSharing.notEmpty(str2) ? str2 + \" \" + str3 : str3;\n }\n if (SocialSharing.notEmpty(str2)) {\n intent.putExtra(\"android.intent.extra.TEXT\", str2);\n if (Build.VERSION.SDK_INT < 21) {\n intent.putExtra(\"sms_body\", str2);\n }\n }\n intent.addFlags(268435456);\n str = str4;\n if (str == null) {\n if (str.contains(\"/\")) {\n String[] split = str4.split(\"/\");\n String str4 = split[0];\n str3 = split[1];\n str = str4;\n }\n ActivityInfo activity = SocialSharing.this.getActivity(this.callbackContext, intent, str, str6);\n if (activity == null) {\n return;\n }\n if (z) {\n this.callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK));\n return;\n }\n intent.addCategory(\"android.intent.category.LAUNCHER\");\n String str5 = activity.applicationInfo.packageName;\n if (str3 == null) {\n str3 = activity.name;\n }\n intent.setComponent(new ComponentName(str5, str3));\n SocialSharing.this.cordova.getActivity().runOnUiThread(new Runnable() {\n /* class nl.xservices.plugins.SocialSharing.AnonymousClass2.AnonymousClass1 */\n\n public void run() {\n cordovaInterface.startActivityForResult(this, intent, 0);\n }\n });\n if (SocialSharing.this.pasteMessage != null) {\n new Timer().schedule(new TimerTask() {\n /* class nl.xservices.plugins.SocialSharing.AnonymousClass2.AnonymousClass2 */\n\n public void run() {\n SocialSharing.this.cordova.getActivity().runOnUiThread(new Runnable() {\n /* class nl.xservices.plugins.SocialSharing.AnonymousClass2.AnonymousClass2.AnonymousClass1 */\n\n public void run() {\n SocialSharing.this.copyHintToClipboard(str, SocialSharing.this.pasteMessage);\n SocialSharing.this.showPasteMessage(SocialSharing.this.pasteMessage);\n }\n });\n }\n }, 2000);\n }\n } else if (z) {\n this.callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK));\n } else {\n SocialSharing.this.cordova.getActivity().runOnUiThread(new Runnable() {\n /* class nl.xservices.plugins.SocialSharing.AnonymousClass2.AnonymousClass3 */\n\n public void run() {\n Intent intent;\n if (Build.VERSION.SDK_INT >= 22) {\n intent = Intent.createChooser(intent, str5, broadcast.getIntentSender());\n } else {\n intent = Intent.createChooser(intent, str5);\n }\n cordovaInterface.startActivityForResult(this, intent, z2 ? 1 : 2);\n }\n });\n }\n } else {\n String downloadDir = SocialSharing.this.getDownloadDir();\n if (downloadDir != null) {\n ArrayList arrayList = new ArrayList();\n Uri uri = null;\n for (int i = 0; i < jSONArray.length(); i++) {\n uri = FileProvider.getUriForFile(SocialSharing.this.webView.getContext(), SocialSharing.this.cordova.getActivity().getPackageName() + \".sharing.provider\", new File(SocialSharing.this.getFileUriAndSetType(intent, downloadDir, jSONArray.getString(i), str2, i).getPath()));\n arrayList.add(uri);\n }\n if (!arrayList.isEmpty()) {\n if (z) {\n intent.putExtra(\"android.intent.extra.STREAM\", arrayList);\n } else {\n intent.putExtra(\"android.intent.extra.STREAM\", uri);\n }\n }\n } else {\n intent.setType(\"text/plain\");\n }\n if (SocialSharing.notEmpty(str2)) {\n }\n if (SocialSharing.notEmpty(str3)) {\n }\n if (SocialSharing.notEmpty(str2)) {\n }\n intent.addFlags(268435456);\n str = str4;\n if (str == null) {\n }\n }\n } catch (Exception e) {\n this.callbackContext.error(e.getMessage());\n }\n }" ]
[ "0.7427922", "0.73679745", "0.7205719", "0.7123768", "0.7077139", "0.70678097", "0.6950833", "0.69330734", "0.6921537", "0.69116986", "0.6862537", "0.6853816", "0.6827221", "0.68096566", "0.67947775", "0.67947364", "0.6759055", "0.6745723", "0.67358243", "0.67111516", "0.66947275", "0.6682649", "0.66797537", "0.6659123", "0.66328794", "0.6621943", "0.6575957", "0.6570368", "0.6548031", "0.65296507", "0.64926815", "0.6491769", "0.64652824", "0.6462073", "0.6451479", "0.6443681", "0.64299387", "0.6410665", "0.6410665", "0.6405475", "0.6389472", "0.63764817", "0.63747984", "0.63521504", "0.6349002", "0.63476264", "0.63308156", "0.6325945", "0.6319353", "0.6307557", "0.62953174", "0.6294972", "0.62822247", "0.6280233", "0.62729305", "0.62682694", "0.6232195", "0.62274146", "0.6218158", "0.6180143", "0.61552066", "0.6146511", "0.6145675", "0.6135158", "0.6124379", "0.61220604", "0.610411", "0.60587305", "0.6057334", "0.6051621", "0.6042576", "0.60382915", "0.6006568", "0.6002867", "0.59989405", "0.59743464", "0.5971358", "0.5969707", "0.5964314", "0.59445065", "0.59404755", "0.59284365", "0.59170353", "0.5885862", "0.588553", "0.58746624", "0.5871216", "0.5868647", "0.5861283", "0.5856707", "0.5852679", "0.58455527", "0.58407164", "0.5829234", "0.5823905", "0.5823278", "0.58201325", "0.58085304", "0.58071804", "0.57968324" ]
0.7633931
0
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79046476", "0.7805623", "0.7766615", "0.77274555", "0.7632045", "0.76220745", "0.75848633", "0.7531134", "0.74884325", "0.74575055", "0.74575055", "0.74388313", "0.74218154", "0.7403308", "0.7391667", "0.7386889", "0.73792624", "0.73705244", "0.7362704", "0.7355958", "0.73457336", "0.73412824", "0.73301464", "0.73288566", "0.73257905", "0.7318758", "0.7316527", "0.7313703", "0.7304158", "0.7304158", "0.7302085", "0.72983634", "0.7293686", "0.72866", "0.7283303", "0.728145", "0.72787505", "0.7260023", "0.7260023", "0.7260023", "0.7259934", "0.72594047", "0.7249977", "0.72246146", "0.7219595", "0.72166914", "0.7204287", "0.72013676", "0.72004634", "0.71934885", "0.7185269", "0.7177778", "0.71687645", "0.7167653", "0.71539253", "0.7153525", "0.7136213", "0.7134901", "0.7134901", "0.7129261", "0.7129006", "0.71241", "0.712339", "0.71232814", "0.71220535", "0.7117341", "0.7117331", "0.7117331", "0.7117331", "0.7117331", "0.71168953", "0.71166164", "0.71150327", "0.71121156", "0.71098715", "0.7108862", "0.7105525", "0.7099833", "0.7098193", "0.7095489", "0.709369", "0.709369", "0.70865035", "0.7083285", "0.70810497", "0.70802194", "0.70737916", "0.7068235", "0.70619094", "0.70604193", "0.7060166", "0.7051441", "0.70377", "0.70377", "0.7035963", "0.703536", "0.703536", "0.70326227", "0.703064", "0.70297664", "0.7018773" ]
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.END); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClick(View view) {\n listener.menuButtonClicked(view.getId());\n }", "@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n\t\tLog.d(\"SomeTag\", \"Get click event at position: \" + itemPosition);\r\n\t\tswitch (itemPosition) {\r\n\t\tcase 1:\r\n\t\t\tIntent i = new Intent();\r\n\t\t\ti.setClass(getApplicationContext(), MainActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\tcase 2 :\r\n\t\t\tIntent intent = new Intent(this,WhiteListActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String name = navDrawerItems.get(position).getListItemName();\n // call a helper method to perform a corresponding action\n performActionOnNavDrawerItem(name);\n }", "@Override\n\tpublic void rightNavClick() {\n\t\t\n\t}", "@Override\n public void OnItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (itemClicked != null)\n\t\t\t\t\titemClicked.OnItemClicked((BusinessType)item.getTag(), item);\n\t\t\t}", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\thandleClick(position);\n\t\t\t}", "@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }", "@Override\n public void onItemClick(int pos) {\n }", "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }", "void onMenuItemClicked();", "private void handleNavClick(View view) {\n final String label = ((TextView) view).getText().toString();\n if (\"Logout\".equals(label)) {\n logout();\n }\n if (\"Profile\".equals(label)) {\n final Intent intent = new Intent(this, ViewProfileActivity.class);\n startActivity(intent);\n }\n if (\"Search\".equals(label)){\n final Intent intent = new Intent(this, SearchActivity.class);\n startActivity(intent);\n }\n if (\"Home\".equals(label)) {\n final Intent intent = new Intent(this, HomeActivity.class);\n startActivity(intent);\n }\n }", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.tvSomeText:\n listener.sendDataToActivity(\"MainActivity: TextView clicked\");\n break;\n\n case -1:\n listener.sendDataToActivity(\"MainActivity: ItemView clicked\");\n break;\n }\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "@Override\n public void onItemClick(View view, String data) {\n }", "abstract public void onSingleItemClick(View view);", "@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }", "@Override\n public void itemClick(int pos) {\n }", "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TextView textView = (TextView)view;\n switch(textView.getText().toString()){\n case \"NavBar\":\n Intent nav = new Intent(this, NavDrawerActivity.class);\n startActivity(nav);\n break;\n }\n\n //Toast.makeText(MainActivity.this,\"Go to \" + textView.getText().toString() + \" page.\",Toast.LENGTH_LONG).show();\n }", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemClick(Nson parent, View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n\n // Check if listener!=null bcz it is not guarantee that we'll call setOnItemClickListener\n // RecyclerView.NO_POSITION - Constant for -1, so that we don't click item at Invalid position (safety measure)\n if (listener != null && position != RecyclerView.NO_POSITION) {\n //listener.onItemClick(notes.get(position)); - used in RecyclerView.Adapter\n listener.onItemClick(getItem(position)); // getting data from superclass\n }\n }", "@Override\n public void onClick(View v) {\n itemClickListener.itemClicked(movieId, v);\n }", "@Override\n\t\tpublic void onClick(View view) {\n\t\t\tif (iOnItemClickListener != null) {\n\t\t\t\tiOnItemClickListener.onItemClick(view, null, getAdapterPosition());\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "public void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n public void onClick(View view) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }", "@Override\n public void onItemOfListClicked(Object o) {\n UserProfileFragmentDirections.ActionUserProfileFragmentToEventProfileFragment action = UserProfileFragmentDirections.actionUserProfileFragmentToEventProfileFragment((MyEvent) o);\n navController.navigate(action);\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_ds_note) {\n // Handle the camera action\n } else if (id == R.id.nav_ds_todo) {\n\n } else if (id == R.id.nav_ql_the) {\n\n } else if (id == R.id.nav_tuychinh) {\n Intent intent = new Intent(this, CustomActivity.class);\n startActivity(intent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "void onLinkClicked(@Nullable ContentId itemId);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:\n Intent homeIntent = new Intent(this, MainActivity.class);\n startActivity(homeIntent);\n break;\n case R.id.send_email:\n Intent mailIntent = new Intent(this, ContactActivity.class);\n startActivity(mailIntent);\n break;\n case R.id.send_failure_ticket:\n Intent ticketIntent = new Intent(this, TicketActivity.class);\n startActivity(ticketIntent);\n break;\n case R.id.position:\n Intent positionIntent = new Intent(this, LocationActivity.class);\n startActivity(positionIntent);\n break;\n case R.id.author:\n UrlRedirect urlRed = new UrlRedirect(this.getApplicationContext(),getString(R.string.linkedinDeveloper));\n urlRed.redirect();\n break;\n default:\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout_main_activity);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "void onItemClick(int position);", "void onItemClick(View view, int position);", "@SuppressWarnings(\"ConstantConditions\")\n public void onItemClicked(@NonNull Item item) {\n getView().openDetail(item);\n }", "@Override\n public void onClick(View v) {\n startNavigation();\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_logs) {\n startActivity(new Intent(this, LogView.class));\n } else if (id == R.id.nav_signOut) {\n signOut();\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tpresenter.onItemClicked(position);\n\t}", "@Override\n public void onClick(View view) {\n listener.onMenuButtonSelected(view.getId());\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tHashMap<String, Object> item = (HashMap<String, Object>) arg0\n\t\t\t\t\t\t.getAdapter().getItem(arg2);\n\n\t\t\t\tIntent intent = new Intent(ViewActivity.this,\n\t\t\t\t\t\tContentActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"_id\", item.get(\"_id\").toString());\n\t\t\t\tbundle.putString(\"_CityEventID\", item.get(\"_CityEventID\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tbundle.putString(\"_type\", String.valueOf(_type));\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onClick(View view) {\n Navigation.findNavController(view).navigate(R.id.addEventFragment);\n }", "void clickItem(int uid);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }", "@Override\n public void onItemClick(View view, int position) {\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_categories) {\n Intent intent = new Intent(getApplicationContext(), CategoryActivity.class);\n startActivity(intent, compat.toBundle());\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"category\");\n\n } else if (id == R.id.nav_top_headlines) {\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"home\");\n Intent intent = new Intent(getApplicationContext(), HomeActivity.class);\n startActivity(intent, compat.toBundle());\n } else if (id == R.id.nav_search) {\n // Do nothing\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_orders) {\n\n Intent orderStatusIntent = new Intent(Home.this , OrderStatus.class);\n startActivity(orderStatusIntent);\n\n } else if (id == R.id.nav_banner) {\n\n Intent bannerIntent = new Intent(Home.this , BannerActivity.class);\n startActivity(bannerIntent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "public void onItemClick(View view, int position) {\n\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}", "void onClick(View item, View widget, int position, int which);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n Intent intent;\n switch(item.getItemId()){\n case R.id.nav_home:\n finish();\n intent = new Intent(this, NavigationActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_calendar:\n finish();\n intent = new Intent(this, EventHome.class);\n startActivity(intent);\n return true;\n case R.id.nav_discussion:\n return true;\n case R.id.nav_settings:\n intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_app_blocker:\n intent = new Intent(this, AppBlockingActivity.class);\n startActivity(intent);\n return true;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case R.id.nav_home:\n break;\n\n case R.id.nav_favourites:\n\n if (User.getInstance().getUser() == null) {\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n }\n\n Intent intent = new Intent(getApplicationContext(), PlaceItemListActivity.class);\n startActivity(intent);\n\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonRgtRgtMenuClick(v);\n\t\t\t}", "public void menuClicked(MenuItem menuItemSelected);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n // Handle the camera action\n } else if (id == R.id.nav_gallery) {\n Toast.makeText(this, \"gallery is clicked!\", Toast.LENGTH_LONG).show();\n\n } else if (id == R.id.nav_slideshow) {\n\n } else if (id == R.id.nav_manage) {\n\n } else if (id == R.id.nav_share) {\n\n } else if (id == R.id.nav_send) {\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_my_account) {\n startActivity(new Intent(this, MyAccountActivity.class));\n } else if (id == R.id.nav_message_inbox) {\n startActivity(new Intent(this, MessageInboxActivity.class));\n } else if (id == R.id.nav_view_offers) {\n //Do Nothing\n } else if (id == R.id.nav_create_listing) {\n startActivity(new Intent(this, CreateListingActivity.class));\n } else if (id == R.id.nav_view_listings) {\n startActivity(new Intent(this, ViewListingsActivity.class));\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}" ]
[ "0.78824425", "0.72363925", "0.69870526", "0.69464594", "0.69168895", "0.69168895", "0.6884302", "0.68745536", "0.6868239", "0.6766278", "0.67426", "0.67219543", "0.67180467", "0.67139757", "0.66987735", "0.669814", "0.6680063", "0.66605985", "0.6660478", "0.6647546", "0.6642551", "0.6624797", "0.66242564", "0.66213894", "0.66030335", "0.6602666", "0.66005653", "0.6599541", "0.65946263", "0.6585237", "0.65845793", "0.6581586", "0.65769845", "0.65752995", "0.6569577", "0.65621644", "0.65589714", "0.65588206", "0.6553249", "0.6553249", "0.65501434", "0.6540031", "0.65347695", "0.65345526", "0.6524178", "0.6524178", "0.65226656", "0.6521167", "0.6520909", "0.6517542", "0.6516591", "0.6515937", "0.6503259", "0.64982665", "0.64982665", "0.64967453", "0.64922017", "0.6487871", "0.6487759", "0.64870596", "0.64859915", "0.6482179", "0.6481739", "0.64755696", "0.6464651", "0.6455272", "0.64459115", "0.6443916", "0.6443916", "0.6443916", "0.6443916", "0.6443916", "0.64382523", "0.6437478", "0.6436119", "0.6432646", "0.6431156", "0.6428718", "0.64257467", "0.64257467", "0.6412531", "0.64109886", "0.6409913", "0.6409913", "0.64096224", "0.64087987", "0.64063615", "0.64011335", "0.6396026", "0.6393612", "0.63913673", "0.63912463", "0.6388822", "0.6388822", "0.6386458", "0.6368968", "0.6368968", "0.636473", "0.636473", "0.636473", "0.63589436" ]
0.0
-1
GirlPhotoFragment fragment = new GirlPhotoFragment(); Bundle bundle = new Bundle(); bundle.putParcelable("girl", mzituVM.getItems().get(position)); fragment.setArguments(bundle); fragment.setStyle(DialogFragment.STYLE_NORMAL, R.style.Dialog_FullScreen); FragmentManager fm = getActivity().getSupportFragmentManager(); fragment.show(fm, "fragment_girl_photo");
@Override public void onItemClick(ItemGirlBinding binding, int position) { MzituGalleryActivity.launch(context, binding.girliv, mzituVM.galleries.get(position)); // GirlPhotoActivity.launch(context, binding.girliv, position, // mzituVM.getItems().get(position)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemClick(View view, int position)\n {\n Toast.makeText(context, recyclerDataArrayList.get(position).getTitulo(), Toast.LENGTH_SHORT).show();\n Bundle bundle = new Bundle();\n bundle.putString(\"imagen\",recyclerDataArrayList.get(position).getImg());\n DialogGaleria dialogGaleria = new DialogGaleria();\n dialogGaleria.show(requireActivity().getSupportFragmentManager(), \"imagen\");\n dialogGaleria.setArguments(bundle);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n DetalleFotoFragment detalle = new DetalleFotoFragment();\n detalle.setArguments(getIntent().getExtras());\n\n /*como tenemos el nuevo fragment, lo siguiente que hago abajo es reemplazar un componente \"vacio\"\n Fijate en el layout que hay un FrameLayout como fragment que no tiene nada, lo cual no tiene nada que mostrar\n a ese lo reemplazo por otro layout que se llama fragment_load_detalle, si buscas ese xml en el layout ahi tenes\n lo necesario para mostrar el detalle\n Los pasos que hace las lineas de abajo es asi:\n -Saco el fragment vacio (del layout vacio)\n -meto el fragment nuevo llamado fragment_load_detalle\n -addToBackStack lo que hace es agregarlo a la pila cuando se presiona el boton de retroceder del celular\n -finalmente el commit carga el fragment que se puso mostrandolo en pantalla\n * */\n\n //commiteamos el fragment\n\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment_load_detalle,detalle)\n .setTransitionStyle(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)\n .addToBackStack(null)\n .commit();\n //el commit es asincronico y no puedo llamar para mostrar la foto y detalles en pantalla\n //por lo cual primero guardo en la instancia los datos necesarios, y luego en un metodo privado interno lo cargo\n detalle.cargarEnMomento(listaMomentos.get(i));\n }", "public void openDialog(){\n DialogforTheboysHeroImage dialogforTheboysHeroImage = new DialogforTheboysHeroImage();\n dialogforTheboysHeroImage.show(getSupportFragmentManager(), \"Heros info\");\n }", "@Override\n public void onClick(View v) {\n Log.i(\"CheeseSelectionFragment\",selectedCheeses+\" THIS IS THE SELECTED CHEESES\");\n BuildPizzaDialog dialog;\n dialog = new BuildPizzaDialog();\n dialog.show(getFragmentManager(), \"dialog\");\n\n // MAKE THIS CREATE THE PIZZA. GO TO LISTVIEW FRAGMENT.\n // activityCallback.changeFragment(\"SauceSelectionFragment\");\n }", "void showDialog2(int i) {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n Fragment prev = getSupportFragmentManager().findFragmentByTag(\"dialog\");\n if (prev != null) {\n Log.d(TAG, \"dialog is already showing!!!\");\n// DialogFragment df = (DialogFragment) prev;\n// df.dismiss();\n ft.remove(prev);\n }\n\n // Create and show the dialog.\n DialogFragment newFragment = MyDialogFragment.newInstance(i);\n newFragment.show(ft, \"dialog\");\n }", "@Override\n public void dialogClick(Dialog dialog, View v) {\n switch (v.getId()) {\n case R.id.tv_in_the_to_xiangce:\n dialog.dismiss();\n if (photoList == null)\n photoList = new ArrayList<Map<String, Object>>();\n else\n photoList.clear();\n Intent in = new Intent(getApplicationContext(),\n AddImgFragmentActivity01.class);\n in.putExtra(\"selectedList\", photoList);\n in.putExtra(\"maxImg\", maxImg);\n startActivityForResult(in, 1);\n overridePendingTransition(R.anim.right_in, R.anim.left_out);\n break;\n\n case R.id.tv_in_the_to_xiangji:\n dialog.dismiss();\n if (photoList == null)\n photoList = new ArrayList<Map<String, Object>>();\n else\n photoList.clear();\n startXiangJi();\n break;\n\n case R.id.tv_cancel:\n dialog.dismiss();\n break;\n\n default:\n break;\n }\n }", "@Nullable\r\n @Override\r\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fullscreendialogfragment, container, false);\r\n img = view.findViewById(R.id.img);\r\n //set the imageview\r\n Picasso.get().load(getArguments().getString(\"url\")).into(img);\r\n return view;\r\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n DialogFragment newFragment = PopupBook.newInstance(\n R.string.dismis,books,books.get(+position),b_adapter,inbin,true);\n newFragment.show(getFragmentManager(), \"dialog\");\n\n\n // /books.get(+position);\n //AlertDialog.Builder a = pop_helper.PopProduct(books.get(+position),getApplicationContext(),(ViewGroup) findViewById(R.id.layout_root));\n //final AlertDialog alertDialog = a.create();\n\n //alertDialog.show();\n\n }", "@Override\n public void onClick(View v) {\n DialogFragment fragment = ExpandedImageDialogFragment.newInstance(note);\n fragment.show(mActivity.getFragmentManager(), \"expandedimagefragment\");\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle\n savedInstanceState) {\n View view = inflater.inflate(R.layout.frament_photo_preview, container, false);\n unbinder = ButterKnife.bind(this, view);\n if (savedInstanceState != null) {\n ArrayList<String> name = savedInstanceState.getStringArrayList(\"name\");\n ArrayList<String> time = savedInstanceState.getStringArrayList(\"time\");\n ArrayList<Integer> size = savedInstanceState.getIntegerArrayList(\"size\");\n photoLists = new ArrayList<>();\n int length = name.size();\n for (int i = 0; i < length; i++) {\n Model temp = new Model(name.get(i), time.get(i), size.get(i));\n photoLists.add(temp);\n }\n currentItem = (savedInstanceState.getInt(\"position\"));\n customDialogOR = savedInstanceState.getBoolean(\"customDialogOR\");\n }\n if (photoLists.size() != 0) {\n initData();\n }\n reload = true;\n return view;\n }", "private void startValveFragment() {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n Fragment valveFragment = new vavlesFragment(mUser, ProfileActivity.this, dialogCallBack);\n ft.replace(R.id.fragment_container, valveFragment).commit();\n }", "public DialogoPersonalizadoFragment() {\n\n }", "@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tDialogImage dialog = DialogImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.newInstance(place.gallery\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(index_id_dialog)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\tdialog.show(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetFragmentManager(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTools.TAG_DIALOG_IMAGE);\n\t\t\t\t\t\t\t\t\t\t\t\t}", "public void abrirDialogoEspecie() {\n ModalDialogoEspecie modalDialogoEspecie = new ModalDialogoEspecie();\n modalDialogoEspecie.show(getSupportFragmentManager(), \"especie dialog\");\n }", "@Override\n protected Fragment setFragment() {\n Bundle extras = getIntent().getExtras();\n String photoUrl = extras.getString(EXTRA_URL_PHOTO, \"https://www.flickr.com/images/buddyicon.gif\");\n String photoId = extras.getString(EXTRA_PHOTO_ID);\n String photoUrlNoSecret = extras.getString(EXTRA_URL_PHOTO_NO_SECRET);\n String photoUrlLarge = extras.getString(EXTRA_URL_PHOTO_LARGE);\n\n return PhotoFragment.newInstance(photoUrl, photoId, photoUrlNoSecret, photoUrlLarge);\n }", "@Override\n public void onClick(View v) {\n FragmentManager manager = getSupportFragmentManager();\n Fragment frag = manager.findFragmentByTag(\"fragment_camera\");\n if (frag != null) {\n manager.beginTransaction().remove(frag).commit();\n }\n CreateGistDialogFragment alertDialogFragment = new CreateGistDialogFragment();\n alertDialogFragment.show(manager, \"fragment_camera\");\n }", "@Override\n public void OnSelecterEquipoDetalle(Equipo equipo) {\n DialogoRedes dialogoRedes = DialogoRedes.newInstance(equipo);\n dialogoRedes.show(getSupportFragmentManager(),\"key3\");\n\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setItems(items, new DialogInterface.OnClickListener(){\n @Override\n public void onClick(DialogInterface dialog, int which) {\n mListener.onPinOptionsItemSelected(PinOptionsDialogFragment.this, items[which].toString());\n }\n });\n return builder.create();\n }", "public AlertDialog createSimpleDialog(String mensaje, String titulo, final String typ) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n View v = inflater.inflate(R.layout.dialog_monitoring_info, null);\n builder.setView(v);\n\n TextView tvTitle = (TextView) v.findViewById(R.id.tv_title_dialog);\n TextView tvDescription = (TextView) v.findViewById(R.id.tv_description_dialog);\n\n tvTitle.setText(titulo);\n tvTitle.setCompoundDrawables(ContextCompat.getDrawable(v.getContext(), R.drawable.ic_question), null, null, null);\n tvDescription.setText(mensaje);\n\n builder.setPositiveButton(getResources().getString(R.string.info_dialog_option_accept),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (typ.equals(\"REGIST\")){\n MonitoringRegistrationFormFragment fragment = new MonitoringRegistrationFormFragment();\n Bundle params = new Bundle();\n params.putString(\"AREA\", area);\n params.putString(\"OPCION\", \"N\");\n fragment.setArguments(params);\n\n getActivity().getSupportFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.monitoring_principal_context, fragment)\n .commit();\n }\n else {\n AdminUserFormFragment fragment = new AdminUserFormFragment();\n getActivity().getSupportFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.transaction_principal_context, fragment)\n .commit();\n }\n }\n },300);\n }\n })\n .setNegativeButton(getResources().getString(R.string.info_dialog_option_cancel),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n builder.create().dismiss();\n if (typ.equals(\"REGIST\")){\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(getActivity(), MonitorMenuActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n startActivity(intent);\n getActivity().finish();\n }\n },300);\n }\n else {\n getActivity().finish();\n }\n }\n });\n\n return builder.create();\n }", "public void showDialog(View v){\n FragmentManager fm = getFragmentManager();\n PaymentMethodDialog paymentDialog = new PaymentMethodDialog();\n paymentDialog.show(fm, \"PaymentDialog\");\n Bundle data = new Bundle();\n// data.putString(\"receiver\", receiver);\n paymentDialog.setArguments(data);\n paymentDialog.setArguments(data);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n LayoutInflater inflater = getActivity().getLayoutInflater();\n // Pass null as the parent view because its going in the dialog layout.\n View view = inflater.inflate(R.layout.dialog_image_chooser, null);\n\n View cameraView = view.findViewById(R.id.action_camera);\n View galleryView = view.findViewById(R.id.action_gallery);\n\n cameraView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Send the camera click event back to the host activity.\n mListener.onDialogCameraClick(ImageChooserDialogFragment.this);\n // Dismiss the dialog fragment.\n dismiss();\n }\n });\n\n galleryView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Send the gallery click event back to the host activity.\n mListener.onDialogGalleryClick(ImageChooserDialogFragment.this);\n // Dismiss the dialog fragment.\n dismiss();\n }\n });\n\n // Create an AlertDialog.Builder and set the layout.\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setView(view);\n\n return builder.create();\n }", "void showDialog() {\n DialogFragment newFragment = MyAlertDialogFragment.newInstance(R.string.alert_dialog_two_buttons_title);\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "public void listaVacia() {\n\n mProgressDialog.dismiss();\n\n Bundle arguments = new Bundle();\n\n arguments.putString(\"ficha\", ActivosFragment.TAG);\n\n mBlankFragment = BlankFragment.newInstance(arguments);\n FragmentTransaction mFragmentTransaction = getFragmentManager().beginTransaction();\n mFragmentTransaction.replace(R.id.main_content, mBlankFragment, BlankFragment.TAG);\n //mFragmentTransaction.addToBackStack(FragmentDepartamento.TAG); // Agrega a la pila el fragmento para poder retroceder\n mFragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_CLOSE); //Agrega una transición al fragment\n\n mFragmentTransaction.commit();\n\n }", "private void showRewardDialog() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\taddRewardDialogue = RewardsDialogFragment.newInstance(\"Some Title\");\n\t\taddRewardDialogue.show(fm, \"fragment_edit_task\");\n\t}", "@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 }", "public static PhotoInfoDialogFragment newInstance(PhotoInfo photoInfo){\n Bundle args = new Bundle();\n args.putParcelable(EXTRA_PHOTO_INFO, photoInfo);\n\n PhotoInfoDialogFragment dialogFragment = new PhotoInfoDialogFragment();\n dialogFragment.setArguments(args);\n return dialogFragment;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"Règle du jeu\");\n builder.setMessage(\"Je sais que tu as toujours voulu être un pêcheur ! Voici ta chance. Ton objectif est de pêcher 5 poissons.\\n\\n Comment pêcher :\\n\\n1- Place ton téléphone à l'horizontal, ton écran vers la gauche.\\n\\n2- Attend le poisson.\\n\\n3- Quand ton téléphone vibre, un poisson a mordu à l'hammeçon ! Passe rapidement ton téléphone à la verticale avec ton écran toujours sur la gauche.\\n\\n4-Recommence jusqu'à devenir le roi de la pêche !\\n\\nTips : On ne devient pas pêcheur en jouant à un jeu de pêche.\" );\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // rien à faire\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public void onClick(View view) {\n dialog = new Dialog(getActivity());\n dialog.getWindow().getAttributes().windowAnimations = R.style.up_down;\n dialog.setContentView(R.layout.add_food_fragment);\n dialog.setCancelable(true);\n Window window = dialog.getWindow();\n window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n if (dialog != null && dialog.getWindow() != null) {\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n }\n initDialog();\n\n\n //Spinner to show list add Food Ways\n spinner();\n\n dialog.show();\n }", "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 View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_me, container, false);\n ButterKnife.bind(this, view);\n user = FirebaseAuth.getInstance().getCurrentUser();\n if (user != null){\n// retrieve user profile from Firebase\n String name = user.getDisplayName();\n username.setText(name);\n String email = user.getEmail();\n email_address.setText(email);\n Uri photoUrl = user.getPhotoUrl();\n Picasso.with(getActivity()).load(photoUrl).into(photo);\n photo.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n Log.d(\"me\", \"photo\");\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"Please choose\");\n final String[] chioces = {\"Take a photo from camera\", \"Upload a photo from Gallery\"};\n builder.setItems(chioces, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n switch (i){\n case 0:\n if (checkSelfPermission(MeFragment.this.getActivity(), Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[] { Manifest.permission.CAMERA},\n CAMERA_PERMISSION_CODE);\n return;\n }\n File image = new File(getActivity().getExternalCacheDir(), \"photo.jpg\");\n try {\n if (image.exists()) {\n image.delete();\n image.createNewFile();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n photoUri = FileProvider.getUriForFile(getActivity(), getActivity().getPackageName() + \".fileprovider\", image);\n Intent camera_intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n camera_intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri);\n startActivityForResult(camera_intent, CAMERA_REQUEST_CODE);\n break;\n case 1:\n if (checkSelfPermission(MeFragment.this.getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(MeFragment.this.getActivity(), Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[] { Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE},\n GALLERY_PERMISSION_CODE);\n return;\n }\n Intent gallery_intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(gallery_intent, GALLERY_REQUEST_CODE);\n break;\n }\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n });\n\n signoutbtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n FirebaseAuth.getInstance().signOut();\n Intent sign_out_intent = new Intent(MeFragment.this.getActivity(), MainActivity.class);\n startActivity(sign_out_intent);\n MeFragment.this.getActivity().finish();\n }\n });\n\n resetpwd.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"Please reter your new password\");\n final EditText et = new EditText(MeFragment.this.getActivity());\n builder.setView(et);\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n String new_pwd = et.getText().toString().trim();\n if (TextUtils.isEmpty(new_pwd)){\n Toast.makeText(MeFragment.this.getActivity(), \"The new password cannot be null\", Toast.LENGTH_SHORT).show();\n }\n else{\n user.updatePassword(new_pwd)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n// Toast.makeText(MeFragment.this.getActivity(), \"User password updated.\", Toast.LENGTH_SHORT).show();\n Log.d(\"MeFragment\", \"User password updated.\");\n }\n else{\n// Toast.makeText(MeFragment.this.getActivity(), \"update error \", Toast.LENGTH_SHORT).show();\n Log.d(\"MeFragment\", \"update error\");\n }\n }\n });\n FirebaseAuth.getInstance().signOut();\n Intent sign_out_intent = new Intent(MeFragment.this.getActivity(), MainActivity.class);\n startActivity(sign_out_intent);\n MeFragment.this.getActivity().finish();\n }\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n });\n }\n else{\n photo.setImageResource(R.drawable.noimage);\n resetpwd.setVisibility(View.INVISIBLE);\n username.setText(\"Please Login first\");\n ic_mood.setVisibility(View.INVISIBLE);\n ic_email.setVisibility(View.INVISIBLE);\n profile.setText(\"\");\n signoutbtn.setText(\"Log in\");\n signoutbtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent login_intent = new Intent(MeFragment.this.getActivity(), Login.class);\n startActivity(login_intent);\n MeFragment.this.getActivity().finish();\n }\n });\n }\n return view;\n }", "private void newFragmentCall() {\n\n dismissDialog();\n\n Fragment fragment = new HotelDetailsTabFragment();\n Bundle bundle = new Bundle();\n\n bundle.putParcelable(\"HotelDetails\", hotelDetailInfoResponse);\n bundle.putParcelable(\"TripAdvisorDeatil\", tripAdvisorDataResponse);\n bundle.putParcelable(\"HotelRoomRate\", hotelRatesResponse);\n fragment.setArguments(bundle);\n\n setFragmentTransaction(fragment, \"NOAnimation\");\n }", "public void showPopUp(View v) {\n int n = (int) v.getTag();\n\n // Переход на FullScreenImageActivity\n Intent intent = new Intent(getActivity(), FullScreenImageActivity.class);\n\n intent.putExtra(\"Bitmap\", product.getImages());\n intent.putExtra(\"position\", n);\n\n // Передаем в FullScreenImageActivity bitmap картинки и стартуем\n// intent.putExtra(\"Bitmap\", product.getImage(n));\n\n startActivity(intent);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_fire_missiles)\n .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n return builder.create();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.payment_fragment, container, false);\n userid = PreferenceHelper.getUserId();\n ((HomeActivity) Objects.requireNonNull(getActivity())).title.setText(getText(R.string.paymenpage));\n paymentViewModel = ViewModelProviders.of(this, getViewModelFactory()).get(PaymentViewModel.class);\n notification();\n assert getArguments() != null;\n productList = getArguments().getParcelableArrayList(\"products\");\n\n for (int i = 0; i < productList.size(); i++) {\n Log.i(\"forin\", \"showDialog: hossam\");\n ProductModels.add(new ProductModel(userid, getArguments().getInt(\"storid\"), productList.get(i).getProductId(),\n String.valueOf(productList.get(i).getProductCount()),\n getArguments().getString(\"USER_ADDRESS\"), \"jk\",\n getArguments().getString(\"USER_LAT\"), getArguments().getString(\"USER_LANG\"), paymentway,\n \"saied is here\", getArguments().getString(\"price\"), 0\n ));\n }\n\n paymentViewModel.saveData(ProductModels);\n paymentViewModel.saveResultLiveData.observe(this, aBoolean ->\n {\n if (aBoolean) {\n FragmentManager fm = getFragmentManager();\n for (int i = 0; i < fm.getBackStackEntryCount(); ++i) {\n fm.popBackStack();\n }\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.main_frame, new MainFragment()).addToBackStack(null).commit();\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.main_frame, new FinishOrderFragment()).addToBackStack(null).commit();\n }\n else\n Snackbar.make(view, getText(R.string.erroroccur), Snackbar.LENGTH_LONG).show();\n }\n );\n return view;\n }", "@Override\n public void onClick(View v) {\n\n Fragment fragmento = null;\n\n Bundle bundle = new Bundle();\n bundle.putParcelableArrayList(\"key_entrenadores\", entrenadores);\n bundle.putParcelableArrayList(\"key_participantes\",participantes);\n\n switch (v.getId()) {\n case R.id.cardview1:\n fragmento = new EntrenadorFragment();\n fragmento.setArguments(bundle);\n break;\n\n case R.id.cardview2:\n fragmento = new ParticipanteFragment();\n fragmento.setArguments(bundle);\n break;\n\n case R.id.cardview3:\n fragmento = new VotacionFragment();\n fragmento.setArguments(bundle);\n break;\n }\n\n if (fragmento != null) {\n\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n FragmentTransaction transaccion = fragmentManager.beginTransaction();\n\n transaccion.replace(R.id.contenedor_principal, fragmento);\n transaccion.addToBackStack(null);\n //Hago commit a la transaccion\n transaccion.commit();\n }\n // Falta modificar estos titulos Setear título actual\n\n }", "@Override\n public void onClick(View v) {\n dlgCarBrand = DialoglistCarBrands.newInstance();\n dlgCarBrand.setTargetFragment(RegistrationFragment.this, DIALOG_CAR_BRAND);\n dlgCarBrand.show(getFragmentManager(), DIALOG_CAR_BRAND_TAG);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_dompet, container, false);\n\n editfoto = root.findViewById(R.id.profileButton);\n fotoprofile = root.findViewById(R.id.foto_profile);\n\n editfoto.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intentGallery = new Intent(Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(intentGallery, kodeGallery);\n }\n });\n\n return root;\n }", "public void editComponent(int position){\n DialogFragment mealMaker = new MakeMealComponentDialogFragment(adapter.getItem(position), position, this);\n mealMaker.show(getFragmentManager(), \"TAG\");\n }", "@Override\n public Fragment getItem(int position) {\n Bundle bundle = new Bundle();\n bundle.putString(\"placeid\",placeid);\n bundle.putString(\"data\",jsonData);\n switch (position){\n case 0:\n InfoFragment fragment = new InfoFragment();\n fragment.setArguments(bundle);\n return fragment;\n case 1:\n PhotosFragment fragment1 = new PhotosFragment();\n fragment1.setArguments(bundle);\n return fragment1;\n case 2:\n MapFragment fragment2 = new MapFragment();\n fragment2.setArguments(bundle);\n return fragment2;\n case 3:\n ReviewFragment fragment3 = new ReviewFragment();\n fragment3.setArguments(bundle);\n return fragment3;\n }\n return null;\n }", "@Override\n public void onEstadoCambiado() {\n fragment = new ListadoPeticionesRecibidasVista();\n getFragmentManager().beginTransaction().replace(R.id.content_main, fragment ).commit();\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.profilebtn) {\n // Handle the camera action\n\n Bundle inBundle = getIntent().getExtras();\n String name = inBundle.getString(\"name\");\n String surnamename = inBundle.getString(\"surname\");\n String img = inBundle.getString(\"imageUrl\");\n\n Bundle pFr = new Bundle();\n pFr.putString(\"name\",name);\n pFr.putString(\"surname\",surnamename);\n pFr.putString(\"imgProfile\",img);\n\n\n Fragment frP = new ProfileFragment();\n frP.setArguments(pFr);\n getFragmentManager().beginTransaction().replace(R.id.containerfr, frP).commit();\n } else if (id == R.id.reservationsbtn) {\n\n }\n else if (id == R.id.gerer) {\n\n Bundle bndle ;\n bndle = getIntent().getExtras();\n String idU = bndle.getString(\"id\");\n Bundle inBundle = getIntent().getExtras();\n String name = inBundle.getString(\"name\");\n String surnamename = inBundle.getString(\"surname\");\n String img = inBundle.getString(\"imageUrl\");\n Bundle bFr = new Bundle();\n bFr.putString(\"idA\",idU);\n bFr.putString(\"name\",name);\n bFr.putString(\"surname\",surnamename);\n bFr.putString(\"imgProfile\",img);\n Fragment fr = new ProfilManageFragment();\n fr.setArguments(bFr);\n getFragmentManager().beginTransaction().replace(R.id.containerfr, fr).commit();\n\n }\n else if (id == R.id.logoutdraw) {\n SharedPrefManager.getInstance(this).logout();\n finish();\n startActivity(new Intent(this ,LoginActivity.class));\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "void showDialog() {\n\t\tDialogFragment newFragment = MyAlertDialogFragment\n\t\t\t\t.newInstance(R.string.not_enoughth_information);\n\t\tnewFragment.show(getFragmentManager(), \"dialog\");\n\t}", "@Override\n public void onEdit(int position, String old_content) {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n EditVoteFragment fr = EditVoteFragment.newInstance(position, old_content);\n fr.show(ft, \"dialog\");\n }", "public void showNoticeDialog() {\n DialogFragment dialog = new MyDialog();\n dialog.show(getSupportFragmentManager(), \"NoticeDialogFragment\");\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n Bundle bundle = new Bundle();\n bundle.putString(\"URL\", URL);\n\n ViewWebsiteFragment viewWebsiteFragment = new ViewWebsiteFragment();\n viewWebsiteFragment.setArguments(bundle);\n\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, viewWebsiteFragment).commit();\n }", "public void run() {\n final androidx.appcompat.app.AlertDialog.Builder continueBookingDialog = new AlertDialog.Builder(view.getContext());\n continueBookingDialog.setTitle(\"Book locker for \" + marker.getTitle() + \" \" + marker.getSnippet() +\"?\");\n // resendVerificationMailDialog.setView(resendVerificationEditText);\n continueBookingDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n //Pass marker.getTitle();\n// AccountsFragment af = new AccountsFragment();\n// Bundle args = new Bundle();\n// args.putString(\"title\", marker.getTitle());\n// af.setArguments(args);\n// Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n// .show();\n//\n// getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, af).commit();\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n //getChildFragmentManager().beginTransaction().add(R.id.fragment_container, af).commit();\n // getActivity().startActivity(intent);\n // getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n //getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n }\n });\n continueBookingDialog.setNegativeButton(\"Back\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Automatically close the dialog\n\n }\n });\n continueBookingDialog.show();\n\n }", "protected void editClicked(View view){\n FragmentManager fm = getSupportFragmentManager();\n ЕditDialog editDialogFragment = new ЕditDialog(2);\n Bundle args = new Bundle();\n args.putInt(\"position\", this.position);\n args.putString(\"itemName\", this.itm.getItem(this.position).getName());\n args.putString(\"itemUrl\", this.itm.getItem(this.position).getUrl());\n editDialogFragment.setArguments(args);\n editDialogFragment.show(fm, \"edit_item\");\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n try {\n itemsJSONArray = new JSONArray(getArguments().getString(\"order\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n builder.setView(inflater.inflate(R.layout.user_details, null)).setTitle(\"User details\");\n builder.setPositiveButton(\"Order\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n name = (EditText) getDialog().findViewById(R.id.nameET);\n phone = (EditText) getDialog().findViewById(R.id.phoneET);\n year = (Spinner) getDialog().findViewById(R.id.spinnerYear);\n branch = (Spinner) getDialog().findViewById(R.id.spinnerBranch);\n // FIRE ZE MISSILES!\n\n if(name.getText().toString().isEmpty() || phone.getText().toString().isEmpty()){\n Toast.makeText(((OrderItem)getTargetFragment()).getActivity(), \"Fill all fields\", Toast.LENGTH_SHORT).show();\n OrderDialogFragment frag = new OrderDialogFragment();\n frag.setTargetFragment(getTargetFragment(),0);\n frag.setArguments(getArguments());\n frag.show(getFragmentManager(), \"Order dialog\");\n }\n else{\n try {\n orderJSON.put(\"name\",name.getText().toString());\n orderJSON.put(\"phone\",phone.getText().toString());\n orderJSON.put(\"year\",year.getSelectedItem().toString());\n orderJSON.put(\"branch\",branch.getSelectedItem().toString());\n Log.e(\"Tag\",branch.getSelectedItem().toString());\n orderJSON.put(\"order\",itemsJSONArray);\n\n\n ringProgressDialog = ProgressDialog.show(getActivity(), \"Please wait ...\", \"Order is being placed ...\", true, true, new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n ringProgressDialog.hide();\n\n }\n });\n AndroidNetworking.post(URL+\"/order\")\n .addJSONObjectBody(orderJSON) // posting json\n .setTag(\"test\")\n .setPriority(Priority.MEDIUM)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n\n public void onResponse(JSONObject response) {\n // do anything with response\n ringProgressDialog.hide();\n ((OrderItem)getTargetFragment()).onOrderPlaced(true,orderJSON);\n }\n @Override\n public void onError(ANError error) {\n // handle error\n\n //Toast.makeText(c,\"Error , Order not placed\",Toast.LENGTH_LONG).show();\n ringProgressDialog.hide();\n ((OrderItem)getTargetFragment()).onOrderPlaced(false,orderJSON);\n }\n });\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n @NonNull\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_video_dialog);\n\n Bundle bundle = getArguments();\n videos_name = bundle.getStringArrayList(\"name\");\n videos_key = bundle.getStringArrayList(\"key\");\n\n\n CharSequence[] cs = videos_name.toArray(new CharSequence[videos_name.size()]);\n\n builder.setItems(cs, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Uri video_uri = UtilityMovieData.buildUriForTheVideo(videos_key.get(which));\n Intent intent = new Intent(Intent.ACTION_VIEW, video_uri);\n startActivity(intent);\n\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n fragment=this;\n View dialogView = inflater.inflate(R.layout.travel_search_dialog,null);\n builder.setView(dialogView);\n\n dialog = builder.create();\n //finding edittext box for user to enter travel search term\n searchTerm = (EditText) dialogView.findViewById(R.id.travel_search_term);\n\n //set up search button\n searchButton= (Button) dialogView.findViewById(R.id.search_button);\n searchButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n //ensure user has entered text into field\n if (searchTerm.getText().length() > 0) {\n String searchWord =searchTerm.getText().toString().replace(\" \", \"%20\");\n MainActivity.searchTerm = searchWord;\n new PhotoSearch(fragment).execute(MainActivity.searchTerm);\n\n } else\n Toast.makeText(getContext(), \"Enter a travel search term.\", Toast.LENGTH_SHORT).show();\n }\n });\n\n return dialog;\n\n }", "@Override\n public void onItemClick(View view, int position) {\n Log.d(\"fsdfsdfsdgfsd\", \"dfgdfg\" + position);\n\n\n// Fragment fragment=new CatagoryViewFragment();\n// FragmentManager manager=getFragmentManager();\n// FragmentTransaction ft=manager.beginTransaction();\n// ft.replace(R.id.content_frame,fragment).addToBackStack(null).commit();\n// Bundle bundle=new Bundle();\n// bundle.putString(\"product_id\",products_arrayList.get(position).get(\"id\").toString());\n// //bundle.putString(\"product_image\",DataList.get(position).getDesc().toString());\n// fragment.setArguments(bundle);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_levante_detalle, container, false);\n\n activity = getActivity();\n\n idlenvate = getArguments() != null ? getArguments().getString(\"idanimal\") : \"000000\";\n\n init(view);\n iniciarFirebaseListLevante();\n cargarDetalleLevante(idlenvate);\n\n\n img_cancelar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n openFragmentRecyclerLevante();\n\n }\n });\n\n\n img_editar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n LevanteGestionarFragment.modo = 1;\n openFragmentLevanteGestionar(idlenvate);\n\n }\n });\n\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_receta_detalle_imagen, container, false);\n\n try {\n PhotoView photoView = (PhotoView) view.findViewById(R.id.photo_view);\n url = getArguments().getString(\"url\");\n Glide.with(getActivity()).load(url).into(photoView);\n }catch (Exception e){\n }\n\n return view;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Bundle bundle = new Bundle();\n bundle.putString(\"objectID\", objects.get(position).getObjectId());\n bundle.putString(\"name\", objects.get(position).\n getParseObject(\"CentreStockObjectID\").getString(\"Name\"));\n bundle.putInt(\"quantity\", objects.get(position).getInt(\"Quantity\"));\n bundle.putDouble(\"amount\", objects.get(position).getInt(\"Amount\"));\n bundle.putString(\"orderDate\", objects.get(position).\n getDate(\"OrderDate\").toString());\n if (objects.get(position).getDate(\"ReceiveDate\") != null)\n bundle.putString(\"receiveDate\", objects.get(position).\n getDate(\"ReceiveDate\").toString());\n else\n bundle.putString(\"receiveDate\", null);\n\n OrderProfileFragment opf = new OrderProfileFragment();\n opf.setArguments(bundle);\n getFragmentManager().beginTransaction().replace(R.id.container, opf).\n addToBackStack(null).commit();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Bundle bundle = new Bundle();\n bundle.putString(\"objectID\", objects.get(position).getObjectId());\n bundle.putString(\"name\", objects.get(position).\n getParseObject(\"CentreStockObjectID\").getString(\"Name\"));\n bundle.putInt(\"quantity\", objects.get(position).getInt(\"Quantity\"));\n bundle.putDouble(\"amount\", objects.get(position).getInt(\"Amount\"));\n bundle.putString(\"orderDate\", objects.get(position).\n getDate(\"OrderDate\").toString());\n if (objects.get(position).getDate(\"ReceiveDate\") != null)\n bundle.putString(\"receiveDate\", objects.get(position).\n getDate(\"ReceiveDate\").toString());\n else\n bundle.putString(\"receiveDate\", null);\n\n OrderProfileFragment opf = new OrderProfileFragment();\n opf.setArguments(bundle);\n getFragmentManager().beginTransaction().replace(R.id.container, opf).\n addToBackStack(null).commit();\n }", "@Override\n public Fragment getItem(int position) {\n\n Fragment fragment = null;\n Bundle bundle = new Bundle();\n bundle.putString(\"e\", \"test\");\n switch (position) {\n case 0:\n fragment = new OriginalFragment();\n // fragment.setArguments(bundle);\n break;\n\n case 1:\n fragment = new DecodedFragment();\n fragment.setArguments(bundle);\n }\n return fragment;\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 }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n mListSummaryGameAdapter = new ListGameAdapter(\n getActivity(),\n null,\n 0\n );\n\n // Récupération des vues\n View rootView = inflater.inflate(R.layout.fragment_game_list, container, false);\n mTextViewTitle = (TextView) rootView.findViewById(R.id.tv_title);\n mTextViewTitle.setTypeface(MemonimoUtilities.getCustomFont(getActivity().getAssets()));\n mListViewGame = (ListView) rootView.findViewById(R.id.lv_game);\n\n // Affectation de l'Adapter à la ListView\n mListViewGame.setAdapter(mListSummaryGameAdapter);\n mListViewGame.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View v, int position, long id) {\n // Récupération de l'identifiant de la partie\n long idGame = mListSummaryGameAdapter.getIdItem(position);\n\n Intent intent = new Intent(getActivity(), GameActivity.class)\n // Envoi de l'identifiant de la partie\n .putExtra(MemonimoUtilities.INTENT_EXTRA_ID_GAME, idGame);\n startActivity(intent);\n\n mPosition = position;\n }\n });\n\n // Dans le cas où une position a été sélectionnée précedemment\n if (savedInstanceState != null && savedInstanceState.containsKey(SELECTED_KEY)) {\n mPosition = savedInstanceState.getInt(SELECTED_KEY);\n }\n\n return rootView;\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n //getChildFragmentManager().beginTransaction().add(R.id.fragment_container, af).commit();\n // getActivity().startActivity(intent);\n // getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n //getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n //return super.onCreateDialog(savedInstanceState); // TODO: should we call it?\n final String title = getArguments().getString(\"TITLE\");\n final String msg = getArguments().getString(\"MESSAGE\");\n final String pos = getArguments().getString(\"POS\");\n final String neg = getArguments().getString(\"NEG\");\n final String neu = getArguments().getString(\"NEU\");\n // TODO - this is just an int... what about other ... Parcelable\n final int idx = getArguments().getInt(\"IDX\");\n final int iconid = getArguments().getInt(\"ICON_ID\");\n final float textsize = getArguments().getFloat(\"MSGSIZE\");\n\n if (savedInstanceState != null) {\n tag = savedInstanceState.getString(\"TAG\");\n }\n\n final DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialogInterface, int clickedButton) {\n ConfirmListener act = (ConfirmListener) getActivity();\n act.processConfirmation(clickedButton, tag, idx);\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(title)\n .setMessage(msg);\n if (iconid != 0 && getResources().getResourceTypeName(iconid).equals(\"drawable\")) {\n // this must be a R.drawable.id, otherwise crash!\n // android.content.res.Resources$NotFoundException:\n builder.setIcon(iconid);\n }\n if (pos != null) {\n builder.setPositiveButton(pos, listener);\n }\n if (neg != null) {\n builder.setNegativeButton(neg, listener);\n }\n if (neu != null) {\n builder.setNeutralButton(neu, listener);\n }\n\n dialog = builder.create();\n if (textsize != 0) {\n dialog.show(); // need to call this to be able to get the TextView as non-null pointer\n TextView tv = (TextView) dialog.findViewById(android.R.id.message);\n if (tv != null) {\n tv.setTextSize(textsize);\n }\n }\n return dialog;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_dialog, container, false);\n Log.d(TAG, \"onCreateView, myview\"+ v);\n Bundle bundle = this.getArguments(); //Creates a bundle\n\n myDBHelperl = new MyDBHelper(v.getContext());\n bookName = v.findViewById(R.id.bookName);\n TextView bookInformation = v.findViewById(R.id.bookDescription);\n TextView bookPublisher = v.findViewById(R.id.publisherText);\n TextView bookPublisherDate = v.findViewById(R.id.dateOfPublishText);\n Button addButton = v.findViewById(R.id.addToFav);\n addButton.setOnClickListener(this::addData);\n ImageView bookImage = v.findViewById(R.id.bookImage);\n//\n// Log.d(TAG, \"Book Name: \" + bundle.getString(\"bookTitle\"));\n// Log.d(TAG, \"Book Information: \" + bundle.getString(\"bookInformation\"));\n// Log.d(TAG, \"Date of Publish: \" + bundle.getString(\"bookDateOfPublish\"));\n// Log.d(TAG, \"Book Publisher: \" + bundle.getString(\"bookPublisher\"));\n// Log.d(TAG, \"Authors of Book:\" + bundle.getStringArrayList(\"authorList\"));\n\n //Sets the text to the text the bundle sends over using the key\n bookPublisher.setText(bundle.getString(\"bookPublisher\"));\n bookPublisherDate.setText(bundle.getString(\"bookDateOfPublish\"));\n bookName.setText(bundle.getString(\"bookTitle\"));\n bookInformation.setText(bundle.getString(\"bookInformation\"));\n //Uses Picasso to set the image of the book to the imageview\n try {\n imageurl = new URL (bundle.getString(\"urlIMG\"));\n Log.d(TAG, \"UrlIMG: \"+bundle.getString(\"urlIMG\"));\n Picasso.with(v.getContext()).load(String.valueOf(imageurl)).fit().into(bookImage);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return v;\n }", "private void showDialog(String tag) {\n \t\tFragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n \t\tFragment prev = getSupportFragmentManager().findFragmentByTag(tag);\n \t\tif (prev != null) {\n \t\t\tft.remove(prev);\n \t\t}\n \n \t\tDialogFragment newFragment = null;\n \n \t\t// Create and show the dialog.\n \t\tnewFragment = DownloadScannerDialog.newInstance();\n \n \t\tft.add(0, newFragment, tag);\n \t\tft.commit();\n \t}", "private void inflateDialogResume() {\n showCustomToast(getString(R.string.loading_resume),Toast.LENGTH_SHORT);\n final ImagePopup imagePopup = new ImagePopup(getActivity());\n //imagePopup.setWindowHeight(800);\n imagePopup.setFullScreen(true);\n imagePopup.setBackgroundColor(Color.WHITE);\n //imagePopup.setWindowWidth(650);\n imagePopup.setImageOnClickClose(true);\n if(employeeResume!=\" \"){\n imagePopup.initiatePopupWithPicasso(employeeResume);\n }else{\n imagePopup.initiatePopup(getResources().getDrawable(R.drawable.error));\n }\n imagePopup.viewPopup();\n /*AlertDialog.Builder imageDialog = new AlertDialog.Builder(getActivity());\n //ImageView showImage = new ImageView(getActivity());\n //imageDialog.setTitle(\"Resume\");\n View dialogLayout = getLayoutInflater().inflate(R.layout.dialog_resume, null);\n ImageView imageView = dialogLayout.findViewById(R.id.imageViewDialogResume);\n imageView.setImageURI(Uri.parse(employeeProfilePhoto));\n imageDialog.setView(dialogLayout);\n imageDialog.show();*/\n\n\n }", "public void run() {\n final androidx.appcompat.app.AlertDialog.Builder continueBookingDialog = new AlertDialog.Builder(view.getContext());\n continueBookingDialog.setTitle(\"Book locker for \" + marker.getTitle() + \" \" + marker.getSnippet() +\"?\");\n // resendVerificationMailDialog.setView(resendVerificationEditText);\n continueBookingDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n //Pass marker.getTitle();\n// AccountsFragment af = new AccountsFragment();\n// Bundle args = new Bundle();\n// args.putString(\"title\", marker.getTitle());\n// af.setArguments(args);\n// Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n// .show();\n//\n// getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, af).commit();\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n }\n });\n continueBookingDialog.setNegativeButton(\"Back\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Automatically close the dialog\n\n }\n });\n continueBookingDialog.show();\n\n }", "private void replaceFragment(int pos) {\n Fragment fragment = null;\n switch (pos) {\n case 0:\n Intent intent = new Intent(GestioneViaggioGalleriaActivity.this, MainActivity.class);\n startActivity(intent);\n break;\n case 1:\n Intent intent_creaViaggio = new Intent(GestioneViaggioGalleriaActivity.this, CreaIlTuoViaggioActivity.class);\n startActivity(intent_creaViaggio);\n break;\n case 2:\n Intent intent_viaggi = new Intent(GestioneViaggioGalleriaActivity.this, ProfiloViaggiActivity.class);\n intent_viaggi.putExtra(\"viaggio\", \"viaggio\");\n startActivity(intent_viaggi);\n break;\n case 3:\n Intent intent_preferiti = new Intent(GestioneViaggioGalleriaActivity.this, ProfiloViaggiActivity.class);\n intent_preferiti.putExtra(\"preferiti\", \"preferiti\");\n startActivity(intent_preferiti);\n break;\n case 4:\n Intent intent_impostazioni = new Intent(GestioneViaggioGalleriaActivity.this, SettingsActivity.class);\n startActivity(intent_impostazioni);\n break;\n case 5: new android.support.v7.app.AlertDialog.Builder(GestioneViaggioGalleriaActivity.this)\n .setTitle(\"Let's go\")\n .setMessage(\"Questa applicazione è stata creata da: \" +\n \"Alessandro Barlocco, Annalisa Bovone, Paola Silvestre\")\n .setPositiveButton(\"ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .setIcon(R.drawable.logo_pani_piccolo)\n .show();\n break;\n default:\n break;\n }\n\n if (fragment != null) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.activity_main, fragment);\n transaction.commit();\n }\n }", "private void modositodialog(){\n mennyisegmodositodialog.setTargetFragment(Targyleirasreszletek.this,9999);\n mennyisegmodositodialog.show(getFragmentManager(),\"TargyMennyisegModositoDialog\");\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_photos, container, false);\r\n pm = (TextView) view.findViewById(R.id.photos_message);\r\n getPhotos(view);\r\n\r\n\r\n return view;\r\n }", "@Override\n public Fragment getItem(int i) {\n\n Fragment fragment = new SlideFragment();\n Bundle args = new Bundle();\n args.putString(SlideFragment.QUOTE, slidesQuotes.get(i));\n args.putInt(SlideFragment.IMAGE, slidesImages.get(i));\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }", "@Override\n public void onClick(View v) {\n ThreeFragment dialogFragment = ThreeFragment.newInstance(\"Are you sure to do this action?\");\n dialogFragment.show(getFragmentManager(), \"dialog\");\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_magazine_list_item, container, false);\r\n owner = (MainActivity)getActivity();\r\n\r\n LinearLayout ll = (LinearLayout)v.findViewById(R.id.magazine_list_linear);\r\n ll.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n dismiss();\r\n }\r\n });\r\n rv = (RecyclerView)v.findViewById(R.id.magazine_list_recyclerview);\r\n rv.setLayoutManager(new LinearLayoutManager(ForRoomApplication.getFRContext()));\r\n\r\n new AsyncTaskMagazineListJSONList().execute(MagazineFragment.viewpagerposition);\r\n\r\n return v;\r\n }", "@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\r\n\t\tAlertDialog.Builder builder = new Builder(this.getActivity());\r\n\t\tView view = LayoutInflater.from(getActivity()).inflate(\r\n\t\t\t\tR.layout.load_dialog, null);\r\n\r\n\t\tbuilder.setView(view);\r\n\t\tbuilder.setCancelable(false);\r\n\t\tdialog=builder.create();\r\n\t\treturn dialog;\r\n\t}", "@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\n public void onListFragmentInteraction(Book item) {\n BookDetailFragment bookDetailFragment = new BookDetailFragment();\n Bundle args = new Bundle();\n args.putSerializable(BookDetailFragment.BOOK_ITEM_SELECTED, item);\n bookDetailFragment.setArguments(args);\n\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.BookActivity_container, bookDetailFragment)\n .addToBackStack(null)\n .commit();\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getArguments().getString(\"title\"))\n .setMessage(getArguments().getString(\"message\"))\n .setCancelable(false)\n .setPositiveButton(R.string.OK, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n // call callback method\n // mListener.onInfoDialogOKClick(InfoDialog.this);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View rootView = inflater.inflate(R.layout.fragment_kandidat, container, false);\n\n Resources res = getResources();\n\n list=(ListView)rootView.findViewById(R.id.ListKandidat);\n\n swipeRefreshLayout = (SwipeRefreshLayout) rootView.findViewById(R.id.swipe_refresh_layout_kandidat);\n\n swipeRefreshLayout.setOnRefreshListener(this);\n\n adapter = new AdapterListKandidat(getActivity(), CustomListViewValuesArr, res);\n list.setAdapter(adapter);\n list.setClickable(true);\n setList();\n\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if(!CustomListViewValuesArr.isEmpty()){\n\n final DataKandidat tempValues = (DataKandidat) CustomListViewValuesArr.get(position);\n\n final Dialog dialog = new Dialog(getContext());\n dialog.setContentView(R.layout.detail_list_pemilihan_kandidat);\n //dialog.setTitle(\"Opsi \" + tempValues.getNama());\n\n final ImageView detail_image_kanididat = (ImageView) dialog.findViewById(R.id.detail_list_pemilhan_kandidat_imagegambar);\n final TextView detail_nama_kanididat = (TextView)dialog.findViewById(R.id.detail_list_pemilhan_kandidat_namakandidat);\n final TextView detail_slogan_kanididat = (TextView)dialog.findViewById(R.id.detail_list_pemilhan_kandidat_slogan);\n final TextView detail_tanggalLahir_kanididat = (TextView)dialog.findViewById(R.id.detail_list_pemilhan_kandidat_tanggallahir);\n final TextView detail_keterangan_kanididat = (TextView)dialog.findViewById(R.id.detail_list_pemilhan_kandidat_keterangan);\n final TextView detail_alamat_kanididat = (TextView)dialog.findViewById(R.id.detail_list_pemilhan_kandidat_alamat);\n final Button btnPilih = (Button) dialog.findViewById(R.id.detail_list_pemilhan_kandidat_btnPilih);\n final Switch btSwitch = (Switch) dialog.findViewById(R.id.detail_list_pemilhan_kandidat_switch);\n\n detail_image_kanididat.setImageBitmap(tempValues.getKandidatImage());\n detail_nama_kanididat.setText(tempValues.getKandidatNama());\n detail_slogan_kanididat.setText(tempValues.getKandidatSlogan());\n detail_tanggalLahir_kanididat.setText(tempValues.getKandidatTanggal());\n detail_keterangan_kanididat.setText(tempValues.getKandidatKeterangan());\n detail_alamat_kanididat.setText(tempValues.getKandidatAlamat());\n\n btnPilih.setEnabled(false);\n if(DataPemilihanTerpilih.getPenyelenggara_selesai().equals(\"0\")){\n btSwitch.setEnabled(true);\n }else{\n btSwitch.setEnabled(false);\n }\n btSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n btnPilih.setEnabled(isChecked);\n }\n });\n btnPilih.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n new enkripsi().execute(tempValues.getKandidatId());\n dialog.hide();\n }\n });\n WindowManager.LayoutParams lp = new WindowManager.LayoutParams();\n lp.copyFrom(dialog.getWindow().getAttributes());\n lp.width = WindowManager.LayoutParams.MATCH_PARENT;\n lp.height = WindowManager.LayoutParams.MATCH_PARENT;\n dialog.show();\n dialog.getWindow().setAttributes(lp);\n }\n }\n });\n return rootView;\n\n }", "public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n View layout = inflater.inflate(R.layout.add_item_layout, null);\n\n builder.setView(layout)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n int price = (int) (Float.parseFloat(((EditText)layout.findViewById(R.id.price)).getText().toString())*100);\n Group g = Group.getCurrentGroup();\n for(int i = 0; i < Integer.parseInt(((EditText) layout.findViewById(R.id.quantity)).getText().toString()); i++) {\n g.addItem(\n new Item(\n ((EditText)layout.findViewById(R.id.item_name)).getText().toString(),\n price\n )\n );\n }\n getDialog().dismiss();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n getDialog().dismiss();\n }\n })\n .setTitle(\"Add Items\");\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_open_composition, null, false);\n compositionSelectionList = (ListView) view.findViewById(R.id.savedCompositionSelectionList);\n\n getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final Mesas mesas = Mesas.getInstance();\n\n // Inflate the layout for this fragment\n View root = inflater.inflate(R.layout.fragment_mesas, container, false);\n\n //accedo a las mesas, ya tengo acceso al array\n ListView list = (ListView) root.findViewById(android.R.id.list);\n\n //creamos un adaptador para darselo a la lista y que sepa que datos mostrar\n\n ArrayAdapter<Mesa> adapter = new ArrayAdapter<Mesa>(getActivity(), android.R.layout.simple_list_item_1,mesas.getMesas());\n\n //le asignamos el adaptador a la vista;\n list.setAdapter(adapter);\n\n //para enterarnos de que pulsan sobre una celda, hay que ...\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //le digo a mi actividad que han pulsado una celda\n //compruebo que estoy enganchado a la actividad ( con el onAttach )\n if ( mMesasListListener != null ){\n //aviso al listener\n //obtengo la mesa pulsada\n Mesa mesaSelected = mesas.getMesa(position);\n mMesasListListener.onMesaSelected(mesaSelected,position);\n\n\n }\n }\n });\n\n\n return root;\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int pos, long id) {\n DashboardResModel.BookData bookData = (DashboardResModel.BookData) adapterView.getItemAtPosition(pos);\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"data\", bookData);\n FragmentBookInfo fragment = new FragmentBookInfo();\n fragment.setArguments(bundle);\n ((MainActivity) getActivity()).loadFragment(fragment);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Bundle bundle = new Bundle();\n bundle.putString(\"objectID\", objects.get(position).getObjectId());\n bundle.putString(\"name\", objects.get(position).\n getParseObject(\"CentreStockObjectID\").getString(\"Name\"));\n bundle.putInt(\"quantity\", objects.get(position).getInt(\"Quantity\"));\n bundle.putDouble(\"amount\", objects.get(position).getInt(\"Amount\"));\n bundle.putString(\"orderDate\", objects.get(position).\n getDate(\"OrderDate\").toString());\n if (objects.get(position).getDate(\"ReceiveDate\") != null)\n bundle.putString(\"receiveDate\", objects.get(position).\n getDate(\"ReceiveDate\").toString());\n else\n bundle.putString(\"receiveDate\", null);\n\n OrderProfileFragment opf = new OrderProfileFragment();\n opf.setArguments(bundle);\n getFragmentManager().beginTransaction().replace(R.id.container, opf).\n addToBackStack(null).commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View retView = inflater.inflate(R.layout.fragment_food_list, container, false);\n\n\n //FragmentManager fragmentManager = this.getFragmentManager();\n //FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n //FoodFragment foodFragment = (FoodFragment)fragmentManager.findFragmentById(R.id.foodFragment);\n // fragmentTransaction.hide(foodFragment);\n //fragmentTransaction.commit();\n\n ImageButton newFood = (ImageButton) retView.findViewById(R.id.fragmentFoodListAddFoodButton);\n newFood.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n addFood(view);\n }\n });\n\n buildList(retView);\n return retView;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View rootView = inflater.inflate(R.layout.filter_dialog, null);\n\n\n\n /* Inflate and set the layout for the dialog */\n /* Pass null as the parent view because its going in the dialog layout*/\n builder.setView(rootView)\n /* Add action buttons */\n .setPositiveButton(R.string.filter, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n addShoppingList();\n }\n });\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"CREA USUARIO\")\n .setView(inflater.inflate(R.layout.register_dialog, null))\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n editUser = ((AlertDialog) dialog).findViewById(R.id.username);\n editPass = ((AlertDialog) dialog).findViewById(R.id.password);\n startConexion();\n }\n })\n .setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View vi = inflater.inflate(R.layout.fragment_fees, container, false);\n\n\n infobtn = (ImageView)vi.findViewById(R.id.infobtn);\n\n infobtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n new MaterialDialog.Builder(getActivity())\n .title(\"Consultation fees\")\n .content(\"This fees is indicative and might vary. \\n NOTE:Fees is payable at clinic. There are NO charges for booking an appointment.\")\n .positiveText(\"DISMISS\")\n .negativeText(\"\")\n .show();\n }\n });\n\n\n return vi;\n }", "private void showEditDialog() {\n String[] array = {\"Change Name\", \"Change Password\"};\n AlertDialog.Builder builder = new AlertDialog.Builder(UserProfileActivity.this);\n builder.setTitle(\"What would you like to change?\")\n .setItems(array, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n switch (which) {\n case 0:\n changeNameDialogFragment fragment1\n = new changeNameDialogFragment();\n fragment1.show(getSupportFragmentManager(),\n \"changeNameDialogFragment\");\n break;\n case 1:\n changePasswordDialogFragment fragment2\n = new changePasswordDialogFragment();\n fragment2.show(getSupportFragmentManager(),\n \"changePasswordDialogFragment\");\n break;\n default:\n break;\n }\n dialog.dismiss();\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int i) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tdatasource.open();\n\t\t\n\t\t\n\t\timageButtonEdit.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tBundle b = new Bundle();\n\t\t\t\tb.putLong(Commons.FOLLOWUP_ID, followUpId);\n\t\t\t\tEditFollowUpFragment editFollowUpFragment = new EditFollowUpFragment();\n\t\t\t\teditFollowUpFragment.setArguments(b);\n\t\t\t\tFragmentManager fmi = getFragmentManager();\n\t\t\t\tFragmentTransaction ftu = fmi.beginTransaction();\n\t\t\t\tftu.replace(android.R.id.content, editFollowUpFragment).detach(fragment)\n\t\t\t\t\t\t.addToBackStack(null).commit();\n\t\t\t}\n\t\t});\n\n\t\timageButtonDelete.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tDialogFragment newFragment = MyAlertDialogFragment\n\t\t\t\t\t\t.newInstance(followUpId);\n\t\t\t\tnewFragment.show(getFragmentManager(), \"dialog\");\n\n\t\t\t}\n\t\t});\n\t\t\n\t}", "@Override\n public Fragment getItem(int position) {\n Fragment curFragment=null;\n Bundle bundle = new Bundle();\n switch (position){\n case 0:\n bundle.putParcelable(Constants.SHARE_DATA_KEYS.MAIN_RVIEW_OFFSET,mAlbumsMainState);\n bundle.putParcelableArray(Constants.SHARE_DATA_KEYS.CHILD_RVIEW_OFFSET,mAlbumsChildStates);\n mAlbums.setArguments(bundle);\n curFragment = mAlbums;\n break;\n case 1:\n bundle.putParcelable(Constants.SHARE_DATA_KEYS.MAIN_RVIEW_OFFSET,mPhotosState);\n mPhotos.setArguments(bundle);\n curFragment = mPhotos;\n break;\n case 2:\n bundle.putParcelable(Constants.SHARE_DATA_KEYS.MAIN_RVIEW_OFFSET,mTripListState);\n mTrips.setArguments(bundle);\n curFragment = mTrips;\n break;\n }\n return curFragment;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"The user your trying to connect to does not have a name set\";\n if(getArguments().getBoolean(\"me\"))\n {\n mess = \"Someone tried to connect to you for a game but you dont have a name set\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public void onClick(View v) {\n MainActivity mainActivity = (MainActivity) getActivity();\n DatabaseHelper dbHelper = new DatabaseHelper(mainActivity);\n taskforshopphoto = dbHelper.getTaskInfo(String.valueOf(Shared.SelectedTask.ID));\n if (taskforshopphoto.PhotoID != null) {\n Dialog settingsDialog = new Dialog(getActivity());\n settingsDialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);\n View viewDialog = getActivity().getLayoutInflater().inflate(R.layout.image_layout, null);\n settingsDialog.setContentView(viewDialog);\n ImageView imgShop = (ImageView) viewDialog.findViewById(R.id.ShopImage);\n Bitmap bmp = BitmapFactory.decodeFile(taskforshopphoto.PhotoID);\n\n imgShop.setImageBitmap(bmp);\n settingsDialog.show();\n } else {\n Toast.makeText(getActivity(), \" No Shop photo\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_prefil, container, false);\n\n //ADAPTER\n //---------------------------------------------------------------------------------\n mascotas = new ArrayList<Mascota>();\n mascotas.add(new Mascota(\"\",10,R.drawable.perro1));\n mascotas.add(new Mascota(\"\",9,R.drawable.perro1));\n mascotas.add(new Mascota(\"\",8,R.drawable.perro1));\n mascotas.add(new Mascota(\"\",7,R.drawable.perro1));\n mascotas.add(new Mascota(\"\",6,R.drawable.perro1));\n mascotas.add(new Mascota(\"\",5,R.drawable.perro1));\n mascotas.add(new Mascota(\"\", 4, R.drawable.perro1));\n mascotas.add(new Mascota(\"\",3,R.drawable.perro1));\n mascotas.add(new Mascota(\"\", 0, R.drawable.perro1));\n\n\n rvPerfil = (RecyclerView) v.findViewById(R.id.rv_perfil);\n rvPerfil.setHasFixedSize(true);\n final GridLayoutManager glm= new GridLayoutManager(getActivity(),3,GridLayoutManager.VERTICAL,false);\n rvPerfil.setLayoutManager(glm);\n RVAdapter adapter = new RVAdapter(mascotas);\n rvPerfil.setAdapter(adapter);\n\n\n //FIN ADAPTER\n //-------------------------------------------------------------------------------------\n\n return v;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n setRetainInstance(true);\n\n Dialog dialog = new Dialog(getContext(), R.style.DialogTheme);\n dialog.setContentView(R.layout.add_sale_item_dialog);\n\n return dialog;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_pedidos, container, false);\n puntoVentaVentas = rutasObj.sacarPuntoVenta(puntoVentaLogin);\n\n //MUESTRA EL MENU DE OPCIONES EN LA TOOLBAR\n setHasOptionsMenu(true);\n\n listView = (ListView)view.findViewById(R.id.listaPedidos);\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n pedidoID = (int)pedidosAdapter.getItemId(i);\n Fragment fragment = DetallesPedidos.newInstance(pedidoID);\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.content_main,fragment);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }\n });\n\n //SE INICIALIZA EL PROGRESS DIALOG\n progressDialog = new ProgressDialog(getContext());\n progressDialog.setTitle(\"En Proceso\");\n progressDialog.setMessage(\"Un momento...\");\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.show();\n //PARA LA CONSULTA DE LAS CLAVES DE LOS CLIENTES EN EL SPINNER\n RequestQueue queue = Volley.newRequestQueue(getContext());\n String consulta = \" SELECT distinct o.id,o.folio,CONCAT(pv.tipo,'-',cc.numero),DATE(o.fecha),\"+\n \" (SELECT SUM( od.precio_final * od.cantidad)\"+\n \" FROM orden_descripcion od, orden ord\"+\n \" where od.orden_id = ord.id\"+\n \" AND ord.id = o.id)\"+\n \" from orden o, punto_venta pv, clave_cliente cc, cliente cli, orden_descripcion od \"+\n \" where o.id not in(Select orden_id from orden_completa)\"+\n \" and o.puntoVenta_id = pv.id\"+\n \" and od.orden_id = o.id \"+\n \" and o.cliente_id = cli.id\"+\n \" and cc.cliente_id=cli.id\"+\n \" and pv.tipo ='\"+puntoVentaVentas+\n \"' and od.precio_final * od.cantidad > 0\" +\n \" order by o.fecha desc;\";\n consulta = consulta.replace(\" \", \"%20\");\n String cadenaClaveCliente = \"?host=\" + HOST + \"&db=\" + DB + \"&usuario=\" + USER + \"&pass=\" + PASS + \"&consulta=\" + consulta;\n String url = SERVER + RUTA + \"consultaGeneral.php\" + cadenaClaveCliente;\n Log.i(\"info\", url);\n JsonArrayRequest request = new JsonArrayRequest(Request.Method.GET, url, null, new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n progressDialog.hide();\n pedidosAdapter = new PedidosAdapter(getContext(), ModeloPedidos.sacarListaClientes(response),getFragmentManager());\n listView.setAdapter(pedidosAdapter);\n if (response.length() == 0){\n AlertDialog.Builder dialogo1 = new AlertDialog.Builder(getActivity());\n dialogo1.setTitle(\"Importante\");\n dialogo1.setCancelable(false);\n dialogo1.setIcon(R.drawable.cancelar);\n dialogo1.setMessage(\"No hay pedidos pendientes\");\n dialogo1.setPositiveButton(\"Confirmar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n dialogo1.show();\n\n }\n\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(request);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_menu, container, false);\n\n\n imgconsult = (ImageView)v.findViewById(R.id.imgClipBoard);\n imgsiringa = (ImageView)v.findViewById(R.id.imgsiringa);\n imgChat = (ImageView)v.findViewById(R.id.imgChat);\n\n imgChat.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Toast.makeText(getActivity(), \"tela chat\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(getActivity(),ChatTab.class));\n }\n });\n\n imgconsult.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //Toast\n Context context = getActivity();\n CharSequence text = \"marcarConsulta\";\n int duraton = Toast.LENGTH_LONG;\n Toast toast = Toast.makeText(context,text,duraton);\n //toast.setGravity(Gravity.TOP,0,0);\n toast.show();\n\n //Dialog\n AlertDialog.Builder mBuilder = new AlertDialog.Builder(getActivity(),R.style.MyCustomDialog);\n View mView = getLayoutInflater().inflate(R.layout.activity_dialog_cad_consulta,null);\n mBuilder.setView(mView);\n final AlertDialog dialog = mBuilder.create();\n dialog.show();\n\n }\n });\n\n imgsiringa.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //Toast\n Context context = getActivity();\n CharSequence text = \"Marca Vacina\";\n int duraton = Toast.LENGTH_LONG;\n Toast toast = Toast.makeText(context,text,duraton);\n //toast.setGravity(Gravity.,0,0);\n toast.show();\n\n //Dialog\n AlertDialog.Builder mBuilder = new AlertDialog.Builder(getActivity(),R.style.MyCustomDialog);\n View mView = getLayoutInflater().inflate(R.layout.fragment_cad_vacina,null);\n mBuilder.setView(mView);\n final AlertDialog dialog = mBuilder.create();\n dialog.show();\n }\n });\n\n return v;\n }", "@Override\n public void onClick(View v) {\n NewBucketDialogFragment newBucketDialogFragment = NewBucketDialogFragment.newInstance();\n newBucketDialogFragment.setTargetFragment(BucketListFragment.this, REQ_CODE_NEW_BUCKET);\n newBucketDialogFragment.show(getFragmentManager(), NewBucketDialogFragment.TAG);\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 openbook = view.findViewById(R.id.openbook_img);\n openbook.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n HomeActivity homeActivity = (HomeActivity) getActivity();\n OpenBookFragment openBookFragment = new OpenBookFragment();\n homeActivity.displaySelectedFragment(openBookFragment);\n }\n });\n\n education = view.findViewById(R.id.education_img);\n education.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n HomeActivity homeActivity1 = (HomeActivity) getActivity();\n EducationFragment educationFragment = new EducationFragment();\n homeActivity1.displaySelectedFragment(educationFragment);\n }\n });\n\n location = view.findViewById(R.id.placeholder_img);\n location.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n HomeActivity homeActivity4 = (HomeActivity) getActivity();\n LocationFragment locationFragment = new LocationFragment();\n homeActivity4.displaySelectedFragment(locationFragment);\n }\n });\n\n checklist = view.findViewById(R.id.ckecklist_img);\n checklist.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n HomeActivity homeActivity2 = (HomeActivity) getActivity();\n CheckListFragment checkListFragment = new CheckListFragment();\n homeActivity2.displaySelectedFragment(checkListFragment);\n }\n });\n\n calendar = view.findViewById(R.id.calendar_img);\n calendar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n HomeActivity homeActivity3 = (HomeActivity) getActivity();\n CalendarFragment calendarFragment = new CalendarFragment();\n homeActivity3.displaySelectedFragment(calendarFragment);\n }\n });\n\n library = view.findViewById(R.id.library_img);\n library.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n HomeActivity homeActivity4 = (HomeActivity) getActivity();\n LibraryFragment libraryFragment = new LibraryFragment();\n homeActivity4.displaySelectedFragment(libraryFragment);\n }\n });\n// unbinder = ButterKnife.bind(this, view);\n return view;\n }", "static ManageDialogFragment newInstance(int position) {\n ManageDialogFragment deviceDialog = new ManageDialogFragment();\n\n // Supply num input as an argument.\n Bundle args = new Bundle();\n args.putInt(\"position\", position);\n\n deviceDialog.setArguments(args);\n\n return deviceDialog;\n }", "@Override\n public void onCardClick(CreditCard cartao) {\n FragmentManager manager = getSupportFragmentManager();\n DialogFragment editNameDialogFragment = DialogFragment.newInstance(cartao);\n editNameDialogFragment.show(manager, \"fragment_dialog\");\n }", "@Override\n public void onClick(View v) {\n ((MainActivity)getActivity()).showFragment(new ListeAnnonceFragment());\n\n }" ]
[ "0.6876195", "0.6865329", "0.67228377", "0.6694516", "0.66193396", "0.65531754", "0.653876", "0.6478258", "0.6464067", "0.64451844", "0.644487", "0.64221215", "0.6416856", "0.6379836", "0.63702977", "0.6367413", "0.63004434", "0.62916505", "0.6289624", "0.62877554", "0.62827444", "0.6280689", "0.6243012", "0.6240732", "0.6227573", "0.6211264", "0.62099105", "0.6209765", "0.62084717", "0.6206102", "0.62004185", "0.618766", "0.61704975", "0.61560553", "0.61465234", "0.61459947", "0.6144788", "0.6142047", "0.6140659", "0.61299026", "0.61162645", "0.61093295", "0.61064595", "0.6104362", "0.60987407", "0.6098569", "0.6081271", "0.6073644", "0.60697824", "0.6064051", "0.60592234", "0.6054249", "0.60518646", "0.6050343", "0.6050343", "0.604971", "0.60459673", "0.6045744", "0.60393137", "0.6036173", "0.6035968", "0.603437", "0.6025744", "0.60169506", "0.6012346", "0.6003772", "0.6000557", "0.5999077", "0.59961104", "0.5992567", "0.59905344", "0.5981006", "0.59746754", "0.59629357", "0.59628403", "0.5960584", "0.59514946", "0.5950801", "0.59462315", "0.5941031", "0.593646", "0.59219396", "0.591752", "0.5916079", "0.59147304", "0.5913193", "0.59126365", "0.5911939", "0.59070355", "0.59061444", "0.590158", "0.5901548", "0.5896923", "0.58929133", "0.5887879", "0.5880183", "0.58782923", "0.58758134", "0.58756256", "0.5875484" ]
0.60796016
47
adds a tile to the end of the list. based on width left,top coordinates are applied to retrieve them later. this method is used to add a stream of tiles (e.g. reading them from a file).
public Map add(Tile tile) { this.tiles.add(tile); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addTileAtTheEnd(Tile tile);", "public void addTileOnBeginning(Tile tile);", "@Override\n public Map put(Tile tile, int left, int top) {\n // TODO if useful\n int index = getPosition(left, top);\n while (this.tiles.size() <= index) {\n this.tiles.add(null);\n }\n this.tiles.set(index, tile);\n return this;\n }", "public void addTile(Tile tile) {\n ownedTiles.add(tile);\n }", "public void addTile(Tile tile)\r\n\t{\r\n\t\ttiles.add(tile);\r\n\t}", "public void addSubbedTile(Tile t) { subbedTiles.add(t); }", "private void add(Tile t) {\n tileBag.add(t);\n shuffleBag();\n }", "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 boolean addBoardTile(Tile t, int xpos, int ypos) {\n \tTile leftTile = null;\n \tTile rightTile = null;\n \tif (ypos != 1) {\n \t\t// Aka if the tile isn't at the leftmost side\n \t\tleftTile = boardTiles.get(new Point(xpos - 1, ypos));\n \t} \t\n \tif (ypos != BoardController.BOARDSIZE) {\n \t\t// Aka if the tile isn't at the rightmost side\n \t\trightTile = boardTiles.get(new Point(xpos + 1, ypos));\n \t}\n \t\n \tif (leftTile != null && rightTile != null) {\n \t\t// Tile placed on the board between two existing melds\n \t\t// NOTE: If the tile is moved a space to the left or right, and that space is \n \t\t// not occupied, and there is another existing meld beside that space,\n \t\t// then the two melds are the meld it was moved beside and itself\n \t\tMeld leftMeld = findMeld(leftTile);\n \t\tMeld rightMeld = findMeld(rightTile);\n \t\t\n \t\t// First check if either meld is the single tile being moved\n \t\tif (leftMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(rightMeld.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (rightMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(leftMeld.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (leftMeld.addRightside(t)) {\n \t\t\tif(combineMeld(leftMeld, rightMeld)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t \t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\t\tcontroller.updateView();\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse {\n \t\t\t\tleftMeld.removeFromMeld(t);\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\treturn false;\n \t}\n \t\n \telse if (leftTile == null && rightTile == null) {\n \t\t// Tile is placed on the board as the start of a new meld!\n \t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tremoveHandTile(t);\n\t\t\t}\n\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n\t\t\tcontroller.updateView();\n\t\t\treturn true;\n \t}\n \t\n \telse if(leftTile != null) {\n \t\t// Tile is added to the end of an existing meld\n \t\t// OR tile is moved to the right and the left tile is itself!\n \t\t\n \t\tif (leftTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(leftTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(leftTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(leftTile).setMeld(t, 0)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\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}\n \t\t\n \t\tMeld meldToAddTo = findMeld(leftTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"2\");\n \t\t\treturn false;\n \t\t}\n \t}\n \t\n \telse if(rightTile != null) {\n \t\tif (rightTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(rightTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(rightTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(rightTile).setMeld(t, 1)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\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}\n \t\t\n \t\tMeld meldToAddTo = findMeld(rightTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\tSystem.out.print(\"We get here >:\");\n \t\t\tSystem.out.print(t.getValue());\n \t\t\tSystem.out.print(t.getColour().getName());\n \t\t\t\n \t\t\tSystem.out.println(rightTile.getValue());\n \t\t\tSystem.out.println(rightTile.getColour().getName());\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"3\");\n \t\t\treturn false;\n \t\t}\n \t}\n \telse {\n \t\t// Should not reach here, throw an error if it does\n \t\tSystem.out.println(\"4\");\n \t\treturn false;\n \t}\n }", "public TiledWraparound(Spatial tile)\r\n {\r\n super(tile.getTopRight());\r\n final int PAD = 1;\r\n int tiles = PAD*2+1;\r\n this.tile = tile;\r\n float BLx = -tr.getX(), BLy = -tr.getY();\r\n offsets = new Location[tiles*tiles];\r\n for(int i=0; i<tiles; i++)\r\n {\r\n for(int j=0; j<tiles; j++)\r\n {\r\n offsets[i*tiles+j] = new Location.Location2D(BLx+tr.getX()*i, BLy+tr.getY()*j);\r\n }\r\n }\r\n }", "public void placeTile(Tile t){\n\t\t//System.out.println(t.toString() + \" was placed\");\n\t\toccupied = true;\n\t\tcurrentTile = t;\n\t}", "public List<Tile> offsetTile(List<Tile> tiles, Direction direction){\n \tint newColIndex = this.currentActiveShape.centerPieceColumnIndex + direction.colIndex;\n int newRowIndex = this.currentActiveShape.centerPieceRowIndex + direction.rowIndex;\n List<Tile> newTileList = new ArrayList<Tile>();\n \tfor(Tile tile : tiles){\n \t\tTile newTile = new Tile(tile.tileSize, tile.setColor, tile.tileColor, tile.setTileBorder,\n tile.setImage, tile.tileImage,\n newColIndex, newRowIndex, tile.position , tile.directions);\n newTileList.add(newTile);\n \t}\n \treturn newTileList;\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 boolean addTile(Tile tile) {\n\n\t\tboolean isSuccess = false;\n\t\tint tileRow = tile.getLocation().getRow();\n\t\tint tileCol = tile.getLocation().getColumn();\n\n\t\tArrayList<Tile> boardRow= null;\n\n\t\tif(tiles.containsKey(tileRow)) {\n\t\t\tboardRow=tiles.get(tileRow);\n\t\t\tif(boardRow == null) {\n\t\t\t\tboardRow = new ArrayList<Tile>(BOARD_SIZE);\n\t\t\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\t\t\tboardRow.add(0,null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tboardRow= new ArrayList<Tile>(BOARD_SIZE);\n\t\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\t\tboardRow.add(0,null);\n\t\t\t}\n\t\t}\n\t\tboardRow.set(tileCol - 'A', tile);\n\t\tthis.tiles.put(tileRow, boardRow);\n\t\tisSuccess = true;\n\n\t\treturn isSuccess;\n\n\t}", "public final void addTile(final int rowPos, //!< Row position of tile\n\t\t\t final int colPos, //!< Column position of tile\n\t\t\t Tile tile //!< Tile object to be added\n\t\t\t ) {\n\t\t// Add additional rows to the tile container if necessary\n\t\tfor (int resizeIter = mLayout.size(); resizeIter <= rowPos; resizeIter++) {\n\t\t\tmLayout.add(new Vector<Tile>());\n\t\t}\n\n\t\t// Add additional columns to the row if necessary\n\t\tfor (int resizeIter = mLayout.get(rowPos).size(); resizeIter <= colPos; resizeIter++) {\n\t\t\tmLayout.get(rowPos).add(tileFactory.create(TileFactory.Type.GRASS));\n\t\t}\n\n\t\tmLayout.get(rowPos).setElementAt(tile, colPos);\n\t}", "private boolean addTile(int tileRow, int tileCol, Palette.FillColor color, int width, int height) {\n\t\t\tif (tileRow + height > ROWS || tileCol + width > COLS)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\t// check if another tile exists in region\n\t\t\tfor (int r = tileRow; r < tileRow + height; r++) {\n\t\t\t\tfor (int c = tileCol; c < tileCol + width; c++) {\n\t\t\t\t\tif (m_tileMap[r][c] != '0')\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tboolean added = m_tiles.get(tileRow).add(new Board.Tile(tileCol, color, width, height));\n\t\t\tif (added) {\n\t\t\t\tfor (int r = tileRow; r < tileRow + height; r++) {\n\t\t\t\t\tfor (int c = tileCol; c < tileCol + width; c++)\n\t\t\t\t\t\tm_tileMap[r][c] = '1';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn added;\n\t\t}", "public void addToTile(GameEntity e) {\n\t\t\n\t\tGridTile tile = getTile(e.pos());\n\t\ttile.add(e);\n\t}", "private void organizeTiles(){\n\t\tfor(int i = 1; i <= size * size; i++){\n\t\t\tif(i % size == 0){\n\t\t\t\tadd(tiles[i - 1]);\n\t\t\t\trow();\n\t\t\t}else{\n\t\t\t\tadd(tiles[i - 1]);\n\t\t\t}\n\t\t}\n\t}", "private void addUpBlock(Position p, TETile te,\n int len, int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int j = y; j < y + len; j += 1) {\n for (int i = x - leftWid; i < x + rightWid + 1; i += 1) {\n world[i][j] = te;\n }\n }\n }", "@Override\n protected void populate()\n {\n for (int i = 0; i < getHeight(); i++)\n {\n add(new Tile(), 1, i);\n add(new Block(), 2, i);\n add(new Tile(), 3, i);\n }\n for (int i = 2; i < 5; i++)\n {\n add(new LightableTile(), 4, i);\n }\n }", "private void createTiles() {\n\t\tint tile_width = bitmap.getWidth() / gridSize;\n\t\tint tile_height = bitmap.getHeight() / gridSize;\n\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tBitmap bm = Bitmap.createBitmap(bitmap, column * tile_width,\n\t\t\t\t\t\trow * tile_height, tile_width, tile_height);\n\n\t\t\t\t// if final, Tile -> blank\n\t\t\t\tif ((row == gridSize - 1) && (column == gridSize - 1)) {\n\t\t\t\t\tbm = Bitmap.createBitmap(tile_width, tile_height,\n\t\t\t\t\t\t\tbm.getConfig());\n\t\t\t\t\tbm.eraseColor(Color.WHITE);\n\t\t\t\t\ttheBlankTile = new Tile(bm, row, column);\n\t\t\t\t\ttiles.add(theBlankTile);\n\t\t\t\t} else {\n\t\t\t\t\ttiles.add(new Tile(bm, row, column));\n\t\t\t\t}\n\t\t\t} // end column\n\t\t} // end row\n\t\tbitmap.recycle();\n\n\t}", "public FloorCrate(ArrayList<Item> ary, int x, int y){\r\n super(null, \"You shouldn't be reading this.\", x, y);\r\n addAll(ary);\r\n description = isEmpty() ? new Description(\"tile\", \"There is nothing interesting here.\") :\r\n get(size()-1).description;\r\n }", "@Override\r\n public void onTileAdded() {\r\n super.onTileAdded();\r\n //Log.d(TAG, \"on tile added running\");\r\n initTileState();\r\n }", "private void addRightBlock(Position p, TETile te,\n int len, int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int i = x; i < x + len; i += 1) {\n for (int j = y - rightWid; j < y + leftWid + 1; j += 1) {\n world[i][j] = te;\n }\n }\n }", "private void drawTile(int i, int j, Tile tile) {\n\t\tRectangle rect = new Rectangle(175*i+50,j*175+25,175, 175);\r\n\t\ttilesDrawn.add(rect);\r\n\t}", "private void boxCreator(int[] pos, int width, int height) {\n for (int x = pos[0]; x < pos[0] + width; x++) {\n tiles[x][pos[1]] = Tileset.WALL;\n }\n for (int y = pos[1]; y < pos[1] + height; y++) {\n tiles[pos[0]][y] = Tileset.WALL;\n }\n for (int x = pos[0]; x < pos[0] + width; x++) {\n tiles[x][pos[1] + height] = Tileset.WALL;\n }\n for (int y = pos[1]; y < pos[1] + height + 1; y++) {\n tiles[pos[0] + width][y] = Tileset.WALL;\n }\n for (int y = pos[1] + 1; y < pos[1] + height; y++) {\n for (int x = pos[0] + 1; x < pos[0] + width; x++) {\n tiles[x][y] = Tileset.FLOWER;\n }\n }\n }", "public void addDetailTile(WeatherDetail weatherDetail, int addPos, int delPos)\n {\n tileList.add(addPos, weatherDetail);\n notifyItemInserted(addPos);\n\n if(delPos != Constant.DONT_REMOVE)\n {\n tileList.remove(delPos);\n notifyItemRemoved(delPos);\n }\n }", "protected void registerTile(int x, int y) {}", "public static void addTile(Color[][] tileData, int x, int y, Color[] palData)\n {\n int tileNumber = ChrFile.getTileNum(tileData, palData);\n\n allTiles[x/8][y/8] = tileNumber;\n numOfTiles++;\n }", "void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void addDownBlock(Position p, TETile te,\n int len, int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int j = y; j > y - len; j -= 1) {\n for (int i = x - rightWid; i < x + leftWid + 1; i += 1) {\n world[i][j] = te;\n }\n }\n }", "public void drawTile() {\n\n }", "public void addpixeltoPanel() {\n for (int i = 0; i < 100; i++) {\r\n arrangex();\r\n arrangey();\r\n pixellist.get(i).setBounds(x, y, 10, 10); //Sets Random X and Random Y coordinates\r\n\r\n }\r\n for (int i = 0; i < 100; i++) {\r\n this.add(pixellist.get(i)); //Adds pixel objects to panel\r\n this.pixellist.get(i).setVisible(true);\r\n }\r\n }", "public void addEditedTile(GroundTile tile) {\n this.editedTiles.add(tile);\n }", "public UISnake(int startW, int startH) {\n\t\tsuper(startW, startH);\n\t\thead = new HeadTile(startW, startH, direction, this);\n\t\tlastTile = new BodyTile(800, 800, this);\n\t}", "public void addImg(){\n // Add other bg images\n Image board = new Image(\"sample/img/board.jpg\");\n ImageView boardImg = new ImageView();\n boardImg.setImage(board);\n boardImg.setFitHeight((tileSize* dimension)+ (tileSize*2) );\n boardImg.setFitWidth( (tileSize* dimension)+ (tileSize*2) );\n\n Tile infoTile = new Tile(getTileSize(), getTileSize()*7);\n infoTile.setTranslateX(getTileSize()*3);\n infoTile.setTranslateY(getTileSize()*6);\n\n tileGroup.getChildren().addAll(boardImg, infoTile);\n\n }", "private static void addBlockToPixa(Pixa pixa, int x, int y, int width, int height, int depth) {\n final Pix pix = new Pix(width, height, depth);\n final Box box = new Box(x, y, width, height);\n\n pixa.add(pix, box, Constants.L_COPY);\n\n pix.recycle();\n box.recycle();\n }", "public void moveTileForward()\n {\n if(!(activeTile+1 > tiles.length-1) && tiles[activeTile+1] != null)\n {\n Tile tmpTile = tiles[activeTile];\n PImage tmpPreview = previews[activeTile];\n PImage tmpPreviewGradients = previewGradients[activeTile];\n boolean tmpPreviewHover = previewHover[activeTile];\n \n tiles[activeTile+1].setStartColor(tmpTile.getStartColor());\n tiles[activeTile+1].setEndColor(tmpTile.getEndColor());\n tmpTile.setStartColor(tiles[activeTile+1].getStartColor());\n tmpTile.setEndColor(tiles[activeTile+1].getEndColor());\n \n tiles[activeTile+1].setTileLevel(tiles[activeTile+1].getTileLevel()-1);\n tiles[activeTile] = tiles[activeTile+1];\n previews[activeTile] = previews[activeTile+1];\n previewGradients[activeTile] = previewGradients[activeTile+1];\n previewHover[activeTile] = previewHover[activeTile+1];\n \n \n tmpTile.setTileLevel(tmpTile.getTileLevel()+1);\n tiles[activeTile+1] = tmpTile;\n tiles[activeTile+1].setStartColor(tiles[activeTile+1].getStartColor());\n previews[activeTile+1] = tmpPreview;\n previewGradients[activeTile+1] = tmpPreviewGradients;\n previewHover[activeTile+1] = tmpPreviewHover;\n \n activeTile += 1;\n createPreviewGradients();\n }\n }", "public void createList () {\n imageLocs = new ArrayList <Location> ();\n for (int i = xC; i < xLength * getPixelSize() + xC; i+=getPixelSize()) {\n for (int j = yC; j < yLength * getPixelSize() + yC; j+=getPixelSize()) {\n Location loc = new Location (i, j, LocationType.POWERUP, true);\n\n imageLocs.add (loc);\n getGridCache().add(loc);\n \n }\n }\n }", "@Override\n protected void generateTiles() {\n }", "private void addNewBoard(int x, int y,\n\t\t\tArrayList<ArrayList<Integer>> board) {\n\t\tif (y < 0 || y > board.size() - 1) { //expanding up/down\n\t\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\tArrayList<Integer> z = new ArrayList<>();\n\t\t\t\tfor (int j = 0; j < board.get(0).size(); j++) {\n\t\t\t\t\tif ((j < x + boardSize && j >= x && x >= 0)) { //adjusts for y if it isn't 0 or negative, almost forgot about this\n\t\t\t\t\t\tz.add(0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tz.add(5);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (y < 0) {\n\t\t\t\t\tboard.add(0, z);\n\t\t\t\t\ty++;\n\t\t\t\t} else {\n\t\t\t\t\tboard.add(z);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfreeSpace += boardSize * boardSize;\n\t\t}\n\t\tif (x < 0 || x > board.get(0).size() - 1) { //expanding to the left/right\n\t\t\tint loc = (x < 0) ? 0 : board.get(0).size();\n\t\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\tfor (int j = 0; j < board.size(); j++) {\n\t\t\t\t\tif (j < y + boardSize && j >= y) {\n\t\t\t\t\t\tboard.get(j).add(loc, 0); //append as opposed to add\n\t\t\t\t\t} else {\n\t\t\t\t\t\tboard.get(j).add(loc, 5); //append lack of board everywhere else\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfreeSpace += boardSize * boardSize;\n\t\t}\n\t\tif ((y >= 0 && y < board.size())\n\t\t\t\t&& (x >= 0 && x < board.get(0).size())\n\t\t\t\t&& getBoard(x, y) == 5) { //If within board\n\t\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\t\tboard.get(y + i).set(x + j, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfreeSpace += boardSize * boardSize;\n\t\t}\n\t\tupdateOffset();\n\t}", "public void fillTable() {\n\t\tif (scroll.getWidth() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tboolean showedNew = false;\n\t\tArrayList<Placeable> currentView = new ArrayList<Placeable>();\n\t\tif (viewing == ViewingMode.MATERIAL) {\n\t\t\tif (loadedMats == null)\n\t\t\t\tloadedMats = repo.getAllMats();\n\t\t\tfor (NamedMaterial m: loadedMats) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t}\n\t\telse if (viewing == ViewingMode.PIECE){\n\t\t\tif (loadedPieces == null)\n\t\t\t\tloadedPieces = repo.getAllPieces();\n\t\t\tfor (Piece m: loadedPieces) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t\tshowedNew = true;\n\t\t}\n\t\t\n\t\ttiles.clearChildren();\n\t\tfloat cellWidth = 64.0f;\n\t\tint numAcross = (int)(scroll.getWidth() / cellWidth);\n\t\tif (numAcross <= 0) {\n\t\t\tnumAcross = 1;\n\t\t}\n\t\tint count = 0;\n\t\tActor tile;\n\t\twhile (count < currentView.size()) {\n\t\t\tfor (int y = 0; y < numAcross; y++) {\n\t\t\t\tif (!showedNew) {\n\t\t\t\t\ttile = new Label(\"New\", TextureOrganizer.getSkin());\n\t\t\t\t\t((Label)tile).setAlignment(Align.center);\n\t\t\t\t\ttile.addListener(new ClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t public void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\t\t\tmakeNew();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tshowedNew = true;\n\t\t\t\t}\n\t\t\t\telse if (count >= currentView.size()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttile = new ColoredRectActor(currentView.get(count++));\n\t\t\t\t\ttile.addListener(new TileListener((ColoredRectActor)tile));\n\t\t\t\t}\n\t\t\t\ttiles.add(tile).width(cellWidth).height(cellWidth).fill();\n\t\t\t}\n\t\t\tif (count < currentView.size())\n\t\t\t\ttiles.row();\n\t\t}\n\t}", "private void layTiles() {\n board = new Tile[height][width];\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n layTile(new Tile(i, j));\n }\n }\n }", "private void addLeftBlock(Position p, TETile te,\n int len, int leftWid, int rightWid) {\n\n int x = p.x;\n int y = p.y;\n for (int i = x; i > x - len; i -= 1) {\n for (int j = y - leftWid; j < y + rightWid + 1; j += 1) {\n world[i][j] = te;\n }\n }\n }", "public Puzzle exPuzzle() {\n List<Tile> tiles = new ArrayList<>(9);\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.x), new Pic(Pattern.B, Half.y), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.y), new Pic(Pattern.D, Half.x), new Pic(Pattern.C, Half.y), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.y), new Pic(Pattern.D, Half.x), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.C, Half.x), new Pic(Pattern.C, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.y), new Pic(Pattern.B, Half.y), new Pic(Pattern.B, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.C, Half.y), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.A, Half.x), new Pic(Pattern.D, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.y), new Pic(Pattern.B, Half.x), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.y), new Pic(Pattern.A, Half.x), new Pic(Pattern.D, Half.y), new Pic(Pattern.C, Half.y)));\n return new Puzzle(tiles);\n }", "public void renderTile(int xp, int yp, Tile tile) {\n\t\txp -= xOffset; //subtracting the Offset accounts for player movement. This also somehow reverses the inversion of the controls. Understand why we are subtracting as opposed to adding.\n\t\typ -= yOffset;\n\t\tfor (int y = 0; y < tile.sprite.SIZE; y++) {\n\t\t\tint ya = y + yp; // ya refers to absolute position. y is the rendering thing moving from left to right. yp is the offset. The reason for needing an absolute position is that this method only renders a single tile\n\t\t\tfor (int x = 0; x < tile.sprite.SIZE; x++) {\n\t\t\t\tint xa = x + xp;\n\t\t\t\tif (xa < -tile.sprite.SIZE || xa >= width || ya < 0 || ya >= height) break; //width and height refer to the screen width and height. this if statement insures that only tiles on the screen are rendered! There are 4 bounds representing top, bottom, left and right. the far left bound isn't zero because...see andrew ton.\n\t\t\t\t//\"xa < -tile.sprite.SIZE\" insures that we get an extra tile on the far left so rendering is smooth.\n\t\t\t\tif (xa < 0) xa = 0; //we set xa equal to zero if \"xa < 0\" in case we are on the border. It ONLY solves the arrayindexoutofbounds error. doesnt have affect rendering\n\t\t\t\tpixels[xa + ya * width] = tile.sprite.pixels[x + y * tile.sprite.SIZE];\n\t\t\t}\n\t\t}\n\t}", "void setPosition(Tile t);", "private void addAnotherElement() {\n\t\t SnakeSquare ss = sSquare.get(sSquare.size() - 1);\n\t\t double velX = ss.getDX();\n\t\t double velY = ss.getDY();\n\t\t \n\t\t double x = ss.getX();\n\t\t double y = ss.getY();\n\t\t double len = ss.getLength();\n\t\t Color c = ss.getColor();\n//\t\t double snakeSize = 10.0f;\n\t\t \n\t\t if(velX == 0 && velY == 0){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}\n\t\t if(velX == 0 && velY == 1){sSquare.add(new SnakeSquare(x, y - snakeSize, c, len));}//move down;\n\t\t if(velX == 0 && velY == -1){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}//move up;\n\t\t if(velX == 1 && velY == 0){sSquare.add(new SnakeSquare(x+ snakeSize, y, c, len));}//move right;\n\t\t if(velX == -1 && velY == 0){sSquare.add(new SnakeSquare(x - snakeSize, y, c, len));}// move left;\n\t\t\n\t}", "public void addSquaresToList()\n {\n int i = 0;\n int size = 50;\n int spacing = 0;\n int interval = size + spacing;\n\n while (i < 8)\n {\n sqList.add(new Square(interval * i, 0, size, \"red\"));\n i++;\n }\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 setTiles(CWPoint toplefti, CWPoint bottomrighti, float scale, Point size, int overlapping) {\n\t\ttopleft = new CWPoint(toplefti);\r\n\t\tbottomright = new CWPoint(bottomrighti);\r\n\t\tdouble metersPerLat;\r\n\t\tdouble metersPerLon;\r\n\t\tif (topleft.equals(bottomright)) {\r\n\t\t\t// veraltet: Berechnung auf Kugel: double\r\n\t\t\tmetersPerLat = (1000.0 * (new CWPoint(0, 0)).getDistance(new CWPoint(1, 0)));\r\n\t\t\t// veraltet: Berechnung auf Kugel: double\r\n\t\t\tmetersPerLon = metersPerLat * java.lang.Math.cos((toplefti.latDec + bottomright.latDec) / 2 / 180 * java.lang.Math.PI);\r\n\t\t} else {\r\n\t\t\tCWPoint center = new CWPoint((topleft.latDec + bottomright.latDec) / 2.0, (toplefti.lonDec + bottomrighti.lonDec) / 2.0);\r\n\t\t\tCWPoint centerleft = new CWPoint((topleft.latDec + bottomright.latDec) / 2.0, toplefti.lonDec);\r\n\t\t\tCWPoint centerbottom = new CWPoint(bottomright.latDec, (toplefti.lonDec + bottomrighti.lonDec) / 2.0);\r\n\t\t\tmetersPerLat = 1000.0 * center.getDistance(centerbottom) / (center.latDec - centerbottom.latDec);\r\n\t\t\tmetersPerLon = 1000.0 * center.getDistance(centerleft) / (center.lonDec - centerleft.lonDec);\r\n\t\t}\r\n\r\n\t\tdouble metersperpixel = currentOnlineMapService.getMetersPerPixel(scale);\r\n\t\tdouble pixelsPerLat = metersPerLat / metersperpixel;\r\n\t\tdouble pixelsPerLon = metersPerLon / metersperpixel;\r\n\r\n\t\t// over all pixelsize without borders\r\n\t\tdouble pixelsY = (topleft.latDec - bottomright.latDec) * pixelsPerLat;\r\n\t\tdouble pixelsX = -(topleft.lonDec - bottomright.lonDec) * pixelsPerLon;\r\n\r\n\t\t// border sizes around given area and overlapping between tiles\r\n\t\t// int borderX = (int) java.lang.Math.round((float)size.x * (overlapping - 1.0));\r\n\t\t// int borderY = (int) java.lang.Math.round((float)size.y * (overlapping - 1.0));\r\n\t\tint borderX = overlapping;\r\n\t\tint borderY = overlapping;\r\n\r\n\t\tnumMapsY = (int) java.lang.Math.ceil((pixelsY + borderY) / (size.y - borderY));\r\n\t\tnumMapsX = (int) java.lang.Math.ceil((pixelsX + borderX) / (size.x - borderX));\r\n\r\n\t\t// increments calulated from pixel offset of tiles\r\n\t\tlatinc = -(size.y - borderY) / pixelsPerLat;\r\n\t\tloninc = (size.x - borderX) / pixelsPerLon;\r\n\r\n\t\t// calculation of centre of first tile\r\n\r\n\t\t// additional size for borders and rounding\r\n\t\tdouble oversizeX = (numMapsX * (size.x - borderX) + borderX) - pixelsX;\r\n\t\tdouble oversizeY = (numMapsY * (size.y - borderY) + borderY) - pixelsY;\r\n\r\n\t\t// offset for upper left corner\r\n\t\tdouble offsetLat = -((size.y - oversizeY) / 2.0) / pixelsPerLat;\r\n\t\tdouble offsetLon = ((size.x - oversizeX) / 2.0) / pixelsPerLon;\r\n\r\n\t\ttopleft.latDec += offsetLat;\r\n\t\ttopleft.lonDec += offsetLon;\r\n\r\n\t\tthis.tilesSize = new Point();\r\n\t\tthis.tilesSize.set(size);\r\n\t\tthis.tileScale = scale;\r\n\t}", "private void addWalls() {\n wallList.add(new RectF(0, 0, wallSize, screenHeight / 2 - doorSize));\n wallList.add(new RectF(0, screenHeight / 2 + doorSize, wallSize, screenHeight));\n wallList.add(new RectF(0, 0, screenWidth / 2 - doorSize, wallSize));\n wallList.add(new RectF(screenWidth / 2 + doorSize, 0, screenWidth, wallSize));\n wallList.add(new RectF(screenWidth - wallSize, 0, screenWidth, screenHeight / 2 - doorSize));\n wallList.add(new RectF(screenWidth - wallSize, screenHeight / 2 + doorSize, screenWidth, screenHeight));\n wallList.add(new RectF(0, screenHeight - wallSize, screenWidth / 2 - doorSize, screenHeight));\n wallList.add(new RectF(screenWidth / 2 + doorSize, screenHeight - wallSize, screenWidth, screenHeight));\n }", "@Override\n\tprotected void generateTiles() {\n\t}", "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 }", "public SlidingTilesBoard(List<Tile> tiles) {\n Iterator<Tile> iter = tiles.iterator();\n\n for (int row = 0; row != SlidingTilesBoard.NUM_ROWS; row++) {\n for (int col = 0; col != SlidingTilesBoard.NUM_COLS; col++) {\n this.tiles[row][col] = iter.next();\n }\n }\n }", "private void addRow() {\n ArrayList<EscapeBlock> row = new ArrayList<>();\n grid.add(row);\n \n for (int j = 0; j < gridWidth; j++) {\n EscapeBlock block = new EscapeBlock(j, gridHeight);\n block.setLocation(margin + j * (Block.length+1) ,\n margin + topMargin + gridHeight * (Block.length+1)); \n \n this.add(block); // add to the JPanel \n row.add(block); // and to the row\n }\n \n gridHeight++;\n }", "private void addTileItemFromOther(int i) {\n ((SystemUIStat) Dependency.get(SystemUIStat.class)).handleControlCenterEvent(new QuickTilesAddedEvent(this.mOtherTiles.get(i).spec));\n this.mQSControlCustomizer.addInTileAdapter(this.mOtherTiles.get(i), true);\n this.mOtherTiles.remove(i);\n notifyItemRemoved(i);\n }", "int getTileSize();", "public Tile(GameLogic logic, PieceService pieceservice, int x, int y) {\n\n this.x = x;\n this.y = y;\n this.pieces = new ArrayList<>();\n\n setWidth(TakApp.TILE_SIZE);\n setHeight(TakApp.TILE_SIZE);\n \n relocate(x * TakApp.TILE_SIZE, y * TakApp.TILE_SIZE);\n Image tilebg = new Image(getClass().getResourceAsStream(\"/images/tile.jpg\"));\n ImagePattern imagePattern = new ImagePattern(tilebg);\n setFill(imagePattern);\n \n if (this.hasPieces() == false) {\n setOnMousePressed(e -> {\n String pieceColor = logic.checkTurn();\n Piece piece = pieceservice.makePiece(logic, pieceColor, x, y);\n if (piece != null) {\n pieceservice.setPiece(piece, x, y);\n this.pieces.add(piece);\n }\n });\n } else if (this.hasPieces() == true) {\n \n setOnMousePressed(e -> {\n this.oldX = this.getXcoordinate();\n this.oldY = this.getYcoordinate();\n });\n\n setOnMouseDragged(e -> {\n relocate(e.getSceneX(), e.getSceneY());\n });\n \n setOnMouseReleased(e -> {\n \n double mouseX = e.getSceneX();\n double mouseY = e.getSceneY();\n\n int newX = (int) Math.floor(mouseX / 100.0);\n int newY = (int) Math.floor(mouseY / 100.0);\n \n boolean validMove = logic.isValidMove(oldX, oldY, newX, newY);\n \n if (validMove) {\n pieceservice.removePiece(this.pieces.get(this.pieces.size() - 1), oldX, oldY);\n pieceservice.setPiece(this.pieces.get(this.pieces.size() - 1), newX, newY);\n } else {\n pieceservice.setPiece(this.pieces.get(this.pieces.size() - 1), oldX, oldY);\n }\n });\n } \n }", "protected void setTile( Tile[] tiles, int x, int y, Tile tile ) {\n tiles[ (y * getHeightInTiles()) + x ] = tile;\n }", "private List<Tile> makeTiles() {\n List<Tile> tiles = new ArrayList<>();\n Board board = (Board) boardManager.getBoard();\n final int numTiles = board.getNumRows() * board.getNumCols();\n for (int tileNum = 0; tileNum != numTiles; tileNum++) {\n tiles.add(new Tile(tileNum + 1, tileNum, 4));\n }\n\n return tiles;\n }", "public void insertTiles(FloorTile[] tiles) {\n int nextFloorTile = 0;\n\n for (int i = 0; i < nRows; i++) {\n for (int j = 0; j < nCols; j++) {\n if (board[i][j] == null) {\n board[i][j] = tiles[nextFloorTile];\n nextFloorTile++;\n }\n }\n }\n }", "private void addStackBlocks() {\n\n for (int x = numBlocks; x > 0; x--) {\n\n double blockHeight = totalBLockHeight / numBlocks;\n double blockWidthChange = (maxBlockWidth - minBlockWidth) / numBlocks;\n double blockWidth = minBlockWidth + ((x - 1) * blockWidthChange);\n\n TowerBlock newBlock = new TowerBlock(blockWidth, blockHeight, x);\n towerOne.push(newBlock);\n\n }\n addBlocks = false;\n\n }", "void buildBlock(Tile t);", "private void addColumn() {\n for (int j = 0; j < gridHeight; j++) {\n EscapeBlock block = new EscapeBlock(gridWidth,j);\n block.setLocation(margin + gridWidth * (Block.length+1) ,\n margin + topMargin + j * (Block.length+1)); \n this.add(block);\n grid.get(j).add(block);\n }\n gridWidth++;\n }", "private void addRow() {\n\t\t\n\t\tArrayList<Invader> lastRow = enemyArray.get(enemyArray.size() - 1);\n\t\tArrayList<Invader> newRow = new ArrayList<Invader>();\n\t\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tnewRow.add(new Invader(\n\t\t\t\t\tlastRow.get(i).getX(),\n\t\t\t\t\tlastRow.get(i).getY() + 40,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\t2));\n\t\t}\n\t\t\n\t\tenemyArray.add(newRow);\n\t}", "public void addInSort(Tile t) {\n\t\tthis.addJoker(t);\n\t\tthis.tiles.add(t);\n\t}", "protected abstract void setTile( int tile, int x, int y );", "public static void putGraphicsTile(int[] inputPixels, int tileRowStart, int tileCol, int[] outputPixels) {\n int j = 0;\n for (int row = 0; row < 8; row++) {\n for (int col = 0; col < 8; col++) {\n int pixelIndex = (tileRowStart * 8 * 512) + (row * 512) + (tileCol * 8) + col;\n outputPixels[pixelIndex] = inputPixels[j];\n j++;\n }\n }\n }", "public void updateTopBorder(){\n\n\n //Go up until reach maximum border height and then go down, so zig zag, maximum will increase when score increases.\n //Every 100 points insert random blocks\n\n for (int i = 0; i < topborder.size(); i++){\n topborder.get(i).update();\n\n //Remove top border if off map and replace by adding a new one\n if (topborder.get(i).getX()<-25){\n topborder.remove(i);\n\n //Retrieves the last element in the array list\n if (topborder.get(topborder.size()-1).getHeight()>=maxBorderHeight){\n top = false;\n }\n if (topborder.get(topborder.size()-1).getHeight()<=minBorderHeight){\n top = true;\n }\n\n //New border will have a larger height, else smaller height\n if (top){\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.newborder), topborder.get(topborder.size()-1).getX()+25, 0, topborder.get(topborder.size()-1).getHeight()+1));\n }\n else {\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.newborder), topborder.get(topborder.size()-1).getX()+25, 0, topborder.get(topborder.size()-1).getHeight()-1));\n }\n }\n }\n\n }", "private void shiftDownTiles(boolean isBorder, int shiftAmount){\n List<Tile> listOfTilesToUpdate = new ArrayList<Tile>();\n int floorRowIndex;\n if(isBorder){\n floorRowIndex=this.board.gridHeight-2;\n } else {\n floorRowIndex=this.board.gridHeight-1;\n }\n\n\n //update all existing tiles y coordinates with shifted y coordinates\n //only shift tile above the row that is being removed\n for(int rowIndex=0; rowIndex<this.rowToBeRemovedIndex; rowIndex++){\n for(int colIndex=0; colIndex<this.board.gridWidth; colIndex++){\n if(this.board.getTile(colIndex,rowIndex)!=null){ //tile exist at coordinates\n if(isBorder){\n if(rowIndex<=floorRowIndex){ //Stop at floor wall\n int leftWallIndex=0;\n int rightWallIndex=this.board.gridWidth-1;\n if(colIndex>leftWallIndex && colIndex<rightWallIndex){ //Ignore the the left and right walls\n Tile tile = this.board.getTile(colIndex,rowIndex);\n tile.rowIndex+=shiftAmount;\n tile.setCoordinates(tile.columnIndex,tile.rowIndex);\n listOfTilesToUpdate.add(tile);\n }\n }\n } else {\n Tile tile = this.board.getTile(colIndex,rowIndex);\n tile.rowIndex+=shiftAmount;\n tile.setCoordinates(tile.columnIndex,tile.rowIndex);\n listOfTilesToUpdate.add(tile);\n }\n }\n }\n }\n\n //Clear Board Grid. Set every element in 2D array to null.\n for(int rowIndex=0; rowIndex<this.board.gridHeight; rowIndex++){\n for(int colIndex=0; colIndex<this.board.gridWidth; colIndex++){\n Tile tile = this.board.getTile(colIndex, rowIndex);\n this.board.removeTile(tile);\n }\n }\n\n //add back tetris border\n if(this.includeTetrisBorder) {\n addBorder();\n }\n\n //Insert new tiles\n for(Tile newTile : listOfTilesToUpdate){\n this.board.placeTile(newTile);\n }\n }", "public void addColumn(boolean start)\r\n\t{\r\n\t\t//definicion del tamaņo\r\n\t\tint width = 100;\r\n\t\tint height = 50 + rand.nextInt(300);\r\n\r\n\t\tif (start)\r\n\t\t{\r\n\t\t\tcolumns.add(new Rectangle(WIDTH + width + columns.size() * 300, HEIGHT - height - 120, width, height));\r\n\t\t\tcolumns.add(new Rectangle(WIDTH + width + (columns.size() - 1) * 300, 0, width, HEIGHT - height - space));\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcolumns.add(new Rectangle(columns.get(columns.size() - 1).x + 600, HEIGHT - height - 120, width, height));\r\n\t\t\tcolumns.add(new Rectangle(columns.get(columns.size() - 1).x, 0, width, HEIGHT - height - space));\r\n\t\t}\r\n\t}", "public void enterMap(Map map, int layer, int i, int j) {\n //1. add the tile to the map\n map.addTile( layer, i, j, this);\n }", "public static void render(Graphics g, Tile tile, Point pxCenterPoint, float value) {\n Point topLeft = new Point(pxCenterPoint.x - (tile.getImage().getWidth() / 2), pxCenterPoint.y - (tile.getImage().getHeight() / 2));\n if (value >= 0) {\n\n\n if (tile.getType() == \"Mountain\") {\n\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 19 + 21, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 19 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n\n } else if (tile.getType() == \"Water\" || tile.getType() == \"Grass\" || tile.getType() == \"Running\") {\n //\n //System.out.println(topLeft.y);\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 10 + 19, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 10 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y + 10, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n } else {\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 10 + 19, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 10 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y + 10, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n }\n if (tile.hasAreaEffect()) {\n areaEffectRenderer.render(g, tile.getAreaEffect(), topLeft);\n }\n\n if (tile.hasItem()) {\n for (Item item : tile.getItems()) {\n itemRenderer.render(g, item, topLeft);\n }\n }\n }\n }", "private void addWater() {\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] == null) {\n tileMap[i][j] = new Space(new Water(i, j));\n }\n }\n }\n }", "public static ArrayList<Tile> doTiles(BufferedImage img, int tileSize) {\n \n allTiles = new ArrayList();\n int propX = tileSize;//img.getWidth() / nTiles;\n int propY = tileSize;//img.getHeight() / nTiles;\n int nTilesX = img.getWidth() / tileSize;\n int nTilesY = img.getHeight() / tileSize;\n \n WritableRaster wr = (WritableRaster) img.getData();\n //First 2 fors: maximum number of tiles watching the image width and height\n for (int i = 0; i < nTilesX; i++) {\n for (int j = 0; j < nTilesY; j++) {\n \t//Making sure we dont go out of bounds\n if (i * propX + propX <= img.getWidth()) {\n if (j * propY + propY <= img.getHeight()) {\n \t//Create the tile image\n WritableRaster tile = (WritableRaster)wr.createChild((i * propX), (j * propY), propX, propY, 0, 0, null);\n BufferedImage buffTile = new BufferedImage(img.getColorModel(), tile, \n img.getColorModel().isAlphaPremultiplied(), null);\n //Create our Tile object with the image and sizes \n Tile t = new Tile(buffTile, i*propX, j*propY);\n //Add the tile to the array of tiles of the image\n allTiles.add(t);\n }\n }\n }\n }\n return allTiles;\n }", "@Override\n public void add(Integer element) {\n if (this.contains(element) != -1) {\n return;\n }\n // when already in use\n int index = this.getIndex(element);\n if(this.data[index] != null && this.data[index] != this.thumbstone){\n int i = index + 1;\n boolean foundFreePlace = false;\n while(!foundFreePlace && i != index){\n if(this.data[i] == null && this.data[i] == this.thumbstone){\n foundFreePlace = true;\n }else{\n if(i == this.data.length - 1){\n // start at beginning.\n i = 0;\n }else{\n i++;\n }\n }\n }\n if(foundFreePlace){\n this.data[i] = element;\n }else{\n throw new IllegalStateException(\"Data Structre Full\");\n }\n }\n }", "public void putRandomOnTile(Item item) {\n/* 4677 */ float newPosX = (this.tilex << 2) + 0.5F + Server.rand.nextFloat() * 3.0F;\n/* 4678 */ float newPosY = (this.tiley << 2) + 0.5F + Server.rand.nextFloat() * 3.0F;\n/* 4679 */ item.setPosXY(newPosX, newPosY);\n/* */ }", "public void addPlayer(Player p){\r\n this.players[PlayerFactory.nb_instances-1]=p;\r\n this.tiles[p.getX()+(p.getY()*this.width)]=p;\r\n }", "void addBounds(int x, int y, int width, int height);", "private void addPieces() {\n gridPane.getChildren().clear();\n Map<Piece, Position> pieces = controller.getAllActivePiecesPositions();\n /* Add the tiles */\n for (int row = 0; row < 8; row++) {\n for (int col = 0; col < 8; col++) {\n Tile tile = new TileView(new Position(row, col));\n gridPane.add(tile.getRootNode(),\n 1 + tile.getPosition().getCol(),\n 1 + tile.getPosition().getRow());\n GridPane.setHgrow(tile.getRootNode(), Priority.ALWAYS);\n GridPane.setVgrow(tile.getRootNode(), Priority.ALWAYS);\n getTiles()[row][col] = tile;\n tile.getRootNode().setOnMouseClicked(\n tileListener(tile));\n tile.clear();\n tile.setSymbol(\"\");\n }\n }\n /* Add the pieces */\n for (Piece p : pieces.keySet()) {\n Position placeAt = pieces.get(p);\n getTileAt(placeAt).setSymbol(p.getType().getSymbol(p.getSide()));\n }\n /* Add the coordinates around the perimeter */\n for (int i = 1; i <= 8; i++) {\n Text coord1 = new Text((char) (64 + i) + \"\");\n coord1.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord1.setFill(Color.WHITE);\n GridPane.setHalignment(coord1, HPos.CENTER);\n gridPane.add(coord1, i, 0);\n\n Text coord2 = new Text((char) (64 + i) + \"\");\n coord2.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord2.setFill(Color.WHITE);\n GridPane.setHalignment(coord2, HPos.CENTER);\n gridPane.add(coord2, i, 9);\n\n Text coord3 = new Text(\" \" + (9 - i) + \" \");\n coord3.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord3.setFill(Color.WHITE);\n GridPane.setHalignment(coord3, HPos.CENTER);\n gridPane.add(coord3, 0, i);\n\n Text coord4 = new Text(\" \" + (9 - i) + \" \");\n coord4.setFont(Font.font(null, FontWeight.BOLD, 14));\n coord4.setFill(Color.WHITE);\n GridPane.setHalignment(coord4, HPos.CENTER);\n gridPane.add(coord4, 9, i);\n }\n }", "public Position addNewFood(int width, int height) {\n // already max food\n if (amount == MAX_FOOD) {\n return null;\n }\n\n int x, y, attempts;\n Position test;\n\n x = 0;\n y = 0;\n attempts = 0;\n\n // try positions until find an empty position or 100 attempts\n do {\n x = (x+3+attempts) % width; // get new x value\n y = (y+5)%height; // get new y value\n test = new Position(x, y); // new position\n attempts++; // new attempt\n\n } while (attempts < 100 &&\n (GameManager.getManager().getSnake().isSnakeAt(test) ||\n isFoodAt(test) >= 0)); // stop iteration if food position valid or reached max attempts\n\n if (attempts == 100) {\n // attempted 100 times and couldn't find any good empty position\n return null;\n }\n // add the empty position as food position\n foodPositions[amount++] = test;\n return test; // return the new food position\n }", "public void addToCache () {\n ArrayList <Location> gridCache = getGridCache();\n for (Location l : imageLocs) {\n gridCache.add (l);\n }\n }", "public Tile (int pos, int type) { \r\n\t\tthis.tilePos = pos;\r\n\t\tthis.tileType = type;\r\n\t}", "Tile getPosition();", "public void addSquaresToList(){\r\n int i = 0;\r\n while(i<8){\r\n sqList.add(new Square(0+(i*50),0,50,\"red\"));\r\n i++;\r\n } \r\n \r\n }", "private void addToHead() {\n Node currentNode = null;\n switch (head.dir) {\n case LEFT:\n currentNode = new Node(head.row - 1, head.col, head.dir);\n break;\n case RIGHT:\n currentNode = new Node(head.row + 1, head.col, head.dir);\n break;\n case UP:\n currentNode = new Node(head.row, head.col - 1, head.dir);\n break;\n case DOWN:\n currentNode = new Node(head.row, head.col + 1, head.dir);\n break;\n }\n currentNode.next = head;\n head.pre = currentNode;\n head = currentNode;\n size++;\n }", "private void addItems() {\n int random3 = 0;\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n random3 = (int)(Math.round(Math.random()*9));\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n if (adjacentCity(i, j) && tileMap[i][j].getCity() == null) { //Only have an item if possibly within city borders\n if (random3 == 0) {\n tileMap[i][j].setResource(new Fruit(i,j)); //Rep Fruit\n } else if (random3 == 1) {\n tileMap[i][j].setResource(new Animal(i,j)); //Rep Animal\n } else if (random3 == 2) {\n tileMap[i][j].setResource(new Forest(i,j)); //Rep Trees (forest)\n } else if (random3 == 3) {\n tileMap[i][j].setResource(new Crop(i,j)); //Rep Crop\n }\n }\n } else {\n if (adjacentCity(i, j)) {\n if (random3 < 2) {\n tileMap[i][j].setResource(new Fish(i, j)); //Rep fish\n } else if (random3 == 4) {\n if (Math.random() < 0.5) {\n tileMap[i][j].setResource(new Whale(i, j)); //Rep whale\n }\n }\n }\n }\n }\n }\n }", "public void addUnitsToMinimap() {\n\n for (Unit unit : model.getApp().getCurrentPlayer().getGame().getAllUnits()) {\n Player player = unit.getPlayer();\n Color color;\n if (player.getColor().equals(\"RED\")) {\n color = Color.RED;\n } else if (player.getColor().equals(\"BLUE\")) {\n color = Color.BLUE;\n } else if (player.getColor().equals(\"YELLOW\")) {\n color = Color.YELLOW;\n } else { //if(player.getColor().equals(\"GREEN\")){\n color = Color.GREEN;\n }\n\n MinimapUnit minimapUnit = new MinimapUnit(blockSize, blockSize);\n minimapUnit.setMyPlayer(player);\n minimapUnit.setColor(color);\n minimapUnit.setMyUnit(unit);\n minimapUnit.setPosXY((unit.getPosX() * blockSize) + 1, (unit.getPosY() * blockSize) + 1);\n minimapUnits.add(minimapUnit);\n drawPane.getChildren().add(minimapUnit);\n }\n System.out.println(\"allUnitsToMinimap\");\n }", "public void addToNeighbours(Tile N) {\n \r\n neighbours.add(N);\r\n }", "public TileObject(Point position, TileContainer superContainer, TETile tile) {\n super(1, 1, position, superContainer);\n superContainer.addElement(this);\n this.tile = tile;\n }", "public void add(T val){\n myCustomStack[numElements] = val; // myCustomStack[0] = new value, using numElements as index of next open space\n numElements++; //increase numElements by one each time a value is added to the stack, numElements will always be one more than number of elements in stack\n resize(); //call resize to check if array needs resizing\n }", "private static void writeTile(XMLStreamWriter xMLStreamWriter, Room room, int row, int col) throws XMLStreamException {\n\t\tTile tile = room.getTile(row, col);\n\n\t\t/*\n\t\t * Creating a tile tag\n\t\t */\n\t\txMLStreamWriter.writeStartElement(\"Tile\");\n\n\t\t/*\n\t\t * This is fields that the tile has.\n\t\t */\n\t\txMLStreamWriter.writeStartElement(\"DisplayType\");\n\t\txMLStreamWriter.writeCharacters(tile.getDisplayType());\n\t\txMLStreamWriter.writeEndElement();\n\n\t\txMLStreamWriter.writeStartElement(\"Height\");\n\t\txMLStreamWriter.writeCharacters(tile.getHeight()+\"\");\n\t\txMLStreamWriter.writeEndElement();\n\n\t\tif(tile.getEntity() != null) {\n\t\t\twriteEntity(xMLStreamWriter, tile.getEntity());\n\t\t}\n\n\t\txMLStreamWriter.writeEndElement();\n\t}", "@Override\n public void drawTile(GraphicsContext gc, double dx, double dy) {\n gc.drawImage(tile, dx, dy, 64, 64);\n }", "protected abstract void paintBoard() throws TilePixelOutOfRangeException;", "public int getTileHeight() {\n return 8;\n }", "public void addRandomTile()\n {\n int count = 0;\n //runs through row first, column second\n for ( int i=0; i < this.grid.length; i++) {\n for ( int j=0; j < this.grid[i].length; j++) {\n // checks to see if the value at the point in the grid is zero\n if ( this.grid[i][j] == 0 ) {\n //increases count to check how many of your tiles equal zero\n count++;\n }\n }\n } \n if ( count == 0 ) {\n // exits method if count is zero because there is nowhere to add a tile\n return;\n }\n int location = random.nextInt(count);\n int percent = 100;\n int value = random.nextInt(percent);\n int mostLikely = 2;\n int lessLikely = 4;\n count = -1;\n // runs through row first, column second\n for ( int i=0; i< this.grid.length; i++ ) {\n for ( int j=0; j< this.grid[i].length; j++ ) {\n if ( this.grid[i][j] == 0 ) {\n count++;\n // checks to see if your value for count is the same as the random\n // integer location\n if ( count == location ) {\n // 90% of the time, the random tile placed will be a two\n if ( value < TWO_PROBABILITY && value >=0 ) {\n this.grid[i][j] = mostLikely;\n }\n else {\n this.grid[i][j] = lessLikely;\n }\n }\n } \n }\n } \n }", "public Tile(int x, int y, String type) {\n\tthis.x = x;\n\tthis.y = y;\n\tthis.type = type;\n\tboundingShape = null;\n }", "public void addpixeltoList() {\n for (int i = 0; i < 100; i++) {\r\n pixellist.add(new humanpixel());\r\n }\r\n }", "public void add(Image img, Point higher, Point lower, int size) {\n int column = jumpCursor();\n set(img, cl, column, higher, lower, size);\n }" ]
[ "0.7357597", "0.68050575", "0.6395789", "0.63219243", "0.6285895", "0.600966", "0.59435076", "0.5942685", "0.5922557", "0.57820106", "0.5725761", "0.5695141", "0.5694172", "0.56930614", "0.56244266", "0.56045383", "0.5604149", "0.55949754", "0.5580886", "0.5537626", "0.54905176", "0.54681367", "0.54640543", "0.5443854", "0.54148775", "0.5408813", "0.5393328", "0.5385211", "0.5382809", "0.53713274", "0.53621656", "0.53378904", "0.5317338", "0.5313643", "0.52955335", "0.5293071", "0.5286072", "0.52728057", "0.52594316", "0.5257552", "0.52335274", "0.523275", "0.5206135", "0.5196542", "0.51904297", "0.51812005", "0.51548356", "0.51411825", "0.51233655", "0.5104087", "0.5097483", "0.5096101", "0.50741696", "0.5073335", "0.5036454", "0.50317776", "0.5022674", "0.5022383", "0.5014855", "0.5004059", "0.5001773", "0.4993288", "0.4990169", "0.4982712", "0.4977165", "0.49713597", "0.49653864", "0.4959426", "0.49556255", "0.49551025", "0.49469775", "0.4944048", "0.49423137", "0.49389273", "0.49358642", "0.49344403", "0.49250615", "0.49245828", "0.49138743", "0.49124104", "0.49121696", "0.49092665", "0.49070692", "0.49064982", "0.48966458", "0.48902568", "0.48829806", "0.4881817", "0.48763806", "0.48669237", "0.48641765", "0.48632035", "0.4860144", "0.4848778", "0.48458087", "0.48403642", "0.48376375", "0.48352307", "0.48297322", "0.48135653" ]
0.5572355
19
adds a tile at a given position. left,top 1based
@Override public Map put(Tile tile, int left, int top) { // TODO if useful int index = getPosition(left, top); while (this.tiles.size() <= index) { this.tiles.add(null); } this.tiles.set(index, tile); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addTileOnBeginning(Tile tile);", "public void addTile(Tile tile) {\n ownedTiles.add(tile);\n }", "public void addTileAtTheEnd(Tile tile);", "public void addTile(Tile tile)\r\n\t{\r\n\t\ttiles.add(tile);\r\n\t}", "public void placeTile(Tile t){\n\t\t//System.out.println(t.toString() + \" was placed\");\n\t\toccupied = true;\n\t\tcurrentTile = t;\n\t}", "public final void addTile(final int rowPos, //!< Row position of tile\n\t\t\t final int colPos, //!< Column position of tile\n\t\t\t Tile tile //!< Tile object to be added\n\t\t\t ) {\n\t\t// Add additional rows to the tile container if necessary\n\t\tfor (int resizeIter = mLayout.size(); resizeIter <= rowPos; resizeIter++) {\n\t\t\tmLayout.add(new Vector<Tile>());\n\t\t}\n\n\t\t// Add additional columns to the row if necessary\n\t\tfor (int resizeIter = mLayout.get(rowPos).size(); resizeIter <= colPos; resizeIter++) {\n\t\t\tmLayout.get(rowPos).add(tileFactory.create(TileFactory.Type.GRASS));\n\t\t}\n\n\t\tmLayout.get(rowPos).setElementAt(tile, colPos);\n\t}", "Tile getPosition();", "protected void registerTile(int x, int y) {}", "void setPosition(Tile t);", "public void addToTile(GameEntity e) {\n\t\t\n\t\tGridTile tile = getTile(e.pos());\n\t\ttile.add(e);\n\t}", "public boolean addBoardTile(Tile t, int xpos, int ypos) {\n \tTile leftTile = null;\n \tTile rightTile = null;\n \tif (ypos != 1) {\n \t\t// Aka if the tile isn't at the leftmost side\n \t\tleftTile = boardTiles.get(new Point(xpos - 1, ypos));\n \t} \t\n \tif (ypos != BoardController.BOARDSIZE) {\n \t\t// Aka if the tile isn't at the rightmost side\n \t\trightTile = boardTiles.get(new Point(xpos + 1, ypos));\n \t}\n \t\n \tif (leftTile != null && rightTile != null) {\n \t\t// Tile placed on the board between two existing melds\n \t\t// NOTE: If the tile is moved a space to the left or right, and that space is \n \t\t// not occupied, and there is another existing meld beside that space,\n \t\t// then the two melds are the meld it was moved beside and itself\n \t\tMeld leftMeld = findMeld(leftTile);\n \t\tMeld rightMeld = findMeld(rightTile);\n \t\t\n \t\t// First check if either meld is the single tile being moved\n \t\tif (leftMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(rightMeld.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (rightMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(leftMeld.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (leftMeld.addRightside(t)) {\n \t\t\tif(combineMeld(leftMeld, rightMeld)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t \t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\t\tcontroller.updateView();\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse {\n \t\t\t\tleftMeld.removeFromMeld(t);\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\treturn false;\n \t}\n \t\n \telse if (leftTile == null && rightTile == null) {\n \t\t// Tile is placed on the board as the start of a new meld!\n \t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tremoveHandTile(t);\n\t\t\t}\n\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n\t\t\tcontroller.updateView();\n\t\t\treturn true;\n \t}\n \t\n \telse if(leftTile != null) {\n \t\t// Tile is added to the end of an existing meld\n \t\t// OR tile is moved to the right and the left tile is itself!\n \t\t\n \t\tif (leftTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(leftTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(leftTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(leftTile).setMeld(t, 0)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\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}\n \t\t\n \t\tMeld meldToAddTo = findMeld(leftTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"2\");\n \t\t\treturn false;\n \t\t}\n \t}\n \t\n \telse if(rightTile != null) {\n \t\tif (rightTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(rightTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(rightTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(rightTile).setMeld(t, 1)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\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}\n \t\t\n \t\tMeld meldToAddTo = findMeld(rightTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\tSystem.out.print(\"We get here >:\");\n \t\t\tSystem.out.print(t.getValue());\n \t\t\tSystem.out.print(t.getColour().getName());\n \t\t\t\n \t\t\tSystem.out.println(rightTile.getValue());\n \t\t\tSystem.out.println(rightTile.getColour().getName());\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"3\");\n \t\t\treturn false;\n \t\t}\n \t}\n \telse {\n \t\t// Should not reach here, throw an error if it does\n \t\tSystem.out.println(\"4\");\n \t\treturn false;\n \t}\n }", "public boolean addTile(Tile tile) {\n\n\t\tboolean isSuccess = false;\n\t\tint tileRow = tile.getLocation().getRow();\n\t\tint tileCol = tile.getLocation().getColumn();\n\n\t\tArrayList<Tile> boardRow= null;\n\n\t\tif(tiles.containsKey(tileRow)) {\n\t\t\tboardRow=tiles.get(tileRow);\n\t\t\tif(boardRow == null) {\n\t\t\t\tboardRow = new ArrayList<Tile>(BOARD_SIZE);\n\t\t\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\t\t\tboardRow.add(0,null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tboardRow= new ArrayList<Tile>(BOARD_SIZE);\n\t\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\t\tboardRow.add(0,null);\n\t\t\t}\n\t\t}\n\t\tboardRow.set(tileCol - 'A', tile);\n\t\tthis.tiles.put(tileRow, boardRow);\n\t\tisSuccess = true;\n\n\t\treturn isSuccess;\n\n\t}", "void addTextureCoordinate(Vector t);", "private void add(Tile t) {\n tileBag.add(t);\n shuffleBag();\n }", "public void putRandomOnTile(Item item) {\n/* 4677 */ float newPosX = (this.tilex << 2) + 0.5F + Server.rand.nextFloat() * 3.0F;\n/* 4678 */ float newPosY = (this.tiley << 2) + 0.5F + Server.rand.nextFloat() * 3.0F;\n/* 4679 */ item.setPosXY(newPosX, newPosY);\n/* */ }", "protected abstract void setTile( int tile, int x, int y );", "void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean addTile(int tileRow, int tileCol, Palette.FillColor color, int width, int height) {\n\t\t\tif (tileRow + height > ROWS || tileCol + width > COLS)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\t// check if another tile exists in region\n\t\t\tfor (int r = tileRow; r < tileRow + height; r++) {\n\t\t\t\tfor (int c = tileCol; c < tileCol + width; c++) {\n\t\t\t\t\tif (m_tileMap[r][c] != '0')\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tboolean added = m_tiles.get(tileRow).add(new Board.Tile(tileCol, color, width, height));\n\t\t\tif (added) {\n\t\t\t\tfor (int r = tileRow; r < tileRow + height; r++) {\n\t\t\t\t\tfor (int c = tileCol; c < tileCol + width; c++)\n\t\t\t\t\t\tm_tileMap[r][c] = '1';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn added;\n\t\t}", "public void addSubbedTile(Tile t) { subbedTiles.add(t); }", "public Tile (int pos, int type) { \r\n\t\tthis.tilePos = pos;\r\n\t\tthis.tileType = type;\r\n\t}", "private void addUpBlock(Position p, TETile te,\n int len, int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int j = y; j < y + len; j += 1) {\n for (int i = x - leftWid; i < x + rightWid + 1; i += 1) {\n world[i][j] = te;\n }\n }\n }", "public void addEditedTile(GroundTile tile) {\n this.editedTiles.add(tile);\n }", "public void addPawn(Pawn pawn, Position position) {\n\t\tboardGrid[position.getRow()][position.getColumn()] = pawn;\n\t}", "public Map add(Tile tile) {\n this.tiles.add(tile);\n return this;\n }", "public void enterMap(Map map, int layer, int i, int j) {\n //1. add the tile to the map\n map.addTile( layer, i, j, this);\n }", "public TiledWraparound(Spatial tile)\r\n {\r\n super(tile.getTopRight());\r\n final int PAD = 1;\r\n int tiles = PAD*2+1;\r\n this.tile = tile;\r\n float BLx = -tr.getX(), BLy = -tr.getY();\r\n offsets = new Location[tiles*tiles];\r\n for(int i=0; i<tiles; i++)\r\n {\r\n for(int j=0; j<tiles; j++)\r\n {\r\n offsets[i*tiles+j] = new Location.Location2D(BLx+tr.getX()*i, BLy+tr.getY()*j);\r\n }\r\n }\r\n }", "public static void addTile(Color[][] tileData, int x, int y, Color[] palData)\n {\n int tileNumber = ChrFile.getTileNum(tileData, palData);\n\n allTiles[x/8][y/8] = tileNumber;\n numOfTiles++;\n }", "public void add(int a, int b, int x, int y)\n\t{\n\t\tfor (int r = a; r <= x; r++)\n\t\t\tfor (int c = b; c <= y; c++)\n\t\t\t\ttilesBool[r][c] = true;\n\t}", "void move(Tile t);", "public Tile getTileAt(Position p);", "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 drawTile() {\n\n }", "public void addDetailTile(WeatherDetail weatherDetail, int addPos, int delPos)\n {\n tileList.add(addPos, weatherDetail);\n notifyItemInserted(addPos);\n\n if(delPos != Constant.DONT_REMOVE)\n {\n tileList.remove(delPos);\n notifyItemRemoved(delPos);\n }\n }", "private static void addBlockToPixa(Pixa pixa, int x, int y, int width, int height, int depth) {\n final Pix pix = new Pix(width, height, depth);\n final Box box = new Box(x, y, width, height);\n\n pixa.add(pix, box, Constants.L_COPY);\n\n pix.recycle();\n box.recycle();\n }", "private void drawTile(int i, int j, Tile tile) {\n\t\tRectangle rect = new Rectangle(175*i+50,j*175+25,175, 175);\r\n\t\ttilesDrawn.add(rect);\r\n\t}", "@Override\n\tpublic AbstractTileOLD createTile(Frame frame, Point pos, Point sourcePos) {\n\t\t// TileOLD t = new TileOLD(frame, pos.x, pos.y, new ZoneSheet(frame,\n\t\t// ZoneSheet.TILE_SHEET), sourcePos.x, sourcePos.y);\n\t\t// t.setData((TileDataOLD) data[sourcePos.x][sourcePos.y]);\n\t\treturn null;\n\t}", "public void push(View tile) {\n }", "public static void render(Graphics g, Tile tile, Point pxCenterPoint, float value) {\n Point topLeft = new Point(pxCenterPoint.x - (tile.getImage().getWidth() / 2), pxCenterPoint.y - (tile.getImage().getHeight() / 2));\n if (value >= 0) {\n\n\n if (tile.getType() == \"Mountain\") {\n\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 19 + 21, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 19 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n\n } else if (tile.getType() == \"Water\" || tile.getType() == \"Grass\" || tile.getType() == \"Running\") {\n //\n //System.out.println(topLeft.y);\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 10 + 19, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 10 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y + 10, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n } else {\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 10 + 19, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 10 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y + 10, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n }\n if (tile.hasAreaEffect()) {\n areaEffectRenderer.render(g, tile.getAreaEffect(), topLeft);\n }\n\n if (tile.hasItem()) {\n for (Item item : tile.getItems()) {\n itemRenderer.render(g, item, topLeft);\n }\n }\n }\n }", "public void place(Position position) { this.position = position; }", "public TileObject(Point position, TileContainer superContainer, TETile tile) {\n super(1, 1, position, superContainer);\n superContainer.addElement(this);\n this.tile = tile;\n }", "public void addElement(int x, int y, BoxContainer element){\n\t\t\tArrayList<Integer> coordinates = new ArrayList<Integer>();\n\t\t\tcoordinates.add(x);\n\t\t\tcoordinates.add(y);\n\t\t\tmap.put(coordinates, element);\n\t\t}", "public int addTerrain(Terrain t, int x, int y) {\n if (t != null) {\n t.setMapRelation(new MapTerrain_Relation(this, t));\n this.map_grid_[y][x].addTerrain(t);\n t.getMapRelation().setMapTile(this.map_grid_[y][x]);\n return 0;\n } else {\n return -1;\n }\n }", "public void add(T element, int pos);", "public void renderTile(int xp, int yp, Tile tile) {\n\t\txp -= xOffset; //subtracting the Offset accounts for player movement. This also somehow reverses the inversion of the controls. Understand why we are subtracting as opposed to adding.\n\t\typ -= yOffset;\n\t\tfor (int y = 0; y < tile.sprite.SIZE; y++) {\n\t\t\tint ya = y + yp; // ya refers to absolute position. y is the rendering thing moving from left to right. yp is the offset. The reason for needing an absolute position is that this method only renders a single tile\n\t\t\tfor (int x = 0; x < tile.sprite.SIZE; x++) {\n\t\t\t\tint xa = x + xp;\n\t\t\t\tif (xa < -tile.sprite.SIZE || xa >= width || ya < 0 || ya >= height) break; //width and height refer to the screen width and height. this if statement insures that only tiles on the screen are rendered! There are 4 bounds representing top, bottom, left and right. the far left bound isn't zero because...see andrew ton.\n\t\t\t\t//\"xa < -tile.sprite.SIZE\" insures that we get an extra tile on the far left so rendering is smooth.\n\t\t\t\tif (xa < 0) xa = 0; //we set xa equal to zero if \"xa < 0\" in case we are on the border. It ONLY solves the arrayindexoutofbounds error. doesnt have affect rendering\n\t\t\t\tpixels[xa + ya * width] = tile.sprite.pixels[x + y * tile.sprite.SIZE];\n\t\t\t}\n\t\t}\n\t}", "ItemStack addPage(ItemStack itemstack, ItemStack page, float x, float y);", "public abstract Tile getTileAt(int x, int y);", "protected void setTile( Tile[] tiles, int x, int y, Tile tile ) {\n tiles[ (y * getHeightInTiles()) + x ] = tile;\n }", "public MarsTile(Point position) {\n\t\tthis.weight = 0;\n\t\tthis.position = position;\n\t}", "private void insertTilesAtPositions(FloorTile[] tiles, Position[] positions) {\n for (int i = 0; i < tiles.length; i++) {\n int rowNum = positions[i].getRowNum();\n int colNum = positions[i].getColNum();\n\n if (board[rowNum][colNum] == null) {\n board[rowNum][colNum] = tiles[i];\n }\n }\n }", "public void addRandomTile()\n {\n int count = 0;\n //runs through row first, column second\n for ( int i=0; i < this.grid.length; i++) {\n for ( int j=0; j < this.grid[i].length; j++) {\n // checks to see if the value at the point in the grid is zero\n if ( this.grid[i][j] == 0 ) {\n //increases count to check how many of your tiles equal zero\n count++;\n }\n }\n } \n if ( count == 0 ) {\n // exits method if count is zero because there is nowhere to add a tile\n return;\n }\n int location = random.nextInt(count);\n int percent = 100;\n int value = random.nextInt(percent);\n int mostLikely = 2;\n int lessLikely = 4;\n count = -1;\n // runs through row first, column second\n for ( int i=0; i< this.grid.length; i++ ) {\n for ( int j=0; j< this.grid[i].length; j++ ) {\n if ( this.grid[i][j] == 0 ) {\n count++;\n // checks to see if your value for count is the same as the random\n // integer location\n if ( count == location ) {\n // 90% of the time, the random tile placed will be a two\n if ( value < TWO_PROBABILITY && value >=0 ) {\n this.grid[i][j] = mostLikely;\n }\n else {\n this.grid[i][j] = lessLikely;\n }\n }\n } \n }\n } \n }", "public Position add(Position p) {\n return new Position(r + p.getR(), c + p.getC());\n }", "public void place(float x,float y){\n\t\tz=0.2f+Main.world.land.getHigh(Main.world.timeline.getTerra(),(int)x, (int)y);\r\n\t\tMain.world.contacts(this);\r\n\t\tz+=getTopObjects();\r\n\t\tplace(x,y,z);\r\n\t}", "private void boxCreator(int[] pos, int width, int height) {\n for (int x = pos[0]; x < pos[0] + width; x++) {\n tiles[x][pos[1]] = Tileset.WALL;\n }\n for (int y = pos[1]; y < pos[1] + height; y++) {\n tiles[pos[0]][y] = Tileset.WALL;\n }\n for (int x = pos[0]; x < pos[0] + width; x++) {\n tiles[x][pos[1] + height] = Tileset.WALL;\n }\n for (int y = pos[1]; y < pos[1] + height + 1; y++) {\n tiles[pos[0] + width][y] = Tileset.WALL;\n }\n for (int y = pos[1] + 1; y < pos[1] + height; y++) {\n for (int x = pos[0] + 1; x < pos[0] + width; x++) {\n tiles[x][y] = Tileset.FLOWER;\n }\n }\n }", "public void add(NetworkTarget nt, Point pos, int angle, int range) {\t\r\n\t\t\tmap.put(nt, new Missile(gc, nt, pos, angle,range));\r\n\t}", "void placePiece(Piece piece, Position position) {\n positionToPieceMap.put(position, piece);\n }", "public void MoveTileSelf(Integer position){\n /**\n * if opponent activated confusion - move to a random tile\n */\n if(confused){\n //random tile for confusion\n Integer tile;\n do{\n Integer tile1 = returnRandom(getNthDigit(position,1)-1,getNthDigit(position,1)+2);\n Integer tile2 = returnRandom(getNthDigit(position,2)-1,getNthDigit(position,2)+2); // between 0 and 2\n tile = Integer.parseInt(tile1.toString() + tile2.toString());\n }while (tile==myTile || tile==opponentTile || getNthDigit(tile,1)<1 || getNthDigit(tile,1)>7 || getNthDigit(tile,2)<1 || getNthDigit(tile,2)>7);\n position = tile;\n showTimedAlertDialog(\"You are confused!\", \"moving at a random direction\", 5);\n confused = false;\n }\n\n /**\n * send message to opponent\n */\n MultiplayerManager.getInstance().SendMessage(position.toString());\n\n if(!is_debug){\n HandleLejos(myTile, position);\n }\n\n ImageView player1 = findImageButton(\"square_\"+position.toString());\n ImageView player1_old = findImageButton(\"square_\"+myTile.toString());\n player1.setImageDrawable(getResources().getDrawable(R.drawable.tank_blue));\n player1_old.setImageDrawable(getResources().getDrawable(android.R.color.transparent));\n myTile = position;\n myTurn = false;\n turnNumber = turnNumber + 1;\n }", "public Tile(Color color, Point p, Board b)\r\n\t{\r\n\t\ttiles.add(this);\r\n\t\tthis.location = p;\r\n\t\tthis.color = color;\r\n\t\tthis.board = b;\r\n\t}", "public List<Tile> offsetTile(List<Tile> tiles, Direction direction){\n \tint newColIndex = this.currentActiveShape.centerPieceColumnIndex + direction.colIndex;\n int newRowIndex = this.currentActiveShape.centerPieceRowIndex + direction.rowIndex;\n List<Tile> newTileList = new ArrayList<Tile>();\n \tfor(Tile tile : tiles){\n \t\tTile newTile = new Tile(tile.tileSize, tile.setColor, tile.tileColor, tile.setTileBorder,\n tile.setImage, tile.tileImage,\n newColIndex, newRowIndex, tile.position , tile.directions);\n newTileList.add(newTile);\n \t}\n \treturn newTileList;\n }", "@Override\n public void drawTile(GraphicsContext gc, double dx, double dy) {\n gc.drawImage(tile, dx, dy, 64, 64);\n }", "public void add(Image img, Point higher, Point lower, int size) {\n int column = jumpCursor();\n set(img, cl, column, higher, lower, size);\n }", "public void add(HayStack stack){\n if(canMoveTo(stack.getPosition())){\n mapElement.put(stack.getPosition(), stack);\n }\n else{\n throw new IllegalArgumentException(\"UnboundedMap.add - This field is occupied\");\n }\n }", "public void addPositionCell(int user, String position){\n int posXY[] = {Character.getNumericValue(position.charAt(0)), Character.getNumericValue(position.charAt(2))};\n if(user==1){\n gameBoard[posXY[0]][posXY[1]] = \"O\";\n }\n else{\n gameBoard[posXY[0]][posXY[1]] = \"X\";\n }\n }", "private void addDownBlock(Position p, TETile te,\n int len, int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int j = y; j > y - len; j -= 1) {\n for (int i = x - rightWid; i < x + leftWid + 1; i += 1) {\n world[i][j] = te;\n }\n }\n }", "public int addPosition(int faceValue){\n position += faceValue;\n\n if(position > 12){\n position -= 12;\n }\n return position;\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 addPlayer(Player p){\r\n this.players[PlayerFactory.nb_instances-1]=p;\r\n this.tiles[p.getX()+(p.getY()*this.width)]=p;\r\n }", "public void addImage(Image img, int x, int y) {\n\n\t}", "@Override\r\n public void onTileAdded() {\r\n super.onTileAdded();\r\n //Log.d(TAG, \"on tile added running\");\r\n initTileState();\r\n }", "public void placeItemInRoomAtCoords(WorldItem item, int row, int column) {\n Point targetPoint = getPointAtLocation(row, column);\n targetPoint.setContainedItem(item);\n if (item instanceof FlammableItem) {\n flammableItemCount++;\n }\n }", "public void addImg(){\n // Add other bg images\n Image board = new Image(\"sample/img/board.jpg\");\n ImageView boardImg = new ImageView();\n boardImg.setImage(board);\n boardImg.setFitHeight((tileSize* dimension)+ (tileSize*2) );\n boardImg.setFitWidth( (tileSize* dimension)+ (tileSize*2) );\n\n Tile infoTile = new Tile(getTileSize(), getTileSize()*7);\n infoTile.setTranslateX(getTileSize()*3);\n infoTile.setTranslateY(getTileSize()*6);\n\n tileGroup.getChildren().addAll(boardImg, infoTile);\n\n }", "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 addSprite(Scene pScene, int x, int y) {\n\t\t\r\n\t}", "public boolean insertExtraTile(int c, int r){\r\n Tile temp;\r\n //Inserted from the top\r\n if (c % 2 == 1 && r == 0){\r\n temp = tileBoard[c][6];\r\n for (int i = 6; i >= 1; i--){\r\n tileBoard[c][i] = tileBoard[c][i - 1];\r\n }\r\n tileBoard[c][0] = extraTile;\r\n extraTile = temp;\r\n return true;\r\n }\r\n //Inserted from the right\r\n if (c == 6 && r % 2 == 1){\r\n temp = tileBoard[0][r];\r\n for (int i = 0; i < 6; i++){\r\n tileBoard[i][r] = tileBoard[i + 1][r];\r\n }\r\n tileBoard[6][r] = extraTile;\r\n extraTile = temp;\r\n return true;\r\n }\r\n //Inserted from the bottom\r\n if (c % 2 == 1 && r == 6){\r\n temp = tileBoard[c][0];\r\n for (int i = 0; i < 6; i++){\r\n tileBoard[c][i] = tileBoard[c][i + 1];\r\n }\r\n tileBoard[c][6] = extraTile;\r\n extraTile = temp;\r\n return true;\r\n }\r\n //Inserted from the left\r\n if (c == 0 && r % 2 == 1){\r\n temp = tileBoard[6][r];\r\n for (int i = 6; i >= 1; i--){\r\n tileBoard[i][r] = tileBoard[i - 1][r];\r\n }\r\n tileBoard[0][r] = extraTile;\r\n extraTile = temp;\r\n return true;\r\n }\r\n return false;\r\n }", "private void addAnotherElement() {\n\t\t SnakeSquare ss = sSquare.get(sSquare.size() - 1);\n\t\t double velX = ss.getDX();\n\t\t double velY = ss.getDY();\n\t\t \n\t\t double x = ss.getX();\n\t\t double y = ss.getY();\n\t\t double len = ss.getLength();\n\t\t Color c = ss.getColor();\n//\t\t double snakeSize = 10.0f;\n\t\t \n\t\t if(velX == 0 && velY == 0){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}\n\t\t if(velX == 0 && velY == 1){sSquare.add(new SnakeSquare(x, y - snakeSize, c, len));}//move down;\n\t\t if(velX == 0 && velY == -1){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}//move up;\n\t\t if(velX == 1 && velY == 0){sSquare.add(new SnakeSquare(x+ snakeSize, y, c, len));}//move right;\n\t\t if(velX == -1 && velY == 0){sSquare.add(new SnakeSquare(x - snakeSize, y, c, len));}// move left;\n\t\t\n\t}", "@Test\n public void testGetTile()\n {\n try\n {\n Square s = new Square();\n\n assertNull(s.getTile()); // Should return null as no tile placed yet.\n\n s.setTile(Tile.E); // Add a tile\n\n assertEquals(Tile.E, s.getTile()); // Check the tile is now on the square\n }\n catch(Exception ex)\n {\n fail(\"No exception should be thrown when getting a Tile from the square.\");\n }\n }", "void setTile(Tile tile) {\n _tile = tile;\n }", "public Tile(int row, int column){\n this.row = row;\n this.column = column;\n this.piece = null;\n }", "public Piece(int a_row, int a_col)\n {\n this.tileLocation = Pair.create(a_row,a_col);\n }", "public void setTileX(int x) {\n\t\ttileX = x;\n\t}", "void insertItem(Position position, IItem item);", "public void addObstacle(Coord obstacleCoord);", "public Tile getNextTile(Unit u);", "public final void addUnit(final int rowPos, final int colPos, final Unit unit) {\n\t\tmLayout.get(rowPos).get(colPos).setOccupant(unit);\n\t}", "public static void putGraphicsTile(int[] inputPixels, int tileRowStart, int tileCol, int[] outputPixels) {\n int j = 0;\n for (int row = 0; row < 8; row++) {\n for (int col = 0; col < 8; col++) {\n int pixelIndex = (tileRowStart * 8 * 512) + (row * 512) + (tileCol * 8) + col;\n outputPixels[pixelIndex] = inputPixels[j];\n j++;\n }\n }\n }", "public void add(int x, int y, int blockType, int turnState)\n {\n int j = 0;\n for (int a = 0; a < 4; a++)\n {\n for (int b = 0; b < 4; b++)\n {\n if (map[x + b + 1][y + a] == 0)\n {\n map[x + b + 1][y + a] = shapes[blockType][turnState][j];\n }\n j++;\n }\n }\n }", "public void add(int x, int y, int blockType, int turnState)\n {\n int j = 0;\n for (int a = 0; a < 4; a++)\n {\n for (int b = 0; b < 4; b++)\n {\n if (map[x + b + 1][y + a] == 0)\n {\n map[x + b + 1][y + a] = shapes[blockType][turnState][j];\n }\n j++;\n }\n }\n }", "public void add(int x, int y, int blockType, int turnState)\n {\n int j = 0;\n for (int a = 0; a < 4; a++)\n {\n for (int b = 0; b < 4; b++)\n {\n if (map[x + b + 1][y + a] == 0)\n {\n map[x + b + 1][y + a] = shapes[blockType][turnState][j];\n }\n j++;\n }\n }\n }", "public boolean addPieceToBoardTile(Piece piece) {\n\n\t\tif(piece == null) return false; \n\t\tLocation pieceLoc = piece.getLocation();\n\n\t\tTile tile=null;\n\n\t\ttry {\n\t\t\ttile = getTileInLocation(pieceLoc);\n\t\t\ttile.setPiece(piece);\n\t\t\tthis.replaceTileInSameTileLocation(tile);\n\t\t\treturn true;\n\t\t} catch (LocationException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\n\t}", "public void place(Piece p, int x, int y) {\n\t\tif (x >= 8 || y >= 8 || p == null) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tif (pieceAt(x, y) != null) {\n\t\t\t\tremove(x, y);\n\t\t\t}\n\t\t\tb[x][y] = p;\n\t\t\tif (p.isFire()) {\n\t\t\t\tnumFire += 1;\n\t\t\t} else {\n\t\t\t\tnumWater += 1;\n\t\t\t}\n\t\t}\n\t}", "public void buildTile(int column, int row) {\r\n tiles[column][row].buildUp();\r\n }", "public void insert(int colNum, int rowNum, FloorTile tile, int rotation)\n throws IllegalArgumentException {\n FloorTile pushedOffTile; // java.Tile being pushed off\n\n if (rotation == -1) {\n rotation = 3;\n } else if (rotation == -2) {\n rotation = 2;\n } else if (rotation == -3) {\n rotation = 1;\n }\n\n if (colNum == -1 && !isRowFixed(rowNum)) { // Left to right horizontal shift.\n pushedOffTile = board[rowNum][nCols - 1];\n shiftLeftToRight(colNum, rowNum, tile, rotation);\n } else if (colNum == nCols && !isRowFixed(rowNum)) { // Right to left horizontal shift.\n pushedOffTile = board[rowNum][0];\n shiftRightToLeft(colNum, rowNum, tile, rotation);\n } else if (rowNum == -1 && !isColumnFixed(colNum)) { // Top to bottom vertical shift.\n pushedOffTile = board[nRows - 1][colNum];\n shiftTopToBottom(colNum, rowNum, tile, rotation);\n } else if (rowNum == nRows && !isColumnFixed(colNum)) { // Bottom to top vertical shift.\n pushedOffTile = board[0][colNum];\n shiftBottomToTop(colNum, rowNum, tile, rotation);\n } else {\n throw new IllegalArgumentException(INVALID_ROW_COLUMN_COMBO_MSG);\n }\n assert pushedOffTile != null;\n GameService.getInstance().getSilkBag().put(pushedOffTile.getType());\n }", "public void place(GamePiece teil, QPosition pos) { // old German method name: platziere\n for (int x = teil.getMinX(); x <= teil.getMaxX(); x++) {\n for (int y = teil.getMinY(); y <= teil.getMaxY(); y++) {\n if (teil.filled(x, y)) {\n int ax = pos.getX() + x - teil.getMinX();\n int ay = pos.getY() + y - teil.getMinY();\n set(ax, ay, teil.getBlockType(x, y));\n }\n }\n }\n view.draw();\n }", "public void MoveTileOpponent(Integer position){\n Integer position_inverted = revertTile(position);\n String position_inverted_str = String.valueOf(position_inverted);\n\n ImageView player2 = findImageButton(\"square_\"+position_inverted_str);\n ImageView player2_old = findImageButton(\"square_\"+opponentTile.toString());\n player2.setImageDrawable(getResources().getDrawable(R.drawable.tank_red));\n player2_old.setImageDrawable(getResources().getDrawable(android.R.color.transparent));\n\n opponentTile = position_inverted;\n myTurn = true;\n canPlaceBomb = true;\n turnNumber = turnNumber + 1;\n\n if(ShotsCaller){\n placePowerup(null);\n }\n }", "public Tile(int x, int y, String type) {\n\tthis.x = x;\n\tthis.y = y;\n\tthis.type = type;\n\tboundingShape = null;\n }", "@JsonIgnore\n\tpublic void setPositionByTile(Tile tile) {\n\t\tposition = new Position(tile.getXpos(),tile.getYpos(),tile.getTilex(),tile.getTiley());\n\t}", "public MapTile(final Sprite sprite) {\n if (sprite == null) {\n this.sprite = Sprite.UNKNOWN;\n }\n\n this.sprite = sprite;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void add(int pos, T item){\n\n\t\tif(pos > data.length){\n\t\t\tcurrentsize = currentsize*2;\n\t\t}\n\n\t\n\t\tfor(int i = currentsize; i > pos; i--){\n\t\t\tdata[i] = data[i-1];\n\t\t}\n\t\tdata[pos]= item;\n\t\tcurrentsize++;\n\t}", "public GridPosition add(GridPosition delta) {\n return new GridPosition(posX + delta.getX(), posY + delta.getY());\n }", "public void testPlaceIllegalTile1() {\n Placement placement = new Placement(Color.GREEN, 0, 0, Color.BLUE, 1, 1);\n try {\n \t\tboard.place(placement);\n fail(\"It's not legal to put tile without any adjacent occupied cells\");\n } catch (StateException e) {\n // passed\n }\n catch (ContractAssertionError e) {\n \tSystem.out.println(\"ContractAssertionError\");\n }\n \t\n }", "public Tile(int xPos, int yPos, int zPos, int colour) {\n this.xPos = xPos;\n this.yPos = yPos;\n this.zPos = zPos;\n occupied = 0;\n setWidth(50);\n setHeight(50);\n if ((colour % 2) == 0) {\n setFill(Color.YELLOW);\n } else {\n setFill(Color.GREEN);\n }\n }" ]
[ "0.71675783", "0.6922567", "0.6886467", "0.67625326", "0.6614529", "0.65680397", "0.6517071", "0.64876467", "0.64693767", "0.64520085", "0.62920237", "0.6251795", "0.6245192", "0.6199463", "0.618957", "0.61307377", "0.61201274", "0.60973406", "0.607581", "0.60271376", "0.6024911", "0.59141624", "0.5903083", "0.5868762", "0.58510256", "0.5800912", "0.5774578", "0.57741594", "0.57391053", "0.5716487", "0.5709526", "0.56934583", "0.56854117", "0.568365", "0.5648485", "0.5627069", "0.5616518", "0.56088126", "0.5575896", "0.55710334", "0.55581546", "0.55537474", "0.55413795", "0.55256486", "0.55114996", "0.55095494", "0.5503274", "0.5502597", "0.5495228", "0.5484001", "0.5464354", "0.54446286", "0.54425347", "0.5437274", "0.5423777", "0.5417952", "0.5404716", "0.5395866", "0.53944427", "0.5385572", "0.53719336", "0.5363902", "0.5360944", "0.5358043", "0.5351426", "0.53451693", "0.5336839", "0.53355455", "0.5331474", "0.5321123", "0.5316489", "0.531497", "0.5299762", "0.52859646", "0.528289", "0.5279741", "0.52721596", "0.5271483", "0.52683866", "0.5263565", "0.5260434", "0.5256504", "0.52541834", "0.52502984", "0.52442974", "0.52442974", "0.52442974", "0.5236727", "0.523592", "0.5235603", "0.52331513", "0.5226416", "0.52257943", "0.5223502", "0.5212188", "0.5210493", "0.52055717", "0.52004135", "0.51965964", "0.518929" ]
0.6566261
6
returns a tile at position left, top. first row/column are 1 (one)
@Override public Tile get(int left, int top) { if (left < 1) return null; if (top < 1) return null; int index = getPosition(left, top); if (index >= tiles.size()) { return null; } return this.tiles.get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Tile getPosition();", "public Tile getTileAt(Position p);", "public abstract Tile getTileAt(int x, int y);", "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 Tile getTileAt(Position p) {\n return getTileAt(p.getRow(), p.getCol());\n }", "public OthelloTile getTile(Point p) {\n if(p == null) {\n return null;\n }\n int x = (p.x-35)/grid[0][0].getPreferredSize().width;\n int y = (p.y-35)/grid[0][0].getPreferredSize().height;\n if(x<0 || x>=grid.length || y<0 || y>=grid[0].length) {\n return null;\n }\n return grid[y][x];\n }", "public Tile getTile(int x, int y) {\r\n assert (tiles != null);\r\n \r\n if (x < 0 || y < 0 || x >= width || y >= height) {\r\n return Tile.floorTile;\r\n }\r\n \r\n Tile t = Tile.tiles[tiles[x][y]];\r\n if (t == null) {\r\n return Tile.floorTile;\r\n }\r\n return t;\r\n }", "@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n return tiles[x * width + y];\n }", "public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }", "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}", "public int getTileX()\n\t{\n\t\treturn this.tileX;\n\t}", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= width || y < 0 || y >= height) {\n\t\t\treturn Tile.voidTile;\n\t\t}\n\t\treturn tiles[x + y * width];\n\t}", "public FloorTile getTileAt(int row, int col) {\n return board[row][col];\n }", "public MapTile getTile(int x_pos, int y_pos) {\n if (x_pos < 0 || y_pos < 0 || x_pos >= map_grid_[0].length || y_pos >= map_grid_.length) {\n return null;\n }\n return map_grid_[y_pos][x_pos];\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}", "private Tile getTileAt(int x, int y)\n {\n int tileAt = y * TILES_PER_ROW + x;\n \n if (tileAt >= tileset.getTileCount())\n {\n return null;\n }\n else \n {\n return tileset.getTile(tileAt);\n }\n }", "public Tile getTileAt(Point position) {\n\t\treturn getTileAt(position.x, position.y);\n\t}", "public FloorTile getTileFromTheBoard(int row, int col) {\r\n return board[row][col];\r\n }", "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 Tile getTile(int x, int y) {\n\t\tif(!isValidCoordinates(x,y)){\n\t\t\t//remove later -F\n\t\t\tSystem.out.println(\"Invalid\");\n\t\t\treturn tileGrid[0][0]; //will add handling in check later -F\n\t\t}\n\t\telse{\n\t\t\treturn tileGrid[x][y];\n\t\t}\n\t}", "int getTileGridXOffset(Long id) throws RemoteException;", "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 int getTileX() {\n\t\treturn tileX;\n\t}", "private Tile getTileAt(int row, int col) {\n return getTiles()[row][col];\n }", "int getMinTileX(Long id) throws RemoteException;", "private Point getTileCoordinates(int x, int y)\n {\n int tileWidth = this.tileset.getTileWidth() + 1;\n int tileHeight = this.tileset.getTileHeight() + 1;\n int tileCount = this.tileset.getTileCount();\n int rows = tileCount / TILES_PER_ROW + \n (tileCount % TILES_PER_ROW > 0 ? 1 : 0);\n \n int tileX = Math.max(0, Math.min(x / tileWidth, TILES_PER_ROW - 1));\n int tileY = Math.max(0, Math.min(y / tileHeight, rows - 1));\n \n return new Point(tileX, tileY);\n }", "protected Tile getTile( Tile[] tiles, int x, int y ) {\n return tiles[ (y * getHeightInTiles()) + x ];\n }", "public Point getTileCoordinates(int x, int y) {\n int tileWidth = this.board.getTileSet().getTileWidth() + 1;\n int tileHeight = this.board.getTileSet().getTileHeight() + 1;\n\n int tileX = Math.max(0, Math.min(x / tileWidth, this.board.getWidth() - 1));\n int tileY = Math.max(0, Math.min(y / tileHeight, this.board.getHeight() - 1));\n\n return new Point(tileX, tileY);\n }", "public void getTile_B8();", "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 BoardTile getTile(int column, int row) {\r\n return tiles[column][row];\r\n }", "public Tile getTile(int x, int y, int z) {\r\n\t\treturn map.getTile(x, y, z);\r\n\t}", "public Tile access(int x, int y) {\r\n\t\treturn layout.get(x)[y];\r\n\t}", "public MapEntity getTileAt(int x, int y) {\n\t\ttry {\n\t\t\treturn tiles.get(y)[x];\n\t\t}\n\t\tcatch(IndexOutOfBoundsException | NullPointerException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public Tile getTile(Coordinaat crd){\n\n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n if(crd.compareTo(tiles[X][Y].getCoordinaat()) == 0){\n return tiles[X][Y];\n }\n }\n }\n \n return null;\n }", "Coordinate[] getTilePosition(int x, int y) {\n\t\treturn guiTiles.get(y).get(x).getBoundary();\n\t}", "@Override\n public int getTileGridXOffset() {\n return this.tileGridXOffset;\n }", "@Override\n public int getMinTileX() {\n return convertXToTileX(getMinX());\n }", "SerializableState getTile(Long id, int x, int y) throws RemoteException;", "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 Tile getTile(int pos) {\n\t\tObject t = tileList.get(pos);\n\t\tif(t instanceof Property){\n\t\t\treturn (Property) t;\n\t\t} else if(t instanceof TaxTile){\n\t\t\treturn (TaxTile) t;\n\t\t} else { // Should not happen\n\t\t\treturn (Tile) t;\n\t\t}\n\t}", "@Test\n public void testGetTile() {\n assertEquals(7, board3by3.getTile(0, 0).getId());\n }", "public BufferedImage getSingleTile(final int x, final int y) {\n return this.sheet.getSubimage(x * TILE_SIZE_IN_GAME, y * TILE_SIZE_IN_GAME, TILE_SIZE_IN_GAME,\n TILE_SIZE_IN_GAME);\n }", "TileItem getCurrentTile();", "public int tileAt(int i, int j) {\n if (i < 0 || j < 0 || i >= _N || j >= _N) {\n throw new IllegalArgumentException(\"Exceeds tile dimension\");\n }\n return _tiles[i][j];\n }", "public static int getGridPosition(int x, int y, int width){\n\t\treturn (y*width)+x;\n\t}", "public TileEntity getTileEntity(final int x, final int y, final int z) {\n\t\tif(y < 0 || y > 255)\n\t\t\treturn null;\n\t\t\n\t\tfinal int arrayX = (x >> 4) - this.chunkX;\n\t\tfinal int arrayZ = (z >> 4) - this.chunkZ;\n\t\tassert (arrayX >= 0 && arrayX < this.dimX && arrayZ >= 0 && arrayZ < this.dimZ);\n\t\t// if (l >= 0 && l < this.dimX && i1 >= 0 && i1 < this.dimZ)\n\t\treturn this.chunkArray[arrayX + arrayZ * this.dimX].func_150806_e(x & 15, y, z & 15);\n\t}", "@Override\n public SquareTile getTile(Point location) {\n return getTile(location.getX(), location.getY());\n }", "int getMinTileY(Long id) throws RemoteException;", "public double getPositionX() {\n\t\treturn this.tilePositionX;\n\t}", "public Pixel topLeft() {\n if (this.up == null) {\n return null;\n }\n else {\n return this.up.left;\n }\n }", "Piece getPieceAt(int col, int row);", "private Coordinate tileCoordinateForTileRightAbove(GuiTile tile) {\n\t\treturn new Coordinate(tile.getScreenBottomX() / GuiTile.getScale() + GuiTile.getHalfWidth() + 0.05 * GuiTile.getHalfWidth(),\n\t\t\t\ttile.getScreenBottomY() / GuiTile.getScale() - tile.getMid1Height() - GuiTile.getBaseHeight() - 0.05 * GuiTile.getHalfWidth());\n\t}", "public BufferedImage getTile(int tilex, int tiley) {\n\t\t// System.out.println(tilex+\" || \"+tiley);\n\t\tif (this.bufImage == null) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\t// System.out.println(tilex*(this.tileSize+1)+1+\" | \"+tiley*(this.tileSize+1)+1);\n\t\t\treturn this.bufImage.getSubimage(tilex*(this.tileSize+1)+1, tiley*(this.tileSize+1)+1, this.tileSize, this.tileSize);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tdebug.DebugLog(\"Couldnt load tile subimage.If BLOCKSIZE==\" + this.tileSize + \" is correct, better check the sourcefile.\");\n\t\t\treturn new BufferedImage(0, 0, 0);\n\t\t}\n\t}", "public Cell getCellAt (int x, int y) {\n return grid[x-1][y-1];\n }", "public Tile(int row, int column){\n this.row = row;\n this.column = column;\n this.piece = null;\n }", "public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }", "public DungeonObject getDungeonTile(int x, int y) {\n\t\treturn dungeonRoom[x][y];\r\n\t}", "@Override\n public ITile getClosestTile(int x, int y) {\n return getClosestTile(new Point(x, y), getTileSize());\n }", "public int tileAt(int i, int j) {\n if (i < 0 || i >= n || j < 0 || j >= n)\n throw new java.lang.IndexOutOfBoundsException();\n return tiles[i][j];\n }", "public TileFloor( int x, int y, int rows, int columns)\r\n {\r\n random = new Random(12345);\r\n ROWS = rows;\r\n COLUMNS= columns;\r\n this.x = x;\r\n this.y = y;\r\n }", "public MapEntity getTileAt(IntVector2D v) {\n\t\tif(v == null)\n\t\t\treturn null;\n\t\treturn getTileAt(v.getX(), v.getY());\n\t}", "public Tile getTile() { return tile; }", "private Cell get_top_left_diagnoal_cell(int row, int col) {\n return get_cell(--row, --col);\n }", "public Tile getNextTile(Unit u);", "public Vector2f getCoordinates() {\r\n return new Vector2f(tileColumn, tileRow);\r\n }", "public Location getLocation() {\n return ((Location) tile);\n }", "public Tile getTile()\r\n\t{\r\n\t\tif(this.hasTiles())\r\n\t\t\treturn _tiles.remove(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "@Override\n public Tile getFirst() {\n return tiles.iterator().next();\n }", "public Image getVisibleTile(int x, int y) throws SlickException {\r\n Image visibleTileImage = null;\r\n for (int l = this.getLayerCount() - 1; l > -1; l--) {\r\n if (visibleTileImage == null) {\r\n visibleTileImage = this.getTileImage(x, y, l);\r\n continue;\r\n }\r\n }\r\n if (visibleTileImage == null) {\r\n throw new SlickException(\"Tile doesn't have a tileset!\");\r\n }\r\n return visibleTileImage;\r\n }", "Square getCurrentPosition();", "public TileFloor(int x, int y)\r\n {\r\n random = new Random(12345);\r\n ROWS = DEFAULT_ROWS;\r\n COLUMNS= DEFAULT_COLUMNS;\r\n this.x = x;\r\n this.y = y;\r\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 String getTile(int row, int column)\n {\n return tiles.get(row).get(column).getLetter(); \n }", "private int hitWhichSquare(float testX, float testY) {\r\n int row = 0;\r\n int col = 0;\r\n\r\n // width of each square in the board\r\n float tileWidth = scaleFactor * width / 4;\r\n float tileHeight = scaleFactor * height / 4;\r\n\r\n // where is the top and left of the board right now\r\n float leftX = dx + (1-scaleFactor) * width / 2;\r\n float topY = dy + (1-scaleFactor) * height / 2;\r\n\r\n\r\n for (int i = 0; i < 4; i += 1) {\r\n // test if we are in column i (between the i line and i+1 line)\r\n // leftmost vertical line = line 0\r\n // example: if we are between line 2 and line 3, we are in row 2\r\n if (testX < (i+1) * tileWidth + leftX && i * tileWidth + leftX < testX) {\r\n col = i;\r\n }\r\n\r\n // test if we are in row i (between the i line and i+1 line)\r\n // topmost horizontal line = line 0\r\n // example: if we are between line 0 and line 1, we are in row 0\r\n if (testY < (i+1) * tileHeight + topY && i * tileHeight + topY < testY) {\r\n row = i;\r\n }\r\n }\r\n return row * 4 + col;\r\n }", "@Override\r\n\tpublic Integer getCell(Integer x, Integer y) {\n\t\treturn game[x][y];\r\n\t}", "public Coord minCell()\n {\n\t int minX = getGrid().keySet().stream().mapToInt(Coord::getX).min().orElse(0);\n\n\t int minY = getGrid().keySet().stream().mapToInt(Coord::getY).min().orElse(0);\n\n\t return new Coord(minX, minY);\n }", "public int calculateTileXInGrid(int column, int z)\n {\n int cellWidth = TILE_IMAGE_WIDTH;\n float leftEdge = miniGame.getBoundaryLeft();\n return (int)(leftEdge + (cellWidth * column) - (Z_TILE_OFFSET * z));\n }", "public float[] GetStartPosition(int playerId)\r\n/* 515: */ {\r\n/* 516:621 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 517:623 */ for (int y = 0; y < getHeightInTiles(); y++) {\r\n/* 518:625 */ if (tilePlayerPlacable(x, y, playerId)) {\r\n/* 519:627 */ return new float[] { x, y };\r\n/* 520: */ }\r\n/* 521: */ }\r\n/* 522: */ }\r\n/* 523:631 */ return new float[] { 0.0F, 0.0F };\r\n/* 524: */ }", "private Point2D getBoardPosition() {\n double size = getCellSize();\n double x = canvas.getWidth() / 2 - board.getWidth() * size / 2;\n double y = canvas.getHeight() / 2 - board.getHeight() * size / 2;\n\n return new Point2D(x, y);\n }", "public Tile getTile(){\n\t\treturn currentTile;\n\t}", "public Tile getTile() {\n return _tile;\n }", "public Tile (int pos, int type) { \r\n\t\tthis.tilePos = pos;\r\n\t\tthis.tileType = type;\r\n\t}", "public Coordinate getUpperLeftScreenTile(int screenCellsX, int screenCellsY, Coordinate center) {\n\t\tint left = (int) Math.round(center.x - (screenCellsX / 2.0));\n\t\tint top = (int) Math.round(center.y - (screenCellsY / 2.0));\n\n\t\tleft = Math.min(Math.max(left, 0), Math.max(width - screenCellsX, 0));\n\t\ttop = Math.min(Math.max(top, 0), Math.max(height - screenCellsY, 0));\n\n\t\treturn new Coordinate(left, top);\n\t}", "public Rect getTileRect(){\n return this.tileRect;\n }", "int getTileGridYOffset(Long id) throws RemoteException;", "public int[] getPositionInGrid( int tile )\n\t{\n\t\tint[] position = new int[2];\n\t\t\n\t\tfor ( int y = 0; y < height; y++ )\n\t\t{\n\t\t\tfor ( int x = 0; x < width; x++ )\n\t\t\t{\n\t\t\t\tif ( grid[x][y] == tile ) \n\t\t\t\t{\n\t\t\t\t\tposition[0] = x;\n\t\t\t\t\tposition[1] = y;\n\t\t\t\t\t\n\t\t\t\t\t// Should break but meh\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn position;\n\t}", "byte[] getCompressedTile(Long id, int x, int y) throws RemoteException;", "private Cell get_top_cell(int row, int col) {\n return get_cell(--row, col);\n }", "private VolaTile getCaveTile() {\n/* */ try {\n/* 2147 */ Zone z = Zones.getZone(this.tilex, this.tiley, false);\n/* 2148 */ return z.getOrCreateTile(this.tilex, this.tiley);\n/* */ }\n/* 2150 */ catch (NoSuchZoneException noSuchZoneException) {\n/* */ \n/* */ \n/* 2153 */ logger.log(Level.WARNING, \"No cave tile for \" + this.tilex + \", \" + this.tiley);\n/* 2154 */ return this;\n/* */ } \n/* */ }", "public Tile getTile() {\n\t\treturn tile;\n\t}", "public int getTileLevel()\n {\n return tileLevel;\n }", "private int getPosition(int row, int col) {\n\t\treturn (side * (row - 1)) + (col - 1);\n\t}", "private Cell get_left_cell(int row, int col) {\n return get_cell(row, --col);\n }", "List<Tile> getAdjacentTiles();", "Coordinates getCoordinates(int rowIndex);", "public Position getPositionFromPixelCoords(int y, int x){\n if (disp.rotated){\n return new Position(y / 64 + 1, (x - 640) / -64);\n } else {\n return new Position((y - 576) / -64, x / 64);\n }\n }", "Cell getCellAt(Coord coord);", "public Tile getTile() {\n return tile;\n }", "public Tile getTile() {\n return tile;\n }" ]
[ "0.78970164", "0.76461434", "0.7542092", "0.7109627", "0.7041159", "0.7015856", "0.70147353", "0.69497424", "0.692127", "0.6908542", "0.688579", "0.68348056", "0.6833569", "0.6785947", "0.67611355", "0.6755486", "0.6703377", "0.6686074", "0.6636", "0.6623226", "0.6594866", "0.6582906", "0.6578312", "0.6565397", "0.6547962", "0.653881", "0.6494976", "0.6476779", "0.645909", "0.63583446", "0.63273954", "0.6316685", "0.6316373", "0.63161266", "0.6299048", "0.628665", "0.6282439", "0.6270463", "0.626526", "0.62179685", "0.6213808", "0.6201252", "0.6176209", "0.61739695", "0.61692125", "0.6152559", "0.61508644", "0.6135612", "0.6129216", "0.6128921", "0.61173713", "0.6111328", "0.6107602", "0.61008215", "0.60932654", "0.60678047", "0.6064879", "0.60499763", "0.60433763", "0.603273", "0.60305136", "0.6017688", "0.6005188", "0.6002622", "0.600247", "0.59938157", "0.5992238", "0.59914327", "0.5979981", "0.59564435", "0.5937175", "0.59311324", "0.5923447", "0.5919227", "0.59013397", "0.5892468", "0.5892224", "0.5876235", "0.5872921", "0.5865371", "0.58628124", "0.5856827", "0.5840024", "0.5831142", "0.5827866", "0.58220077", "0.5815218", "0.58035", "0.5792308", "0.5787379", "0.57656175", "0.5761676", "0.57608134", "0.5753553", "0.57524055", "0.57420963", "0.57346046", "0.57274014", "0.57147217", "0.57147217" ]
0.7371903
3
Returns the first tile found. This determines the type of the map.
@Override public Tile getFirst() { return tiles.iterator().next(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getTileType();", "public int tileType(){\n\t\treturn this.type;\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 Tile getTileAt(Position p);", "public Tile getTile()\r\n\t{\r\n\t\tif(this.hasTiles())\r\n\t\t\treturn _tiles.remove(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "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 Tile getTile(int x, int y) {\r\n assert (tiles != null);\r\n \r\n if (x < 0 || y < 0 || x >= width || y >= height) {\r\n return Tile.floorTile;\r\n }\r\n \r\n Tile t = Tile.tiles[tiles[x][y]];\r\n if (t == null) {\r\n return Tile.floorTile;\r\n }\r\n return t;\r\n }", "public Tile getTile(int pos) {\n\t\tObject t = tileList.get(pos);\n\t\tif(t instanceof Property){\n\t\t\treturn (Property) t;\n\t\t} else if(t instanceof TaxTile){\n\t\t\treturn (TaxTile) t;\n\t\t} else { // Should not happen\n\t\t\treturn (Tile) t;\n\t\t}\n\t}", "public abstract Tile getTileAt(int x, int y);", "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}", "private Tile getTileAt(Position p) {\n return getTileAt(p.getRow(), p.getCol());\n }", "public int getTileType() {\r\n\t\treturn 3;\r\n\t}", "protected Optional<Tile> getTile(Coordinate c) {\n\t\tfor (Tile t : model.getPuzzle()) {\n\t\t\tif (t.contains(c)) {\n\t\t\t\treturn Optional.of(t);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn Optional.empty(); \n\t}", "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}", "public Tile getTileAt(Point position) {\n\t\treturn getTileAt(position.x, position.y);\n\t}", "private static TETile getRandomTile() {\n Random r = new Random();\n int tileNum = r.nextInt(5);\n switch (tileNum) {\n case 0: return Tileset.FLOWER;\n case 1: return Tileset.MOUNTAIN;\n case 2: return Tileset.TREE;\n case 3: return Tileset.GRASS;\n case 4: return Tileset.SAND;\n default: return Tileset.SAND;\n }\n }", "public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }", "public final Optional<Tile> getTile(final GridPoint2D tilePoint) {\n\t if ((tilePoint.getRow() >= 0) && \n\t (tilePoint.getRow() < mLayout.size()) &&\n\t (tilePoint.getColumn() >= 0) && \n\t (tilePoint.getColumn() < mLayout.get(tilePoint.getRow()).size())) {\n\t return Optional.<Tile>of(mLayout.get(tilePoint.getRow()).get(tilePoint.getColumn()));\n\t } \n\t // The indicated point was outside of the battlefield, so return a null\n\t else {\n\t return Optional.<Tile>absent();\n\t }\n\t}", "public Tile getTile(Coordinaat crd){\n\n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n if(crd.compareTo(tiles[X][Y].getCoordinaat()) == 0){\n return tiles[X][Y];\n }\n }\n }\n \n return null;\n }", "public MapTile getTile(int x_pos, int y_pos) {\n if (x_pos < 0 || y_pos < 0 || x_pos >= map_grid_[0].length || y_pos >= map_grid_.length) {\n return null;\n }\n return map_grid_[y_pos][x_pos];\n }", "public OthelloTile getTile(Point p) {\n if(p == null) {\n return null;\n }\n int x = (p.x-35)/grid[0][0].getPreferredSize().width;\n int y = (p.y-35)/grid[0][0].getPreferredSize().height;\n if(x<0 || x>=grid.length || y<0 || y>=grid[0].length) {\n return null;\n }\n return grid[y][x];\n }", "TileItem getCurrentTile();", "public final Tile getTile(Player p, int ID) {\n\n\t\tTile tile = getTile(p, p.getX(), p.getY());\n\t\tif (tile != null && tile.getID() == ID)\n\t\t\treturn tile;\n\n\t\tSystem.err.println(\"Returning Null\");\n\t\treturn null;\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}", "public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= width || y < 0 || y >= height) {\n\t\t\treturn Tile.voidTile;\n\t\t}\n\t\treturn tiles[x + y * width];\n\t}", "private Tile getTileByValue(int value) {\n\t\tfor (int i = 0; i < gameSize; i++)\n\t\t\tfor (int j = 0; j < gameSize; j++)\n\t\t\t\tif (gameTiles.getTile(i, j).getValue() == value)\n\t\t\t\t\treturn gameTiles.getTile(i, j);\n\n\t\treturn null;\n\t}", "private Tile getTileAt(int x, int y)\n {\n int tileAt = y * TILES_PER_ROW + x;\n \n if (tileAt >= tileset.getTileCount())\n {\n return null;\n }\n else \n {\n return tileset.getTile(tileAt);\n }\n }", "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 GameTile getRandomFoodTile() {\n Random random = ThreadLocalRandom.current();\n GameTile found = GameTile.getByCoords(random.nextInt(TILE_COLS), random.nextInt(TILE_ROWS));\n if (found.getColor() == Color.BLACK) {\n return found;\n }\n\n return getRandomFoodTile();\n }", "public void getTile_B8();", "public Tile getTile(int x, int y, int z) {\r\n\t\treturn map.getTile(x, y, z);\r\n\t}", "@Override\n public SquareTile getTile(Point location) {\n return getTile(location.getX(), location.getY());\n }", "private static TETile randomTile() {\n int tileNum = RANDOM.nextInt(5);\n switch (tileNum) {\n case 0: return Tileset.TREE;\n case 1: return Tileset.FLOWER;\n case 2: return Tileset.GRASS;\n case 3: return Tileset.SAND;\n case 4: return Tileset.MOUNTAIN;\n default: return Tileset.NOTHING;\n }\n }", "public static TileType getTypeById(byte id) {\r\n\t\tfor (TileType type : values()) {\r\n\t\t\tif (type.id == id) return type;\r\n\t\t}\r\n\t\treturn null;\r\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 Tile getTile() {\n\t\treturn tile;\n\t}", "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 }", "@Override\n public Tile get(int left, int top) {\n if (left < 1) return null;\n if (top < 1) return null;\n int index = getPosition(left, top);\n if (index >= tiles.size()) {\n return null;\n }\n\n return this.tiles.get(index);\n }", "public Tile getTile() { return tile; }", "public Tile getRandomFreeTile() {\n\n\t\tRandom random = new Random();\n\t\tArrayList<Tile> emptyTiles = getEmptyTiles();\n\t\tTile randomTile = emptyTiles.get( random.nextInt(emptyTiles.size()));\n\t\treturn randomTile;\n\t}", "public Tile getTileInLocation(Location location) throws LocationException {\n\n\t\tif (location == null) return null;\n\t\tArrayList<Tile> tilesInRow = getTilesinRow(location.getRow());\n\t\tif(tilesInRow != null) {\n\t\t\treturn tilesInRow.get(location.getColumn() - 'A');\n\t\t}else {\n\t\t\tthrow new LocationException(\"Error: Row \" + location.getRow() + \" has no tiles\");\n\t\t}\n\n\t}", "public TileEnum getSelectedTile() {\n return selectedTile;\n }", "@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n return tiles[x * width + y];\n }", "public Tile getTile() {\n return _tile;\n }", "public BufferedImage getSingleTile(final int x, final int y) {\n return this.sheet.getSubimage(x * TILE_SIZE_IN_GAME, y * TILE_SIZE_IN_GAME, TILE_SIZE_IN_GAME,\n TILE_SIZE_IN_GAME);\n }", "private Tile getTile(int tpx, int tpy, int zoom, boolean eagerLoad) {\n int tileX = tpx;//tilePoint.getX();\r\n int numTilesWide = (int)getMapSize(zoom).getWidth();\r\n if (tileX < 0) {\r\n tileX = numTilesWide - (Math.abs(tileX) % numTilesWide);\r\n }\r\n \r\n tileX = tileX % numTilesWide;\r\n int tileY = tpy;\r\n //TilePoint tilePoint = new TilePoint(tileX, tpy);\r\n String url = getInfo().getTileUrl(tileX, tileY, zoom);//tilePoint);\r\n //System.out.println(\"loading: \" + url);\r\n \r\n \r\n Tile.Priority pri = Tile.Priority.High;\r\n if (!eagerLoad) {\r\n pri = Tile.Priority.Low;\r\n }\r\n Tile tile = null;\r\n //System.out.println(\"testing for validity: \" + tilePoint + \" zoom = \" + zoom);\r\n if (!tileMap.containsKey(url)) {\r\n if (!GeoUtil.isValidTile(tileX, tileY, zoom, getInfo())) {\r\n tile = new Tile(tileX, tileY, zoom);\r\n } else {\r\n tile = new Tile(tileX, tileY, zoom, url, pri, this);\r\n startLoading(tile);\r\n }\r\n tileMap.put(url,tile);\r\n } else {\r\n tile = tileMap.get(url);\r\n // if its in the map but is low and isn't loaded yet\r\n // but we are in high mode\r\n if (tile.getPriority() == Tile.Priority.Low && eagerLoad && !tile.isLoaded()) {\r\n //System.out.println(\"in high mode and want a low\");\r\n //tile.promote();\r\n promote(tile);\r\n }\r\n }\r\n \r\n /*\r\n if (eagerLoad && doEagerLoading) {\r\n for (int i = 0; i<1; i++) {\r\n for (int j = 0; j<1; j++) {\r\n // preload the 4 tiles under the current one\r\n if(zoom > 0) {\r\n eagerlyLoad(tilePoint.getX()*2, tilePoint.getY()*2, zoom-1);\r\n eagerlyLoad(tilePoint.getX()*2+1, tilePoint.getY()*2, zoom-1);\r\n eagerlyLoad(tilePoint.getX()*2, tilePoint.getY()*2+1, zoom-1);\r\n eagerlyLoad(tilePoint.getX()*2+1, tilePoint.getY()*2+1, zoom-1);\r\n }\r\n }\r\n }\r\n }*/\r\n \r\n \r\n return tile;\r\n }", "public Tile getTile(int x, int y) {\n\t\tif(!isValidCoordinates(x,y)){\n\t\t\t//remove later -F\n\t\t\tSystem.out.println(\"Invalid\");\n\t\t\treturn tileGrid[0][0]; //will add handling in check later -F\n\t\t}\n\t\telse{\n\t\t\treturn tileGrid[x][y];\n\t\t}\n\t}", "public Tile getNextTile(Unit u);", "public MapEntity getTileAt(int x, int y) {\n\t\ttry {\n\t\t\treturn tiles.get(y)[x];\n\t\t}\n\t\tcatch(IndexOutOfBoundsException | NullPointerException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public final Item getOnePerTileItem(int floorLevel) {\n/* 4872 */ if (this.vitems == null)\n/* 4873 */ return null; \n/* 4874 */ return this.vitems.getOnePerTileItem(floorLevel);\n/* */ }", "public abstract TiledMapTileSet getTileSet();", "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 }", "@Override\n public ITile getClosestTile(int x, int y) {\n return getClosestTile(new Point(x, y), getTileSize());\n }", "public Location getLocation() {\n return ((Location) tile);\n }", "public FloorTile getTileFromTheBoard(int row, int col) {\r\n return board[row][col];\r\n }", "private Tile getTileAt(int row, int col) {\n return getTiles()[row][col];\n }", "public FloorTile getTileAt(int row, int col) {\n return board[row][col];\n }", "public static Tile[][] setUpMap() {\n\n Tile[][] tiles = new Tile[5][9];\n String[][] defaultMapLayout = GameMap.getMapLayout();\n\n for (int i = 0; i < 5; i++) {\n\n for (int j = 0; j < 9; j++) {\n\n String tileType = defaultMapLayout[i][j];\n\n if (tileType.equals(\"P\")) {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"R\")) {\n Tile newTileName = new River();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M1\")) {\n Tile newTileName = new Mountain1();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M2\")) {\n Tile newTileName = new Mountain2();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M3\")) {\n Tile newTileName = new Mountain3();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"SM\")) {\n Tile newTileName = new SwampMonster();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"O\")) {\n Tile newTileName = new Ocean();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"G\")) {\n Tile newTileName = new Grass();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"V\")) {\n Tile newTileName = new Volcano();\n tiles[i][j] = newTileName;\n\n }else {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n newTileName.setOwner(null);\n }\n\n }\n }\n return tiles;\n }", "private VolaTile getCaveTile() {\n/* */ try {\n/* 2147 */ Zone z = Zones.getZone(this.tilex, this.tiley, false);\n/* 2148 */ return z.getOrCreateTile(this.tilex, this.tiley);\n/* */ }\n/* 2150 */ catch (NoSuchZoneException noSuchZoneException) {\n/* */ \n/* */ \n/* 2153 */ logger.log(Level.WARNING, \"No cave tile for \" + this.tilex + \", \" + this.tiley);\n/* 2154 */ return this;\n/* */ } \n/* */ }", "public Tile getTile() {\n return tile;\n }", "public Tile getTile() {\n return tile;\n }", "public static MineType getMine(String type)\n\t{\n\t\tif (mineTable.containsKey(type)) {\n\t\t\treturn mineTable.get(type);\n\t\t} else {\n\t\t\tLogger.getLogger(LonelehMining.class.getName()).severe(\"Invalid MineType type: \" + type);\n\t\t}\n\t\treturn MineType.values()[0];\n\t}", "@Override\n public SquareTile getClosestTile(Point pos, float scale) {\n // The current best tile\n int bestDist = Integer.MAX_VALUE;\n SquareTile best = null;\n\n for (SquareTile tile : tiles) {\n int dist = pos.distance(tile.getPixelCenterLocation(scale));\n\n // Check if this tile is closer\n if (best == null || dist < bestDist) {\n // Update the best tile\n best = tile;\n bestDist = dist;\n }\n }\n\n return best;\n }", "public BoardTile getTile(int column, int row) {\r\n return tiles[column][row];\r\n }", "@Test\n public void testGetTile() {\n assertEquals(7, board3by3.getTile(0, 0).getId());\n }", "public Tile getTile(){\n\t\treturn currentTile;\n\t}", "public Tile getTile(int i, int k) {\n return tiles[i][k];\n }", "public Tile getInitTile() {\n return new Tile(initItem.type + \"-Init\", initItem.left, initItem.right,\n initItem.up, initItem.down, initItem.center, initItem.coatOfArms, initItem.separatedCities);\n }", "public String getTile(int row, int column)\n {\n return tiles.get(row).get(column).getLetter(); \n }", "protected Tile getTile( Tile[] tiles, int x, int y ) {\n return tiles[ (y * getHeightInTiles()) + x ];\n }", "public Tile getRandomLegalTile(){\n\t\tRandom random = new Random();\n\t\tArrayList<Tile> legalTiles = getAllLegalMoves(Game.getInstance().getCurrentPlayerColor());\n\t\tTile randomTile = legalTiles.get( random.nextInt(legalTiles.size()));\n\t\treturn randomTile;\n\t}", "private int getType(int tile, int windoftheround, int playerwind)\n\t{\n\t\t// the conditional path tells us whether this is a generic or specific type\n\t\tswitch(conditional[1]) {\n\t\t\t// generic cases\n\t\t\tcase(SIMPLE): { if(TilePattern.isSimple(tile)) return SIMPLE; break; }\n\t\t\tcase(TERMINAL): { if(TilePattern.isTerminal(tile)) return TERMINAL; break; }\n\t\t\tcase(NUMERAL): { if(TilePattern.isNumeral(tile)) return NUMERAL; break; }\n\t\t\tcase(WIND): { if(TilePattern.isWind(tile)) return WIND; break; }\n\t\t\tcase(ROUNDWIND): { if(tile==windoftheround) return ROUNDWIND; break; }\n\t\t\tcase(OWNWIND): { if(tile==playerwind) return OWNWIND; break; }\n\t\t\tcase(DRAGON): { if(TilePattern.isDragon(tile)) return DRAGON; break; }\n\t\t\tcase(HONOUR): { if(TilePattern.isHonour(tile)) return HONOUR; break; }\n\t\t\tcase(BONUS): { if(TilePattern.isBonus(tile)) return BONUS; break; }\n\t\t\tdefault: {\n\t\t\t\t// specific cases - flowers first\n\t\t\t\tif (TilePattern.isFlower(tile)) return FLOWER;\n\t\t\t\telse if (TilePattern.isSeason(tile)) return SEASON;\n\t\t\t\t// then honours\n\t\t\t\telse if (tile==TilePattern.EAST) return EAST;\n\t\t\t\telse if (tile==TilePattern.SOUTH) return SOUTH;\n\t\t\t\telse if (tile==TilePattern.WEST) return WEST;\n\t\t\t\telse if (tile==TilePattern.NORTH) return NORTH;\n\t\t\t\telse if (tile==TilePattern.RED) return RED;\n\t\t\t\telse if (tile==TilePattern.GREEN) return GREEN;\n\t\t\t\telse if (tile==TilePattern.WHITE) return WHITE;\n\t\t\t\t// and only then, numerals\n\t\t\t\telse if (tile<TilePattern.HONOURS && tile%TilePattern.NUMMOD == TilePattern.BAMBOO_ONE) return ONE;\n\t\t\t\telse if (tile<TilePattern.HONOURS && tile%TilePattern.NUMMOD == TilePattern.BAMBOO_TWO) return TWO;\n\t\t\t\telse if (tile<TilePattern.HONOURS && tile%TilePattern.NUMMOD == TilePattern.BAMBOO_THREE) return THREE;\n\t\t\t\telse if (tile<TilePattern.HONOURS && tile%TilePattern.NUMMOD == TilePattern.BAMBOO_FOUR) return FOUR;\n\t\t\t\telse if (tile<TilePattern.HONOURS && tile%TilePattern.NUMMOD == TilePattern.BAMBOO_FIVE) return FIVE;\n\t\t\t\telse if (tile<TilePattern.HONOURS && tile%TilePattern.NUMMOD == TilePattern.BAMBOO_SIX) return SIX;\n\t\t\t\telse if (tile<TilePattern.HONOURS && tile%TilePattern.NUMMOD == TilePattern.BAMBOO_SEVEN) return SEVEN;\n\t\t\t\telse if (tile<TilePattern.HONOURS && tile%TilePattern.NUMMOD == TilePattern.BAMBOO_EIGHT) return EIGHT;\n\t\t\t\telse if (tile<TilePattern.HONOURS && tile%TilePattern.NUMMOD == TilePattern.BAMBOO_NINE) return NINE;}}\n\n\t\t// fail\n\t\treturn -1;\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 TileMap getMyTileMap() {\n return this.myTileMap;\n }", "SerializableState getTile(Long id, int x, int y) throws RemoteException;", "private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }", "public short fitsOnBeginning(Tile tile);", "public DungeonObject getDungeonTile(int x, int y) {\n\t\treturn dungeonRoom[x][y];\r\n\t}", "public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }", "public MapEntity getTileAt(IntVector2D v) {\n\t\tif(v == null)\n\t\t\treturn null;\n\t\treturn getTileAt(v.getX(), v.getY());\n\t}", "public static TileType getTypeFromColor(Color color){\n\n for (TileType type : TileType.values()) {\n if (type.color.equals(color)) return type;\n }\n\n return null;\n }", "private Pixel findFirstHolePixel() {\n\t\tfor (int i = 0; i < mRows; ++i) {\n\t\t\tfor (int j = 0; j < mCols; ++j) {\n\t\t\t\tif (mImage[i][j] == HOLE)\n\t\t\t\t\treturn new Pixel(i, j);\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public static Image getTile(int faction, boolean transparent)\n\t{\n\t\treturn tileBases[transparent ? 1 : 0][faction];\n\t}", "@CheckForNull public Archetype getAnyArchetype() {\n if (map.isEmpty()) {\n return null;\n }\n return map.values().iterator().next();\n }", "public Mapping getMappingFirstRep() {\n\t\tif (getMapping().isEmpty()) {\n\t\t\treturn addMapping();\n\t\t}\n\t\treturn getMapping().get(0); \n\t}", "Tile getPosition();", "public boolean testTiles(EIfcfillareastyletiles type) throws SdaiException;", "private ResourceTileType humanTerrainChoice() {\r\n\r\n\t\t// Get Player Resource Tiles Types to use as possible options\r\n\t\tfinal String[] playerOptions = mPlayers[0].getResourceTilesTypes();\r\n\r\n\t\tfinal JFrame frame = new JFrame();\r\n\t\tfinal String humanResponse = (String) JOptionPane.showInputDialog(frame,\r\n\t\t\t\t\"Please select which type of terrain to gather from.\", \"Select Terrain Type\",\r\n\t\t\t\tJOptionPane.QUESTION_MESSAGE, null, playerOptions, playerOptions[0]);\r\n\r\n\t\tSystem.out.println(\"Humand Res: \" + humanResponse);\r\n\t\treturn ResourceTileType.getType(humanResponse);\r\n\t}", "public final Tile selectComputerMove() {\r\n Tile tile = null;\r\n int count = 0;\r\n String tileName = null;\r\n boolean continueLoop = true;\r\n \r\n // First try to find a winning move\r\n for (Rail rail : rails) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"0\")) count++;\r\n }\r\n if (count == 2) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"\")) {\r\n tileName = t.getName();\r\n return t;\r\n }\r\n }\r\n }\r\n count = 0; \r\n }\r\n \r\n // If none found, try to block \"X\"\r\n for (Rail rail : rails) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"X\")) count++;\r\n }\r\n if (count == 2) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"\")) {\r\n tileName = t.getName();\r\n return t;\r\n }\r\n }\r\n }\r\n count = 0;\r\n }\r\n \r\n // If no blocking move, try to play the center which gives \"O\"\r\n // a statistical advantage\r\n if (!tiles[R2C2].isSelected()) {\r\n return tiles[R2C2];\r\n }\r\n \r\n \r\n // If center move is not available, try to find an open corner tile, \r\n // which might set up an winning combination\r\n if (!tiles[R1C1].isSelected()) {\r\n return tiles[R1C1];\r\n } else if (!tiles[R3C3].isSelected()) {\r\n return tiles[R3C3];\r\n } else if (!tiles[R3C1].isSelected()) {\r\n return tiles[R3C1];\r\n } else if (!tiles[R1C3].isSelected()) {\r\n return tiles[R1C3];\r\n }\r\n \r\n // If none found just pick an empty tile at random\r\n if(tileName == null) {\r\n int row = rand.nextInt(3) + 1;\r\n int col = rand.nextInt(3) + 1;\r\n tileName = \"r\" + row + \"c\" + col;\r\n for (Tile btn: tiles) {\r\n if (btn.getName().equals(tileName)) {\r\n tile = btn;\r\n break;\r\n }\r\n }\r\n }\r\n \r\n return tile;\r\n }", "private int findIndexContainingType(TileType type) {\n for (int x = 0; x < getWidth(); x++) {\n for (int y = 0; y < getHeight(); y++) {\n if (getTileType(x, y) == type) {\n return twoDimIndexToOneDimIndex(x, y);\n }\n }\n }\n return NO_INDEX;\n }", "int getMinTileX(Long id) throws RemoteException;", "private Color determineColorFromType(String type)\n\t{\n\t\tIterator<String> iterator = this.tileTypeColorMap.keySet().iterator();\n\t\twhile (iterator.hasNext())\n\t\t{\n\t\t\tString key = iterator.next();\n\t\t\tif (key == type)\n\t\t\t{\n\t\t\t\treturn tileTypeColorMap.get(key);\n\t\t\t}\n\t\t}\n\t\treturn this.ERROR_COLOR;\n\t}", "public int getTileId() {\n\t\treturn tileId;\n\t}", "public boolean isTileOnMap(int x, int y) {\n\t\treturn getTileAt(x, y) != null;\n\t}", "public Tile removeTile() {\n if (tileBag.size() == 0) {\n return null;\n }\n return tileBag.remove(0);\n }", "public WorldObject getFirstObject(){\r\n\t\treturn this.firstObject;\r\n\t}", "public Tile[][] getTileMap(){\r\n\t\treturn tileMap;\r\n\t}", "public int getTileLevel()\n {\n return tileLevel;\n }", "public FloorTile getGoalTile() {\r\n return goalTile;\r\n }", "public Tile getCurrent(){\n\t\tif(generated)\n\t\t\treturn deck.get(curr);\n\t\tthrow new RuntimeException(\"Deck must be generated before using it\");\n\t}" ]
[ "0.66865945", "0.66808295", "0.66368437", "0.6579351", "0.6472743", "0.64704746", "0.6468878", "0.64663786", "0.64447665", "0.6312378", "0.6297159", "0.6273668", "0.62660277", "0.62451094", "0.6233404", "0.62226516", "0.620773", "0.6182906", "0.61764836", "0.61751074", "0.6137958", "0.6129005", "0.6124888", "0.60736024", "0.60456705", "0.6036418", "0.6027966", "0.602329", "0.6021608", "0.5994695", "0.5979958", "0.5979656", "0.5969071", "0.5968085", "0.5887092", "0.5886698", "0.58835083", "0.5875713", "0.58663285", "0.58637345", "0.5863563", "0.5856754", "0.5846355", "0.5828557", "0.5826208", "0.58078647", "0.57982117", "0.57942253", "0.57587636", "0.5747578", "0.5731889", "0.57213295", "0.5701829", "0.56960917", "0.56925213", "0.5674653", "0.56581527", "0.5635935", "0.56268215", "0.55983865", "0.55983865", "0.55896515", "0.55815744", "0.55480736", "0.55465996", "0.5545372", "0.55418533", "0.5538403", "0.55011666", "0.54997534", "0.5494575", "0.5489564", "0.54680514", "0.54470676", "0.54444414", "0.5371617", "0.5355923", "0.5349366", "0.5331323", "0.531007", "0.52906287", "0.52853966", "0.5281412", "0.52696663", "0.5267904", "0.52623767", "0.52479815", "0.5243226", "0.5238662", "0.5229951", "0.5227446", "0.522629", "0.52175266", "0.5215512", "0.5208729", "0.52075475", "0.5203806", "0.5147875", "0.51369107", "0.51302195" ]
0.75351435
0
TODO: this should be separated into a MapDescription class, from which a map can be constructed. returns the positions where a ghost needs to be positioned
public List<Point> getGhostPositions() { throw new RuntimeException("Not Implemented"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Position findWeedPosition() {\n int x = 0;\n int y = 0;\n int sum = 0;\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(sum==0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n x = i;\n y = j;\n sum = tmpSum;\n }\n }\n else {\n x = i;\n y = j;\n sum = tmpX + tmpY;\n\n }\n }\n }\n\n }\n }\n return new Position(x,y);\n }", "Tile getPosition();", "public int[] getMapPosition(){\n\t\treturn position;\n\t}", "public List<Integer> ghostLocation(int Ghostx, int Ghosty){\n\n ghostLocay.add(Ghostx);\n ghostLocay.add(Ghosty);\n\n return ghostLocay;\n }", "public Integer getMapPosition()\n\t{\n\t\treturn mapPosition;\n\t}", "public static Dimension getPos()\n {\n Dimension pos = new Dimension( cX, cY );\n next();\n return pos;\n }", "public void ghost(){\n\t\tfor(int i = 0; i < this.position.length ; i++){//itterates through array\n\t\t\tfor(int p = 0; p < this.position.length ; p++){\n\t\t\t\tthis.position[i][p] = 0;//makes the positions for the array 0, player not here\n\t\t\t}\n\t\t}\n\t}", "private void positionMinimap(){\n\t\tif(debutX<0)//si mon debutX est negatif(ca veut dire que je suis sorti de mon terrain (ter))\n\t\t\tdebutX=0;\n\t\tif(debutX>ter.length)//si debutX est plus grand que la taille de mon terrain(ter).\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY<0)\n\t\t\tdebutY=0;\n\t\tif(debutY>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\tif(debutX+100>ter.length)\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY+100>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\t//cette fonction est appelee uniquement si le terrain est strictement Superieur a 100\n\t\t// Donc je sais que ma fin se situe 100 cases apres.\n\t\tfinX=debutX+100;\n\t\tfinY=debutY+100;\n\t}", "protected int getMarkerPosition() {\n\t\treturn valueToMarkerPosition(getValue());\n\t}", "public List<Position> getPositions(){\r\n List<Position> listPosition = new ArrayList();\r\n int row=currentPosition.getRow(),column=currentPosition.getColumn();\r\n listPosition=getPositionFor(row, column, listPosition);\r\n return listPosition;\r\n }", "private int[] defineStartingPos() {\n\t\tint[] positions = new int[4];\n\t\tif(initPos.equals(UP)) {\n\t\t\tpositions[0] = 0;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = 1;\n\t\t}else if(initPos.equals(DOWN)) {\n\t\t\tpositions[0] = size-1;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = -1;\n\t\t}else if(initPos.equals(LEFT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = 0;\n\t\t\tpositions[3] = 1;\n\t\t}else if(initPos.equals(RIGHT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = size-1;\n\t\t\tpositions[3] = -1;\n\t\t}\n\t\treturn positions;\n\t}", "@Override\n\tpublic int getPos() {\n\t\treturn 0;\n\t}", "public float[] GetStartPosition(int playerId)\r\n/* 515: */ {\r\n/* 516:621 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 517:623 */ for (int y = 0; y < getHeightInTiles(); y++) {\r\n/* 518:625 */ if (tilePlayerPlacable(x, y, playerId)) {\r\n/* 519:627 */ return new float[] { x, y };\r\n/* 520: */ }\r\n/* 521: */ }\r\n/* 522: */ }\r\n/* 523:631 */ return new float[] { 0.0F, 0.0F };\r\n/* 524: */ }", "public int[][] place(){\r\n\t\treturn coords(pos);\r\n\t}", "Object getPosition();", "public Point findSpace(){\r\n Point toReturn = new Point(-1, -1);\r\n for (int i = 0; i<puzzleSize; i++){\r\n for (int j = 0; j<puzzleSize; j++){\r\n if (this.state[i][j] == 0)\r\n toReturn.setLocation(i,j);\r\n }\r\n }\r\n return toReturn;\r\n }", "public int[] getGhostInitialPosition (String id) {\n\t\tint[] retval = new int[2];\n\t\tretval[0] = 0;\n\t\tretval[1] = 0;\n\t\t\n\t\tif (id.equals(\"red\"))\n\t\t{\n\t\t\tretval = red_ghost_initial_position;\n\t\t}\n\t\t\n\t\tif (id.equals(\"blue\"))\n\t\t{\n\t\t\tretval = blue_ghost_initial_position;\n\t\t}\n\t\t\n\t\tif (id.equals(\"orange\"))\n\t\t{\n\t\t\tretval = orange_ghost_initial_position;\n\t\t}\n\t\t\n\t\tif (id.equals(\"pink\"))\n\t\t{\n\t\t\tretval = pink_ghost_initial_position;\n\t\t}\n\t\t\n\t\treturn retval;\n\t\t\n\t}", "double getMapPositionX();", "public Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }", "public int getPos();", "public int getPos();", "@Override\n public Position getPosition() {\n return Position.UNKNOWN;\n }", "@Override\n public int[] getStartPosition() {\n if(maze != null){\n int[] position = new int[2];\n position[0] = maze.getStartPosition().getRowIndex();\n position[1] = maze.getStartPosition().getColumnIndex();\n return position;\n }\n return null;\n }", "org.mojolang.mojo.lang.Position getStartPosition();", "public abstract int getStartPosition();", "public Position[] getDestinyPositions()\r\n {\r\n return metro.symbolPositions(' ');\r\n }", "protected abstract int[][] getPossiblePositions();", "@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}", "protected abstract boolean isMarkerPositionInternal(int index);", "Iterable<Position<E>> positions();", "private void intElementCoordinates() throws InvalidLevelCharacterException, NoGhostSpawnPointException, NoPacmanSpawnPointException, NoItemsException {\n\n\t\tint ps = 0;// player spawn point counter\n\t\tint gs = 0;// ghost spawn point counter\n\t\tint item = 0;// item counter\n\t\t\n\t\t\tfor (int i = 0; i < height; i++) {\n\t\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\t\t// j*MAPDENSITY as x coordinate, i*MAPDENSITY as y\n\t\t\t\t\t// coordinate\n\t\t\t\t\tfloat[] xy = { j * MAPDENSITY, i * MAPDENSITY };\n\t\t\t\t\t// add coordinates in to right category\n\t\t\t\t\tif (mapElementStringArray[i][j].equals(\"X\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new Wall(new Vector2f(xy), getWallType(\n\t\t\t\t\t\t\t\ti, j));\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\" \")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new Dot(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tdots.add((Dot)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"P\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new PlayerSpawnPoint(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tplayerSpawnPoints.add((PlayerSpawnPoint)mapElementArray[i][j]);\n\t\t\t\t\t\taPlayerSpawnPointRow=i;\n\t\t\t\t\t\taPlayerSpawnPointCol=j;\n\t\t\t\t\t\tps++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"G\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new GhostSpawnPoint(new Vector2f(xy),getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tghostSpawnPoints.add((GhostSpawnPoint)mapElementArray[i][j]);\n\t\t\t\t\t\tgs++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"B\"))\n\t\t\t\t\t\tmapElementArray[i][j] = new InvisibleWall(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\telse if (mapElementStringArray[i][j].equals(\"S\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new SpeedUp(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tspeedUps.add((SpeedUp)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"T\")){\n\t\t\t\t\t\tmapElementArray[i][j] = new Teleporter(new Vector2f(xy),getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tteleporters.add((Teleporter)mapElementArray[i][j]);\n\t\t\t\t\t}\n\t\t\t\t\telse if (mapElementStringArray[i][j].equals(\"U\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new PowerUp(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tpowerUps.add((PowerUp)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else\n\t\t\t\t\t\t// thrwo invalidLevelCharacterException\n\t\t\t\t\t\tthrow new InvalidLevelCharacterException(\n\t\t\t\t\t\t\t\tmapElementStringArray[i][j].charAt(0));\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t// check for PacmanSpawnPoint, GhostSpawnPoint and item exceptions\n\t\t\tif (gs == 0)\n\t\t\t\tthrow new NoGhostSpawnPointException();\n\t\t\tif (ps == 0)\n\t\t\t\tthrow new NoPacmanSpawnPointException();\n\t\t\tif (item == 0)\n\t\t\t\tthrow new NoItemsException();\n\t\t\n\t}", "Iterator<BoardPosition> possibleMovingPositions(BoardPosition from, Game game, Map<BoardPosition, Piece> pieceMap);", "Position getPosition();", "Position getPosition();", "public HashSet<Position> getCoveredPos() { return coveredPos; }", "private List<BlockPoint> getReachablePositions(BlockType[][] chunk, List<BlockPoint> topPlattforms) throws\n\t IllegalStateException {\n\tList<BlockPoint> reachablePositions = new ArrayList<>();\n\t// For every upmost position find all reachable positions\n\tfor(BlockPoint pos : topPlattforms){\n\t // Transpose the highest position point into chunks coordinate system by placing\n\t // directly below the start of chunk.\n\t BlockPoint highPos = new BlockPoint(pos.x, -pos.y - 1);\n\t for(int c = 0; c < boardWidth; c++){\n\t\tfor(int r = 0; r < chunk.length; r++){\n\t\t BlockPoint pointInChunk = new BlockPoint(c,r);\n\t\t if(pointInChunk.distanceTo(highPos) <= MAX_DISTANCE && pointInChunk.distanceTo(highPos) >= minDistance){\n\t\t reachablePositions.add(pointInChunk);\n\t\t }\n\t\t}\n\t }\n\t}\n\tif(reachablePositions.isEmpty()){\n\t throw new IllegalStateException(\"No reachable positions exists\");\n\t}\n\treturn reachablePositions;\n }", "public int PositionGet();", "public int getXPos();", "int getStartPosition();", "int getStartPosition();", "@Override\n\tpublic int getPositionOrder() {\n\t\treturn _dmGTShipPosition.getPositionOrder();\n\t}", "@Override\n\tpublic List<Coordonnees> getPosMines() {\n\t\treturn null;\n\t}", "public Position position();", "public long getPositions() {\n return positions;\n }", "public Coordinate getPosition();", "MapLocation getPosition(Unit unit);", "private static PointDouble getAbsolutePosition(Stickable stickable, PointDouble pd) {\n\t\tint x = stickable.getRectangle().getX() + pd.getX().intValue() * stickable.getGridSize() / SharedConstants.DEFAULT_GRID_SIZE;\r\n\t\tint y = stickable.getRectangle().getY() + pd.getY().intValue() * stickable.getGridSize() / SharedConstants.DEFAULT_GRID_SIZE;\r\n\t\treturn new PointDouble(x, y);\r\n\t}", "private int getNextAvailablePositionOfContentMap() {\n\n\t\treturn contentMap.size() + 1;\n\n\t}", "public int getFirstPos ()\r\n {\r\n return glyph.getBounds().y;\r\n }", "public void setMapPosition() {\n\t\txmap = levelState.getx();\n\t\tymap = levelState.gety();\n\t}", "public Point getAbsPosition() {\n return Game.getMap().TFMapCoordinateToMapCenter(position);\n }", "public Point2D getNodePositionXY () { return n.getXYPositionMap(); }", "@Override\n public int[] getGoalPosition() {\n\n if(maze != null){\n int[] position = new int[2];\n position[0] = maze.getGoalPosition().getRowIndex();\n position[1] = maze.getGoalPosition().getColumnIndex();\n return position;\n }\n return null;\n }", "private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n if(tiles[x][y] == 0){\n return new int[]{x, y};\n }\n }\n }\n return null;\n }", "private List<BaseLocation> getExpectedBaseLocations() {\r\n final List<BaseLocation> baseLocations = new ArrayList<>();\r\n\r\n final Position position1 = new Position(3104, 3856, PIXEL);\r\n final Position center1 = new Position(3040, 3808, PIXEL);\r\n baseLocations.add(new BaseLocation(position1, center1, 13500, 5000, true, false, true));\r\n\r\n final Position position2 = new Position(2208, 3632, PIXEL);\r\n final Position center2 = new Position(2144, 3584, PIXEL);\r\n baseLocations.add(new BaseLocation(position2, center2, 9000, 5000, true, false, false));\r\n\r\n final Position position3 = new Position(640, 3280, PIXEL);\r\n final Position center3 = new Position(576, 3232, PIXEL);\r\n baseLocations.add(new BaseLocation(position3, center3, 13500, 5000, true, false, true));\r\n\r\n final Position position4 = new Position(2688, 2992, PIXEL);\r\n final Position center4 = new Position(2624, 2944, PIXEL);\r\n baseLocations.add(new BaseLocation(position4, center4, 9000, 5000, true, false, false));\r\n\r\n final Position position5 = new Position(1792, 2480, PIXEL);\r\n final Position center5 = new Position(1728, 2432, PIXEL);\r\n baseLocations.add(new BaseLocation(position5, center5, 12000, 0, true, true, false));\r\n\r\n final Position position6 = new Position(3200, 1776, PIXEL);\r\n final Position center6 = new Position(3136, 1728, PIXEL);\r\n baseLocations.add(new BaseLocation(position6, center6, 13500, 5000, true, false, true));\r\n\r\n final Position position7 = new Position(640, 1968, PIXEL);\r\n final Position center7 = new Position(576, 1920, PIXEL);\r\n baseLocations.add(new BaseLocation(position7, center7, 9000, 5000, true, false, false));\r\n\r\n final Position position8 = new Position(1792, 1808, PIXEL);\r\n final Position center8 = new Position(1728, 1760, PIXEL);\r\n baseLocations.add(new BaseLocation(position8, center8, 12000, 0, true, true, false));\r\n\r\n final Position position9 = new Position(2336, 560, PIXEL);\r\n final Position center9 = new Position(2272, 512, PIXEL);\r\n baseLocations.add(new BaseLocation(position9, center9, 13500, 5000, true, false, true));\r\n\r\n final Position position10 = new Position(3584, 720, PIXEL);\r\n final Position center10 = new Position(3520, 672, PIXEL);\r\n baseLocations.add(new BaseLocation(position10, center10, 9000, 5000, true, false, false));\r\n\r\n final Position position11 = new Position(544, 432, PIXEL);\r\n final Position center11 = new Position(480, 384, PIXEL);\r\n baseLocations.add(new BaseLocation(position11, center11, 13500, 5000, true, false, true));\r\n\r\n return baseLocations;\r\n }", "private Point getUnsafeTeleportPosition() {\n\t\tRandom number \t= new Random();\n\t\tPoint p \t\t= new Point();\n\t\t\n\t\twhile(true) {\n\t\t\tint x\t\t= number.nextInt(rows-1);\t\n\t\t\tint y\t\t= number.nextInt(cols-1);\n\t\t\tp.x\t\t\t= x;\n\t\t\tp.y\t\t\t= y;\n\t\t\t\n\t\t\t// position isn't occupied\n\t\t\tif(!occupiedPositions.contains(p))\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn p;\n\t}", "public abstract Point2D getPosition();", "@Override\n public Map<Direction, List<Coordinate>> getPossibleMoves() {\n\n Map<Direction, List<Coordinate>> moves = new HashMap<>();\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //Jumps\n List<Coordinate> jumps = new ArrayList<>();\n\n //\n //\n ////\n int tempRow1 = row - 2;\n int tempCol1 = col - 1;\n Coordinate tempCoordinate1 = new Coordinate(tempRow1, tempCol1);\n if (Board.inBounds(tempCoordinate1)) {\n jumps.add(tempCoordinate1);\n }\n\n ////\n //\n //\n int tempRow2 = row + 2;\n int tempCol2 = col - 1;\n Coordinate tempCoordinate2 = new Coordinate(tempRow2, tempCol2);\n if (Board.inBounds(tempCoordinate2)) {\n jumps.add(tempCoordinate2);\n }\n\n //////\n //\n int tempRow3 = row - 1;\n int tempCol3 = col - 2;\n Coordinate tempCoordinate3 = new Coordinate(tempRow3, tempCol3);\n if (Board.inBounds(tempCoordinate3)) {\n jumps.add(tempCoordinate3);\n }\n\n ///////\n //\n int tempRow4 = row - 1;\n int tempCol4 = col + 2;\n Coordinate tempCoordinate4 = new Coordinate(tempRow4, tempCol4);\n if (Board.inBounds(tempCoordinate4)) {\n jumps.add(tempCoordinate4);\n }\n\n ////\n //\n //\n int tempRow5 = row + 2;\n int tempCol5 = col + 1;\n Coordinate tempCoordinate5 = new Coordinate(tempRow5, tempCol5);\n if (Board.inBounds(tempCoordinate5)) {\n jumps.add(tempCoordinate5);\n }\n\n //\n //\n ////\n int tempRow6 = row - 2;\n int tempCol6 = col + 1;\n Coordinate tempCoordinate6 = new Coordinate(tempRow6, tempCol6);\n if (Board.inBounds(tempCoordinate6)) {\n jumps.add(tempCoordinate6);\n }\n\n //\n //////\n int tempRow7 = row + 1;\n int tempCol7 = col - 2;\n Coordinate tempCoordinate7 = new Coordinate(tempRow7, tempCol7);\n if (Board.inBounds(tempCoordinate7)) {\n jumps.add(tempCoordinate7);\n }\n\n //\n //////\n int tempRow8 = row + 1;\n int tempCol8 = col + 2;\n Coordinate tempCoordinate8 = new Coordinate(tempRow8, tempCol8);\n if (Board.inBounds(tempCoordinate8)) {\n jumps.add(tempCoordinate8);\n }\n\n if (!jumps.isEmpty()) {\n moves.put(Direction.Jump, jumps);\n }\n return moves;\n }", "private Location[] overrunsTop () {\n Location nextLocation;\n Location nextCenter;\n \n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(getX(), 0);\n nextCenter = new Location(getX(), myCanvasBounds.getHeight());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = FULL_TURN_DEGREES - getHeading();\n if (getHeading() < THREE_QUARTER_TURN_DEGREES) {\n angle = -(getHeading() - HALF_TURN_DEGREES);\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(getX() + getY() / Math.tan(angle), 0);\n nextCenter = new Location(getX() + getY() / Math.tan(angle),\n myCanvasBounds.getHeight());\n \n // eliminates race condition - if next location overruns left/right AND top/bottom it checks\n // to see which is overrun first and corrects\n if (nextLocation.getX() > myCanvasBounds.getWidth())\n // right\n return overrunRight();\n else if (nextLocation.getX() < 0) // left\n return overrunLeft();\n \n return new Location[] { nextLocation, nextCenter };\n }", "public HashSet<Position> getNeighborPos() { return neighborPos; }", "public long getPos()\n\t{\n\t\treturn -1;\n\t}", "public Point getGapCoordinates()\n {\n Point gap = new Point(50,50);\n return gap;\n }", "public final BlockPos getPos() {\n\t\treturn baseTile.getPos();\n\t}", "@Override\n public Position getPosition() {\n return new Position(this.x, this.y);\n }", "public abstract Position getPosition();", "private Point getSafeTeleportPosition() {\n\t\tRandom number \t= new Random();\n\t\tPoint p\t\t\t= new Point();\n\t\twhile(true) {\n\t\t\tint x\t\t= number.nextInt(rows-1);\t\n\t\t\tint y\t\t= number.nextInt(cols-1);\n\t\t\tp.x\t\t\t= x;\n\t\t\tp.y\t\t\t= y;\n\t\t\t\n\t\t\t//if the point isn't in the array\n\t\t\tif(!occupiedPositions.contains(p)) {\n\t\t\t\t//check the surrounding of the point, need to be a \"safe teleport\"\n\t\t\t\tif(checkSurroundingOfPoint(p)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn p;\n\t}", "public CopyOnWriteArrayList<Point> \tgetOccupiedPositions() \t\t\t \t\t\t{ return this.occupiedPositions; }", "public static List<Integer> getBlankPositions() {\n\t\tList<Integer> posList = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < sentence.length(); i++) {\n\t\t\tif (sentence.substring(i, i + 1).equals(\" \")) posList.add(i);\n\t\t}\n\t\treturn posList;\n\t}", "public Location getOffset() {\n\t\treturn gfPos;\n\t}", "private Point2D getBoardPosition() {\n double size = getCellSize();\n double x = canvas.getWidth() / 2 - board.getWidth() * size / 2;\n double y = canvas.getHeight() / 2 - board.getHeight() * size / 2;\n\n return new Point2D(x, y);\n }", "public ArrayList<NPPos> getNPPosition(){\n Iterator it = nextPanels.iterator();\n ArrayList<NPPos> listPositions = new ArrayList<>();\n while(it.hasNext()){\n listPositions.add((NPPos) positions.get(it.next()));\n }\n return listPositions;\n }", "public boolean[][] getTroopsInPosition() {\n boolean[][] inPositionMap = new boolean[depth][width];\n\n for (int i = 0; i < depth; i++) {\n for (int j = 0; j < width; j++) {\n if (aliveTroopsFormation[i][j] == null) continue;\n if (aliveTroopsFormation[i][j].isInPosition() && !inDanger[i][j]) {\n inPositionMap[i][j] = true;\n }\n }\n }\n return inPositionMap;\n }", "public int getX() { return position.x; }", "private static Position getPositionBetween(Position p1, Position p2)\n {\n int rowDiff = p1.getRow() - p2.getRow();\n int colDiff = p1.getCell() - p2.getCell();\n\n if(Math.abs(rowDiff) != 1 && Math.abs(colDiff) != 1)\n {\n return new Position(p2.getRow() + (rowDiff/2),\n p2.getCell() + (colDiff/2));\n }\n return null;\n }", "public int getPosition();", "org.mojolang.mojo.lang.PositionOrBuilder getStartPositionOrBuilder();", "public Point getPosition();", "Point2i getFreeRandomPosition() {\n\t\tPoint2i p = new Point2i();\n\t\tint i = 0;\n\t\tint max = this.grid.getWidth() * this.grid.getHeight();\n\t\tdo {\n\t\t\tp.set(\n\t\t\t\t\tRandomNumber.nextInt(this.grid.getWidth()),\n\t\t\t\t\tRandomNumber.nextInt(this.grid.getHeight()));\n\t\t\t++i;\n\t\t}\n\t\twhile (!isFree(p.x(), p.y()) && i < max);\n\t\treturn (isFree(p.x(), p.y())) ? p : null;\n\t}", "public Position[] getSpawningPositions()\r\n {\r\n return concatArrays(metro.symbolPositions(' '), metro.symbolPositions('X'));\r\n }", "double a_marker_position ()\n {\n double l_return = 0.0;\n\n if (marker != null)\n {\n l_return = marker.getPosition ();\n }\n\n return l_return;\n\n }", "Position getOldPosition();", "public static int getDefaultPosition()\n {\n return defaults.position;\n }", "public Position getPos() {\n\t\treturn coords;\n\t}", "@Override\n\tpublic Position getPosition() {\n\t\treturn null;\n\t}", "@Override\r\n \tpublic final int getOffset() {\r\n \t\tAssert.isTrue(hasSourceRangeInfo());\r\n \t\treturn getStartPos();\r\n \t}", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "public void testBoardAvailablePositions() {\n \tassertTrue(board6.hasAvailablePositionsForTile());\n \tList<PlacementLocation> expected = new ArrayList<PlacementLocation>();\n \tboard6.place(new Placement(Color.RED, 5, 21, Color.RED, 4, 16));\n \tboard6.place(new Placement(Color.RED, 4, 12, Color.RED, 5, 14));\n \tboard6.place(new Placement(Color.RED, 4, 8, Color.RED, 5, 11));\n \tboard6.place(new Placement(Color.RED, 5, 4, Color.RED, 4, 4));\n \tboard6.place(new Placement(Color.RED, 5, 1, Color.RED, 4, 0));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(5, 26))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 20))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(5, 24))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 29))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 30))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(6, 31))));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(5, 23))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(3, 15))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(5, 27))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 33))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 35))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 37))));\n \t\n \t\n \tfor (PlacementLocation location : board6.getAvailablePositionsForTile()) {\n \t\tif (!expected.contains(location))\n \t\t\tSystem.out.println(\"expected does not contain location: \" + location);\n \t}\n \tSet<PlacementLocation> locations = board6.getAvailablePositionsForTile();\n \tfor (PlacementLocation location : locations) {\n \t\tSystem.out.println(location);\n \t}\n \tfor (PlacementLocation location : expected) {\n \t\tif (!locations.contains(location))\n \t\t\tSystem.out.println(\"expected2 does not contain location: \" + location);\n \t}\n \t\n \tassertEquals(expected, board6.getAvailablePositionsForTile());\n \t\n \t\n }", "public Stack<Position> getAllNeighborPosition(Position p){\n Stack<Position> stackP=new Stack<Position>();\n Position up=new Position(p.getRow()-1,p.getCol());\n stackP.add(up);\n Position down=new Position(p.getRow()+1,p.getCol());\n stackP.add(down);\n Position right=new Position(p.getRow(),p.getCol()+1);\n stackP.add(right);\n Position left=new Position(p.getRow(),p.getCol()-1);\n stackP.add(left);\n return stackP;\n }", "private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }", "public Pos[] getAllPiecesPos() {\n\t\tArrayList<Pos> resPos = new ArrayList<Pos>();\n\t\tfor (int i = 0; i < Board.getRow(); i++) {\n\t\t\tfor (int j = 0; j < Board.getCol(); j++) {\n\t\t\t\tif (Board.getSlot(i, j).Piece() != null) {\n\t\t\t\t\tresPos.add(new Pos(i, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (resPos.size() > 0) {\n\t\t\tPos[] res = new Pos[resPos.size()];\n\t\t\tfor (int i = 0; i < res.length; i++) {\n\t\t\t\tres[i] = resPos.get(i);\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\t\telse return null;\n\t}", "public double getPosition(double value) {\n return getRelPosition(value) * (size - nanW - negW - posW) + (min < max ? negW : posW);\n }", "public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}", "public abstract String getPos();", "private Ghost ghostFactory(Map map) {\n // Random ghost position\n int posX;\n int posY;\n do {\n posX = random.nextInt(Config.MAP_SIZE_X);\n posY = random.nextInt(Config.MAP_SIZE_Y);\n }while (map.getTile(posX,posY) != 0);\n // Random ghost color\n int sel = random.nextInt(colors.length);\n Color color = Color.decode(colors[sel]);\n // Choose direction for Ghost\n Ghost.Direction dir;\n int[] dirs = {0, 0, 0, 0};\n dirs[0] = map.getTile(posX - 1, posY); // left\n dirs[1] = map.getTile(posX + 1, posY); // right\n dirs[2] = map.getTile(posX, posY - 1); // up\n dirs[3] = map.getTile(posX, posY + 1); // down\n int result;\n do {\n result = random.nextInt(4);\n } while (dirs[result] != 0);\n dir = switch (result) {\n case 0 -> Ghost.Direction.LEFT;\n case 1 -> Ghost.Direction.RIGHT;\n case 2 -> Ghost.Direction.UP;\n case 3 -> Ghost.Direction.DOWN;\n default -> throw new IllegalStateException(\"Unexpected value: \" + result);\n };\n //Create ghost\n return new Ghost(Config.GRID_X*posX + Config.GRID_X/2, Config.GRID_Y*posX + Config.GRID_Y/2,\n Config.GHOST_SIZE_X,Config.GHOST_SIZE_Y, Config.GHOST_MOVEMENT_SPEED_X, Config.GHOST_MOVEMENT_SPEED_Y,\n dir, color);\n }", "private void generateMap(){\n int[] blockStepX = {X_STEP, 0, -X_STEP, -X_STEP, 0, X_STEP};\n int[] blockStepY = {Y_STEP_ONE, Y_STEP_TWO, Y_STEP_ONE, -Y_STEP_ONE, -Y_STEP_TWO, -Y_STEP_ONE};\n int blockSpecialValue = 0;\n int cellSpecial = 0;\n\n mapCells[origin.x/10][origin.y/10] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n cellGrid[0][0][0] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n for (int distanceFromOrigin = 0; distanceFromOrigin < config.getSizeOfMap();\n distanceFromOrigin++){\n\n int[] blockXVals = {origin.x,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x,\n origin.x - X_STEP * distanceFromOrigin,\n origin.x - X_STEP * distanceFromOrigin};\n\n int[] blockYVals = {origin.y - Y_STEP_TWO * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_TWO * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin};\n\n blockSpecialValue = getRandomNumber(distanceFromOrigin, 0, 0);\n\n for (int block = 0; block < NUMBER_OF_BLOCKS; block ++){\n\n int blockXOrdinal = blockXVals[block];\n int blockYOrdinal = blockYVals[block];\n\n for (int blockSize = 0; blockSize < distanceFromOrigin; blockSize++){\n if(blockSpecialValue == blockSize){\n cellSpecial = getRandomNumber(2, 1, 1);\n }else {\n cellSpecial = 0;\n }\n cellGrid [distanceFromOrigin][block+1][blockSize+1] = makeNewCell(\n new CellPosition(distanceFromOrigin,block+1, blockSize+1),\n new Point(blockXOrdinal + blockStepX[block] * (blockSize + 1),\n blockYOrdinal + blockStepY[block] * (blockSize + 1)), cellSpecial);\n }\n }\n }\n }", "Point getPosition();", "Point getPosition();" ]
[ "0.6424462", "0.6217091", "0.617147", "0.60211855", "0.59473515", "0.5900729", "0.58453345", "0.5839647", "0.57929754", "0.5787328", "0.5782771", "0.5773594", "0.57591194", "0.5755999", "0.5750704", "0.5743488", "0.57351184", "0.57118744", "0.5696488", "0.5686312", "0.5686312", "0.5671038", "0.56668156", "0.56602466", "0.5658661", "0.5623771", "0.5620441", "0.56158394", "0.5598513", "0.5592222", "0.5579929", "0.55515057", "0.55275744", "0.55275744", "0.5524298", "0.55028623", "0.5502525", "0.5499506", "0.54927105", "0.54927105", "0.5472084", "0.54719245", "0.5470217", "0.54638904", "0.5458341", "0.54580754", "0.54510415", "0.5448178", "0.5405149", "0.54039246", "0.54034436", "0.5392692", "0.53912044", "0.53885484", "0.53765315", "0.5371747", "0.5371512", "0.5354678", "0.5351866", "0.53410906", "0.5323772", "0.5323534", "0.5317703", "0.53166264", "0.53152704", "0.53145665", "0.5313752", "0.53076714", "0.5302076", "0.5301557", "0.5301245", "0.5294856", "0.52917427", "0.52906054", "0.5290066", "0.5288013", "0.52857184", "0.52852464", "0.5279648", "0.5279181", "0.5270039", "0.5269024", "0.5267899", "0.52646327", "0.5259701", "0.5259614", "0.5259614", "0.5259614", "0.5259614", "0.52595246", "0.52593195", "0.52572584", "0.5255374", "0.5251086", "0.5245874", "0.523477", "0.5230044", "0.5224438", "0.5223599", "0.5223599" ]
0.6679195
0
returns the position where the pacman needs to be positioned
public Point getPacmanPosition() { throw new RuntimeException("Not Implemented"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point getPosition();", "Point getPosition();", "public Position findWeedPosition() {\n int x = 0;\n int y = 0;\n int sum = 0;\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(sum==0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n x = i;\n y = j;\n sum = tmpSum;\n }\n }\n else {\n x = i;\n y = j;\n sum = tmpX + tmpY;\n\n }\n }\n }\n\n }\n }\n return new Position(x,y);\n }", "Position getPosition();", "Position getPosition();", "public Coordinate getPosition();", "public PointF getPosition()\n {\n return getMazeSprite().getPosition();\n }", "public Point getPosition();", "private Vector3f calcPosition() {\r\n float y = (float) (distance * Math.sin(Math.toRadians(pitch)));\r\n float xzDistance = (float) (distance * Math.cos(Math.toRadians(pitch)));\r\n float x = (float) (xzDistance * Math.sin(Math.toRadians(rotation)));\r\n float z = (float) (xzDistance * Math.cos(Math.toRadians(rotation)));\r\n return new Vector3f(x + center.x, y + center.y, z + center.z);\r\n }", "public int getPosition(int pawn){\n\t\treturn pawns[pawn-1].getPosition();\n\t}", "MapLocation getPosition(Unit unit);", "org.mojolang.mojo.lang.Position getStartPosition();", "@Override\n\tpublic Point getLocation() {\n\t\treturn position;\n\t}", "int getStartPosition();", "int getStartPosition();", "public Point getAbsPosition() {\n return Game.getMap().TFMapCoordinateToMapCenter(position);\n }", "Object getPosition();", "public PointF get_position() { return _position; }", "Vector2 getPosition();", "public Point getPosition(){\r\n return new Point(this.position);\r\n }", "int getPosition();", "public Point getLocation() {\n return pos;\n }", "public abstract int getStartPosition();", "String getLawnPosition();", "public PVector getLoc() {\n return location;\n }", "public PVector getLoc() {\n return location;\n }", "private Vec2 calculatePos() {\n\t\tNetTransformComponent transform = actor.getEntity().getNetTransform();\n\t\tif (transform != null) {\n\t\t\tVec2 screenPos = scene.getCamera()\n\t\t\t\t\t.getScreenCoordinates(Vec3.add(transform.getPosition(), new Vec3(-2.0f, 3.25f, 0.0f)));\n\t\t\tVec2 result = new Vec2(screenPos.getX(), screenPos.getY());\n\t\t\treturn result;\n\t\t}\n\n\t\treturn new Vec2(0.0f, 0.0f);\n\t}", "public Position getPosition();", "public Position getPosition();", "public Position getPosition();", "Tile getPosition();", "public Point getRobotLocation();", "public Point getPosition(){\n\t\treturn position;\n\t}", "@Override\n\t\t\tpublic Vector getPosition() {\n\t\t\t\treturn new Vector(-2709.487, -4281.02, 3861.564); //-4409.0, 2102.0, -4651.0);\n\t\t\t}", "godot.wire.Wire.Vector2 getPosition();", "public PVector getPosition() { return position; }", "public final Point getPosition()\n\t{\n\t\treturn pos;\n\t}", "public Point getPosition()\n\t{\n\t\treturn pos;\n\t}", "public Position getRobotPadPosition();", "godot.wire.Wire.Vector3 getPosition();", "@Override\n public double getPosition()\n {\n final String funcName = \"getPosition\";\n double pos = getMotorPosition() - zeroPosition;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", pos);\n }\n\n return pos;\n }", "public Point getPosition() {\n return this.position;\n }", "public Position position();", "private static PointDouble getAbsolutePosition(Stickable stickable, PointDouble pd) {\n\t\tint x = stickable.getRectangle().getX() + pd.getX().intValue() * stickable.getGridSize() / SharedConstants.DEFAULT_GRID_SIZE;\r\n\t\tint y = stickable.getRectangle().getY() + pd.getY().intValue() * stickable.getGridSize() / SharedConstants.DEFAULT_GRID_SIZE;\r\n\t\treturn new PointDouble(x, y);\r\n\t}", "@Override\n public PosDeg getPosition() {\n return tracker.getPosition();\n }", "DVector3C getPosition();", "public Vector2D getPosition ();", "public Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }", "void getPosRelPoint(double px, double py, double pz, DVector3 result);", "public Vector2 getPosition();", "public MowerPosition getPosition() {\n return position;\n }", "public Point getLocation();", "public Point getPosition() {\n return position;\n }", "public LatLng getPosition() { return new LatLng(latitude, longitude); }", "public abstract Vec2 doorPosition();", "public PVector getPosition(){\n\t\treturn position;\n\t}", "public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}", "public DoubleSolenoid.Value getPosition() {\n return m_ballholder.get();\n }", "public Point getPosition() {\n return new Point(position);\n }", "public double getPosition()\n {\n return position * FPS;\n }", "public Location getBedSpawnLocation ( ) {\n\t\treturn extract ( handle -> handle.getBedSpawnLocation ( ) );\n\t}", "String getPosY();", "public ScreenPosition getPosition()\n {\n return myPosition;\n }", "public Vector2D getPosition() {\n\t\treturn position;\n\t}", "public int getPosition();", "public Point3D getLocation() {\n\t\treturn p;\n\t}", "public int stapelPosition(Farbe farbe);", "public int PositionGet();", "public DVector getPosition()\n\t{\n\t\treturn this.screenPos;\n\t}", "public Cartesian3d getPosition() {\n return getMotion().getPosition();\n }", "public final Vector2D getPosition() {\n return position;\n }", "public Coordinate getPosition() {\n return cPosition;\n }", "public Point getLocation() { return loc; }", "public PVector getLocation()\n\t{\n\t\treturn location;\n\t}", "public int getCurrentPlayerRealPosition();", "public Optional<Integer> getPosition() {\n return this.placement.getAlleles().stream()\n .map(p -> p.getAllele().getSpdi().getPosition())\n .findFirst();\n }", "public Point getLocation() {\r\n\t\treturn this.center;\r\n\t}", "public static int getCoords()\n\t{\n\t\treturn moveCoords;\n\t}", "public Point getPosition() {\n\t\treturn new Point(getXPosition(), getYPosition());\n\t}", "public Point2D getPosition()\n {\n return mPosition;\n }", "public long getPosition();", "public final Vector2f getPosition() {\r\n return position;\r\n }", "@Override\n public Position getPosition() {\n return new Position(this.x, this.y);\n }", "public abstract Position getPosition();", "public GeoPoint position(){\n return position;\n }", "public int getX() { return position.x; }", "double getXPosition();", "public int getY() { return loc.y; }", "@Override\n\tpublic Vector2 getPosition() {\n\t\treturn body.getPosition();\n\t}", "public Point2 getPosition() {\r\n return this.position;\r\n }", "public PointF getPositionAnchor()\n {\n return positionAnchor;\n }", "public Vector2 getPosition() {\n\t\treturn pos;\n\t}", "public Vector getWorldPosition(){\n\t\treturn this.absPos;\n\t}", "Vector getPos();", "public List<Integer> pacmanLocation(){\n\n pacmanLocay.add(0);\n pacmanLocay.add(0);\n\n return pacmanLocay;\n }", "public Location getSpawnLocation() {\n return this.spawnLocation;\n }", "public int getPosition(Chamber c) {\n if (chambers.containsKey(c)) {\n return chambers.get(c);\n } else {\n return -1;\n }\n }", "public Vector2 getPosition() {\n\t\treturn position;\n\t}", "private Point2D getBoardPosition() {\n double size = getCellSize();\n double x = canvas.getWidth() / 2 - board.getWidth() * size / 2;\n double y = canvas.getHeight() / 2 - board.getHeight() * size / 2;\n\n return new Point2D(x, y);\n }", "public static int getBukkitPosition(int x,int y){\n return ((y-1)*9)+x-1;\n }" ]
[ "0.70034915", "0.70034915", "0.69621176", "0.6916878", "0.6916878", "0.6897655", "0.68868333", "0.6863933", "0.6805304", "0.6804457", "0.6799835", "0.6784986", "0.6767186", "0.67580783", "0.67580783", "0.67556804", "0.669134", "0.6668253", "0.66247964", "0.6619809", "0.6614771", "0.65917903", "0.6585202", "0.6582413", "0.6569062", "0.6569062", "0.65690416", "0.65408134", "0.65408134", "0.65408134", "0.65375453", "0.6520229", "0.6511706", "0.6501645", "0.6492946", "0.64829105", "0.64742696", "0.6454948", "0.6453408", "0.64505696", "0.6434346", "0.63985693", "0.63972485", "0.6390696", "0.63879246", "0.6385576", "0.638147", "0.63787514", "0.6363389", "0.6346676", "0.6344102", "0.63329387", "0.6332249", "0.63199234", "0.6298098", "0.62914485", "0.62911934", "0.6289398", "0.6288315", "0.6284281", "0.6283628", "0.6283504", "0.62796414", "0.6270757", "0.627045", "0.62642294", "0.6257094", "0.62538224", "0.62524325", "0.6249265", "0.62435627", "0.62423235", "0.62414646", "0.62392306", "0.6234372", "0.62268424", "0.62257916", "0.62254363", "0.6222833", "0.62195665", "0.62052834", "0.62023735", "0.62018347", "0.6201267", "0.62005216", "0.6196917", "0.6195702", "0.6194361", "0.61873", "0.6183586", "0.6182308", "0.6180498", "0.6180053", "0.6168019", "0.61592376", "0.61566484", "0.61549485", "0.61493254", "0.61437374", "0.6142596" ]
0.7742671
0
This constructor enables the Speak command.
public Speak() { super( "Speak", "Begin a conversation.", "p" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SendVoice() {\n super();\n }", "@Override\n\tpublic void canSpeak() {\n\t\t\n\t}", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "public void setSpeakEnable(boolean enable) {\n this.speakEnable = enable;\n if (speakEnable && mSynthesizer == null) {\n mSynthesizer = SpeechSynthesizer.createSynthesizer(context, this);\n setSynthesizerParam(params);\n }\n }", "public Voice() {\n }", "public Scribe()\n {\n \n }", "public HomeworkVoice() {\n super();\n }", "@Override\n public String speak()\n {\n return \"peep\";\n }", "public MediaAwareCallConference()\r\n {\r\n this(false);\r\n }", "private void speak() {\n if(textToSpeech != null && textToSpeech.isSpeaking()) {\n textToSpeech.stop();\n }else{\n textToSpeech = new TextToSpeech(activity, this);\n }\n }", "@Override\n public void speak() {\n System.out.println(\"I'm an Aardvark, I make grunting sounds most of the time.\");\n }", "@Override\n public void onClick(View v) {\n HashMap<String, String> hash = new HashMap<String, String>();\n hash.put(\n TextToSpeech.Engine.KEY_PARAM_STREAM,\n String.valueOf(AudioManager.STREAM_NOTIFICATION));\n textToSpeach.speak(questionText.getText().toString(), TextToSpeech.QUEUE_ADD, hash);\n }", "public Publisher() {\n // This constructor is intentionally empty. Nothing special is needed here.\n }", "@Override\n\tpublic void speak() {\n\t\tSystem.out.println(\"tik tik.......\");\n\t}", "public void speak(){\n System.out.println(\"Smile and wave boys. Smile and wave.\");\n }", "public Voice() {\n /* Make the utteranceProcessors a synchronized list to avoid\n * some threading issues.\n */\n utteranceProcessors = Collections.synchronizedList(new ArrayList());\n\tfeatures = new FeatureSetImpl();\n\tfeatureProcessors = new HashMap();\n\n\ttry {\n\t nominalRate = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"speakingRate\",\"150\"));\n\t pitch = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"pitch\",\"100\"));\n\t range = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"range\",\"10\"));\n\t volume = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"volume\",\"1.0\"));\n\t} catch (SecurityException se) {\n\t // can't get properties, just use defaults\n\t}\n outputQueue = null;\n audioPlayer = null;\n defaultAudioPlayer = null;\n }", "@Override\n\tpublic String speak() {\n\t\treturn null;\n\t}", "private void initializeTextToSpeech() {\n myTTS = new TextToSpeech(this, new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int i) {\n if(myTTS.getEngines().size() ==0){\n Toast.makeText(MainActivity.this, \"There is no Text to Speech engine on your device\", Toast.LENGTH_LONG).show();\n finish();\n }\n else {\n myTTS.setLanguage(Locale.US);\n speak(\"Hello! Welcome to the workout app\");\n\n }\n }\n });\n }", "private void init() {\n if (!isInitiated) {\n //Voices use by freeTTS, we define where they are, currently in the java en_us.jar\n //add the package\n addToSystemesPropetites(this.configurator.getLocation());\n\n // The VoiceManager manages all the voices for FreeTTS.\n voiceManager = VoiceManager.getInstance();\n\n this.defaultVoice = voiceManager.getVoice(this.configurator.getName());\n\n configureVoice(this.defaultVoice);\n\n // Allocates the resources for the voice.\n this.defaultVoice.allocate();\n isInitiated = true;\n }\n }", "public SpeakerMessageScreenController(ProgramController programController){\n super(programController);\n this.messageController = programController.getMessageController();\n speaker = programController.getAuthController().fetchLoggedInUser();\n }", "public void speak(){\n System.out.println(\"Shark bait oooh ha haa!\");\n }", "public ArbolSplay() {\n super();\n }", "@Override\n public void initialize() {\n //talonOrchestra.playMusic();\n }", "public MailCommand() {\n this(\"\");\n }", "@Override\n public void speak() {\n System.out.printf(\"i'm %s. I am a DINOSAURRRRR....!\\n\",this.name);\n }", "public void onSpeak(View v)\n\t{\n\t\tstartVoiceRecognitionActivity();\n\t}", "public void startCommand() {\r\n _playing = true;\r\n }", "@Override\n\tpublic void speak() {\n\t\tsuper.speak();\n\t\tSystem.out.println(\"I am a cat.\");\n\t}", "public Desinscription() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public CommunicationPlatform() {\n paused = false;\n }", "public Command() {\n }", "private void broadcastVoiceCommandAction() {\n\t\tVoiceCommandStartIntent.putExtra(\"command\", mApplications.get(CurIndex).title);\r\n\t\tcontext.sendBroadcast(VoiceCommandStartIntent);\r\n\t}", "public VOCSesame () {\n }", "public void speak() {\r\n\t\tSystem.out.print(\"This Tiger speaks\");\r\n\t}", "public Play() {\n }", "public Command() {\n this.arguments = new String[0];\n }", "public HelpCommand()\n {\n }", "public void speak() {\r\n\t\tSystem.out.print(\"This Goose speaks\");\r\n\t}", "public CallMessage() {\n\t}", "public xCommandOnText(String command){ this.init(command); }", "public TriggerMessage() {\n\t}", "public AudioSettings() {\n this.emulator = NEmuSUnified.getInstance().getEmulator();\n }", "public USBAmp() {\r\n super();\r\n }", "public TalkSystem(){\n this.talkManager = new TalkManager();\n this.messagingSystem = new MessagingSystem();\n this.scheduleSystem = new ScheduleSystem(talkManager);\n this.signUpMap = talkManager.getSignUpMap();\n }", "void speak() {\n\t\tSystem.out.println(\"저의 이름은 \" + name + \"이고 \" + \"혈액형은 \" + booldType +\"형 입니다\");\n\t}", "private void speak() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM) ;\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());\n intent.putExtra(RecognizerIntent.EXTRA_PROMPT, \"Speak the Item\");\n\n startActivityForResult(intent, SPEECH_REQUEST_CODE);\n\n }", "public Protocol() {\n super();\n ADDRESS_PREFIX = \"sms://\";\n }", "public void speak(String outputSpeak) \n {\n speaker.speaker(outputSpeak);\n }", "@Override\r\n\tpublic void mesage() {\n\t\tSystem.out.println(\"通过语音发短信\");\r\n\t}", "public void speak(String text);", "@Override\n public void onInit(int status) {\n\t \n\tif (status == TextToSpeech.SUCCESS) {\n\t\t \n int result = mTts.setLanguage(Locale.US);\n if (result != TextToSpeech.LANG_MISSING_DATA && result != TextToSpeech.LANG_NOT_SUPPORTED) {\n \tspokenText += spokenText+\"\"+spokenText+\"\";\n // mTts.speak(\"Dear sir your class is finished!! Dear sir your class is finished!! Dear sir your class is finished!!\", TextToSpeech.QUEUE_FLUSH, null);\n mTts.speak(spokenText, TextToSpeech.QUEUE_FLUSH, null);\n } \n } \n\t \n}", "public void speakClicked(View v)\n {\n EditText editText = (EditText) findViewById(R.id.inputText);\n\n mTts.speak(editText.getText().toString(),\n TextToSpeech.QUEUE_FLUSH, // Drop all pending entries in the playback queue.\n null,\n null);\n }", "public Voice(String name){\r\n this.name = name;\r\n }", "@Override\r\n\tpublic boolean canShow() {\r\n\t\treturn super.canShow() &&\r\n\t\t\t\t(getSpeakControl().isSpeaking() || getSpeakControl().isPaused());\r\n\t}", "public PublishSubscribeChannel() {\n\t\tthis(false);\n\t}", "@Override\n\tpublic void speak() {\n\t\tSystem.out.println(\"Hello I override the default method\");\n\t}", "public void enableChat();", "@Override\r\n\tpublic void call() {\n\t\tSystem.out.println(\"通过语音打电话\");\r\n\t}", "public SpeakerThread( LayeredSound.SoundClip s )\r\n\t\t{\r\n\t\t\tsuper( \"Speaker Thread #\" + ID++ );\r\n\t\t\tthis.sound = new LayeredSound.SoundClip( s );\r\n\t\t\tsetPriority( MIN_PRIORITY );\r\n\t\t}", "public GUIBroadcaster() {\r\n\t}", "private void initSpeechManager() {\n mSpeechManager = SpeechManager.getInstance(this);\n }", "private ACARSSoundingTools() {\n\n }", "public CommandMAN() {\n super();\n }", "public GlobalChat() {\r\n // Required empty public constructor\r\n }", "public TrackCoach() {\n\n\t}", "public Poke() {\n\t\tsuper(\"POKE\");\n\t}", "@Override\n public void onEnable(){\n \tgetLogger().info(\"onEnable has been invoked!\");\n \t// This will throw a NullPointerException if you don't have the command defined in your plugin.yml file!\n \tgetCommand(\"basic\").setExecutor(new BetatestCommandExecutor(this));\n \tgetCommand(\"WhatAmI\").setExecutor(new BetatestCommandExecutor(this));\n \tgetCommand(\"isonline\").setExecutor(new BetatestCommandExecutor(this));\n }", "protected void start() {\n\t\thellotv.setText(\"\");\n\t\tMap<String, Object> params = new LinkedHashMap<String, Object>();\n\t\tString event = null;\n\t\tevent = SpeechConstant.ASR_START;\n\t\t\n\t\tif (enableOffline) {\n params.put(SpeechConstant.DECODER, 2);\n }\n\t\t\n\t\tparams.put(SpeechConstant.ACCEPT_AUDIO_VOLUME, false);\n\t\t//params.put(SpeechConstant.PID, 1737);//English\n\t\t\n\t\tString json = null;\n\t\tjson = new JSONObject(params).toString();\n\t\tasr.send(event, json, null, 0, 0);\n\t\t\n\t\tprintresult(\"输入参数\"+ json);\n\t}", "@Override\n public void onInit(int status) {\n showNotification(\"text to speech is ready\", Snackbar.LENGTH_SHORT);\n registerBroadCastReceiver();\n }", "public Chat() {\n }", "private Audio() {}", "public Command() {\r\n\t\t// If default, use a local one.\r\n\t\tmYCommandRegistry = LocalCommandRegistry.getGlobalRegistryStatic();\r\n\t}", "ClientMessageSender() {\n\n\t}", "public Music()\n {\n this(0, \"\", \"\", \"\", \"\", \"\");\n }", "public Chat(){ }", "public PSKeywordChoice()\n {\n }", "public WeiXinVo() {\n\t\tsuper();\n\t}", "public EmailSender()\r\n {\r\n this(\"javaemailsender\" ,\"sendtestemail\");\r\n }", "@Override\n public void onEnable() {\n instance = this;\n\n getLogger().info(\"Hello, SpigotMC!\");\n\n getServer().getPluginManager().registerEvents(new Listeners(), this);\n }", "public Communicator() {\n\t\tcommlock = new Lock ();\n\t\tspeaker = new Condition(commlock);\n\t\tlistener = new Condition(commlock);\n\n }", "private void setup(Command cmd) throws RuntimeException, PropertyException, IOException, EngineException{\n\t\tbaseRec = new BaseRecognizer(((JSGFGrammar) cm.lookup(\"jsgfGrammar\")).getGrammarManager());\n\t\trecognizer = (Recognizer) cm.lookup(\"recognizer\");\n\t\tmicrophone = (Microphone) cm.lookup(\"microphone\");\n\n\t\tbaseRec.allocate();\n\t\trecognizer.allocate();\n\t}", "public void speak() {\r\n\t\tSystem.out.print(\"This animal speaks\");\r\n\t}", "public Subscription() {\n System.out.println(\"create new subscription\");\n }", "@Override\n public String speak()\n {\n return \"Neigh\";\n }", "private CommandBrocker() {}", "public TCommChatPanel() {\r\n\t\tinitialize();\r\n\t}", "public SoundController() {\r\n // initialize the module libraries\r\n this.initModuleLibraries();\r\n\r\n // in this moment no sonification map is defined\r\n this.sonificationMap = new HashMap<String, SonificationMap>();\r\n\r\n // in this moment we have an empty soundMap\r\n this.soundsMap = new HashMap<String, Sound>();\r\n\r\n // in this moment no type names are defined\r\n this.soundEventsTypeNameMap = new HashMap<String, String>();\r\n\r\n // create the GUI component\r\n this.tabSound = new TabSound(this);\r\n\r\n // create the sounds-events active state empty map\r\n this.soundEventActiveStateMap = new HashMap<String, Boolean>();\r\n\r\n // enable sound\r\n this.setEnabled(true);\r\n\r\n // the sound is active by default\r\n soundOn = true;\r\n\r\n // empty events queue\r\n eventQ = new ConcurrentLinkedQueue<EnvironmentEvent>();\r\n\r\n // the module thread is not running yet\r\n running = false;\r\n\r\n this.soundThread = new Thread(this);\r\n }", "public boolean speak(String text) {\n\treturn speak(new FreeTTSSpeakableImpl(text));\n }", "private SubjectManagement() {\n\n\t}", "public void speakButtonClicked(View v)\n {\n startVoiceRecognitionActivity();\n }", "public Conversation() {}", "public Subject() {\n\t}", "public SampledPolicy() {\r\n super(ExecutablePolicyType.SAMPLED);\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(isSpeaker) {\n\t\t\t\t\t//当前是扬声器模式,需切换为听筒模式\n\t\t\t\t\talert.dismiss();\n\t\t\t\t\taudioManager.setMode(AudioManager.MODE_IN_CALL);\n\t\t\t\t\tisSpeaker = false;\n\t\t\t\t\teditor.putInt(\"mode\", AudioManager.MODE_IN_CALL);\n\t\t\t\t\teditor.commit();\n\n\t\t\t\t}else {\n\t\t\t\t\talert.dismiss();\n\t\t\t\t\taudioManager.setMode(AudioManager.MODE_NORMAL);\n\t\t\t\t\tisSpeaker = true;\n\t\t\t\t\teditor.putInt(\"mode\", AudioManager.MODE_NORMAL);\n\t\t\t\t\teditor.commit();\n\n\t\t\t\t}\n\t\t\t\thandler.sendEmptyMessage(0x777);\n\n\t\t\t}", "@Override\r\n public void onCreate(Bundle savedInstanceState)\r\n {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.chatterbox);\r\n\r\n // [mfs] This disables headphone communication... not exactly what we\r\n // want, but enough of a demo to make things straightforward...\r\n //AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\r\n //am.setMode(AudioManager.MODE_IN_CALL);\r\n //am.setSpeakerphoneOn(true);\r\n }", "public SoundEvent() \n\t{\n\tsuper(GAME_SOUND_EVENT);\n\t}", "public NetspeakAnalysisEngine() {\n super(Sentence.class, Token.class);\n this.netspeakCache = new Cache<>(new NetspeakRetriever());\n this.setApiBaseUrl(DEFAULT_API_BASE_URL);\n this.setPreviousContextSize(DEFAULT_PREVIOUS_CONTEXT_SIZE);\n this.setFollowingContextSize(DEFAULT_FOLLOWING_CONTEXT_SIZE);\n this.setMaxResults(DEFAULT_MAX_RESULTS);\n }", "public Notifica(){}", "void start() {\n\t\t\n\t\ttts = new TextToSpeech(getApplicationContext(), new TextToSpeech.OnInitListener() {\n\t\t\t@Override\n\t\t\tpublic void onInit(int status) {\n\t\t\t\tif (status != TextToSpeech.ERROR) {\n\t\t\t\t\ttts.setLanguage(Locale.KOREAN);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\trecognizerIntent = new Intent(RecognizerIntent.ACTION_VOICE_SEARCH_HANDS_FREE);\n\t\trecognizerIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getPackageName());\n\t\trecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, \"ko-KR\");\n\t\t\n\t\tmRecognizer = SpeechRecognizer.createSpeechRecognizer(this);\n\t\tmRecognizer.setRecognitionListener(recognitionListener);\n\t\t\n\t\t\n\t\tV_button.setOnClickListener(new View.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tif (AL_keywordSelected.size() == 0)\n\t\t\t\t\tstartVoice();\n\t\t\t\telse {\n\t\t\t\t\tString str = \"\";\n\t\t\t\t\t\n\t\t\t\t\tfor (String s : AL_keywordSelected)\n\t\t\t\t\t\tstr += s + \" \";\n\t\t\t\t\t\n\t\t\t\t\tsendMsg(str);\n\t\t\t\t\tinitKeyword();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tfirestore.collection(\"command\")\n\t\t\t.addSnapshotListener(new EventListener<QuerySnapshot>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onEvent(@Nullable QuerySnapshot snapshots, @Nullable FirebaseFirestoreException e) {\n\t\t\t\t\tif (e != null) {\n\t\t\t\t\t\tlog(\"listen:error\" + e);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor (DocumentChange dc : snapshots.getDocumentChanges()) {\n\t\t\t\t\t\tQueryDocumentSnapshot document = dc.getDocument();\n\t\t\t\t\t\t\n\t\t\t\t\t\tString key = document.getId();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tCommand command;\n\t\t\t\t\t\t\tswitch (dc.getType()) {\n\t\t\t\t\t\t\t\tcase ADDED:\n\t\t\t\t\t\t\t\t\tcommand = new Command(key, document);\n\t\t\t\t\t\t\t\t\tlog(\"New: \" + key);\n\t\t\t\t\t\t\t\t\tlog(command.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmapData.put(key, command);\n\t\t\t\t\t\t\t\t\tupdateKeyword();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase MODIFIED:\n\t\t\t\t\t\t\t\t\tcommand = new Command(key, document);\n\t\t\t\t\t\t\t\t\tlog(\"Modified: \" + key);\n\t\t\t\t\t\t\t\t\tlog(command.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tCommand oldCommand = mapData.get(key);\n\t\t\t\t\t\t\t\t\tif (command.responseTimestamp.getSeconds() != oldCommand.responseTimestamp.getSeconds()) {\n\t\t\t\t\t\t\t\t\t\tfor (String waitingKey : waitingKeys) {\n\t\t\t\t\t\t\t\t\t\t\tif (waitingKey.equals(key)) {\n\t\t\t\t\t\t\t\t\t\t\t\taddOutputMessage(command.response);\n\t\t\t\t\t\t\t\t\t\t\t\twaitingKeys.remove(key);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmapData.put(key, command);\n\t\t\t\t\t\t\t\t\tupdateKeyword();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase REMOVED:\n\t\t\t\t\t\t\t\t\tcommand = new Command(key, document);\n\t\t\t\t\t\t\t\t\tlog(\"Removed: \" + key);\n\t\t\t\t\t\t\t\t\tlog(command.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmapData.remove(key);\n\t\t\t\t\t\t\t\t\tupdateKeyword();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\tlog(\"error: \" + key);\n\t\t\t\t\t\t\te1.printStackTrace();\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});\n\t\t\n\t}", "public TranscribedNote()\r\n {\r\n\r\n }" ]
[ "0.6715824", "0.63450164", "0.60898167", "0.60533834", "0.59886163", "0.59700745", "0.58531743", "0.5785867", "0.57741606", "0.5710826", "0.5632505", "0.5585723", "0.5583827", "0.5566491", "0.55117214", "0.5506131", "0.5477098", "0.5467421", "0.54633486", "0.5449295", "0.5449059", "0.54041016", "0.5401998", "0.5401564", "0.5395225", "0.5384445", "0.5383648", "0.5376889", "0.53637105", "0.53510773", "0.5349668", "0.53487015", "0.53437304", "0.53219587", "0.53180915", "0.53129303", "0.53119224", "0.5310423", "0.53103656", "0.5308173", "0.5307723", "0.5307595", "0.5302669", "0.530166", "0.52976245", "0.52701366", "0.52547514", "0.5254565", "0.52497447", "0.52391624", "0.5238851", "0.5237276", "0.5223791", "0.5220182", "0.52157235", "0.52104086", "0.51818067", "0.51808715", "0.5180542", "0.5179817", "0.51766664", "0.5175406", "0.516877", "0.5168296", "0.51659435", "0.5165711", "0.5162064", "0.516036", "0.51521206", "0.51507396", "0.514324", "0.5139486", "0.51300144", "0.51231956", "0.5123137", "0.51195323", "0.50863457", "0.50773925", "0.50772583", "0.50765824", "0.5074564", "0.5071856", "0.50697833", "0.50624186", "0.5059939", "0.50572056", "0.5054775", "0.5054484", "0.5053106", "0.5051798", "0.5049106", "0.50450027", "0.5039685", "0.50367004", "0.5032661", "0.5029342", "0.50211805", "0.5020417", "0.5019628", "0.50165236" ]
0.8279296
0
When run, this method will cause the target to initiate their initial dialog.
public void run( Operation operation ) { String[] commands = operation.getinputArray(); GamePlayer player = Engine.currentPlayer(); boolean spoken = false; for ( GameComponent component : Engine.componentList() ) { if ( component instanceof GameSpeaker && component.getName().equalsIgnoreCase( commands[ 2 ] ) && player.getLocation().hasSpeaker( commands[ 2 ], false ) ) { GameSpeaker speaker = ( GameSpeaker ) component; speaker.initiateDialog(); spoken = true; break; } } if ( !spoken ) { IO.add( "There is no " + commands[ 2 ] + " to speak to here." ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initDialog() {\n }", "@Override\n public void onStart() {\n pDialog.show();\n }", "public abstract void initDialog();", "private void initializeUI() {\r\n this.parentFrame = game.getFrame();\r\n parentFrame.setEnabled(false); // Disable main game UI during the ending dialog.\r\n createResultPopup();\r\n }", "public void start() {\n dialogContainer.getChildren().addAll(\n DialogBox.getDukeDialog(Messages.START, dukeImage)\n );\n }", "@Override\n\tpublic void init() {\n//\t\tSystem.out.println(\"init UIAgent\");\n\n//\t\tSystem.out.println(\"closing old dialog of \");\n\t\tif (ui != null) {\n\t\t\tui.dispose();\n\t\t\tui = null;\n\t\t}\n//\t\tSystem.out.println(\"old dialog closed. Trying to open new dialog. \");\n\t\ttry {\n\t\t\tui = new EnterBidDialog(this, null, true,\n\t\t\t\t\t(AdditiveUtilitySpace) utilitySpace, null);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Problem in UIAgent2.init:\" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n//\t\tSystem.out.println(\"finished init of UIAgent2\");\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog.show();\n\t\t}", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "@Override\n protected void onPreExecute()\n {\n dialog.show();\n super.onPreExecute();\n }", "public void initiateAction() {\r\n\t\t// TODO Auto-generated method stub\t\r\n\t}", "public void setup() {\n self.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n // make dialog background unselectable\n self.setCanceledOnTouchOutside(false);\n }", "void startScript() {\n\n\t\tif (UIHANDLER_WS_NAME.equalsIgnoreCase((String) core.readDataPool(\n\t\t\t\tDP_ACTUAL_UIHANDLER, preferences.getString(\n\t\t\t\t\t\tPropName_UIHander, UIHANDLER_WS_NAME)))) {\n\n\t\t\t// startButtonLabel.setIcon(resourceMap.getIcon(\"startButtonLabel.icon\"));\n\t\t\tcore.getSystemIF().openBrowser();\n\t\t} else {\n\t\t\tArchive ActiveArchive = (Archive) mSourceSpinner.getSelectedItem();\n\t\t\tif (ActiveArchive == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tpreferences\n\t\t\t\t\t.edit()\n\t\t\t\t\t.putString(PropName_ScriptName,\n\t\t\t\t\t\t\tActiveArchive.getFileName()).commit();\n\t\t\tcore.writeDataPool(DP_ACTIVE_ARCHIVE, ActiveArchive);\n\t\t\tcore.startScriptArchive(ActiveArchive);\n\n\t\t\t// ----------------------------------------------------------\n\t\t\t// prepare the \"load Script\" message\n\t\t\tDiagnose.showDialog = true;\n\t\t\t// the following trick avoids a recreation of the Diagnose\n\t\t\t// TapActivity as long as the previous created one is still\n\t\t\t// in memory\n\t\t\tIntent i = new Intent();\n\t\t\ti.setClass(MainActivity.this, DiagnoseTab.class);\n\t\t\ti.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\tstartActivity(i);\n\n\t\t}\n\n\t}", "@Override\n\tpublic void show() {\n\t\tGameView.VIEW.addDialog(this);\n\t\tsuper.show();\n\t}", "public StandardDialog() {\n super();\n init();\n }", "public void run() {\n\t\t\tshowSystemDialog(ResultMsg);\r\n\t\t}", "private void openCreateAccountDialog()\n {\n testDialog();\n\n }", "private void dialogAbout() {\n\t\tGraphicalUserInterfaceAbout.start();\r\n\t}", "@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t progressDialog = new AutoTuningInitDialog(mChannelActivity, R.style.dialog);\n\t\t\tprogressDialog.show();\t\t\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }", "@Override\n\t\t\tpublic void onStart()\n\t\t\t{\n\t\t\t\tsuper.onStart();\n\t\t\t\tdialog = MessageDialog.createLoadingDialog(HelpActivity.this, \"Loadding\");\n\t\t\t\tdialog.show();\n\t\t\t}", "private void process() {\n final PluginsDialog dialog = new PluginsDialog();\n dialog.show();\n }", "@Override\n public void autonomousInit() {\n\n autonomousCommand = new Autonomous(start.getSelected(), chooser.getSelected());\n \n autonomousCommand.start();\n }", "@Override protected void startup() {\n show(new MIDLetParamsView(this));\n }", "@Override\n public void run() {\n new ExpenseDaoImpl().init();\n new PopupDescDaoImpl().init();\n new ScheduleDaoImpl().init();\n\n Main dialog = new Main(new javax.swing.JFrame(), true);\n dialog.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent e) { \n System.exit(0);\n }\n });\n dialog.setVisible(true);\n }", "public void show() {\n listenerHandler.onShow(dialog);\n dialog.show();\n }", "public void onOpen() {\n\t\t\n\t\t//if things are dirty, ask if they're sure they want to do this\n\t\tif(FormDesignerController.getIsDirty())\n\t\t{\n\t\t\t//if the use says no, then bounce\n\t\t\tif(!Window.confirm(LocaleText.get(\"newFormConfirm\")))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\txformsWidget.hideWindow();\n\t\tFormUtil.dlg.setText(\"Opening...\");\n\t\tFormUtil.dlg.show();\n\n\n\t\tScheduler.get().scheduleDeferred(new Command() {\n\t\t\tpublic void execute() {\n\t\t\t\ttry {\n\t\t\t\t\t//openFile();\n\t\t\t\t\txformsWidget.setXform(\"\");\n\t\t\t\t\txformsWidget.showOpenButton(true);\n\t\t\t\t\txformsWidget.showWindow();\n\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n protected void complete()\n {\n // Log the result of the script execution(s)\n logScriptCompletionStatus(associations, isBad);\n\n // Enable the calling dialog's controls\n dialog.setControlsEnabled(true);\n }", "public void display() {\n dialog.setVisible(true);\n }", "private void initialize() {\r\n\ttry {\r\n\t\t// user code begin {1}\r\n\t\t// user code end\r\n\t\tsetName(\"OpenExcelDialog\");\r\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tsetSize(450, 160);\r\n\t\tsetContentPane(getJDialogContentPane());\r\n\t} catch (java.lang.Throwable ivjExc) {\r\n\t\thandleException(ivjExc);\r\n\t}\r\n\t// user code begin {2}\r\n\tgetJPanel1().setBorder(new LineBorder(getBackground().brighter()));\r\n\r\n\tgetBtnFile().addActionListener(new ActionListener(){\r\n\t\tpublic void actionPerformed(ActionEvent ae){\r\n\t\t\topenFile();\r\n\t\t}\r\n\t});\r\n\tgetBtnOK().addActionListener(new ActionListener(){\r\n\t\tpublic void actionPerformed(ActionEvent ae){\r\n\t\t\tokClick = true;\r\n\t\t\tsetVisible(false);\r\n\t\t}\r\n\t});\r\n\tgetBtnCancel().addActionListener(new ActionListener(){\r\n\t\tpublic void actionPerformed(ActionEvent ae){\r\n\t\t\tokClick = false;\r\n\t\t\tsetVisible(false);\r\n\t\t}\r\n\t});\r\n\t// user code end\r\n}", "public void start()\n\t{\n\t\tview.showWindow();\n\t\taddListeners();\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "public final void initialize() {\n platformComponent.initialize(getPlatformWindow());\n initializeImpl();\n setVisible(target.isVisible());\n }", "public void autonomousInit() {\n autonomousCommand = (Command) autoChooser.getSelected();\n autonomousCommand.start();\n// \n }", "public SimulatorHelpDialog() {\n super((Frame)null, true);\n initComponents();\n initialize();\n }", "private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "public void initialize() {\n\t\tint consumerCount = 9, max_integer = 10;\r\n\t\tisValidInputs = true;\r\n\t\t\r\n\t\t// Init inputs\r\n\t\tinput_threads.setText(String.valueOf(consumerCount));\r\n\t\tinput_max_num.setText(String.valueOf(max_integer));\r\n\t\tbtn_stop.setDisable(true);\r\n\t\t\r\n\t\tJFXDialogLayout content = new JFXDialogLayout();\r\n\t\tcontent.setHeading(new Text(\"Introdução\"));\r\n\t\tcontent.setBody(new Text(\"\\n Após configurar os parâmetros disponíveis do lado esquerdo,\" +\r\n\t\t\t\t\t\t\t\t \"\\n clique em START para começar a simulação.\\n\" + \r\n\t\t\t\t\t\t\t\t \"\\n Cada bloco representa uma thread, o qual mostra o número\" +\r\n\t\t\t\t\t\t\t\t \"\\n que está sendo processado pela única thread ativa, visto que\" +\r\n\t\t\t\t\t\t\t\t \"\\n cada thread compete pelo 'lock' do monitor. \\n\"));\r\n\t\t\r\n\t\tJFXDialog dialog = new JFXDialog(dialog_pane, content, JFXDialog.DialogTransition.CENTER);\r\n\t\tJFXButton btn_dialog = new JFXButton(\"OK\");\r\n\t\tbtn_dialog.setCursor(Cursor.HAND);\r\n\t\tbtn_dialog.setOnAction(new EventHandler<ActionEvent>(){\r\n\t\t @Override\r\n\t\t public void handle(ActionEvent event){\r\n\t\t dialog.close();\r\n\t\t }\r\n\t\t});\r\n\t\tcontent.setActions(btn_dialog);\r\n\t\tdialog.show();\r\n\t\t\r\n\t\t// Start Button\r\n\t\tbtn_start.setOnAction((event) -> {\r\n\t\t\t\r\n\t\t\tif(Integer.parseInt(input_threads.getText()) > 64 || Integer.parseInt(input_threads.getText()) < 1) {\r\n\t\t\t\tisValidInputs = false;\r\n\t\t\t\tinput_threads.setFocusColor(Color.RED);\r\n\t\t\t\tinput_threads.requestFocus();\r\n\t\t\t} else if(Integer.parseInt(input_max_num.getText()) > 1000 || Integer.parseInt(input_max_num.getText()) < 1) {\r\n\t\t\t\tisValidInputs = false;\r\n\t\t\t\tinput_max_num.setFocusColor(Color.RED);\r\n\t\t\t\tinput_max_num.requestFocus();\r\n\t\t\t} else {\r\n\t\t\t\tisValidInputs = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(isValidInputs) {\r\n\t\t\t\tinitWindow();\r\n\t\t\t\tbtn_start.setDisable(true);\r\n\t\t\t\tbtn_stop.setDisable(false);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tOpenABOXJDialog getStarted = new OpenABOXJDialog(frame, myst8);\n\t\t\t\tgetStarted.setModal(true);\n\t\t\t\tgetStarted.setVisible(true);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.initExisting(getStarted.getTBOXLocationTextField(), \n\t\t\t\t\t\t\t\tgetStarted.getTBOXIRI(), \n\t\t\t\t\t\t\t\tgetStarted.getABOXLocationTextField(),\n\t\t\t\t\t\t\t\tgetStarted.getABOXIRI());\n\t\t\t\t\tmodel.setState(ABOXBuilderGUIState.ABOXLoaded);\n\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(\"Uh-oh - an exception occurred when loading the ontology: \" + e1.getMessage()));\n\t\t\t\t}\n\t\t\t\tprocessMessageQueue();\n\t\t\t}", "@Override\n public void askForTargetingScope() throws RemoteException {\n mainPage.setRemoteController(senderRemoteController);\n mainPage.setMatch(match);\n Platform.runLater(\n () -> {\n try {\n mainPage.askForTargetingScope();\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n }", "public void intialRun() {\n }", "@Override\n\tpublic void provideInitialChoice() throws RemoteException {\n\t\tgamePane.showAsStatus(\"Please choose your figure to decide who starts\");\n\t\tgamePane.showInitialChoicePane();\n\t}", "public abstract void initUiAndListener();", "public void start() {\n SetupGUI setup = new SetupGUI();\n }", "private void initUI() {\n }", "public void working() {\n\t\t Dialog d = new Dialog(this);\r\n\t\t d.setTitle(\"hech yea!\");\r\n\t\t TextView tv = new TextView(this);\r\n\t\t tv.setText(\"Success\");\r\n\t\t d.setContentView(tv);\r\n\t\t d.show();\t\r\n\t}", "public static void run()\n {\n JFrame invisibleFrame = new InvisibleFrame(TITLE);\n try {\n MainDialog mainDialog = new MainDialog(invisibleFrame);\n mainDialog.setVisible(true);\n } finally {\n invisibleFrame.dispose();\n }\n }", "@Override\n\tpublic void execute() {\n\t\tProjectOpenAllPrompt prompt = new ProjectOpenAllPrompt();\n\t\tprompt.setProceedEvent(ee -> {\n\t\t\tprompt.close();\n\t\t\tString name = ((Button) ee.getSource()).getId();\n\t\t\tIGameRunner gameRunner = new GameRunner();\n\t gameRunner.playGame(name);\n\t\t});\n\t\tprompt.show();\n\t}", "public void execute() {\n _plugin.openNavigator();\n }", "DialogResult show();", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "public void autonomousInit() {\n //autonomousCommand = (Command) chooser.getSelected();\n autoLoopCounter = 0; //This resets the loop counter to 0\n //if (autonomousCommand != null) autonomousCommand.start();\n }", "private void showDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "private Dialogs () {\r\n\t}", "@Override\n\tprotected void onPreExecute() {\t\t\n\t\t// setup dialog\n\t\tif (dialog!=null){\n\t\t\tdialog.setProgress(0);\n\t\t\tdialog.setMessage(\"Initialized\");\n\t\t}\n\t\t\n\t\tif (callback!=null){\n\t\t\tcallback.onTaskUpdate(null, 0);\n\t\t}\n\t}", "protected void setupUI() {\n\n }", "public void execute() {\n try {\n final DemoManagerWindow window = new DemoManagerWindow();\n window.setResizable(false);\n window.setDemoManager(this);\n window.setDemoProvider(this);\n window.setVisibleAndWait();\n } catch (final Throwable t) {\n throw new BrowserException(\"\", t);\n }\n }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmVideoContrl.start();\r\n\t\t\t\t\t\tisBreakDialogDissmiss = true;\r\n\t\t\t\t\t\tsendFirstShowContrlBtn();\r\n\t\t\t\t\t\tisChangeNotStart = true;\r\n\t\t\t\t\t\tmVideoPlayerHander.sendEmptyMessage(REFRESH_PAUSEBUTON);\r\n\t\t\t\t\t\t// start_3Dmode();\r\n\t\t\t\t\t}", "public void projectOpened() {\n initToolWindow();\n }", "public void startUp() {\n\t\twhile (startupSettings.getContinue()) {\n\t\t\tstartView.showLogo();\n\t\t\tthis.setupNewMatch();\n\t\t\tstartView.showNewMatchStarting();\n\t\t\tcurrentMatch.start();\n\t\t\tstartupSettings = startView.askNewStartupSettings();\n\t\t}\n\t\tthis.ending();\n\t}", "public void run() {\n\t\t\t\t\t\t\tProposal p = getSelectedProposal();\n\t\t\t\t\t\t\tif (p != null) {\n\t\t\t\t\t\t\t\tString description = p.getDescription();\n\t\t\t\t\t\t\t\tif (description != null) {\n\t\t\t\t\t\t\t\t\tif (infoPopup == null) {\n\t\t\t\t\t\t\t\t\t\tinfoPopup = new InfoPopupDialog(getShell());\n\t\t\t\t\t\t\t\t\t\tinfoPopup.open();\n\t\t\t\t\t\t\t\t\t\tinfoPopup.getShell()\n\t\t\t\t\t\t\t\t\t\t\t\t.addDisposeListener(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew DisposeListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void widgetDisposed(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDisposeEvent event) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tinfoPopup = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinfoPopup.setContents(p.getDescription());\n\t\t\t\t\t\t\t\t} else if (infoPopup != null) {\n\t\t\t\t\t\t\t\t\tinfoPopup.close();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpendingDescriptionUpdate = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "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 }", "public JDialogScenarioResult(Window owner) {\r\n\t\tsuper(owner);\r\n\t\tthis.initialize();\r\n\t\tthis.loadDatabaseSettings();\r\n\t}", "@Override\n\tpublic void teleopInit() {\n\t\tchooser.getSelected().cancel();\t\t\n\t}", "@Override\n protected void onPreExecute() {\n\n this.dialog.setMessage(\"Please wait ...\");\n this.dialog.show();\n }", "@Override\n\t\t protected void onPreExecute() {\n\t\t\t InitializeUI();\n\t\t }", "public void trigger() {\n triggered = true;\n\n // Get events from the user\n stage = new Stage(new ScreenViewport());\n show();\n }", "private void initQuestionDialog() {\n\t\tquestion = true;\n\t\tchangeDirBehaviour(Values.DETECT_INIT);\n\t}", "public void run() {\n ui.showWelcomeMessage();\n runUntilExit();\n }", "public void run(){\n\n if(!initProxy()){\n //Check if we have been aborted\n if(mode != OK_MODE) return;\n if(net_thread != Thread.currentThread()) return;\n\n mode = COMMAND_MODE;\n warning_label.setText(\"Look up failed.\");\n warning_label.invalidate();\n return;\n }\n\n //System.out.println(\"Done!\");\n while(!warning_dialog.isShowing())\n ; /* do nothing*/;\n\n warning_dialog.dispose();\n //dispose(); //End Dialog\n }", "public void startTest(){\n\t\t\tMainUIHandler.sendEmptyMessage(UI_START_TEST);\t\n\t\t}", "public void begin() {\n\t\tview.setVisible(true);\n\t}", "public void started()\n {\n playerOneName = JOptionPane.showInputDialog( null, \"Please enter your name:\", \"PlayerOne Name\", JOptionPane.QUESTION_MESSAGE );\n playerTwoName = JOptionPane.showInputDialog( null, \"Please enter your name:\", \"PlayerTwo Name\", JOptionPane.QUESTION_MESSAGE );\n }", "protected void do_mntmStartNewForm_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t\tmain(null);\n\t}", "public void onStart() {\r\n\t\tthis.setVisible(true);\r\n\t}", "public ConfigureUpdatesDialog() {\n super(StrangeEons.getWindow(), ModalityType.TOOLKIT_MODAL);\n initComponents();\n AbstractGameComponentEditor.localizeComboBoxLabels(frequencyCombo, null);\n AbstractGameComponentEditor.localizeComboBoxLabels(actionCombo, null);\n banner.setIcon(new ImageIcon(\n ResourceKit.createBleedBanner(((ImageIcon) banner.getIcon()).getImage())\n ));\n setLocationRelativeTo(getParent());\n\n Settings s = Settings.getUser();\n s.set(\"core-dialog-shown\", \"yes\");\n //doNotShowCheck.setSelected( s.getYesNo( \"core-dialog-autoinstall\" ) );\n\n frequencyCombo.setSelectedIndex(AutomaticUpdater.getUpdateFrequency());\n actionCombo.setSelectedIndex(AutomaticUpdater.getUpdateAction() == 0 ? 0 : 1);\n newPluginsCheck.setSelected(AutomaticUpdater.isShowingNewPlugins());\n appUpdateCheck.setSelected(AutomaticUpdater.isShowingAppUpdates());\n doneInit = true;\n }", "@Override\n public void begin() {\n\n Objects.requireNonNull(this.model);\n Objects.requireNonNull(this.view);\n initiateKeyboard();\n initiateMouse();\n view.showView();\n\n }", "@FXML\n public void initialize() {\n scrollPane.vvalueProperty().bind(dialogContainer.heightProperty());\n scrollPane.setFitToHeight(true);\n scrollPane.setFitToWidth(true);\n start();\n }", "public void start() {\n\t\tPetriNetView pnmlData = ApplicationSettings.getApplicationView()\n\t\t\t\t.getCurrentPetriNetView();\n\t\t//if (pnmlData.getTokenViews().size() > 1) {\n\t\tif(pnmlData.getEnabledTokenClassNumber() > 1){\n\t\t\tExpander expander = new Expander(pnmlData);\n\t\t\tpnmlData = expander.unfold();\n\t\t\tJOptionPane.showMessageDialog(null, \"This is CGSPN. The analysis will only apply to default color (black)\",\n\t\t\t\t\t\"Information\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t\t// Build interface\n\t\tEscapableDialog guiDialog = new EscapableDialog(\n\t\t\t\tApplicationSettings.getApplicationView(), MODULE_NAME, true);\n\n\t\t// 1 Set layout\n\t\tContainer contentPane = guiDialog.getContentPane();\n\t\tcontentPane.setLayout(new BoxLayout(contentPane, BoxLayout.PAGE_AXIS));\n\n\t\t// 2 Add file browser\n\t\tsourceFilePanel = new PetriNetChooserPanel(\"Source net\", pnmlData);\n\t\tcontentPane.add(sourceFilePanel);\n\n\t\t// 3 Add results pane\n\t\tresults = new ResultsHTMLPane(pnmlData.getPNMLName());\n\t\tcontentPane.add(results);\n\n\t\t// 4 Add button's\n\t\tcontentPane.add(new ButtonBar(\"Analyse GSPN\", runAnalysis, guiDialog\n\t\t\t\t.getRootPane()));\n\n\t\t// 5 Make window fit contents' preferred size\n\t\tguiDialog.pack();\n\n\t\t// 6 Move window to the middle of the screen\n\t\tguiDialog.setLocationRelativeTo(null);\n\n\t\ttry {\n\t\t\tguiDialog.setVisible(true);\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t}", "public void run()\n\t{\n\t\tMSetup ms = new MSetup(Env.getCtx(), m_WindowNo);\n\t\tm_frame.setBusyTimer(45);\n\t\t// Step 1\n\t\tboolean ok = ms.createClient(fClientName.getText(), fOrgName.getText(),\n\t\t\tfUserClient.getText(), fUserOrg.getText());\n\t\tString info = ms.getInfo();\n\n\t\tif (ok)\n\t\t{\n\t\t\t// Generate Accounting\n\t\t\tKeyNamePair currency = (KeyNamePair)fCurrency.getSelectedItem();\n\t\t\tif (!ms.createAccounting(currency,\n\t\t\t\tfProduct.isSelected(), fBPartner.isSelected(), fProject.isSelected(),\n\t\t\t\tfMCampaign.isSelected(), fSRegion.isSelected(),\n\t\t\t\tm_file))\n\t\t\t{\n\t\t\t\tADialog.error(m_WindowNo, this, \"AccountSetupError\");\n\t\t\t\tdispose();\n\t\t\t}\n\t\t\t// Generate Entities\n\t\t\tKeyNamePair p = (KeyNamePair)fCountry.getSelectedItem();\n\t\t\tint C_Country_ID = p.getKey();\n\t\t\tp = (KeyNamePair)fRegion.getSelectedItem();\n\t\t\tint C_Region_ID = p.getKey();\n\t\t\tms.createEntities(C_Country_ID, fCity.getText(), C_Region_ID, currency.getKey());\n\t\t\tinfo += ms.getInfo();\n\t\t\t//\tCreate Print Documents\n\t\t\tPrintUtil.setupPrintForm(ms.getAD_Client_ID());\n\t\t}\n\n\t\tADialog.info(m_WindowNo, this, \"VSetup\", info);\n\t\tdispose();\n\t}", "private void startGame() {\n betOptionPane();\n this.computerPaquetView.setShowJustOneCard(true);\n blackjackController.startNewGame(this);\n }", "protected void initialize() {\n setSize(600, 420);\n setContentPane(getJContentPane());\n setTitle(\"Edit Play List\");\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setName(\"framePlayList\");\n\t\tsetModal(false);\n\t\t//this.setResizable(false);\n\t\tsetComponentOrientation(java.awt.ComponentOrientation.LEFT_TO_RIGHT);\n\t\t\n\t\t//fire this off once this dialog is displaying\n\t\taddWindowListener( new WindowAdapter() {\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tgetJButtonCancel().requestFocusInWindow();\n\t\t\t}\n\t\t});\n\n }", "protected void doDialog(int id) {\n BlindManDialogFragment.newInstance(id, centerDialogs).show(getFragmentManager(), \"dialog\");\n }", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "public void actionPerformed(ActionEvent evt) {\r\n super.actionPerformed(evt);\r\n createDialog().show();\r\n }", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "public void run() {\n criaGUI();\n \n }", "protected void initUI() {\n\r\n\t\t((Button) findViewById(R.id.project_site_start_wifiscan_button)).setOnClickListener(this);\r\n\r\n\t\t// ((Button) findViewById(R.id.project_site_calculate_ap_positions_button)).setOnClickListener(this);\r\n\r\n\t\t// ((Button) findViewById(R.id.project_site_add_known_ap)).setOnClickListener(this);\r\n\r\n\t\t((Button) findViewById(R.id.project_site_step_detect)).setOnClickListener(this);\r\n\t\t\r\n\t\t((ToggleButton) findViewById(R.id.project_site_toggle_autorotate)).setOnClickListener(this);\r\n\r\n\t\tmultiTouchView = ((MultiTouchView) findViewById(R.id.project_site_resultview));\r\n\t\tmultiTouchView.setRearrangable(false);\r\n\r\n\t\tmultiTouchView.addDrawable(map);\r\n\r\n\t\tif (site.getTitle().equals(ProjectSite.UNTITLED)) {\r\n\t\t\tshowDialog(DIALOG_TITLE);\r\n\t\t} else {\r\n\t\t\tif (freshSite) {\r\n\t\t\t\t// start configuration dialog\r\n\t\t\t\tshowDialog(DIALOG_FRESH_SITE);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@FXML\n void launcherButtonOnAction() {\n openParamDialog();\n }", "@FXML\n public void initialize() {\n DialogBox welcome = DialogBox.getMugDialog(MainWindow.welcome(), mugImage);\n dialogContainer.getChildren().add(welcome);\n scrollPane.vvalueProperty().bind(dialogContainer.heightProperty());\n }", "public void showStartDialog(final View rootView) {\r\n AlertDialog.Builder startBuilder = new AlertDialog.Builder(getActivity());\r\n LayoutInflater startInflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n final View dialogView = startInflater.inflate(R.layout.start_screen, null); // create view for custom dialog\r\n startBuilder.setCancelable(false);\r\n startBuilder.setView(dialogView); // set view to start screen layout\r\n\r\n // set up username input\r\n usernameEntry = (EditText) dialogView.findViewById(R.id.username_input);\r\n\r\n // handle start button to begin the game\r\n final Button start = (Button) dialogView.findViewById(R.id.btn_start);\r\n start.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n startDialog.dismiss();\r\n initTimer(rootView);\r\n }\r\n });\r\n\r\n // button to submit username\r\n final Button enterUserName = (Button) dialogView.findViewById(R.id.enter_username);\r\n enterUserName.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n\r\n // username information\r\n userName.append(usernameEntry.getText());\r\n userNameString = userName.toString();\r\n\r\n // hide the enter button\r\n enterUserName.setVisibility(View.INVISIBLE);\r\n\r\n // text view that shows what the user has submitted their name as\r\n TextView welcomeUser = (TextView) dialogView.findViewById(R.id.welcome_user);\r\n welcomeUser.setText(\"Welcome \" + userNameString + \"!\");\r\n welcomeUser.setVisibility(View.VISIBLE);\r\n start.setVisibility(View.VISIBLE); // once user has entered user name, make start button visible\r\n }\r\n });\r\n\r\n startDialog = startBuilder.show();\r\n\r\n }", "@Override\r\n\tvoid start() {\n\t\tButton btnPayed = new Button(\"Paid\");\r\n\t\tButton btnCanceled = new Button(\"Canceled\");\r\n\t\t// Set button action events to the event methods of this class\r\n\t\tsetControlButton(btnPayed, \"Paid\");\r\n\t\tsetControlButton(btnCanceled, \"Canceled\");\r\n\r\n\t\ttextLabelDisplayed = new Label(\"\");\r\n\t\ttextLabelDisplayed.setPrefWidth(120);\r\n\r\n\t\tGridPane gridPaneAll = new GridPane();\r\n\t\tgridPaneAll.setVgap(10);\r\n\t\tGridPane gridPaneOrder = new GridPane();\r\n\t\tgridPaneOrder.setHgap(10);\r\n\t\tgridPaneOrder.add(btnPayed, 0, 0);\r\n\t\tgridPaneOrder.add(btnCanceled, 1, 0);\r\n\t\tgridPaneAll.add(gridPaneOrder, 0, 0);\r\n\t\tgridPaneAll.add(textLabelDisplayed, 0, 1);\r\n\r\n\t\twindow.addNodesAsChildrenToRoot(gridPaneAll);\r\n\r\n\t\t// Put the final touches and display the window.\r\n\t\twindow.start();\r\n\r\n\t\trefreshDisplay();\r\n\t}", "public void launchHearingAidInstructionDialog() {\n HearingAidDialogFragment.newInstance().show(this.mFragmentManager, HearingAidDialogFragment.class.toString());\n }", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n//\t\t\t\tpDialog.setMessage(\"Relax for a while...\");\n//\t\t\t\tpDialog.setCancelable(false);\n//\t\t\t\tpDialog.show();\n\t\t\t\t\n\t\t\t}", "public Dialog() {\n\t}", "public void run() {\n\t\t\t\tfinal Dialog dialog = new Dialog(Main.this);\n\t\t\t\tdialog.setContentView(R.layout.dialog);\n\t\t\t\tdialog.setTitle(\"Test completes!\");\n\t\t\t\tdialog.setCancelable(true);\n\t\t\t\tdialog.setCanceledOnTouchOutside(true);\n\n\t\t\t\t//set up text\n\t\t\t\tTextView text = (TextView) dialog.findViewById(R.id.TextView01);\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\t\t\ttext.setText(\"Average downlink speed\\n\"+ df.format(down) + \" kbps\\n\\nAverage uplink speed\\n\" + \n\t\t\t\t\t\tdf.format(up) + \" kbps\\n\\nLatency\\n\" + df.format(rtt) + \" ms\"); \n\n\n\t\t\t\t//Create the button \n\t\t\t\tButton button = (Button) dialog.findViewById(R.id.Button01);\n\t\t\t\tbutton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t//When the button is clicked, call up android test menu\n\t\t\t\t\t//@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tdialog.show();\n\n\t\t\t}", "public void launchSetupScreen() {\n\t\tnew SetUpScreen(this);\n\t}", "private void startMealToDatabaseAlert() {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);\n TextView dialogTitle = new TextView(this);\n int blackValue = Color.parseColor(\"#000000\");\n dialogTitle.setText(R.string.title_dialog_meal);\n dialogTitle.setGravity(Gravity.CENTER_HORIZONTAL);\n dialogTitle.setPadding(0, 30, 0, 0);\n dialogTitle.setTextSize(25);\n dialogTitle.setTextColor(blackValue);\n dialogBuilder.setCustomTitle(dialogTitle);\n View dialogView = getLayoutInflater().inflate(R.layout.dialog_add_meal, null);\n\n this.startEditTexts(dialogView);\n this.startLocationSpinner(dialogView);\n this.startAddPhotoButton(dialogView);\n this.startMealDialogButtonListeners(dialogBuilder);\n\n dialogBuilder.setView(dialogView);\n AlertDialog permission_dialog = dialogBuilder.create();\n permission_dialog.show();\n }" ]
[ "0.70838577", "0.6873149", "0.6729812", "0.66379863", "0.6608114", "0.6531713", "0.63745534", "0.63113225", "0.62520266", "0.6197626", "0.6177633", "0.61512405", "0.6117531", "0.61100495", "0.6080092", "0.6057888", "0.60289717", "0.6022541", "0.6011639", "0.59978294", "0.5995212", "0.5993021", "0.5938624", "0.59379005", "0.5918149", "0.59049964", "0.5859473", "0.5856868", "0.5843661", "0.5841497", "0.5835163", "0.580273", "0.5788814", "0.5781663", "0.57737666", "0.57697624", "0.5766793", "0.57656384", "0.57645816", "0.57605654", "0.57580245", "0.57558256", "0.57523644", "0.57518", "0.57456136", "0.5743924", "0.5739778", "0.57279545", "0.57272416", "0.5723398", "0.57216275", "0.57216275", "0.57216275", "0.571839", "0.5702548", "0.5700515", "0.5699431", "0.5698192", "0.5688274", "0.5682181", "0.5669065", "0.5662073", "0.5658328", "0.5657693", "0.5655522", "0.56544256", "0.56531125", "0.5650869", "0.56486887", "0.5647318", "0.5637677", "0.563545", "0.56343675", "0.56290084", "0.5624059", "0.5618863", "0.56183904", "0.5604363", "0.55941635", "0.5587089", "0.5577353", "0.55773216", "0.55701697", "0.55664307", "0.5564394", "0.5557624", "0.5557487", "0.55557996", "0.5554481", "0.55540913", "0.55503005", "0.55463046", "0.55399805", "0.55343956", "0.5525874", "0.5522914", "0.5518337", "0.5516645", "0.5511503", "0.5510421", "0.5500946" ]
0.0
-1
cria e executa um delete statemente na tabela artigo
public static void excluir(Integer idArt) throws SQLException{ String delete = "DELETE FROM Artigo WHERE idArt = '" + idArt + "'"; System.out.println("Delete statement: " + delete); Statement statement = dbConnection.createStatement(); statement.executeUpdate(delete); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected String deleteStatement() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void delete(TQssql sql) {\n\r\n\t}", "@Override\n\tpublic String deleteStatement() throws Exception {\n\t\treturn null;\n\t}", "@Override\n public String deleteStatement() throws Exception {\n return null;\n }", "@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}", "public CustomSql getCustomSqlDelete();", "public void delete(IQuery query) throws SQLException;", "public String getDeleteByIdSql() {\r\n\t\treturn \"delete from SHXXB where XH=?\";\r\n\t}", "public void deleteFoodBill(Bill deleteFood) {\nString sql =\"DELETE FROM bills WHERE Id_food = ?\";\n\t\n\ttry {\n\t\tPreparedStatement preparedStatement = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\tpreparedStatement.setInt(1, deleteFood.getId());\n\t\tpreparedStatement.execute();\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n}", "@Override\n public void run() {\n\n String filename = \"PurgeTable\";\n\n PreparedStatement stmt1 = null;\n try {\n stmt1 = conn.prepareStatement(\"delete from \" + filename);\n stmt1.executeUpdate();\n System.out.println(\"Deletion successful\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void deleteIscrizione() throws SQLException {\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\r\n\t\ttry {\r\n\t\t\tpstmt = con.prepareStatement(STATEMENTDEL);\r\n\t\t\t\r\n\t\t\tpstmt.setString(1, i.getGiocatore());\r\n\t\t\tpstmt.setInt(2, i.getTorneo());\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\tpstmt.execute();\r\n\r\n\t\t} finally {\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\tpstmt.close();\r\n\t\t\t}\r\n\r\n\t\t\tcon.close();\r\n\t\t}\r\n\r\n\t}", "public void eliminar(){\n conexion = base.GetConnection();\n try{\n PreparedStatement borrar = conexion.prepareStatement(\"DELETE from usuarios where Cedula='\"+this.Cedula+\"'\" );\n \n borrar.executeUpdate();\n // JOptionPane.showMessageDialog(null,\"borrado\");\n }catch(SQLException ex){\n System.err.println(\"Ocurrió un error al borrar: \"+ex.getMessage());\n \n }\n }", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "protected String createDelete(T t) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"DELETE FROM \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" WHERE \");\n\t\treturn sb.toString();\n\t}", "@Test\n public void deleteTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.delete(1);\n Servizio servizio= manager.retriveById(1);\n assertNull(servizio,\"Should return true if delete Servizio\");\n }", "@Override\n\tpublic long execute() {\n\t\treturn database.createCommand()\n\t\t\t\t.appendRaw(\"DELETE FROM \")\n\t\t\t\t.appendName(aspect.schemaName)\n\t\t\t\t.appendWhere(this.filter)\n\t\t\t\t.executeNonQuery();\n\t}", "private void deleteTableEntry(Connection con, String sql) throws SQLException {\n\t\tlog.entry();\n\t\tPreparedStatement del = con.prepareStatement(sql);\n\t\ttry {\n\t\t\tdel.setInt(1, id);\n\t\t\tdel.executeUpdate();\n\t\t} finally {\n\t\t\tcloseStatement(del);\n\t\t}\n\t\tthrowSqlException();\n\t\tlog.exit();\n\t}", "public void setDeleteStatement(EdaContext xContext) throws IcofException {\n\n\t\t// Define the query.\n\t\tString query = \"delete from \" + TABLE_NAME + \n\t\t \" where \" + ID_COL + \" = ? \";\n\n\t\t// Set and prepare the query and statement.\n\t\tsetQuery(xContext, query);\n\n\t}", "public void vaciarCarrito() {\r\n String sentSQL = \"DELETE from carrito\";\r\n try {\r\n Statement st = conexion.createStatement();\r\n st.executeUpdate(sentSQL);\r\n st.close();\r\n LOG.log(Level.INFO,\"Carrito vaciado\");\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n \tLOG.log(Level.WARNING,e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "int deleteByExample(Assist_tableExample example);", "CustomDeleteQuery deleteFrom(String table) throws JpoException;", "@Override\n\tprotected void doDelete(DomainObject o, PreparedStatement s)\n\t\t\tthrows SQLException {\n\n\t}", "@Override\n\tpublic boolean delete() {\n\t\tString sql=\"DELETE FROM tc_student where id=\"+id;\n\t\t//`\n\t\t\n\t\tSystem.out.println(sql);\n\t\treturn mysql.execute(sql);\n\t}", "public void doDelete(T objectToDelete) throws SQLException;", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "@Override\r\n\tpublic void delete(int no) {\n\t\tsqlSession.delete(namespace + \".delete\", no);\r\n\t}", "public T delete(T t) {\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tString query = createDelete(t);\n\t\ttry {\n\t\t\tconnection = ConnectionDB.getConnection();\n\t\t\tstatement = connection.prepareStatement(query);\n\t\t\tstatement.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:Delete \" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionDB.close(statement);\n\t\t\tConnectionDB.close(connection);\n\t\t}\n\t\treturn null;\n\t}", "public String execute() throws SQLException {\n\t\t/*conn = DataBase.getConnection();\n\t\tst = conn.createStatement();\n\t\tString sql=\"drop table user\";\n\t\tst.execute(sql);*/\n\t\treturn \"SUCCESS\";\n\n\t}", "@Override\r\n public void eliminar(final Empleat entitat) throws UtilitatPersistenciaException {\r\n JdbcPreparedDao jdbcDao = new JdbcPreparedDao() {\r\n\r\n @Override\r\n public void setParameter(PreparedStatement pstm) throws SQLException {\r\n int field=0;\r\n pstm.setInt(++field, entitat.getCodi());\r\n }\r\n\r\n @Override\r\n public String getStatement() {\r\n return \"delete from Empleat where codi = ?\";\r\n }\r\n };\r\n UtilitatJdbcPlus.executar(con, jdbcDao);\r\n }", "protected abstract void prepareStatementForDelete(PreparedStatement deleteStatement, E entity) throws DAOException;", "int delete(String tableName, String selectionCriteria, String[] selectionArgs);", "@Override\r\n\tpublic void delete() {\n\t\tString delete=\"DELETE FROM members WHERE id =?\";\r\n\t\t try(Connection connection=db.getConnection();) {\r\n\t\t\t\t\r\n\t\t\t\tpreparedStatement=connection.prepareStatement(delete);\r\n\t\t\t\tpreparedStatement.setString(1, super.getIdString());\r\n\t\t \tpreparedStatement.executeUpdate();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction successful\");\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong\");\r\n\t\t\t}\r\n\t}", "public void delete(Object obj) throws SQLException {\n\r\n\t}", "public void adm1() {\n\t\ttry { // Delete all table contents\n\t\t\tstatement = connection.createStatement();\n\t\t\tstatement.executeQuery(\"delete from PLANE\");\n\t\t\tstatement.executeQuery(\"delete from FLIGHT\");\n\t\t\tstatement.executeQuery(\"delete from PRICE\");\n\t\t\tstatement.executeQuery(\"delete from CUSTOMER\");\n\t\t\tstatement.executeQuery(\"delete from RESERVATION\");\n\t\t\tstatement.executeQuery(\"delete from DETAIL\");\n\t\t\tstatement.executeQuery(\"delete from OUR_DATE\");\n\t\t\tstatement.executeQuery(\"delete from AIRLINE\");\n\t\t} catch(SQLException Ex) {System.out.println(\"Error running the sample queries. Machine Error: \" + Ex.toString());}\n\t\tSystem.out.println(\"DATABASE ERASED\");\n\t}", "public String getDeleteContentSql(String table)\r\n \t{\r\n \t\treturn \"delete from \" + table + \" where resource_id = ? \";\r\n \t}", "private Delete() {}", "private Delete() {}", "public void Delete(){\n String whereClause2 = PostDatabase.ID + \" = ?\";\n // Specify arguments in placeholder order.\n String[] whereArgs2 = { \"6\" };\n // Issue SQL statement.\n sqlDB.delete(PostDatabase.TABLE_POSTS, whereClause2, whereArgs2);\n\n }", "int deleteByExample(CTipoComprobanteExample example) throws SQLException;", "public void eliminar_datos_de_tabla(String tabla_a_eliminar){\n try {\n Class.forName(\"org.postgresql.Driver\");\n Connection conexion = DriverManager.getConnection(cc);\n Statement comando = conexion.createStatement();\n //Verificar dependiendo del tipo de tabla lleva o no comillas\n \n String sql=\"delete from \\\"\"+tabla_a_eliminar+\"\\\"\";\n \n comando.executeUpdate(sql);\n \n comando.close();\n conexion.close();\n } catch(ClassNotFoundException | SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public int delete(int ano, QueryRunner queryRunner, Connection connection)\n\t\t\tthrows SQLException {\n\t\treturn 0;\n\t}", "public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}", "@Override\n public void doDelete(FasciaOrariaBean bean) throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"DELETE FROM fasciaoraria WHERE id=?\";\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n statement.setInt(1, bean.getId());\n System.out.println(\"doUpdate=\" + statement);\n statement.executeUpdate();\n con.commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n }", "public void delete() {\n\t\ttry {\n\t\t\tStatement stmt = m_db.m_conn.createStatement();\n\t\t\tString sqlString;\n\t\t\tString ret;\n\n\t\t\tsqlString = \"DELETE from country WHERE countryid=\" + m_country_id;\n\t\t\tm_db.runSQL(sqlString, stmt);\n\t\t\tstmt.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\">>>>>>>> EXCEPTION <<<<<<<<\");\n\t\t\tSystem.out.println(\"An Exception occured in delete().\");\n\t\t\tSystem.out.println(\"MESSAGE: \" + e.getMessage());\n\t\t\tSystem.out.println(\"LOCALIZED MESSAGE: \" + e.getLocalizedMessage());\n\t\t\tSystem.out.println(\"CLASS.TOSTRING: \" + e.toString());\n\t\t\tSystem.out.println(\">>>>>>>>>>>>>-<<<<<<<<<<<<<\");\n\t\t}\n\t}", "private void delete() {\n\n\t}", "public void deleteDrinkBills(Bill deleteDrink) {\n\tString sql =\"DELETE FROM bills WHERE Id_drink = ?\";\n\t\n\ttry {\n\t\tPreparedStatement preparedStatement = ConnectionToTheBase.getConnectionToTheBase().getConnection().prepareStatement(sql);\n\t\tpreparedStatement.setInt(1, deleteDrink.getId());\n\t\tpreparedStatement.execute();\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n}", "public void delete() throws SQLException {\r\n\t\t//SQL Statement\r\n\r\n\t\tString sql = \"DELETE FROM \" + table+ \" WHERE \" + col_genreID + \" = ?\";\r\n\t\tPreparedStatement stmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tstmt.setInt(1, this.getGenreID());\r\n\r\n\t\tint rowsDeleted = stmt.executeUpdate();\r\n\t\tSystem.out.println(\"Es wurden \"+rowsDeleted+ \"Zeilen gelöscht\");\r\n\t\tstmt.close();\r\n\t}", "public void prepareDeleteObject() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareDeleteObject();\n }", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "int delete(T data) throws SQLException, DaoException;", "public void onDelete(Statement delete, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }", "public static int delete(Periode p){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection(); \n //melakukan query database untuk menghapus data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement(\"delete from periode where id=?\"); \n ps.setInt(1,p.getId()); \n status=ps.executeUpdate(); \n }catch(Exception e){System.out.println(e);} \n\n return status; \n }", "int deleteById(ID id) throws SQLException, DaoException;", "@Override\r\n\tpublic void delete(Connection connection, Salary salary) throws SQLException {\n\r\n\t}", "public static void delatetable() \n { \n \n \ttry \n { \n Statement stmt=null; \n ResultSet res=null; \n Class.forName(\"com.mysql.jdbc.Driver\"); \n Connection conn = DriverManager.getConnection(sqldatabase,mysqluser,mysqlpassword); \n stmt = (Statement)conn.createStatement(); \n// res= stmt.executeQuery(\"SELECT * from entity \"); \n String query1 = \"delete from entity\";\n String query2 = \"delete from deepmodel\";\n String query3 = \"delete from level\";\n String query4 = \"delete from package\";\n String query5 = \"delete from attribute\";\n String query6 = \"delete from binaryconnection\";\n String query7 = \"delete from inheritanceparticipation\";\n String query8 = \"delete from inheritancerelationship\";\n String query9 = \"delete from method\";\n String query10 = \"delete from generalconnection\";\n String query11 = \"delete from participation\";\n PreparedStatement preparedStmt1 = conn.prepareStatement(query1);\n PreparedStatement preparedStmt2 = conn.prepareStatement(query2);\n PreparedStatement preparedStmt3 = conn.prepareStatement(query3);\n PreparedStatement preparedStmt4 = conn.prepareStatement(query4);\n PreparedStatement preparedStmt5 = conn.prepareStatement(query5);\n PreparedStatement preparedStmt6 = conn.prepareStatement(query6);\n PreparedStatement preparedStmt7 = conn.prepareStatement(query7);\n PreparedStatement preparedStmt8 = conn.prepareStatement(query8);\n PreparedStatement preparedStmt9 = conn.prepareStatement(query9);\n PreparedStatement preparedStmt10 = conn.prepareStatement(query10);\n PreparedStatement preparedStmt11 = conn.prepareStatement(query11);\n preparedStmt1.execute();\n preparedStmt2.execute();\n preparedStmt3.execute();\n preparedStmt4.execute();\n preparedStmt5.execute();\n preparedStmt6.execute();\n preparedStmt7.execute();\n preparedStmt8.execute();\n preparedStmt9.execute();\n preparedStmt10.execute();\n preparedStmt11.execute();\n \n } \n \n catch(Exception ex) \n { \n ex.printStackTrace(); \n } \n}", "@Delete({\n \"delete from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n int deleteByPrimaryKey(String orderId);", "public void delete(Ausschreibung as) {\r\n\r\n\t\t// DB-Verbindung herstellen\r\n\t\tConnection con = DBConnection.connection();\r\n\r\n\t\ttry {\r\n\t\t\t// Leeres SQL-Statement (JDBC) anlegen\r\n\t\t\tStatement stmt = con.createStatement();\r\n\r\n\t\t\t// Jetzt erst erfolgt die tatsaechliche Einfuegeoperation.\r\n\t\t\tstmt.executeUpdate(\"DELETE FROM ausschreibung WHERE ID=\" + as.getId());\r\n\t\t} catch (SQLException e3) {\r\n\t\t\te3.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic MahasiswaModel delete(String nik) throws SQLException {\n\t\tdeleteStatement.setString(1, nik);\n\t\tdeleteStatement.executeUpdate();\n\t\treturn null;\n\t}", "@Override\n\tpublic void doDelete(String product) throws SQLException {\n\t\t\n\t}", "public void delete() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n int safeCheck = BusinessFacade.getInstance().checkIDinDB(this.goodID,\n \"orders\", \"goods_id\");\n if (safeCheck == -1) {\n stmtIn.executeUpdate(\"DELETE FROM ngaccount.goods WHERE goods.goods_id = \" +\n this.goodID + \" LIMIT 1;\");\n }\n }", "@Override\n\tpublic int delete(PrestationCDI obj) throws DAOException {\n\t\treturn 0;\n\t}", "public void delete() {\n\n\t}", "@Override\n\tpublic void delete(Connection c, Integer id) throws SQLException {\n\n\t}", "int delete(Long id) throws SQLException, DAOException;", "@Override\n\tpublic void delete(Integer id) throws SQLException {\n\t\t\n\t}", "public static void deleteAll() {\n String sql = \"DELETE FROM articulo\";\n try(Connection conn = connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)){\n pstmt.executeUpdate();\n }\n catch(SQLException e) {\n System.out.println(\"Error al eliminar en la base de datos.\");\n //Descomentar la siguiente linea para mostrar el mensaje de error.\n //System.out.println(e.getMessage());\n }\n }", "public static void main(String[] args) throws SQLException {\n\t\tint emp_id = 4;\r\n\t\tConnection connection = DB.getConnection();\r\n\t\tString delete_emp = \"Delete from employees where emp_id=?\";\r\n\t\tPreparedStatement statement = connection.prepareStatement(delete_emp);\r\n\t\tstatement.setInt(1, emp_id);\r\n\t\tstatement.executeUpdate();\r\n\t}", "public static void delete(Connection c){\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//get table name and see if it exists\r\n\t\t\t\r\n\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\tString input = \"\";\r\n\t\t\tString command = \"DELETE FROM \";\r\n\t\t\tboolean validName = false;\r\n\t\t\tDatabaseMetaData metadata = c.getMetaData();\r\n\t\t\tResultSet rs = null;\r\n\t\t\t\r\n\t\t\twhile(!validName){\r\n\t\t\t\tSystem.out.println(\"Enter the name of the table you wish to modify: \");\r\n\t\t\t\tinput = sc.nextLine(); //user can enter more than one table\r\n\t\t\t\t\r\n\t\t\t\trs = metadata.getTables(null, null, input, null);\r\n\t\t\t\tif(rs.next())\r\n\t\t\t\t\tvalidName = true;\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"That table does not exist. Please try again.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcommand += input;\r\n\t\t\t\r\n\t\t\t//get condition for deletion, if any\r\n\t\t\t/*could have done a loop to delete one at a time\r\n\t\t\t * but I felt that generic commands are back end so we can practically\r\n\t\t\t * rely on some computer proficiency and can eschew niceties\r\n\t\t\t */\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Condition for deletion? Y/N\");\r\n\t\t\tinput = sc.nextLine();\r\n\t\t\tif(input.charAt(0) == 'Y' || input.charAt(0) == 'y'){\r\n\t\t\t\tSystem.out.println(\"Enter condition:\");\r\n\t\t\t\tinput = sc.nextLine();\r\n\t\t\t\tcommand = command + \" WHERE \" + input;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Deleting all records.\");\r\n\t\t\t\t\r\n\t\t\t//execute deletion\r\n\t\t\t\r\n\t\t\tStatement stmt = c.createStatement();\r\n\t\t\tstmt.executeUpdate(command);\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void delete ( int id ) throws DAOException;", "public static String getDeleteStatement() {\n return DELETE_STATEMENT;\n }", "public void borrarTodo()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\tStatement st = conexion.createStatement();\r\n\t\tst.execute(\"DROP TABLE usuarios\");\r\n\t\tst.execute(\"DROP TABLE prestamos\");\r\n\t\tst.execute(\"DROP TABLE libros\");\r\n\t\t}\r\n\t\tcatch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Delete({\n \"delete from tb_user\",\n \"where username = #{username,jdbcType=VARCHAR}\"\n })\n int deleteByPrimaryKey(String username);", "private void delete() {\n\t\tConfiguration conf = new Configuration();\n\t\tconf.configure(\"hibernate.cfg.xml\");\n\t\tSessionFactory sf = conf.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\ts.beginTransaction();\n\n\t\tQuery query = s.createQuery(\"delete from OldStudent where name='Michael'\");\n\t\tint count = query.executeUpdate();\n\t\tSystem.out.println(\"Number of Rows Deleted in the oldstudent table=\" + count);\n\n\t\ts.getTransaction().commit();\n\t\ts.clear();// s.evict() on all student objects in session\n\t\tsf.close();\n\n\t}", "@AfterEach\n public void tearDown() {\n try {\n Statement stmtSelect = conn.createStatement();\n String sql1 = (\"DELETE FROM tirocinio WHERE CODTIROCINIO='999';\");\n stmtSelect.executeUpdate(sql1);\n String sql2 = (\"DELETE FROM tirocinante WHERE matricola='4859';\");\n stmtSelect.executeUpdate(sql2);\n String sql3 = (\"DELETE FROM enteconvenzionato WHERE partitaIva='11111111111';\");\n stmtSelect.executeUpdate(sql3);\n String sql4 = (\"DELETE FROM User WHERE email='[email protected]';\");\n stmtSelect.executeUpdate(sql4);\n String sql5 = (\"DELETE FROM User WHERE email='[email protected]';\");\n stmtSelect.executeUpdate(sql5);\n conn.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "int deleteByExample(OrderPreferentialExample example) throws SQLException;", "public void delete() throws SQLException {\n DatabaseConnector.updateQuery(\"DELETE FROM course \"\n + \"WHERE courseDept='\" + this.courseDept \n + \"' AND courseNum = '\" + this.courseNum + \"'\");\n }", "@Query(\"delete from Asignatura \")\n void borrarAsignaturas();", "@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 삭제를 하다.\");\n\t}", "public void delete(int id) throws SQLException {\n\t\t\r\n\t}", "public static String delete(int id){\n String query=\"UPDATE empleado SET activo=0 WHERE idEmpleado=\"+id;\n return query;\n}", "@Override\r\n\tpublic void delete(Activitat activitat) {\r\n\t\t/*queryString = \"DELETE FROM activitats WHERE ID_ACTIVITAT = ?\";\r\n\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\ts.setInt(1, activitat.geti);\r\n\r\n\t\t\ts.execute();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t*/\r\n\t\t\r\n\t}", "public void execute() {\n if (DeleteTableCommand.confirmDeletion()) {\n\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().remove(topsoilTabPane.getSelectedTab());\n }\n\n }", "@Override\n public void clearTable() {\n final var query = \"TRUNCATE TABLE piano_project.pianos\";\n try(final var statement = connection.createStatement()) {\n statement.executeUpdate(query);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }", "public void deleteDB() {\n \n sql = \"Delete from Order where OrderID = \" + getOrderID();\n db.deleteDB(sql);\n \n }", "int deleteByPrimaryKey(String idTipoComprobante) throws SQLException;", "private void executeDelete(Object key, String query) {\r\n\t\tlogger.entering(CLASSNAME, \"executeDelete\", new Object[] {key, query});\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement statement = null;\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\t\t\tstatement = conn.prepareStatement(query);\r\n\t\t\tstatement.setObject(1, key);\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} finally {\r\n\r\n\t\t\tcleanupConnection(conn, null, statement);\r\n\t\t}\r\n\t\tlogger.exiting(CLASSNAME, \"executeDelete\");\r\n\t}", "public long delete(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, true);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName,\r\n\t\t\t\t\t\tprimaryKeyTos,\r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.DELETE_TYPE);\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public boolean eliminarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 484 */ String s = \"delete from cal_plan_metas\";\n/* 485 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* 486 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 487 */ s = s + \" codigo_meta=\" + codigoMeta;\n/* 488 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 491 */ catch (Exception e) {\n/* 492 */ e.printStackTrace();\n/* 493 */ Utilidades.writeError(\"CalPlanMetasFactory:eliminarRegistro\", e);\n/* */ \n/* 495 */ return false;\n/* */ } \n/* */ }", "void row_delete(int id){\n\t\t//Delete tuple by executing SQL command\n\t\tStatement stm=null;\n\t\tString sql=\"delete from \"+tableName+\" where id=\"+id;\n\t\ttry{\n\t \t stm=con.createStatement(); \n\t \t System.out.println(\"sql: \"+sql); \n\t \t stm.executeUpdate(sql);\n\t \t \n\t \t //Append SQL command and time stamp on log file\n\t \t outfile.write(\"TIMESTAMP: \"+getTimestamp());\n\t\t\t outfile.newLine();\n\t\t\t outfile.write(sql);\n\t\t\t outfile.newLine();\n\t\t\t outfile.newLine();\n\t\t \n\t\t //Catch SQL exception\t \t \n\t }catch (SQLException e ) {\n\t \t e.printStackTrace();\n\t //Catch I/O exception\n\t } catch(IOException ioe){ \n\t \t ioe.printStackTrace();\n\t }finally {\n\t \t try{\n\t if (stm != null) stm.close(); \n\t }\n\t \t catch (SQLException e ) {\n\t \t\t e.printStackTrace();\n\t\t }\n\t }\t\n\t\t \n\t }", "@Override\r\n public boolean deleteAll(String strTable)\r\n { try\r\n { String strSQL = \"DELETE * FROM \" + strTable;\r\n status(strSQL);\r\n dbCmdText.executeUpdate(strSQL);\r\n\r\n // dbRecordset.close();\r\n } catch (SQLException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n return false;\r\n }", "protected abstract void doDelete();", "public static void executeDelete(String query) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tsession.createSQLQuery(query).executeUpdate();\n\t\ttxn.commit();\n\t}", "final public static String createPstmtDeleteById(Class<? extends DotProjectObject> clazz)\n\t{\n\t\tStringBuffer sb = new StringBuffer();\n\t\tString table = null;\n\t\tString idField = null;\n\t\tField[] fields = null;\n\t\t\n\t\ttable = AnnotationUtil.getAnnotationValue(clazz, DbAnnotations.TABLE_ANNOTATION);\n\t\tfields = AnnotationUtil.getAnnotatedFields(clazz, DbAnnotations.IDENTIFICATOR_ANNOTATION);\n\t\tfor (Field f : fields) {\n\t\t\tidField = AnnotationUtil.getAnnotationValue(f, DbAnnotations.PROPERTY_ANNOTATION);\n\t\t}\n\n\t\tsb.append(\"DELETE FROM \");\n\t\tsb.append(table);\n\t\tsb.append(\" WHERE \");\n\t\tsb.append(idField);\n\t\tsb.append(\"=?\");\n\t\t\n\t\treturn sb.toString();\n\t}", "@Override\r\n\tpublic void delete(String kodeDetail) {\n\t\tString query = \"delete from TR_DETAIL_PENJUALAN where kode_detail=?\";\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement ps = null;\r\n\t\ttry {\r\n\t\t\tcon = dataSource.getConnection();\r\n\t\t\tps = con.prepareStatement(query);\r\n\t\t\tps.setString(1, kodeDetail);\r\n\r\n\t\t\tint out = ps.executeUpdate();\r\n\t\t\tif (out != 0) {\r\n\t\t\t\tSystem.out.println(\"delete berhasil\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"not found\");\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}", "@Override\n\tpublic boolean delete(String sql) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void delete(String cust_ID) {\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(DELETE);\r\n\r\n\t\t\tpstmt.setString(1, cust_ID);\r\n\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured.\" + se.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "int deleteByPrimaryKey(String idTipoPersona) throws SQLException;", "public void delete();", "public void delete();", "public void delete();", "public void delete();" ]
[ "0.7212158", "0.7194034", "0.703164", "0.7020259", "0.69398296", "0.69282717", "0.6861408", "0.68556446", "0.6841373", "0.6829612", "0.68295527", "0.6807428", "0.67734283", "0.6766142", "0.67636573", "0.6743808", "0.6718281", "0.670806", "0.66640383", "0.6658512", "0.6656498", "0.6652518", "0.664238", "0.6599679", "0.659698", "0.659698", "0.65869236", "0.6558936", "0.6558748", "0.6555643", "0.6545266", "0.6541008", "0.65395355", "0.6537847", "0.6536541", "0.65128785", "0.65128785", "0.65053004", "0.64986336", "0.6490174", "0.64862293", "0.64777994", "0.647632", "0.6473218", "0.6457646", "0.6450439", "0.64464337", "0.6431337", "0.64290273", "0.6426241", "0.64256835", "0.6411471", "0.64051265", "0.6401331", "0.6400298", "0.6396352", "0.639576", "0.6389069", "0.63886493", "0.6386375", "0.63795984", "0.63735163", "0.63674736", "0.63665736", "0.636535", "0.63558394", "0.63546395", "0.63510835", "0.6344864", "0.63176286", "0.6310898", "0.63079995", "0.6301415", "0.63003886", "0.63003635", "0.6294664", "0.6287768", "0.62857264", "0.62816626", "0.62784964", "0.6262531", "0.62618285", "0.6255744", "0.62547547", "0.6250208", "0.62461483", "0.62436277", "0.62435204", "0.62430674", "0.6241243", "0.6238827", "0.623474", "0.62336206", "0.6232406", "0.623178", "0.62308365", "0.6229748", "0.62250465", "0.62250465", "0.62250465", "0.62250465" ]
0.0
-1
retorna um modelo de combobox com todos os artigos de acordo com o evento e a edicao
public static DefaultComboBoxModel getArtigos(Integer codEv, Integer numEd) throws SQLException{ DefaultComboBoxModel model = new DefaultComboBoxModel(); String selectTableSQL = "SELECT idArt FROM Artigo WHERE codEv = " + codEv +" AND numEd = " + numEd + ""; System.out.println(selectTableSQL); Statement statement = dbConnection.createStatement(); ResultSet rs = statement.executeQuery(selectTableSQL); model.addElement(" --- "); while(rs.next()){ model.addElement(rs.getString("idArt")); } rs.close(); return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void datosCombobox() {\n listaColegios = new ColegioDaoImp().listar();\n for (Colegio colegio : listaColegios) {\n cbColegio.addItem(colegio.getNombre());\n }\n }", "public CadastroCarroView() {\n initComponents();\n ReadTable();\n MarcaVeiculoDao marca = new MarcaVeiculoDao();\n ModeloVeiculoDao modelo = new ModeloVeiculoDao();\n StatusDao status = new StatusDao();\n //Função abaixo Carrega o jCombox Marca.\n for(MarcaVeiculoBeans marcab : marca.ReadMarca()){\n \n jComboMarca.addItem(marcab);\n \n \n }\n //Função abaixo carrega o jCombox Modelos.\n for(ModeloVeiculoBeans modelob : modelo.Read()){\n jComboModelo.addItem(modelob);\n }\n \n for(StatusBeans sts : status.ReadStatus() ){\n jComboStatusID.addItem(sts);\n }\n }", "public static DefaultComboBoxModel getAllArtigos() throws SQLException, ParseException{\r\n DefaultComboBoxModel model = new DefaultComboBoxModel();\r\n String selectTableSQL = \"SELECT idArt FROM Artigo \";\r\n Statement statement = dbConnection.createStatement();\r\n ResultSet rs = statement.executeQuery(selectTableSQL);\r\n model.addElement(\" --- \");\r\n while(rs.next()){\r\n model.addElement(rs.getString(\"idArt\"));\r\n }\r\n rs.close();\r\n return model;\r\n }", "public DefaultComboBoxModel<ModeloVO> preencherCbx_Modelo() {\n BaseDAO<ModeloVO> bDAO = new ModeloDAO();\n ArrayList<ModeloVO> list = bDAO.consultarTodos();\n return new DefaultComboBoxModel(list.toArray());\n }", "private void carregaComboDentista() {\n CtrPessoa ctrD = new CtrPessoa();\n ArrayList<Pessoa> result = ctrD.getPessoa(\"\", new Dentista());\n\n ObservableList<Pessoa> dentistas = FXCollections.observableArrayList(result);\n\n if (!result.isEmpty()) {\n cbDentista.setItems(dentistas);\n cbDentista.setValue(cbDentista.getItems().get(0)); //inicializando comboBox\n }\n }", "private void combo() {\n cargaCombo(combo_habitacion, \"SELECT hh.descripcion\\n\" +\n \"FROM huespedes h\\n\" +\n \"LEFT JOIN estadia_huespedes eh ON eh.huespedes_id = h.id\\n\" +\n \"LEFT JOIN estadia_habitaciones ehh ON eh.id_estadia = ehh.id_estadia\\n\" +\n \"LEFT JOIN estadia e ON e.id = ehh.id_estadia \\n\" +\n \"LEFT JOIN habitaciones hh ON hh.id = ehh.id_habitacion\\n\" +\n \"WHERE eh.huespedes_id = \"+idd+\" AND e.estado ='A'\\n\" +\n \"ORDER BY descripcion\\n\" +\n \"\",\"hh.descripcion\");\n cargaCombo(combo_empleado, \"SELECT CONCAT(p.nombre, ' ',p.apellido) FROM persona p\\n\" +\n \"RIGHT JOIN empleado e ON e.persona_id = p.id\", \"empleado\");\n cargaCombo(combo_producto, \"SELECT producto FROM productos order by producto\", \"producto\");\n }", "public void carregaEstadoSelecionado(String nome) throws SQLException{\n String sql = \"SELECT * FROM tb_estados\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"uf\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbUfEditar.addItem(list);\n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbUfEditar.setSelectedItem(nome);\n \n \n \n }", "private void comboCarrega() {\n\n try {\n con = BancoDeDados.getConexao();\n //cria a string para inserir no banco\n String query = \"SELECT * FROM servico\";\n\n PreparedStatement cmd;\n cmd = con.prepareStatement(query);\n ResultSet rs;\n\n rs = cmd.executeQuery();\n\n while (rs.next()) {\n JCservico.addItem(rs.getString(\"id\") + \"-\" + rs.getString(\"modalidade\"));\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro de SQL \" + ex.getMessage());\n }\n }", "private void cargaComboBoxTipoLaboreo() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoLaboreoEntity p\");\n java.util.List<TipoLaboreoEntity> listaTipoLaboreoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoLaboreoEntity tipoLaboreo : listaTipoLaboreoEntity) {\n miVectorTipoLaboreo.add(tipoLaboreo.getTpoNombre());\n cboMomentos.addItem(tipoLaboreo);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "private JComboBox getJComboBoxEntidad()\r\n {\r\n \tif (jComboBoxEntidad == null)\r\n\t\t{\r\n\t\t\tjComboBoxEntidad = new JComboBox();\r\n//\t\t \tjComboBoxEntidad.setEditable(true);\r\n\t\t\tjComboBoxEntidad.setRenderer(new UbicacionListCellRenderer());\r\n\t\t\tjComboBoxEntidad.addActionListener(new ActionListener()\r\n\t\t\t{\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t\t{ \r\n\t\t\t\t\t\r\n\t\t\t\t\tif (jComboBoxEntidad.getSelectedIndex()==0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tjComboBoxNucleo.removeAllItems();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tEntidadesSingularesEIEL entidad = new EntidadesSingularesEIEL();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (jComboBoxProvincia.getSelectedItem() != null)\r\n\t\t\t\t\t\t\tentidad.setCodINEProvincia(((Provincia)jComboBoxProvincia.getSelectedItem()).getIdProvincia());\r\n\t\t\t\t\t\tif (jComboBoxMunicipio.getSelectedItem() != null && !jComboBoxMunicipio.getSelectedItem().equals(\"\"))\r\n\t\t\t\t\t\t\tentidad.setCodINEMunicipio(\r\n\t\t\t\t\t\t\t\t\t((Municipio)jComboBoxMunicipio.getSelectedItem()).getIdIne()\r\n\t\t \t\t\t\t\t\t);\r\n\t\t \tif (jComboBoxEntidad.getSelectedItem() != null && !jComboBoxEntidad.getSelectedItem().equals(\"\"))\r\n\t\t \t\tentidad.setCodINEEntidad(((EntidadesSingularesEIEL)jComboBoxEntidad.getSelectedItem()).getCodINEEntidad());\r\n\t\t\t\t\r\n\t\t \t\t\t\r\n\t\t \tif (entidad.getCodINEEntidad()!=null){\r\n\t\t \t\tEdicionOperations oper = new EdicionOperations();\r\n\t\t \t\tEdicionUtils.cargarLista(getJComboBoxNucleo(), \r\n\t\t \t\t\t\t\toper.obtenerNucleosConNombre(entidad));\r\n\t\t \t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jComboBoxEntidad;\r\n }", "public FrmEjemploCombo() {\n initComponents();\n \n cargarAutos();\n }", "private void llenarCombo() {\n cobOrdenar.removeAllItems();\n cobOrdenar.addItem(\"Fecha\");\n cobOrdenar.addItem(\"Nro Likes\");\n cobOrdenar.setSelectedIndex(-1); \n }", "public void iniciar_combo() {\n try {\n Connection cn = DriverManager.getConnection(mdi_Principal.BD, mdi_Principal.Usuario, mdi_Principal.Contraseña);\n PreparedStatement psttt = cn.prepareStatement(\"select nombre from proveedor \");\n ResultSet rss = psttt.executeQuery();\n\n cbox_proveedor.addItem(\"Seleccione una opción\");\n while (rss.next()) {\n cbox_proveedor.addItem(rss.getString(\"nombre\"));\n }\n \n PreparedStatement pstt = cn.prepareStatement(\"select nombre from sucursal \");\n ResultSet rs = pstt.executeQuery();\n\n \n cbox_sucursal.addItem(\"Seleccione una opción\");\n while (rs.next()) {\n cbox_sucursal.addItem(rs.getString(\"nombre\"));\n }\n \n PreparedStatement pstttt = cn.prepareStatement(\"select id_compraE from compra_encabezado \");\n ResultSet rsss = pstttt.executeQuery();\n\n \n cbox_compra.addItem(\"Seleccione una opción\");\n while (rsss.next()) {\n cbox_compra.addItem(rsss.getString(\"id_compraE\"));\n }\n \n PreparedStatement ps = cn.prepareStatement(\"select nombre_moneda from moneda \");\n ResultSet r = ps.executeQuery();\n\n \n cbox_moneda.addItem(\"Seleccione una opción\");\n while (r.next()) {\n cbox_moneda.addItem(r.getString(\"nombre_moneda\"));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }", "private void popuniComboZaMesto() {\n try {\n jComboMesto.removeAllItems();\n List<MestoEntity> mesta = Controller.ucitajListuMesta();\n \n for (IDomainEntity mesto : mesta) {\n if(mesto instanceof MestoEntity)\n jComboMesto.addItem((MestoEntity) mesto);\n }\n } catch (Exception ex) {\n Logger.getLogger(FKupac.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void combo(){\r\n // Define rendering of the list of values in ComboBox drop down. \r\n cbbMedicos.setCellFactory((comboBox) -> {\r\n return new ListCell<Usuario>() {\r\n @Override\r\n protected void updateItem(Usuario item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (item == null || empty) {\r\n setText(null);\r\n } else {\r\n setText(item.getNombre_medico()+ \" \" + item.getApellido_medico()+\" \"+item.getApMaterno_medico());\r\n }\r\n }\r\n };\r\n });\r\n\r\n // Define rendering of selected value shown in ComboBox.\r\n cbbMedicos.setConverter(new StringConverter<Usuario>() {\r\n @Override\r\n public String toString(Usuario item) {\r\n if (item == null) {\r\n return null;\r\n } else {\r\n return item.getNombre_medico()+ \" \" + item.getApellido_medico()+\" \"+item.getApMaterno_medico();\r\n }\r\n }\r\n\r\n @Override\r\n public Usuario fromString(String string) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }\r\n });\r\n }", "private void carregarComboMarca(){\r\n\t\tMarcaEquipamentoDAO marcaDAO = new MarcaEquipamentoDAO(FormEquipamento.this);\r\n\t\tlistaCombo = marcaDAO.listar() ;\r\n\t\tif (!listaCombo.isEmpty()){\r\n\t\t\tArrayAdapter<MarcaEquipamento> adaptador = new ArrayAdapter<MarcaEquipamento>(FormEquipamento.this , \r\n\t\t\t\t\tandroid.R.layout.simple_spinner_item, \r\n\t\t\t\t\tlistaCombo );\r\n\t\t\tadaptador.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\r\n\t\t\tcomboMarca.setAdapter(adaptador);\r\n\t\t}\r\n\t}", "public void carrega_estado() throws SQLException{\n String sql = \"SELECT * FROM tb_estados\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"uf\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbUF.addItem(list); \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n \n \n Conexao.desConectar();\n }", "public void carregaCidadeSelecionada(String nome) throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUfEditar.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidadeEditar.addItem(list);\n \n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbCidadeEditar.setSelectedItem(nome);\n \n \n \n \n }", "private void initCombobox() {\n comboConstructeur = new ComboBox<>();\n comboConstructeur.setLayoutX(100);\n comboConstructeur.setLayoutY(250);\n\n\n BDDManager2 bddManager2 = new BDDManager2();\n bddManager2.start(\"jdbc:mysql://localhost:3306/concession?characterEncoding=utf8\", \"root\", \"\");\n listeConstructeur = bddManager2.select(\"SELECT * FROM constructeur;\");\n bddManager2.stop();\n for (int i = 0; i < listeConstructeur.size(); i++) {\n comboConstructeur.getItems().addAll(listeConstructeur.get(i).get(1));\n\n\n }\n\n\n\n\n\n\n }", "public GestionGastosGenerales() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setResizable(false);\n this.setTitle(\"Gestión de Gastos Generales\");\n \n try{\n String query = \"SELECT convert(varchar, getdate(), 105) as FECHA\";\n String[] columnas = {\"FECHA\"};\n LinkedList<LinkedList<String>> fecha = Globales.baseDatos.select(query, columnas);\n if(fecha == null){\n throw new NoConectionDataBaseException(\"Error al conectarse con la base de datos: \" + Globales.baseDatos.getUltimoError());\n }\n if(fecha.size() <1){\n throw new NoConectionDataBaseException(\"Error al conectarse con la base de datos: No se encontraron datos de la fecha actual\");\n }\n String[] fechaArray = fecha.get(0).get(0).split(\"-\");\n if(fechaArray.length != 3){\n throw new NoTypeRequiredException(\"No se puede procesar la fecha obtenida de la base de datos\");\n }\n \n ano = Integer.parseInt(fechaArray[2]);\n \n mes = Integer.parseInt(fechaArray[1]);\n \n int contadorAnos = ano - anoInicial;\n String[] listaAnos = new String[contadorAnos + 1];\n listaAnos[0] = anoInicial.toString();\n \n for(int i = 0; i<contadorAnos;i++){\n Integer tempInt = anoInicial+(i+1);\n listaAnos[i+1] = tempInt.toString();\n }\n DefaultComboBoxModel anoModel = new DefaultComboBoxModel(listaAnos);\n anoCB.setModel(anoModel);\n \n DefaultComboBoxModel mesModel = new DefaultComboBoxModel(generarListaMeses(mes));\n mesCB.setModel(mesModel);\n \n anoCB.setSelectedIndex(anoCB.getItemCount()-1);\n mesCB.setSelectedIndex(mesCB.getItemCount()-1);\n \n //termina seccion de ajuste de fecha\n actualizarTabla();\n \n \n \n }\n catch(NoConectionDataBaseException e){\n JOptionPane.showMessageDialog(this, e.getMessage(), \"Error de conexión con la base de datos\", JOptionPane.ERROR_MESSAGE);\n \n }\n catch(NoTypeRequiredException e){\n JOptionPane.showMessageDialog(this, e.getMessage(), \"Error al guardar el registro\", JOptionPane.WARNING_MESSAGE);\n }\n }", "public Usuarios() {\n try {\n initComponents();\n String c_est, c_mun, c_ciu, id1;\n this.setLocationRelativeTo(null);\n String[] datos = new String[2];\n a = new Archivos();\n lineas = new String[9];\n lineas = a.Leer();\n m = new ManejadorSQL(lineas[2], lineas[1], lineas[3], lineas[4], lineas[5], lineas[7], lineas[6]);\n m.setLineas(lineas);\n ResultSet b_esta = m.Select(\"tblsit_estado order by nb_estado\", \"id_estado,nb_estado\");//Seleccionamos los estados para el combo box\n while (b_esta.next()) {\n datos[0] = b_esta.getString(1);\n datos[1] = b_esta.getString(2);\n u_c_estado.addItem(datos[1]); // agregamos los estados\n //System.out.println(datos[0]);\n }\n DefaultComboBoxModel modeloCombo = new DefaultComboBoxModel();// TODO add your handling code here:\n modeloCombo.addElement(\"Seleccionar\");\n u_ciudad.setModel(modeloCombo);\n u_c_municipio.setModel(modeloCombo);\n \n } catch (Exception ex) {\n Logger.getLogger(Usuarios.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void cargaComboBoxTipoGrano() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoGranoEntity p\");\n java.util.List<TipoGranoEntity> listaTipoGranoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoGranoEntity tipoGrano : listaTipoGranoEntity) {\n miVectorTipoLaboreo.add(tipoGrano.getTgrNombre());\n cbxSemillas.addItem(tipoGrano);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "public void crearModelo() {\r\n\t\tmodelo = new DefaultComboBoxModel<>();\r\n\t\tmodelo.addElement(\"Rojo\");\r\n\t\tmodelo.addElement(\"Verde\");\r\n\t\tmodelo.addElement(\"Azul\");\r\n\t\tmodelo.addElement(\"Morado\");\r\n\t}", "public DefaultComboBoxModel<MarcaVO> preencherCbx_Marca() {\n BaseDAO<MarcaVO> bDAO = new MarcaDAO();\n ArrayList<MarcaVO> list = bDAO.consultarTodos();\n return new DefaultComboBoxModel(list.toArray());\n }", "public void listarIgrejaComboBox() {\n\n IgrejasDAO dao = new IgrejasDAO();\n List<Igrejas> lista = dao.listarIgrejas();\n cbIgrejas.removeAllItems();\n\n for (Igrejas c : lista) {\n cbIgrejas.addItem(c);\n }\n }", "public VistaProductos() {\n setUndecorated(true);\n initComponents();\n ValidadSoloNumeros(TextCodProduct);\n ValidadCaracteres(TextDescripcion);\n ValidadSoloNumeros(TextPrecio);\n ValidadSoloNumeros(TextCostoproduc);\n ValidadSoloNumeros(txtIvap);\n cn = Conexion.getConn();\n cargar();\n\n LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(cc.listaProvee().toArray()));\n\n obj = ControllerSql.getInstancia();\n proveedores = cc.listaProvee();\n // LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(proveedores.toArray()));\n LitsadeProovedores.setSelectedIndex(-1);\n }", "public void riempiProceduraComboBox(){\n Statement stmt;\n ResultSet rst;\n String query = \"SELECT P.schema, P.nomeProcedura FROM Procedura P\";\n \n proceduraComboBox.removeAllItems();\n try{\n stmt = Database.getDefaultConnection().createStatement();\n rst = stmt.executeQuery(query);\n \n while(rst.next()){\n //le Procedure nella comboBox saranno mostrate secondo il modello: nomeSchema.nomeProcedura\n //in quanto Procedure appartenenti a Schemi diversi possono avere lo stesso nome\n proceduraComboBox.addItem(rst.getString(1)+\".\"+rst.getString(2));\n }\n proceduraComboBox.setSelectedIndex(-1);\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n }", "public ComboBoxModel getTiposProducto();", "public void carrega_cidade() throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUF.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n \n ResultSet rs = preparador.executeQuery();\n cbCidade.removeAllItems();\n //passando valores do banco para o objeto result; \n try{ \n \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidade.addItem(list); \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n Conexao.desConectar();\n \n }", "private void cargaComboTipoDocumento() {\n\t\tcomboTipoDoc = new JComboBox();\n\t\tfor (TipoDocumentoDTO tipoDocumentoDTO : tip) {\n\t\t\tcomboTipoDoc.addItem(tipoDocumentoDTO.getAbreviacion());\n\t\t}\n\n\t}", "public jp_movimientos() {\n initComponents();\n this.jComboBox4.setVisible(false);\n this.jLabel9.setVisible(false);\n modelo = new DefaultComboBoxModel();\n modelo_libro = new ArrayList();\n this.jComboBox3.setModel(modelo);\n modelo_libro.add(new DefaultComboBoxModel<>(new String[]{\"5.1: \\tDIARIO\", \"5.3: \\tDETALLE DEL PLAN CONTABLE UTILIZADO\"}));\n modelo_libro.add(new DefaultComboBoxModel<>(new String[]{\"5.2: \\tDIARIO DE FORMATO SIMPLIFICADO\", \"5.4: \\tDETALLE DEL PLAN CONTABLE UTILIZADO\"}));\n modelo_libro.add(null);\n modelo_libro.add(new DefaultComboBoxModel<>(new String[]{\"8.1: \\tCOMPRAS\", \"8.2: \\tINFORMACION DE OPERACIONES CON SUJETOS NO DOMICILIADOS\", \"8.3: \\tCOMPRAS SIMPLIFICADO\"}));\n modelo_libro.add(new DefaultComboBoxModel<>(new String[]{\"14.1: \\tVENTAS E INGRESOS\", \"14.2: \\tVENTAS E INGRESOS SIMPLIFICADOS\"}));\n }", "public void carregaCidadeModificada() throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUfEditar.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n \n ResultSet rs = preparador.executeQuery();\n cbCidadeEditar.removeAllItems();\n //passando valores do banco para o objeto result; \n try{ \n \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidadeEditar.addItem(list); \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n \n }", "public MantendorContrato() {\n initComponents();\n this.jTableContratos.setModel(this.showData());\n \n lblClienteid.setVisible(false);\n lblContratoId.setVisible(false);\n ClienteService cs = new ClienteService();\n \n String array = cs.getCliente(); \n JSONObject obj = new JSONObject(array); \n Usuario u = new Usuario();\n JSONArray data = obj.getJSONArray(\"data\"); \n for (int i = 0; i < data.length(); i++) {\n JSONObject row = data.getJSONObject(i);\n cmbClienteContrato.addItem(\n new ClienteCombobox(row.getInt(\"cliente_id\"), row.getString(\"cliente_nombre\"))\n );\n }\n \n this.jTableContratos.getSelectionModel().addListSelectionListener(new ListSelectionListener(){\n public void valueChanged(ListSelectionEvent event) {\n // do some actions here, for example\n // print first column value from selected row\n String contratoId = jTableContratos.getValueAt(jTableContratos.getSelectedRow(), 0).toString(); \n String clienteId = jTableContratos.getValueAt(jTableContratos.getSelectedRow(), 6).toString(); \n String activo = jTableContratos.getValueAt(jTableContratos.getSelectedRow(), 8).toString(); \n \n \n if(activo.equalsIgnoreCase(\"1\")){\n radioActivoEdit.setSelected(true);\n }else if(activo.equalsIgnoreCase(\"0\")){\n radioInactivoEdit.setSelected(true);\n }\n \n lblClienteid.setText(clienteId);\n lblContratoId.setText(contratoId);\n \n }\n }); \n }", "private void obtenerMaterias(java.awt.event.FocusEvent evt) {\n limpiarCampos();\n ControlMateria cMateria = new ControlMateria();\n try {\n ResultSet obtenerMaterias = cMateria.obtenerMaterias();\n\n while (obtenerMaterias.next()) {\n cbox1Materia.addItem(obtenerMaterias.getObject(1));\n }\n\n } catch (ClassNotFoundException | SQLException ex) {\n System.out.println(ex);\n }\n\n\n }", "private void CargarListaFincas() {\n listaFincas = controlgen.GetComboBox(\"SELECT '-1' AS ID, 'Seleccionar' AS DESCRIPCION\\n\" +\n \"UNION\\n\" +\n \"SELECT `id` AS ID, `descripcion` AS DESCRIPCION\\n\" +\n \"FROM `fincas`\\n\"+\n \"/*UNION \\n\"+\n \"SELECT 'ALL' AS ID, 'TODOS' AS DESCRIPCION*/\");\n \n Utilidades.LlenarComboBox(cbFinca, listaFincas, \"DESCRIPCION\");\n \n }", "private void preencherComboEstados() {\n\t\tList<Estado> listEstado;\n\t\tObservableList<Estado> oListEstado;\n\t\tEstadosDAO estadosDao;\n\n\t\t//Instancia a DAO estados\n\t\testadosDao = new EstadosDAO();\n\n\t\t//Chama o metodo para listar todos os estados\n\t\tlistEstado = estadosDao.selecionar();\n\n\t\t//Verifica se a lista de estados está vazia\n\t\tif(listEstado.isEmpty()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Atribui a lista retornada ao observablearray\n\t\toListEstado = FXCollections.observableArrayList(listEstado);\n\n\t\t//Adiciona os itens no combobx\n\t\tcboEstado.setItems(oListEstado);\n\n\t\t//Seleciona o primeio item do combobox\n\t\tcboEstado.getSelectionModel().select(0);\n\t}", "public Carta() {\n initComponents();\n \n \n \n items[0] = \"Entradas\";\n items[1] = \"Fuertes\";\n items[2] = \"Postres\";\n comboCategorias.setModel(new javax.swing.DefaultComboBoxModel(items));\n comboCategoriasM.setModel(new javax.swing.DefaultComboBoxModel(items));\n\n }", "private JComboBox<Cliente> crearComboClientes() {\n\n JComboBox<Cliente> combo = new JComboBox<>(new Vector<>(almacen.getClientes()));\n combo.setMaximumSize(new Dimension(500, 40));\n\n combo.setRenderer(new DefaultListCellRenderer() {\n @Override\n public Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n\n Component resultado = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\n Cliente cliente = (Cliente) value;\n this.setText(cliente != null ? cliente.getNombre() : \"No existen clientes\");\n\n return resultado;\n }\n });\n\n return combo;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n bindingGroup = new org.jdesktop.beansbinding.BindingGroup();\n\n jComboBox2 = new javax.swing.JComboBox<>();\n buttonGroup1 = new javax.swing.ButtonGroup();\n entityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory(\"crmPU\").createEntityManager();\n clienteQuery = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery(\"SELECT c FROM Cliente c\");\n clienteList = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : clienteQuery.getResultList();\n crmPUEntityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory(\"crmPU\").createEntityManager();\n clienteQuery1 = java.beans.Beans.isDesignTime() ? null : crmPUEntityManager.createQuery(\"SELECT c FROM Cliente c\");\n clienteList1 = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : clienteQuery1.getResultList();\n funcionarioQuery = java.beans.Beans.isDesignTime() ? null : crmPUEntityManager.createQuery(\"SELECT f FROM Funcionario f\");\n funcionarioList = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : funcionarioQuery.getResultList();\n jTextField1 = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n cmbFuncionario = new javax.swing.JComboBox<>();\n jButton1 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n cmbCliente = new javax.swing.JComboBox<>();\n txtData = new javax.swing.JFormattedTextField();\n jButton2 = new javax.swing.JButton();\n\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jTextField1.setText(\"jTextField1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n jLabel3.setText(\"Visitas Programadas\");\n\n jLabel1.setText(\"Cliente\");\n\n jLabel2.setText(\"Data prevista\");\n\n jLabel4.setText(\"Func. Responsável\");\n\n org.jdesktop.swingbinding.JComboBoxBinding jComboBoxBinding = org.jdesktop.swingbinding.SwingBindings.createJComboBoxBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, funcionarioList, cmbFuncionario);\n bindingGroup.addBinding(jComboBoxBinding);\n\n jButton1.setText(\"Salvar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton6.setText(\"<\");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n jComboBoxBinding = org.jdesktop.swingbinding.SwingBindings.createJComboBoxBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, clienteList1, cmbCliente);\n bindingGroup.addBinding(jComboBoxBinding);\n\n try {\n txtData.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##/##/####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jButton2.setText(\"Visitas\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(61, 61, 61)\n .addComponent(jButton6)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cmbCliente, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtData)\n .addComponent(cmbFuncionario, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton2)\n .addGap(64, 64, 64))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jButton6))\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(cmbCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(cmbFuncionario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(49, 49, 49)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addGap(18, 18, 18)\n .addComponent(jLabel5)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n bindingGroup.bind();\n\n pack();\n }", "private void iniciaTela() {\n try {\n tfCod.setText(String.valueOf(reservaCliDAO.getLastId()));\n desabilitaCampos(false);\n DefaultComboBoxModel modeloComboCliente;\n modeloComboCliente = new DefaultComboBoxModel(funDAO.getAll().toArray());\n cbFunc.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(quartoDAO.getAll().toArray());\n cbQuarto.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(cliDAO.getAll().toArray());\n cbCliente.setModel(modeloComboCliente);\n btSelect.setEnabled(false);\n verificaCampos();\n carregaTableReserva(reservaDAO.getAll());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n campoFilme = new javax.swing.JComboBox<>();\n botaoCadastrar = new javax.swing.JButton();\n botaoExcluir = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n campoSala = new javax.swing.JComboBox<>();\n jSpinner1 = new javax.swing.JSpinner();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setText(\"Cadastro de Sessao\");\n\n jLabel2.setText(\"Filme:\");\n\n jLabel5.setText(\"Sala: \");\n\n campoFilme.setModel(new javax.swing.DefaultComboBoxModel(SelectModel.selectFilmeAll().toArray()));\n campoFilme.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoFilmeActionPerformed(evt);\n }\n });\n\n botaoCadastrar.setText(\"Cadastrar\");\n botaoCadastrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoCadastrarActionPerformed(evt);\n }\n });\n\n botaoExcluir.setText(\"Cancelar\");\n botaoExcluir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoExcluirActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Horário:\");\n\n campoSala.setModel(new javax.swing.DefaultComboBoxModel(SelectModel.selectSalaAll().toArray()));\n campoSala.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoSalaActionPerformed(evt);\n }\n });\n\n jSpinner1.setModel(new SpinnerNumberModel(0, 0, 24, 1));\n\n jLabel6.setText(\"horas\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel5)\n .addComponent(jLabel7))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(campoFilme, javax.swing.GroupLayout.PREFERRED_SIZE, 484, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel6))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(botaoCadastrar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botaoExcluir))\n .addComponent(campoSala, javax.swing.GroupLayout.PREFERRED_SIZE, 484, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(184, 184, 184)\n .addComponent(jLabel1)))\n .addContainerGap(34, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(campoFilme, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(campoSala, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(46, 46, 46)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(botaoCadastrar)\n .addComponent(botaoExcluir))\n .addContainerGap(50, Short.MAX_VALUE))\n );\n\n JComponent editor = jSpinner1.getEditor();\n ( (DefaultEditor)editor).getTextField().setFocusable( false ); // Converte para DefaultEditor e acessa o TextField\n\n pack();\n setLocationRelativeTo(null);\n }", "void hienThi() {\n LoaiVT.Open();\n ArrayList<LoaiVT> DSSP = LoaiVT.DSLOAIVT;\n VatTu PX = VatTu.getPX();\n \n try {\n txtMaVT.setText(PX.getMaVT());\n txtTenVT.setText(PX.getTenVT());\n txtDonVi.setText(PX.getDVT());\n DefaultComboBoxModel cb = new DefaultComboBoxModel();\n for(LoaiVT SP: DSSP){ \n cb.addElement(SP.getMaLoai());\n if(SP.getMaLoai().equals(PX.getMaLoai())){\n cb.setSelectedItem(SP.getMaLoai());\n }\n }\n cbMaloai.setModel(cb);\n } catch (Exception ex) {\n txtMaVT.setText(\"\");\n txtTenVT.setText(\"\");\n txtDonVi.setText(\"\");\n DefaultComboBoxModel cb = new DefaultComboBoxModel();\n cb.setSelectedItem(\"\");\n cbMaloai.setModel(cb);\n }\n \n \n }", "public CustomComboBoxModel() {\n\t\t// TODO Auto-generated constructor stub\n\t\tZipcodeDAO dao = new ZipcodeDAO();\n\t\tdatas = dao.allSido();\n\t}", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tPlantillaFacturaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.plantillafactura,new Object(),this.plantillafacturaParameterGeneral,this.plantillafacturaReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tPlantillaFacturaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.plantillafactura,new Object(),this.plantillafacturaParameterGeneral,this.plantillafacturaReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,PlantillaFacturaConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "public void riempiTriggerComboBox(){\n Statement stmt;\n ResultSet rst;\n String query = \"SELECT T.schema, T.nomeTrigger FROM trigger1 T\";\n \n triggerComboBox.removeAllItems();\n try{\n stmt = Database.getDefaultConnection().createStatement();\n rst = stmt.executeQuery(query);\n \n while(rst.next()){\n //I Trigger nella comboBox saranno mostrate secondo il modello: nomeSchema.nomeTrigger\n //in quanto Trigger appartenenti a Schemi diversi possono avere lo stesso nome\n triggerComboBox.addItem(rst.getString(1)+\".\"+rst.getString(2));\n }\n triggerComboBox.setSelectedIndex(-1);\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n }", "public DefaultComboBoxModel llenarCombo() {\n DefaultComboBoxModel comboFut = new DefaultComboBoxModel();\n comboFut.addElement(\"Seleccione un club\");\n ResultSet res = this.consulta(\"SELECT * FROM Clubs\");\n try {\n while (res.next()) {\n // se inserta en el combo el nombre del club\n comboFut.addElement(res.getString(\"nombre\"));\n }\n close(res);\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n }\n return comboFut;\n }", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tLibroContableBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.librocontable,new Object(),this.librocontableParameterGeneral,this.librocontableReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tLibroContableBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.librocontable,new Object(),this.librocontableParameterGeneral,this.librocontableReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,LibroContableConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n ClinicaFprojectPUEntityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory(\"ClinicaFprojectPU\").createEntityManager();\n pacienteQuery = java.beans.Beans.isDesignTime() ? null : ClinicaFprojectPUEntityManager.createQuery(\"SELECT p FROM Paciente p\");\n pacienteList = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : pacienteQuery.getResultList();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jComboBox1 = new javax.swing.JComboBox<>();\n\n setClosable(true);\n\n jButton1.setText(\"jButton1\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"jButton2\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n jComboBox1.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jComboBox1ItemStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(356, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addGap(34, 34, 34)\n .addComponent(jButton1)\n .addGap(155, 155, 155))\n .addGroup(layout.createSequentialGroup()\n .addGap(153, 153, 153)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(134, 134, 134)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 174, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addGap(49, 49, 49))\n );\n\n pack();\n }", "public JComboBox getJComboBoxMunicipio()\r\n {\r\n \tif (jComboBoxMunicipio == null) {\r\n\t\t\tjComboBoxMunicipio = new JComboBox();\r\n\t\t\tjComboBoxMunicipio.setRenderer(new UbicacionListCellRenderer());\r\n\t\t\tjComboBoxMunicipio.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\t\tif (jComboBoxMunicipio.getSelectedIndex() != 0) {\r\n\t\t\t\t\t\tMunicipioEIEL municipio = new MunicipioEIEL();\r\n\t\t\t\t\t\tif (jComboBoxProvincia.getSelectedItem() != null) {\r\n\t\t\t\t\t\t\tmunicipio\r\n\t\t\t\t\t\t\t\t\t.setCodProvincia(((Provincia) jComboBoxProvincia\r\n\t\t\t\t\t\t\t\t\t\t\t.getSelectedItem())\r\n\t\t\t\t\t\t\t\t\t\t\t.getIdProvincia());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (jComboBoxMunicipio.getSelectedItem() != null) {\r\n\t\t\t\t\t\t\tmunicipio\r\n\t\t\t\t\t\t\t\t\t.setCodMunicipio(((Municipio) jComboBoxMunicipio\r\n\t\t\t\t\t\t\t\t\t\t\t.getSelectedItem()).getIdIne());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (municipio.getCodMunicipio()!=null){\r\n\t \t\t\tEdicionOperations oper = new EdicionOperations();\r\n\t \t\t\tEdicionUtils.cargarLista(getJComboBoxEntidad(), oper.obtenerEntidadesConNombre(municipio));\r\n//\t \t\t\tSystem.out.println(\"PASO1\");\r\n\t \t\t\t//EdicionUtils.cargarLista(jComboBoxNucleo, oper.obtenerNucleosConNombre(entidad)); \r\n \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\treturn jComboBoxMunicipio;\r\n }", "public FrmCadastro() {\n initComponents();\n \n lblNumeroConta.setText(\"Número da conta: \" + Agencia.getProximaConta());\n \n List<Integer> agencias = Principal.banco.retornarNumeroAgencias();\n for(int i : agencias){\n cmbAgencias.addItem(\"Agência \" + i);\n }\n }", "@Transactional(readOnly = true)\n\tList<Acondicionador> getAcondicionadoresForCombobox();", "public void rellena_jcombobox_articulos()\r\n\t{\r\n\t\tresultset1 = base_datos.obtener_objetos(\"SELECT descripcionArticulo FROM articulos ORDER BY 1;\");\t\r\n\r\n\t\ttry //USAMOS UN WHILE PARA RELLENAR EL JCOMBOX CON LOS RESULTADOS DEL RESULSET\r\n\t\t{\r\n\t\t\twhile(resultset1.next())\r\n\t\t\t{\r\n\t\t\t\tcomboArticulo.addItem(resultset1.getString(\"descripcionArticulo\"));\r\n\t\t\t}\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tTipoDetalleMovimientoInventarioBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.tipodetallemovimientoinventario,new Object(),this.tipodetallemovimientoinventarioParameterGeneral,this.tipodetallemovimientoinventarioReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tTipoDetalleMovimientoInventarioBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.tipodetallemovimientoinventario,new Object(),this.tipodetallemovimientoinventarioParameterGeneral,this.tipodetallemovimientoinventarioReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tCierreCajaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.cierrecaja,new Object(),this.cierrecajaParameterGeneral,this.cierrecajaReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tCierreCajaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.cierrecaja,new Object(),this.cierrecajaParameterGeneral,this.cierrecajaReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,CierreCajaConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "public Main() {\n initComponents();\n ap.setArchivo(new File(\"./planetas.abc\"));\n aa.setArchivo(new File(\"./astro.abc\"));\n ap.cargar();\n planetas = ap.getListaa();\n aa.cargar();\n astro = aa.getListaa();\n DefaultComboBoxModel modelo = (DefaultComboBoxModel) cb_planeta.getModel();\n for (Planetas p : planetas) {\n modelo.addElement(p);\n }\n cb_planeta.setModel(modelo);\n DefaultComboBoxModel model = (DefaultComboBoxModel) cb_crew.getModel();\n for (Astronautas a : astro) {\n model.addElement(a);\n }\n cb_crew.setModel(model);\n if (planetas.size() > 0) {\n DefaultTableModel m = (DefaultTableModel) jt_pla.getModel();\n for (Planetas p : planetas) {\n Object newrow[] = {\n p.getNombre(),\n p.getTemp(),\n p.isAnillos(),\n p.getSuperficie(),\n p.getDist()\n };\n m.addRow(newrow);\n }\n jt_pla.setModel(m);\n }\n if (astro.size() > 0) {\n DefaultTableModel a = (DefaultTableModel) jt_astro.getModel();\n for (Astronautas c : astro) {\n Object newro[] = {\n c.getNombre(),\n c.getNacionalidad(),\n c.getSueldo(),\n c.getExperiencia(),\n c.getSexo(),\n c.getPeso()\n };\n a.addRow(newro);\n }\n jt_astro.setModel(a);\n }\n }", "String darArtistaSeleccionado( )\n {\n return ( ( Artista ) Objects.requireNonNull( cbArtistas.getSelectedItem( ) ) ).darNombre( );\n }", "private void actualizarComboboxCursos() {\n\t\tint curso;\n\n\t\tDefaultComboBoxModel dcbm = new DefaultComboBoxModel();\n\t\tdcbm.removeAllElements();\n\n\t\tLinkedHashSet<Integer> resultado = modelo.obtenerCursos();\n\t\tIterator it = resultado.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tcurso = (int) it.next();\n\n\t\t\tdcbm.addElement(curso);\n\t\t}\n\t\tjfad.cBCursos.setModel(dcbm);\n\t\tjfad.cBCursosMod.setModel(dcbm);\n\t\tSystem.out.println(dcbm.getSelectedItem());\n\t}", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tTipoDireccionBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.tipodireccion,new Object(),this.tipodireccionParameterGeneral,this.tipodireccionReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tTipoDireccionBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.tipodireccion,new Object(),this.tipodireccionParameterGeneral,this.tipodireccionReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TipoDireccionConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "public void llenarComboBox(){\n TipoMiembroComboBox.removeAllItems();\n TipoMiembroComboBox.addItem(\"Administrador\");\n TipoMiembroComboBox.addItem(\"Editor\");\n TipoMiembroComboBox.addItem(\"Invitado\");\n }", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tUtilidadTipoPrecioBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.utilidadtipoprecio,new Object(),this.utilidadtipoprecioParameterGeneral,this.utilidadtipoprecioReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tUtilidadTipoPrecioBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.utilidadtipoprecio,new Object(),this.utilidadtipoprecioParameterGeneral,this.utilidadtipoprecioReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,UtilidadTipoPrecioConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tCostoGastoImporBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.costogastoimpor,new Object(),this.costogastoimporParameterGeneral,this.costogastoimporReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tCostoGastoImporBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.costogastoimpor,new Object(),this.costogastoimporParameterGeneral,this.costogastoimporReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,CostoGastoImporConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tAnalisisTransaClienteBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.analisistransacliente,new Object(),this.analisistransaclienteParameterGeneral,this.analisistransaclienteReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tAnalisisTransaClienteBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.analisistransacliente,new Object(),this.analisistransaclienteParameterGeneral,this.analisistransaclienteReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,AnalisisTransaClienteConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tEvaluacionProveedorBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.evaluacionproveedor,new Object(),this.evaluacionproveedorParameterGeneral,this.evaluacionproveedorReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tEvaluacionProveedorBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.evaluacionproveedor,new Object(),this.evaluacionproveedorParameterGeneral,this.evaluacionproveedorReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,EvaluacionProveedorConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "private void inicializarCombos() {\n\t\tlistaGrupoUsuario = GrupoUsuarioDAO.readTodos(this.mainApp.getConnection());\n\t\tfor (GrupoUsuario grupo : listaGrupoUsuario) {\n\t\t\tthis.observableListaGrupoUsuario.add(grupo.getNombre());\n\t\t}\n\t\tthis.comboGrupoUsuario.setItems(this.observableListaGrupoUsuario);\n\t\tnew AutoCompleteComboBoxListener(comboGrupoUsuario);\n\n\t\tObservableList<String> status = FXCollections.observableArrayList(\"Bloqueado\",\"Activo\",\"Baja\");\n\t\tthis.comboStatus.setItems(status);\n\t\tthis.comboEmpleados.setItems(FXCollections.observableArrayList(this.listaEmpleados));\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n //Preenche o comboBox sexo\r\n cb_sexo.setItems(listSexo);\r\n cb_uf.setItems(listUf);\r\n cb_serie.setItems(listSerie);\r\n\r\n// // Preenche o comboBox UF\r\n// this.cb_uf.setConverter(new ConverterDados(ConverterDados.GET_UF));\r\n// this.cb_uf.setItems(AlunoDAO.executeQuery(null, AlunoDAO.QUERY_TODOS));\r\n//\r\n// //Preenche o comboBox Serie\r\n// this.cb_serie.setConverter(new ConverterDados(ConverterDados.GET_SERIE));\r\n// this.cb_serie.setItems(AlunoDAO.executeQuery(null, AlunoDAO.QUERY_TODOS));\r\n this.codAluno.setCellValueFactory(cellData -> cellData.getValue().getCodigoProperty().asObject());\r\n this.nomeAluno.setCellValueFactory(cellData -> cellData.getValue().getNomeProperty());\r\n this.sexoAluno.setCellValueFactory(cellData -> cellData.getValue().getSexoProperty());\r\n this.enderecoAluno.setCellValueFactory(cellData -> cellData.getValue().getEnderecoProperty());\r\n this.cepAluno.setCellValueFactory(cellData -> cellData.getValue().getCepProperty());\r\n this.nascimentoAluno.setCellValueFactory(cellData -> cellData.getValue().getNascimentoProperty());\r\n this.ufAluno.setCellValueFactory(cellData -> cellData.getValue().getUfProperty());\r\n this.maeAluno.setCellValueFactory(cellData -> cellData.getValue().getMaeProperty());\r\n this.paiAluno.setCellValueFactory(cellData -> cellData.getValue().getPaiProperty());\r\n this.telefoneAluno.setCellValueFactory(cellData -> cellData.getValue().getTelefoneProperty());\r\n this.serieAluno.setCellValueFactory(cellData -> cellData.getValue().getSerieProperty());\r\n this.ensinoAluno.setCellValueFactory(cellData -> cellData.getValue().getEnsinoProperty());\r\n\r\n //bt_excluir.disableProperty().bind(tabelaAluno.getSelectionModel().selectedItemProperty().isNull());\r\n //bt_editar.disableProperty().bind(tabelaAluno.getSelectionModel().selectedItemProperty().isNull());\r\n }", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tPagosAutorizadosBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.pagosautorizados,new Object(),this.pagosautorizadosParameterGeneral,this.pagosautorizadosReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tPagosAutorizadosBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.pagosautorizados,new Object(),this.pagosautorizadosParameterGeneral,this.pagosautorizadosReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,PagosAutorizadosConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tLiquidacionImpuestoImporBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.liquidacionimpuestoimpor,new Object(),this.liquidacionimpuestoimporParameterGeneral,this.liquidacionimpuestoimporReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tLiquidacionImpuestoImporBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.liquidacionimpuestoimpor,new Object(),this.liquidacionimpuestoimporParameterGeneral,this.liquidacionimpuestoimporReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,LiquidacionImpuestoImporConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "public void cargarJComboBoxProductos(JComboBox cbxProductos) { \n bodega Bodega = new bodega();\n for (producto Producto : Bodega.getProductosList()) {\n cbxProductos.addItem(Producto.getNombreProducto());\n //cbxCantidad.addItem(String.valueOf(Producto.getStockProducto()));\n }\n }", "public CadastroDentista() {\n initComponents();\n con_dent = new ConectaBanco();\n con_dent.OpenDB();\n con_dent.QuerySQL(\"SELECT * FROM dentistas\");\n\n try{\n con_dent.rs.first();\n txtCodigo.setText(con_dent.rs.getString(\"cod_dentista\"));\n txtNome.setText(con_dent.rs.getString(\"nome_dent\"));\n txtRG.setText(con_dent.rs.getString(\"rg_dent\"));\n txtCPF.setText(con_dent.rs.getString(\"cpf_dent\"));\n txtCRO.setText(con_dent.rs.getString(\"cro_dent\"));\n txtNasc.setText(con_dent.rs.getString(\"dtnasc_dent\"));\n cbSexo.setSelectedItem(con_dent.rs.getString(\"sexo_dent\"));\n txtRua.setText(con_dent.rs.getString(\"endereco_dent\"));\n txtNumero.setText(con_dent.rs.getString(\"numero_dent\"));\n txtCidade.setText(con_dent.rs.getString(\"cidade_dent\"));\n txtEstado.setText(con_dent.rs.getString(\"estado_dent\"));\n txtTel.setText(con_dent.rs.getString(\"telefone_dent\"));\n txtCel.setText(con_dent.rs.getString(\"celular_dent\"));\n } \n catch(SQLException erroSQL){\n JOptionPane.showMessageDialog(null,\"Nenhum dentista cadastrado\");\n }\n }", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tTablaAmortiDetalleBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.tablaamortidetalle,new Object(),this.tablaamortidetalleParameterGeneral,this.tablaamortidetalleReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\t\r\n\t\t\tTablaAmortiDetalleBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.tablaamortidetalle,new Object(),this.tablaamortidetalleParameterGeneral,this.tablaamortidetalleReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TablaAmortiDetalleConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jTextID = new javax.swing.JTextField();\n jTextCodCarro = new javax.swing.JTextField();\n jComboMarca = new javax.swing.JComboBox<>();\n jComboModelo = new javax.swing.JComboBox<>();\n jComboFabricacao = new javax.swing.JComboBox<>();\n jTextDataCompra = new javax.swing.JFormattedTextField();\n jTextFieldPlaca = new javax.swing.JTextField();\n jTextFieldChassi = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jLabel9 = new javax.swing.JLabel();\n jComboStatusID = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Cadastro Veiculo\");\n\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel1.setText(\"ID\");\n\n jLabel2.setText(\"Cod Carro\");\n\n jLabel3.setText(\"Marca\");\n\n jLabel4.setText(\"Modelo\");\n\n jLabel5.setText(\"Fabricação\");\n\n jLabel6.setText(\"Data Compra\");\n\n jLabel7.setText(\"Placa\");\n\n jLabel8.setText(\"Chassi\");\n\n jTextID.setEnabled(false);\n\n jComboMarca.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jComboMarcaItemStateChanged(evt);\n }\n });\n\n jComboFabricacao.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"1999\", \"2000\", \"2001\", \"2002\", \"2003\", \"2004\", \"2005\", \"2006\", \"2007\", \"2008\", \"2009\", \"2010\", \"2011\", \"2012\", \"2013\", \"2014\", \"2015\", \"2016\", \"2017\", \"2018\", \"2019\", \"2020\", \"2021\", \"2022\", \"2023\", \"2024\" }));\n\n try {\n jTextDataCompra.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"####-##-##\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jButton1.setText(\"Cadastrar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Cancelar\");\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Código \", \"Marca\", \"Modelo\", \"Fabricação\", \"Aquisição\", \"Placa\", \"Chassi\", \"Status\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false, true, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(jTable1);\n\n jLabel9.setText(\"Status\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jTextID, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboFabricacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldChassi, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)\n .addComponent(jComboModelo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboMarca, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextCodCarro, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)\n .addComponent(jTextDataCompra, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jTextFieldPlaca, javax.swing.GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE))\n .addComponent(jLabel9)\n .addComponent(jComboStatusID, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 700, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextCodCarro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboFabricacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextDataCompra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldChassi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboStatusID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap(22, Short.MAX_VALUE))\n .addComponent(jScrollPane1)\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n setSize(new java.awt.Dimension(909, 606));\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jbloco = new javax.swing.JComboBox();\n japartamento = new javax.swing.JComboBox();\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Condomínio-SJ2\");\n\n jbloco.setForeground(new java.awt.Color(153, 0, 153));\n jbloco.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"BLOCO A\", \"BLOCO B\", \"BLOCO C\", \"BLOCO D\", \"BLOCO F\", \"BLOCO G\", \"BLOCO H\", \"BLOCO I\", \"BLOCO J\", \"BLOCO K\", \" \", \" \" }));\n jbloco.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jblocoActionPerformed(evt);\n }\n });\n\n japartamento.setForeground(new java.awt.Color(204, 0, 204));\n japartamento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"APARTAMENTO 101\", \"APARTAMENTO 102\", \"APARTAMENTO 103\", \"APARTAMENTO 104\", \"APARTAMENTO 201\", \"APARTAMENTO 202\", \"APARTAMENTO 203\", \"APARTAMENTO 204\", \"APARTAMENTO 301\", \"APARTAMENTO 302\", \"APARTAMENTO 303\", \"APARTAMENTO 304\", \"APARTAMENTO 401\", \"APARTAMENTO 402\", \"APARTAMENTO 403\", \"APARTAMENTO 404\", \" \", \" \" }));\n\n jButton1.setText(\"Pesquisar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel1.setText(\"Verificar possibilidade de agendamento :\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(150, 150, 150)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 431, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jbloco, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(88, 88, 88)\n .addComponent(japartamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(97, 97, 97)\n .addComponent(jButton1)))\n .addContainerGap(54, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(46, 46, 46)\n .addComponent(jLabel1)\n .addGap(48, 48, 48)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jbloco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(japartamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addContainerGap(230, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public JComboBox getJComboBoxProvincia()\r\n {\r\n \tif (jComboBoxProvincia == null) {\r\n\t\t\tEdicionOperations oper = new EdicionOperations();\r\n\t\t\tArrayList<Provincia> listaProvincias = oper.obtenerProvinciasConNombre();\r\n\t\t\tjComboBoxProvincia = new JComboBox(listaProvincias.toArray());\r\n\t\t\tjComboBoxProvincia\r\n\t\t\t\t\t.setSelectedIndex(this\r\n\t\t\t\t\t\t\t.provinciaIndexSeleccionar(ConstantesLocalGISEIEL.idProvincia));\r\n\t\t\tjComboBoxProvincia.setRenderer(new UbicacionListCellRenderer());\r\n\t\t\tjComboBoxProvincia.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tif (getJComboBoxMunicipio() != null) {\r\n\t\t\t\t\t\tif (jComboBoxProvincia.getSelectedIndex() == 0) {\r\n\t\t\t\t\t\t\tjComboBoxMunicipio.removeAllItems();\r\n\t\t\t\t\t\t\tMunicipio municipio = new Municipio();\r\n\t\t\t\t\t\t\tmunicipio.setIdIne(\"\");\r\n\t\t\t\t\t\t\tmunicipio.setNombreOficial(\"\");\r\n\t\t\t\t\t\t\tjComboBoxMunicipio.addItem(municipio);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tEdicionOperations oper = new EdicionOperations();\r\n\t\t\t\t\t\t\tjComboBoxProvincia\r\n\t\t\t\t\t\t\t\t\t.setSelectedIndex(provinciaIndexSeleccionar(ConstantesLocalGISEIEL.idProvincia));\r\n\r\n\t\t\t\t\t\t\tif (jComboBoxProvincia.getSelectedItem() != null) {\r\n\t\t\t\t\t\t\t\tEdicionUtils.cargarLista(\r\n\t\t\t\t\t\t\t\t\t\tgetJComboBoxMunicipio(),\r\n\t\t\t\t\t\t\t\t\t\toper.obtenerTodosMunicipios(((Provincia) jComboBoxProvincia\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getSelectedItem())\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getIdProvincia()));\r\n\t\t\t\t\t\t\t\tjComboBoxMunicipio\r\n\t\t\t\t\t\t\t\t\t\t.setSelectedIndex(municipioIndexSeleccionar(ConstantesLocalGISEIEL.idMunicipio));\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\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t}\r\n\r\n\t\treturn jComboBoxProvincia;\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n bindingGroup = new org.jdesktop.beansbinding.BindingGroup();\n\n jLabel1 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel3 = new javax.swing.JLabel();\n jXDatePicker1 = new org.jdesktop.swingx.JXDatePicker();\n jLabel4 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jSpinner1 = new javax.swing.JSpinner();\n jLabel5 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Datos Entrenador\");\n\n jLabel1.setText(\"Nombre y apellidos:\");\n\n org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create(\"${entrenador.nombre}\"), jTextField1, org.jdesktop.beansbinding.BeanProperty.create(\"text\"));\n bindingGroup.addBinding(binding);\n\n jLabel2.setText(\"Nacionalidad: \");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n org.jdesktop.beansbinding.ELProperty eLProperty = org.jdesktop.beansbinding.ELProperty.create(\"${paises}\");\n org.jdesktop.swingbinding.JComboBoxBinding jComboBoxBinding = org.jdesktop.swingbinding.SwingBindings.createJComboBoxBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, eLProperty, jComboBox1);\n bindingGroup.addBinding(jComboBoxBinding);\n binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create(\"${entrenador.nacionalidad}\"), jComboBox1, org.jdesktop.beansbinding.BeanProperty.create(\"selectedItem\"));\n bindingGroup.addBinding(binding);\n\n jLabel3.setText(\"Fecha nacimiento:\");\n\n jLabel4.setText(\"Nº de licencia:\");\n\n binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create(\"${entrenador.numLicencia}\"), jTextField2, org.jdesktop.beansbinding.BeanProperty.create(\"text\"));\n bindingGroup.addBinding(binding);\n\n jSpinner1.setModel(new javax.swing.SpinnerNumberModel(0, 0, 60, 1));\n\n jLabel5.setText(\"Experiencia:\");\n\n jButton1.setText(\"Aceptar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Cancelar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(68, 68, 68)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE)\n .addGap(69, 69, 69)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField1)\n .addComponent(jComboBox1, 0, 220, Short.MAX_VALUE)\n .addComponent(jXDatePicker1, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(14, 14, 14)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jXDatePicker1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 144, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap())\n );\n\n bindingGroup.bind();\n\n pack();\n }", "private void initComboBox() {\n jComboBox1.removeAllItems();\n listaDeInstrutores = instrutorDao.recuperarInstrutor();\n listaDeInstrutores.forEach((ex) -> {\n jComboBox1.addItem(ex.getNome());\n });\n }", "public CadastrarFuncionario(Kernel obj,int acao,Object texto) {\n kernel = obj; \n bd_Funcionario = new BD_Funcionario(kernel);\n bd_Nivel = new BD_Nivel(kernel);\n \n initComponents(); \n \n /********* PREENCHENDO O VETOR Nivel *************/ \n Nivel[] Nivel_vetor = null;\n try {\n Nivel_vetor = bd_Nivel.getNivels();\n } catch (SQLException exx) {\n Logger.getLogger(CadastrarFuncionario.class.getName()).log(Level.SEVERE, null, exx);\n }\n String dados4[] = new String[Nivel_vetor.length];\n\n obj_Nivel = new Nivel();\n int pos4 = 0;\n for(int i=0; i < Nivel_vetor.length; i++){\n obj_Nivel = (Nivel)Nivel_vetor[i];\n dados4[i] = String.valueOf(obj_Nivel.getNome()).toUpperCase(); \n if(i==0){\n Nivel_id.setText(String.valueOf(obj_Nivel.getNivel_id()));\n }\n }\n combo_nivel.setModel(new javax.swing.DefaultComboBoxModel(dados4)); \n \n if(acao!=0){\n combo_nivel.setSelectedIndex(pos4);\n } \n /*****************************************************************/\n \n if(acao!=0){\n try {\n PreencherFormulario(acao);\n } catch (SQLException ex) {\n Logger.getLogger(CadastrarFuncionario.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n \n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n txtName = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtNC = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n cbSemestre = new javax.swing.JComboBox<>();\n btnAgregar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Agregar un alumno\");\n\n jLabel1.setText(\"Nombre:\");\n\n jLabel2.setText(\"Numero de control:\");\n\n jLabel3.setText(\"Semestre:\");\n\n cbSemestre.setMaximumRowCount(6);\n cbSemestre.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\" }));\n cbSemestre.setToolTipText(\"\");\n\n btnAgregar.setText(\"Agregar\");\n btnAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarActionPerformed(evt);\n }\n });\n\n btnCancelar.setText(\"Cancelar\");\n btnCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtNC, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cbSemestre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(79, 79, 79)\n .addComponent(btnAgregar)\n .addGap(45, 45, 45)\n .addComponent(btnCancelar)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cbSemestre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnAgregar)\n .addComponent(btnCancelar))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void ComboBoxLoader (){\n try {\n if (obslistCBOCategory.size()!=0)\n obslistCBOCategory.clear();\n /*add the records from the database to the ComboBox*/\n rset = connection.createStatement().executeQuery(\"SELECT * FROM category\");\n while (rset.next()) {\n String row =\"\";\n for(int i=1;i<=rset.getMetaData().getColumnCount();i++){\n row += rset.getObject(i) + \" \";\n }\n obslistCBOCategory.add(row); //add string to the observable list\n }\n\n cboCategory.setItems(obslistCBOCategory); //add observable list into the combo box\n //text alignment to center\n cboCategory.setButtonCell(new ListCell<String>() {\n @Override\n public void updateItem(String item, boolean empty) {\n super.updateItem(item, empty);\n if (item != null) {\n setText(item);\n setAlignment(Pos.CENTER);\n Insets old = getPadding();\n setPadding(new Insets(old.getTop(), 0, old.getBottom(), 0));\n }\n }\n });\n\n //listener to the chosen list in the combo box and displays it to the text fields\n cboCategory.getSelectionModel().selectedItemProperty().addListener((obs, oldValue, newValue)->{\n if(newValue!=null){\n Scanner textDisplay = new Scanner((String) newValue);\n txtCategoryNo.setText(textDisplay.next());\n txtCategoryName.setText(textDisplay.nextLine());}\n\n });\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n }", "public void mostrarCategoria(JComboBox<Categoria>jComboBoxCategoria){\n \n try{\n con = ConexionBD.getConexion();\n String sql=\"SELECT * FROM categorias WHERE id_estado = 1 ORDER BY id_categoria\";\n sent = con.createStatement();\n ResultSet rs = sent.executeQuery(sql);\n \n \n while (rs.next()){\n jComboBoxCategoria.addItem(\n new Categoria (\n rs.getString(\"id_categoria\"), \n rs.getString(\"nombre_categoria\")\n )\n );\n }\n \n }catch(SQLException e){\n JOptionPane.showMessageDialog(null,\"error\");\n \n \n \n }\n \n }", "public FrmCadCentroCusto() {\r\n initComponents();\r\n carregarCombo();\r\n }", "public FrCDs() {\n initComponents();\n this.setResizable(false);\n this.setLocationRelativeTo(null);\n \n Genero_dao g = new Genero_dao();\n Artista_dao a = new Artista_dao();\n CDs_dao c = new CDs_dao();\n \n for(TabelaGeneroBean ge: g.findAll()){\n g_box.addItem(ge);\n }\n for(TabelaArtistaBean ar: a.findAll()){\n g_box2.addItem(ar);\n }\n \n painel1.setVisible(false);\n btn_edit.setEnabled(false);\n btn_excluir.setEnabled(false);\n btn_cad.setEnabled(true);\n }", "public List<Joueur> List_Joueur_HommesForComboBox() \r\n {\r\n List<Joueur> j = new ArrayList<>();\r\n String req= \"SELECT * FROM personne WHERE datedestruction is NULL and role = 'Joueur' and sexe='Homme' \";\r\n try {\r\n ResultSet res = ste.executeQuery(req);\r\n while (res.next()) {\r\n \r\n Joueur Jou = new Joueur(\r\n res.getInt(\"idpersonne\"),\r\n \r\n res.getString(\"nom\"),\r\n res.getString(\"prenom\")\r\n );\r\n j.add(Jou);\r\n \r\n System.out.println(\"------- joueurs selectionné avec succés----\");\r\n \r\n }\r\n \r\n } catch (SQLException ex) {\r\n System.out.println(\"----------Erreur lors methode : List_Joueur_Hommes()------\");\r\n }\r\n return j;\r\n \r\n}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n txtUrunSeriNo = new javax.swing.JTextField();\n txtSatisFiyati = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n txtUrunModel = new javax.swing.JTextField();\n txtUrunIsmi = new javax.swing.JTextField();\n txtAlisFiyati = new javax.swing.JTextField();\n txtAdet = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n comboDepo = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Stok Ekle | Stok Otomasyonu |\");\n setFocusTraversalPolicyProvider(true);\n setLocation(new java.awt.Point(0, 0));\n setResizable(false);\n setType(java.awt.Window.Type.UTILITY);\n\n jButton1.setText(\"EKLE\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n txtSatisFiyati.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));\n txtSatisFiyati.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtSatisFiyatiKeyTyped(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"Ürün Seri No : \");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setText(\"Ürün İsmi :\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel4.setText(\"Ürün Model :\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel5.setText(\"Adet :\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel6.setText(\"Alış Fiyatı :\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel7.setText(\"Satış Fiyatı :\");\n\n txtAlisFiyati.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtAlisFiyatiKeyTyped(evt);\n }\n });\n\n txtAdet.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtAdetKeyTyped(evt);\n }\n });\n\n jPanel2.setBackground(new java.awt.Color(48, 66, 105));\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"# Ürün Ekle #\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel8.setText(\"Depo :\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8)\n .addComponent(jLabel7)\n .addComponent(jLabel6)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jLabel3)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(comboDepo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtAlisFiyati, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)\n .addComponent(txtAdet)\n .addComponent(txtUrunModel)\n .addComponent(txtUrunIsmi)\n .addComponent(txtUrunSeriNo)\n .addComponent(txtSatisFiyati, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 276, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUrunSeriNo, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUrunIsmi, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUrunModel, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAdet, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAlisFiyati, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtSatisFiyati, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboDepo, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n selectOrdem = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n nome = new javax.swing.JTextField();\n btnSalvar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n descErro = new javax.swing.JLabel();\n\n jLabel2.setText(\"Ordem na exibição\");\n\n selectOrdem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"1\" }));\n\n jLabel1.setText(\"Nome da lista\");\n\n btnSalvar.setText(\"Salvar Lista\");\n\n btnCancelar.setText(\"Cancelar\");\n\n descErro.setForeground(new java.awt.Color(255, 51, 51));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnSalvar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCancelar))\n .addComponent(nome, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n .addComponent(descErro, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(selectOrdem, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(selectOrdem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(nome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(descErro, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(13, 13, 13)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSalvar)\n .addComponent(btnCancelar))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }", "private void mostradados() {\r\n\t\tint in = 0;\r\n\r\n\t\tfor (Estado e : Estado.values()) {\r\n\t\t\tif (in == 0) {\r\n\t\t\t\tcmbx_estado.addItem(\"\");\r\n\t\t\t\tin = 1;\r\n\t\t\t}\r\n\t\t\tcmbx_estado.addItem(e.getNome());\r\n\t\t}\r\n\r\n\t\tfor (int x = 0; x < listacliente.size(); x++) {\r\n\t\t\tin = 0;\r\n\t\t\tif (x == 0) {\r\n\t\t\t\tcmbx_cidade.addItem(\"\");\r\n\t\t\t}\r\n\r\n\t\t\tfor (int y = 0; y < cmbx_cidade.getItemCount(); y++) {\r\n\t\t\t\tif (listacliente.get(x).getCidade().equals(cmbx_cidade.getItemAt(y).toString()))\r\n\t\t\t\t\tin++;\r\n\t\t\t\tif (in > 1)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (in < 1)\r\n\t\t\t\tcmbx_cidade.addItem(listacliente.get(x).getCidade());\r\n\t\t}\r\n\t}", "private void establecerMenu(ArrayList<PlatilloMenu> lMenu) {\n Object[] columnas = {\"Platillo\", \"Reservados\", \"Para vender\"};\n Object[][] modelo = new Object[lMenu.size()][3];\n int x = 0;\n DefaultComboBoxModel modeloLista;\n ArrayList<Platillo> listaPlatilllos = new ArrayList<>();\n for (PlatilloMenu platilloMenu : lMenu) {\n int paraVender = platilloMenu.getCantidad();\n int reservados = platilloMenu.getReservados();\n // Si el platillo del menu aún se puede vender\n if (paraVender > 0 || reservados > 0) {\n // Se agrega el platillo a la lista de platillos\n listaPlatilllos.add(platilloMenu.getPlatillo());\n }\n modelo[x][0] = platilloMenu.getPlatillo().getNombre();\n modelo[x][1] = reservados;\n modelo[x][2] = paraVender;\n x++;\n }\n // Se establece el modelo en la tabla con los datos\n tablaMenu.setDefaultEditor(Object.class, null);\n tablaMenu.setModel(new DefaultTableModel(modelo, columnas));\n tablaMenu.setCellSelectionEnabled(false);\n tablaMenu.setRowSelectionAllowed(false);\n Object[] arregloPlatillos;\n // Si hay platillos que se puedan vender\n if (listaPlatilllos.size() > 0) {\n // Se guardan en el arreglo\n arregloPlatillos = listaPlatilllos.toArray();\n modeloLista = new DefaultComboBoxModel(arregloPlatillos);\n comboPlatillos.setModel(modeloLista);\n // Si es horario de comidas\n if (this.categoría.equals(\"COMIDA\")) {\n // Consulta la sopa del día\n this.sopaDelDia = Control.menu.consultarSopaDia(diaSemana);\n // si hay una sopa establecida en el menú\n if (sopaDelDia != null) {\n // Se habilita el checkbox y se establece el nombre\n checkBoxSopa.setEnabled(true);\n checkBoxSopa.setText(sopaDelDia.getNombre());\n } else {\n checkBoxSopa.setEnabled(false);\n checkBoxSopa.setText(\"SOPA NO ESTABLECIDA\");\n }\n } else {\n checkBoxSopa.setEnabled(false);\n }\n \n }//Si no\n else {\n \n // Se guarda un solo valor indicando el resultado de la búsqueda\n arregloPlatillos = new Object[1];\n arregloPlatillos[0] = \"-------SIN PLATILLOS DISPONIBLES------\";\n modeloLista = new DefaultComboBoxModel(arregloPlatillos);\n comboPlatillos.setModel(modeloLista);\n // Se desactivan todos los componentes\n //desactivarComponentes(this);\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n bindingGroup = new org.jdesktop.beansbinding.BindingGroup();\r\n\r\n entityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory(\"proyectoPU\").createEntityManager();\r\n query = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery(\"SELECT r FROM Reserva r\");\r\n list = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : org.jdesktop.observablecollections.ObservableCollections.observableList(query.getResultList());\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n masterTable = new javax.swing.JTable();\r\n panel_BuscarRol = new javax.swing.JPanel();\r\n lbl_BuscarRol = new javax.swing.JLabel();\r\n jPanel1 = new javax.swing.JPanel();\r\n tf_valor = new javax.swing.JTextField();\r\n lbl_valor = new javax.swing.JLabel();\r\n lbl_filtro = new javax.swing.JLabel();\r\n list_filtros = new javax.swing.JComboBox();\r\n btn_buscar = new javax.swing.JButton();\r\n btn_cancelar = new javax.swing.JButton();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\r\n masterTable.setToolTipText(\"\");\r\n\r\n org.jdesktop.swingbinding.JTableBinding jTableBinding = org.jdesktop.swingbinding.SwingBindings.createJTableBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, list, masterTable);\r\n org.jdesktop.swingbinding.JTableBinding.ColumnBinding columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create(\"${codigoReserva}\"));\r\n columnBinding.setColumnName(\"Reserva\");\r\n columnBinding.setColumnClass(Integer.class);\r\n columnBinding.setEditable(false);\r\n columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create(\"${codigoCliente.nombre}\"));\r\n columnBinding.setColumnName(\"Nombre\");\r\n columnBinding.setColumnClass(String.class);\r\n columnBinding.setEditable(false);\r\n columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create(\"${codigoCliente.apellido}\"));\r\n columnBinding.setColumnName(\"Apellido \");\r\n columnBinding.setColumnClass(String.class);\r\n columnBinding.setEditable(false);\r\n columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create(\"${cantPersonas}\"));\r\n columnBinding.setColumnName(\"Personas\");\r\n columnBinding.setColumnClass(Integer.class);\r\n columnBinding.setEditable(false);\r\n columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create(\"${checkIn}\"));\r\n columnBinding.setColumnName(\"Check In\");\r\n columnBinding.setColumnClass(java.util.Date.class);\r\n columnBinding.setEditable(false);\r\n columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create(\"${checkOut}\"));\r\n columnBinding.setColumnName(\"Check Out\");\r\n columnBinding.setColumnClass(java.util.Date.class);\r\n columnBinding.setEditable(false);\r\n columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create(\"${numHabitacion.numero}\"));\r\n columnBinding.setColumnName(\" Habitación\");\r\n columnBinding.setColumnClass(Integer.class);\r\n columnBinding.setEditable(false);\r\n columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create(\"${numHabitacion.codigoCategoria.nombre}\"));\r\n columnBinding.setColumnName(\"Categoría\");\r\n columnBinding.setColumnClass(String.class);\r\n columnBinding.setEditable(false);\r\n columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create(\"${montoTotal}\"));\r\n columnBinding.setColumnName(\"Monto Total\");\r\n columnBinding.setColumnClass(Integer.class);\r\n columnBinding.setEditable(false);\r\n columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create(\"${montoAbonado}\"));\r\n columnBinding.setColumnName(\"Monto Abonado\");\r\n columnBinding.setColumnClass(Integer.class);\r\n columnBinding.setEditable(false);\r\n columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create(\"${numPresupuesto.numPresupuesto}\"));\r\n columnBinding.setColumnName(\"Presupuesto\");\r\n columnBinding.setColumnClass(Integer.class);\r\n columnBinding.setEditable(false);\r\n bindingGroup.addBinding(jTableBinding);\r\n jTableBinding.bind();\r\n masterTable.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n masterTableMouseClicked(evt);\r\n }\r\n });\r\n jScrollPane1.setViewportView(masterTable);\r\n if (masterTable.getColumnModel().getColumnCount() > 0) {\r\n masterTable.getColumnModel().getColumn(0).setPreferredWidth(40);\r\n masterTable.getColumnModel().getColumn(1).setPreferredWidth(100);\r\n masterTable.getColumnModel().getColumn(2).setPreferredWidth(100);\r\n masterTable.getColumnModel().getColumn(6).setPreferredWidth(50);\r\n masterTable.getColumnModel().getColumn(9).setPreferredWidth(80);\r\n masterTable.getColumnModel().getColumn(10).setPreferredWidth(50);\r\n }\r\n\r\n panel_BuscarRol.setBackground(new java.awt.Color(0, 153, 255));\r\n panel_BuscarRol.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));\r\n\r\n lbl_BuscarRol.setFont(new java.awt.Font(\"Corbel\", 1, 30)); // NOI18N\r\n lbl_BuscarRol.setForeground(new java.awt.Color(255, 255, 255));\r\n lbl_BuscarRol.setText(\"Buscar Reserva\");\r\n\r\n javax.swing.GroupLayout panel_BuscarRolLayout = new javax.swing.GroupLayout(panel_BuscarRol);\r\n panel_BuscarRol.setLayout(panel_BuscarRolLayout);\r\n panel_BuscarRolLayout.setHorizontalGroup(\r\n panel_BuscarRolLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel_BuscarRolLayout.createSequentialGroup()\r\n .addContainerGap(248, Short.MAX_VALUE)\r\n .addComponent(lbl_BuscarRol)\r\n .addGap(234, 234, 234))\r\n );\r\n panel_BuscarRolLayout.setVerticalGroup(\r\n panel_BuscarRolLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(panel_BuscarRolLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(lbl_BuscarRol)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jPanel1.setBackground(new java.awt.Color(204, 204, 204));\r\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n jPanel1.setForeground(new java.awt.Color(204, 204, 255));\r\n\r\n tf_valor.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n tf_valorKeyTyped(evt);\r\n }\r\n });\r\n\r\n lbl_valor.setFont(new java.awt.Font(\"Candara\", 0, 14)); // NOI18N\r\n lbl_valor.setText(\"Valor:\");\r\n\r\n lbl_filtro.setFont(new java.awt.Font(\"Candara\", 0, 14)); // NOI18N\r\n lbl_filtro.setText(\"Buscar por:\");\r\n\r\n list_filtros.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Reserva\", \"Nombre\", \"Apellido\", \"Habitación\", \"Categoría\", \"CheckIn\", \"CheckOut\" }));\r\n list_filtros.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n list_filtrosFocusGained(evt);\r\n }\r\n public void focusLost(java.awt.event.FocusEvent evt) {\r\n list_filtrosFocusLost(evt);\r\n }\r\n });\r\n\r\n btn_buscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/zoom.png\"))); // NOI18N\r\n btn_buscar.setText(\"Buscar\");\r\n btn_buscar.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btn_buscarActionPerformed(evt);\r\n }\r\n });\r\n btn_buscar.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusLost(java.awt.event.FocusEvent evt) {\r\n btn_buscarFocusLost(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGap(29, 29, 29)\r\n .addComponent(lbl_filtro)\r\n .addGap(18, 18, 18)\r\n .addComponent(list_filtros, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(78, 78, 78)\r\n .addComponent(lbl_valor)\r\n .addGap(18, 18, 18)\r\n .addComponent(tf_valor, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 61, Short.MAX_VALUE)\r\n .addComponent(btn_buscar)\r\n .addGap(53, 53, 53))\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(lbl_filtro)\r\n .addComponent(lbl_valor)\r\n .addComponent(list_filtros, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(tf_valor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(btn_buscar))\r\n .addContainerGap())\r\n );\r\n\r\n btn_cancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/delete.png\"))); // NOI18N\r\n btn_cancelar.setText(\"Cancelar\");\r\n btn_cancelar.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btn_cancelarActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(163, 163, 163)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(panel_BuscarRol, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(21, 21, 21)\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1009, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(457, 457, 457)\r\n .addComponent(btn_cancelar)))\r\n .addContainerGap(26, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(panel_BuscarRol, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(27, 27, 27)\r\n .addComponent(btn_cancelar)\r\n .addContainerGap(24, Short.MAX_VALUE))\r\n );\r\n\r\n bindingGroup.bind();\r\n\r\n pack();\r\n setLocationRelativeTo(null);\r\n }", "public void jComboBoxActionPerformedGeneral(String sTipo,ActionEvent evt) {\t\t\r\n\t\ttry {\r\n\t\t\t/*\t\t\r\n\t\t\tEventoGlobalTipo eventoGlobalTipo=EventoGlobalTipo.CONTROL_CHANGE;\r\n\t\t\t\r\n\t\t\tif(this.esUsoDesdeHijo) {\r\n\t\t\t\teventoGlobalTipo=EventoGlobalTipo.FORM_HIJO_ACTUALIZAR;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tContainer containerParent=null;\r\n\t\t\tComponent componentOpposite=null;\r\n\t\t\tBoolean esControlTabla=false;\r\n\t\t\t\t\r\n\t\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\t\r\n\t\t\tFacturaPuntoVentaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.BEFORE,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CLICKED,sTipo,this.facturapuntoventa,new Object(),this.facturapuntoventaParameterGeneral,this.facturapuntoventaReturnGeneral);\r\n\t\t\tJComboBox jComboBoxGenerico=null;\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(evt.getSource().getClass().equals(JComboBox.class)\r\n\t\t\t\t|| evt.getSource().getClass().equals(JComboBoxMe.class)) {\r\n\t\t\t\t\t\r\n\t\t\t\tjComboBoxGenerico=(JComboBox)evt.getSource();\r\n\t\t\t\t\r\n\t\t\t\tcontainerParent=jComboBoxGenerico.getParent();\r\n\t\t\t\t\r\n\t\t\t\tcomponentOpposite=null;//evt.getOppositeComponent();\r\n\t\t\t\t\r\n\t\t\t\tif((containerParent!=null && containerParent.getClass().equals(JTableMe.class))\r\n\t\t\t\t\t|| (componentOpposite!=null && componentOpposite.getClass().equals(JTableMe.class))\r\n\t\t\t\t) {\t\t\t\t\t\r\n\t\t\t\t\tesControlTabla=true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.esControlTabla=esControlTabla;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString sFinalQueryCombo=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\r\n\r\n\t\t\tif(sTipo.equals(\"id_clienteFacturaPuntoVenta\")) {\r\n\t\t\t\tif(jComboBoxGenerico==null) {\r\n\t\t\t\t\tjComboBoxGenerico=this.jInternalFrameDetalleFormFacturaPuntoVenta.jComboBoxid_clienteFacturaPuntoVenta;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(this.facturapuntoventaSessionBean.getConGuardarRelaciones()) {\r\n\t\t\t\t\t//classes=FacturaPuntoVentaConstantesFunciones.getClassesRelationshipsOfFacturaPuntoVenta(new ArrayList<Classe>(),DeepLoadType.NONE);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.procesarActionsCombosForeignKeyCliente(jComboBoxGenerico,\"Formulario\");\r\n\r\n\t\t\t\tthis.recargarFormFacturaPuntoVenta(sTipo,\"Formulario\",eventoGlobalTipo,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,\"COMBOBOX\",classes,false,esControlTabla);\r\n\t\t\t}\r\n\t\t\t else if(sTipo.equals(\"jComboBoxid_clienteFK_IdClienteFacturaPuntoVenta\")) {\r\n\t\t\t\tthis.procesarActionsCombosForeignKeyCliente(jComboBoxid_clienteFK_IdClienteFacturaPuntoVenta,\"FK_IdCliente\");\r\n\t\t\t\t//recargarFormFacturaPuntoVentaCliente(jComboBoxid_clienteFK_IdClienteFacturaPuntoVenta,\"FK_IdCliente\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFacturaPuntoVentaBeanSwingJInternalFrameAdditional.procesarEventosVista(this.parametroGeneralUsuario,this.moduloActual,this.opcionActual,this.usuarioActual,this,FuncionTipo.AFTER,ControlTipo.COMBOBOX,EventoTipo.CHANGE,EventoSubTipo.CHANGED,sTipo,this.facturapuntoventa,new Object(),this.facturapuntoventaParameterGeneral,this.facturapuntoventaReturnGeneral);\r\n\t\t\t*/\t\t\t\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,FacturaPuntoVentaConstantesFunciones.CLASSNAME);\r\n \t\t}\t\t\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jCalendar1 = new com.toedter.calendar.JCalendar();\n jPanel1 = new javax.swing.JPanel();\n cboArticulos = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n dtDesde = new com.toedter.calendar.JDateChooser();\n dtHasta = new com.toedter.calendar.JDateChooser();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n txtDias = new javax.swing.JTextField();\n btGuardar = new javax.swing.JButton();\n btCancelar = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n\n setTitle(\"Artículos\");\n setAlwaysOnTop(true);\n setBackground(new java.awt.Color(255, 255, 255));\n setUndecorated(true);\n\n jPanel1.setBackground(new java.awt.Color(255, 254, 253));\n jPanel1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(30, 129, 53), 1, true));\n jPanel1.setForeground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setForeground(new java.awt.Color(247, 165, 41));\n jLabel1.setText(\"Artículo:\");\n\n dtDesde.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n dtDesdePropertyChange(evt);\n }\n });\n\n dtHasta.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n dtHastaFocusLost(evt);\n }\n });\n dtHasta.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n dtHastaMousePressed(evt);\n }\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n dtHastaMouseClicked(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n dtHastaMouseExited(evt);\n }\n });\n dtHasta.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n dtHastaPropertyChange(evt);\n }\n });\n\n jLabel2.setForeground(new java.awt.Color(247, 165, 41));\n jLabel2.setText(\"Desde:\");\n\n jLabel3.setForeground(new java.awt.Color(247, 165, 41));\n jLabel3.setText(\"Hasta:\");\n\n jLabel4.setForeground(new java.awt.Color(247, 165, 41));\n jLabel4.setText(\"Cantidad de días:\");\n\n txtDias.setEditable(false);\n txtDias.setText(\"1\");\n\n btGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Archivos/disk.png\"))); // NOI18N\n btGuardar.setText(\"Guardar\");\n btGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btGuardarActionPerformed(evt);\n }\n });\n\n btCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Archivos/cancel.png\"))); // NOI18N\n btCancelar.setText(\"Cancelar\");\n btCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btCancelarActionPerformed(evt);\n }\n });\n\n jLabel5.setForeground(new java.awt.Color(247, 165, 41));\n jLabel5.setText(\"Información de la operación:\");\n\n jLabel6.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.white, java.awt.Color.red));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(cboArticulos, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(27, 27, 27)\n .addComponent(dtDesde, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(dtHasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel5)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 472, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(282, 282, 282)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtDias, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 6, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {dtDesde, dtHasta});\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btCancelar, btGuardar});\n\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(cboArticulos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(dtDesde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(dtHasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtDias, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btCancelar)\n .addComponent(btGuardar))\n .addGap(70, 70, 70))\n );\n\n jLabel7.setFont(new java.awt.Font(\"Ubuntu\", 1, 18)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(9, 146, 231));\n jLabel7.setText(\"Ingreso de Artículos\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7)\n .addGap(169, 169, 169))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "private JComboBox getColoda() {\n\t\tif (coloda == null) {\n\t\t\tcoloda = new JComboBox();\n\t\t\tcoloda.setModel(new DefaultComboBoxModel(new String [] {\"36\", \"52\"}));\n\t\t}\n\t\treturn coloda;\n\t}", "private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revision\", \"Revision\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revocatoria\", \"Revocatoria\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Subsidiaria\", \"Subsidiaria\"));\n \n }", "public void widgetSelected(SelectionEvent e) {\n\t\tdoctorcombo.removeAll();\n\t\tint i = subject.getSelectionIndex();\n\t\t if(i == 0){\n\t\t\t\tint j = pdtabledaoimpl.findByname1(subject.getItem(0));\n\t\t\t\tfor (int k = 0; k < j; k++){\n\t\t\t\t\tString ss = pdtabledaoimpl.findByname2(subject.getItem(0),j,k);\n\t\t\t\t\tdoctorcombo.add(ss, k);\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t else if(i == 1){\n\t\t\t\tint j = pdtabledaoimpl.findByname1(subject.getItem(1));\n\t\t\t\tfor (int k = 0; k < j; k++){\n\t\t\t\t\tString ss = pdtabledaoimpl.findByname2(subject.getItem(1),j,k);\n\t\t\t\t\tdoctorcombo.add(ss, k);\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t else if(i == 2){\n\t\t\t\tint j = pdtabledaoimpl.findByname1(subject.getItem(2));\n\t\t\t\tfor(int k = 0; k< j; k++){\n\t\t\t\t\tString ss = pdtabledaoimpl.findByname2(subject.getItem(2),j,k);\n\t\t\t\t\tdoctorcombo.add(ss, k);\n\t\t\t\t}\n\t\t\t}\n\t\t else if(i == 3){\n\t\t\t\tint j = pdtabledaoimpl.findByname1(subject.getItem(3));\n\t\t\t\tfor(int k = 0; k< j; k++){\n\t\t\t\t\tString ss = pdtabledaoimpl.findByname2(subject.getItem(3),j,k);\n\t\t\t\t\tdoctorcombo.add(ss, k);\n\t\t\t\t}\n\t\t\t}\n\t\t else if(i == 4){\n\t\t\t\tint j = pdtabledaoimpl.findByname1(subject.getItem(4));\n\t\t\t\tfor(int k = 0; k< j; k++){\n\t\t\t\t\tString ss = pdtabledaoimpl.findByname2(subject.getItem(4),j,k);\n\t\t\t\t\tdoctorcombo.add(ss, k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panelColores = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList<>();\n cboColores = new javax.swing.JComboBox<>();\n cboRojo = new javax.swing.JComboBox<>();\n cboVerde = new javax.swing.JComboBox<>();\n cboAzul = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n panelColores.setBackground(new java.awt.Color(255, 204, 204));\n\n jList1.setModel(new javax.swing.AbstractListModel<String>() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public String getElementAt(int i) { return strings[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n\n cboColores.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-selecciona opción-\", \"Rojo\", \"Azul\", \"Verde\", \"Amarillo\", \"Rosa\", \"Negro\", \"Blanco\" }));\n cboColores.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboColoresItemStateChanged(evt);\n }\n });\n cboColores.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cboColoresActionPerformed(evt);\n }\n });\n cboColores.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n cboColoresPropertyChange(evt);\n }\n });\n\n cboRojo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-selecciona opcion-\", \"10\", \"20\", \"30\", \"40\", \"50\", \"60\", \"70\", \"80\", \"90\", \"100\" }));\n cboRojo.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboRojoItemStateChanged(evt);\n }\n });\n cboRojo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cboRojoActionPerformed(evt);\n }\n });\n\n cboVerde.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-selecciona opcion-\", \"10\", \"20\", \"30\", \"40\", \"50\", \"60\", \"70\", \"80\", \"90\", \"100\" }));\n cboVerde.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboVerdeItemStateChanged(evt);\n }\n });\n\n cboAzul.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-selecciona opcion-\", \"10\", \"20\", \"30\", \"40\", \"50\", \"60\", \"70\", \"80\", \"90\", \"100\" }));\n cboAzul.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboAzulItemStateChanged(evt);\n }\n });\n\n jLabel1.setText(\"rojo\");\n\n jLabel2.setText(\"verde\");\n\n jLabel3.setText(\"azul\");\n\n javax.swing.GroupLayout panelColoresLayout = new javax.swing.GroupLayout(panelColores);\n panelColores.setLayout(panelColoresLayout);\n panelColoresLayout.setHorizontalGroup(\n panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelColoresLayout.createSequentialGroup()\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelColoresLayout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addComponent(cboColores, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(panelColoresLayout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cboVerde, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cboRojo, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cboAzul, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 120, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(22, 22, 22))\n );\n panelColoresLayout.setVerticalGroup(\n panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelColoresLayout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelColoresLayout.createSequentialGroup()\n .addComponent(cboColores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cboRojo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(13, 13, 13)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cboVerde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cboAzul, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(110, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelColores, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelColores, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n tblClientes = new javax.swing.JTable();\n btnSair = new javax.swing.JButton();\n comboBoxOrdenacao = new javax.swing.JComboBox<>();\n\n setTitle(\"Lista de Clientes\");\n\n tblClientes.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n tblClientes.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n tblClientesMousePressed(evt);\n }\n });\n jScrollPane1.setViewportView(tblClientes);\n\n btnSair.setText(\"Sair\");\n btnSair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSairActionPerformed(evt);\n }\n });\n\n comboBoxOrdenacao.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"< Selecionar Ordenação >\", \"Nome\" }));\n comboBoxOrdenacao.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboBoxOrdenacaoActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 783, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(comboBoxOrdenacao, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnSair)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSair)\n .addComponent(comboBoxOrdenacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(16, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void loadData(){\n mTipoEmpleadoList=TipoEmpleado.getTipoEmpleadoList();\n ArrayList<String> tipoEmpleadoName=new ArrayList();\n for(TipoEmpleado tipoEmpleado: mTipoEmpleadoList)\n tipoEmpleadoName.add(tipoEmpleado.getDescripcion()); \n mFrmMantenerEmpleado.cmbEmployeeType.setModel(new DefaultComboBoxModel(tipoEmpleadoName.toArray()));\n \n \n }", "private JComboBox getComboBoxDomaci() {\r\n\t\tif (comboBoxDomaci == null) {\r\n\t\t\tcomboBoxDomaci = new JComboBox<Tim>();\r\n\t\t\tGUIKontroler.popuniComboBox(comboBoxDomaci);\r\n\t\t\tcomboBoxDomaci.setPreferredSize(new Dimension(130, 20));\r\n\t\t}\r\n\t\treturn comboBoxDomaci;\r\n\t}", "private void listadoRol(JComboBox cbb) throws SQLException {\n\t\tint selected = cbb.getSelectedIndex();\n\t\tDefaultComboBoxModel model = (DefaultComboBoxModel) cbb.getModel();\n\t\tif (!coordUsuario.listaRol().isEmpty()) {\n\t\tlistaRol = coordUsuario.listaRol();\n\t\t // Borrar Datos Viejos\n\t model.removeAllElements();\n\t for (int i=0;i<listaRol.size();i++) {\n\t model.addElement(listaRol.get(i).getNombre());\n\t }\n\t // setting model with new data\n\t cbb.setModel(model);\n\t cbb.setRenderer(new MyComboBox(\"Rol\")); \n \tcbb.setSelectedIndex(selected); \n\t}}", "private void CBFakture() {\n try {\n cmbFakture.removeAllItems();\n List<Faktura> fakture = Controller.getInstance().vratiFaktureView();\n for (Faktura fak : fakture) {\n cmbFakture.addItem(fak);\n }\n } catch (Exception ex) {\n Logger.getLogger(ProizvodUpdate.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.70715165", "0.705778", "0.7022695", "0.6959819", "0.6913199", "0.6912386", "0.68948996", "0.68243414", "0.67867005", "0.67862636", "0.6780336", "0.67766", "0.67542857", "0.6716898", "0.6668127", "0.6644515", "0.6623401", "0.6615129", "0.658719", "0.6563445", "0.6558755", "0.65516347", "0.6537623", "0.6522097", "0.652098", "0.6493188", "0.648348", "0.64495134", "0.64420885", "0.644086", "0.64402795", "0.6430125", "0.6418139", "0.64109606", "0.639657", "0.6391426", "0.63638276", "0.63357806", "0.6324792", "0.6320363", "0.6301582", "0.6300509", "0.6282283", "0.6279799", "0.6278523", "0.6273493", "0.62673795", "0.624756", "0.6245108", "0.62410635", "0.62370056", "0.6233944", "0.62305844", "0.6225983", "0.62201977", "0.621977", "0.62181395", "0.6216466", "0.62088275", "0.6208062", "0.6196075", "0.6194744", "0.61924434", "0.61900663", "0.6188176", "0.6185762", "0.618019", "0.6179626", "0.6176053", "0.6158947", "0.61554766", "0.6150452", "0.61493945", "0.6146066", "0.61371154", "0.6127053", "0.61265033", "0.6123533", "0.61223626", "0.6121136", "0.6120769", "0.6111674", "0.60908484", "0.60709316", "0.6067493", "0.60649264", "0.60638136", "0.6063768", "0.6057921", "0.605727", "0.60529256", "0.604198", "0.60396844", "0.60286355", "0.60192615", "0.601292", "0.60126466", "0.6007119", "0.60010785", "0.59907293" ]
0.7277462
0
cria e retorna um combobox preenchido com todos os artigos
public static DefaultComboBoxModel getAllArtigos() throws SQLException, ParseException{ DefaultComboBoxModel model = new DefaultComboBoxModel(); String selectTableSQL = "SELECT idArt FROM Artigo "; Statement statement = dbConnection.createStatement(); ResultSet rs = statement.executeQuery(selectTableSQL); model.addElement(" --- "); while(rs.next()){ model.addElement(rs.getString("idArt")); } rs.close(); return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initCombobox() {\n comboConstructeur = new ComboBox<>();\n comboConstructeur.setLayoutX(100);\n comboConstructeur.setLayoutY(250);\n\n\n BDDManager2 bddManager2 = new BDDManager2();\n bddManager2.start(\"jdbc:mysql://localhost:3306/concession?characterEncoding=utf8\", \"root\", \"\");\n listeConstructeur = bddManager2.select(\"SELECT * FROM constructeur;\");\n bddManager2.stop();\n for (int i = 0; i < listeConstructeur.size(); i++) {\n comboConstructeur.getItems().addAll(listeConstructeur.get(i).get(1));\n\n\n }\n\n\n\n\n\n\n }", "private void initComboBox() {\n jComboBox1.removeAllItems();\n listaDeInstrutores = instrutorDao.recuperarInstrutor();\n listaDeInstrutores.forEach((ex) -> {\n jComboBox1.addItem(ex.getNome());\n });\n }", "public void llenarComboBox(){\n TipoMiembroComboBox.removeAllItems();\n TipoMiembroComboBox.addItem(\"Administrador\");\n TipoMiembroComboBox.addItem(\"Editor\");\n TipoMiembroComboBox.addItem(\"Invitado\");\n }", "private void llenarCombo() {\n cobOrdenar.removeAllItems();\n cobOrdenar.addItem(\"Fecha\");\n cobOrdenar.addItem(\"Nro Likes\");\n cobOrdenar.setSelectedIndex(-1); \n }", "public void iniciar_combo() {\n try {\n Connection cn = DriverManager.getConnection(mdi_Principal.BD, mdi_Principal.Usuario, mdi_Principal.Contraseña);\n PreparedStatement psttt = cn.prepareStatement(\"select nombre from proveedor \");\n ResultSet rss = psttt.executeQuery();\n\n cbox_proveedor.addItem(\"Seleccione una opción\");\n while (rss.next()) {\n cbox_proveedor.addItem(rss.getString(\"nombre\"));\n }\n \n PreparedStatement pstt = cn.prepareStatement(\"select nombre from sucursal \");\n ResultSet rs = pstt.executeQuery();\n\n \n cbox_sucursal.addItem(\"Seleccione una opción\");\n while (rs.next()) {\n cbox_sucursal.addItem(rs.getString(\"nombre\"));\n }\n \n PreparedStatement pstttt = cn.prepareStatement(\"select id_compraE from compra_encabezado \");\n ResultSet rsss = pstttt.executeQuery();\n\n \n cbox_compra.addItem(\"Seleccione una opción\");\n while (rsss.next()) {\n cbox_compra.addItem(rsss.getString(\"id_compraE\"));\n }\n \n PreparedStatement ps = cn.prepareStatement(\"select nombre_moneda from moneda \");\n ResultSet r = ps.executeQuery();\n\n \n cbox_moneda.addItem(\"Seleccione una opción\");\n while (r.next()) {\n cbox_moneda.addItem(r.getString(\"nombre_moneda\"));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }", "public void listarIgrejaComboBox() {\n\n IgrejasDAO dao = new IgrejasDAO();\n List<Igrejas> lista = dao.listarIgrejas();\n cbIgrejas.removeAllItems();\n\n for (Igrejas c : lista) {\n cbIgrejas.addItem(c);\n }\n }", "public void datosCombobox() {\n listaColegios = new ColegioDaoImp().listar();\n for (Colegio colegio : listaColegios) {\n cbColegio.addItem(colegio.getNombre());\n }\n }", "public ComboBox1() {\n initComponents();\n agregarItems();\n\n }", "private void cargaComboTipoDocumento() {\n\t\tcomboTipoDoc = new JComboBox();\n\t\tfor (TipoDocumentoDTO tipoDocumentoDTO : tip) {\n\t\t\tcomboTipoDoc.addItem(tipoDocumentoDTO.getAbreviacion());\n\t\t}\n\n\t}", "public FrmEjemploCombo() {\n initComponents();\n \n cargarAutos();\n }", "private void carregarComboMarca(){\r\n\t\tMarcaEquipamentoDAO marcaDAO = new MarcaEquipamentoDAO(FormEquipamento.this);\r\n\t\tlistaCombo = marcaDAO.listar() ;\r\n\t\tif (!listaCombo.isEmpty()){\r\n\t\t\tArrayAdapter<MarcaEquipamento> adaptador = new ArrayAdapter<MarcaEquipamento>(FormEquipamento.this , \r\n\t\t\t\t\tandroid.R.layout.simple_spinner_item, \r\n\t\t\t\t\tlistaCombo );\r\n\t\t\tadaptador.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\r\n\t\t\tcomboMarca.setAdapter(adaptador);\r\n\t\t}\r\n\t}", "public Carta() {\n initComponents();\n \n \n \n items[0] = \"Entradas\";\n items[1] = \"Fuertes\";\n items[2] = \"Postres\";\n comboCategorias.setModel(new javax.swing.DefaultComboBoxModel(items));\n comboCategoriasM.setModel(new javax.swing.DefaultComboBoxModel(items));\n\n }", "private JComboBox<Cliente> crearComboClientes() {\n\n JComboBox<Cliente> combo = new JComboBox<>(new Vector<>(almacen.getClientes()));\n combo.setMaximumSize(new Dimension(500, 40));\n\n combo.setRenderer(new DefaultListCellRenderer() {\n @Override\n public Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n\n Component resultado = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\n Cliente cliente = (Cliente) value;\n this.setText(cliente != null ? cliente.getNombre() : \"No existen clientes\");\n\n return resultado;\n }\n });\n\n return combo;\n }", "private void comboCarrega() {\n\n try {\n con = BancoDeDados.getConexao();\n //cria a string para inserir no banco\n String query = \"SELECT * FROM servico\";\n\n PreparedStatement cmd;\n cmd = con.prepareStatement(query);\n ResultSet rs;\n\n rs = cmd.executeQuery();\n\n while (rs.next()) {\n JCservico.addItem(rs.getString(\"id\") + \"-\" + rs.getString(\"modalidade\"));\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro de SQL \" + ex.getMessage());\n }\n }", "public void combo(){\r\n // Define rendering of the list of values in ComboBox drop down. \r\n cbbMedicos.setCellFactory((comboBox) -> {\r\n return new ListCell<Usuario>() {\r\n @Override\r\n protected void updateItem(Usuario item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if (item == null || empty) {\r\n setText(null);\r\n } else {\r\n setText(item.getNombre_medico()+ \" \" + item.getApellido_medico()+\" \"+item.getApMaterno_medico());\r\n }\r\n }\r\n };\r\n });\r\n\r\n // Define rendering of selected value shown in ComboBox.\r\n cbbMedicos.setConverter(new StringConverter<Usuario>() {\r\n @Override\r\n public String toString(Usuario item) {\r\n if (item == null) {\r\n return null;\r\n } else {\r\n return item.getNombre_medico()+ \" \" + item.getApellido_medico()+\" \"+item.getApMaterno_medico();\r\n }\r\n }\r\n\r\n @Override\r\n public Usuario fromString(String string) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }\r\n });\r\n }", "private void cargaComboBoxTipoGrano() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoGranoEntity p\");\n java.util.List<TipoGranoEntity> listaTipoGranoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoGranoEntity tipoGrano : listaTipoGranoEntity) {\n miVectorTipoLaboreo.add(tipoGrano.getTgrNombre());\n cbxSemillas.addItem(tipoGrano);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "public void riempiProceduraComboBox(){\n Statement stmt;\n ResultSet rst;\n String query = \"SELECT P.schema, P.nomeProcedura FROM Procedura P\";\n \n proceduraComboBox.removeAllItems();\n try{\n stmt = Database.getDefaultConnection().createStatement();\n rst = stmt.executeQuery(query);\n \n while(rst.next()){\n //le Procedure nella comboBox saranno mostrate secondo il modello: nomeSchema.nomeProcedura\n //in quanto Procedure appartenenti a Schemi diversi possono avere lo stesso nome\n proceduraComboBox.addItem(rst.getString(1)+\".\"+rst.getString(2));\n }\n proceduraComboBox.setSelectedIndex(-1);\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n }", "@Override\r\n\tprotected void InitComboBox() {\n\t\t\r\n\t}", "private void combo() {\n cargaCombo(combo_habitacion, \"SELECT hh.descripcion\\n\" +\n \"FROM huespedes h\\n\" +\n \"LEFT JOIN estadia_huespedes eh ON eh.huespedes_id = h.id\\n\" +\n \"LEFT JOIN estadia_habitaciones ehh ON eh.id_estadia = ehh.id_estadia\\n\" +\n \"LEFT JOIN estadia e ON e.id = ehh.id_estadia \\n\" +\n \"LEFT JOIN habitaciones hh ON hh.id = ehh.id_habitacion\\n\" +\n \"WHERE eh.huespedes_id = \"+idd+\" AND e.estado ='A'\\n\" +\n \"ORDER BY descripcion\\n\" +\n \"\",\"hh.descripcion\");\n cargaCombo(combo_empleado, \"SELECT CONCAT(p.nombre, ' ',p.apellido) FROM persona p\\n\" +\n \"RIGHT JOIN empleado e ON e.persona_id = p.id\", \"empleado\");\n cargaCombo(combo_producto, \"SELECT producto FROM productos order by producto\", \"producto\");\n }", "private void cargaComboBoxTipoLaboreo() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoLaboreoEntity p\");\n java.util.List<TipoLaboreoEntity> listaTipoLaboreoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoLaboreoEntity tipoLaboreo : listaTipoLaboreoEntity) {\n miVectorTipoLaboreo.add(tipoLaboreo.getTpoNombre());\n cboMomentos.addItem(tipoLaboreo);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }", "private void carregaComboDentista() {\n CtrPessoa ctrD = new CtrPessoa();\n ArrayList<Pessoa> result = ctrD.getPessoa(\"\", new Dentista());\n\n ObservableList<Pessoa> dentistas = FXCollections.observableArrayList(result);\n\n if (!result.isEmpty()) {\n cbDentista.setItems(dentistas);\n cbDentista.setValue(cbDentista.getItems().get(0)); //inicializando comboBox\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n nameLabel = new javax.swing.JLabel();\n performButton = new javax.swing.JButton();\n availableNames = new javax.swing.JComboBox<>();\n\n setMaximumSize(new java.awt.Dimension(435, 600));\n setMinimumSize(new java.awt.Dimension(435, 600));\n setPreferredSize(new java.awt.Dimension(435, 600));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Знайти за назвою\");\n jLabel2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n nameLabel.setText(\"Назва:\");\n\n performButton.setText(\"Виконати\");\n performButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n performButtonActionPerformed(evt);\n }\n });\n\n availableNames.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(140, 140, 140)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(nameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(availableNames, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(150, 150, 150)\n .addComponent(performButton, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(availableNames, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addComponent(performButton))\n );\n\n nameLabel.getAccessibleContext().setAccessibleName(\"id\");\n\n getAccessibleContext().setAccessibleParent(this);\n }", "public Usuarios() {\n try {\n initComponents();\n String c_est, c_mun, c_ciu, id1;\n this.setLocationRelativeTo(null);\n String[] datos = new String[2];\n a = new Archivos();\n lineas = new String[9];\n lineas = a.Leer();\n m = new ManejadorSQL(lineas[2], lineas[1], lineas[3], lineas[4], lineas[5], lineas[7], lineas[6]);\n m.setLineas(lineas);\n ResultSet b_esta = m.Select(\"tblsit_estado order by nb_estado\", \"id_estado,nb_estado\");//Seleccionamos los estados para el combo box\n while (b_esta.next()) {\n datos[0] = b_esta.getString(1);\n datos[1] = b_esta.getString(2);\n u_c_estado.addItem(datos[1]); // agregamos los estados\n //System.out.println(datos[0]);\n }\n DefaultComboBoxModel modeloCombo = new DefaultComboBoxModel();// TODO add your handling code here:\n modeloCombo.addElement(\"Seleccionar\");\n u_ciudad.setModel(modeloCombo);\n u_c_municipio.setModel(modeloCombo);\n \n } catch (Exception ex) {\n Logger.getLogger(Usuarios.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void rellena_jcombobox_articulos()\r\n\t{\r\n\t\tresultset1 = base_datos.obtener_objetos(\"SELECT descripcionArticulo FROM articulos ORDER BY 1;\");\t\r\n\r\n\t\ttry //USAMOS UN WHILE PARA RELLENAR EL JCOMBOX CON LOS RESULTADOS DEL RESULSET\r\n\t\t{\r\n\t\t\twhile(resultset1.next())\r\n\t\t\t{\r\n\t\t\t\tcomboArticulo.addItem(resultset1.getString(\"descripcionArticulo\"));\r\n\t\t\t}\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void inicializarCombos() {\n\t\tlistaGrupoUsuario = GrupoUsuarioDAO.readTodos(this.mainApp.getConnection());\n\t\tfor (GrupoUsuario grupo : listaGrupoUsuario) {\n\t\t\tthis.observableListaGrupoUsuario.add(grupo.getNombre());\n\t\t}\n\t\tthis.comboGrupoUsuario.setItems(this.observableListaGrupoUsuario);\n\t\tnew AutoCompleteComboBoxListener(comboGrupoUsuario);\n\n\t\tObservableList<String> status = FXCollections.observableArrayList(\"Bloqueado\",\"Activo\",\"Baja\");\n\t\tthis.comboStatus.setItems(status);\n\t\tthis.comboEmpleados.setItems(FXCollections.observableArrayList(this.listaEmpleados));\n\t}", "private void carregaComboUfs() {\n\t\tlistaDeMunicipios.add(new Municipio(\"GO\", \"Inhumas\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"GO\", \"Goianira\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"GO\", \"Goiânia\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"SP\", \"Campinas\"));\n\t\tlistaDeMunicipios.add(new Municipio(\"SP\", \"São José dos Campos\"));\n\t\t\n\t\t\n\t\tfor (Municipio municipio : listaDeMunicipios) {\n\t\t\tif(!listaDeUfs.contains(municipio.getUf())) {\n\t\t\t\tlistaDeUfs.add(municipio.getUf());\n\t\t\t}\n\t\t}\n\t\t\n\t\tcmbUfs.addItem(\"--\");\n\t\tfor (String uf : listaDeUfs) {\n\t\t\tcmbUfs.addItem(uf);\n\t\t}\n\t}", "public void carregaCidadeSelecionada(String nome) throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUfEditar.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidadeEditar.addItem(list);\n \n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbCidadeEditar.setSelectedItem(nome);\n \n \n \n \n }", "public void addItemsCitas(){\n cmbPacientes.removeAllItems();\n cmbPacientes.addItem(\"Seleccione una opcion\");\n cmbPacientes.addItem(\"Paciente\");\n cmbPacientes.addItem(\"Doctor\");\n cmbPacientes.addItem(\"Mostrar todo\");\n }", "public FrmCadCentroCusto() {\r\n initComponents();\r\n carregarCombo();\r\n }", "public void carregaEstadoSelecionado(String nome) throws SQLException{\n String sql = \"SELECT * FROM tb_estados\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"uf\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbUfEditar.addItem(list);\n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbUfEditar.setSelectedItem(nome);\n \n \n \n }", "private JComboBox getJComboBoxNucleo()\r\n {\r\n if (jComboBoxNucleo == null)\r\n {\r\n \tjComboBoxNucleo = new JComboBox();\r\n \tjComboBoxNucleo.setRenderer(new UbicacionListCellRenderer());\r\n }\r\n return jComboBoxNucleo;\r\n }", "private JComboBox<String> makeRaceCombo()\n {\n // Build the box with label\n _raceCombo = new JComboBox<String>(Race.RACE_LIST);\n _raceCombo.setEditable(false);\n _raceCombo.setBackground(Color.WHITE);\n return _raceCombo;\n }", "public VistaProductos() {\n setUndecorated(true);\n initComponents();\n ValidadSoloNumeros(TextCodProduct);\n ValidadCaracteres(TextDescripcion);\n ValidadSoloNumeros(TextPrecio);\n ValidadSoloNumeros(TextCostoproduc);\n ValidadSoloNumeros(txtIvap);\n cn = Conexion.getConn();\n cargar();\n\n LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(cc.listaProvee().toArray()));\n\n obj = ControllerSql.getInstancia();\n proveedores = cc.listaProvee();\n // LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(proveedores.toArray()));\n LitsadeProovedores.setSelectedIndex(-1);\n }", "public FrmCadastro() {\n initComponents();\n \n lblNumeroConta.setText(\"Número da conta: \" + Agencia.getProximaConta());\n \n List<Integer> agencias = Principal.banco.retornarNumeroAgencias();\n for(int i : agencias){\n cmbAgencias.addItem(\"Agência \" + i);\n }\n }", "private void fillcbGrupo() {\n\t\tcbGrupoContable.setNullSelectionAllowed(false);\n\t\tcbGrupoContable.setInputPrompt(\"Seleccione Grupo Contable\");\n\t\tfor (GruposContablesModel grupo : grupoimpl.getalls()) {\n\t\t\tcbGrupoContable.addItem(grupo.getGRC_Grupo_Contable());\n\t\t\tcbGrupoContable.setItemCaption(grupo.getGRC_Grupo_Contable(), grupo.getGRC_Nombre_Grupo_Contable());\n\t\t}\n\t}", "public void cargarJComboBoxProductos(JComboBox cbxProductos) { \n bodega Bodega = new bodega();\n for (producto Producto : Bodega.getProductosList()) {\n cbxProductos.addItem(Producto.getNombreProducto());\n //cbxCantidad.addItem(String.valueOf(Producto.getStockProducto()));\n }\n }", "private void initComboBoxes()\n\t{\n\t\tsampling_combobox.getItems().clear();\n\t\tsampling_combobox.getItems().add(\"Random\");\n\t\tsampling_combobox.getItems().add(\"Cartesian\");\n\t\tsampling_combobox.getItems().add(\"Latin Hypercube\");\n\n\t\t// Set default value.\n\t\tsampling_combobox.setValue(\"Random\");\n\t}", "private void initializeComboboxes() {\n ObservableList<Integer> options = FXCollections.observableArrayList(vertexesCurrentlyOnScreen);\n startingVertex = new ComboBox<>(options);\n finalVertex = new ComboBox<>(options);\n startingVertex.setBorder((new Border(new BorderStroke(Color.LIGHTGRAY, BorderStrokeStyle.SOLID, new CornerRadii(2), new BorderWidths(1.5)))));\n finalVertex.setBorder(new Border(new BorderStroke(Color.LIGHTGRAY, BorderStrokeStyle.SOLID, new CornerRadii(2), new BorderWidths(1.5))));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n txtName = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtNC = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n cbSemestre = new javax.swing.JComboBox<>();\n btnAgregar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Agregar un alumno\");\n\n jLabel1.setText(\"Nombre:\");\n\n jLabel2.setText(\"Numero de control:\");\n\n jLabel3.setText(\"Semestre:\");\n\n cbSemestre.setMaximumRowCount(6);\n cbSemestre.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\" }));\n cbSemestre.setToolTipText(\"\");\n\n btnAgregar.setText(\"Agregar\");\n btnAgregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarActionPerformed(evt);\n }\n });\n\n btnCancelar.setText(\"Cancelar\");\n btnCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtNC, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cbSemestre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(79, 79, 79)\n .addComponent(btnAgregar)\n .addGap(45, 45, 45)\n .addComponent(btnCancelar)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cbSemestre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnAgregar)\n .addComponent(btnCancelar))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void actualizarComboboxCursos() {\n\t\tint curso;\n\n\t\tDefaultComboBoxModel dcbm = new DefaultComboBoxModel();\n\t\tdcbm.removeAllElements();\n\n\t\tLinkedHashSet<Integer> resultado = modelo.obtenerCursos();\n\t\tIterator it = resultado.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tcurso = (int) it.next();\n\n\t\t\tdcbm.addElement(curso);\n\t\t}\n\t\tjfad.cBCursos.setModel(dcbm);\n\t\tjfad.cBCursosMod.setModel(dcbm);\n\t\tSystem.out.println(dcbm.getSelectedItem());\n\t}", "private void fillComboBox() {\n jComboBoxFilterChains.setModel(new DefaultComboBoxModel(ImageFilterManager.getObject().getListOfFilters().toArray()));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n txtUrunSeriNo = new javax.swing.JTextField();\n txtSatisFiyati = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n txtUrunModel = new javax.swing.JTextField();\n txtUrunIsmi = new javax.swing.JTextField();\n txtAlisFiyati = new javax.swing.JTextField();\n txtAdet = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n comboDepo = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Stok Ekle | Stok Otomasyonu |\");\n setFocusTraversalPolicyProvider(true);\n setLocation(new java.awt.Point(0, 0));\n setResizable(false);\n setType(java.awt.Window.Type.UTILITY);\n\n jButton1.setText(\"EKLE\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n txtSatisFiyati.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));\n txtSatisFiyati.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtSatisFiyatiKeyTyped(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"Ürün Seri No : \");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setText(\"Ürün İsmi :\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel4.setText(\"Ürün Model :\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel5.setText(\"Adet :\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel6.setText(\"Alış Fiyatı :\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel7.setText(\"Satış Fiyatı :\");\n\n txtAlisFiyati.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtAlisFiyatiKeyTyped(evt);\n }\n });\n\n txtAdet.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtAdetKeyTyped(evt);\n }\n });\n\n jPanel2.setBackground(new java.awt.Color(48, 66, 105));\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"# Ürün Ekle #\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel8.setText(\"Depo :\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8)\n .addComponent(jLabel7)\n .addComponent(jLabel6)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jLabel3)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(comboDepo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtAlisFiyati, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)\n .addComponent(txtAdet)\n .addComponent(txtUrunModel)\n .addComponent(txtUrunIsmi)\n .addComponent(txtUrunSeriNo)\n .addComponent(txtSatisFiyati, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 276, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUrunSeriNo, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUrunIsmi, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUrunModel, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAdet, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAlisFiyati, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtSatisFiyati, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboDepo, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jbloco = new javax.swing.JComboBox();\n japartamento = new javax.swing.JComboBox();\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Condomínio-SJ2\");\n\n jbloco.setForeground(new java.awt.Color(153, 0, 153));\n jbloco.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"BLOCO A\", \"BLOCO B\", \"BLOCO C\", \"BLOCO D\", \"BLOCO F\", \"BLOCO G\", \"BLOCO H\", \"BLOCO I\", \"BLOCO J\", \"BLOCO K\", \" \", \" \" }));\n jbloco.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jblocoActionPerformed(evt);\n }\n });\n\n japartamento.setForeground(new java.awt.Color(204, 0, 204));\n japartamento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"APARTAMENTO 101\", \"APARTAMENTO 102\", \"APARTAMENTO 103\", \"APARTAMENTO 104\", \"APARTAMENTO 201\", \"APARTAMENTO 202\", \"APARTAMENTO 203\", \"APARTAMENTO 204\", \"APARTAMENTO 301\", \"APARTAMENTO 302\", \"APARTAMENTO 303\", \"APARTAMENTO 304\", \"APARTAMENTO 401\", \"APARTAMENTO 402\", \"APARTAMENTO 403\", \"APARTAMENTO 404\", \" \", \" \" }));\n\n jButton1.setText(\"Pesquisar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel1.setText(\"Verificar possibilidade de agendamento :\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(150, 150, 150)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 431, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jbloco, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(88, 88, 88)\n .addComponent(japartamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(97, 97, 97)\n .addComponent(jButton1)))\n .addContainerGap(54, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(46, 46, 46)\n .addComponent(jLabel1)\n .addGap(48, 48, 48)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jbloco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(japartamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addContainerGap(230, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cbTipoFlor = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n btnSalir = new javax.swing.JButton();\n btnAceptar1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setPreferredSize(new java.awt.Dimension(550, 450));\n setSize(new java.awt.Dimension(550, 450));\n\n cbTipoFlor.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setText(\"Nombre\");\n\n btnSalir.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n btnSalir.setText(\"Salir\");\n btnSalir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalirActionPerformed(evt);\n }\n });\n\n btnAceptar1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n btnAceptar1.setText(\"Aceptar\");\n btnAceptar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAceptar1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(68, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(36, 36, 36)\n .addComponent(cbTipoFlor, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(91, 91, 91))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(btnSalir, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(btnAceptar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(8, 8, 8)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(126, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(cbTipoFlor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(123, 123, 123)\n .addComponent(btnSalir, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(203, Short.MAX_VALUE)\n .addComponent(btnAceptar1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(92, 92, 92)))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cbplaca = new javax.swing.JComboBox<>();\n cbdia = new javax.swing.JComboBox<>();\n cbcolor = new javax.swing.JComboBox<>();\n imprimirtxt = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n revisar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n cbplaca.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n cbdia.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n cbcolor.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n imprimirtxt.setText(\"jTextField1\");\n\n jButton1.setText(\"jButton1\");\n\n revisar.setText(\"jButton2\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(124, 124, 124)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cbplaca, 0, 146, Short.MAX_VALUE)\n .addComponent(cbdia, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cbcolor, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 210, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(imprimirtxt, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(44, 44, 44))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(106, 106, 106))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(revisar)\n .addGap(103, 103, 103))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(61, 61, 61)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbplaca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGap(59, 59, 59)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbdia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(imprimirtxt, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(65, 65, 65)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbcolor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(revisar))\n .addContainerGap(140, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n //Preenche o comboBox sexo\r\n cb_sexo.setItems(listSexo);\r\n cb_uf.setItems(listUf);\r\n cb_serie.setItems(listSerie);\r\n\r\n// // Preenche o comboBox UF\r\n// this.cb_uf.setConverter(new ConverterDados(ConverterDados.GET_UF));\r\n// this.cb_uf.setItems(AlunoDAO.executeQuery(null, AlunoDAO.QUERY_TODOS));\r\n//\r\n// //Preenche o comboBox Serie\r\n// this.cb_serie.setConverter(new ConverterDados(ConverterDados.GET_SERIE));\r\n// this.cb_serie.setItems(AlunoDAO.executeQuery(null, AlunoDAO.QUERY_TODOS));\r\n this.codAluno.setCellValueFactory(cellData -> cellData.getValue().getCodigoProperty().asObject());\r\n this.nomeAluno.setCellValueFactory(cellData -> cellData.getValue().getNomeProperty());\r\n this.sexoAluno.setCellValueFactory(cellData -> cellData.getValue().getSexoProperty());\r\n this.enderecoAluno.setCellValueFactory(cellData -> cellData.getValue().getEnderecoProperty());\r\n this.cepAluno.setCellValueFactory(cellData -> cellData.getValue().getCepProperty());\r\n this.nascimentoAluno.setCellValueFactory(cellData -> cellData.getValue().getNascimentoProperty());\r\n this.ufAluno.setCellValueFactory(cellData -> cellData.getValue().getUfProperty());\r\n this.maeAluno.setCellValueFactory(cellData -> cellData.getValue().getMaeProperty());\r\n this.paiAluno.setCellValueFactory(cellData -> cellData.getValue().getPaiProperty());\r\n this.telefoneAluno.setCellValueFactory(cellData -> cellData.getValue().getTelefoneProperty());\r\n this.serieAluno.setCellValueFactory(cellData -> cellData.getValue().getSerieProperty());\r\n this.ensinoAluno.setCellValueFactory(cellData -> cellData.getValue().getEnsinoProperty());\r\n\r\n //bt_excluir.disableProperty().bind(tabelaAluno.getSelectionModel().selectedItemProperty().isNull());\r\n //bt_editar.disableProperty().bind(tabelaAluno.getSelectionModel().selectedItemProperty().isNull());\r\n }", "private JComboBox getJComboBoxEntidad()\r\n {\r\n \tif (jComboBoxEntidad == null)\r\n\t\t{\r\n\t\t\tjComboBoxEntidad = new JComboBox();\r\n//\t\t \tjComboBoxEntidad.setEditable(true);\r\n\t\t\tjComboBoxEntidad.setRenderer(new UbicacionListCellRenderer());\r\n\t\t\tjComboBoxEntidad.addActionListener(new ActionListener()\r\n\t\t\t{\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t\t{ \r\n\t\t\t\t\t\r\n\t\t\t\t\tif (jComboBoxEntidad.getSelectedIndex()==0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tjComboBoxNucleo.removeAllItems();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tEntidadesSingularesEIEL entidad = new EntidadesSingularesEIEL();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (jComboBoxProvincia.getSelectedItem() != null)\r\n\t\t\t\t\t\t\tentidad.setCodINEProvincia(((Provincia)jComboBoxProvincia.getSelectedItem()).getIdProvincia());\r\n\t\t\t\t\t\tif (jComboBoxMunicipio.getSelectedItem() != null && !jComboBoxMunicipio.getSelectedItem().equals(\"\"))\r\n\t\t\t\t\t\t\tentidad.setCodINEMunicipio(\r\n\t\t\t\t\t\t\t\t\t((Municipio)jComboBoxMunicipio.getSelectedItem()).getIdIne()\r\n\t\t \t\t\t\t\t\t);\r\n\t\t \tif (jComboBoxEntidad.getSelectedItem() != null && !jComboBoxEntidad.getSelectedItem().equals(\"\"))\r\n\t\t \t\tentidad.setCodINEEntidad(((EntidadesSingularesEIEL)jComboBoxEntidad.getSelectedItem()).getCodINEEntidad());\r\n\t\t\t\t\r\n\t\t \t\t\t\r\n\t\t \tif (entidad.getCodINEEntidad()!=null){\r\n\t\t \t\tEdicionOperations oper = new EdicionOperations();\r\n\t\t \t\tEdicionUtils.cargarLista(getJComboBoxNucleo(), \r\n\t\t \t\t\t\t\toper.obtenerNucleosConNombre(entidad));\r\n\t\t \t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jComboBoxEntidad;\r\n }", "public JComboBox getJComboBoxProvincia()\r\n {\r\n \tif (jComboBoxProvincia == null) {\r\n\t\t\tEdicionOperations oper = new EdicionOperations();\r\n\t\t\tArrayList<Provincia> listaProvincias = oper.obtenerProvinciasConNombre();\r\n\t\t\tjComboBoxProvincia = new JComboBox(listaProvincias.toArray());\r\n\t\t\tjComboBoxProvincia\r\n\t\t\t\t\t.setSelectedIndex(this\r\n\t\t\t\t\t\t\t.provinciaIndexSeleccionar(ConstantesLocalGISEIEL.idProvincia));\r\n\t\t\tjComboBoxProvincia.setRenderer(new UbicacionListCellRenderer());\r\n\t\t\tjComboBoxProvincia.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tif (getJComboBoxMunicipio() != null) {\r\n\t\t\t\t\t\tif (jComboBoxProvincia.getSelectedIndex() == 0) {\r\n\t\t\t\t\t\t\tjComboBoxMunicipio.removeAllItems();\r\n\t\t\t\t\t\t\tMunicipio municipio = new Municipio();\r\n\t\t\t\t\t\t\tmunicipio.setIdIne(\"\");\r\n\t\t\t\t\t\t\tmunicipio.setNombreOficial(\"\");\r\n\t\t\t\t\t\t\tjComboBoxMunicipio.addItem(municipio);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tEdicionOperations oper = new EdicionOperations();\r\n\t\t\t\t\t\t\tjComboBoxProvincia\r\n\t\t\t\t\t\t\t\t\t.setSelectedIndex(provinciaIndexSeleccionar(ConstantesLocalGISEIEL.idProvincia));\r\n\r\n\t\t\t\t\t\t\tif (jComboBoxProvincia.getSelectedItem() != null) {\r\n\t\t\t\t\t\t\t\tEdicionUtils.cargarLista(\r\n\t\t\t\t\t\t\t\t\t\tgetJComboBoxMunicipio(),\r\n\t\t\t\t\t\t\t\t\t\toper.obtenerTodosMunicipios(((Provincia) jComboBoxProvincia\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getSelectedItem())\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getIdProvincia()));\r\n\t\t\t\t\t\t\t\tjComboBoxMunicipio\r\n\t\t\t\t\t\t\t\t\t\t.setSelectedIndex(municipioIndexSeleccionar(ConstantesLocalGISEIEL.idMunicipio));\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\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t}\r\n\r\n\t\treturn jComboBoxProvincia;\r\n }", "private JComboBox getComboBoxDomaci() {\r\n\t\tif (comboBoxDomaci == null) {\r\n\t\t\tcomboBoxDomaci = new JComboBox<Tim>();\r\n\t\t\tGUIKontroler.popuniComboBox(comboBoxDomaci);\r\n\t\t\tcomboBoxDomaci.setPreferredSize(new Dimension(130, 20));\r\n\t\t}\r\n\t\treturn comboBoxDomaci;\r\n\t}", "private void preencherComboEstados() {\n\t\tList<Estado> listEstado;\n\t\tObservableList<Estado> oListEstado;\n\t\tEstadosDAO estadosDao;\n\n\t\t//Instancia a DAO estados\n\t\testadosDao = new EstadosDAO();\n\n\t\t//Chama o metodo para listar todos os estados\n\t\tlistEstado = estadosDao.selecionar();\n\n\t\t//Verifica se a lista de estados está vazia\n\t\tif(listEstado.isEmpty()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Atribui a lista retornada ao observablearray\n\t\toListEstado = FXCollections.observableArrayList(listEstado);\n\n\t\t//Adiciona os itens no combobx\n\t\tcboEstado.setItems(oListEstado);\n\n\t\t//Seleciona o primeio item do combobox\n\t\tcboEstado.getSelectionModel().select(0);\n\t}", "private JComboBox getColoda() {\n\t\tif (coloda == null) {\n\t\t\tcoloda = new JComboBox();\n\t\t\tcoloda.setModel(new DefaultComboBoxModel(new String [] {\"36\", \"52\"}));\n\t\t}\n\t\treturn coloda;\n\t}", "private void buildComboBox() {\r\n\r\n comboBoxKernelOpen = new JComboBox();\r\n comboBoxKernelOpen.setFont(serif12);\r\n comboBoxKernelOpen.setBackground(Color.white);\r\n\r\n if (image.getNDims() == 2) {\r\n comboBoxKernelOpen.addItem(\"3x3 - 4 connected\");\r\n comboBoxKernelOpen.addItem(\"5x5 - 12 connected\");\r\n comboBoxKernelOpen.addItem(\"User sized circle.\");\r\n comboBoxKernelOpen.setSelectedIndex(2);\r\n } else if (image.getNDims() == 3) {\r\n comboBoxKernelOpen.addItem(\"3x3x3 - 6 connected (2.5D: 4)\");\r\n comboBoxKernelOpen.addItem(\"5x5x5 - 24 connected (2.5D: 12)\");\r\n comboBoxKernelOpen.addItem(\"User sized sphere.\");\r\n }\r\n }", "private void popuniComboZaMesto() {\n try {\n jComboMesto.removeAllItems();\n List<MestoEntity> mesta = Controller.ucitajListuMesta();\n \n for (IDomainEntity mesto : mesta) {\n if(mesto instanceof MestoEntity)\n jComboMesto.addItem((MestoEntity) mesto);\n }\n } catch (Exception ex) {\n Logger.getLogger(FKupac.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void CargarListaFincas() {\n listaFincas = controlgen.GetComboBox(\"SELECT '-1' AS ID, 'Seleccionar' AS DESCRIPCION\\n\" +\n \"UNION\\n\" +\n \"SELECT `id` AS ID, `descripcion` AS DESCRIPCION\\n\" +\n \"FROM `fincas`\\n\"+\n \"/*UNION \\n\"+\n \"SELECT 'ALL' AS ID, 'TODOS' AS DESCRIPCION*/\");\n \n Utilidades.LlenarComboBox(cbFinca, listaFincas, \"DESCRIPCION\");\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cmbFakture = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n cmbProizvod = new javax.swing.JComboBox();\n btnUbaci = new javax.swing.JButton();\n txtKolicina = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setText(\"Faktura: \");\n\n jLabel2.setText(\"Kolicina:\");\n\n jLabel3.setText(\"Proizvod:\");\n\n btnUbaci.setText(\"Ubaci\");\n btnUbaci.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnUbaciActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(8, 8, 8)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cmbProizvod, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cmbFakture, 0, 373, Short.MAX_VALUE)\n .addComponent(txtKolicina)))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnUbaci)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmbFakture, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(102, 102, 102)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtKolicina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(82, 82, 82)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cmbProizvod, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addComponent(btnUbaci)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n crearRele = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n comboBoxSP_Rele = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n comboBoxPlanetaRele = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Crear Teletransportador\");\n\n crearRele.setText(\"Crear\");\n crearRele.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n crearReleActionPerformed(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel2.setText(\"Elegir sistema planetario:\");\n\n comboBoxSP_Rele.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n comboBoxSP_Rele.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n comboBoxSP_ReleItemStateChanged(evt);\n }\n });\n\n jLabel3.setText(\"Elegir planeta:\");\n\n comboBoxPlanetaRele.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(comboBoxSP_Rele, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel2))\n .addGap(0, 66, Short.MAX_VALUE))\n .addComponent(comboBoxPlanetaRele, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(comboBoxSP_Rele, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(comboBoxPlanetaRele, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(crearRele, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(crearRele)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void setComboBoxValues() {\n String sql = \"select iName from item where iActive=? order by iName asc\";\n \n cbo_iniName.removeAllItems();\n try {\n pst = conn.prepareStatement(sql);\n pst.setString(1,\"Yes\");\n rs = pst.executeQuery();\n \n while (rs.next()) {\n cbo_iniName.addItem(rs.getString(1));\n }\n \n }catch(Exception e) {\n JOptionPane.showMessageDialog(null,\"Item list cannot be loaded\");\n }finally {\n try{\n rs.close();\n pst.close();\n \n }catch(Exception e) {}\n }\n }", "public Main() {\n initComponents();\n ap.setArchivo(new File(\"./planetas.abc\"));\n aa.setArchivo(new File(\"./astro.abc\"));\n ap.cargar();\n planetas = ap.getListaa();\n aa.cargar();\n astro = aa.getListaa();\n DefaultComboBoxModel modelo = (DefaultComboBoxModel) cb_planeta.getModel();\n for (Planetas p : planetas) {\n modelo.addElement(p);\n }\n cb_planeta.setModel(modelo);\n DefaultComboBoxModel model = (DefaultComboBoxModel) cb_crew.getModel();\n for (Astronautas a : astro) {\n model.addElement(a);\n }\n cb_crew.setModel(model);\n if (planetas.size() > 0) {\n DefaultTableModel m = (DefaultTableModel) jt_pla.getModel();\n for (Planetas p : planetas) {\n Object newrow[] = {\n p.getNombre(),\n p.getTemp(),\n p.isAnillos(),\n p.getSuperficie(),\n p.getDist()\n };\n m.addRow(newrow);\n }\n jt_pla.setModel(m);\n }\n if (astro.size() > 0) {\n DefaultTableModel a = (DefaultTableModel) jt_astro.getModel();\n for (Astronautas c : astro) {\n Object newro[] = {\n c.getNombre(),\n c.getNacionalidad(),\n c.getSueldo(),\n c.getExperiencia(),\n c.getSexo(),\n c.getPeso()\n };\n a.addRow(newro);\n }\n jt_astro.setModel(a);\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n selectOrdem = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n nome = new javax.swing.JTextField();\n btnSalvar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n descErro = new javax.swing.JLabel();\n\n jLabel2.setText(\"Ordem na exibição\");\n\n selectOrdem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"1\" }));\n\n jLabel1.setText(\"Nome da lista\");\n\n btnSalvar.setText(\"Salvar Lista\");\n\n btnCancelar.setText(\"Cancelar\");\n\n descErro.setForeground(new java.awt.Color(255, 51, 51));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnSalvar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCancelar))\n .addComponent(nome, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n .addComponent(descErro, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(selectOrdem, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(selectOrdem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(nome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(descErro, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(13, 13, 13)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSalvar)\n .addComponent(btnCancelar))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }", "public JComboBox getJComboBoxMunicipio()\r\n {\r\n \tif (jComboBoxMunicipio == null) {\r\n\t\t\tjComboBoxMunicipio = new JComboBox();\r\n\t\t\tjComboBoxMunicipio.setRenderer(new UbicacionListCellRenderer());\r\n\t\t\tjComboBoxMunicipio.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\t\tif (jComboBoxMunicipio.getSelectedIndex() != 0) {\r\n\t\t\t\t\t\tMunicipioEIEL municipio = new MunicipioEIEL();\r\n\t\t\t\t\t\tif (jComboBoxProvincia.getSelectedItem() != null) {\r\n\t\t\t\t\t\t\tmunicipio\r\n\t\t\t\t\t\t\t\t\t.setCodProvincia(((Provincia) jComboBoxProvincia\r\n\t\t\t\t\t\t\t\t\t\t\t.getSelectedItem())\r\n\t\t\t\t\t\t\t\t\t\t\t.getIdProvincia());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (jComboBoxMunicipio.getSelectedItem() != null) {\r\n\t\t\t\t\t\t\tmunicipio\r\n\t\t\t\t\t\t\t\t\t.setCodMunicipio(((Municipio) jComboBoxMunicipio\r\n\t\t\t\t\t\t\t\t\t\t\t.getSelectedItem()).getIdIne());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (municipio.getCodMunicipio()!=null){\r\n\t \t\t\tEdicionOperations oper = new EdicionOperations();\r\n\t \t\t\tEdicionUtils.cargarLista(getJComboBoxEntidad(), oper.obtenerEntidadesConNombre(municipio));\r\n//\t \t\t\tSystem.out.println(\"PASO1\");\r\n\t \t\t\t//EdicionUtils.cargarLista(jComboBoxNucleo, oper.obtenerNucleosConNombre(entidad)); \r\n \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\treturn jComboBoxMunicipio;\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField1 = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jComboBox1 = new javax.swing.JComboBox<>();\n\n setToolTipText(\"\");\n setPreferredSize(new java.awt.Dimension(600, 500));\n\n jTextField1.setEditable(false);\n jTextField1.setBackground(new java.awt.Color(141, 141, 157));\n jTextField1.setFont(new java.awt.Font(\"Modern No. 20\", 0, 36)); // NOI18N\n jTextField1.setForeground(new java.awt.Color(255, 255, 255));\n jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n jTextField1.setText(\"Criar Professor\");\n jTextField1.setToolTipText(\"\");\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel1.setText(\"Nome: \");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"Grau Académico:\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel3.setText(\"Idade: \");\n\n jButton1.setText(\"Criar Professor\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/undo.png\"))); // NOI18N\n jButton2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButton2.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);\n jButton2.setDefaultCapable(false);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jTextField2.setName(\"Nome\"); // NOI18N\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n\n jTextField3.setName(\"Idade\"); // NOI18N\n\n jComboBox1.setName(\"Grau académico\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jTextField1))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(197, 197, 197)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)\n .addGap(88, 88, 88)\n .addComponent(jButton2)\n .addGap(22, 22, 22)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 76, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)\n .addComponent(jTextField3)\n .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(72, 72, 72))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(139, 139, 139)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField3)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBox1))\n .addGap(113, 113, 113)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(44, 44, 44))\n );\n }", "public CadastroCarroView() {\n initComponents();\n ReadTable();\n MarcaVeiculoDao marca = new MarcaVeiculoDao();\n ModeloVeiculoDao modelo = new ModeloVeiculoDao();\n StatusDao status = new StatusDao();\n //Função abaixo Carrega o jCombox Marca.\n for(MarcaVeiculoBeans marcab : marca.ReadMarca()){\n \n jComboMarca.addItem(marcab);\n \n \n }\n //Função abaixo carrega o jCombox Modelos.\n for(ModeloVeiculoBeans modelob : modelo.Read()){\n jComboModelo.addItem(modelob);\n }\n \n for(StatusBeans sts : status.ReadStatus() ){\n jComboStatusID.addItem(sts);\n }\n }", "public GrafosTP1UI() {\n initComponents();\n control = new Controlador();\n jComboBox1.setSelectedIndex(0); \n }", "public void carrega_cidade() throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUF.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n \n ResultSet rs = preparador.executeQuery();\n cbCidade.removeAllItems();\n //passando valores do banco para o objeto result; \n try{ \n \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidade.addItem(list); \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n Conexao.desConectar();\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n ClinicaFprojectPUEntityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory(\"ClinicaFprojectPU\").createEntityManager();\n pacienteQuery = java.beans.Beans.isDesignTime() ? null : ClinicaFprojectPUEntityManager.createQuery(\"SELECT p FROM Paciente p\");\n pacienteList = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : pacienteQuery.getResultList();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jComboBox1 = new javax.swing.JComboBox<>();\n\n setClosable(true);\n\n jButton1.setText(\"jButton1\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"jButton2\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n jComboBox1.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jComboBox1ItemStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(356, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addGap(34, 34, 34)\n .addComponent(jButton1)\n .addGap(155, 155, 155))\n .addGroup(layout.createSequentialGroup()\n .addGap(153, 153, 153)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(134, 134, 134)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 174, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addGap(49, 49, 49))\n );\n\n pack();\n }", "private JComboBox getComboBoxGosti() {\r\n\t\tif (comboBoxGosti == null) {\r\n\t\t\tcomboBoxGosti = new JComboBox<Tim>();\r\n\t\t\tGUIKontroler.popuniComboBox(comboBoxGosti);\r\n\t\t\tcomboBoxGosti.setPreferredSize(new Dimension(130, 20));\r\n\t\t}\r\n\t\treturn comboBoxGosti;\r\n\t}", "public void riempiTriggerComboBox(){\n Statement stmt;\n ResultSet rst;\n String query = \"SELECT T.schema, T.nomeTrigger FROM trigger1 T\";\n \n triggerComboBox.removeAllItems();\n try{\n stmt = Database.getDefaultConnection().createStatement();\n rst = stmt.executeQuery(query);\n \n while(rst.next()){\n //I Trigger nella comboBox saranno mostrate secondo il modello: nomeSchema.nomeTrigger\n //in quanto Trigger appartenenti a Schemi diversi possono avere lo stesso nome\n triggerComboBox.addItem(rst.getString(1)+\".\"+rst.getString(2));\n }\n triggerComboBox.setSelectedIndex(-1);\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n }", "public TelaListaOS() {\n initComponents();\n ConfigTelas ct = new ConfigTelas(this);\n ct.carregarConfig(this);\n \n this.jComboBoxOS.setVisible(false);\n }", "void fillCombo_name(){\n combo_name.setItems(FXCollections.observableArrayList(listComboN));\n }", "public void construirSegundoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet2ReglaCompleja = new JComboBox(dominio);// creamos el Segundo combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet2ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Segundo item\n\t\titemscomboDominiosSet2ReglaCompleja = new JComboBox();// creamo el segundo combo, vacio\n\t\titemscomboDominiosSet2ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Segundo Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet2ReglaCompleja);\n\t\tcomboDominiosSet2ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet2ReglaCompleja);\n\t\titemscomboDominiosSet2ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet2ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "public DefaultComboBoxModel llenarCombo() {\n DefaultComboBoxModel comboFut = new DefaultComboBoxModel();\n comboFut.addElement(\"Seleccione un club\");\n ResultSet res = this.consulta(\"SELECT * FROM Clubs\");\n try {\n while (res.next()) {\n // se inserta en el combo el nombre del club\n comboFut.addElement(res.getString(\"nombre\"));\n }\n close(res);\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n }\n return comboFut;\n }", "private void buildComboBoxes() {\n buildCountryComboBox();\n buildDivisionComboBox();\n }", "private void actualizarCombos(){\n Set<String> listaAños = serviciosCuenta.obtieneAños();\n for (String año : listaAños) {\n this.jcbSeleccionAñoIni.addItem(año);\n this.jcbSeleccionAñoFin.addItem(año);\n }\n \n String AñoIni = this.jcbSeleccionAñoIni.getSelectedItem().toString();\n String AñoFin = this.jcbSeleccionAñoFin.getSelectedItem().toString();\n \n this.jcbSeleccionMesIni.removeAllItems();\n this.jcbSeleccionInicio.removeAllItems();\n Set<String> listaMesesIni = serviciosCuenta.obtieneMeses(AñoIni);\n Set<String> listaMesesFin = serviciosCuenta.obtieneMeses(AñoFin);\n for (String mes : listaMesesIni) {\n this.jcbSeleccionMesIni.addItem(mes);\n }\n for (String mes : listaMesesFin) {\n this.jcbSeleccionMesFin.addItem(mes);\n }\n \n String MesIni = this.jcbSeleccionMesIni.getSelectedItem().toString();\n String MesFin = this.jcbSeleccionMesFin.getSelectedItem().toString();\n ArrayList<String> listaDiasIni = serviciosCuenta.obtieneDias(AñoIni, MesIni);\n ArrayList<String> listaDiasFin = serviciosCuenta.obtieneDias(AñoFin, MesFin);\n \n for (String dia : listaDiasIni) {\n this.jcbSeleccionInicio.addItem(dia);\n }\n for (String dia : listaDiasFin) {\n this.jcbSeleccionFin.addItem(dia);\n }\n this.jcbSeleccionFin.setSelectedIndex(this.jcbSeleccionFin.getItemCount() - 1);\n //System.out.println(\"Saliendo: private void actualizarCombos()\");\n }", "public void construirPrimerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet1ReglaCompleja = new JComboBox(dominio);// creamos el primer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet1ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el primer item\n\t\titemscomboDominiosSet1ReglaCompleja = new JComboBox();// creamo el segundo combo, vacio\n\t\titemscomboDominiosSet1ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el primer Dominio de regla compleja\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet1ReglaCompleja);\n\t\tcomboDominiosSet1ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemscomboDominiosSet1ReglaCompleja);\n\t\titemscomboDominiosSet1ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet1ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "public jp_movimientos() {\n initComponents();\n this.jComboBox4.setVisible(false);\n this.jLabel9.setVisible(false);\n modelo = new DefaultComboBoxModel();\n modelo_libro = new ArrayList();\n this.jComboBox3.setModel(modelo);\n modelo_libro.add(new DefaultComboBoxModel<>(new String[]{\"5.1: \\tDIARIO\", \"5.3: \\tDETALLE DEL PLAN CONTABLE UTILIZADO\"}));\n modelo_libro.add(new DefaultComboBoxModel<>(new String[]{\"5.2: \\tDIARIO DE FORMATO SIMPLIFICADO\", \"5.4: \\tDETALLE DEL PLAN CONTABLE UTILIZADO\"}));\n modelo_libro.add(null);\n modelo_libro.add(new DefaultComboBoxModel<>(new String[]{\"8.1: \\tCOMPRAS\", \"8.2: \\tINFORMACION DE OPERACIONES CON SUJETOS NO DOMICILIADOS\", \"8.3: \\tCOMPRAS SIMPLIFICADO\"}));\n modelo_libro.add(new DefaultComboBoxModel<>(new String[]{\"14.1: \\tVENTAS E INGRESOS\", \"14.2: \\tVENTAS E INGRESOS SIMPLIFICADOS\"}));\n }", "public Voznje() {\n initComponents();\n lstPodaci.setCellRenderer(new VoznjaCellRenderer());\n obrada = new ObradaVoznja();\n setTitle(Aplikacija.operater.getIme() + \" \" + Aplikacija.operater.getPrezime() + \" - Vožnje\");\n btnObrisi.setText(\"\\u274C\"+ \" Obriši\");\n btnPromijeni.setText(\"\\u2611\\uFE0F\" + \" Promijeni\");\n btnDodaj.setText(\"\\u2795\" + \" Dodaj\");\n ucitajPodatke(); \n \n DefaultComboBoxModel<Vozac> v = new DefaultComboBoxModel<>();\n new ObradaVozac().getPodaci().forEach(s -> {\n v.addElement(s);\n });\n cmbVozaci.setRenderer(new VozacCellRenderer());\n cmbVozaci.setModel(v);\n ucitajPodatke();\n \n \n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n listaPabellonesCB = new javax.swing.JComboBox<>();\n camaUbicacionTF = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n aceptarB = new javax.swing.JButton();\n cancelarB = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n listaPabellonesCB.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \" \", \"Cuidados intensivos\", \"Cuidados intermedios\" }));\n\n camaUbicacionTF.setBackground(new java.awt.Color(102, 102, 102));\n\n jLabel2.setBackground(new java.awt.Color(0, 0, 0));\n jLabel2.setText(\"Ubicación\");\n\n jLabel3.setBackground(new java.awt.Color(0, 0, 0));\n jLabel3.setText(\"Pabellón\");\n\n aceptarB.setText(\"Aceptar\");\n aceptarB.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n aceptarBActionPerformed(evt);\n }\n });\n\n cancelarB.setText(\"Cancelar\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(114, 114, 114)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(camaUbicacionTF, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(listaPabellonesCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(234, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(cancelarB)\n .addComponent(aceptarB, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(62, 62, 62))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(138, 138, 138)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(camaUbicacionTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(listaPabellonesCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(130, 130, 130)\n .addComponent(aceptarB)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cancelarB)\n .addContainerGap(53, Short.MAX_VALUE))\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panelColores = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList<>();\n cboColores = new javax.swing.JComboBox<>();\n cboRojo = new javax.swing.JComboBox<>();\n cboVerde = new javax.swing.JComboBox<>();\n cboAzul = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n panelColores.setBackground(new java.awt.Color(255, 204, 204));\n\n jList1.setModel(new javax.swing.AbstractListModel<String>() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public String getElementAt(int i) { return strings[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n\n cboColores.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-selecciona opción-\", \"Rojo\", \"Azul\", \"Verde\", \"Amarillo\", \"Rosa\", \"Negro\", \"Blanco\" }));\n cboColores.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboColoresItemStateChanged(evt);\n }\n });\n cboColores.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cboColoresActionPerformed(evt);\n }\n });\n cboColores.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n cboColoresPropertyChange(evt);\n }\n });\n\n cboRojo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-selecciona opcion-\", \"10\", \"20\", \"30\", \"40\", \"50\", \"60\", \"70\", \"80\", \"90\", \"100\" }));\n cboRojo.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboRojoItemStateChanged(evt);\n }\n });\n cboRojo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cboRojoActionPerformed(evt);\n }\n });\n\n cboVerde.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-selecciona opcion-\", \"10\", \"20\", \"30\", \"40\", \"50\", \"60\", \"70\", \"80\", \"90\", \"100\" }));\n cboVerde.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboVerdeItemStateChanged(evt);\n }\n });\n\n cboAzul.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-selecciona opcion-\", \"10\", \"20\", \"30\", \"40\", \"50\", \"60\", \"70\", \"80\", \"90\", \"100\" }));\n cboAzul.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cboAzulItemStateChanged(evt);\n }\n });\n\n jLabel1.setText(\"rojo\");\n\n jLabel2.setText(\"verde\");\n\n jLabel3.setText(\"azul\");\n\n javax.swing.GroupLayout panelColoresLayout = new javax.swing.GroupLayout(panelColores);\n panelColores.setLayout(panelColoresLayout);\n panelColoresLayout.setHorizontalGroup(\n panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelColoresLayout.createSequentialGroup()\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelColoresLayout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addComponent(cboColores, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(panelColoresLayout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cboVerde, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cboRojo, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cboAzul, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 120, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(22, 22, 22))\n );\n panelColoresLayout.setVerticalGroup(\n panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelColoresLayout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelColoresLayout.createSequentialGroup()\n .addComponent(cboColores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cboRojo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(13, 13, 13)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cboVerde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(panelColoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cboAzul, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(110, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelColores, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelColores, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public static void fillComboBox() {\r\n\t\ttry {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tresults = statement.executeQuery(\"Select PeopleName from people \");\r\n\t\t\twhile (results.next()) {\r\n\t\t\t\tString peopleName = results.getString(\"PeopleName\");\r\n\t\t\t\tcomboBox.addItem(peopleName);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t \te.printStackTrace();\r\n\t\t}\r\n\t}", "private void tampil_kereta() {\n kereta_combo.addItem (\"Argo Parahyangan\");\n kereta_combo.addItem (\"Argo Jati\");\n kereta_combo.addItem (\"Bangun Karta\");\n kereta_combo.addItem (\"Bima\");\n kereta_combo.addItem (\"Kahuripan\");\n kereta_combo.addItem (\"Lodaya\"); \n kereta_combo.addItem (\"Sembari\");\n kereta_combo.addItem (\"Turangga\");\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n campoNome = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n campoMatricula = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n campoCPF = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n campoRG = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n campoEmail = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n cursoComboBox = new javax.swing.JComboBox();\n\n setLayout(null);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 25)); // NOI18N\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/image_edit.png\"))); // NOI18N\n jLabel2.setText(\"Cadastro de aluno\");\n add(jLabel2);\n jLabel2.setBounds(280, 40, 260, 50);\n\n campoNome.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n add(campoNome);\n campoNome.setBounds(220, 130, 420, 30);\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel5.setText(\"Nome Completo\");\n add(jLabel5);\n jLabel5.setBounds(120, 130, 100, 30);\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel6.setText(\"Matrícula\");\n add(jLabel6);\n jLabel6.setBounds(150, 180, 60, 30);\n\n campoMatricula.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n campoMatricula.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoMatriculaActionPerformed(evt);\n }\n });\n add(campoMatricula);\n campoMatricula.setBounds(220, 180, 190, 30);\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel4.setText(\"Curso\");\n add(jLabel4);\n jLabel4.setBounds(170, 240, 40, 30);\n\n campoCPF.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n add(campoCPF);\n campoCPF.setBounds(220, 290, 190, 30);\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel3.setText(\"RG\");\n add(jLabel3);\n jLabel3.setBounds(170, 340, 30, 30);\n\n campoRG.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n campoRG.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoRGActionPerformed(evt);\n }\n });\n add(campoRG);\n campoRG.setBounds(220, 340, 190, 30);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel1.setText(\"Email\");\n add(jLabel1);\n jLabel1.setBounds(170, 390, 40, 30);\n\n campoEmail.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n campoEmail.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoEmailActionPerformed(evt);\n }\n });\n add(campoEmail);\n campoEmail.setBounds(220, 390, 410, 30);\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/accept_1.png\"))); // NOI18N\n jButton1.setText(\"Salvar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n add(jButton1);\n jButton1.setBounds(270, 470, 100, 30);\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagens/delete_1.png\"))); // NOI18N\n jButton2.setText(\"Sair\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n add(jButton2);\n jButton2.setBounds(430, 470, 110, 30);\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel7.setText(\"CPF\");\n add(jLabel7);\n jLabel7.setBounds(180, 290, 30, 30);\n\n add(cursoComboBox);\n cursoComboBox.setBounds(220, 240, 190, 30);\n }", "public void construirSetOperadores() {\n\n\t\tlabeltituloSeleccionOperador = new JLabel();\n\n\t\tcomboOperadores = new JComboBox(operadores);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboOperadores.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\t\n\n\t\tlabeltituloSeleccionOperador.setText(\"Seleccione el operador que relaciona ambas reglas\");\n\t\tpanelCentral.add(labeltituloSeleccionOperador);\n\t\tlabeltituloSeleccionOperador.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboOperadores);\n\t\tcomboOperadores.setBounds(100, 30, 150, 24);\n\t\t\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboOperadores.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "private void CBFakture() {\n try {\n cmbFakture.removeAllItems();\n List<Faktura> fakture = Controller.getInstance().vratiFaktureView();\n for (Faktura fak : fakture) {\n cmbFakture.addItem(fak);\n }\n } catch (Exception ex) {\n Logger.getLogger(ProizvodUpdate.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public pansiyon() {\n initComponents();\n for (int i =1900; i <2025; i++) {\n \n cmbkayıtyılı.addItem(Integer.toString(i));\n \n }\n for (int i =1900; i <2025; i++) {\n \n cmbayrılısyılı.addItem(Integer.toString(i));\n \n }\n }", "public void carrega_estado() throws SQLException{\n String sql = \"SELECT * FROM tb_estados\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"uf\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbUF.addItem(list); \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n \n \n Conexao.desConectar();\n }", "public Locar() {\n \n initComponents();\n \n \n comboCliente.addItem(\"\");\n comboVeiculo.addItem(\"\");\n \n for (int i=0; i < LocadoraDados.getClientes().size(); i++) { \n comboCliente.addItem(LocadoraDados.getClientes().get(i).getNome()+ \" | \" + String.valueOf(LocadoraDados.getClientes().get(i).getID())); \n \n }\n \n for (int i=0; i < LocadoraDados.getVeiculos().size(); i++) { \n comboVeiculo.addItem(LocadoraDados.getVeiculos().get(i).getDescricao()+ \" | \" + String.valueOf(LocadoraDados.getVeiculos().get(i).getCodigoAuto())); \n \n }\n telaVeiculos = new Veiculos(-1);\n telaVeiculos.setVisible(false);\n \n listarLocacoes = new ListarLocacoes();\n listarLocacoes.setVisible(false);\n \n \n \n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblPlanEstudio = new javax.swing.JLabel();\n comboBox = new ComboBoxPlanEstudios();\n btnAceptar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Planes de estudio\");\n setIconImage(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/iconos/calendario.png\")).getImage());\n setResizable(false);\n\n lblPlanEstudio.setText(\"Plan de estudio:\");\n\n btnAceptar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/iconos/aceptarPeque.png\"))); // NOI18N\n btnAceptar.setText(\"Aceptar\");\n btnAceptar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAceptarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblPlanEstudio)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(comboBox, 0, 319, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(165, 165, 165)\n .addComponent(btnAceptar)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblPlanEstudio)\n .addComponent(comboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)\n .addComponent(btnAceptar)\n .addContainerGap())\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public MenuUtamaPenyedia() {\n initComponents();\n tabPenyedia.setTitleAt(0, \"View Profile\");\n tabPenyedia.setTitleAt(1, \"Edit Profile\");\n tabPenyedia.setTitleAt(2, \"Create Barang\");\n tglSpinner.setValue(0);\n blnSpinner.setValue(0);\n thnSpinner.setValue(2016);\n kbComboBox.setMaximumRowCount(2);\n kbComboBox.removeAllItems();\n kbComboBox.insertItemAt(\"Bagus\", 0);\n kbComboBox.insertItemAt(\"Tidak Bagus\", 1);\n }", "public void mostrarCategoria(JComboBox<Categoria>jComboBoxCategoria){\n \n try{\n con = ConexionBD.getConexion();\n String sql=\"SELECT * FROM categorias WHERE id_estado = 1 ORDER BY id_categoria\";\n sent = con.createStatement();\n ResultSet rs = sent.executeQuery(sql);\n \n \n while (rs.next()){\n jComboBoxCategoria.addItem(\n new Categoria (\n rs.getString(\"id_categoria\"), \n rs.getString(\"nombre_categoria\")\n )\n );\n }\n \n }catch(SQLException e){\n JOptionPane.showMessageDialog(null,\"error\");\n \n \n \n }\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabNom = new javax.swing.JLabel();\n jLabAp1 = new javax.swing.JLabel();\n jLabAp2 = new javax.swing.JLabel();\n jLabSex = new javax.swing.JLabel();\n jLabEdad = new javax.swing.JLabel();\n jLabNomin = new javax.swing.JLabel();\n jLabIRPF = new javax.swing.JLabel();\n jTexNom = new javax.swing.JTextField();\n jTexAp1 = new javax.swing.JTextField();\n jTexNomin = new javax.swing.JTextField();\n jTexAp2 = new javax.swing.JTextField();\n jTexEd = new javax.swing.JTextField();\n jTexIRPF = new javax.swing.JTextField();\n jBAcept = new javax.swing.JButton();\n jBAtras = new javax.swing.JButton();\n jCoBSex = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabNom.setText(\"Nombre :\");\n\n jLabAp1.setText(\"Apellido 1:\");\n\n jLabAp2.setText(\"Apellido 2:\");\n\n jLabSex.setText(\"Sexo:\");\n\n jLabEdad.setText(\"Edad:\");\n\n jLabNomin.setText(\"Nomina:\");\n\n jLabIRPF.setText(\"IRPF:\");\n\n jTexNom.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTexNomActionPerformed(evt);\n }\n });\n\n jBAcept.setText(\"Aceptar\");\n jBAcept.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBAceptActionPerformed(evt);\n }\n });\n\n jBAtras.setText(\"Atrás\");\n jBAtras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBAtrasActionPerformed(evt);\n }\n });\n\n jCoBSex.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"H\", \"M\", \"NB\" }));\n jCoBSex.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCoBSexActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(19, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabNomin)\n .addGap(27, 27, 27)\n .addComponent(jTexNomin, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabAp1)\n .addComponent(jLabSex))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCoBSex, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTexAp1))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jBAtras, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 143, Short.MAX_VALUE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabAp2)\n .addComponent(jLabEdad)\n .addComponent(jLabIRPF))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTexEd, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)\n .addComponent(jTexIRPF, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTexAp2)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jBAcept, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(116, 116, 116)\n .addComponent(jLabNom)\n .addGap(34, 34, 34)\n .addComponent(jTexNom, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(17, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabNom)\n .addComponent(jTexNom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabAp1)\n .addComponent(jLabAp2)\n .addComponent(jTexAp1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTexAp2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabSex)\n .addComponent(jLabEdad)\n .addComponent(jTexEd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jCoBSex, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabIRPF)\n .addComponent(jLabNomin)\n .addComponent(jTexNomin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTexIRPF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jBAtras)\n .addComponent(jBAcept)))\n );\n\n pack();\n }", "public void setComboBoxPertemuan() {\n if (listPertemuanCount == null) {\n framePresensi.getPertemuanComboBox().setModel(new DefaultComboBoxModel());\n } else {\n framePresensi.getPertemuanComboBox().setModel(new ComboboxPertemuan().getPertemuan(listPertemuanCount));\n }\n }", "public static JComboBox createComboBox() {\n JComboBox comboBox = new JComboBox();\n initFormWidget(comboBox);\n comboBox.setBackground(Color.WHITE);\n return comboBox;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n lblNome = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n lblDiretor = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n bxClassificacao = new javax.swing.JComboBox<>();\n btnClassificar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n lblNumCapitulo = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txtComentario = new javax.swing.JTextField();\n\n jLabel1.setText(\"Nome:\");\n\n lblNome.setText(\"Nome\");\n\n jLabel2.setText(\"Diretor\");\n\n lblDiretor.setText(\"Diretor\");\n\n jLabel3.setText(\"N° de Capitulos\");\n\n jLabel4.setText(\"Classificação\");\n\n bxClassificacao.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\" }));\n bxClassificacao.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bxClassificacaoActionPerformed(evt);\n }\n });\n\n btnClassificar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/edu/ifnmg/todeferias/imagens/star.png\"))); // NOI18N\n btnClassificar.setText(\"Classificar\");\n btnClassificar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnClassificarActionPerformed(evt);\n }\n });\n\n btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/edu/ifnmg/todeferias/imagens/iconClose.png\"))); // NOI18N\n btnCancelar.setText(\"Cancelar\");\n btnCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarActionPerformed(evt);\n }\n });\n\n lblNumCapitulo.setText(\"N de Capitulo\");\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel5.setText(\"Tela de Classificação de Novelas\");\n\n jLabel6.setText(\"Adicionar comentário\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(lblNome, javax.swing.GroupLayout.PREFERRED_SIZE, 264, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(lblDiretor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bxClassificacao, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblNumCapitulo))\n .addGap(0, 186, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtComentario))))))\n .addGroup(layout.createSequentialGroup()\n .addGap(94, 94, 94)\n .addComponent(jLabel5)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnClassificar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnCancelar)\n .addGap(58, 58, 58))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(lblNome))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(lblDiretor))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(lblNumCapitulo))\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(bxClassificacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtComentario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnClassificar)\n .addComponent(btnCancelar))\n .addGap(27, 27, 27))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cod = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n Sact = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n desc = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n Smax = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n agregar = new javax.swing.JButton();\n Smin = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n unitario = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n tipo = new javax.swing.JComboBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Articulo Nuevo\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n cod.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n codActionPerformed(evt);\n }\n });\n getContentPane().add(cod, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 20, 105, 30));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Ingrese el Codigo\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 30, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel5.setText(\"Stock Minimo\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, -1, -1));\n\n Sact.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SactActionPerformed(evt);\n }\n });\n getContentPane().add(Sact, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 260, 105, 30));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setText(\"Stock Actual\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 270, -1, -1));\n\n desc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n descActionPerformed(evt);\n }\n });\n getContentPane().add(desc, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 60, 260, 30));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setText(\"Descripcion\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, -1, -1));\n\n Smax.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SmaxActionPerformed(evt);\n }\n });\n getContentPane().add(Smax, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 180, 105, 30));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel4.setText(\"Tipo\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 150, -1, -1));\n\n agregar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Iconos/ico_carro.png\"))); // NOI18N\n agregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n agregarActionPerformed(evt);\n }\n });\n getContentPane().add(agregar, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 330, 80, -1));\n\n Smin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SminActionPerformed(evt);\n }\n });\n getContentPane().add(Smin, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 220, 105, 30));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel6.setText(\"Precio Unitario\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, -1, -1));\n\n unitario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n unitarioActionPerformed(evt);\n }\n });\n getContentPane().add(unitario, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 100, 105, 30));\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"AGREGAR\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 350, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel8.setText(\"Stock Maximo\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 190, -1, -1));\n\n tipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Seleccione el Tipo\" }));\n tipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoActionPerformed(evt);\n }\n });\n getContentPane().add(tipo, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 150, 190, -1));\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n campoFilme = new javax.swing.JComboBox<>();\n botaoCadastrar = new javax.swing.JButton();\n botaoExcluir = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n campoSala = new javax.swing.JComboBox<>();\n jSpinner1 = new javax.swing.JSpinner();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setText(\"Cadastro de Sessao\");\n\n jLabel2.setText(\"Filme:\");\n\n jLabel5.setText(\"Sala: \");\n\n campoFilme.setModel(new javax.swing.DefaultComboBoxModel(SelectModel.selectFilmeAll().toArray()));\n campoFilme.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoFilmeActionPerformed(evt);\n }\n });\n\n botaoCadastrar.setText(\"Cadastrar\");\n botaoCadastrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoCadastrarActionPerformed(evt);\n }\n });\n\n botaoExcluir.setText(\"Cancelar\");\n botaoExcluir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoExcluirActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Horário:\");\n\n campoSala.setModel(new javax.swing.DefaultComboBoxModel(SelectModel.selectSalaAll().toArray()));\n campoSala.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoSalaActionPerformed(evt);\n }\n });\n\n jSpinner1.setModel(new SpinnerNumberModel(0, 0, 24, 1));\n\n jLabel6.setText(\"horas\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel5)\n .addComponent(jLabel7))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(campoFilme, javax.swing.GroupLayout.PREFERRED_SIZE, 484, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel6))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(botaoCadastrar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botaoExcluir))\n .addComponent(campoSala, javax.swing.GroupLayout.PREFERRED_SIZE, 484, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(184, 184, 184)\n .addComponent(jLabel1)))\n .addContainerGap(34, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(campoFilme, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(campoSala, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(46, 46, 46)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(botaoCadastrar)\n .addComponent(botaoExcluir))\n .addContainerGap(50, Short.MAX_VALUE))\n );\n\n JComponent editor = jSpinner1.getEditor();\n ( (DefaultEditor)editor).getTextField().setFocusable( false ); // Converte para DefaultEditor e acessa o TextField\n\n pack();\n setLocationRelativeTo(null);\n }", "public void construirCuartoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet4ReglaCompleja = new JComboBox(dominio);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet4ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\titemscomboDominiosSet4ReglaCompleja = new JComboBox();// creamo el Cuarto combo, vacio\n\t\titemscomboDominiosSet4ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Cuarto Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet4ReglaCompleja);\n\t\tcomboDominiosSet4ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet4ReglaCompleja);\n\t\titemscomboDominiosSet4ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "private RComboBox getComboBox() {\n\tif (ComboBox == null) {\n\t\tComboBox = new RComboBox();\n\t\tComboBox.setName(\"ComboBox\");\n\t\tComboBox.setModelConfiguration(\"{/result \\\"\\\"/version \\\"3.0\\\"/icon \\\"\\\"/tooltip \\\"\\\"}\");\n\t}\n\treturn ComboBox;\n}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n tNombre = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n tDireccion = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n tTelefono = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n tCedula = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n tFecha = new com.toedter.calendar.JDateChooser();\n jLabel7 = new javax.swing.JLabel();\n jCTipo = new javax.swing.JComboBox<>();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jCArea = new javax.swing.JComboBox<>();\n jPanel1 = new javax.swing.JPanel();\n lbTituloAzul1 = new javax.swing.JLabel();\n jBGuardar = new javax.swing.JButton();\n jBCancelar = new javax.swing.JButton();\n jFSueldo = new javax.swing.JFormattedTextField();\n jLabel10 = new javax.swing.JLabel();\n jCPuesto = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel2.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n jLabel2.setText(\"Nombre\");\n\n tNombre.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n tNombre.setForeground(new java.awt.Color(0, 51, 255));\n tNombre.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n tNombre.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));\n\n jLabel3.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n jLabel3.setText(\"Direccion\");\n\n tDireccion.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n tDireccion.setForeground(new java.awt.Color(0, 51, 255));\n tDireccion.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n tDireccion.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));\n tDireccion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tDireccionActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n jLabel4.setText(\"Telefono\");\n\n tTelefono.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n tTelefono.setForeground(new java.awt.Color(0, 51, 255));\n tTelefono.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n tTelefono.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));\n tTelefono.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tTelefonoActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n jLabel5.setText(\"Cedula\");\n\n tCedula.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n tCedula.setForeground(new java.awt.Color(0, 51, 255));\n tCedula.setHorizontalAlignment(javax.swing.JTextField.LEFT);\n tCedula.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 204, 204), 1, true));\n\n jLabel6.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n jLabel6.setText(\"Sueldo\");\n\n tFecha.setDateFormatString(\"dd-MM-yyyy\");\n tFecha.setEnabled(false);\n tFecha.addContainerListener(new java.awt.event.ContainerAdapter() {\n public void componentAdded(java.awt.event.ContainerEvent evt) {\n tFechaComponentAdded(evt);\n }\n });\n tFecha.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n tFechaPropertyChange(evt);\n }\n });\n tFecha.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n tFechaKeyReleased(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"SansSerif\", 0, 14)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel7.setText(\"Tipo \");\n\n jCTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Docente \", \"Administrativo \", \"Conserje \" }));\n\n jLabel8.setFont(new java.awt.Font(\"SansSerif\", 0, 14)); // NOI18N\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel8.setText(\"Fecha\");\n\n jLabel9.setFont(new java.awt.Font(\"SansSerif\", 0, 14)); // NOI18N\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel9.setText(\"Area \");\n\n jCArea.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Docente \", \"Administrativo \", \"Conserje \" }));\n jCArea.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCAreaActionPerformed(evt);\n }\n });\n\n jPanel1.setBackground(new java.awt.Color(51, 204, 0));\n\n lbTituloAzul1.setFont(new java.awt.Font(\"SansSerif\", 1, 18)); // NOI18N\n lbTituloAzul1.setForeground(new java.awt.Color(255, 255, 255));\n lbTituloAzul1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lbTituloAzul1.setText(\"Nuevo Empleado\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 631, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lbTituloAzul1, javax.swing.GroupLayout.PREFERRED_SIZE, 597, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(22, Short.MAX_VALUE)))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 49, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(13, Short.MAX_VALUE)\n .addComponent(lbTituloAzul1)\n .addContainerGap(14, Short.MAX_VALUE)))\n );\n\n jBGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/new.png\"))); // NOI18N\n jBGuardar.setText(\"Guardar\");\n jBGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBGuardarActionPerformed(evt);\n }\n });\n\n jBCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/delete_1.png\"))); // NOI18N\n jBCancelar.setText(\"Cancelar\");\n jBCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBCancelarActionPerformed(evt);\n }\n });\n\n jFSueldo.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat(\"#,##0.##\"))));\n jFSueldo.setName(\"JFSueldo\"); // NOI18N\n\n jLabel10.setFont(new java.awt.Font(\"SansSerif\", 0, 14)); // NOI18N\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel10.setText(\"Puesto\");\n\n jCPuesto.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Docente \", \"Administrativo \", \"Conserje \" }));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(8, 8, 8)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tDireccion)\n .addComponent(tNombre)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(393, 393, 393)\n .addComponent(jBGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jBCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel9))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(281, 281, 281)\n .addComponent(jLabel10))\n .addGroup(layout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addComponent(jCArea, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jCTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(16, 16, 16)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tTelefono, javax.swing.GroupLayout.DEFAULT_SIZE, 225, Short.MAX_VALUE)\n .addComponent(tCedula))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jCPuesto, 0, 211, Short.MAX_VALUE)\n .addComponent(tFecha, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jFSueldo))))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE)\n .addComponent(tNombre))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tTelefono, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addComponent(jLabel6)\n .addComponent(jFSueldo, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tCedula, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(tFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jCPuesto, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCArea, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jBGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jBCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(19, 19, 19))\n );\n\n pack();\n }", "public New_Product() throws SQLException {\n initComponents();\n this.setLocationRelativeTo(null);\n setIconImage (new ImageIcon(getClass().getResource(\"../img/icono_app.png\")).getImage());\n \n con.AbrirConexion(); //ABRIR LA CONEXIÓN\n \n /**\n * Llamada al método combobox provider\n */\n \n String query = \"SELECT * FROM Providers\";\n ResultSet r;\n Statement s = con.getCon().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\n r = s.executeQuery(query);\n \n DefaultComboBoxModel value = new DefaultComboBoxModel();\n while (r.next()) {\n value.addElement(r.getString(\"Name\"));\n }\n \n ComboBox_provider.setModel(value);\n \n /**\n * Llamada al método combobox category 2\n */\n \n String query2 = \"SELECT * FROM Categories\";\n ResultSet r2;\n Statement s2 = con.getCon().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\n r2 = s2.executeQuery(query2);\n \n DefaultComboBoxModel value2 = new DefaultComboBoxModel();\n while (r2.next()) {\n value2.addElement(r2.getString(\"Name\"));\n }\n \n ComboBox_category.setModel(value2);\n \n /**\n * Llamada al método combobox trademark 3\n */\n \n String query3 = \"SELECT * FROM Trademarks\";\n ResultSet r3;\n Statement s3 = con.getCon().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\n r3 = s3.executeQuery(query3);\n \n DefaultComboBoxModel value3 = new DefaultComboBoxModel();\n while (r3.next()) {\n value3.addElement(r3.getString(\"Name\"));\n }\n \n ComboBox_trademark.setModel(value3);\n \n /**\n * Llamada al método combobox sizes 4\n */\n \n String query4 = \"SELECT * FROM Sizes\";\n ResultSet r4;\n Statement s4 = con.getCon().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\n r4 = s4.executeQuery(query4);\n \n DefaultComboBoxModel value4 = new DefaultComboBoxModel();\n while (r4.next()) {\n value4.addElement(r4.getString(\"Name\"));\n }\n \n ComboBox_size.setModel(value4);\n \n /**\n * Llamada al método combobox colors 5\n */\n \n String query5 = \"SELECT * FROM Colors\";\n ResultSet r5;\n Statement s5 = con.getCon().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\n r5 = s5.executeQuery(query5);\n \n DefaultComboBoxModel value5 = new DefaultComboBoxModel();\n while (r5.next()) {\n value5.addElement(r5.getString(\"Name\"));\n }\n \n ComboBox_color.setModel(value5);\n \n /**\n * Llamada al método combobox material 6\n */\n \n String query6 = \"SELECT * FROM Materials\";\n ResultSet r6;\n Statement s6 = con.getCon().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\n r6 = s6.executeQuery(query6);\n \n DefaultComboBoxModel value6 = new DefaultComboBoxModel();\n while (r6.next()) {\n value6.addElement(r6.getString(\"Name\"));\n }\n \n ComboBox_material.setModel(value6);\n \n }", "public void iniciarUI()\n\t{\n\t\tDefaultTableModel model = new DefaultTableModel(columnas, 1);\n\t\tpasabordos = new JTable(model);\n\n\t\tvuelos = new JComboBox();\n\t\tllenarVuelos();\n\t\t\n\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\tif(v!=null)\n\t\t{\n\t\t\tllenarPasabordos(v.getId());\n\t\t}\n\n\t}", "public void LlenarC(){\n for(int i=0;i< new GestionCategorias().getListCategoria().size();i++){\n catBox.addItem(new GestionCategorias().getListCategoria().get(i).getCat_nombre());\n \n }\n }" ]
[ "0.8096811", "0.78346705", "0.7770322", "0.76851016", "0.7659236", "0.7619448", "0.7619387", "0.76069957", "0.7505789", "0.74479985", "0.7431099", "0.7360501", "0.72936994", "0.7281696", "0.72750896", "0.72627306", "0.7212625", "0.7209515", "0.72083384", "0.7189247", "0.7183527", "0.71167064", "0.7109506", "0.710603", "0.70838994", "0.70679474", "0.70666087", "0.70491374", "0.70465153", "0.7011907", "0.7011764", "0.7004166", "0.6989694", "0.69806564", "0.697773", "0.69713604", "0.69618654", "0.69594806", "0.6929578", "0.6922947", "0.69207376", "0.6909736", "0.69059044", "0.6903646", "0.6901078", "0.6895168", "0.68945163", "0.6892158", "0.68915945", "0.6888551", "0.6878399", "0.68659306", "0.68598616", "0.6854071", "0.6852332", "0.6843887", "0.6840918", "0.68385166", "0.6836123", "0.6833534", "0.68324614", "0.6831321", "0.68299335", "0.6828679", "0.6818213", "0.68181443", "0.6817843", "0.6815633", "0.6815165", "0.68094957", "0.68046623", "0.67966187", "0.6794465", "0.6781023", "0.67733663", "0.6771687", "0.67715544", "0.67683864", "0.676418", "0.6760982", "0.675906", "0.6757947", "0.6750214", "0.6742132", "0.6739439", "0.67360467", "0.67346853", "0.6734266", "0.67333883", "0.6724328", "0.66923475", "0.66899955", "0.66886234", "0.66834086", "0.66818774", "0.66751033", "0.66698116", "0.6667881", "0.6666043", "0.66642356", "0.6660397" ]
0.0
-1
encontra o maior valor da sequencia de artigos
private static Integer getSeq()throws SQLException{ String selectSql = "SELECT max(idArt) from Artigo"; Statement statement = dbConnection.createStatement(); ResultSet rs = statement.executeQuery(selectSql); int seqIdPe = -1; if(rs.next()){ seqIdPe = rs.getInt(1); } return seqIdPe + 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int proximo_sequencia(int atual){\n if (atual + Utils.tamanho_util_pacote > Utils.numero_max_seq) return (atual + Utils.tamanho_util_pacote) - Utils.numero_max_seq;\n else return atual + Utils.tamanho_util_pacote;\n\n }", "@Override\n\tpublic int sequence() {\n\t\treturn 0;\n\t}", "public void setSeq(Integer seq) {\n this.seq = seq;\n }", "public void setSeq(Integer seq) {\n this.seq = seq;\n }", "public void setSeq(Integer seq) {\n this.seq = seq;\n }", "public Integer gerarSequencialContaBoleto() throws ErroRepositorioException ;", "int getSeq();", "int getSeq();", "int getSeq();", "private long getSeqNum() throws Exception {\n\t\tSystem.out.println(\"seq: \" + seq);\n\t\tif (seq == 256) {\n\t\t\tseq = 0;\n\t\t}\n\t\treturn seq++;\n\t}", "void setSeq(long seq) {\n this.seq = seq;\n }", "protected void incrementSeqNum() {\n intToNetworkByteOrder(mySeqNum++, sequenceNum, 0, 4);\n }", "private void nextMovement()\n\t{\n\t\tif(SEQUENCE.length <= 1)\n\t\t\tSEQUENCE = null;\n\t\telse\n\t\t{\n\t\t\tint[] temp = new int[SEQUENCE.length - 1];\n\t\t\tfor(int i = 1; i < SEQUENCE.length; i++)\n\t\t\t{\n\t\t\t\ttemp[i-1] = SEQUENCE[i];\n\t\t\t}\n\t\t\tSEQUENCE = temp;\n\t\t}\n\t}", "public void doneOrder(){\n setId(++count);\n }", "public int getNextUnSafeSequence(){ return value++;}", "public void incrementarArreglo() {\n int tamanio_actual = top + 1; // variable tamaño actual le asignamos el valor de la cima + 1\r\n int[] new_array = new int[tamanio_actual * 2]; // al nuevo arreglo le asignamos el tamaño actual multiplicado por 2\r\n for(int i=0; i<tamanio_actual; i++){ \r\n new_array[i] = array[i]; // ciclo para ir asignando los valores existentes al nuevo arreglo\r\n }\r\n array = new_array; //referenciamos al nuevo arreglo\r\n capacidad = new_array.length; // variable capacidad le damos el valor de la longitud del nuevo arreglo\r\n }", "void resetSequential() {\n seq = nextLong(PRAND, maxSeq);\n inc = minInc + nextLong(PRAND, maxInc - minInc);\n }", "public void setSequence(Integer sequence) {\n this.sequence = sequence;\n }", "static synchronized long getNextSeqNumber() {\n return seqNumber++;\n }", "public Integer getSeq() {\n return seq;\n }", "public Integer getSeq() {\n return seq;\n }", "public Integer getSeq() {\n return seq;\n }", "public int getSequence() {\n return sequence;\n }", "public int getSeq() {\n return -1;\n }", "public int getSeqNo();", "public int getSeqNo();", "long getSeq() {\n return seq;\n }", "public Integer getSequence()\n {\n return sequence;\n }", "public void aumentaInSitu(){\n if(quantidade_in_situ<quantidade_disponivel)\n quantidade_in_situ++;\n else\n return;\n }", "public int size() { return seq.size(); }", "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "@IcalProperty(pindex = PropertyInfoIndex.SEQUENCE,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setSequence(final int val) {\n sequence = val;\n }", "public void PrepareNextJogada() {\n if (vez == listaJogadores.size() - 1) {\n vez = 0;\n\n } else {\n vez++;\n }\n }", "public void setSequenceNo(long n) {\n\tsequenceNo = n;\n }", "private static void atualizaContadorCodigos(ArrayList<Produto> produto) {\n int contadorAtual = produto.size() + 1;\n Produto.setContador(contadorAtual);\n }", "public int nextSerialNumber(){\n serialNumber++;\n return serialNumber;\n }", "public void aumentarIntentos() {\r\n this.intentos += 1;\r\n }", "void requestSequenceNumber() {\r\n\t\t// 부모가 가지고있는 메시지의 순서번호(시작 ~ 끝)를 요청 \r\n\t}", "private String sequenceNumberGenerator() {\n\t\tint sequenceId = 0;\n\t\tRid entity = null;\n\t\ttry {\n\t\t\tentity = ridRepository.findLastRid();\n\t\t} catch (DataAccessException | DataAccessLayerException e) {\n\t\t\tthrow new RidException(RidGeneratorExceptionConstant.RID_FETCH_EXCEPTION.getErrorCode(),\n\t\t\t\t\tRidGeneratorExceptionConstant.RID_FETCH_EXCEPTION.errorMessage, e);\n\t\t}\n\t\ttry {\n\t\t\tif (entity == null) {\n\t\t\t\tentity = new Rid();\n\t\t\t\tsequenceId = sequenceInitialValue;\n\t\t\t\tentity.setCurrentSequenceNo(sequenceInitialValue);\n\t\t\t\tridRepository.save(entity);\n\t\t\t} else {\n\t\t\t\tif (entity.getCurrentSequenceNo() == sequenceEndvalue) {\n\t\t\t\t\tsequenceId = sequenceInitialValue;\n\t\t\t\t\tridRepository.updateRid(sequenceInitialValue, entity.getCurrentSequenceNo());\n\t\t\t\t} else {\n\t\t\t\t\tsequenceId = entity.getCurrentSequenceNo() + 1;\n\t\t\t\t\tridRepository.updateRid(sequenceId, entity.getCurrentSequenceNo());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (DataAccessException | DataAccessLayerException e) {\n\t\t\tthrow new RidException(RidGeneratorExceptionConstant.RID_UPDATE_EXCEPTION.getErrorCode(),\n\t\t\t\t\tRidGeneratorExceptionConstant.RID_UPDATE_EXCEPTION.errorMessage, e);\n\t\t}\n\t\treturn String.format(sequenceFormat, sequenceId);\n\t}", "public double[] sequence()\n\t{\n\t\treturn _adblSequence;\n\t}", "public void somaVezes(){\n qtVezes++;\n }", "long getOriginseqnum();", "public Builder setSeq(int value) {\n\n seq_ = value;\n onChanged();\n return this;\n }", "public Builder setSeq(int value) {\n\n seq_ = value;\n onChanged();\n return this;\n }", "public int getCount(){\r\n return sequence.getValue();\r\n }", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "public void venceuRodada () {\n this.pontuacaoPartida++;\n }", "@Override\n public void movimiento_especial(){\n\n movesp=ataque/2;\n defensa+=5;\n PP= PP-4;\n }", "Sequence createSequence();", "public Integer getSequence() {\n return sequence;\n }", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "Long getNextSequence(String seqName);", "public void setSeqNo (int SeqNo);", "public void setSeqNo (int SeqNo);", "void establecerPuntoAM(int pos){\n this.emisoraAMActual = pos;\n }", "@Override\n\tpublic String getNextSequenceValue(String sequence) {\n\t\treturn \"\";\n\t}", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public int rekisteroi() {\r\n alId = seuraavaNro;\r\n seuraavaNro++;\r\n\r\n return seuraavaNro;\r\n }", "public void setArtId(DBSequence value) {\n setAttributeInternal(ARTID, value);\n }", "public int[] Version1(int[] seq){\n \n return seq;\n \n }", "int getSequenceNumber();", "public void cumplirAños(){\n this.setEdad(((byte)(this.getEdad()+1)));\n }", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "public void iniciarNovaPartida(Integer posicao);", "public void inicia(){\n\t \tanimacion2.start();\n\t \tSystem.out.print(num);\n\t num++;\t\n\t }", "public void actualizarValor() {\n\t\tif (valor!=null && valor < getCantElementos()-1){\n\t\t\tvalor++;\n\t\t}\n\t\telse {\n\t\t\tvalor = 0;\n\t\t}\t\t\n\t}", "public void generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las lista de numeros\n\n if(numeroSeleccionado == -1){\n llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,gameMemoriaUno.getNumeros(),gameMemoriaUno.getAciertosTotales(),gameMemoriaUno.getFallosTotales(),gameMemoriaUno.getNumEcxluidosList(),gameMemoriaUno.getNumeroPregunta());\n\n }else {\n\n\n gameMemoriaUno.addNumerosSet(numeroSeleccionado);\n for (int i = 1; i < 6; i++) {\n //obtiene numeros del costalito menos el numero seleccionado\n number = gameMemoriaUno.getNumeroArreglo();\n //agrego numeros\n gameMemoriaUno.addNumerosSet(number);\n }\n\n Iterator<Integer> iter = gameMemoriaUno.getNumerosSet().iterator();\n\n int contadorNumeros=0;\n while (iter.hasNext()) {\n int valor=iter.next().intValue();\n lista.add(valor);\n if(gameMemoriaUno.getDificultad()==contadorNumeros){\n gameMemoriaUno.setNumerosElejidos(new int[valor]);\n }\n\n contadorNumeros+=1;\n }\n Collections.shuffle(lista, new Random());\n Collections.shuffle(lista, new Random());\n\n\n\n }\n\n\n }", "protected int getSeqIndex()\n {\n return seqIndex;\n }", "public void eduque() {\n if (!autoriseOperation()) {\n return;\n }\n incrXp(2);\n incrFatigue(1);\n incrHumeur(1);\n\n setChanged();\n notifyObservers();\n }", "private Integer getSequence() {\r\n\t\t\tInteger seq;\r\n\t\t\tString sql = \"select MAX(vendorid)from vendorTable\";\r\n\t\t\tseq = template.queryForObject(sql, new Object[] {}, Integer.class);\r\n\t\t\treturn seq;\r\n\t\t}", "private String insertarCartaMentalSpiral() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 1,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 1,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public String getSequence()\r\n\t{\r\n\t\treturn sequence;\r\n\t}", "static int [] GerarAleatorio()\n {\n Random gerar = new Random();\n int [] Aleatorio = new int [pergu]; // Cria um Vetor com o tamanho de quantidade de perguntas\n \n \n int pos1, pos2, auxilio; \n \n for (int i = 0; i < Aleatorio.length; i++) \n {\n Aleatorio[i] = i ; // preenche o vetor\n }\n \n for (int i = 0; i < 1000; i++) //Quantidade de vezes que as perguntas serão embaralhadas \n {\n pos1 = gerar.nextInt(Aleatorio.length);\n pos2 = gerar.nextInt(Aleatorio.length);\n //troca \n auxilio = Aleatorio[pos1]; //guarda o valor da posição 1\n \n Aleatorio [pos1] = Aleatorio[pos2]; //troca o valor de 1 para 2\n Aleatorio[pos2] = auxilio; //troca o valor de 2 para o valor que estava na 1\n }\n \n \n return Aleatorio; \n }", "public void esperarRecogidaIngrediente(){\n enter();\n if ( ingredienteact != -1 )\n estanquero.await();\n leave();\n }", "java.lang.String getSeq();", "public static int getNumeroId(){\r\n idConsecutivo++;\r\n return idConsecutivo;\r\n }", "protected void resetSequence() {\n doQuery(\"ALTER SEQUENCE feedentryqueue_id_seq RESTART\");\n }", "public static String getNextSeq(String seq) {\n long intNextSeq = 0;\n// if (intSeq < 204) {\n// intNextSeq = Long.parseLong(seq)+1;\n// }\n// if (intSeq == 204) {\n// seq = seq.substring(0, seq.length() - 3);\n// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n// Date date = null;\n// try {\n// date = sdf.parse(seq);\n// } catch (ParseException e) {\n// e.printStackTrace();\n// }\n// Date date2 = DateUtils.addDays(date, 1);\n// String nextDate = sdf.format(date2) + \"000\";\n// intNextSeq = Long.parseLong(nextDate);\n// intNextSeq = intNextSeq + 1;\n// }\n return intNextSeq+\"\";\n }", "public void Done(int seq) {\n // Your code here\n }", "public void getInteger(int seqid);", "long getSequenceNumber();", "long getNextSequenceNumber();", "public void afegirPosicio() {\n\t\tfor(int i=0; i<cal.length; ++i){\n\t\t\tcal[i] = new Dia(false);\n\t\t\tfor(int j=0; j<3; ++j) cal[i].getTorns()[j].setPosicio(i);\n\t\t}\n\t}", "public String generateTransferencia() {\n\n MSequence seq = new MSequence(getCtx(), 5000048, get_TrxName());\n\n return Integer.toString(seq.getCurrentNext());\n }", "public int getSequenceNumber();", "public static String retornaSequencialFormatado(int sequencial) {\r\n\r\n\t\t// sequencial impressão\r\n\t\tString retorno = Util.adicionarZerosEsquedaNumero(6, \"\" + sequencial);\r\n\r\n\t\tretorno = retorno.substring(0, 3) + \".\" + retorno.substring(3, 6);\r\n\r\n\t\treturn retorno;\r\n\t}", "public String getSequence() {\r\n return sequence;\r\n }" ]
[ "0.69574463", "0.62866247", "0.618702", "0.618702", "0.618702", "0.6156776", "0.60953766", "0.60953766", "0.60953766", "0.6082212", "0.6068247", "0.60091466", "0.5876158", "0.58404046", "0.5805764", "0.5803167", "0.5800024", "0.57641876", "0.5735873", "0.57263803", "0.57263803", "0.57263803", "0.57182354", "0.57003886", "0.56489503", "0.56489503", "0.55891305", "0.558122", "0.5575125", "0.55673885", "0.55625147", "0.5558882", "0.5550472", "0.554171", "0.5537482", "0.55301344", "0.55109775", "0.55021423", "0.55015755", "0.5500697", "0.54965216", "0.5481102", "0.5480305", "0.5480305", "0.54728276", "0.54723763", "0.54723763", "0.5446661", "0.5446661", "0.5446661", "0.5446661", "0.5446661", "0.5446661", "0.5446661", "0.54457694", "0.544497", "0.5438031", "0.5432919", "0.54322124", "0.5416717", "0.541266", "0.541266", "0.5405048", "0.5398629", "0.5396284", "0.5396284", "0.53872025", "0.53815573", "0.53640455", "0.5358129", "0.53537035", "0.5347839", "0.5343998", "0.5334482", "0.5334482", "0.5334482", "0.53334314", "0.53319055", "0.5328171", "0.5322675", "0.5321957", "0.5318447", "0.53153485", "0.53033996", "0.5298063", "0.52889466", "0.5288361", "0.5287946", "0.52877766", "0.5284265", "0.5282535", "0.52812403", "0.5276707", "0.52623", "0.52598906", "0.52594084", "0.5256804", "0.52567506", "0.5244654", "0.5241802" ]
0.5328707
78
Perform this action for the given HistoryEntry and files.
protected abstract void perform(VCSHistoryProvider.HistoryEntry entry, Set<VCSFileProxy> files);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Modification handleEntry(List historyEntry) {\n // Ignore unusual labels of directories which cause parsing errors that \n // look like this:\n //\n // ***** built *****\n // Version 4\n // Label: \"autobuild_test\"\n // User: Etucker Date: 6/26/01 Time: 11:53a\n // Labeled\n if ((historyEntry.size() > 4) && \n (((String) historyEntry.get(4)).startsWith(\"Labeled\"))) {\n return null;\n }\n \n \t\tModification mod = new Modification();\n String nameAndDateLine = (String) historyEntry.get(2);\n \t\tmod.userName = parseUser(nameAndDateLine);\n \t\tmod.modifiedTime = parseDate(nameAndDateLine);\n \n String folderLine = (String) historyEntry.get(0);\n String fileLine = (String) historyEntry.get(3);\n \t\tif (fileLine.startsWith(\"Checked in\")) {\n \t\t\tmod.type = \"checkin\";\n \t\t\tmod.comment = parseComment(historyEntry);\n \t\t\tmod.fileName = folderLine.substring(7, folderLine.indexOf(\" *\"));\n \t\t\tmod.folderName = fileLine.substring(12);\n \t\t} else if (fileLine.endsWith(\"Created\")) {\n mod.type = \"create\";\n } else {\n \t\t\tmod.folderName = folderLine.substring(7, folderLine.indexOf(\" *\"));\n int lastSpace = fileLine.lastIndexOf(\" \");\n if ( lastSpace != -1 ) {\n mod.fileName = fileLine.substring(0, lastSpace);\n } else {\n mod.fileName = fileLine;\n }\n \n if (fileLine.endsWith(\"added\")) {\n \t\t\t\tmod.type = \"add\";\n \t\t\t} else if (fileLine.endsWith(\"deleted\")) {\n \t\t\t\tmod.type = \"delete\";\n \t\t\t} else if (fileLine.endsWith(\"recovered\")) {\n \t\t\t\tmod.type = \"recover\";\n \t\t\t} else if (fileLine.endsWith(\"shared\")) {\n mod.type = \"branch\";\n }\n \t\t}\n \n \t\tif (_propertyOnDelete != null && \"delete\".equals(mod.type)) {\n _properties.put(_propertyOnDelete, \"true\");\n \t\t}\n \n if (_property != null) {\n \t\t_properties.put(_property, \"true\");\n }\n \n return mod;\n \t}", "public void storeFileHistory() {\n\t\ttheFileHistory.store(theConfiguration);\n\t}", "void doCF()\n {\n try\n {\n int module = propertyGet(LIST_MODULE);\n\t\t\tint currentLine = propertyGet(LIST_LINE);\n\n if (hasMoreTokens())\n {\n String arg = nextToken();\n module = parseFileArg(module, arg);\n\t\t\t\tcurrentLine = 1;\n setListingPosition(module, currentLine);\n }\n\n SourceFile sourceFile = m_fileInfo.getFile(module);\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(sourceFile.getName());\n\t\t\tsb.append('#');\n\t\t\tsb.append(sourceFile.getId());\n\t\t\tsb.append(':');\n\t\t\tsb.append(currentLine);\n\t\t\tout( sb.toString() );\n }\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noFilesFound\")); //$NON-NLS-1$\n\t\t}\n\t\tcatch(ParseException pe)\n\t\t{\n\t\t\terr(pe.getMessage());\n\t\t}\n\t\tcatch(AmbiguousException ae)\n\t\t{\n\t\t\terr(ae.getMessage());\n\t\t}\n\t\tcatch(NoMatchException nme)\n\t\t{\n\t\t\terr(nme.getMessage());\n\t\t}\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t\t\tHashs_from_Files();\n\n\t\t\t}", "private void callEntry(String _sEntry, ParameterHelper _aParam)\n{\n log.println(\" File: \" + _sEntry);\n // TODO: check if 'sEntry' is a guilty document.\n File aFile = new File(_aParam.getInputPath());\n String sPath = _aParam.getInputPath();\n // problem here, isFile() checks also if the file exists, but a not existing file is not really a directory\n // therefore we check if the given file a path (isDirectory()) if not it must be a file\n if (aFile.isDirectory())\n {\n }\n else\n {\n // special case, if a file is given in inputpath\n sPath = FileHelper.getPath(_aParam.getInputPath());\n }\n String sNewSubDir = FileHelper.removeFirstDirectorysAndBasenameFrom(_sEntry, sPath);\n\n// String sNewReferencePath = _aParam.getReferencePath();\n String sNewOutputPath = _aParam.getOutputPath();\n // String sNewDiffPath = m_sDiffPath;\n\n // if there exist a subdirectory, add it to all result path\n if (sNewSubDir.length() > 0)\n {\n// if (sNewReferencePath != null)\n// {\n// sNewReferencePath = FileHelper.appendPath(sNewReferencePath, sNewSubDir);\n// }\n\n sNewOutputPath = FileHelper.appendPath(sNewOutputPath, sNewSubDir);\n // if (sNewDiffPath != null)\n // {\n // sNewDiffPath = FileHelper.appendPath(sNewDiffPath, sNewSubDir);\n // }\n }\n // log.println(\"sEntry: \" + _sEntry + \" \" /* + sNewReferencePath + \" \" */ + sNewOutputPath);\n log.println(\"Outputpath: \" + sNewOutputPath);\n\n\n // call interface with parameters\n try\n {\n checkOneFile(_sEntry, sNewOutputPath, _aParam);\n }\n catch (OfficeException e)\n {\n // TODO: unhandled yet.\n GlobalLogWriter.println(\"Warning: caught OfficeException \" + e.getMessage());\n assure(\"Exception caught: \" + e.getMessage(), false);\n }\n\n}", "private static void addToHistory() {\n\t\tFileInputStream fis = null;\n\t\tFileOutputStream fos = null;\n\t\tFileChannel resultChannel = null;\n\t\tFileChannel historyChannel = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(\"result.txt\"));\n\t\t\tfos = new FileOutputStream(new File(\"history.txt\"), true);\n\t\t\t\n\t\t\tfos.write(\"\\n\\n\".getBytes(\"utf-8\"));\n\t\t\tfos.flush();\n\t\t\t\n\t\t\tresultChannel = fis.getChannel();\n\t\t\thistoryChannel = fos.getChannel();\n\n\t\t\tresultChannel.transferTo(0, resultChannel.size(), historyChannel);\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 (fis != null) {\n\t\t\t\t\tfis.close();\n\t\t\t\t}\n\t\t\t\tif (fos != null) {\n\t\t\t\t\tfos.close();\n\t\t\t\t}\n\t\t\t\tif(resultChannel != null) {\n\t\t\t\t\tresultChannel.close();\n\t\t\t\t}\n\t\t\t\tif(historyChannel != null) {\n\t\t\t\t\thistoryChannel.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run() {\n List<File> mFolderList = getContents(\"'\" + f.getId() + \"' in parents and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET);\n // check if there is a folder\n if (!mFolderList.isEmpty()) {\n prune(targetFolder, mFolderList, false);\n processFolders(mFolderList, targetFolder);\n }\n \n // list of contents in f that are files\n List<File> mFileList = getContents(\"'\" + f.getId() + \"' in parents and \" + NOT_TRASHED + \" and \" + NOT_FOLDER + \" and \" + SUPPORTED_FILES);\n \n prune(targetFolder, mFileList, true);\n processFiles(mFileList, targetFolder);\n }", "void handleChanged(Collection<AGStoredFile> existingFiles, Collection<AGStoredFile> changedFiles);", "public void performOperation() {\n processFile(this.scopedFile);\n }", "private static void updateFiles(Gitlet currCommit) {\n HashMap<String, String> currHeadFiles = currCommit.tree.getHeadCommit()\n .getFileLoc();\n currCommit.tree.setMap(currHeadFiles);\n for (String fileName : currHeadFiles.keySet()) {\n FileManip temp = new FileManip(currHeadFiles.get(fileName));\n temp.copyFile(fileName);\n }\n\n }", "void perform(Transaction tx,\n String userPrincipal,\n FedoraId fedoraId,\n String filename,\n String contentType,\n Collection<URI> digests,\n InputStream contentBody,\n long size,\n ExternalContent externalContent);", "private void entryFileButtonActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser chooser = new JFileChooser();\n chooser.setDialogTitle(\"Select Entries File\");\n File workingDirectory = new File(System.getProperty(\"user.dir\"));\n chooser.setCurrentDirectory(workingDirectory);\n if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {\n entryFile = chooser.getSelectedFile();\n entryFileLabel.setText(getFileName(entryFile));\n pcs.firePropertyChange(\"ENTRY\", null, entryFile);\n }\n }", "public void run() {\n try {\n handleZipFiles(file);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "private boolean _process(Hashtable argTable) throws SessionException,\n IOException \n {\n this._argTable = argTable;\n\n \n boolean success = true;\n \n //----------------------------\n \n \n //if server communication expected, ensure that necessary info \n //is set. Also, load the handler framework\n final boolean isLocalOperation = _isLocalOperation(this._actionId);\n final boolean filetypeRequired = _isFileTypeOperation(this._actionId);\n final boolean checkHandlers = filetypeRequired;\n if (! isLocalOperation)\n { \n this._checkConfig(filetypeRequired);\n \n this._login();\n \n if (checkHandlers)\n this._loadHandlers();\n }\n \n //----------------------------\n \n if (this._actionId.equals(Constants.ACCEPT))\n {\n success = this._accept();\n }\n else if (this._actionId.equals(Constants.ADDFILE))\n {\n success = this._add();\n }\n else if (this._actionId.equals(Constants.CHECK))\n {\n success = this._check();\n }\n else if (this._actionId.equals(Constants.GETFILES))\n {\n success = this._get();\n }\n else if (this._actionId.equals(Constants.AUTOGETFILES))\n {\n success = this._autoGet();\n } \n else if (this._actionId.equals(Constants.AUTOSHOWFILES))\n {\n success = this._autoShow();\n }\n else if (this._actionId.equals(Constants.COMPUTECHECKSUM))\n {\n success = this._crc();\n }\n else if (this._actionId.equals(Constants.CHECKFILES))\n {\n success = this._checkFiles();\n }\n else if (this._actionId.equals(Constants.DELETEFILE))\n {\n success = this._delete();\n }\n else if (this._actionId.equals(Constants.MAKECLEAN))\n {\n success = this._delete();\n }\n else if (this._actionId.equals(Constants.DISPLAY))\n {\n success = this._display();\n }\n else if (this._actionId.equals(Constants.SHOWFILES))\n {\n success = this._list();\n }\n else if (this._actionId.equals(Constants.SETREFERENCE))\n {\n success = this._reference();\n }\n else if (this._actionId.equals(Constants.RENAMEFILE))\n {\n success = this._rename();\n }\n else if (this._actionId.equals(Constants.REPLACEFILE))\n {\n success = this._replace();\n }\n else if (this._actionId.equals(Constants.COMMENTFILE))\n {\n success = this._comment();\n }\n else if (this._actionId.equals(Constants.CREDLIST))\n {\n success = this._credList();\n }\n else if (this._actionId.equals(Constants.CREDLOGIN))\n {\n success = this._credInit();\n }\n else if (this._actionId.equals(Constants.CREDLOGOUT))\n {\n success = this._credDestroy();\n }\n else if (this._actionId.equals(Constants.SHOWTYPES))\n {\n success = this._showTypes();\n }\n else if (this._actionId.equals(Constants.REGISTERFILE))\n {\n success = this._register();\n } \n else if (this._actionId.equals(Constants.UNREGISTERFILE))\n {\n success = this._unregister();\n }\n else if (this._actionId.equals(Constants.LOCKFILETYPE))\n {\n success = this._lockType();\n }\n else if (this._actionId.equals(Constants.UNLOCKFILETYPE))\n {\n success = this._unlockType();\n }\n else if (this._actionId.equals(Constants.CHANGEPASSWORD))\n {\n success = this._changePassword();\n }\n else\n {\n throw new SessionException(\"Invalid operation.\", -1);\n }\n \n \n this._unloadHandlers();\n this._logout();\n \n return success;\n }", "@Override\n public boolean execute() {\n String url = \"\";\n String name, content;\n try {\n this.checkNumArgs();\n url = arguments.get(0);\n this.checkRedirectionParam();\n content = fetcher.getURLContent(url);\n name = getFileName(url);\n if (fs.getCurrWorkDir().findChild(name)!=null) {\n StandardError.displayError(\"cannot create \" + name+\" because \"\n + \" there already \"\n + \"exist file with this name\");\n return false;\n }\n // create file with the string from the input method and \n // file name then attach it to cwd\n File<String> file = new File<String>(name, content, \n this.fs.getCurrWorkDir());\n // check if the file is actually added\n if (fs.getCurrWorkDir().findChild(name)==null) {\n StandardError.displayError(\"cannot create \" + name+\" because \"\n + \"of the illegal\"\n + \"characters\");\n return false;\n }\n \n } catch (MalformedURLException e) {\n StandardError.displayError(url + \" is not a valid url\");\n return false;\n } catch (IOException e) {\n StandardError.displayError(\"an error occured when reading this url\");\n return false;\n } catch (InvalidArgumentSizeException e) {\n StandardError.displayError(\"get needs only the url as argument\");\n return false;\n } catch (CanNotRedirectException e) {\n StandardError.displayError(\"redirection params are wrong:\" \n + e.getMessage());\n return false;\n }\n return true;\n }", "public static void add(Gitlet currCommit, String[] args) {\n if (args.length != 2) {\n System.out.println(\"Specify which file to add.\");\n return;\n }\n FileManip fileToAdd = new FileManip(args[1]);\n FileManip prevFile = new FileManip(\".gitlet/\"\n + currCommit.tree.getCommit() + \"/\" + args[1]);\n if (!fileToAdd.exists()) {\n System.out.println(\"File does not exist.\");\n } else if (!prevFile.exists()) {\n currCommit.status.addToStatus(args[1]);\n addSerializeFile(currCommit);\n } else if (fileToAdd.isSame(prevFile.getPath())) {\n System.out.println(\"File has not been modified since the last commit.\");\n } else {\n currCommit.status.addToStatus(args[1]);\n addSerializeFile(currCommit);\n }\n }", "public void run() {\n\t\t\twhile (parent.getFileStack().size() > 0) {\n\t\t\t\tFile file = parent.getFileStack().pop();\n\t\t\t\tthis.processFile(file);\n\t\t\t}\n\t\t}", "private static void checkout(Gitlet currCommit, String[] args) {\n if (args.length < 2 && args.length > 3) {\n System.out\n .println(\"Please input one of the following combinations: \"\n + \"\\n File Name \\n Commit Id and File Name \\n Branch Name\");\n return;\n }\n if (!isSure()) {\n return;\n }\n if (args.length == 2) {\n if (currCommit.tree.getBranches().contains(args[1])) {\n if (currCommit.tree.getCurrentBranch().equals(args[1])) {\n System.out\n .println(\"No need to checkout the current branch.\");\n return;\n }\n Commit headCommit = currCommit.tree.getHeadCommit(args[1]);\n HashMap<String, String> locations = headCommit.getFileLoc();\n HashMap<String, String> currentFiles = currCommit.tree\n .getHeadCommit().getFileLoc();\n for (String x : currentFiles.keySet()) {\n if (locations.containsKey(x)) {\n FileManip temp = new FileManip(locations.get(x));\n temp.copyFile(x);\n }\n }\n currCommit.tree.setCurrentBranch(args[1]);\n currCommit.status.replaceMainBranch(args[1]);\n addSerializeFile(currCommit);\n return;\n }\n Commit headCommit = currCommit.tree.getHeadCommit();\n if (currCommit.tree.containsFile(args[1])) {\n FileManip dest = new FileManip(headCommit.getLocation(args[1]));\n dest.copyFile(args[1]);\n return;\n }\n String error = \"File does not exist in the most recent commit,\";\n error += \" or no such branch exists.\";\n System.out.println(error);\n return;\n } else {\n if (!currCommit.tree.hasId(args[1])) {\n System.out.println(\"No commit with that id exists.\");\n return;\n\n }\n Commit commit = currCommit.tree.getCommitFromId(args[1]);\n\n if (!commit.containsFile(args[2])) {\n System.out.println(\"No such file exists in this commit.\");\n\n } else {\n System.out.println(commit.getLocation(args[2]));\n FileManip dest = new FileManip(commit.getLocation(args[2]));\n dest.copyFile(args[2]);\n }\n }\n }", "@Override\n public void executeEvent() {\n editResourceService.saveFile(createFileCommand.getFileId(), datas, new AsyncCallback<Void>() {\n\n @Override\n public void onFailure(Throwable caught) {\n GWT.log(caught.getMessage());\n }\n\n @Override\n public void onSuccess(Void result) {\n fileTreeNodeFactory.getFileTreeNode(tree, createFileCommand.getParentId(), createFileCommand.getFile());\n if (treeGrid.anySelected())\n treeGrid.deselectAllRecords();\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n treeGrid.deselectAllRecords();\n treeGrid.selectRecord(fileTreeNodeFactory.findTreeNode(tree, createFileCommand.getFileId()));\n }\n });\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, createFileCommand.getParentId()), createFileCommand.getFile(), createFileCommand.getFileId(),\n false);\n }", "public final void run() {\t\n\t\tlong timeStamp = file.lastModified();\n\t if( this.timeStamp != timeStamp ) {\n\t \tthis.timeStamp = timeStamp;\n\t \tonChange(file);\n\t }\n\t}", "public void handleAllArchivedRequest(boolean z) {\n File[] listFiles = AVPersistenceUtils.getCommandCacheDir().listFiles();\n if (listFiles != null && listFiles.length > 0) {\n Arrays.sort(listFiles, fileModifiedDateComparator);\n for (File file : listFiles) {\n if (file.isFile()) {\n handleArchivedRequest(file, z);\n } else if (AVOSCloud.showInternalDebugLog()) {\n StringBuilder sb = new StringBuilder();\n sb.append(file.getAbsolutePath());\n sb.append(\" is a dir\");\n avlog.e(sb.toString());\n }\n }\n }\n }", "protected abstract void perform(final Context context, final String filePath, final String extension);", "public void findMatchingFiles()\n {\n\t\t\n\t\t//Get Server name from the log directory path\n\t\t\t\t\t\t\n\t\tString server = path.substring(0, path.length()-2);\n\t\tserver = server.substring(0,server.lastIndexOf(\"/\"));\n\t\tserver = server.substring(server.lastIndexOf(\"/\") + 1);\n\t\tSystem.out.println(\"Server Name is : \" + server);\n\t\t\t\t\t\t\n Map <String, String> logPatternMap = new HashMap<>(); // Map of log stash config and RegEx\n List<String> fileList = new ArrayList<>(); // List of All files in Log Dir\n List<String> logStashCommandList = new ArrayList<>(); // List of commands to be executed for log stashing files\n String placeholder = \"FILE_PATH\";\n logPatternMap = fetchPropertyFromFile();\n fileList = getAllLogFileNames();\n\n for (String file : fileList) {\n\n for (Map.Entry<String, String> entry : logPatternMap.entrySet()) {\n String fileName = entry.getKey();\n String pattern = entry.getValue();\n\n if (Pattern.matches(pattern,file))\n {\n System.out.println( \"Found a matching file : \" + pattern + \" : \" + file );\n File source = new File(\"/slog/templates/\" + fileName);\n File dest = new File(\"/slog/configs/\" + fileName);\n File logFile = new File(path + file);\n try {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n //copy files from template directory to configs directory\n\t\t\t\t\t\tFiles.copy(source.toPath(), dest.toPath()); \n System.out.println(\"Destination path is : \" + dest.getPath());\n\n //Replace contents of the config file to match log file paths\n\n BufferedReader reader = new BufferedReader(new FileReader(dest));\n String line = \"\", oldtext = \"\";\n while((line = reader.readLine()) != null)\n {\n oldtext += line + \"\\r\\n\";\n }\n reader.close();\n\n String replacedtext = oldtext.replaceAll(placeholder, logFile.getPath().toString());\n\n FileWriter writer = new FileWriter(dest);\n writer.write(replacedtext);\n writer.close();\n\n //Form LogStash command and Execute it\n\n String command = \"/slog/bin/logstash -f \" + dest.getPath() + \" < \" + path + file;\n String[] cmd = { \"/bin/sh\", \"-c\", command};\n Process process = Runtime.getRuntime().exec(cmd);\n try {\n BufferedReader out = new BufferedReader(new InputStreamReader(process.getErrorStream()));\n out.lines().forEach(System.out::println);\n process.waitFor();\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //delete config file and log file after the work is done\n dest.delete();\n // logFile.delete();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }\n }\n\n }", "public void editDetailLogFiles(){\r\n\t\tString filter1 = \"_advanced_detail_analyzed\";\r\n\t\tString filter2 = \"_standard_detail_analyzed\";\r\n\t\t\r\n\t\t//begin with creation of new file\r\n\t\tJFileChooser fc = new JFileChooser();\r\n\t\tfc.setSize(2560, 1300);\r\n\t\t//set directory and \".log\" filter\r\n\t\tfc.setMultiSelectionEnabled(true);\r\n\t\tfc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\r\n\t\tfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\t\r\n\t\tint status = fc.showDialog(this, Messages.getString(\"EditLogControlPanel.approveButton\"));\r\n\t\t\r\n\t\tif(status == JFileChooser.APPROVE_OPTION){\r\n\t\t\tFile[] tmpFiles = fc.getSelectedFiles();\r\n\t\t\t\r\n\t\t\tfor(File file:tmpFiles){\r\n\t\t\t\t//get log names\r\n\t\t\t\tArrayList<File> files = getFileList(file);\r\n\t\t\t\r\n\t\t\t\tfor(File f:files){\r\n\t\t\t\t\tif(f.getName().contains(filter1) || f.getName().contains(filter2)){\r\n\t\t\t\t FileWriter fstream;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tif(!(new File(f.getParent() + \"/corrected/\")).exists()) (new File(f.getParent() + \"/corrected/\")).mkdir();\r\n\t\t\t\t\t\t\tfstream = new FileWriter(f.getParent() + \"/corrected/\" + f.getName(), false);\r\n\t\t\t\t\t\t\tBufferedWriter out = new BufferedWriter(fstream);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tint vehiclesTotal = 0;\r\n\t\t\t\t\t\t\tString[] data;\r\n\t\t\t\t\t\t\tfloat[] tmpData = new float[100];\r\n\t\t\t\t\t\t\tfloat[][] tmpData2 = new float[100][100];\r\n\t\t\t\t\t\t\tint counter = 0;\r\n\t\t\t\t\t\t\t//read file\r\n\t\t\t\t\t BufferedReader reader;\r\n\t\t\t\t\t \r\n\t\t\t\t\t //get maximal vehicles count and calculates values of line\r\n\t\t\t\t\t try{\r\n\t\t\t\t\t reader = new BufferedReader(new FileReader(f));\r\n\t\t\t\t\t String line = reader.readLine(); \r\n\t\t\t\t\t while(line != null){\t\r\n\t\t\t\t\t \tif(!line.substring(0, 1).equals(\"#\") && !line.equals(\"\")){\r\n\t\t\t\t\t \t\tdata = line.split(\" \");\r\n\t\t\t\t\t \t\t\r\n\t\t\t\t\t \t\tfor(int i = 1; i < data.length-1;i++){\r\n\t\t\t\t\t \t\t\ttmpData[counter] += Integer.parseInt(data[i]);\r\n\t\t\t\t\t \t\t\tvehiclesTotal += Integer.parseInt(data[i]);\r\n\t\t\t\t\t \t\t\ttmpData2[counter][i-1] = Integer.parseInt(data[i]);\r\n\t\t\t\t\t \t\t}\r\n\t\t\t\t\t \t\tcounter++;\r\n\t\t\t\t\t \t}\r\n\t\t\t\t\t \telse out.write(line + \"\\n\");\r\n\t\t\t\t\t \t\r\n\t\t\t\t\t \tline = reader.readLine();\r\n\t\t\t\t\t }\r\n\t\t\t\t\t \r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t System.err.println(\"FileNotFoundException: \" + e.getMessage());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t \r\n\t\t\t\t\t float tmpSum = 0;\r\n\t\t\t\t\t\t\tfloat vehiclesTotal2 = 0;\r\n\t\t\t\t\t\t\tfor(int l = 0; l < counter;l++){\t\r\n\t\t\t\t\t\t\t\tout.write(\"\" + l);\r\n\t\t\t\t\t\t\t\tfor(int j = 0; j < counter-1; j++) out.write(\" \" + (int)tmpData2[l][j]);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(l == 0){\r\n\t\t\t\t\t\t\t\t\tout.write(\" \" + (float)(tmpData[l]/vehiclesTotal) + \"\\n\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(l == 1){\r\n\t\t\t\t\t\t\t\t\ttmpSum = 0;\r\n\t\t\t\t\t\t\t\t\tfor(int i = l; i < counter; i++) tmpSum += tmpData[i];\r\n\t\t\t\t\t\t\t\t\tout.write(\" \" + (float)(tmpSum/vehiclesTotal) + \"\\n\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\ttmpSum = 0;\r\n\t\t\t\t\t\t\t\t\tfor(int i = l; i < counter; i++) tmpSum += tmpData[i];\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tvehiclesTotal2 = vehiclesTotal;\r\n\t\t\t\t\t\t\t\t\tfor(int n = 0; n < (l-1);n++){\r\n\t\t\t\t\t\t\t\t\t\tfor(int o = 0; o < l;o++){\r\n\t\t\t\t\t\t\t\t\t\t\tvehiclesTotal2 -= tmpData2[o][n];\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\tout.write(\" \" + (float)(tmpSum/vehiclesTotal2) + \"\\n\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t out.close();\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t \r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void processCommitEntry(SensorShell shell, String author, long timestamp, \r\n Date commitTime, int revision, PerforceChangeListData.PerforceFileData fileData)\r\n throws Exception {\r\n if (shell != null) {\r\n String file = this.fileNamePrefix == null ? \"\" : this.fileNamePrefix;\r\n file += fileData.getFileName();\r\n\r\n Map<String, String> pMap = new HashMap<String, String>();\r\n String timestampString = Tstamp.makeTimestamp(timestamp).toString();\r\n pMap.put(\"SensorDataType\", \"Commit\");\r\n pMap.put(\"Resource\", file);\r\n pMap.put(\"Tool\", \"Perforce\");\r\n pMap.put(\"Timestamp\", timestampString);\r\n pMap.put(\"Runtime\", Tstamp.makeTimestamp(commitTime.getTime()).toString());\r\n pMap.put(\"totalLines\", String.valueOf(fileData.getTotalLines()));\r\n pMap.put(\"linesAdded\", String.valueOf(fileData.getLinesAdded()));\r\n pMap.put(\"linesDeleted\", String.valueOf(fileData.getLinesDeleted()));\r\n pMap.put(\"linesModified\", String.valueOf(fileData.getLinesModified()));\r\n shell.add(pMap);\r\n if (this.isVerbose) {\r\n System.out.printf(\"Sending Perforce Commit: Timestamp: %s Resource: %s User: %s%n\", \r\n timestampString, file, shell.getProperties().getSensorBaseUser());\r\n }\r\n }\r\n }", "@Override\n public void run() {\n DriveId parentId = getFolderID(file, googleAPI);\n\n // This returns the id of the file itself. We don't found to do that.\n// if (parentId != null)\n// parentId = getID(parentId, fileName, fileType, googleAPI);\n\n // Let the Callback handle a 'not found' file.\n// if (parentId == null) {\n// return;\n// }\n\n Filter filter = Filters.and(\n Filters.in(SearchableField.PARENTS, parentId)\n , Filters.eq(SearchableField.TRASHED, false)\n , Filters.eq(SearchableField.TITLE, fileName));\n\n // Create a query for a specific filename in Drive.\n final Query query = new Query.Builder()\n .addFilter(filter)\n .build();\n\n Drive.DriveApi.query(googleAPI, query)\n .setResultCallback(resultOfQuery);\n }", "@Override\n public void fileStatusesChanged() {\n assertDispatchThread();\n LOG.debug(\"FileEditorManagerImpl.MyFileStatusListener.fileStatusesChanged()\");\n final VirtualFile[] openFiles = getOpenFiles();\n for (int i = openFiles.length - 1; i >= 0; i--) {\n final VirtualFile file = openFiles[i];\n LOG.assertTrue(file != null);\n ApplicationManager.getApplication().invokeLater(() -> {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"updating file status in tab for \" + file.getPath());\n }\n updateFileStatus(file);\n }, IdeaModalityState.NON_MODAL, myProject.getDisposed());\n }\n }", "@Override\n protected Task<FileSnapshotRestRep> doExecute() throws Exception {\n String subDir = StringUtils.defaultIfEmpty(subDirectory, null);\n return getClient().fileSnapshots().updateExport(fileSystemId, subDir, input);\n }", "private void processFromLastRun() {\n for (String configId : dirsFromLastRunToProcess.keySet()) {\r\n File dirToProcess = dirsFromLastRunToProcess.get(configId);\r\n processContentFiles(dirToProcess, configId);\r\n }\r\n \r\n dirsFromLastRunToProcess = new HashMap<String, File>();\r\n }", "public void updateContent(Map<String, ContentChange> files);", "@Override\n protected void process() {\n final List<File> srtFiles = new FileFinder().collect(new File(Constants.FILEFIXER_ROOT_DIR), Constants.SRT_EXTENSION);\n\n // process each file, making a backup first if it is enabled\n for (final File srtFile : srtFiles) {\n System.out.println(\"Processing subtitle file :: \" + srtFile.getName());\n\n if (Constants.MAKE_BACKUPS) {\n backupFile(srtFile);\n }\n\n fix(srtFile);\n }\n }", "private void updateFiles() {\n\t}", "@Override\r\n @SuppressFBWarnings(\"NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE\")\r\n public void perform(@Nonnull Run<?, ?> run,\r\n @Nonnull FilePath filePath,\r\n @Nonnull Launcher launcher,\r\n @Nonnull TaskListener taskListener) throws InterruptedException, IOException {\n if(run.getAction(CrossBuildAction.class) != null && run.getAction(CrossBuildAction.class).allowPolling()) {\r\n sharedBuildStep.setUploadScanId(run.getAction(CrossBuildAction.class).currentScanId());\r\n sharedBuildStep.setCorrelationId(run.getAction(CrossBuildAction.class).currentCorrelationId());\r\n sharedBuildStep.perform(run, filePath, launcher, taskListener);\r\n }\r\n }", "private void export(ActionEvent actionEvent) {\n if (this.totalCycles == -1) {\n var result = JOptionPane.showConfirmDialog(this, \"The run is not finished yet. Are you sure you want to proceed?\",\n \"Unfinished run\", JOptionPane.YES_NO_CANCEL_OPTION);\n\n if (result == JOptionPane.NO_OPTION) {\n return;\n }\n }\n\n // File dialog to save the history\n var fileChooser = new JFileChooser();\n fileChooser.setFileFilter(new FileFilter() {\n @Override\n public boolean accept(File file) {\n return file.getName().endsWith(\".json\");\n }\n\n @Override\n public String getDescription() {\n return \"*.json\";\n }\n });\n\n fileChooser.setAcceptAllFileFilterUsed(false);\n fileChooser.setCurrentDirectory(new File(Variables.OUTPUT_PATH));\n var resultDialog = fileChooser.showSaveDialog(this);\n\n if (resultDialog == JFileChooser.APPROVE_OPTION) {\n var file = fileChooser.getSelectedFile();\n\n if (!file.getName().endsWith(\".json\")) {\n file = new File(file.getAbsolutePath() + \".json\");\n }\n if (file.exists()) {\n var sure = JOptionPane.showConfirmDialog(this, \"File already exists. Overwrite?\",\n \"Overwrite file?\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\n if (sure != JOptionPane.YES_OPTION) {\n return;\n }\n }\n\n this.saveHistoryToFile(file);\n }\n }", "@Override\n public void onClick(View v) {\n BaseResultEvent event = new FileMultipleResultEvent(mSelectedList);\n for (NormalFile file : mSelectedList) {\n Log.e(TAG, file.getName());\n }\n RxBus.getDefault().post(event);\n RxBus.getDefault().clear();\n finish();\n }", "private void processFiles(List<File> mFileList, java.io.File targetFolder) {\n // check if the local file exists\n for (File file : mFileList) {\n java.io.File local = new java.io.File(targetFolder, file.getTitle());\n if (!local.exists()) {\n downloadFile(file, targetFolder);\n } else {\n if (checkTimeStamp(file)) {\n Log.e(\"DELETE TIME\", local.getParentFile().getName() + \"/\" + local.getName());\n deleteFile(local);\n downloadFile(file, targetFolder);\n } else {\n check = 1;\n Log.e(\"DL NOT NEEDED\", local.getParentFile().getName() + \"/\" + local.getName());\n numDownloading--;\n Log.e(\"STATUS NOT DL\",\"numDownloading is at \" + numDownloading);\n \n setNotification();\n if (numDownloading <= 0) {\n setFinalNotification();\n }\n }\n }\n }\n }", "public Builder addAllEntry(\n java.lang.Iterable<? extends com.google.devtools.kythe.proto.Analysis.FileInfo> values) {\n if (entryBuilder_ == null) {\n ensureEntryIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, entry_);\n onChanged();\n } else {\n entryBuilder_.addAllMessages(values);\n }\n return this;\n }", "@Override\r\n public void actionPerformed( ItemActionEvent<File> event )\r\n {\n }", "public List<FileAction> getFileActions(Commit commit) {\r\n return datastore.createQuery(FileAction.class)\r\n .field(\"commit_id\")\r\n .equal(commit.getId()).asList();\r\n }", "public void execute() {\n\t\tfinal File toCheckDirectory = new File(toCheck);\n\t\tfinal File checkInDirectory = new File(checkIn);\n\t\tfinal List<File> toCheckFiles = new ArrayList<>();\n\t\tfinal List<File> checkInFiles = new ArrayList<>();\n\n\t\tline();\n\t\treadFiles(toCheckDirectory, toCheckFiles);\n\t\tSystem.out.println(\"Files to check : \" + toCheckFiles.size());\n\t\treadFiles(checkInDirectory, checkInFiles);\n\t\tSystem.out.println(\"Files for check: \" + checkInFiles.size());\n\t\tline();\n\t\tSystem.out.println(\"\");\n\t\ttoCheckFiles.stream().forEach(file -> {\n\t\t\tfinal String name = file.getName();\n\t\t\tfinal List<File> foundList = checkInFiles.stream().filter( //\n\t\t\t\t\tcheck -> check.getName().equalsIgnoreCase(name)).collect(Collectors.toList());\n\n\t\t\tif (foundList == null || foundList.isEmpty()) {\n\t\t\t\tSystem.out.println(\"Not found: \" + file.getAbsolutePath());\n\t\t\t\tnotFound++;\n\t\t\t} else {\n\t\t\t\tfinal int size = foundList.size();\n\n\t\t\t\tif (size > 1) {\n\t\t\t\t\tSystem.out.println(\"\" + size + \" \" + file.getAbsoluteFile());\n\t\t\t\t\tif (size < PRINT_EACH_FILE_IF_LESS_THAN_THIS_NUMBER) {\n\t\t\t\t\t\tfoundList.stream().forEach(foundFile -> {\n\t\t\t\t\t\t\tSystem.out.println(\"- \" + foundFile.getAbsolutePath());\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"\");\n\t\tline();\n\t\tSystem.out.println(\"Not found: \" + notFound);\n\t\tSystem.out.println(\"Done.\");\n\t\tline();\n\t}", "private void expungeAllHistoricFiles()\r\n {\r\n debug(\"expungeAllHistoricFiles() - Delete ALL HISTORIC Files\");\r\n\r\n java.io.File fileList = new java.io.File(\"./\");\r\n String rootName = getString(\"WatchListTableModule.edit.historic_details_basic_name\");\r\n String[] list = fileList.list(new MyFilter(rootName));\r\n for (int i = 0; i < list.length; i++)\r\n {\r\n StockMarketUtils.expungeListsFile(list[i]);\r\n }\r\n debug(\"expungeAllHistoricFiles() - Delete ALL HISTORIC Files - complete\");\r\n\r\n }", "private static void merge(Gitlet currCommit, String[] args) {\n if (!isSure()) {\n return;\n } else if (args.length != 2) {\n System.out.println(\"Please input the branch name\");\n } else if (!currCommit.tree.hasBranch(args[1])) {\n System.out.println(\"A branch with that name does not exist.\");\n } else if (args[1].equals(currCommit.tree.getCurrentBranch())) {\n System.out.println(\"Cannot merge a branch with itself.\");\n } else {\n HashMap<String, String> splitMap = findSplitBranch(currCommit, args)\n .getFileLoc();\n HashMap<String, String> headMap = currCommit.tree.getHeadCommit()\n .getFileLoc();\n HashMap<String, String> mergeMap = currCommit.tree.getHeadCommit(\n args[1]).getFileLoc();\n for (String mergeFile : mergeMap.keySet()) {\n if (splitMap.containsKey(mergeFile)\n && headMap.containsKey(mergeFile)) {\n if (splitMap.get(mergeFile).equals(headMap.get(mergeFile))\n && !headMap.get(mergeFile).equals(\n mergeMap.get(mergeFile))) {\n FileManip origin = new FileManip(\n mergeMap.get(mergeFile));\n origin.copyFile(mergeFile);\n } else if (!splitMap.get(mergeFile).equals(\n headMap.get(mergeFile))\n && !splitMap.get(mergeFile).equals(\n mergeMap.get(mergeFile))) {\n FileManip origin = new FileManip(\n mergeMap.get(mergeFile));\n origin.copyFile(mergeFile + \".conflicted\");\n }\n } else if (!splitMap.containsKey(mergeFile)\n && headMap.containsKey(mergeFile)) {\n FileManip origin = new FileManip(mergeMap.get(mergeFile));\n if (!origin.isSame(headMap.get(mergeFile))) {\n origin.copyFile(mergeFile + \".conflicted\");\n }\n }\n }\n }\n }", "private static void rebase(Gitlet currCommit, String[] args) {\n if (!isSure()) {\n return;\n } else if (!rebaseCheck(currCommit, args)) {\n return;\n } else if (sameHist(currCommit, args[1])) {\n Commit toChange = currCommit.tree.getHeadCommit(args[1]);\n currCommit.tree.setHeadCommit(toChange);\n currCommit.tree.setCommit(Integer.parseInt(toChange.getId()));\n } else {\n Commit split = findSplitBranch(currCommit, args);\n HashMap<String, String> splitMap = split.getFileLoc();\n TreeSet<Commit> tempCurr = currCommit.tree.getCommits();\n TreeSet<Commit> tempBranch = currCommit.tree.getCommits(args[1]);\n TreeSet<Commit> currCommits = (TreeSet<Commit>) tempCurr.subSet(\n currCommit.tree.getHeadCommit(), true, split, true);\n TreeSet<Commit> branchCommits = (TreeSet<Commit>) tempBranch\n .subSet(currCommit.tree.getHeadCommit(args[1]), true,\n split, true);\n for (Commit x : currCommits) {\n currCommit.tree.removeCommit(x);\n currCommit.tree.addSize();\n String newId = currCommit.tree.getSize().toString();\n Commit commitToAdd = x.commitCopy(x, newId);\n\n HashMap<String, String> newMap = propogate(x.getFileLoc(),\n currCommit.tree.getHeadCommit(args[1]).getFileLoc(),\n splitMap);\n commitToAdd.setFileLoc(newMap);\n\n currCommit.tree.addData(commitToAdd);\n if (currCommit.tree.getHeadCommit().same(x)) {\n currCommit.tree.setHeadCommit(commitToAdd);\n }\n }\n for (Commit x : branchCommits) {\n currCommit.tree.addCommit(x);\n }\n updateFiles(currCommit);\n }\n addSerializeFile(currCommit);\n }", "public List<FileAction> getFileActions(SmallCommit commit) {\r\n return datastore.createQuery(FileAction.class)\r\n .field(\"commit_id\")\r\n .equal(commit.getId()).asList();\r\n }", "private void indexInTransaction(SVNLogEntry logEntry) throws SVNException {\n // Log values\n long revision = logEntry.getRevision();\n String author = logEntry.getAuthor();\n // Date to date time\n Date date = logEntry.getDate();\n DateTime dateTime = new DateTime(date.getTime(), DateTimeZone.UTC);\n // Message\n String message = logEntry.getMessage();\n // Branch for the revision\n String branch = getBranchForRevision(logEntry);\n // Logging\n logger.info(String.format(\"Indexing revision %d\", revision));\n // Inserting or updating the revision\n revisionDao.addRevision(revision, author, dateTime, message, branch);\n // Merge relationships (using a nested SVN client)\n Transaction svn = transactionService.start(true);\n try {\n List<Long> mergedRevisions = subversionService.getMergedRevisions(SVNUtils.toURL(subversionConfigurationExtension.getUrl(), branch), revision);\n revisionDao.addMergedRevisions(revision, mergedRevisions);\n } finally {\n svn.close();\n }\n // Subversion events\n indexSVNEvents(logEntry);\n // Indexes the issues\n indexIssues(logEntry);\n }", "@Override\n\tpublic void action() throws DPFTRuntimeException {\n\t\tDPFTAction prev_action = this.getPreviousAction();\n\t\tHashMap<String, String> file_out_list = new HashMap<String, String>();\n\t\tHashMap<String, String> file_charset_list = new HashMap<String, String>();\n\t\tsuccess_ftp_files.clear();\n\t\tif(prev_action instanceof DPFTActionTableWatch){\n\t\t\tDPFTDboSet rs = prev_action.getResultSet();\n\t\t\t\n//\t\t\tif(rs.count() > 0){\n\t\t\t\t/*has data to write out*/\n\t\t\t\tinitMetaSetting();\n\t\t\t\tDPFTFileFormatter formatter = getFileFormatter();\n\t\t\t\tif(formatter == null)\n\t\t\t\t\tthrow new DPFTInvalidSystemSettingException(\"SYSTEM\", \"DPFT0012E\");\n\t\t\t\t\n\t\t\t\tformatter.setFileEncoding(getFileEncoding());\n\t\t\t\tformatter.format(rs);\t\t\t\n\t\t\t\tfile_out_list = formatter.getFormatFileList();\n\t\t\t\tfile_charset_list = formatter.getFormatFileCharset();\n\t\t\t\t\n\t\t\t\tHashMap<DPFTFileFormatter, DPFTFileFTPUtil> fmtrs = getAdditionalDataFormatters();\n\t\t\t\tif(fmtrs != null){\n\t\t\t\t\tDPFTLogger.info(this, \"Output additional data file...\");\n\t\t\t\t\tfor(DPFTFileFormatter fmtr: fmtrs.keySet()){\n\t\t\t\t\t\tif(fmtr == null)\n\t\t\t\t\t\t\tthrow new DPFTInvalidSystemSettingException(\"SYSTEM\", \"DPFT0012E\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tfmtr.format(rs);\n\t\t\t\t\t\tHashMap<String, String> fl = fmtr.getFormatFileList();\n\t\t\t\t\t\tHashMap<String, String> fc = fmtr.getFormatFileCharset();\n\t\t\t\t\t\tfor(String k1 : fl.keySet()){\n\t\t\t\t\t\t\tfile_out_list.put(k1, fl.get(k1));\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String k2 : fc.keySet()){\n\t\t\t\t\t\t\tfile_out_list.put(k2, fc.get(k2));\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*Write out files*/\n\t\t\t\tdoFileOut(file_out_list, file_charset_list);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/*Compress file to .zip format if needed*/\n\t\t\t\tString[] flist = null;\n\t\t\t\tif(formatter.needDataCompression())\n\t\t\t\t\tflist = doZipFiles(formatter.retrieveDataCompressionInfo(), formatter.getZFileName());\n\t\t\t\telse\n\t\t\t\t\tflist = formatter.getFiles();\n\t\t\t\t\t\n\t\t\t\t/*FTP*/\n\t\t\t\tDPFTFileFTPUtil ftpUtil = getFTPUtil();\n\t\t\t\tif(ftpUtil != null){\n\t\t\t\t\tString[] ctrl_list = formatter.getControlFiles();\n\t\t\t\t\tgetFTPUtil().doFTP_Out(ctrl_list, flist);\n\t\t\t\t\tsuccess_ftp_files.add(flist[0]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*Compress Additional files to .zip format if needed*/\n\t\t\t\tif(fmtrs != null){\n\t\t\t\t\tfor(DPFTFileFormatter fmtr: fmtrs.keySet()){\n\t\t\t\t\t\tString[] addi_flist = null;\n\t\t\t\t\t\tif(fmtr.needDataCompression())\n\t\t\t\t\t\t\taddi_flist = doZipFiles(fmtr.retrieveDataCompressionInfo(), fmtr.getZFileName());\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\taddi_flist = fmtr.getFiles();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t/*FTP*/\n\t\t\t\t\t\tDPFTFileFTPUtil addi_ftpUtil = fmtrs.get(fmtr);\n\t\t\t\t\t\tif(addi_ftpUtil != null){\n\t\t\t\t\t\t\tString[] ctrl_list = fmtr.getControlFiles();\n\t\t\t\t\t\t\taddi_ftpUtil.doFTP_Out(ctrl_list, addi_flist);\n\t\t\t\t\t\t\tsuccess_ftp_files.add(addi_flist[0]);\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\tthis.changeActionStatus(GlobalConstants.DPFT_ACTION_STAT_COMP);\n\t}", "private void saveChange(final CVSChangeLogSet.File file, final CVSChangeLog change, final Map<String, String> branches,\n final List<CVSChangeLog> changes, final Map<String, CvsFile> files, final CvsRepositoryLocation location,\n final EnvVars envVars) {\n\n final String branch = getBranchNameForRevision(file.getRevision(), branches);\n\n // check we're on head if the branch name is null\n if (branch == null && !(location instanceof CvsRepositoryLocation.HeadRepositoryLocation)) {\n return;\n }\n\n if (branch != null && location instanceof CvsRepositoryLocation.HeadRepositoryLocation) {\n return;\n }\n\n // Check the branch/tag name matches the retrieved branch name\n if (!(location instanceof CvsRepositoryLocation.HeadRepositoryLocation)\n && !envVars.expand(location.getLocationName()).equals(branch)) {\n return;\n }\n\n CVSChangeLog currentChange = change;\n boolean addChange = true;\n\n // check the change isn't the same as any other change\n for (final CVSChangeLog existingChange : changes) {\n if (change.canBeMergedWith(existingChange)) {\n // equivalent to merging the new and existing change\n currentChange = existingChange;\n addChange = false;\n break;\n }\n }\n\n // we only want the first listing of this file since changes are\n // sorted in reverse order of when they were made\n if (!files.containsKey(file.getFullName())) {\n final CvsFile cvsFile = CvsFile.make(file.getFullName(), file.getRevision(), file.isDead());\n files.put(file.getFullName(), cvsFile);\n }\n\n if (addChange) {\n changes.add(currentChange);\n }\n\n // we have to copy the file and save the copy since the passed file gets internally\n // modified during following calls\n final CVSChangeLogSet.File localFile = new CVSChangeLogSet.File();\n localFile.setRevision(file.getRevision());\n localFile.setDead(file.isDead());\n localFile.setFullName(file.getFullName());\n localFile.setName(file.getName());\n localFile.setPrevrevision(file.getPrevrevision());\n\n currentChange.addFile(localFile);\n\n }", "public void addEntriesToSnapshot(\n TableServiceClient datasetTableServiceClient,\n TableServiceClient snapshotTableServiceClient,\n UUID datasetId,\n String datasetDirName,\n UUID snapshotId,\n List<String> fileIds) {\n int cacheSize = configurationService.getParameterValue(ConfigEnum.SNAPSHOT_CACHE_SIZE);\n LRUMap<String, Boolean> pathMap = new LRUMap<>(cacheSize);\n storeTopDirectory(snapshotTableServiceClient, snapshotId, datasetDirName);\n ListUtils.partition(fileIds, MAX_FILTER_CLAUSES)\n .forEach(\n fileIdsBatch -> {\n List<TableEntity> entities =\n TableServiceClientUtils.batchRetrieveFiles(\n datasetTableServiceClient, datasetId, fileIdsBatch);\n\n List<FireStoreDirectoryEntry> directoryEntries =\n entities.stream()\n .map(\n entity -> {\n FireStoreDirectoryEntry directoryEntry =\n FireStoreDirectoryEntry.fromTableEntity(entity);\n if (!directoryEntry.getIsFileRef()) {\n throw new FileSystemExecutionException(\n \"Directories are not supported as references\");\n }\n return directoryEntry;\n })\n .collect(Collectors.toList());\n if (directoryEntries.isEmpty()) {\n throw new FileSystemExecutionException(\"No fileIds found in batch lookup\");\n }\n\n // Find directory paths that need to be created; plus add to the cache\n Set<String> newPaths =\n FileMetadataUtils.findNewDirectoryPaths(directoryEntries, pathMap);\n List<FireStoreDirectoryEntry> datasetDirectoryEntries =\n batchRetrieveByPath(\n datasetTableServiceClient,\n datasetId,\n StorageTableName.DATASET.toTableName(datasetId),\n newPaths);\n\n // Create snapshot file system entries\n List<FireStoreDirectoryEntry> snapshotEntries = new ArrayList<>();\n for (FireStoreDirectoryEntry datasetEntry : directoryEntries) {\n snapshotEntries.add(datasetEntry.copyEntryUnderNewPath(datasetDirName));\n }\n for (FireStoreDirectoryEntry datasetEntry : datasetDirectoryEntries) {\n snapshotEntries.add(datasetEntry.copyEntryUnderNewPath(datasetDirName));\n }\n\n // Store the batch of entries. This will override existing entries,\n // but that is not the typical case and it is lower cost just overwrite\n // rather than retrieve to avoid the write.\n batchStoreDirectoryEntry(snapshotTableServiceClient, snapshotId, snapshotEntries);\n });\n }", "boolean accept(String diffEntryPath);", "public void invokeEvents() {\n\t\tIntent i = alertMe.createIntentFromSession();\n\t\ti.setClass(this, AlertMeEventHistory.class);\n\t\ti.putExtra(AlertMeConstants.INTENT_REQUEST_KEY, AlertMeConstants.INVOKE_HISTORY);\n startActivityForResult(i, AlertMeConstants.INVOKE_HISTORY);\n }", "public static void status() {\n Set branchSet = commitPointers.readBranches().keySet();\n ArrayList<String> sortedBranches = (ArrayList) branchSet.stream().sorted().collect(Collectors.toList());\n String currBranch = commitPointers.readHeadCommit()[0];\n System.out.println(\"=== Branches ===\");\n for (String branch: sortedBranches) {\n if (currBranch.equals(branch)) {\n System.out.println(\"*\" + currBranch);\n } else {\n System.out.println(branch);\n }\n }\n stagingArea = Utils.readObject(STAGING_FILE, HashMap.class);\n\n ArrayList<String> sortedStaged = (ArrayList) stagingArea.keySet().stream().sorted().collect(Collectors.toList());\n System.out.println();\n System.out.println(\"=== Staged Files ===\");\n for (String staged : sortedStaged) {\n System.out.println(staged);\n }\n\n System.out.println();\n System.out.println(\"=== Removed Files ===\");\n stagingRemoveArea = Utils.readObject(STAGING_REMOVE_FILE, HashMap.class);\n ArrayList<String> sortedRemoved = (ArrayList) stagingRemoveArea.keySet().stream().sorted().collect(Collectors.toList());\n for (String removed : sortedRemoved) {\n System.out.println(removed);\n }\n System.out.println();\n\n System.out.println(\"=== Modifications Not Staged For Commit ===\");\n\n Commit Head = Utils.readObject(Utils.join(Commit.COMMIT_FOLDER, commitPointers.readHeadCommit()[1] + \".txt\"), Commit.class);\n //File blobs contains a SHAID + file name\n\n HashMap<String, String> modUntracked = new HashMap<>();\n\n //iterates through head Blobs\n for (HashMap.Entry<String, String> headfileBlob : Head.fileBlobs.entrySet()) {\n\n File cwdBFile = Utils.join(CWD, headfileBlob.getKey());\n\n if (!cwdBFile.exists() && !stagingRemoveArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(deleted)\");\n }\n else if (cwdBFile.exists()){\n\n Blob tempBlob = new Blob(headfileBlob.getKey(), cwdBFile);\n String tempBlobId = Utils.sha1(Utils.serialize(tempBlob));\n\n\n if(!tempBlobId.equals(headfileBlob.getValue())) {\n //if not in staging area\n if (!stagingArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n //TODO: IS THIS PART NECCESARY?\n else if (stagingArea.containsKey(headfileBlob.getKey()) && !stagingArea.get(headfileBlob.getKey()).equals(headfileBlob.getValue())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n }\n }\n }\n\n ArrayList<String> sortedModNames = (ArrayList) modUntracked.keySet().stream().sorted().collect(Collectors.toList());\n for (String modFileName : sortedModNames){\n System.out.println(modFileName + \" \" + modUntracked.get(modFileName));\n }\n System.out.println();\n\n\n\n ArrayList<String> untracked = new ArrayList<>();\n System.out.println(\"=== Untracked Files ===\");\n for (String cwdfile : CWD.list()) {\n if(!cwdfile.equals(\".gitlet\")) {\n File currfile = Utils.join(CWD, cwdfile);\n if (currfile.exists() && !Head.fileBlobs.containsKey(cwdfile)) {\n untracked.add(cwdfile);\n }\n }\n }\n\n untracked = (ArrayList) untracked.stream().sorted().collect(Collectors.toList());\n\n for (String untrackedName : untracked){\n System.out.println(untrackedName);\n }\n }", "@Override\n public void run() {\n \t\n \t\t\n \t\tSearchFile.findFile(f1);\n }", "public HDInsightSparkActivity setEntryFilePath(Object entryFilePath) {\n this.entryFilePath = entryFilePath;\n return this;\n }", "Object process(Collection<File> listOfFilesToProcess, File tempDir)\r\n\t\t\tthrows CheckerException;", "private static void reset(Gitlet currCommit, String[] args) {\n if (!isSure()) {\n return;\n } else if (args.length != 2) {\n System.out.println(\"Please input a commit ID\");\n\n } else if (!currCommit.tree.containsId(args[1])) {\n System.out.println(\"No commit with that id exists.\");\n\n } else {\n Commit commit = currCommit.tree.getCommitFromId(args[1]);\n HashMap<String, String> fileToLoc = commit.getUpdatedFileToLoc();\n for (String x : fileToLoc.keySet()) {\n FileManip origin = new FileManip(fileToLoc.get(x));\n origin.copyFile(x);\n }\n currCommit.tree.setCommit(Integer.parseInt(args[1]));\n currCommit.tree.setHeadCommit(commit);\n currCommit.tree.alterCommitSet(commit);\n addSerializeFile(currCommit);\n }\n }", "int postFiles(String [] args,int startIndexInArgs) throws IOException {\n int filesPosted = 0;\n for (int j = 1; j < args.length; j++) {\n File srcFile = new File(args[j]);\n final StringWriter sw = new StringWriter();\n \n if (srcFile.canRead()) {\n info(\"POSTing file \" + srcFile.getName());\n postFile(srcFile, sw);\n filesPosted++;\n warnIfNotExpectedResponse(sw.toString(),SOLR_OK_RESPONSE);\n } else {\n warn(\"Cannot read input file: \" + srcFile);\n }\n }\n return filesPosted;\n }", "protected void processEntryDelta(InternalSystemEntryDelta entryDelta)\n {\n if(entryDelta.getDeltaState() == SystemEntryDelta.DeltaState.ERROR)\n {\n switch(computeActionFromStatus(entryDelta))\n {\n case NO_ACTION:\n break;\n \n case REDEPLOY:\n processEntryTransition(entryDelta,\n DELTA_TRANSITIONS);\n break;\n \n case FIX_MISMATCH_STATE:\n processEntryStateMismatch(null,\n entryDelta);\n break;\n \n default:\n throw new RuntimeException(\"not reached\");\n }\n }\n }", "public void run() {\n /* lookup file's lastModified date */\n long lastModified = this.monitoredFile.lastModified();\n \n \n /* if the lastModified > prev lastModified date, notify listener */\n if (lastModified != this.lastModified) {\n log.debug(String.format(\"File last modified %d and known last \" +\n \t\t\"modified %d\", lastModified, this.lastModified));\n this.lastModified = lastModified;\n fireFileChangeEvent(this.listener, this.fileName);\n }\n }", "private void processModify(int fileId, int commitId) throws SQLException,\n \t\t\tIOException {\n \t\tint previousCommitId = commitGraph.findPreviousCommitId(fileId,\n \t\t\t\tcommitId);\n \t\tString newContent = FileUtils.getContent(fileId, commitId);\n \t\tString oldContent = getPreviousContent(fileId, previousCommitId);\n \t\tList<SourceCodeChange> changes = extractDiff(new FileRevision(\n \t\t\t\tpreviousCommitId, fileId, oldContent), new FileRevision(\n \t\t\t\tcommitId, fileId, newContent));\n \t\tif (changes == null || changes.size() == 0) {\n \t\t\tlogger.warning(\"No changes distilled for file \" + fileId\n \t\t\t\t\t+ \" at commit_id \" + commitId + \" from previous commit id \"\n \t\t\t\t\t+ previousCommitId);\n \t\t} else {\n \t\t\tthis.reducer.add(changes, fileId, commitId);\n \t\t}\n \t\tif (changes != null) { // can't check newcontent alone, as it can have\n \t\t\t\t\t\t\t\t// invalid syntax\n \t\t\tassert (newContent != null);\n \t\t\tfileContentCache.put(fileId, new FileRevision(commitId, fileId,\n \t\t\t\t\tnewContent));\n \t\t}\n \t}", "public void uploadPhotoProfile(FileEntryEvent ev){\n\tArrayList<Photo> listePhotos=new ArrayList<Photo>();\r\n\tlistePhotos=mbb.getMembre().getListePhotos();\r\n\tint idPhotoProfile=0;\r\n\t\r\n\tfor(Photo photo : listePhotos)\r\n\t{\r\n\t\tif(photo.getIsProfil())\r\n\t\t\tidPhotoProfile=photo.getId();\r\n\t}\r\n\t\r\n\tint photoProfileSupprime=PhotoManager.deletePhoto(idPhotoProfile);\r\n\tSystem.out.println(photoProfileSupprime);\r\n\tif(photoProfileSupprime>0)\r\n\t{\r\n\t\t\r\n\t//mettre la main sur le fileEntry\r\n\tFileEntry fiE = (FileEntry)ev.getSource();\r\n\t//récupérer ses results\r\n\tFileEntryResults fr = fiE.getResults();\r\n\t\r\n\t// Create an instance of SimpleDateFormat used for formatting \r\n\t\t\t// the string representation of date (month/day/year)\r\n\t\t\tDateFormat df = new SimpleDateFormat(\"ddMMyyyyHHmmss\");\r\n\r\n\t\t\t// Get the date today using Calendar object.\r\n\t\t\tDate today = Calendar.getInstance().getTime(); \r\n\t\t\t// Using DateFormat format method we can create a string \r\n\t\t\t// representation of a date with the defined format.\r\n\t\t\tString reportDate = df.format(today);\r\n\t\t\t\r\n\t\r\n\t//boucler sur les FileInfo\r\n\tfor(FileEntryResults.FileInfo fi: fr.getFiles()){\r\n\t\t//s'assurer que le fichier est enregistrer\r\n\t\tif(fi.isSaved()){\r\n\t\t\tSystem.out.println(\"le nom ========= \"+reportDate+fi.getFileName());\r\n\t\t\t//recu le fichier\r\n\t\t\tFile f = fi.getFile();\r\n\t\t\t\r\n\t\t\t//TODO verifier que c'est le bon type de fichier\r\n\t\t\t//renommer\r\n\t\t\ttry {\r\n\t\t\t\tString cheminApp=FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/\");\r\n\t\t\t\tString newch=cheminApp;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tboolean ren=f.renameTo(new File(newch+\"photos/\"+reportDate+fi.getFileName()));\r\n\t\t\t\t\r\n\t\t\t\tif (ren) {\r\n\t\t\t\t\tthis.chemin=\"photos/\"+reportDate+fi.getFileName();\r\n\t\t\t\t\tSystem.out.println(newch);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"pas possible. \"+newch);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception 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\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//ajouter un message \r\n\t\t\tFacesContext.getCurrentInstance().addMessage(fiE.getClientId(),new FacesMessage(\"le fichier a été uploadé\"));\r\n\t\t\r\n\t\t\tPhoto photo= new Photo();\r\n\t\t\tphoto.setMemberID(mbb.getMembre().getMembreId());\r\n\t\t\tphoto.setChemin(chemin);\r\n\t\t\tphoto.setIsProfil(true);\r\n\r\n\t\t\tint ajoute=PhotoManager.addPhoto(photo);\r\n\t\t\tSystem.out.println(\"photo profile ajoute\");\r\n\t\t\tif(ajoute>0){\r\n\t\t\t\tmbb.getMembre().setListePhotos(PhotoManager.getPhotosByMemberId(mbb.getMembre().getMembreId()));//maj liste photos\r\n\t\t\t\tArrayList<Photo> photos=new ArrayList<Photo>();\r\n\t\t\t\tphotos=PhotoManager.getProfilPhotosByMemberId(mbb.getMembre().getMembreId());\r\n\t\t\t\tmbb.getMembre().setProfilImagePath(photos.get(0).getChemin()); //maj chemin photo profil\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}\t\r\n\t}", "public void run()\r\n {\n setErrors(0);\r\n if (!setStatus(\"INITIALIZING\"))\r\n {\r\n return;\r\n }\r\n\r\n String _dirAnalysis = _file.getParent();\r\n String _baseName = FileUtil.getBaseName(_file);\r\n File dirWork = new File(_dirAnalysis, _baseName + \".import.work\");\r\n File workFile = new File(dirWork.getAbsolutePath(), _file.getName());\r\n\r\n boolean completeStatus = false;\r\n try\r\n {\r\n if (!dirWork.exists() && !dirWork.mkdir())\r\n {\r\n getLogger().error(\"Failed create working folder \"+dirWork.getAbsolutePath()+\".\");\r\n return;\r\n }\r\n\r\n try\r\n {\r\n FileUtils.copyFile(_file, workFile);\r\n }\r\n catch (IOException x)\r\n {\r\n getLogger().error(\"Failed to move Mascot result file to working folder as \"+workFile.getAbsolutePath(), x);\r\n return;\r\n }\r\n\r\n // let's import the .dat file\r\n super.run();\r\n if (getErrors() == 0)\r\n {\r\n\r\n if (!workFile.delete())\r\n {\r\n getLogger().error(\"Failed to delete \" + workFile.getAbsolutePath());\r\n return;\r\n }\r\n else if (!dirWork.delete())\r\n {\r\n getLogger().error(\"Failed to delete \" + dirWork.getAbsolutePath());\r\n return;\r\n }\r\n else\r\n {\r\n setStatus(TaskStatus.complete);\r\n }\r\n completeStatus = true;\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n getLogger().error(\"MS2 import failed\", e);\r\n }\r\n finally\r\n {\r\n if (!completeStatus)\r\n {\r\n setStatus(TaskStatus.error);\r\n }\r\n if (workFile.exists())\r\n {\r\n workFile.delete();\r\n }\r\n }\r\n }", "private void onFileClick(Item o)\n {\n \tIntent intent = new Intent();\n intent.putExtra(\"GetPath\",currentDir.toString());\n intent.putExtra(\"GetFileName\",o.getName());\n setResult(RESULT_OK, intent);\n finish();\n }", "@Override\n public void run() {\n\n\n try {\n WatchService watchService = FileSystems.getDefault().newWatchService();\n Path path = Paths.get(INPUT_FILES_DIRECTORY);\n\n path.register( watchService, StandardWatchEventKinds.ENTRY_CREATE); //just on create or add no modify?\n\n WatchKey key;\n while ((key = watchService.take()) != null) {\n for (WatchEvent<?> event : key.pollEvents()) {\n\n String fileName = event.context().toString();\n notifyController.processDetectedFile(fileName);\n\n }\n key.reset();\n }\n\n } catch (Exception e) {\n //Logger.getGlobal().setUseParentHandlers(false);\n //Logger.getGlobal().log(Level.SEVERE, e.toString(), e);\n\n }\n }", "public void performFileSearch() {\n\n // ACTION_OPEN_DOCUMENT is the intent to choose a file via the system's file browser.\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n\n // Filter to only show results that can be \"opened\", such as a\n // file (as opposed to a list of contacts or timezones)\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n\n // Filter to show only images, using the image MIME data type.\n // If one wanted to search for ogg vorbis files, the type would be \"audio/ogg\".\n // To search for all documents available via installed storage providers, it would be \"*/*\".\n intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION);\n intent.setType(\"image/*\");\n\n startActivityForResult(intent, READ_REQUEST_CODE);\n }", "@Override\n public void execute() {\n\n if(!isValid){\n System.out.println(invalidReasonString);\n return;\n }\n\n\n Path filteredFilesRoot = Path.of(pathToDir,filteredFilesRootDirectory);\n\n try {\n\n if (Files.exists(filteredFilesRoot) && Files.isDirectory(filteredFilesRoot)){\n emptyDirectory(filteredFilesRoot.toFile());\n Files.delete(filteredFilesRoot);\n } else if (Files.isRegularFile(filteredFilesRoot)){\n Files.delete(filteredFilesRoot);\n }\n\n Files.createDirectory(filteredFilesRoot);\n\n List<Path> filteredFiles = PostProcessor.filterRootDirectory(pathToDir,maxFileSize,keywords);\n\n copyFiles(filteredFilesRoot,filteredFiles);\n\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(e.getMessage());\n }\n\n }", "@Override\n\tpublic void handleOutput(final List<RuleMatch> evaluationResults) throws IOException {\n\t\tthis.totalResults = evaluationResults.size();\n\t\tthis.uniqueFileSet = new HashSet<>();\n\t\tthis.perFileResults = new HashMap<>();\n\t\tthis.perFilePerRule = new HashMap<>();\n\n\t\tfor (final RuleMatch match : evaluationResults) {\n\t\t\tuniqueFileSet.add(match.getLogReference().getLogFile());\n\n\t\t\tList<RuleMatch> perFileList = perFileResults.get(match.getLogReference().getLogFile());\n\t\t\tif (perFileList == null) {\n\t\t\t\tperFileList = new ArrayList<>();\n\t\t\t}\n\t\t\tperFileList.add(match);\n\t\t\tperFileResults.put(match.getLogReference().getLogFile(), perFileList);\n\n\t\t\tMap<String, List<RuleMatch>> perRuleForFile = perFilePerRule.get(match.getLogReference().getLogFile());\n\t\t\tif (perRuleForFile == null) {\n\t\t\t\tperRuleForFile = new HashMap<>();\n\t\t\t}\n\t\t\tperFilePerRule.put(match.getLogReference().getLogFile(), perRuleForFile);\n\n\t\t\tList<RuleMatch> perTypeList = perRuleForFile.get(match.getMatchingRuleName());\n\t\t\tif (perTypeList == null) {\n\t\t\t\tperTypeList = new ArrayList<>();\n\t\t\t}\n\t\t\tperTypeList.add(match);\n\t\t\tperRuleForFile.put(match.getMatchingRuleName(), perTypeList);\n\n\t\t}\n\n\t\tthis.uniqueLogFilesAffected = uniqueFileSet.size();\n\t}", "public void testViewHistory() throws Exception {\n System.out.print(\".. Testing history information of a file ..\");\n String filesystem = \"VSS \" + workingDirectory + File.separator + \"Work\";\n Node filesystemNode = new Node(new ExplorerOperator().repositoryTab().getRootNode(), filesystem);\n Node A_FileNode = new Node( filesystemNode, \"A_File [Current]\");\n new Action(VERSIONING_MENU + \"|\" + HISTORY, HISTORY).perform(A_FileNode);\n MainWindowOperator.getDefault().waitStatusText(\"Command History finished.\");\n VCSCommandsOutputOperator outputWindow = new VCSCommandsOutputOperator(\"History\");\n outputWindow.btClose();\n Thread.sleep(5000);\n String currentContents = outputWindow.txtStandardOutput().getText();\n outputWindow.close();\n String goldenContents = \"History of $/A_File.java ...\\n\\n***************** Version 2 *****************\\nUser: \" + userName + \" Date:\";\n if (currentContents.indexOf(goldenContents) < 0) captureScreen(\"Error: Incorrect history contents. Golden: |\" + goldenContents + \"|\" + currentContents + \"|\");\n goldenContents = \"Checked in $/\\nComment: Three lines have changed.\\n\\n***************** Version 1 *****************\\nUser: \" + userName + \" Date\";\n if (currentContents.indexOf(goldenContents) < 0) captureScreen(\"Error: Incorrect history contents. Golden: |\" + goldenContents + \"|\" + currentContents + \"|\");\n goldenContents = \"Created\\nComment: Generated A_File class.\\n\";\n if (currentContents.indexOf(goldenContents) < 0) captureScreen(\"Error: Incorrect history contents. Golden: |\" + goldenContents + \"|\" + currentContents + \"|\");\n new Action(VERSIONING_MENU + \"|\" + PROPERTIES, PROPERTIES).perform(A_FileNode);\n MainWindowOperator.getDefault().waitStatusText(\"Command Properties finished.\");\n outputWindow = new VCSCommandsOutputOperator(\"Properties\");\n outputWindow.btClose();\n Thread.sleep(5000);\n currentContents = outputWindow.txtStandardOutput().getText();\n outputWindow.close();\n goldenContents = \"File: $/A_File.java\\nType: Text\\nSize: 91 bytes 5 lines\\nStore only latest version: No\\nLatest: \\n Version: 2 \\n Date:\";\n if (currentContents.indexOf(goldenContents) < 0) captureScreen(\"Error: Incorrect properties contents. Golden: |\" + goldenContents + \"|\" + currentContents + \"|\");\n goldenContents = \"Comment: Generated A_File class.\";\n if (currentContents.indexOf(goldenContents) < 0) captureScreen(\"Error: Incorrect properties contents. Golden: |\" + goldenContents + \"|\" + currentContents + \"|\");\n System.out.println(\". done !\");\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\r\n\t\t\t\tfm = FileManager.getInstance();\r\n\r\n\t\t\t\tfolder = fm.fileFolderPrompt(getmainWindowFrame());\r\n\r\n\t\t\t\tfiles = fm.getFiles();\r\n\r\n\t\t\t\tboolean hamFound = false;\r\n\t\t\t\tboolean spamFound = false;\r\n\t\t\t\tboolean rulesFound = false;\r\n\r\n\t\t\t\tint hami = 0;\r\n\t\t\t\tint spami = 0;\r\n\t\t\t\tint rulesi = 0;\r\n\r\n\t\t\t\tint count = 0;\r\n\r\n\t\t\t\tfor (File f : files) {\r\n\t\t\t\t\tif (f.getName().contains(\"ham\")) {\r\n\t\t\t\t\t\thamFound = true;\r\n\t\t\t\t\t\thami = count;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (f.getName().contains(\"spam\")) {\r\n\t\t\t\t\t\tspamFound = true;\r\n\t\t\t\t\t\tspami = count;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (f.getName().contains(\"rules\")) {\r\n\t\t\t\t\t\trulesFound = true;\r\n\t\t\t\t\t\trulesi = count;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t\tif (rulesFound) {\r\n\t\t\t\t\trulesFileEncountered.setSelected(true);\r\n\t\t\t\t\trulesFilePathTextField.setText(files[rulesi].getPath());\r\n\t\t\t\t}\r\n\t\t\t\tif (spamFound) {\r\n\t\t\t\t\tspamFileEncountered.setSelected(true);\r\n\t\t\t\t\tspamFilePathTextField.setText(files[spami].getPath());\r\n\t\t\t\t}\r\n\t\t\t\tif (hamFound) {\r\n\t\t\t\t\thamFileEncountered.setSelected(true);\r\n\t\t\t\t\thamFilePathTextField.setText(files[hami].getPath());\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void run() {\n List<File> files = getContents(TOP_LEVEL + \" and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET);\n \n prune(targetDir, files);\n processLanguages(files);\n }", "public String execute()\n {\n log.info(\"Entering JSONAlfrescoNavigationAction.execute()...\");\n\n if (\"null\".equals(remoteContainerId))\n {\n remoteContainerId = null;\n }\n\n if (fetchDirectories && !fetchFiles)\n {\n if (searchString == null)\n {\n log.info(\"Fetching directory listing for \" + remoteContainerId);\n count = alfrescoNavigationManager.fillDirectories(directories, remoteContainerId, firstRecord);\n }\n else\n {\n log.info(\"Searching directories for \" + searchString);\n count = alfrescoNavigationManager.searchDirectories(directories, searchString, firstRecord);\n }\n }\n\n if (fetchFiles)\n {\n if (searchString == null)\n {\n count = alfrescoNavigationManager.getFiles(remoteContainerId, firstRecord, directories, files);\n }\n else\n {\n count = alfrescoNavigationManager.searchFiles(searchString, firstRecord, directories, files);\n }\n }\n\n log.info(\"Exiting JSONAlfrescoNavigationAction.execute()\");\n return SUCCESS;\n }", "private static void processArguments(String[] args) {\r\n if (args.length < 2) {\r\n IO.displayGUI(args.length + \" arguments provided.\\nPlease provide input and output files through the GUI.\");\r\n IO.chooseFiles(); // choose files with GUI\r\n } else {\r\n // Open file streams\r\n IO.openStream(args[0], args[1]);\r\n }\r\n }", "@Override\n public void runTask() throws Exception {\n String scannedFileDirectoryPath = \"/mnt/digibuffer/tmp\";\n Path scanFileDirectory = Paths.get(scannedFileDirectoryPath);\n taskLog(\"Process existing files in %s\\n\", scannedFileDirectoryPath);\n processFiles(scanFileDirectory);\n }", "private void openFile() {\n \n // Initialize local variables\n File clubRecordsFolder = null;\n File opYearFolder = null;\n File eventsFolder = null;\n ClubEventCalc newClubEventCalc = new ClubEventCalc();\n StringDate strDate = newClubEventCalc.getStringDate();\n File result = null;\n String resultName = \"\";\n XFileChooser chooser = new XFileChooser ();\n chooser.setFileSelectionMode(XFileChooser.DIRECTORIES_ONLY);\n boolean ok = true;\n int progress = 0;\n String desiredFolder = \"\";\n while (ok && progress < 3) {\n switch (progress) {\n case 0: \n desiredFolder = \"Folder Containing Club Records\";\n break;\n case 1:\n chooser.setCurrentDirectory(clubRecordsFolder);\n desiredFolder = \"Folder for Desired Operating Year\";\n break;\n case 2:\n chooser.setCurrentDirectory(opYearFolder);\n desiredFolder = \"Events Folder\";\n break;\n }\n chooser.setDialogTitle (\"Specify \" + desiredFolder);\n result = chooser.showOpenDialog (this);\n if (result != null\n && result.exists()\n && result.canRead()\n && result.isDirectory()) {\n resultName = result.getName();\n boolean folderContainsOpYear = strDate.parseOpYear(resultName);\n boolean pathContainsOpYear = newClubEventCalc.setFileName(result);\n if (folderContainsOpYear) {\n opYearFolder = result;\n progress = 2;\n }\n else\n if (pathContainsOpYear) {\n eventsFolder = result;\n progress = 3;\n }\n else\n if (progress < 1) {\n clubRecordsFolder = result;\n progress = 1;\n } else {\n ok = false;\n JOptionPane.showMessageDialog(this,\n \"A Valid Operating Year Folder was not specified\",\n \"Operating Year Folder Missing\",\n JOptionPane.WARNING_MESSAGE,\n Home.getShared().getIcon());\n }\n } else {\n ok = false;\n JOptionPane.showMessageDialog(this,\n \"A Valid \" + desiredFolder + \" was not specified\",\n \"Invalid Folder Specification\",\n JOptionPane.WARNING_MESSAGE,\n Home.getShared().getIcon());\n }\n }\n \n if (ok) {\n closeFile();\n fileSpec = recentFiles.addRecentFile (result);\n handleOpenFile(fileSpec);\n }\n currentFileModified = false;\n }", "void findHistory(File f,IvyXmlWriter xw)\n{\n StringCommand cmd = new StringCommand(cvs_command + \" log \" + getRelativePath(f));\n String rslt = cmd.getContent();\n\n StringTokenizer tok = new StringTokenizer(rslt,\"\\n\");\n String rev = null;\n Date d = null;\n String auth = null;\n String msg = null;\n BvcrFileVersion prior = null;\n Collection<BvcrFileVersion> fvs = new ArrayList<BvcrFileVersion>();\n String headversion = null;\n\n while (tok.hasMoreTokens()) {\n String ln = tok.nextToken();\n if (rev == null) {\n\t if (ln.startsWith(\"revision \")) rev = ln.substring(9).trim();\n\t else if (ln.startsWith(\"head: \")) {\n\t headversion = ln.substring(6);\n\t }\n }\n else {\n\t if (ln.startsWith(\"date: \")) {\n\t StringTokenizer ltok = new StringTokenizer(ln,\";\");\n\t while (ltok.hasMoreTokens()) {\n\t String itm = ltok.nextToken();\n\t int idx = itm.indexOf(\":\");\n\t if (idx >= 0) {\n\t\t String what = itm.substring(0,idx).trim();\n\t\t String cnts = itm.substring(idx+1).trim();\n\t\t if (what.equals(\"date\")) {\n\t\t try {\n\t\t\td = CVS_DATE.parse(cnts);\n\t\t }\n\t\t catch (ParseException e) { }\n\t\t }\n\t\t else if (what.equals(\"author\")) auth = cnts;\n\t\t}\n\t }\n\t }\n\t else if (ln.startsWith(\"----------------------------\") ||\n\t\t ln.startsWith(\"===================================================\")) {\n\t if (auth != null && d != null) {\n\t BvcrFileVersion fv = new BvcrFileVersion(f,rev,d,auth,msg);\n\t if (headversion != null && headversion.equals(rev)) {\n\t\t fv.addAlternativeName(\"HEAD\");\n\t\t}\n\t if (prior != null) prior.addPriorVersion(fv);\n\t prior = fv;\n\t fvs.add(fv);\n\t }\n\t rev = null;\n\t d = null;\n\t msg = null;\n\t auth = null;\n\t }\n\t else if (msg == null) msg = ln;\n\t else msg = msg + \"\\n\" + ln;\n }\n }\n\n xw.begin(\"HISTORY\");\n xw.field(\"FILE\",f.getPath());\n for (BvcrFileVersion fv : fvs) {\n fv.outputXml(xw);\n }\n xw.end(\"HISTORY\");\n}", "public static void main(String [ ] args){\n\t\tScoreTrakker tracker = new ScoreTrakker();\n\t\ttracker.processFiles();\n\t}", "@Override\n public void handleEvent(SVNEvent event, double progress) {\n /**\n * Gets the current action. An action is represented by SVNEventAction. In case of an update an action can be\n * determined via comparing SVNEvent.getAction() and SVNEventAction.UPDATE_-like constants.\n */\n SVNEventAction action = event.getAction();\n String pathChangeType = \" \";\n if (action == SVNEventAction.UPDATE_ADD) {\n /**\n * the item was added\n */\n pathChangeType = \"A\";\n } else if (action == SVNEventAction.UPDATE_DELETE) {\n /**\n * the item was deleted\n */\n pathChangeType = \"D\";\n } else if (action == SVNEventAction.UPDATE_UPDATE) {\n /**\n * Find out in details what state the item is (after having been updated). Gets the status of file/directory\n * item contents. It is SVNStatusType who contains information on the state of an item.\n */\n SVNStatusType contentsStatus = event.getContentsStatus();\n if (contentsStatus == SVNStatusType.CHANGED) {\n /**\n * the item was modified in the repository (got the changes from the repository\n */\n pathChangeType = \"U\";\n } else if (contentsStatus == SVNStatusType.CONFLICTED) {\n /**\n * The file item is in a state of Conflict. That is, changes received from the repository during an\n * update, overlap with local changes the user has in his working copy.\n */\n pathChangeType = \"C\";\n } else if (contentsStatus == SVNStatusType.MERGED) {\n /**\n * The file item was merGed (those changes that came from the repository did not overlap local changes\n * and were merged into the file).\n */\n pathChangeType = \"G\";\n }\n } else if (action == SVNEventAction.UPDATE_EXTERNAL) {\n /** for externals definitions */\n System.out.println(\"Fetching external item into '\" + event.getFile().getAbsolutePath() + \"'\");\n System.out.println(\"External at revision \" + event.getRevision());\n return;\n } else if (action == SVNEventAction.UPDATE_COMPLETED) {\n /**\n * Updating the working copy is completed. Prints out the revision.\n */\n System.out.println(\"At revision \" + event.getRevision());\n return;\n } else if (action == SVNEventAction.ADD) {\n System.out.println(\"A \" + event.getURL());\n return;\n } else if (action == SVNEventAction.DELETE) {\n System.out.println(\"D \" + event.getURL());\n return;\n } else if (action == SVNEventAction.LOCKED) {\n System.out.println(\"L \" + event.getURL());\n return;\n } else if (action == SVNEventAction.LOCK_FAILED) {\n System.out.println(\"failed to lock \" + event.getURL());\n return;\n }\n\n /**\n * Now getting the status of properties of an item. SVNStatusType also contains information on the properties\n * state.\n */\n SVNStatusType propertiesStatus = event.getPropertiesStatus();\n /*\n * At first consider properties are normal (unchanged).\n */\n String propertiesChangeType = \" \";\n if (propertiesStatus == SVNStatusType.CHANGED) {\n /**\n * Properties were updated.\n */\n propertiesChangeType = \"U\";\n } else if (propertiesStatus == SVNStatusType.CONFLICTED) {\n /**\n * Properties are in conflict with the repository.\n */\n propertiesChangeType = \"C\";\n } else if (propertiesStatus == SVNStatusType.MERGED) {\n /**\n * Properties that came from the repository were merged with the local ones.\n */\n propertiesChangeType = \"G\";\n }\n\n /**\n * Gets the status of the lock.\n */\n String lockLabel = \" \";\n SVNStatusType lockType = event.getLockStatus();\n\n if (lockType == SVNStatusType.LOCK_UNLOCKED) {\n /**\n * The lock is broken by someone.\n */\n lockLabel = \"B\";\n }\n\n System.out.println(pathChangeType + propertiesChangeType + lockLabel + \" \" + event.getURL());\n }", "List<ChangedFile> addUntrackedFilesToIndex(Map<Project, List<ChangedFile>> files);", "public void openFiles(List<Path> filesToOpen) {\n LibraryTab toRaise = null;\n int initialCount = filesToOpen.size();\n int removed = 0;\n\n // Check if any of the files are already open:\n for (Iterator<Path> iterator = filesToOpen.iterator(); iterator.hasNext(); ) {\n Path file = iterator.next();\n for (int i = 0; i < frame.getTabbedPane().getTabs().size(); i++) {\n LibraryTab libraryTab = frame.getLibraryTabAt(i);\n if ((libraryTab.getBibDatabaseContext().getDatabasePath().isPresent())\n && libraryTab.getBibDatabaseContext().getDatabasePath().get().equals(file)) {\n iterator.remove();\n removed++;\n // See if we removed the final one. If so, we must perhaps\n // raise the LibraryTab in question:\n if (removed == initialCount) {\n toRaise = libraryTab;\n }\n // no more LibraryTabs to check, we found a matching one\n break;\n }\n }\n }\n\n // Run the actual open in a thread to prevent the program\n // locking until the file is loaded.\n if (!filesToOpen.isEmpty()) {\n FileHistoryMenu fileHistory = frame.getFileHistory();\n filesToOpen.forEach(theFile -> {\n // This method will execute the concrete file opening and loading in a background thread\n openTheFile(theFile);\n fileHistory.newFile(theFile);\n });\n } else if (toRaise != null) {\n // If no files are remaining to open, this could mean that a file was\n // already open. If so, we may have to raise the correct tab:\n frame.showLibraryTab(toRaise);\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(path.getAbsolutePath().startsWith(Constants.getAppDirectory())) {\n\t\t\t\t\tshowToast(\"Not implemented for Home dir yet\");\n\t\t\t\t\t//open file browser\n\t\t\t\t}\n\t\t\t\telse {\n//\t\t\t\t\tCopyTask copyTask = new CopyTask();\n//\t\t\t\t\tcopyTask.destination = Constants.getAppDirectory();\n//\t\t\t\t\tcopyTask.execute(selList);\n\t\t\t\t\t// Just copy the files to home directory\n\t\t\t\t\tfor(File sel:selList) {\n\t\t\t\t\t\tUtils.copy(sel, Constants.getAppDirectory());\n\t\t\t\t\t}\n\t\t\t\t\tshowToast(\"Import complete\");\n\t\t\t\t}\n\t\t\t\t// Clean up\n\t\t\t\tcancelAction();\n\t\t\t}", "private void notifyListTaskFinished(List<IFile> files) {\n Intent intent = new Intent(LocalAction.ACTION_BACKUP_SERVICE_FINISHED);\n intent.putExtra(ACTION, ACTION_LIST);\n intent.putParcelableArrayListExtra(FOLDER_CONTENT, Utils.wrapAsArrayList(files));\n intent.putExtra(CALLER_ID, mCallerId);\n mBroadcastManager.sendBroadcast(intent);\n }", "public void processFiles(){\n\t\tfor(String fileName : files) {\n\t\t\ttry {\n\t\t\t\tloadDataFromFile(fileName);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"Can't open file: \" + fileName);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprintInOrder();\n\t\t\tstudents.clear();\n\t\t}\n\t}", "void doShowFiles()\n\t{\n\t\ttry\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tIterator itr = m_fileInfo.getAllFiles();\n\n\t\t\twhile(itr.hasNext())\n\t\t\t{\n\t\t\t\tSourceFile m = (SourceFile) ((Map.Entry)itr.next()).getValue();\n\n\t\t\t\tString name = m.getName();\n\t\t\t\tint id = m.getId();\n\t\t\t\tString path = m.getFullPath();\n\n\t\t\t\tsb.append(id);\n\t\t\t\tsb.append(' ');\n\t\t\t\tsb.append(path);\n\t\t\t\tsb.append(\", \"); //$NON-NLS-1$\n\t\t\t\tsb.append(name);\n\t\t\t\tsb.append(m_newline);\n\t\t\t}\n\t\t\tout( sb.toString() );\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noSourceFilesFound\")); //$NON-NLS-1$\n\t\t}\n\t}", "public static void main(String[] args) {\r\n\t\t// TODO: Make these arguments properties\r\n\t\tif ( args.length < 5) {\r\n\t\t\tSystem.out.println(\"Usage: IssuesIngest <RepoOwner> <RepoName> <DIR_PATH_TO_STORE_ISSUES> <PATH_TO_PREEXISTING_INDEX_FILE> <PATH_TO_LAST_PROCESSED_FILE>\"); \r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tConfig.loadConfiguration();\r\n\t\t} catch (IOException ex) {\r\n\t\t\tSystem.out.println(\"An IOException occurred while loading the configuration!\");\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\r\n\t\tLocalDateTime start= LocalDateTime.now();\r\n\t\tint lastProcessedIssue = 0;\r\n\t\tint count = 0;\r\n\t\ttry {\r\n\t\t\tGitHub github = GitHub.connectUsingOAuth(Config.githubtoken);\r\n\t\t\tGHRepository repository = github.getUser(args[0]).getRepository(args[1]);\r\n\t\t\tSystem.out.println(\"Ingesting issues from \"+ args[0] + \"/\" + repository.getName());\r\n\r\n\t\t\tIssueIndexer.loadIndex(args[3]);\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(args[4]));\r\n\r\n\t\t\t// Note: This is a bit of a hack. \r\n\t\t\t// If kohsuke's github API had a way to get issues opened after a certain timestamp, or a certain issue number,\r\n\t\t\t// thsi implementation would have been much cleaner...\r\n\r\n\t\t\tString str = br.readLine();\r\n\t\t\tbr.close();\r\n\t\t\tif ( str != null) {\r\n\t\t\t\tlastProcessedIssue = Integer.parseInt(str); \r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tlastProcessedIssue = lastProcessedIssue + 1;\r\n\t\t\t\t\tGHIssue Issue = repository.getIssue(lastProcessedIssue);\r\n\t\t\t\t\tString filename = args[2]+ File.separator + \"Issue\" + String.valueOf(lastProcessedIssue);\r\n\r\n\t\t\t\t\tString body = Issue.getBody();\r\n\r\n\t\t\t\t\tFileUtils.writeStringToFile(new File(filename), body);\t\t\t\t\t\t\r\n\t\t\t\t\tFileUtils.writeStringToFile(new File(args[4]), Integer.toString(lastProcessedIssue));\r\n\r\n\t\t\t\t\tIssueIndexer.IndexIssue(lastProcessedIssue, body);\r\n\t\t\t\t\tcount = count + 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (EOFException ex) {\r\n\r\n\t\t\tDateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\t\tSystem.out.println(\"Processed \" + count + \" new issues @ \" + dtf.format(LocalDateTime.now()));\r\n\t\t\tIssueIndexer.persistIndex(args[3]);\r\n\t\t\tSystem.exit(0);\r\n\t\t} catch (IOException ex) {\r\n\t\t\tif (ex.getMessage().equalsIgnoreCase(\"api.github.com\")) {\r\n\t\t\t\tSystem.out.println(\"An error has occurred reaching \" + ex.getMessage() + \"! Please check your network connection.\");\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t\tDateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\t\tLocalDateTime end= LocalDateTime.now();\r\n\t\t\tlong diffInSeconds = java.time.Duration.between(start, end).getSeconds();\r\n\t\t\tSystem.out.println(\"Processed \" + count + \" new issues @ \" + dtf.format(end) + \" in \" + diffInSeconds + \" seconds..\" );\r\n\t\t\tIssueIndexer.persistIndex(args[3]);\r\n\t\t\tSystem.exit(0);\r\n\t\t} \r\n\t}", "public void accumulateDetailedLogFiles(){\r\n\t\tString filter2 = \"_advanced_detail_analyzed\";\r\n\t\tString filter1 = \"_standard_detail_analyzed\";\r\n\r\n\t\tArrayList<File> files1 = new ArrayList<File>();\r\n\t\tArrayList<File> files2 = new ArrayList<File>();\r\n\t\t\r\n\t\t//begin with creation of new file\r\n\t\tJFileChooser fc = new JFileChooser();\r\n\t\t\r\n\t\t//set directory and \".log\" filter\r\n\t\tfc.setMultiSelectionEnabled(true);\r\n\t\tfc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\r\n\t\tfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\t\r\n\t\tint status = fc.showDialog(this, Messages.getString(\"EditLogControlPanel.approveButton\"));\r\n\t\t\r\n\t\tif(status == JFileChooser.APPROVE_OPTION){\r\n\t\t\tFile[] tmpFiles = fc.getSelectedFiles();\r\n\t\t\t//sort the files\r\n\t\t\tArrayList<File> sortedFiles = new ArrayList<File>();\r\n\t\t\t\r\n\t\r\n\t\t\tfor(int i = 0; i < tmpFiles.length; i++){\r\n\t\t\t\tif(sortedFiles.size() == 0) sortedFiles.add(tmpFiles[i]);\r\n\t\t\t\telse{\r\n\t\t\t\t\tboolean sorted = false;\r\n\t\t\t\t\tfor(File f:sortedFiles){\r\n\t\t\t\t\t\tif(compare(tmpFiles[i].getName().split(\"_\"),f.getName().split(\"_\")) < 0) {\r\n\t\t\t\t\t\t\tsorted = true;\r\n\t\t\t\t\t\t\tsortedFiles.add(sortedFiles.indexOf(f), tmpFiles[i]);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!sorted) sortedFiles.add(tmpFiles[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFileWriter fstream1;\r\n\t\t\tFileWriter fstream2;\r\n\t\t\ttry {\r\n\t\t\t\tif(!(new File(tmpFiles[0].getParent() + \"/diagramms/\")).exists()) (new File(tmpFiles[0].getParent() + \"/diagramms/\")).mkdir();\r\n\t\t\t\tfstream1 = new FileWriter(tmpFiles[0].getParent() + \"/diagramms/standardAttackedDetailedDiagramm.txt\", false);\r\n\t\t\t\tBufferedWriter out1 = new BufferedWriter(fstream1);\r\n\t\t\t\t\r\n\t\t\t\tfstream2 = new FileWriter(tmpFiles[0].getParent() + \"/diagramms/advancedAttackedDetailedDiagramm.txt\", false);\r\n\t\t\t\tBufferedWriter out2 = new BufferedWriter(fstream2);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tfloat[][] standardArray = new float[100][100];\r\n\t\t\t\tfloat[][] advancedArray = new float[100][100];\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < standardArray.length; i++){\r\n\t\t\t\t\tfor(int j = 0; j < standardArray[0].length; j++){\r\n\t\t\t\t\t\tstandardArray[i][j] = -1;\r\n\t\t\t\t\t\tadvancedArray[i][j] = -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tint counter = 0;\r\n\t\t\t\tfor(File file:sortedFiles){\r\n\t\t\t\t\t//get log names\r\n\t\t\t\t\tArrayList<File> files = getFileList(file);\r\n\t\t\t\t\r\n\t\t\t\t\tfiles1 = new ArrayList<File>();\r\n\t\t\t\t\tfiles2 = new ArrayList<File>();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(File f:files){\r\n\t\t\t\t\t\tif(f.getName().contains(filter1)) files1.add(f);\r\n\t\t\t\t\t\telse if(f.getName().contains(filter2)) files2.add(f);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfloat [] accu1 = accumulateDetailFiles(files1);\r\n\t\t\t\t\tfloat [] accu2 = accumulateDetailFiles(files2);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i = 0; i < accu1.length; i++){\r\n\t\t\t\t\t\tstandardArray[i][counter] = accu1[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i = 0; i < accu2.length; i++){\r\n\t\t\t\t\t\tadvancedArray[i][counter] = accu2[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor(int j = 0; j < tmpFiles.length; j++) {\r\n\t\t\t\t\tout1.write(\"1 \");\r\n\t\t\t\t\tout2.write(\"1 \");\r\n\t\t\t\t}\r\n\t\t\t\tout1.write(\"\\n\");\r\n\t\t\t\tout2.write(\"\\n\");\r\n\t\t\t\tfor(int i = 1; i < standardArray.length; i++) {\r\n\t\t\t\t\tif(standardArray[i][0] == -1) break;\r\n\t\t\t\t\tfor(int j = 0; j < tmpFiles.length; j++){\r\n\t\t\t\t\t\tif(standardArray[i][j] == -1) out1.write(\"0 \");\r\n\t\t\t\t\t\telse out1.write(standardArray[i][j] + \" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tout1.write(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\tfor(int i = 1; i < advancedArray.length; i++) {\r\n\t\t\t\t\tif(advancedArray[i][0] == -1) break;\r\n\t\t\t\t\tfor(int j = 0; j < tmpFiles.length; j++){\r\n\t\t\t\t\t\tif(advancedArray[i][j] == -1) out2.write(\"0 \");\r\n\t\t\t\t\t\telse out2.write(advancedArray[i][j] + \" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tout2.write(\"\\n\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tout1.close();\r\n\t\t\t\tout2.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void handleFileUpdateMessage(String request) {\r\n\t\tString[] commandFragments = Utils.splitCommandIntoFragments(request);\r\n\t\tLoggingUtils.logInfo(logger, \"request=%s;;commandFragments=%s;\", request, Arrays.toString(commandFragments));\r\n\t\tString[] filesFromCommandFrag = Utils.getKeyAndValuefromFragment(commandFragments[0]);\r\n\t\tString[] deleteFilesFromCommandFrag = Utils.getKeyAndValuefromFragment(commandFragments[1]);\r\n\t\tString[] machineFromCommandFrag = Utils.getKeyAndValuefromFragment(commandFragments[2]);\r\n\t\taddNodeFilesToMap(filesFromCommandFrag[1], Machine.parse(machineFromCommandFrag[1]));\r\n\t\tremoveNodeFilesFromMap(deleteFilesFromCommandFrag[1], Machine.parse(machineFromCommandFrag[1]));\r\n\t\t// need to change this to make it consistent with sequential\r\n\t\t// server\r\n\t}", "public void accumulateSimpleLogFiles(String mode){\r\n\t\tString filter2 = \"_advanced_simple_analyzed\";\r\n\t\tString filter1 = \"_standard_simple_analyzed\";\r\n\r\n\t\tArrayList<File> files1 = new ArrayList<File>();\r\n\t\tArrayList<File> files2 = new ArrayList<File>();\r\n\t\t\r\n\t\t//begin with creation of new file\r\n\t\tJFileChooser fc = new JFileChooser();\r\n\t\t\r\n\t\t//set directory and \".log\" filter\r\n\t\tfc.setMultiSelectionEnabled(true);\r\n\t\tfc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\r\n\t\tfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\t\r\n\t\tint status = fc.showDialog(this, Messages.getString(\"EditLogControlPanel.approveButton\"));\r\n\t\t\r\n\t\tif(status == JFileChooser.APPROVE_OPTION){\r\n\t\t\tFile[] tmpFiles = fc.getSelectedFiles();\r\n\t\t\t//sort the files\r\n\t\t\tArrayList<File> sortedFiles = new ArrayList<File>();\r\n\t\t\t\r\n\t\r\n\t\t\tfor(int i = 0; i < tmpFiles.length; i++){\r\n\t\t\t\tif(sortedFiles.size() == 0) sortedFiles.add(tmpFiles[i]);\r\n\t\t\t\telse{\r\n\t\t\t\t\tboolean sorted = false;\r\n\t\t\t\t\tfor(File f:sortedFiles){\r\n\t\t\t\t\t\tif(compare(tmpFiles[i].getName().split(\"_\"),f.getName().split(\"_\")) < 0) {\r\n\t\t\t\t\t\t\tsorted = true;\r\n\t\t\t\t\t\t\tsortedFiles.add(sortedFiles.indexOf(f), tmpFiles[i]);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!sorted) sortedFiles.add(tmpFiles[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFileWriter fstream1;\r\n\t\t\ttry {\r\n\t\t\t\tif(!(new File(tmpFiles[0].getParent() + \"/diagramms/\")).exists()) (new File(tmpFiles[0].getParent() + \"/diagramms/\")).mkdir();\r\n\t\t\t\tfstream1 = new FileWriter(tmpFiles[0].getParent() + \"/diagramms/simpleDiagramm.txt\", false);\r\n\t\t\t\tBufferedWriter out = new BufferedWriter(fstream1);\r\n\r\n\t\t\t\tfor(File file:sortedFiles){\r\n\t\t\t\t\t//get log names\r\n\t\t\t\t\tArrayList<File> files = getFileList(file);\r\n\t\t\t\t\r\n\t\t\t\t\tfiles1 = new ArrayList<File>();\r\n\t\t\t\t\tfiles2 = new ArrayList<File>();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(File f:files){\r\n\t\t\t\t\t\tif(f.getName().contains(filter1)) files1.add(f);\r\n\t\t\t\t\t\telse if(f.getName().contains(filter2)) files2.add(f);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfloat [] accu1;\r\n\t\t\t\t\tfloat [] accu2;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(mode.equals(\"SP\")){\r\n\t\t\t\t\t\taccu1 = accumulateSimpleSilentPeriodFiles(files1);\r\n\t\t\t\t\t\taccu2 = accumulateSimpleSilentPeriodFiles(files2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\taccu1 = accumulateSimpleMixFiles(files1);\r\n\t\t\t\t\t\taccu2 = accumulateSimpleMixFiles(files2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tout.write(\"\" + accu1[0]);\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i = 0; i < accu2.length; i++){\r\n\t\t\t\t\t\tif(accu2[i] != 0)out.write(\" \" + accu2[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tout.write(\"\\n\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tout.write(\"#\");\r\n\t\t\t\t\tfor(int i = 0; i < accu1.length; i++){\r\n\t\t\t\t\t\tif(accu1[i] != 0)out.write(\" \" + accu1[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tout.write(\"\\n\");\r\n\t\t\t\t}\t\t\t\t\r\n\r\n\t\t\t\tout.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n public void actionPerformed(ActionEvent event)\n {\n Object source = event.getSource();\n\n if (source == fileNewItem)\n {\n //\n // File->New is clicked.\n //\n parent.onFileNew();\n }\n else if (source == fileOpenItem)\n {\n //\n // File->Open is clicked.\n //\n parent.onFileOpen();\n }\n else if (source == fileEditItem)\n {\n //\n // File->Edit is clicked.\n //\n parent.onFileEdit();\n }\n else if (source == fileCloseItem)\n {\n //\n // File->Close is clicked.\n //\n parent.onFileClose();\n }\n else if (source == fileAboutItem)\n {\n //\n // File->About is clicked.\n //\n parent.onFileAbout();\n }\n else if (source == fileExitItem)\n {\n //\n // File->Exit is clicked.\n //\n parent.onFileExit();\n }\n }", "public void execute() throws BuildException {\n super.execute();\n\n // minimal Renew logging configuration that forwards messages\n // to the Ant logging system\n Logger logger = Logger.getLogger(\"CH.ifa.draw\");\n AntTaskLogAppender appender = AntTaskLogAppender.getInstance(this);\n logger.addAppender(appender);\n logger.setLevel(Level.INFO);\n logger = Logger.getLogger(\"de.renew\");\n logger.addAppender(appender);\n logger.setLevel(Level.INFO);\n\n // get all files - out of the vector full of filesets -> 2 loops\n Iterator<FileSet> filesetIterator = filesets.iterator();\n while (filesetIterator.hasNext()) {\n FileSet elementFileSet = filesetIterator.next();\n DirectoryScanner dirScan = elementFileSet.getDirectoryScanner(getProject());\n String[] fileNames = dirScan.getIncludedFiles();\n log(\"filenames: \" + fileNames.length, Project.MSG_VERBOSE);\n\n for (int i = 0; i < fileNames.length; i++) {\n String fileName = fileNames[i];\n File inFile = new File(dirScan.getBasedir() + \"/\" + fileName);\n log(\"File: \" + inFile.getAbsolutePath(), Project.MSG_VERBOSE);\n\n // get drawing from file\n Drawing netDrawing = DrawingFileHelper.loadDrawing(inFile,\n new StatusDisplayer() {\n public void showStatus(String message) {\n log(message);\n }\n }); //rnw-Object\n log(\"Drawing: \" + netDrawing, Project.MSG_VERBOSE);\n\n if (netDrawing == null) {\n throw new BuildException(\"Could not read drawing file: \"\n + inFile);\n }\n\n // Export netDrawing\n try {\n File helpFile = new File(destdir + \"/\" + fileName); // helps to get the right directory path\n File outFile = new File(helpFile.getParent() + \"/\"\n + netDrawing.getName() + \".\"\n + defaultExtension);\n\n //create directories\n outFile.getParentFile().mkdirs();\n exportFormat.export(netDrawing, outFile);\n } catch (Exception e) {\n throw new BuildException(e);\n }\n }\n }\n }", "@Override\n public abstract void apply(PersistentFileTransaction transaction);", "void addRecord(HistoryRecord record) throws IOException;", "public void execute(String accNo) {\n log.info(\"executing partial export of {}\", accNo);\n\n Submission submission = submissionService.getSubmission(accNo);\n processCreatedAndUpdatedSubmissions(Collections.singletonList(submission));\n }", "@Override\n public void onPick(FileInfo f) {\n }", "private static void fileOperation() {\n System.out.println(\"-------------------------------------\");\n String dir = getDirectory();\n File fileDir = new File(dir);\n if (!fileDir.isDirectory()) {\n System.out.println(\"Invalid directory entered, return to main menu\");\n return;\n }\n System.out.println(\"Valid directory entered.\");\n boolean flag = true;\n while (flag) {\n try {\n printFileOperationMenu();\n int op = getUserChoice();\n switch (op) {\n case 1:\n retrieveFiles(fileDir);\n break;\n case 2:\n try {\n addFile(fileDir);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n break;\n case 3:\n try {\n removeFile(fileDir);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n break;\n case 4:\n try {\n searchFile(fileDir);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n break;\n case 5:\n fileDir = changeDirectory(fileDir);\n break;\n case 6:\n flag = false;\n break;\n default:\n System.out.println(\"Invalid entry.\");\n System.out.println(\"Please choose your operation: \");\n op = intScanner.nextInt();\n }\n } catch (InputMismatchException e) {\n System.out.println(\"Invalid entry, please try again.\");\n intScanner.next();\n }\n }\n\n }", "private void processFileLine(String line, RevisionInfo revInfo, Map<String, List<RevisionInfo>> result) {\r\n if (line.matches(FILE_LINE_REGEX)) {\r\n String[] segs = line.split(TAB);\r\n List<RevisionInfo> list = result.get(segs[2]);\r\n if (list == null) {\r\n list = new ArrayList<RevisionInfo>();\r\n result.put(segs[2], list);\r\n }\r\n list.add(new RevisionInfo(revInfo.getAuthor(), revInfo.getDate(), revInfo.getComment(), Integer\r\n .parseInt(segs[0])));\r\n }\r\n }", "public static void main(String... args) throws IOException, InterruptedException {\n new FileByFileTool().run(args);\n }", "public static void main(String[] args) throws IOException, SQLException {\n\n // boilerplate\n sourceDB = AndroidDBManager.getProductionInstance();\n analysisDB = AndroidDBManager.getAnalysisInstance();\n\n BufferedWriter resFile = new BufferedWriter(new FileWriter(new File(\"commits.csv\")));\n\n // get the list of committers first\n List<AnalysisPeople> committers = analysisDB.getPeopleForTheTag(\"change\");\n System.out.println(\"will process \" + committers.size() + \" people records\");\n\n for (AnalysisPeople p : committers) {\n System.out.println(p.getEmail() + \" start: \" + p.getActivity_begin() + \", end: \"\n + p.getActivity_end());\n\n List<Change> changes = sourceDB.getAuthorChanges(p.getId(), p.getActivity_begin(),\n p.getActivity_end());\n System.out.println(\" .. \" + changes.size() + \" change(s) found.\");\n\n for (Change c : changes) {\n StringBuilder csvLine = new StringBuilder();\n StringBuilder sbTemp = new StringBuilder();\n\n // date/author/project/target/commits\n sbTemp.append(c.getAuthor_date()).append(COMMA);\n sbTemp.append(\"\\\"\").append(p.getEmail()).append(\"\\\"\").append(COMMA);\n sbTemp.append(sourceDB.getProject(c.getProject_id()).getName()).append(COMMA);\n for (ChangeTarget target : sourceDB.getTargets(c.getId())) {\n csvLine.append(sbTemp.toString()).append(\"\\\"\").append(target.getTarget()).append(\"\\\"\")\n .append(COMMA);\n csvLine.append(target.isAdded()).append(COMMA);\n csvLine.append(target.isEdited()).append(COMMA);\n csvLine.append(target.isDeleted()).append(COMMA).append(CR);\n resFile.write(csvLine.toString());\n }\n }\n resFile.close();\n }\n }", "public void run()\r\n {\r\n debug(\"LoadHistoricData::run() - calling WatchListTableModule.loadHistoricData(\" + index + \")\");\r\n this.loadHistoricData(index);\r\n this.cancel();\r\n }", "@Override\n protected void doOKAction() {\n super.doOKAction();\n\n HashMap<VcsRoot, ArrayList<VirtualFile>> checked = getCheckedFiles();\n for (Map.Entry<VcsRoot, ArrayList<VirtualFile>> entry : checked.entrySet()) {\n for (VirtualFile file : entry.getValue()) {\n ExternalExec.removeFileFromTracking(file, entry.getKey());\n }\n }\n\n project.getMessageBus().syncPublisher(TRACKED_IGNORED_REFRESH).refresh();\n }", "void processContentFiles(final File directoryToProcess, final String configId) {\r\n File[] files = directoryToProcess.listFiles();\r\n for (int fileIndex = 0; fileIndex < files.length; fileIndex++) {\r\n if (!(files[fileIndex].getName().equals(Constants.CONFIGURATION_FILE_NAME) || files[fileIndex]\r\n .getName().startsWith(\"successful_\"))) {\r\n try {\r\n storeContentToInfrastructure(directoryToProcess, configId, files, fileIndex);\r\n }\r\n catch (DepositorException e) {\r\n // FIXME give a message\r\n LOG.error(e.getMessage(), e);\r\n addToFailedConfigurations(configId);\r\n }\r\n }\r\n }\r\n }", "void approveFiles(String[] fileIds,String[] commentList,String userId)throws LMSException;" ]
[ "0.5688063", "0.52102447", "0.5175573", "0.51365167", "0.51034814", "0.5099198", "0.49994352", "0.49861944", "0.49763408", "0.49568832", "0.48753756", "0.4862995", "0.4861525", "0.48488072", "0.48338658", "0.4824683", "0.47861946", "0.47735345", "0.4766475", "0.47649062", "0.47624344", "0.4760923", "0.47446564", "0.47369227", "0.47281703", "0.47193056", "0.4713004", "0.47098017", "0.47086996", "0.47034544", "0.46983284", "0.46699697", "0.4659068", "0.46368048", "0.4625248", "0.46068108", "0.46043548", "0.4604342", "0.45983177", "0.45840403", "0.45773843", "0.45712095", "0.45711088", "0.4569823", "0.45693207", "0.45609882", "0.4560176", "0.45596993", "0.45437896", "0.45320398", "0.4531818", "0.4521518", "0.45210376", "0.45146406", "0.45102927", "0.45098248", "0.45083043", "0.4507606", "0.44950932", "0.44906002", "0.44874716", "0.44835633", "0.4470319", "0.44693682", "0.4464088", "0.4460034", "0.44536054", "0.44493765", "0.44329548", "0.44296256", "0.4420713", "0.44155496", "0.44120857", "0.44041845", "0.43998274", "0.43961236", "0.43772388", "0.43766534", "0.43750036", "0.43614042", "0.43602258", "0.4359706", "0.43585765", "0.43577376", "0.43569875", "0.4354035", "0.43519837", "0.4351418", "0.43514156", "0.43466058", "0.43439183", "0.4343847", "0.43436244", "0.43380368", "0.4331846", "0.43302056", "0.43267167", "0.43238604", "0.43231133", "0.4320652" ]
0.7523681
0
Method for fetching users
@RequestMapping(value = {"/users/list"}, method = RequestMethod.GET) public ResponseEntity<List<User>> fetchUsers() { System.out.println("fetching users"); List<User> user = userDAO.list("APPROVED"); System.out.println(user); return new ResponseEntity<List<User>>(user, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getAllUsers();", "List<User> fetchAllUSers();", "public List getUsers(User user);", "public List<User> getAllUsers();", "List<User> getUsers();", "List<User> getUsers();", "public void getAllUsers() {\n\t\t\n\t}", "public List<User> getUsers();", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.queryUser();\n\t}", "List<KingdomUser> getUsers();", "List<User> getAllUsers();", "List<User> getAllUsers();", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "List<KingdomUser> getAllUsers();", "@Override\r\n\tpublic User getAllUser() {\n\t\tList<User> list=null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM USER\";\r\n\t\t\treturn qr.query(sql, new BeanHandler<User>(User.class));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@GetMapping(\"/allusers\")\n\t@Secured({CommonConstants.ROLE_EMPLOYEE,CommonConstants.ROLE_ADMIN})\n\tpublic ResponseEntity<List<UserEntity>> fetchUsers(){\n\t\treturn new ResponseEntity<List<UserEntity>>(this.service.findAll(), HttpStatus.OK);\n\t}", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "@Override\n\tpublic List<User> getallUserDetail() {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\t// select all from table user\n\t\tString sql = \"SELECT * FROM user\";\n\t\tList<User> listuser = jdbcTemplate.query(sql, new RowMapper<User>() {\n\n\t\t\t@Override\n\t\t\tpublic User mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tUser user = new User();\n\t\t\t\t// set parameters\n\t\t\t\tuser.setUserid(rs.getLong(\"user_id\"));\n\t\t\t\tuser.setEmailid(rs.getString(\"emailid\"));\n\t\t\t\tuser.setAppversion(rs.getString(\"appversion\"));\n\t\t\t\tuser.setGcmregistartionkey(rs.getString(\"gcmregistartionkey\"));\n\t\t\t\tuser.setMobileno(rs.getString(\"mobileno\"));\n\t\t\t\tuser.setUuid(rs.getString(\"uuid\"));\n\t\t\t\tuser.setUsername(rs.getString(\"username\"));\n\t\t\t\tuser.setCreateddate(rs.getDate(\"createddate\"));\n\t\t\t\treturn user;\n\t\t\t}\n\n\t\t});\n\n\t\treturn listuser;\n\n\t}", "@Override\n public Users getUsers() throws UserException {\n Users users = new Users();\n log.debug(\"getUsers\");\n User user = null;\n ResultSet result;\n Connection conn = null;\n PreparedStatement stm = null;\n try {\n conn = provider.getConnection();\n\n stm = conn.prepareStatement(GET_ALL_USERS);\n result = stm.executeQuery();\n\n while (result.next()) {\n user = buildUserFromResult(result);\n log.debug(\"User found {}\", user);\n users.add((DataUser) user);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n throw new UserException(e.getMessage());\n\n } finally {\n try {\n stm.close();\n conn.close();\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n }\n return users;\n }", "@Override\n public List<User> selectAllUsers() {\n\n List<User> userList = new ArrayList<>();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n String sql = \"SELECT * FROM ers_users\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n userList.add(\n new User(\n rs.getInt(1)\n , rs.getString(2)\n , rs.getString(3)\n , rs.getString(4)\n , rs.getString(5)\n , rs.getString(6)\n , rs.getInt(7)\n )\n );\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return userList;\n }", "Iterable<User> getAllUsers();", "private void getAllUsers(){\n\t\t\n\t\tSystem.out.println(\"Retrieving Social Graph Data from tibbr...\"); \n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\n\t\tString params = \"?sort=firstNameAsc&fields=name,jive.username,-resources&count=5000&startIndex=0\"; \n\t\tHttpGet getRequest = new HttpGet(urlBase+\"/api/core/v3/people/@all\"+params);\n\t\t\n\n\t\t\t \n\t\tgetRequest.setHeader(\"Authorization\", \"Basic \" + this.auth);\n\t\t\n\t\t\t\n\t\ttry {\n\t\t\tHttpResponse response = httpClient.execute(getRequest);\n\t\t\tString jsonOut = readStream(response.getEntity().getContent());\n\t\t // Remove throwline if present\n\t\t\tjsonOut = removeThrowLine(jsonOut);\n\t\t getAllUserElements(jsonOut);\n\t\t \n\t \n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "@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 List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "@Override\r\n\tpublic List<User> getAllUser() {\n\t\tList<User> listStudents = new ArrayList<User>();\r\n\t\tlistStudents = userReposotory.findAll();\r\n\t\treturn listStudents;\r\n\t}", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "@Override\r\n\tpublic List<?> getAllUser() {\n\t\treturn userQueryRepositoryImpl.getAllUser();\r\n\t}", "public List<YuserVO> getAllUsers() {\n\t\tList<YuserVO> list = null;\n\t\t\ttry {\n\t\t\t\tlist = userDao.getAllUsers();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"get users failed ..................................\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn list;\n\t}", "com.heroiclabs.nakama.api.User getUsers(int index);", "@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}", "public List<Users> getUserList(){\n\t\tList<Users> users = (List<Users>) this.userDao.findAll();\n\t\treturn users;\n\t}", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "@Override\n\tpublic List<User> getAllUser() {\n\t\tList<User> users = dao.searchAllUser();\n\t\treturn users;\n\t}", "public ArrayList<IndividualUser> listAllUsers() {\n try {\n PreparedStatement s = sql.prepareStatement(\"SELECT id, userName, firstName, lastName FROM Users \");\n s.execute();\n ResultSet results = s.getResultSet();\n ArrayList<IndividualUser> users = new ArrayList<>();\n if (!results.isBeforeFirst()) {\n results.close();\n s.close();\n return users;\n }\n\n while (!results.isLast()) {\n results.next();\n IndividualUser u = new IndividualUser(results.getInt(1), results.getString(2), results.getString(3), results.getString(4));\n\n users.add(u);\n\n }\n\n results.close();\n s.close();\n\n return users;\n } catch (SQLException e) {\n sqlException(e);\n return null;\n }\n }", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.getList();\n\t}", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "@Override\n\tpublic Collection<Users> read() {\n\t\treturn userDAO.readAll();\n\t}", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "@Override\r\n\tpublic List<User> getUsers() {\n\t\tList<User> userlist=dao.getUsers();\r\n\t\treturn userlist;\r\n\t}", "public List<User> getUserList();", "@Override\n\tpublic List<User> FetchAll() {\n\t\treturn null;\n\t}", "public List<User> displayUsers() {\n\t\t\r\n\t\ttry {\r\n\t\t\treturn sessionFactory.getCurrentSession().createQuery(\"from com.niit.model.User\").list();\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<User> list() \n\t{\n\t\treturn userDAO.list();\n\t}", "public List<Users> getAllUsers() {\r\n\t\t// return usDao.findAll();\r\n\t\treturn usDao.getAllUsers();\r\n\t}", "public List<User> listUsers(String userName);", "public List<User> getAllUsers(){\n return userRepository.findAll();\n }", "@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}", "@Override\n\tpublic List<User> findUser() {\n\t\treturn userdao.findUser();\n\t}", "@Override\r\n public List<User> userfindAll() {\n return userMapper.userfindAll();\r\n }", "@Override\n\tpublic List<User> getAllUsers() {\n\t\tlog.info(\"get all users!\");\n\t\treturn userRepository.findAll();\n\t}", "public static List<User> getUsersList(){\n\t\tWSResponse response = null;\n\t\tList<User> resultList = new ArrayList<User>();\n\t\ttry{\n\t\tPromise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.GET_USERS_URL)\n\t\t\t\t\t\t\t\t\t\t.setContentType(Urls.CONTENT_TYPE_JSON)\n\t\t\t\t\t\t\t\t\t\t.get();\n\t\tresponse = result.get(10000);\n\t\tGson gson = new Gson();\n\t\tUser[] users = gson.fromJson(response.getBody(), User[].class);\n\t\tfor(int i=0; i<users.length; i++){\n\t\t\tresultList.add(users[i]);\n\t\t}\n\t\t} catch(Exception exception){\n\t\t\tController.flash(Messages.ERROR, Messages.CANT_LOAD_USERS + exception);\n\t\t}\n\t\treturn resultList;\n\t}", "public List<Utilizator> listUsers();", "public static ArrayList<User> selectUsers() {\n \n ArrayList<User> users = new ArrayList<>();\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n String query = \"SELECT * FROM users \";\n \n try {\n ps = connection.prepareStatement(query);\n rs = ps.executeQuery();\n ResultSetMetaData mD = rs.getMetaData();\n int colCount = mD.getColumnCount();\n User user = null;\n \n for (int i = 0; i < colCount; i++) {\n if (rs.next()) {\n user = new User();\n user.setUserID(rs.getInt(\"userID\"));\n user.setFirstName(rs.getString(\"firstName\"));\n user.setLastName(rs.getString(\"lastName\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddr1(rs.getString(\"addr1\"));\n user.setAddr2(rs.getString(\"addr2\"));\n user.setCity(rs.getString(\"city\"));\n user.setStateRegion(rs.getString(\"state\"));\n user.setZipcode(rs.getInt(\"zip\"));\n user.setCountry(rs.getString(\"country\"));\n user.setRoleName(rs.getString(\"roleName\"));\n System.out.println(user.getFirstName());\n users.add(user);\n }\n }\n return users;\n } catch (SQLException e) {\n System.out.println(e);\n return null;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "@Override\r\n\tpublic List<User> getUserList() throws MyUserException {\n\t\treturn userDao.getUserList();\r\n\t}", "@GetMapping(\"/users\")\n @PreAuthorize(\"hasRole('Admin')\")\n public SuccessResponse<List<UserResponse>> getUsers() {\n if(!connectionService.isReachable()) {\n String exceptionMessage = \"Cannot connect to database.\";\n System.out.println(exceptionMessage);\n throw new DatabaseException(exceptionMessage);\n }\n\n final var users = userService\n .findAllUsers()\n .stream()\n .map(UserResponse::fromUser)\n .collect(Collectors.toList());\n return new SuccessResponse<>(users);\n }", "public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}", "public List<User> getUserList()\r\n\t{\r\n\t//\tGet the user list\r\n\t//\r\n\t\treturn identificationService.loadUserList();\r\n\t}", "@Override\r\n\tpublic List<User> findAllUsers() {\n\t\treturn userDAO.findAllUsers();\r\n\t}", "@Override\n\tpublic List<ERSUser> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}", "@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n public ResponseEntity getUsers() {\n logger.debug(\"HTTP GET /users called\");\n List<User> userList = userService.getUsers(0.00, 4000.00);\n\n return new ResponseEntity(new UserResponse(userList), HttpStatus.OK);\n }", "public List<TbUser> getAllUsers() {\n return userRepository.findAll();\n }", "@Override\n\tpublic List<User> selectAllUser() {\n\t\tList<User> users = null;\n\t\ttry {\n\t\t\tusers = client.queryForList(\"selectAllUser\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\n\t}", "@Override\n public Response getUsers() throws NotFoundException {\n List<TechGalleryUser> userEntities = userDao.findAll();\n // if user list is null, return a not found exception\n if (userEntities == null) {\n throw new NotFoundException(OPERATION_FAILED);\n } else {\n UsersResponse response = new UsersResponse();\n List<UserResponse> innerList = new ArrayList<UserResponse>();\n\n for (int i = 0; i < userEntities.size(); i++) {\n TechGalleryUser user = userEntities.get(i);\n UserResponse userResponseItem = new UserResponse();\n userResponseItem.setId(user.getId());\n userResponseItem.setName(user.getName());\n userResponseItem.setEmail(user.getEmail());\n userResponseItem.setPhoto(user.getPhoto());\n innerList.add(userResponseItem);\n }\n\n response.setUsers(innerList);\n return response;\n }\n }", "@Override\n\tpublic ArrayList<User> searchUsers() {\n\t\treturn userDao.searchUsers();\n\t}", "@Override\n\tpublic List<User> findAllUser() {\n\t\treturn mapper.findAllUser();\n\t}", "public List<UserDTO> getUsers();", "com.rpg.framework.database.Protocol.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "@Override\n\tpublic List<UserWithoutPassword> getUserList() {\n\t\treturn userDao.findAll();\n\t}", "public List<User> fetchAll()\n {\n String query = \"SELECT * FROM user\";\n RowMapper<User> userRowMapper = new BeanPropertyRowMapper<>(User.class); // a collection type that holds the results of the query\n List<User> userList; // list of users that will be returned\n try\n {\n userList = template.query(query, userRowMapper); // call the database and assign the results to the userList\n } catch (EmptyResultDataAccessException e)\n {\n userList = new ArrayList<>(); // return an empty arrayList\n }\n return userList;\n }", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class))\n// .build();\n// return executor.selectList(sqlParameter);\n return null;\n }", "public ResultSet fetchSelectAllUsers() {\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tTo create connection to the DataBase\r\n\t\t\t*/\r\n\t\t\tnew DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tStore the table data in ResultSet rs and then return it\r\n\t\t\t*/\r\n\t\t\trs = stmt.executeQuery(SELECT_ALL_USERS_QUERY);\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch(ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\tcloseDbConnection();\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 rs;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<User> listUsers() {\n Session session = this.sessionFactory.getCurrentSession();\n List<User> UsersList = session.createQuery(\"from User\").list();\n for(User u : UsersList){\n logger.info(\"User List::\"+u);\n }\n return UsersList;\n }", "List<UserDisplayDto> getAllUsers();", "@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}", "@Override\n public ObservableList<User> getAllUsers() {\n return controller.getAllUsers();\n }", "@Override\r\n\tpublic List<User> viewUsers() {\n\t\treturn user.viewUsers();\r\n\t}", "public ArrayList<User> getAllUsers() {\n return profile.getAllUsers();\n }", "@Override\n\tpublic Iterable<com.example.demo.model.User> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}", "@Override\n\tpublic List<User> getList() {\n\t\treturn Lists.newArrayList(userRepository.findAll());\n\t}", "public static ObservableList<User> getUsers() throws SQLException {\n db.init();\n String q1 = \"{call [sp_retrieveUsers]}\";\n ObservableList<User> userList = FXCollections.observableArrayList();\n ResultSet rs = null;\n try {\n rs = db.callableStatementRs(q1);\n } catch (SQLException ex) {\n System.out.println(\"An error occured: \" + ex);\n }\n\n if (rs != null) {\n try {\n while (rs.next()) {\n User user = new User();\n user.setUserId(Integer.toString(rs.getInt(\"user_id\")));\n user.setFirstName(rs.getString(\"first_name\"));\n user.setLastName(rs.getString(\"last_name\"));\n user.setEmail(rs.getString(\"email\"));\n user.setUsername(rs.getString(\"username\"));\n user.setCrewId(Integer.toString(rs.getInt(\"crewId\")));\n\n userList.add(user);\n }\n } catch (SQLException ex) {\n System.out.println(\"An exception occured: \" + ex);\n log.error(ex.toString());\n }\n }\n return userList;\n }", "public List<User> queryAllUsers() {\n \tList<User> userList = new ArrayList<>();\n\tUser user;\n String sql = \"SELECT * FROM users\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tuser = new User();\n user.setUserName(this.resultSet.getString(\"user_name\"));\n user.setHashedPassword(this.resultSet.getString(\"hashed_password\"));\n\t\tuser.setEmail(this.resultSet.getString(\"email\"));\n user.setHashedAnswer(this.resultSet.getString(\"hashed_answer\"));\n user.setIsActivated(this.resultSet.getInt(\"is_activated\"));\n user.setPublicKey(this.resultSet.getString(\"pubkey\"));\n\t\tuserList.add(user);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return userList;\n }", "@Override\n\tpublic List<User> findAllUser() {\n\t\treturn userDao.findAllUser();\n\t}", "@Override\n public List<User> getAllUsers() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n List<User> hiberusers =\n session.createQuery(\"From User\").list();\n tx.commit();\n session.close();\n return hiberusers;\n }", "private void listUsers(Request request, Response response) {\r\n\t\tList<UserBean> userList = null;\r\n\r\n\t\ttry {\r\n\t\t\tuserList = userService.findUsers();\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tuserList);\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<User> showUsers() throws JsonMappingException, JsonProcessingException {\n\n\t\tString url = \"http://localhost:8081/fundoouser/showall\";\n\t\t\n\t\tResponse userResponse = restTemplate.getForObject(url, Response.class);\n\t\t\n\t\tList<User> userList = (List<User>) userResponse.getData(); \n\t\t\n\t\treturn userList;\n\t}", "@GET\n\t//@Compress //can be used only if you want to SELECTIVELY enable compression at the method level. By using the EncodingFilter everything is compressed now. \n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic List<User> getUsers(\n\t\t\t@QueryParam(\"orderByInsertionDate\") String orderByInsertionDate,\n\t\t\t@QueryParam(\"numberDaysToLookBack\") Integer numberDaysToLookBack)\n\t\t\tthrows IOException,\tAppException {\n\t\t\n\t\tList<com.vforcore.model.aa.User> allModelUsers = userRepository.findAll();\n\t\t\n\t\tList<User> users = new ArrayList<User>();\n\t\tfor (com.vforcore.model.aa.User mu : allModelUsers) {\n\t\t\tUser user = new User(mu.getId(), mu.getCreated(), mu.getLastName(), mu.getLastName(), mu.getEmail(), mu.getUsername(), mu.isCredentialsNonExpired(), mu.isAccountNonLocked(), mu.isAccountNonExpired(), mu.isEnabled());\n\t\t\tusers.add(user);\n\t\t}\n\t\t\n\t\t\n\t\treturn users;\n\t}", "public List<User> loadAllUserDetails()throws Exception;", "Collection<User> getUsers() throws DataAccessException;", "@SelectProvider(type = UserProviders.class, method = \"getAllUsersProvider\")\n @Results({\n @Result(column = \"created_at\", property = \"createdAt\")\n })\n List<User> getAllUsers();", "@Override\n\tpublic List<User> getAll() {\n\t\treturn userDao.getAll();\n\t}", "@Override\n\t@Transactional(readOnly = true)\n\tpublic List<UserDto> getUsers() {\n\n\t\tList<UserEntity> userEntities = userRepository.findAll();\n\t\tList<UserDto> userDTOs = new ArrayList<>();\n\n\t\tfor (UserEntity u : userEntities)\n\t\t\tuserDTOs.add(etd.getUser(u));\n\t\treturn userDTOs;\n\n\t}", "@GetMapping\n\tpublic List<UserRest> getUsers(@RequestParam(value = \"page\", defaultValue = \"0\") int page,\n\t\t\t@RequestParam(value = \"limit\", defaultValue = \"25\") int limit){\n\t\t\n\t\tList<UserRest> returnValue = new ArrayList<>();\n\t\t\n\t\tList<UserDTO> users = userService.getUsers(page, limit);\n\t\t\n\t\tfor (UserDTO userDTO : users) {\n\t\t\tUserRest userModel = new UserRest();\n\t\t\tBeanUtils.copyProperties(userDTO, userModel);\n\t\t\treturnValue.add(userModel);\n\t\t}\n\t\t\n\t\treturn returnValue;\n\t}", "public ArrayList<User> showUsers(){\n\t\treturn this.userList;\n\t}", "List<User> loadActiveUsers(User user);", "@Override\n\tpublic Iterable<User> getAllUser() {\n\t\treturn userRepository.findAll();\n\t}", "@RequestMapping(method = RequestMethod.GET, path = \"/allUsers\")\n\t\tpublic List<leaderBoard> getAllUsers(){\n\t\t\t logger.info(\"Entered into Controller Layer\");\n\t\t List<leaderBoard> results = leaderboardrepository.findAll();\n\t\t logger.info(\"Number of Records Fetched:\" + results.size());\n\t\t \n\t\t return results;\n\t\t //this works\n\t\t \n\t\t \n\t\t}", "@Override\r\n\tpublic List listAllUser() {\n\t\treturn userDAO.getUserinfoList();\r\n\t}" ]
[ "0.78316075", "0.7775067", "0.7557107", "0.75153995", "0.7482432", "0.7482432", "0.7479317", "0.74333537", "0.74239194", "0.7423181", "0.74163353", "0.74163353", "0.74052405", "0.73949355", "0.7368148", "0.72829574", "0.72824043", "0.7280213", "0.72688115", "0.72509027", "0.7241557", "0.72107416", "0.7184275", "0.71639985", "0.7161113", "0.7154282", "0.71441287", "0.7143535", "0.7143274", "0.7134059", "0.71292895", "0.7110731", "0.7103252", "0.71025974", "0.7099885", "0.7099711", "0.7093476", "0.70922744", "0.7087536", "0.7074196", "0.7074178", "0.7073784", "0.70701724", "0.7067509", "0.7066846", "0.7057483", "0.70527136", "0.70462435", "0.70244735", "0.7023893", "0.70231485", "0.70168805", "0.7016708", "0.7008691", "0.69967103", "0.69949555", "0.69864404", "0.69855267", "0.69849926", "0.69843477", "0.6982676", "0.6975473", "0.6974299", "0.6966741", "0.6961752", "0.6953604", "0.6951309", "0.6948621", "0.6936823", "0.69365007", "0.6933838", "0.69335866", "0.69314873", "0.6926398", "0.6907897", "0.6907045", "0.6900372", "0.6889765", "0.68874454", "0.68845075", "0.6883734", "0.6873628", "0.6872075", "0.68688667", "0.6868743", "0.686839", "0.6868295", "0.6866509", "0.6863613", "0.68592674", "0.6856666", "0.6852142", "0.6847495", "0.68397343", "0.6839506", "0.6838175", "0.6833043", "0.68325424", "0.6831945", "0.683106" ]
0.7492823
4
function to fetch user and user detail
@RequestMapping(value = {"/user/{id}"}, method = RequestMethod.GET) public ResponseEntity<UserModel> fetchUser(@PathVariable("id") int id) { //Setting user inside model UserModel userModel = new UserModel(); User user = userDAO.getUser(id); userModel.setUser(user); //Setting list of events created by user inside model List<Events> events = eventsDAO.getUserEvents(id); userModel.setEvents(events); //Setting list of jobs created by user inside model List<Job> job = jobDAO.getUserJobs(id); userModel.setJob(job); //Settling list of blogs created by user inside model List<Blog> blog = blogDAO.getUsersBlogs(id); userModel.setBlog(blog); //Settling list of events user has joined inside model List<EventJoined> eventJoined = eventJoinedDAO.list(id); List<Events> joinedEvents = new ArrayList<>(); for (EventJoined ej : eventJoined) { joinedEvents.add(ej.getEvents()); } userModel.setJoinedEvents(joinedEvents); //Settling list of jobs user has applied for inside model List<JobApplied> jobApplieds = jobAppliedDAO.list(id); List<Job> appliedJobList = new ArrayList<>(); for (JobApplied ja : jobApplieds) { appliedJobList.add(ja.getJob()); } userModel.setAppliedJobList(appliedJobList); //Setting list of user's friends return new ResponseEntity<UserModel>(userModel, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "User getUserInformation(Long user_id);", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimpleDao.retrieve(\"tp_users\", reqs);\n\t}", "private void getUserDetailApi() {\n RetrofitService.getOtpData(new Dialog(mContext), retrofitApiClient.getUserDetail(strUserId), new WebResponse() {\n @Override\n public void onResponseSuccess(Response<?> result) {\n UserDataMainModal mainModal = (UserDataMainModal) result.body();\n if (mainModal != null) {\n AppPreference.setBooleanPreference(mContext, Constant.IS_PROFILE_UPDATE, true);\n Gson gson = new GsonBuilder().setLenient().create();\n String data = gson.toJson(mainModal);\n AppPreference.setStringPreference(mContext, Constant.USER_DATA, data);\n User.setUser(mainModal);\n }\n }\n\n @Override\n public void onResponseFailed(String error) {\n Alerts.show(mContext, error);\n }\n });\n }", "User getUserDetails(int userId);", "@Override\r\n\tpublic User_Detail getUserDetail(int userId) {\n\t\treturn sessionFactory.getCurrentSession().get(User_Detail.class, Integer.valueOf(userId));\r\n\t}", "public List<UserParam> findUesrDetailInfo(UserEntity userEntity);", "@Override\n public String getUserPersonalInfo(String user_id)\n {\n String returnVal = null; \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"SELECT information from user_personal_information where user_id = '\" + user_id + \"'\";\n \n ResultSet rs = stmt.executeQuery(sql);\n \n \n while(rs.next())\n {\n returnVal = rs.getString(\"information\");\n }\n \n stmt.close();\n conn.close();\n \n } \n catch (SQLException ex) { ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return null;} \n return returnVal;\n }", "public User details(String user);", "UserInfo getUserById(Integer user_id);", "public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<String, String>();\n String selectQuery = \"SELECT * FROM \" + TABLE_USER;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n // Move to first row\n cursor.moveToFirst();\n if (cursor.getCount() > 0) {\n user.put(\"name\", cursor.getString(1));\n user.put(\"email\", cursor.getString(2));\n user.put(\"uid\", cursor.getString(3));\n user.put(\"created_at\", cursor.getString(4));\n user.put(\"address\", cursor.getString(5));\n user.put(\"number\", cursor.getString(6));\n\n }\n cursor.close();\n db.close();\n // return user\n Log.d(TAG, \"Fetching user from Sqlite: \" + user.toString());\n\n return user;\n }", "public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<String, String>();\n String selectQuery = \"SELECT * FROM \" + TABLE_USER;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n // Mover a la primera de fila\n cursor.moveToFirst();\n if (cursor.getCount() > 0) {\n user.put(\"name\", cursor.getString(1));\n user.put(\"email\", cursor.getString(2));\n user.put(\"uid\", cursor.getString(3));\n user.put(\"created_at\", cursor.getString(4));\n }\n cursor.close();\n db.close();\n // Devolver el usuario\n Log.d(TAG, \"Fetching user from Sqlite: \" + user.toString());\n\n return user;\n }", "UserDetails getDetails();", "public void populateUserDetails() {\n\n this.enterprise = system.getOpRegionDirectory().getOperationalRegionList()\n .stream().filter(op -> op.getRegionId() == user.getNetworkId())\n .findFirst()\n .get()\n .getBuDir()\n .getBusinessUnitList()\n .stream()\n .filter(bu -> bu.getUnitType() == BusinessUnitType.CHEMICAL)\n .map(unit -> (ChemicalManufacturingBusiness) unit)\n .filter(chemBusiness -> chemBusiness.getEnterpriseId() == user.getEnterpriseId())\n .findFirst()\n .get();\n\n this.organization = (ChemicalManufacturer) enterprise\n .getOrganizationList().stream()\n .filter(o -> o.getOrgId() == user.getOrganizationId())\n .findFirst()\n .get();\n\n }", "public UserInformation findInformationById(int id);", "public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<String, String>();\n\n user.put(KEY_USER_ID, pref.getString(KEY_USER_ID, null));\n user.put(KEY_AUTH_TOKEN, pref.getString(KEY_AUTH_TOKEN, null));\n user.put(KEY_USER_NAME, pref.getString(KEY_USER_NAME, \"\"));\n user.put(KEY_USER_EMAIL, pref.getString(KEY_USER_EMAIL, null));\n user.put(KEY_USER_MOBILE, pref.getString(KEY_USER_MOBILE, null));\n user.put(KEY_USER_ADDRESS, pref.getString(KEY_USER_ADDRESS, null));\n user.put(KEY_USER_IMAGE, pref.getString(KEY_USER_IMAGE, null));\n user.put(KEY_USER_STRIPE_ID, pref.getString(KEY_USER_STRIPE_ID, null));\n user.put(KEY_REFFERAL_CODE, pref.getString(KEY_REFFERAL_CODE, \"\"));\n user.put(KEY_REFFERAL_LINK, pref.getString(KEY_REFFERAL_LINK, \"\"));\n user.put(KEY_USER_PASSWORD, pref.getString(KEY_USER_PASSWORD, \"\"));\n // return user\n return user;\n }", "@Override\n\tpublic Map<String, Object> getUserDetail(Map<String, Object> reqs) {\n\t\treturn null;\n\t}", "@CrossOrigin\r\n @RequestMapping(value = USER_DETAIL, method=RequestMethod.GET)\r\n public ResponseEntity<?> getUserDetail(@RequestParam(\"id\") String id) {\r\n\r\n \tcheckLogin();\r\n EmployeeVO emp = employeeService.getEmployeeDetailById(id);\r\n return new ResponseEntity<>(emp, HttpStatus.OK);\r\n }", "@ApiOperation(value = \"get user details web service end point\",\n notes = \"This web service end point returns user details. Use public user id in the path\")\n //Api Implicit Params is for swagger to add authroization as an input field\n @ApiImplicitParams(\n @ApiImplicitParam(name = \"authorization\", value = \"${userController.authorizationHeader.description}\", paramType = \"header\"))\n @GetMapping(produces = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE})\n // to mention from where we allow cross origins\n @CrossOrigin(origins = {\"http://localhost:8080\", \"http://localhost:8081\"})\n public List<UserRest> getUserList(@RequestParam(value = \"page\", defaultValue = \"1\") int page,\n @RequestParam(value = \"limit\", defaultValue = \"10\") int limit) {\n List<UserRest> returnList = new ArrayList<>();\n List<UserDto> userDtoList = userService.getUserList(page, limit);\n UserRest userRest;\n for (UserDto userDto : userDtoList) {\n userRest = new UserRest();\n BeanUtils.copyProperties(userDto, userRest);\n returnList.add(userRest);\n }\n return returnList;\n }", "public User getUserData();", "private void getUserInformation() {\n userReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()){\n if(dataSnapshot.hasChild(\"fullName\")){\n name = dataSnapshot.child(\"fullName\").getValue().toString();\n }\n if(dataSnapshot.hasChild(\"phoneNumber\")){\n num = dataSnapshot.child(\"phoneNumber\").getValue().toString();\n }\n\n emailAddress = mAuth.getCurrentUser().getEmail();\n\n } else {\n Toast.makeText(OrderProductActivity.this, \"Profile details not completed\", Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<>();\n // user name\n user.put(KEY_NAME, sharedPreferences.getString(KEY_NAME, null));\n // user rol\n user.put(KEY_ROL, sharedPreferences.getString(KEY_ROL, null));\n // user user\n user.put(KEY_USER, sharedPreferences.getString(KEY_USER, null));\n // user email id\n user.put(KEY_EMAIL, sharedPreferences.getString(KEY_EMAIL, null));\n // user avatar\n user.put(KEY_PHOTO, sharedPreferences.getString(KEY_PHOTO, null));\n // return user\n return user;\n }", "public HashMap<String, Object> showUserDetailInfo(String userId) throws myAccountServiceException{\n return projectDB.searchUserDetailInfo(userId);\n }", "UserDetails get(String id);", "public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<String, String>();\n // user name\n\n user.put(KEY_ID, pref.getString(KEY_ID, null));\n user.put(KEY_EMAIL, pref.getString(KEY_EMAIL, null));\n user.put(KEY_NAME, pref.getString(KEY_NAME, null));\n return user;\n }", "@RequestMapping(\"/retrieveUsersDetails\")\n\tpublic ResponseEntity<Object> retrieveById(){\n\t\treturn loginService.retrieveUsersDetails();\n\t}", "public User getUserData(String id);", "void getUser(String uid, final UserResult result);", "public User search_userinfo(String user_name);", "Userinfo selectByPrimaryKey(String userId);", "Request<UserInfoDetailsProxy> findDetailsFromUser(Long id);", "UserDisplayDto getUserInfo(String login);", "People getUser();", "@Override\npublic UserDto getLoggedInUserDetails(String uid, Connection con) throws SQLException, InvalidUserDetailsException {\n\tPreparedStatement ps = null;\n\tUserDto user = null;\n\tps = con.prepareStatement(SQLQueryConstants.GET_LOGGED_USER);\n\n\tps.setInt(1, Integer.parseInt(uid));\nResultSet rs=\tps.executeQuery();\n\tif (rs.next()) {\n\t\tUserDto uDto = new UserDto();\n\t\tRoleDto rDto = null;\n\t\tStatusDto sDto = null;\n\t\tAddressDto aDto = null;\n\t\t\n\t\tuDto.setUserId(rs.getInt(1));\n\t\tuDto.setFirstName(rs.getString(2));\n\t\tuDto.setLastName(rs.getString(3));\n\t\tuDto.setEmail(rs.getString(4));\n\t\tuDto.setMobileNo(rs.getString(5));\n\t\tuDto.setPassword(rs.getString(6));\n\t\tuDto.setGender(rs.getString(7));\n\t\tuDto.setImage(rs.getBlob(8));\n\t\t// getting roleId\n\t\trDto = new RoleDto();\n\t\trDto.setRoleId(rs.getInt(9));\n\t\tuDto.setRoleId(rDto);\n\t\t// getting statusid\n\t\tsDto = new StatusDto();\n\t\tsDto.setStatusId(rs.getInt(10));\n\t\tuDto.setStatusId(sDto);\n\n\t\t// get superior id\n\t\tUserDto sid = new UserDto();\n\t\tsid.setUserId(rs.getInt(11));\n\t\tuDto.setSuperiorId(sid);\n\n\t\t// get address id\n\t\taDto = new AddressDto();\n\t\taDto.setAddressId(rs.getInt(12));\n\t\tuDto.setAddressId(aDto);\n\t\t\n\t\t//list.add(uDto);\n\t\tSystem.out.println(uDto);\n\t\tlogger.info(\"Valid loign details\");\n\t\treturn uDto;\n\t\n\t} else {\n\t\tlogger.error(\"Invalid login details\");\n\t\t\t\t\n\tthrow new InvalidUserDetailsException(MessageConstants.INVALID_USER_CREDIENTIALS);\t\n\t\t\n\t}\n\t\n}", "@Override\n\tpublic UserInfo getUserInfo() {\n\t\tHttpSession session = RpcContext.getHttpSession();\n String auth = (String)session.getAttribute(\"auth\");\n UserInfo ui = null;\n if (auth != null) {\n\t switch(AuthType.valueOf(auth)) {\n\t\t case Database: {\n\t\t String username = (String)session.getAttribute(\"username\");\n\t\t \t\tui = _uim.select(username);\n\t\t \t\tbreak;\n\t\t }\n\t\t case OAuth: {\n\t\t \t\tString googleid = (String)session.getAttribute(\"googleid\");\n\t\t \t\tui = _uim.selectByGoogleId(googleid);\n\t\t \t\tbreak;\n\t\t }\n\t }\n }\n\t\treturn ui;\n\t}", "public User getUserDetails(String username);", "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "@Override\n\tpublic List<User> getallUserDetail() {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\t// select all from table user\n\t\tString sql = \"SELECT * FROM user\";\n\t\tList<User> listuser = jdbcTemplate.query(sql, new RowMapper<User>() {\n\n\t\t\t@Override\n\t\t\tpublic User mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tUser user = new User();\n\t\t\t\t// set parameters\n\t\t\t\tuser.setUserid(rs.getLong(\"user_id\"));\n\t\t\t\tuser.setEmailid(rs.getString(\"emailid\"));\n\t\t\t\tuser.setAppversion(rs.getString(\"appversion\"));\n\t\t\t\tuser.setGcmregistartionkey(rs.getString(\"gcmregistartionkey\"));\n\t\t\t\tuser.setMobileno(rs.getString(\"mobileno\"));\n\t\t\t\tuser.setUuid(rs.getString(\"uuid\"));\n\t\t\t\tuser.setUsername(rs.getString(\"username\"));\n\t\t\t\tuser.setCreateddate(rs.getDate(\"createddate\"));\n\t\t\t\treturn user;\n\t\t\t}\n\n\t\t});\n\n\t\treturn listuser;\n\n\t}", "public List<User> loadAllUserDetails()throws Exception;", "public HashMap<String, String> getUserDetails(){\r\n HashMap<String,String> user = new HashMap<String,String>();\r\n String selectQuery = \"SELECT * FROM \" + User.TABLE_USER_NAME;\r\n\r\n SQLiteDatabase db = this.getReadableDatabase();\r\n Cursor cursor = db.rawQuery(selectQuery, null);\r\n // Move to first row\r\n cursor.moveToFirst();\r\n if(cursor.getCount() > 0){\r\n user.put(User.KEY_UID, cursor.getString(1));\r\n user.put(\"display_name\", cursor.getString(2));\r\n user.put(\"phone\", cursor.getString(3));\r\n user.put(\"national_number\", cursor.getString(4));\r\n user.put(\"country_prefix\", cursor.getString(5));\r\n user.put(User.KEY_CREATED_AT, cursor.getString(6));\r\n }\r\n cursor.close();\r\n //db.close();\r\n //\r\n // I am commenting this line here because when we try to access same db instance from different running threads, app crashes\r\n //Please refer to this link\r\n /*\r\n * http://stackoverflow.com/questions/23293572/android-cannot-perform-this-operation-because-the-connection-pool-has-been-clos\r\n * second answer by 'handhand'\r\n * */\r\n // return user\r\n return user;\r\n }", "public void pullDetails() {\n\t\t\n\t\tint userId = Auth.getCurrentUser().getId();\n\t\tString sql = \"select * from PersonalDetails where id='\"+userId+\"'\";\n\t\t\n\t\tconnectToDb();\n\t\t\n\t\ttry(Connection conn = myDb;\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(sql)){\n\t\t\t\n\t\t\t\tint foundId = rs.getInt(\"id\");\n\t\t\t\tif(foundId == userId) {\n\t\t\t\t\t// Get new details from database\n\t\t\t\t\tString firstName = rs.getString(\"fName\");\n\t\t\t\t\tString lastName = rs.getString(\"sName\");\n\t\t\t\t\tString dob = rs.getString(\"dob\");\n\t\t\t\t\tString address1 = rs.getString(\"address1\");\n\t\t\t\t\tString address2 = rs.getString(\"address2\");\n\t\t\t\t\tString city = rs.getString(\"city\");\n\t\t\t\t\tString county = rs.getString(\"county\");\n\t\t\t\t\tString postCode = rs.getString(\"postcode\");\n\t\t\t\t\tString mobileNum = rs.getString(\"mobileNum\");\n\t\t\t\t\tString telephoneNum = rs.getString(\"telephoneNum\");\n\t\t\t\t\tString emergencyContact = rs.getString(\"emergencyContact\");\n\t\t\t\t\tString emergencyNum = rs.getString(\"emergencyContactNum\");\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t// Set new Details\n\t\t\t\t\tmyCurrentDetails.setFirstName(firstName);\n\t\t\t\t\tmyCurrentDetails.setLastName(lastName);\n\t\t\t\t\tmyCurrentDetails.setDoB(dob);\n\t\t\t\t\tmyCurrentDetails.setAddress1(address1);\n\t\t\t\t\tmyCurrentDetails.setAddress2(address2);\n\t\t\t\t\tmyCurrentDetails.setCity(city);\n\t\t\t\t\tmyCurrentDetails.setCounty(county);\n\t\t\t\t\tmyCurrentDetails.setPostcode(postCode);\n\t\t\t\t\tmyCurrentDetails.setMobile(mobileNum);\n\t\t\t\t\tmyCurrentDetails.setTelenum(telephoneNum);\n\t\t\t\t\tmyCurrentDetails.setEmergencyContact(emergencyContact);\n\t\t\t\t\tmyCurrentDetails.setEmergencyNum(emergencyNum);\n\t\t\t}else {\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t \t\t \"Connection Made but User not found!\",\n\t\t \t\t \"Error-User Not Found\",\n\t\t \t\t JOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t}catch(SQLException e){\n\t\t\tJOptionPane.showMessageDialog(null,\n\t \t\t \"Cannot Fetch Your Details!\",\n\t \t\t \"Error\",\n\t \t\t JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "User getUser();", "User getUser();", "public static Object getUserDetails(int user_id)\r\n {\r\n Fisher f = DatabaseController.selectFisherRecord(user_id);\r\n\r\n if(f != null)\r\n {\r\n return f;\r\n }\r\n else\r\n {\r\n Intermediary i = DatabaseController.selectIntermediaryRecord(user_id);\r\n return i;\r\n }\r\n }", "People getObjUser();", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "private void retrieveAllUserData() {\n retrieveBasicUserInfo();\n retrieveUsersRecentMedia();\n retrieveUsersLikedMedia();\n }", "private void retrieveProfile() {\r\n\r\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\r\n\r\n if (user == null) {\r\n return;\r\n }\r\n\r\n String userId = user.getUid();\r\n String email = user.getEmail();\r\n DocumentReference reference = mFirebaseFirestore.collection(\"users\").document(userId);\r\n reference.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\r\n if (task.isSuccessful()) {\r\n DocumentSnapshot documentSnapshot = task.getResult();\r\n mTextViewName.setText((CharSequence) documentSnapshot.get(\"name\"));\r\n mTextViewContact.setText((CharSequence) documentSnapshot.get(\"contact\"));\r\n mTextViewEstate.setText((CharSequence) documentSnapshot.get(\"estate\"));\r\n mTextViewHouseNo.setText((CharSequence) documentSnapshot.get(\"houseno\"));\r\n }\r\n Toast.makeText(Testing.this, \"Profile data loaded successfully!\", Toast.LENGTH_LONG).show();\r\n }\r\n })\r\n .addOnFailureListener(new OnFailureListener() {\r\n @Override\r\n public void onFailure(@NonNull Exception e) {\r\n Toast.makeText(Testing.this, \"Error fetching profile data. Check your internet connection!\" + e.toString(), Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n\r\n }", "@Override\n\tpublic Map<String, Object> getUserAccountInfo(String userId) {\n\t\tString sql = \"select userId,userName,realName where userId=:userId\";\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"userId\", userId);\n\t\treturn joaSimpleDao.queryForList(sql, params).get(0);\n\t}", "public List getUsers(User user);", "User getUserInfo(String userId) {\r\n\r\n // build headers\r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);\r\n headers.set(\"Authorization\", \"Bearer \" + accessToken);\r\n HttpEntity entity = new HttpEntity(headers);\r\n\r\n // build GET URL\r\n UriComponentsBuilder builder = UriComponentsBuilder\r\n .fromUriString(\"https://slack.com/api/users.info\")\r\n .queryParam(\"token\", accessToken)\r\n .queryParam(\"user\", userId);\r\n\r\n // Send request\r\n RestTemplate rt = new RestTemplate();\r\n ResponseEntity<String> response = rt.exchange(builder.toUriString(), HttpMethod.GET, entity, String.class);\r\n\r\n // good response\r\n if(response.toString().contains(\"\\\"ok\\\":true\")) {\r\n Gson gson = new Gson();\r\n UserResponse ur = gson.fromJson(response.getBody(), UserResponse.class);\r\n return ur.user;\r\n }\r\n\r\n // bad response\r\n return null;\r\n }", "@Override\n public User getUser(String userId){\n return userDAO.getUser(userId);\n }", "public UserTO getUser (String id);", "User getUser(User user) ;", "public HashMap<String, String> GET_USER_INFO() {\r\n\t\tHashMap<String, String> user = new HashMap<String, String>();\r\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_USERS;\r\n\r\n\t\tSQLiteDatabase db = this.getReadableDatabase();\r\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\r\n\t\t// Move to first row\r\n\t\tcursor.moveToFirst();\r\n\t\tif (cursor.getCount() > 0) {\r\n\t\t\tuser.put(KEY_UID, cursor.getString(cursor.getColumnIndex(KEY_UID)));\r\n\t\t}\r\n\t\tcursor.close();\r\n\t\tdb.close();\r\n\r\n\t\treturn user;\r\n\t}", "UserDTO fetchUser(String userId) throws UserException;", "@Override\n public CustomerDetails viewAccount(String user) {\n CustomerDetails details=customerRepository.findById(user).get(); \n log.debug(user);\n return details; \n\n }", "@RequestMapping(value = \"/userbyssn/{ssn}\", headers = { \"role=admin\", \"allowed=1\" }, produces = {\"application/json\", \"application/xml\" })\n\t@Secured(CommonConstants.ROLE_ADMIN)\n\tpublic ResponseEntity<UserEntity> fetchDataByUserId(@PathVariable(\"ssn\") String ssn) {\n\t\tfinal UserEntity entity = this.service.fetchDataBySSN(ssn);\n\t\treturn new ResponseEntity<UserEntity>(entity, Objects.isNull(entity) ? HttpStatus.NOT_FOUND : HttpStatus.OK);\n\t}", "Map<String, Object> getUserProfile();", "@Override\r\npublic User_Data userDetailByShopIdAndUserId(UpdateRequest updateRequest) {\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\ttry{\r\n\t\t\t\t\r\n\t log.debug(\"showing one user details usign user id and shopid\");\r\n \r\n\t String Shop_ID = updateRequest.getShop_ID();\r\n\t String User_ID = updateRequest.getUser_ID();\t\t\r\n\t\tUser_Data userData = new User_Data();\r\n\r\n\t\t\r\n\t\t// select the list of a user data usign shopid and user id in user table\r\n\t\t\t\t\tString selectProductsByShopId = \"FROM User_Data WHERE Shop_ID = :Shop_ID AND User_ID = :User_ID\";\r\n\t\t\t\t\tList<User_Data> list = sessionFactory.getCurrentSession()\r\n\t\t\t\t\t\t\t.createQuery(selectProductsByShopId, User_Data.class).setParameter(\"Shop_ID\", Shop_ID)\r\n\t\t\t\t\t\t\t.setParameter(\"User_ID\", User_ID).getResultList();\r\n\t\t\r\n\t\t// checking the null value of the user table list\r\n\t\tif ((list != null) && (list.size() > 0)) {\r\n\t\t\t// userFound= true;\r\n\t\t\tlog.debug(\"get successful,User details is found\");\r\n\r\n\t\t\tuserData = list.get(0);\r\n\t\t\t\r\n\t\t\tAddress address = new Address();\r\n\t\t\tString selectAddressByuserId = \"FROM Address WHERE User_ID = :User_ID\";\r\n\t\t\tList<Address> addressList = sessionFactory.getCurrentSession()\r\n\t\t\t\t\t.createQuery(selectAddressByuserId, Address.class).setParameter(\"User_ID\", User_ID)\r\n\t\t\t\t\t.getResultList();\r\n\r\n\t\t\tif ((addressList != null) && (addressList.size() > 0)) {\r\n\t\t\t\t// userFound= true;\r\n\t\t\t\tlog.debug(\"get successful,Adress details is found\");\r\n\r\n\t\t\t\taddress = addressList.get(0);\r\n\t\t\t\tuserData.setUserAddress(address);\r\n\r\n\t\t\t\treturn userData;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn userData;\r\n\t}catch (RuntimeException re)\r\n\t{\r\n\t\tlog.error(\"get failed\", re);\r\n\t\tthrow re;\r\n\t}\r\n\tfinally\r\n\t{\r\n\t\t/*if (sessionFactory != null)\r\n\t\t{\r\n\t\t\tsessionFactory.close();\r\n\t\t}*/\r\n\t\r\n }\r\n\r\n}", "private void getInfoUser(Model model,Principal principal){\n String username= principal.getName();\n\n if(username != null){\n User user= userService.findUserByName(username);\n String email= user.getEmail();\n String image= user.getImage();\n model.addAttribute(\"image\",image);\n model.addAttribute(\"username\", username);\n model.addAttribute(\"email\", email);\n }\n }", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "public User loadUserDetails(String id)throws Exception;", "@Override\n\tpublic List<UserManageEntity> getUserInfo(Map<String, Object> param) {\n\t\treturn userManageDao.getUserInfo(param);\n\t}", "@Override\n\tpublic User getUserInfoById(String idUser) {\n\t\treturn userRepository.getUserInfoById(idUser);\n\t}", "@Test\n public void test_get_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.get(user1.getId());\n\n assertEquals(\"'get' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'get' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'get' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'get' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'get' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'get' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'get' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'get' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'get' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "public Customer fetchProfileDetails(Long userId) {\n\t\tCustomer cust = null;\n\t\ttry (Connection con = DBUtil.getInstance().getDbConnection()) {\n\t\t\t//Create object of Customer DAO & call respective method\n\t\t\tCustomerDAO customerDAO = new CustomerDAO(con); \n\t\t\tcust=customerDAO.getCustomerById(userId);\n\t\t} catch (SQLException e) {\n\t\t\tthrow new ServiceException(\"Internal Server issue to validate CRM User, Please contact admin\");\n\t\t}\n\t\treturn cust;\n\t}", "private void getUserInfo() {\n httpClient.get(API.LOGIN_GET_USER_INFO, new JsonHttpResponseHandler(){\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n super.onSuccess(statusCode, headers, response);\n callback.onLoginSuccess(response.optJSONObject(Constant.OAUTH_RESPONSE_USER_INFO));\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n super.onFailure(statusCode, headers, responseString, throwable);\n callback.onLoginFailed(throwable.getMessage(), ErrorCode.ERROR_CODE_SERVER_EXCEPTION);\n }\n });\n }", "TasteProfile.UserProfile getUserProfile (String user_id);", "public RestaurantDetails getRestaurantDetails(String userName, String password);", "private void readInfoUser() {\n\n final DatabaseReference reference = FirebaseDatabase.getInstance().getReference().child(\"Users\")\n .child(mAuth.getCurrentUser().getUid());\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n String txtName = Objects.requireNonNull(snapshot.child(\"name\").getValue()).toString();\n String txtEmail = Objects.requireNonNull(snapshot.child(\"email\").getValue()).toString();\n String imgProfile = Objects.requireNonNull(snapshot.child(\"imageurlProfile\").getValue().toString());\n String txtBio = Objects.requireNonNull(snapshot.child(\"bio\").getValue().toString());\n\n userNameProfile.setText(txtName);\n userEmailProfile.setText(txtEmail);\n userBioProfile.setText(txtBio);\n\n if (!imgProfile.equals(\"default\")) {\n Picasso.get()\n .load(imgProfile)\n .placeholder(R.drawable.profile)\n .error(R.drawable.profile)\n .into(proImage);\n\n }else {\n proImage.setImageResource(R.drawable.profile);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "public User getUser(Long userId);", "public User getUser(String email, String password) {\n User user = new User();\n // array of columns to fetch\n String[] columns = {\n COLUMN_USER_ID,\n COLUMN_USER_NAME,\n COLUMN_USER_EMAIL,\n COLUMN_USER_IMAGE,\n COLUMN_USER_CURRMONTH_ID\n };\n // selection criteria\n String selection = COLUMN_USER_EMAIL + \" = ?\" + \" AND \" + COLUMN_USER_PASSWORD + \" = ?\";\n \n // selection arguments\n String[] selectionArgs = {email, password};\n \n // query user table with conditions\n /**\n * Here query function is used to fetch records from user table this function works like we use sql query.\n * SQL query equivalent to this query function is\n * SELECT user_id FROM user WHERE user_email = '[email protected]' AND user_password = 'qwerty';\n */\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.query(\n TABLE_USER, //Table to query\n columns, //columns to return\n selection, //columns for the WHERE clause\n selectionArgs, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n null); //The sort order\n int cursorCount = cursor.getCount();\n\n if (cursorCount == 1 && cursor.moveToFirst()) {\n user.setId(Integer.parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_USER_ID))));\n user.setName(cursor.getString(cursor.getColumnIndex(COLUMN_USER_NAME)));\n user.setEmail(cursor.getString(cursor.getColumnIndex(COLUMN_USER_EMAIL)));\n byte[] imgByte = cursor.getBlob(3);\n user.setImage(BitmapFactory.decodeByteArray(imgByte, 0, imgByte.length));\n user.setCurrMonth(Integer.parseInt(cursor.getString(cursor.getColumnIndex(COLUMN_USER_CURRMONTH_ID))));\n }\n cursor.close();\n db.close();\n\n return user;\n }", "User getUser(Long id);", "UserModel retrieveUserModel(String username, String password);", "@RequestMapping(value=\"/user/{id}\",method=RequestMethod.GET)\n\tpublic @ResponseBody ResponseEntity<User> getOneUserDetails(@PathVariable Long id)throws Exception{\n\t\tUser user=null;\n\t\t\tuser=userDAO.findOne(id);\n\t\t\tif(user!=null)\n\t\t\t\treturn new ResponseEntity<User>(user, HttpStatus.OK);\n\t\t\telse {\n\t\t\t\treturn new ResponseEntity<User>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t}", "private void getProfileInfo() {\n boolean connectivity=checkConnection();\n if(connectivity){\n progressBar.setVisibility(View.VISIBLE);\n assert currentUser != null;\n String userid = currentUser.getUid();\n databaseReference.child(userid).addValueEventListener(new ValueEventListener() {\n @SuppressLint(\"SetTextI18n\")\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) String name = Objects.requireNonNull(dataSnapshot.child(\"name\").getValue()).toString();\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) String number = Objects.requireNonNull(dataSnapshot.child(\"number\").getValue()).toString();\n String email = currentUser.getEmail();\n Name.setText(name);\n Number.setText(\"+92\" + number);\n Email.setText(email);\n progressBar.setVisibility(View.GONE);\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }\n else{\n Toast.makeText(getContext(), \"No Internet Connectivity!\", Toast.LENGTH_SHORT).show();\n }\n\n\n }", "UserInfoUserinfo selectByPrimaryKey(Integer userid);", "private static UserInfo getUserInfoStandardSession(int idUser)\n {\n User user = null;\n Squad squad = null;\n int countPost = 0;\n int invitationsAvailable = 0;\n try\n {\n user = DAOFactory.getInstance().getUserDAO().getFetched(idUser);\n if (user == null)\n {\n return new UserInfo();\n }\n //squad = DAOFactory.getInstance().getSquadDAO().getFirstByIdUser(idUser);\n squad = user.getFirstSquad();\n countPost = DAOFactory.getInstance().getMatchCommentDAO().countByIdUser(idUser);\n invitationsAvailable = user.getMaxInvitations() - DAOFactory.getInstance().getUserInvitationDAO().getCountUsed(idUser);\n if (invitationsAvailable < 0)\n {\n invitationsAvailable = 0;\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving user info: \" + ex.getMessage());\n }\n boolean squadMarketEnabled = false;\n if (squad != null)\n {\n squadMarketEnabled = squad.getMarketEnabled() && !squad.getHiddenEnabled();\n }\n else\n {\n logger.error(String.format(\"Error on data about iduser %s: User must have almost one squad!!\", idUser));\n }\n // Set values\n Language language = ActionContext.getContext() != null ? UserContext.getInstance().getLanguage() : LanguageManager.chooseUserLanguage(user);\n Cobrand currentCobrand = ActionContext.getContext() != null ? UserContext.getInstance().getCurrentCobrand() : getCobrandByCode(user.getCobrandCode());\n UserInfo userInfo = new UserInfo();\n userInfo.setId(user.getId());\n userInfo.setName(user.getFirstName());\n userInfo.setAnonymousEnabled(user.getAnonymousEnabled());\n\n if (userInfo.isAnonymousEnabled())\n {\n userInfo.setSurname(StringUtils.left(user.getLastName(), 1) + '.');\n }\n else\n {\n userInfo.setSurname(user.getLastName());\n }\n\n userInfo.setCompleteSurname(user.getLastName());\n\n userInfo.setEmail(user.getEmail());\n userInfo.setRecordedMatches(user.getRecordedMatches());\n userInfo.setRecordedChallenges(user.getRecordedChallenges());\n userInfo.setPlayedMatches(user.getPlayedMatches());\n userInfo.setPlayedChallenges(user.getPlayedChallenges());\n userInfo.setCity(user.getCity().getName());\n userInfo.setProvince(user.getProvince().getName());\n userInfo.setCountry(user.getCountry().getName());\n userInfo.setIdCountry(user.getCountry().getId());\n userInfo.setIdProvince(user.getProvince() != null ? user.getProvince().getId() : 0);\n userInfo.setIdCity(user.getCity() != null ? user.getCity().getId() : 0);\n if (user.getNationalityCountry() != null)\n {\n userInfo.setIdNatCountry(user.getNationalityCountry().getId());\n userInfo.setNatCountry(user.getNationalityCountry().getName());\n }\n userInfo.setCreated(user.getCreated());\n userInfo.setBirthdayCity((user.getBirthdayCity() != null) ? user.getBirthdayCity().getName() : EMPTY_FIELD);\n userInfo.setBirthdayProvince((user.getBirthdayProvince() != null) ? user.getBirthdayProvince().getName() : EMPTY_FIELD);\n userInfo.setBirthdayCountry((user.getBirthdayCountry() != null) ? user.getBirthdayCountry().getName() : EMPTY_FIELD);\n userInfo.setPlayerFoot((user.getPlayerFoot() == null) ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerFoot().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setPlayerFootKeyName((user.getPlayerFoot() == null) ? EMPTY_FIELD : user.getPlayerFoot().getKeyName());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setPlayerRole(user.getPlayerRole() == null ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerRole().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setIdPlayerRole(user.getPlayerRole().getId());\n userInfo.setPlayerRoleKey(user.getPlayerRole().getKeyName());\n userInfo.setPlayerMainFeature(user.getPlayerMainFeature() == null ? EMPTY_FIELD : user.getPlayerMainFeature());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setAge((user.getBirthDay() != null) ? Utils.getAgefromDate(user.getBirthDay()) : EMPTY_FIELD);\n userInfo.setPlayerHeight((user.getPlayerHeight() != null) ? String.valueOf(user.getPlayerHeight()) : EMPTY_FIELD);\n userInfo.setPlayerWeight((user.getPlayerWeight() != null) ? String.valueOf(user.getPlayerWeight()) : EMPTY_FIELD);\n userInfo.setFootballTeam((user.getFootballTeam() != null) ? user.getFootballTeam().getName() : EMPTY_FIELD);\n userInfo.setPhysicalConditionKey((user.getPhysicalCondition() != null) ? user.getPhysicalCondition().getKeyName() : \"label.condizioneFisica.nonPervenuta\");\n userInfo.setIdPhysicalCondition((user.getPhysicalCondition() != null) ? String.valueOf(user.getPhysicalCondition().getId()) : EMPTY_FIELD);\n userInfo.setInfoFavouritePlayer((user.getInfoFavouritePlayer() != null) ? user.getInfoFavouritePlayer() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setInfoHobby((user.getInfoHobby() != null) ? user.getInfoHobby() : EMPTY_FIELD);\n userInfo.setInfoAnnounce((user.getInfoAnnounce() != null) ? user.getInfoAnnounce() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setPlayerTitle((user.getPlayerTitle() != null) ? user.getPlayerTitle() : EMPTY_FIELD);\n //userInfo.setPlayedMatches(user.getRecordedMatches() + user.getRecordedChallenges());//SBAGLIATO TODO,sono le organizzate\n userInfo.setCountryFlagName(String.format(\"%1$s%2$s\", Constants.COUNTRY_FLAG_IMAGE_PREFIX, user.getCountry().getId()));\n userInfo.setBirthday(user.getBirthDay());\n userInfo.setMarketEnabled(user.getMarketEnabled());\n userInfo.setSquadMarketEnabled(squadMarketEnabled);\n userInfo.setStatus(user.getEnumUserStatus());\n userInfo.setAlertOnMatchRegistrationOpen(user.getAlertOnRegistrationStart());\n //userInfo.setPlayedMatches(StatisticManager.getPlayed(userInfo.getId()));//Att è una query in piu'\n\n userInfo.setPostCount(countPost);\n userInfo.setInvitationsAvailable(invitationsAvailable);\n\n //Facebook\n userInfo.setFacebookIdUser(user.getFacebookIdUser());\n userInfo.setFacebookAccessToken(user.getFacebookAccessToken());\n userInfo.setFacebookPostOnMatchCreation(user.isFacebookPostOnMatchCreation());\n userInfo.setFacebookPostOnMatchRecorded(user.isFacebookPostOnMatchRecorded());\n userInfo.setFacebookPostOnMatchRegistration(user.isFacebookPostOnMatchRegistration());\n\n try\n {\n PictureCard pictureCard = null;\n if (user.getEnumUserStatus().equals(EnumUserStatus.Pending))\n {\n pictureCard = DAOFactory.getInstance().getPictureCardDAO().getByStatus(idUser, EnumPictureCardStatus.Pending);\n if (pictureCard != null)\n {\n userInfo.loadPictureCard(pictureCard);\n }\n }\n else\n {\n for (PictureCard pic : user.getPictureCards())\n {\n if (pic.getEnumPictureCardStatus().equals(EnumPictureCardStatus.Current))\n {\n userInfo.loadPictureCard(pic);\n break;\n }\n }\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving current picture card in getUserInfo()\", ex);\n }\n return userInfo;\n\n }", "public List<UserDetailed> getUserDetailsForTest(ObjectId testId) {\n Test test = examinationDao.getTest(testId).orElseThrow(() -> new WebApplicationException(\"Invalid test id.\"));\n List<Registration> registrations = registrationDao.getAllRegistrationForTest(testId);\n Set<ObjectId> userIds = registrations.stream().map(Registration::getUserId).collect(Collectors.toSet());\n List<User> registeredUsers = userDao.getSpecificUsers(userIds);\n HashMap<ObjectId, User> userIdMap = new HashMap<>();\n registeredUsers.forEach(candidate -> userIdMap.put(candidate.getId(), candidate));\n List<UserDetailed> candidateResource = registrations.stream().map(registrationEntry -> {\n User user = userIdMap.get(registrationEntry.getUserId());\n return new UserDetailed(\n registrationEntry.getId(),\n user.getName(),\n registrationEntry.getRegistration(),\n user.getPhone(),\n user.getPicture()\n );\n }).collect(Collectors.toList());\n return candidateResource;\n }", "public User getUser();", "User getUser(String userId);", "@GET\n @Path(\"user/account/{uid}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getUserDetails(@PathParam(\"uid\") \n String uid) {\n \n int id = Integer.parseInt(uid);\n \n Customer cust = new Customer(id, \"name\", \"address\", \"[email protected]\", \"password\");\n \n String output = \"This entry point will return the account details for the user: \" + uid;\n return Response.status(200).entity(gson.toJson(cust)).build();\n \n }", "public User getUserDetailsById(Long userId) {\n\t\tString sql = \"select * from HealthUsers where id = ?\";\n\t\treturn jdbcTemplate.queryForObject(sql, new UserRowMapper(), userId);\n\t}", "@RequestMapping(value = \"/user/{id}\", method = RequestMethod.GET)\n public ResponseEntity<String> getUserInformationEndpoint(@PathVariable(value = \"id\") String id) {\n Response response = new Response(\"Get User Information\");\n HttpStatus httpStatus = HttpStatus.ACCEPTED;\n\n UserData userData = adminUserService.getUserInfo(id);\n if (userData != null) {\n response.addBodyElement(\"userData\", userData.toJsonObject());\n }\n else {\n response.actionFailed();\n response.setMessage(Messages.Failure.GET_USER_INFO);\n }\n\n return ResponseEntity\n .status(httpStatus)\n .contentType(MediaType.APPLICATION_JSON)\n .body(response.toJson());\n }", "@RequestMapping(value = \"/user/{id}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<User> getUser(@PathVariable(\"id\") long id) {\n Optional<User> user = userService.findById(id);\n\n// user.ifPresent(item -> user1 = item);\n\n if (user.isPresent())\n return new ResponseEntity<>(user.get(), HttpStatus.OK);\n else return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }", "public ExternalUser getUser(ExternalUser requestingUser, String userIdentifier);", "@Override\r\n\tpublic UserInfo getUserInfo(int id) {\n\t\treturn userInfo;\r\n\t}", "User getPassedUser();", "public Object queryObject(String userId) {\n\t\tUserInfoQuery userInfoQuery = new UserInfoQuery();\n\t\tuserInfoQuery.setUserId(userId);\n\t\tList<UserInfo> userInfos = userInfoManager.queryList(userInfoQuery);\n\t\tUserInfo userInfo = userInfos.get(0);\n\t\tif(RoleIdEnums.AUTHOR.getCode().equals(userInfo.getRoleId())){\n\t\t\tAuthorInfoQuery authorInfoQuery= new AuthorInfoQuery();\n\t\t\tauthorInfoQuery.setAuthorId(userInfo.getRefId());\n\t\t\tList<AuthorInfo> authorInfos= authorInfoManager.queryList(authorInfoQuery);\n\t\t\tAuthorInfo authorInfo = authorInfos.get(0);\n\t\t\treturn authorInfo;\n\t\t}else if(RoleIdEnums.READER_P.getCode().equals(userInfo.getRoleId()) || RoleIdEnums.READER_E.getCode().equals(userInfo.getRoleId())){\n\t\t\t//TODO:\n\t\t\tReaderInfoQuery readerInfoQuery= new ReaderInfoQuery();\n\t\t\treaderInfoQuery.setReaderId(userInfo.getRefId());\n\t\t\tList<ReaderInfo> readerInfos= readerInfoManager.queryList(readerInfoQuery);\n\t\t\tReaderInfo readerInfo = readerInfos.get(0);\n\t\t\treturn readerInfo;\n\t\t}\n\t\treturn null;\n\t}", "protected UserRow fetchUser(ResultSet rs) throws SQLException {\n UserRow u = new UserRow();\n \n u.id = rs.getInt(1);\n u.specificId = rs.getString(2);\n u.domainId = rs.getInt(3);\n u.login = rs.getString(4);\n u.firstName = rs.getString(5);\n u.lastName = rs.getString(6);\n u.loginMail = rs.getString(7);\n u.eMail = rs.getString(8);\n u.accessLevel = rs.getString(9);\n u.loginQuestion = rs.getString(10);\n u.loginAnswer = rs.getString(11);\n \n return u;\n }", "public User getUserById(Long userId);", "User getUserById(int id);", "UserInfo getUserInfo();", "@Override\n public User getUserInfo(String userName) {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, userName);\n return getRepository().getEntity(User.class, params);\n }", "@Override\n\tpublic List<UserInfo> getUserInfos(int userright, String sex, int id) {\n\t\treturn null;\n\t}", "public List<User> getUserDetails(int userid) {\r\n List<User> userList = new LinkedList<>();\r\n User theUser = null;\r\n List<UserCredsTbl> existing = crud.findByPrimaryKey(userid, \"FROM UserCredsTbl where roleId =:pk\");\r\n if (existing.size() > 0) {\r\n for (Object userObject : existing) {\r\n UserCredsTbl userProf = (UserCredsTbl) userObject ;\r\n theUser = new User(\r\n userProf.getUserId(),\r\n new Role(userProf.getRoleProfileTable().getBankId(), userProf.getRoleProfileTable().getDelFlg(), userProf.getRoleProfileTable().getEntityCreFlg(), userProf.getRoleProfileTable().getLchgTime(),\r\n userProf.getRoleProfileTable().getLchgUserId(), userProf.getRoleProfileTable().getRcreTime(), userProf.getRoleProfileTable().getRcreUserId(), userProf.getRoleProfileTable().getRoleDesc()), userProf.getAcctExpyDate(), userProf.getAcctInactiveDays(),\r\n userProf.getDisabledFromDate(), userProf.getDisabledUptoDate(), userProf.getRoleProfileTable().getBankId(), userProf.getLastAccessTime(),\r\n userProf.getUserId(), userProf.getNewUserFlg(), userProf.getNumPwdAttempts(), userProf.getNumPwdHistory(), userProf.getPwExpyDate(),\r\n userProf.getPwdHistory(), userProf.getRoleProfileTable().getRoleId(), userProf.getUserName(), userProf.getUserPw()\r\n );\r\n \r\n userList.add(theUser);\r\n\r\n }\r\n }\r\n return userList;\r\n\r\n }", "java.lang.String getUserIdTwo();", "@RequestMapping(value=\"/purchase/user/{userId}\",method=RequestMethod.GET)\n\t\tpublic @ResponseBody ResponseEntity<List<Purchases>> getUserPurchaseDetails(@PathVariable Long userId)throws Exception{\n\t\t\tList<Purchases> purchase=null;\n\t\t\tUser user=null;\n\t\t\tBooks book=null;\n\t\t\tuser=userDAO.findOne(userId);\n\t\t\tif(user==null){\n\t\t\t\tthrow new Exception(\" User with id : \"+userId+\" does not exists !!!\"); \n\t\t\t}\n\t\t\tpurchase=purchaseDAO.findByUserId(userId);\n\t\t\tif(purchase!=null){\n\t\t\t\t for(Purchases purch : purchase) {\n\t\t\t\t\t book=booksDAO.findOne(purch.getIsbn());\n\t\t\t\t\t purch.setBook(book);\n\t\t\t\t }\n\t\t\t\t return new ResponseEntity<List<Purchases>>(purchase, HttpStatus.OK);\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn new ResponseEntity<List<Purchases>>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t}", "@Override\n public void success(Result<User> userResult) {\n String name = userResult.data.name;\n String email = userResult.data.email;\n String description = userResult.data.description;\n String pictureUrl = userResult.data.profileImageUrl;\n String bannerUrl = userResult.data.profileBannerUrl;\n String language = userResult.data.lang;\n long id = userResult.data.id;\n\n }", "java.lang.String getUserIdOne();" ]
[ "0.7462672", "0.72017926", "0.7196945", "0.69860905", "0.69460094", "0.694595", "0.69349986", "0.6918362", "0.6873064", "0.6857392", "0.68005", "0.6788376", "0.6726595", "0.6666074", "0.66522646", "0.66450083", "0.65708953", "0.6565325", "0.65612966", "0.65348446", "0.65264964", "0.64992726", "0.6494961", "0.64890444", "0.64628595", "0.64397687", "0.6431533", "0.6428841", "0.64193803", "0.6418374", "0.64123386", "0.6388322", "0.63801956", "0.63728404", "0.63631535", "0.63595897", "0.635497", "0.63519317", "0.63518983", "0.63496894", "0.6341155", "0.6341155", "0.6329233", "0.6326146", "0.6323303", "0.6317272", "0.6312418", "0.63071084", "0.62953967", "0.62898064", "0.6272879", "0.6272517", "0.6271375", "0.62615156", "0.6260667", "0.6254613", "0.62463546", "0.6242589", "0.6235846", "0.6228118", "0.62240756", "0.6219178", "0.617951", "0.61770767", "0.6176693", "0.6173351", "0.6168492", "0.6167448", "0.6165596", "0.616505", "0.6159677", "0.6155819", "0.6149827", "0.61420095", "0.6140974", "0.6136566", "0.61305577", "0.6129904", "0.6125836", "0.61252743", "0.6124158", "0.6118761", "0.6116827", "0.611556", "0.6104692", "0.61045444", "0.60911685", "0.6089684", "0.60826397", "0.60825944", "0.6077685", "0.6072909", "0.60665995", "0.60637116", "0.6061899", "0.6056845", "0.605626", "0.6056117", "0.6054516", "0.60526836" ]
0.6364343
34
function to fetch main page contain
@RequestMapping(value = {"/main/contain"}, method = RequestMethod.GET) public ResponseEntity<ContainModel> fetchContain() { System.out.println("Fetching blogs"); ContainModel containModel = new ContainModel(); List<Blog> top5Blogs = blogDAO.mainList(); containModel.setTop5Blogs(top5Blogs); List<Forum> top3Forums = forumDAO.mainList(); containModel.setTop3Forums(top3Forums); List<Job> top3Jobs = jobDAO.mainList(); containModel.setTop3Jobs(top3Jobs); List<Events> top3Events = eventsDAO.mainList(); containModel.setTop3Events(top3Events); return new ResponseEntity<ContainModel>(containModel, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Element> monitorMainPage(){\n\t\tSystem.out.println(\"monitor main Page\");\n\t\tDocument document;\n\t\tList<Element> results = new ArrayList<Element>();\n\t\t// se connecte au site\n\t\tdocument = connectToPage(\"https://www.supremenewyork.com/shop/all\");\n\t\t// liste tous les éléments de la classe inner-article (i.e. tout ce qu'il y a sur la page\n\t\tElements elements = document.getElementsByClass(\"inner-article\");\n\t\tList<Element> articlesGeneral = new ArrayList<Element>();\n\t\tfor (Element element : elements) {\n\t\t\t// extrait chaque link a des articles \n\t\t\tElement link = element.select(\"a\").first();\n\t\t\tarticlesGeneral.add(link);\n\t\t}\n\t\tresults = articlesGeneral;\t\t\n\n\t\treturn results;\n\n\t}", "public void getMainPage(WebDriver driver){\n driver.get(mainPageURL);\n }", "void retrievePageContents()\n\t{\n\t\tStringBuilder longString = new StringBuilder();\n\t\tfor (int i = 0; i < pageContents.size(); i++)\n\t\t{\n\t\t\tlongString.append(pageContents.get(i));\n\t\t}\n\t\tString pageMarkup = longString.toString().toLowerCase();\n\t\textractComments(pageMarkup);\n\n\t}", "@Nonnull\r\n private static IHCNode _getMainContent (@Nonnull final LayoutExecutionContext aLEC)\r\n {\n final IMenuItemPage aSelectedMenuItem = ApplicationRequestManager.getInstance ().getRequestMenuItem ();\r\n\r\n // Resolve the page of the selected menu item (if found)\r\n IWebPage aDisplayPage = SystemPageNotFound.getInstance ();\r\n if (aSelectedMenuItem != null)\r\n {\r\n // Only if we have display rights!\r\n if (aSelectedMenuItem.matchesDisplayFilter ())\r\n aDisplayPage = (IWebPage) aSelectedMenuItem.getPage ();\r\n else\r\n {\r\n // No rights -> goto start page\r\n aDisplayPage = (IWebPage) ApplicationRequestManager.getInstance ()\r\n .getMenuTree ()\r\n .getDefaultMenuItem ()\r\n .getPage ();\r\n }\r\n }\r\n\r\n final WebPageExecutionContext aWPEC = new WebPageExecutionContext (aLEC, aDisplayPage);\r\n\r\n // Build page content: header + content\r\n final HCNodeList aPageContainer = new HCNodeList ();\r\n final String sHeaderText = aDisplayPage.getHeaderText (aWPEC);\r\n if (StringHelper.hasText (sHeaderText))\r\n aPageContainer.addChild (new BootstrapPageHeader ().addChild (HCH1.create (sHeaderText)));\r\n // Main fill content\r\n aDisplayPage.getContent (aWPEC);\r\n // Add result\r\n aPageContainer.addChild (aWPEC.getNodeList ());\r\n return aPageContainer;\r\n }", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage();", "Page getPage();", "PageAgent getPage();", "public void parsePage() {\n seen = true;\n int first = id.indexOf('_', 0);\n int second = id.indexOf('_', first + 1);\n String firstDir = \"result_\" + id.substring(0, first);\n String secondDir = id.substring(0, second);\n String fileName = id + \".page\";\n String wholePath = pagePath + firstDir + File.separator + secondDir\n + File.separator + fileName;\n try {\n BufferedReader reader = new BufferedReader(new FileReader(wholePath));\n String line = null;\n while((line = reader.readLine()) != null) {\n if (line.equals(\"#ThisURL#\")) {\n url = reader.readLine();\n }\n// else if (line.equals(\"#Length#\")) {\n// length = Integer.parseInt(reader.readLine());\n// }\n else if (line.equals(\"#Title#\")) {\n title = reader.readLine();\n }\n else if (line.equals(\"#Content#\")) {\n content = reader.readLine();\n lowerContent = content.toLowerCase();\n break;\n }\n }\n reader.close();\n if (content == null) {\n return;\n }\n valid = true;\n } catch (IOException e) {\n// System.out.println(\"Parse page \" + id + \" not successful\");\n }\n }", "String pageDetails();", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();", "lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPageHelper();", "public void loadPage() { \n\t \n\t if((sPref.equals(ANY)) && (wifiConnected || mobileConnected)) {\n\t \tnew DownloadXmlTask().execute(URL);\n\t }\n\t else if ((sPref.equals(WIFI)) && (wifiConnected)) {\n\t new DownloadXmlTask().execute(URL);\n\t } else {\n\t // show error\n\t } \n\t }", "static Page Download(){\n // TODO: reference to fetch to download webpages\n WebURL url = queue.poll();\n // call http request to get the web page\n return null;\n }", "@Override\r\n\tpublic String getPage() {\n\t\ttry {\r\n\t\t\tWriter wr = new OutputStreamWriter(\r\n\t\t\t\t\tnew FileOutputStream(OutputPath), \"utf-8\");\r\n\t\t\tList<String> colleges = IOUtil.read2List(\r\n\t\t\t\t\t\"property/speciality.properties\", \"GBK\");\r\n\t\t\tfor (String college : colleges) {\r\n\t\t\t\tfor (int i = 1; i < 10000; i++) {\r\n\t\t\t\t\tString html = getSeach(college, null, null, 1, i);\r\n\t\t\t\t\tif (html.equals(\"\")) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tDocument page = Jsoup.parse(html);\r\n\t\t\t\t\tElements authors = page.getElementsByAttributeValue(\r\n\t\t\t\t\t\t\t\"class\", \"listBox wauto clearfix\");\r\n\t\t\t\t\tfor (Element author : authors) {\r\n\t\t\t\t\t\tElement e = author.getElementsByAttributeValue(\"class\",\r\n\t\t\t\t\t\t\t\t\"xuezheName\").get(0);\r\n\t\t\t\t\t\tElement a = e.getElementsByAttributeValue(\"target\",\r\n\t\t\t\t\t\t\t\t\"_blank\").first();\r\n\t\t\t\t\t\tString name = a.text();\r\n\t\t\t\t\t\tString school = author.getElementsByAttributeValue(\r\n\t\t\t\t\t\t\t\t\"class\", \"f14\").text();\r\n\t\t\t\t\t\tString id = a.attr(\"href\");\r\n\t\t\t\t\t\tString speciallity = author\r\n\t\t\t\t\t\t\t\t.getElementsByAttributeValue(\"class\",\r\n\t\t\t\t\t\t\t\t\t\t\"xuezheDW\").first().text();\r\n\t\t\t\t\t\twr.write(school + \"\\t\" + id + \"\\t\" + speciallity\r\n\t\t\t\t\t\t\t\t+ \"\\r\\n\");\r\n\t\t\t\t\t\tSystem.out.println(i + \":\" + school);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twr.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static void main(String[] args) {\n for (int pageNumber =1; pageNumber<=51; pageNumber++){\n try {\n //System.out.println(\"Page number: \" + pageNumber);\n String pageContent = getPageContent(\"https://powerlist.talint.co.uk/talint-powerlist/search-companies/?sf_paged=\" + pageNumber);\n String [] linkSections = pageContent.split(\"</a></h2>\");\n for (String linkSection: linkSections) {\n if(linkSection.contains(\"<h2><a href=\\\"\")){\n String companyLink = linkSection.substring(linkSection.indexOf(\"<h2><a href=\\\"\")+13,\n linkSection.lastIndexOf(\"/\\\">\"));\n String companyDetailsContent = getPageContent(companyLink);\n processCompanyDetails(companyLink, companyDetailsContent);\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "@Step(\"Waiting for page load\")\n public abstract PageBase load();", "private void fetchData() {\r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setDataObject(hierarchyTitle);\r\n requesterBean.setFunctionType(GET_HIERARCHY_DATA);\r\n AppletServletCommunicator conn = new AppletServletCommunicator(connect,requesterBean);\r\n conn.send();\r\n ResponderBean responderBean = conn.getResponse();\r\n if(responderBean != null) {\r\n if(responderBean.isSuccessfulResponse()) {\r\n queryKey = hierarchyTitle;\r\n Hashtable htData = (Hashtable)responderBean.getDataObject();\r\n extractToQueryEngine(htData);\r\n }\r\n }else {\r\n //Server Error\r\n// throw new CoeusUIException(responderBean.getMessage(),CoeusUIException.ERROR_MESSAGE);\r\n }\r\n }", "public static WebElement pageContent(final WebDriver driver) {\n return driver.findElement(By.xpath(\"//*[@id=\\\"main-content\\\"]/div[2]\"));\n }", "String getStartpage();", "int getPage();", "String getPageFullName();", "String getOssHomepage();", "public String getMainPage() {\n return (String)getAttributeInternal(MAINPAGE);\n }", "private String fetchUrl() {\n\t\tString url;\n\t\tint depth;\n\t\tdo\n\t\t{\n\t\t\tLandingPage lp = this.pagesToVisit.remove(0);\n\t\t\turl = lp.getUrl();\n\t\t\tdepth = lp.getDepth();\n\t\t\t\n\t\t}while(this.pagesVisited.containsKey(url) || !(isvalidURL(url)));\n\t\tthis.pagesVisited.put(url,depth);\n\t\treturn url;\n\t}", "private void loadContent()\n {\n // locking the function to prevent the adapter\n // from calling multiples async requests with\n // the same definitions which produces duplicate\n // data.\n locker.lock();\n\n // this function contruct a GraphRequest to the next paging-cursor from previous GraphResponse.\n GraphRequest nextGraphRequest = lastGraphResponse.getRequestForPagedResults(GraphResponse.PagingDirection.NEXT);\n\n // if we reached the end of our pages, the above method 'getRequestForPagedResults'\n // return 'null' object\n if(nextGraphRequest != null)\n {\n // for clarificating and formatting purposes\n // I declared the callback besides the members\n // variables.\n nextGraphRequest.setCallback(callback);\n nextGraphRequest.executeAsync();\n }\n }", "public List<PageContent> getAllPageContent();", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage() {\n return page_;\n }", "@RequestMapping(\"/homelist\")\n public Page<PostEntity> mainPage() {\n return postService.getPage(0);\n }", "private void loadPage() {\n \t\n if (((sPref.equals(ANY)) && (wifiConnected || mobileConnected))\n || ((sPref.equals(WIFI)) && (wifiConnected))) {\n // AsyncTask subclass\n \t\n new DownloadXmlTask().execute(URL);\n } else {\n showErrorPage();\n }\n }", "private void LoadContent()\n {\n \n }", "private static void go2(){\n\t\tString concreateURL = \"http://www.yixinhealth.com/%E5%8C%96%E9%AA%8C%E5%92%8C%E6%A3%80%E6%9F%A5/%E5%BF%83%E7%94%B5%E5%9B%BE/\"; \n\t\tConnection c = Jsoup.connect(concreateURL); \n\t\tc.timeout(10000);\n\t\ttry {\n\t\t\tDocument doc = c.get();\n\t\t\t//System.out.println(doc.html()); \n\t\t\t//System.out.println(doc.getElementById(\"content_area\").html());\n\t\t\t//Element eles = doc.getElementById(\"content_area\");\n\t\t\t//System.out.println(eles.html());\n\t\t\t\n\t\t\t//Below code is for the multiple link page\n\t\t\t//Elements eles2 = eles.getElementsByAttributeValue(\"style\", \"text-align: center;\");\n\t\t\t//System.out.println(eles2.html());\n\t\t\t/*for(Element ele: eles2){\n\t\t\t\tElements link = ele.getElementsByTag(\"a\");\n\t\t\t\t//System.out.println(link.html());\n\t\t\t\tfor (int i=0;i<link.size();i++) {\n\t\t\t\t\tSystem.out.println(link.get(i).attr(\"href\"));\n\t\t\t\t}\n\t\t\t}*/\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(eles2.html());\n\t\t\tElement eles = doc.getElementById(\"content_area\");\n\t\t\tElements eles2 = eles.getElementsByTag(\"img\");\n\t\t\tfor(int i=0;i<eles2.size();i++){\n\t\t\t\teles2.get(i).parent().attr(\"style\", \"text-align:center\");\n\t\t\t\teles2.get(i).parent().parent().nextElementSibling().attr(\"style\", \"text-align:center\");\n\t\t\t\teles2.get(i).attr(\"style\", \"width:50%\");\n\t\t\t}\n\t\t\t\n\t\t\tElements eles3 = eles.getElementsByClass(\"j-header\");\n\t\t\tfor (Element ele : eles3) {\n\t\t\t\tElements eleHeader = ele.getElementsByTag(\"h2\");\n\t\t\t\teleHeader.attr(\"style\", \"text-align:center\");\n\t\t\t}\n\t\t\tSystem.out.println(eles.html());\n\t\t\t\n\t\t\t//Below code is help to clear out the share icon to like Sina weibo\n\t\t\tElements eles4 = eles.getElementsByClass(\"bshare-custom\");\n\t\t\t//eles4.remove();\n\t\t\t\n\t\t\t//Elements eles3 = eles.getElementsByClass(\"n*j-imageSubtitle\");\n\t\t\t//System.out.println(eles3.size());\n\t\t\t/*for(int i=0;i<eles3.size();i++){\n\t\t\t\teles3.get(i).attr(\"style\", \"text-align:center;width:50%\");\n\t\t\t}\n\t\t\tSystem.out.println(eles.html());*/\n\t\t\t//System.out.println(eles2.get(0).attr(\"src\"));\n\t\t\t/*Element eles = doc.getElementById(\"content_area\");\n\t\t\tElements eles2 = eles.getElementsByClass(\"j-header\");\n\t\t\tfor (Element ele : eles2) {\n\t\t\t\tElements eleHeader = ele.getElementsByTag(\"h2\");\n\t\t\t\tSystem.out.println(\"Title---->\"+eleHeader.html()); \n\t\t\t}\n\t\t\tElements elesBody = eles.getElementsByClass(\"j-text\");\n\t\t\tSystem.out.println(\"Body---->\"+elesBody.html()); */\n\t\t\t//System.out.println(eles2.html()); \n /*List<String> nameList = new ArrayList<String>(); \n for (Element ele : eles) {\n \tString text = ele.select(\"h*\").text();\n \tSystem.out.println(text); \n String text = ele.select(\"span\").first().text(); \n if (text.length() > 1 && text.startsWith(\"▲\")) { \n \n if (Integer.parseInt(text.substring(1)) > 30) { \n // 在这里.html()和.text()方法获得的内容是一样的 \n System.out.println(ele.select(\"a\").first().html()); \n nameList.add(ele.select(\"a\").first().text()); \n } \n } \n } */\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n WebDriver driver = new ChromeDriver();\r\n driver.get(\"https://www.guru99.com/software-testing-seven-principles.html\");\r\n \r\n if(driver.getPageSource().contains(\"Folder B is on a shared drive and storage capacity is full.\"))\r\n {\r\n \t System.out.println(\"Page contaise is available\");\r\n }else\r\n {\r\n \t System.out.println(\"Page Containse is not available\");\r\n }\r\n\t}", "public void loadStartPage()\n\t{\n\t}", "public H5Page getMainDOMPage() {\n H5Page mainDOMPage = (H5Page) this.mH5Page.get();\n Object obj = mainDOMPage.getExtra(WEB_VIEW_PAGE_TAG);\n if (obj instanceof H5Page) {\n return (H5Page) obj;\n }\n return mainDOMPage;\n }", "@Override\n\tpublic void process(Page page) {\n\t\tDocument doc = Jsoup.parse(page.getHtml().getFirstSourceText());\n\n\t\tif (isFirst) {\n\t\t\tSystem.out.println(\"添加所有列表链接\");\n\t\t\tArrayList<String> urls = new ArrayList<String>();\n\t\t\t// 33\n\t\t\tfor (int i = 2; i < 30; i++) {\n\t\t\t\turls.add(\"http://zyjy.jiangmen.gov.cn//szqjszbgg/index_\" + i + \".htm\");\n\t\t\t}\n\t\t\tpage.addTargetRequests(urls);\n\t\t\tSystem.out.println(\"这一页一共有 \" + urls.size() + \" 条数据\");\n\n\t\t\tisFirst = false;\n\t\t}\n\n\t\tif (page.getUrl().regex(URL_LIST).match() || page.getUrl().toString().trim().equals(url)) {\n\t\t\tSystem.out.println(\"获取列表数据\");\n\n\t\t\tElements uls = doc.getElementsByAttributeValue(\"class\", \"c1-bline\");\n\t\t\tfor (Element ul : uls) {\n\t\t\t\tString url = ul.getElementsByAttributeValue(\"class\", \"f-left\").get(0).select(\"a\").attr(\"href\").trim();\n\t\t\t\tString title = ul.getElementsByAttributeValue(\"class\", \"f-left\").get(0).text();\n\t\t\t\tString data = ul.getElementsByAttributeValue(\"class\", \"f-right\").get(0).text();\n\t\t\t\tCacheHashMap.cache.put(url, title + \"###\" + data);\n\t\t\t\tMyUtils.addRequestToPage(page, url);\n\t\t\t\tSystem.out.println(url + \" \" + CacheHashMap.cache.get(url));\n\t\t\t}\n\n\t\t}\n\t\tif (page.getUrl().regex(URL_DETAILS).match()) {\n\n\t\t\tProject project = new Project();\n\t\t\tStringBuffer project_article = new StringBuffer();\n\n\t\t\tString urldetails = CacheHashMap.cache.get(page.getUrl().toString().trim());\n\t\t\tSystem.out.println(\"url\" + page.getUrl().toString().trim());\n\t\t\tSystem.out.println(\"urldetails \" + urldetails);\n\n\t\t\tString[] value = urldetails.split(\"###\");\n\t\t\tif (value != null && value.length > 1) {\n\t\t\t\tproject.setProjectName(value[0]);\n\t\t\t\tproject.setPublicStart(value[1]);\n\t\t\t}\n\n\t\t\tElements divs = doc.getElementsByAttributeValue(\"class\", \"contlist minheight\");\n\t\t\tfor (Element div : divs.get(0).children()) {\n\t\t\t\tif (div.nodeName().equals(\"table\")) {\n\t\t\t\t\tElements trs = divs.select(\"tbody\").select(\"tr\");\n\t\t\t\t\tfor (Element tr : trs) {\n\t\t\t\t\t\tproject_article.append(tr.text()).append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tproject_article.append(div.text()).append(\"\\n\");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tproject.setUrl(page.getUrl().toString().trim());\n\t\t\tproject.setState(0);\n\t\t\tproject.setWebsiteType(\"江门市\");\n\t\t\tproject.setTime(MyUtils.getcurentTime());\n\t\t\tproject.setRawHtml(divs.toString());\n\n\t\t\tproject.setArticle(project_article.toString());\n\t\t\tSystem.out.println(project);\n\n\t\t\tHibernateUtil.save2Hibernate(project);\n\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tURLContent uc = new URLContent();\n\t\tuc.fetchTitleString(\"http://www.nytimes.com/2003/08/07/us/first-test-for-freshmen-picking-roommates.html\");\n\t}", "public PageTransporter() {\n System.out.println(ReadProperties.getInstance().getUrl());\n driver.get(ReadProperties.getInstance().getUrl());\n }", "private void pageContent( String url) {\n\t\t\n\t\tif ( !url.matches(URL)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tList<String> outlinks = null; // out link urls\n\t\tUrlBean bean = null; // basic info of the url\n\t\t\n\t\tbean = new UrlBean();\n\t\ttry {\n\t\t\t\n\t\t\tconn = Jsoup.connect(url).timeout(5000);\n\t\t\tif ( conn == null) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\t\n\t\t\tdocument = conn.get(); // 得到网页源代码,超时时间是5秒\n\t\t\t\n\t\t\t/*\n\t\t\t * 文章基本信息\n\t\t\t */\n\t\t\telements = document.getElementsByTag(\"title\");\n\t\t\tif ( elements!= null && elements.size() != 0) {\n\t\t\t\telement = elements.get(0);\n\t\t\t}\n\t\t\tString title = element.text();\n\t\t\tbean.setTitle(title);\n\t\t\tbean.setKeywords(title);\n\t\t\t\n\t\t\telements = document.getElementsByTag(\"a\");\n\t\t\tif ( elements != null) {\n\t\t\t\tString linkUrl = null;\n\t\t\t\toutlinks = new ArrayList<String>();\n\t\t\t\tfor ( int i = 0; i < elements.size(); i++) {\n\t\t\t\t\tlinkUrl = elements.get(i).attr(\"href\");\n\t\t\t\t\tif ( linkUrl.matches(URL)) {\n\t\t\t\t\t\toutlinks.add(linkUrl);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t} \n\t\t\n\t\tbean.setUrl(url);\n\t\tbean.setId(urlId++);\n\t\tbean.setRank(1);\n\t\tif ( outlinks != null) {\n\t\t\tint count = outlinks.size();\n\t\t\tbean.setOutlinks(count);\n\t\t\tfor ( int i = 0; i < count; i++) {\n\t\t\t\turlsSet.add(outlinks.get(i));\n\t\t\t}\n\t\t\tif ( new AllInterface().addOneUrlInfo(bean, outlinks)) {\n\t\t\t\tSystem.out.println(\"Add to database successfully, url is '\" + url + \"'.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Fail to add to database, maybe url exists. Url is '\" + url + \"'.\");\n\t\t\t}\n\t\t\tSystem.out.println(\"[\" + count + \" urls remain...]\");\n\t\t\tSystem.out.println();\n\t\t} else {\n\t\t\tSystem.out.println(\"Error occurs in crawl, url is '\" + url + \"'.\");\n\t\t\tSystem.out.println(\"[[FINISHED]]\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "Builder addMainEntityOfPage(URL value);", "Pages getPages();", "@Override\n\tpublic String findPage() {\n\t\treturn null;\n\t}", "private void loadWelcomeContent() {\n\t\twebEngine = startScreen.getEngine();\n\t\tFile jarPath = SX3Manager.getInstance().getInstallLocation();\n\t\tString sx3helpContentPath = jarPath.getParentFile().getAbsolutePath() + \"/welcomeContent/startPage.html\";\n\t\tFile f = new File(sx3helpContentPath);\n\t\twebEngine.load(f.toURI().toString());\n\t}", "@RequestMapping(value = {\"/mainPage\"}, method = RequestMethod.GET)\n public String displayMainAjaxPage(Model model) {\n // This method does nothing except return the logical name of the \n // view component (/jsp/home.jsp) that should be invoked in response\n // to this request.\n //Mike Adams: need to filter out unpublished/unapproved blogs (marketing, saved drafts)\n List<Blog> allBlogs = blogDAO.getAllBlogs();\n List<Blog> pubBlogs = new ArrayList<>();\n\n for (int i = 0; i < allBlogs.size(); i++) {\n if (allBlogs.get(i).isPublished()) {\n pubBlogs.add(allBlogs.get(i));\n }\n }\n model.addAttribute(\"blogList\", pubBlogs);\n\n /**\n * ********** Mike Adams, Static page functionality code********\n */\n model.addAttribute(\"staticPageList\", blogDAO.getListOfStaticPages());\n /**\n * ************************************************************\n */\n return \"mainPage\";\n }", "Element loadFrontPageOf(GitHubProject project) throws IOException {\n String url = format(\"https://github.com/%s/%s\", project.organization().name(), project.name());\n return Jsoup.connect(url).get();\n }", "public List<Element> monitorPage(String link){\n\t\tSystem.out.println(\"monitor Page \" + link);\n\t\tDocument document;\n\t\tList<Element> results = new ArrayList<Element>();\n\t\t// se connecte au site\n\t\tdocument = connectToPage(link);\n\t\t// liste tous les éléments de la classe inner-article (i.e. tout ce qu'il y a sur la page\n\t\tSystem.out.println(document.toString());\n\t\t/*List<Element> articlesGeneral = new ArrayList<Element>();\n\t\tfor (Element element : elements) {\n\t\t\t// extrait chaque link a des articles \n\t\t\tElement linkPage = element.select(\"a\").first();\n\t\t\tarticlesGeneral.add(linkPage);\n\t\t}\n\t\tresults = articlesGeneral;*/\t\t\n\n\t\treturn results;\n\n\t}", "public void getNextPage(String url) {\n String kw = \"flag\";\n client = new OkHttpClient();\n final Request request = new Request.Builder()\n .url(url)\n .build();\n Call call = client.newCall(request);\n call.enqueue(new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n System.out.println(e);\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n String htmlStr = response.body().string();\n //Type listTpye = new TypeToken<LinkedList<QueryRes>>(){}.getType();\n //System.out.println(htmlStr.toString());\n\n try {\n json = new JSONObject(htmlStr);\n //parsePageJson(json);\n System.out.println(json);\n } catch (Exception e) {\n System.out.println(\"error again\");\n }\n //parseJson(json);\n Message msg = handler.obtainMessage();\n msg.what = 1;\n handler.sendMessage(msg);\n //parsePageJson(page_json);\n }\n });\n }", "public List<String> iterateProgramPageList();", "@Test(groups = { \"tree\" })\n\t\tpublic void testLoadViaGetURL() throws Exception {\n\t\t\t\tstartupTest(\"treeLoadViaGetURL.html\",null);\n\n\t\t\t\t//Verify the url\n\t\t\t\tString url = getBrowserUrl();\n\t\t\t\tlog(\"URL##########\"+ url);\n\n\t\t\t\t// Verify if the title of the page is correct\n\t\t\t\tverifyTitle(\"Incorrect page title;\", TITLE_GETURL);\n\t\t\t\tcheckPageContent(TITLE_GETURL);\n\n\t\t\t\tcommonLoadTestForJson();\n\n\n }", "public void get() {\n\t\tdriver.get(\"http://compendiumdev.co.uk/selenium/basic_ajax.html\");\t\n\t}", "public final String getPageContent() {\n\t\treturn pageContent;\n\t}", "int getCurrentPage();", "public static void main(String[] args) {\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tPage page = restTemplate.getForObject(\"http://graph.facebook.com/salesforce\", Page.class);\n\t\t\n\t\tSystem.out.println(page.getId());\n\t\tSystem.out.println(page.getAbout());\n\t\tSystem.out.println(page.getName());\n\t\tSystem.out.println(page.getPhone());\n\t\tSystem.out.println(page.getWebsite());\n\t\tSystem.out.println(page.getParking().getLot());\n\t\tSystem.out.println(page.getParking().getStreet());\n\t\tSystem.out.println(page.getParking().getValet());\n\t}", "public HtmlPage clickContentPath();", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\r\n public String topLevel(HttpServletRequest request, ModelMap model) throws ServletException, IOException {\r\n System.out.println(\"***** Been redirected to fetch page / - will render default map from here!\");\r\n String mapName = env.getProperty(\"default.map\");\r\n if (mapName.startsWith(\"/restricted/\")) {\r\n /* Ensure that a top-level restricted map always shows the login page when redirected - Polarcode bug 23/04/2018 */\r\n return(\"redirect:\" + mapName); \r\n } else {\r\n return(renderPage(request, model, \"map\", env.getProperty(\"default.map\"), null, null, false));\r\n } \r\n }", "public String getPageText();", "public void waitForContentLoad() {\n // TODO implement generic method to wait until page content is loaded\n\n // wait.until(...);\n // ...\n }", "public static void main(String[] args) {\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver = new ChromeDriver();\n\n //this 3 things need to be done to open a browser\n driver.get(\"https://practice.cybertekschool.com\");\n\n String title = driver.getTitle();\n\n //soutv--> you don need to write \"title\"\n System.out.println(\"title = \" + title);\n\n String currntUrl= driver.getCurrentUrl();\n System.out.println(\"currntUrl = \" + currntUrl);\n\n //get the source of the page\n String pageSource = driver.getPageSource();\n System.out.println(\"pageSource = \" + pageSource);\n\n\n }", "public void loadPage(){\r\n\r\n driver.get(getPAGE_Url());\r\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\r\n\r\n }", "Integer getPage();", "public abstract void pageDisplayed();", "public Page getPage() {return page;}", "private void getThePage(String location){\r\n try{\r\n //load document and display location\r\n contentsArea.setPage(location);\r\n enterField.setText(location);\r\n }\r\n catch(IOException ioe){\r\n JOptionPane.showMessageDialog(this, \"Error retrieving specified URL\",\"Bad URL\",JOptionPane.ERROR_MESSAGE);\r\n } //end catch\r\n }", "private String getUrlContents(String theUrl) {\n StringBuilder content = new StringBuilder();\n try {\n URL url = new URL(theUrl);\n URLConnection urlConnection = url.openConnection();\n //reads the response\n BufferedReader br = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()), 8);\n String line;\n while ((line = br.readLine()) != null) {\n content.append(line + \"\\n\");\n }\n br.close();\n }catch (Exception e) {\n //error occured, usually network related\n e.printStackTrace();\n }\n return content.toString();\n }", "@GET(\"w/api.php?action=parse&format=json&noimage\")\n Call<JsonElement> getSectionFrom(@Query(\"pageid\") long pageid,@Query(\"section\") long section);", "@Override\r\n\tpublic String direct() {\n\t\treturn ADM + \"home-contents\";\r\n\t}", "@Override\n\tpublic void process(Page page){\n\n\t CollectTemplate collectTemplate = templateService.getCollectTemplateById(templateId);\n\t String currentUrl=page.getUrl().toString();\n\t String nextUrlXpath=collectTemplate.getNextUrlXpath();\n \tString contentUrlXpath=collectTemplate.getContentUrlXpath();\n \tString listUrlRegex=collectTemplate.getListUrlRegex();\n \tString contentUrlRegex=collectTemplate.getContentUrlRegex();\n \tList<CollectTemplateField> fields=collectTemplate.getFields();\n \ttry {\n\t \t\t\n\t \tHtml currentHtml= page.getHtml();\n\n\t\t\t//判断是否是列表页\n\t if (currentUrl.matches(listUrlRegex)) {\n\n\t\t\t\t//处理列表页\n\t\t\t\tString nextPageUrl=\"\";\n\t\t\t\ttry{\n\t\t\t\t\tnextPageUrl=currentHtml.xpath(nextUrlXpath).toString();\n\t\t\t\t\tif (nextPageUrl==null||StringUtils.isEmpty(nextPageUrl)){\n\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t}\n\t\t\t\t}catch (Exception e){\n\t\t\t\t\tXpath2Selector xpath2Selector = new Xpath2Selector(nextUrlXpath);\n\t\t\t\t\tnextPageUrl = xpath2Selector.select(page.getRawText());\n\n\t\t\t\t\tif (nextPageUrl!=null&&nextPageUrl.startsWith(\"/\")){\n\t\t\t\t\t\tnextPageUrl = \"http://\"+site.getDomain()+nextPageUrl;\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\n\t \tif (StringUtils.isNotEmpty(nextPageUrl)) {\n\n\t \t\tRequest request=new Request();\n\t \t\trequest.setUrl(nextPageUrl);\n\t \t\trequest.setPriority(-1);\n\t \t\t\n\t \t\tpage.addTargetRequest(request);\n\n\t \t\tlogService.info(projectId,\"get the next page link \"+nextPageUrl+\" and add it to the queue\");\n\n\t\t\t\t}else{\n\t\t\t\t\tlogService.warn(projectId,\"fail to get the next page link\");\n\n\t\t\t\t}\n\t \tList<String> detailPagesUrl;\n\t \ttry{\n\t\t\t\t\tdetailPagesUrl = currentHtml.xpath(contentUrlXpath).all();\n\n\t\t\t\t}catch (Exception e){\n\n\t\t\t\t\tXpath2Selector xpath2Selector2 = new Xpath2Selector(contentUrlXpath);\n\t\t\t\t\tdetailPagesUrl = xpath2Selector2.selectList(currentHtml.getDocument().text());\n\t\t\t\t}\n\n\n\n\t \tif (detailPagesUrl!=null&&detailPagesUrl.size()!=0) {\n\t\t\t\t\t//添加详情页\n\t\t\t\t\tpage.addTargetRequests(detailPagesUrl, 1);\n\n\t\t\t\t\tlogService.info(projectId,\"get \"+detailPagesUrl.size()+\" detail pages\");\n\t\t\t\t}else{\n\t\t\t\t\tlogService.warn(projectId,\"fail to get detail page\");\n\n\t\t\t\t}\n\t\t\t}else if (StringUtils.isEmpty(contentUrlRegex)||currentUrl.matches(contentUrlRegex)) {\n\t \t//处理详情页\n\t\t\t\tcontentPageProcessService.setProjectId(projectId);\n\t\t\t\tcontentPageProcessService.progressContentPage(page,fields);\n\t\t\t}\n\t \t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t \n\t }", "private void getHomePage(final WebDriver webDriver) {\r\n\t\twebDriver.get(HTML_URL);\r\n\t\tcheckTitle(webDriver);\r\n\t}", "public FilingDetailPage(URL url) {\n try (final WebClient webClient = new WebClient()) {\n filing13FPage = webClient.getPage(url);\n System.out.println(filing13FPage);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage() {\n if (pageBuilder_ == null) {\n return page_;\n } else {\n return pageBuilder_.getMessage();\n }\n }", "@GET\n @Produces(MediaType.TEXT_HTML)\n public Response getHomePage() throws IOException {\n InputStream resourceAsStream = Thread.currentThread()//\n .getContextClassLoader().getResourceAsStream(\"index.html\");\n return Response//\n .ok(resourceAsStream)//\n .header(\"Pragma\", \"public\")//\n .header(\"Cache-Control\", \"public\")//\n .build();\n\n }", "private String getPageContent(SlingHttpServletRequest request, String pagePath) {\n\n\t\tfinal int DEFAULT_PORT = 80;\n\t\tfinal String JCR_CONTENT_LOCATION = \"/_jcr_content/content.html\";\n\t\tfinal int TIMEOUT = 5000;\n\t\tfinal String HTTP_404_ERROR_RESPONSE = \"404\";\n\n\t\tResourceResolver resourceResolver = request.getResource().getResourceResolver();\n\t\tResource resource = resourceResolver.getResource(pagePath);\n\n\t\tif (resource != null) {\n\n\t\t\tString content = null;\n\n\t\t\t// Create a HttpClient object\n\t\t\t\n\t\t\tHttpClient client = new HttpClient();\n\t\t\t\n\t\t\t// Establish a connection within 5 seconds\n\t\t\tclient.getHttpConnectionManager().getParams().setConnectionTimeout(TIMEOUT);\n\n\t\t\tString url;\n\t\t\tif (request.getRemotePort() == DEFAULT_PORT) {\n\t\t\t\turl = \"http://\" + request.getServerName() + pagePath + JCR_CONTENT_LOCATION;\n\t\t\t} else {\n\t\t\t\turl = \"http://\" + request.getServerName() + \":\" + request.getServerPort() + pagePath\n\t\t\t\t + JCR_CONTENT_LOCATION;\n\t\t\t}\n\n\t\t\t// If user is working on author instance, there is gonna be a 404 code because of the credentials\n\t\t\tHttpMethod method = new GetMethod(url);\n\n\t\t\ttry {\n\t\t\t\tclient.executeMethod(method);\n\t\t\t\tif (method.getStatusCode() == HttpStatus.SC_OK\n\t\t\t\t && !StringUtils.containsIgnoreCase(method.getResponseBodyAsString(), \"http 404\")) {\n\t\t\t\t\tcontent = method.getResponseBodyAsString();\n\t\t\t\t\tcontent = content + \"<!-- Path of the content : \" + pagePath + \" -->\";\n\t\t\t\t} else {\n\t\t\t\t\tlog.info(\"Error 404 - Resource is not available\");\n\t\t\t\t\tcontent = HTTP_404_ERROR_RESPONSE;\n\t\t\t\t}\n\t\t\t} catch (HttpException e) {\n\t\t\t\tlog.error(e.getMessage(), e);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(e.getMessage(), e);\n\t\t\t}\n\n\t\t\t// Clean up the connection resources\n\t\t\tmethod.releaseConnection();\n\n\t\t\t// Return the content\n\t\t\treturn content;\n\t\t} else {\n\t\t\tlog.info(\"Error 404 - Resource is not available\");\n\t\t\treturn HTTP_404_ERROR_RESPONSE;\n\t\t}\n\t}", "public String execute(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString page = ConfigurationManager.getInstance().getProperty(\n\t\t\t\tConfigurationManager.MAIN_PAGE_PATH);\n\t\treturn page;\n\t}", "public String execute(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString page = ConfigurationManager.getInstance().getProperty(\n\t\t\t\tConfigurationManager.MAIN_PAGE_PATH);\n\t\treturn page;\n\t}", "String getPageName();", "public static void list_1_get() throws IOException{ \n\t\tlong current=0;\n\t\tlong start=System.currentTimeMillis();\n\t\tDocument doc=doc_get(\"http://www.yihaodian.com/product/listAll.do\"); \n\t\tif(doc!=null){\n\t\t\t\t\t\t\t\t\t //div>.allsort.sortwidth>div.fl>\n\t\t\t\t\t\t\t\t\t //div>.allsort.sortwidth>div.fr>\t\t\t\t\t\t\t\t\t\n\t\t\tElements links=doc.select(\"div>.allsort.sortwidth>div>div.alonesort\"); \n\t\t\tSystem.out.println(\"==========BEGIN================\");\n \n\t\t\tfor(Element link_alonesort:links){//get first class panel\n\t\t\t\tElements link_mt= link_alonesort.select(\"div.mt\");//first class property\n\t\t\t\t\n\t\t\t\t//----------\n\t\t\t\tSystem.out.println(\"-------------------------------------------------------------FIRST CLASS----------------------------------------------------------------------------\"); \n\t\t\t\tSystem.out.println(link_mt.text());\n\t\t\t\tTxtWriter.appendToFile(\"-------------------------------------------------------------FIRST CLASS----------------------------------------------------------------------------\",new File(\"File/idlist.txt\"));\n\t\t\t\tTxtWriter.appendToFile(link_mt.text(),new File(\"File/idlist.txt\"));\n\t\t\t\t//----------\n\t\t\t\t\n\t\t\t\tElements link_fores= link_alonesort.select(\"div.mc>dl\");\n\t\t\t\t/**BEGIN*******get second class panel**/\n\t\t\t\tfor(Element link_fore:link_fores){ \n\n\t\t\t\t\tElements link_dds=link_fore.select(\"dd\");\n\t\t\t\t\t/**BEGIN*******get second class panel**/\n\t\t\t\t\tfor(Element link_dd:link_dds){ \n\t\t\t\t\t\t\n\t\t\t\t\t\tElement link_dt=link_dd.parent().select(\"dt>a\").first();//second class property\n\t\t\t\t\t\t\n\t\t\t\t\t\t//----------\n\t\t\t\t\t\tSystem.out.println(\"---------------------------SECOND CLASS-------------------\");\n\t\t\t\t\t\tSystem.out.println(link_dt.text()); \n\t\t\t\t\t\tTxtWriter.appendToFile(\"---------------------------SECOND CLASS-------------------\",new File(\"File/idlist.txt\"));\n\t\t\t\t\t\tTxtWriter.appendToFile(link_dt.text()+\"---\"+link_dt.absUrl(\"href\"),new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t//----------\n\t\t\t\t\t\t\n\t\t\t\t\t\tElements link_as=link_dd.select(\"em>span>a\"); //third class property \n\t\t\t\t\t\t/**BEGIN*******get third class panel**/\n\t\t\t\t\t\tfor(Element link_a:link_as){//get forth class panel\n\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(\"-------------------------------CLASS THREE BEGIN -------------------\"); \n\t\t\t\t\t\t\tSystem.out.println(link_a.text()+\"---\"+link_a.absUrl(\"href\")); //third class property \n\t\t\t\t\t\t\tTxtWriter.appendToFile(\"-------------------------------CLASS THREE BEGIN -------------------\",new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t\tTxtWriter.appendToFile(link_a.text()+\"---\"+link_a.absUrl(\"href\"),new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t\t//----------\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint count=1;//count of page\n\t\t\t\t\t\t\tint repeat=0;//count of repeat items\n//\t\t\t\t\t\t\t/**版本三*/\n//\t\t\t\t\t\t\tString [] strListBackup = {};\n\t\t\t\t\t\t\tList<String> list=new ArrayList<String>();\n\t\t\t\t\t\t\twhile(true){ \n\t\t\t\t\t\t\t\tSystem.out.println(link_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\");\n\t\t\t\t\t\t\t\tString [] strList=productsIdList_get(\n\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n\t\t\t\t\t\t\t\t\t\t+String.valueOf(count++)+\"-price-d0-f04-m1-rt0-pid-k/\"); \n\t\t\t\t\t\t\t\tSystem.out.println(list);//输出列表\n\t\t\t\t\t\t\t\tfor(int i=0;i<strList.length;i++){\n\t\t\t\t\t\t\t\t\tif(list.contains(String.valueOf(strList[i]))==false){\n\t\t\t\t\t\t\t\t\t\tlist.add(String.valueOf(strList[i]));\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\trepeat++;\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\tif(repeat>=50) //临界值\n\t\t\t\t\t\t\t\t\trepeat=0;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//写入文件\n\t\t\t\t\t\t\t\tfor(int i=0;i<list.size()&&list.size()>0;i++){\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(list.get(i),new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t\t\t\t\tcurrent++;\n\t\t\t\t\t\t\t\t\t} catch (IOException e) { \n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\tcurrent+=list.size();\n\t\t\t\t\t\t\t\tlist.clear();\n\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tSet<String> set=new HashSet<String>();\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twhile(true){ \n//\t\t\t\t\t\t\t\t\n////\t\t\t\t\t\t\t\tSystem.out.println(link_a.absUrl(\"href\")+\"/b0/a-s1-v0-p\"\n////\t\t\t\t\t\t\t\t\t\t+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\"); \n////\t\t\t\t\t\t\t\thttp://www.yihaodian.com/ctg/s2/c5228-%E9%A5%AE%E7%94%A8%E6%B0%B4/b0/a-s1-v0-p2-price-d0-f04-m1-rt0-pid-k/\n//\t\t\t\t\t\t\t\tString [] strList=productsIdList_get( link_a.absUrl(\"href\")\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+String.valueOf(count)\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tSystem.out.println(Arrays.toString(strList));\n//\t\t\t\t\t\t\t\tfor(int i=0;i<strList.length;i++){\n//\t\t\t\t\t\t\t\t\tif(set.contains(strList[i])==false){\n//\t\t\t\t\t\t\t\t\t\tset.add(strList[i]);\n//\t\t\t\t\t\t\t\t\t}else{ \n//\t\t\t\t\t\t\t\t\t\trepeat++;\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\tif(repeat>=10){\n//\t\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\tIterator<String> iterator=set.iterator();\n\n//\t\t\t\t\t\t\twhile(iterator.hasNext()){ \n//\t\t\t\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(iterator.next(),new File(\"File/idlist.txt\"));\n//\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n//\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\t\t\t\t\te.printStackTrace();\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\t}\n//\t\t\t\t\t\t\tSystem.out.println(\"写入完成\");\n//\t\t\t\t\t\t\tset.clear();\n//\t\t\t\t\t\t\t\n//\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t/**版本一\n//\t\t\t\t\t\t\tfor(int i=1;i<50;i++){\n//\t\t\t\t\t\t\t\tSystem.out.println(\n//\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t+String.valueOf(i)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tString [] strList=productsIdList_get(\n//\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t+String.valueOf(i)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tfor(int j=0;j< strList.length;j++){\n//\t\t\t\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(strList[j],new File(\"File/idlist.txt\"));\n//\t\t\t\t\t\t\t\t\t} catch (IOException e) { \n//\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\t\t\tThread.sleep(2000);\n//\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}*/\n//\t\t\t\t\t\t\t/**\n//\t\t\t\t\t\t\t * 版本二*/ \n//\t\t\t\t\t\t\tString [] strListBackup = {};\n//\t\t\t\t\t\t\twhile(true){ \n//\t\t\t\t\t\t\t\tSystem.out.println(link_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tString [] strList=productsIdList_get(\n//\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tcount++;\n//\t\t\t\t\t\t\t\tif(compareTo(strListBackup,strList)==false){//不相似\n//\t\t\t\t\t\t\t\t\tstrListBackup=strList;\n//\t\t\t\t\t\t\t\t}else{//相似\n//\t\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t\t//写入文件\n//\t\t\t\t\t\t\t\tfor(int i=0;i< strList.length;i++){\n//\t\t\t\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(strList[i],new File(\"File/idlist.txt\"));\n//\t\t\t\t\t\t\t\t\t\tcurrent++;\n//\t\t\t\t\t\t\t\t\t} catch (IOException e) { \n//\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\n//\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/**BEGIN*******get third class panel**/\n//\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t/**END********get second class panel*************/ \n//\t\t\t\t\tbreak;\n\t\t\t\t} \n\t\t\t\t/**END********get first class panel*************/ \n\t\t\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++\");\n//\t\t\t\tbreak;\n\t\t\t} \n\t\t\t//总数\n\t\t\tSystem.out.println(\"总数\"+current);\n\t\t\tTxtWriter.appendToFile(String.valueOf(current),new File(\"File/idlist.txt\"));\n\t\t\t//耗时\n\t\t\tlong end=System.currentTimeMillis();\n\t\t\tTxtWriter.appendToFile(\"耗时:\"+(end-start)+\"ms\",new File(\"File/idlist.txt\"));\n\t\t\tSystem.out.println(\"===========END==================\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Error\");\n\t\t}\n\t}", "public void onModuleLoad() {\n \t\tMainPage.currentPage = this;\n \t\t\n \t\tif(Window.Location.getHash().length() == 0){\n \t\t\tloggedIn = false;\n \t\t}else{\n \t\t\tloggedIn = true;\n \t\t}\n \t\t\n \t\tinitUI();\n \t\t\n \t\tif(loggedIn){\n \t\t\tsetStatus(\"fetching JSON...\", false);\n \t\t\tfbFetcher.fetchNeededJSON();\n \t\t}\n \t\t\n \t}", "public MainPage test003TestSearchResults() throws InterruptedException {\n waitForVisibilityOf(view_on_map);\r\n assertThat(driver.findElement(view_on_map).isDisplayed(), is(true));\r\n\r\n /*assertThat(driver.findElement(menu_frame_btn_p2p).isDisplayed(), is(true));\r\n assertThat(driver.findElement(menu_frame_btn_bookmarks).isDisplayed(), is(true));\r\n assertThat(driver.findElement(menu_frame_btn_menu).isDisplayed(), is(true));\r\n assertThat(driver.findElement(menu_frame_btn_search).isDisplayed(), is(true));*/\r\n\r\n Thread.sleep(3000);\r\n return new MainPage(driver);\r\n }", "protected void fetch() {\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(HOST, PORT, SCHEME);\n\n List<String> prefectures = getCodes(client, PATH_PREF, \"pref\");\n List<String> categories = getCodes(client, PATH_CTG, \"category_s\");\n\n // This is a workaround for the gnavi API.\n // Gnavi API only allows max 1000 records for output.\n // Therefore, we divide records into smaller pieces\n // by prefectures and categories.\n for (String prefecture: prefectures) {\n for (String category: categories) {\n logger.debug(\"Prefecture: {}\", prefecture);\n logger.debug(\"Category: {}\", category);\n getVenues(client, prefecture, category, 1);\n }\n }\n }", "public HomeSection enterUrl(){\r\n\t\tGlobal.driver.get(CONSTANT.proUrl);\r\n\t\treturn new HomeSection();\r\n\t}", "public JSONObject page() {\n\t\treturn null;\n\t}", "public Vector<WbRecord> getAllPages() {\n\t\tVector<WbRecord> content = getNPages(130000000);\n\t\tSystem.out.println(\"Number of pages expected:\t\" + this.numPagesRequested);\n\t\tSystem.out.println(\"Actual number of pages wbRecordReader crawl:\t\" + this.totalNumPagesRetrieved);\n\t\treturn content;\n\t}", "@Test\n public static void main() {\n myTitle = driver.getTitle();\n myTitleLength = driver.getTitle().length();\n \n // 4) Print Page Title and Title length on the Eclipse Console.\n System.out.println(myTitle);\n System.out.println(\"The Character Length of the Title is: \" + myTitleLength);\n \n\t // 5) Get Page URL and URL length\n myURL = driver.getCurrentUrl();\n myURLLength = driver.getCurrentUrl().length();\n \n\t // 6) Print URL and URL length on the Eclipse Console.\n\t System.out.println(myURL);\n System.out.println(\"The Character Length of the URL is: \" + myURLLength);\n \n\t // 7) Refresh current page\n driver.navigate().refresh();\n \t\n\t // 8) Get Page Source (HTML Source code) and Page Source length\n \n myPageSource = driver.getPageSource();\n myPageSourceLength = driver.getPageSource().length();\n\t\n\t // 9) Print Page Source and length on Eclipse Console.\n\t\n //System.out.println(myPageSource);\n System.out.println(\"The length of the source is: \" + myPageSourceLength); \n \n }", "public void waitMainArtifactElementsOnPage() {\n for (String mainArtifactLink : mainArtifactLinks) {\n new WebDriverWait(driver, 10).until(ExpectedConditions.visibilityOfElementLocated(By.partialLinkText(mainArtifactLink)));\n }\n\n }", "public static void main(String[] args){\n InputStream mdIs = App.class.getClassLoader().getResourceAsStream(\"14.html\");\n\n System.out.println(mdIs);\n int length = 0;\n\n byte[] bytes = new byte[1024];\n StringBuilder stringBuilder = new StringBuilder();\n try {\n\n while ((length = mdIs.read(bytes)) != -1){\n stringBuilder.append(new String(bytes,0,length,\"utf-8\"));\n }\n\n System.out.println(stringBuilder.toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }", "public ArrayList<String> webCrawling(){\n\t\t\tfor(i=780100; i<790000; i++){\r\n\t\t\t\ttry{\r\n\t\t\t\tdoc = insertPage(i);\r\n\t\t\t\t//Thread.sleep(1000);\r\n\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tif(doc != null){\r\n\t\t\t\t\tElement ele = doc.select(\"div.more_comment a\").first();\r\n\t\t\t\t\t//System.out.println(ele.attr(\"href\"));\r\n\t\t\t\t\tcommentCrawling(ele.attr(\"href\"));//��۸�� ���� ��ũ\r\n\t\t\t\t\tcommentCrawlingList(commentURList);\r\n\t\t\t\t\tcommentURList = new ArrayList<String>();//��ũ ����� �ߺ��ǰ� ���̴� �� �����ϱ� ���� �ʱ�ȭ �۾�\r\n\t\t\t\t\tSystem.out.println(i+\"��° ������\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn replyComment;\r\n\t\t//return urlList.get(0);\r\n\t}", "@RequestMapping(\"/main\")\r\n @Produces(\"text/plain\")\r\n @ResponseBody\r\n @GET\r\n public String mainPage() {\r\n System.out.println(\"mainPage\");\r\n return \"Main\";\r\n }", "public ProcessPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t \n\n\t}", "public PageList() { \n// fileIO = new CharFileIO(\"utf-8\");\n// We are not currently using this to extract 'title' because it doesn't work \n// for whose title and meta-description tags are not explicitly specified;\n// Such as pages written in scripting languages like .jsp, .asp etc \n// parseJob = new ParseJob();\n }", "public void loadPage() {\n\t\tLog.i(TAG, \"MyGardenListActivity::LoadPage ! Nothing to do anymore here :)\");\n\t}", "public void LoadContent(){\n }", "private List<Elements> extractHTMLInfo(String url) throws IOException {\r\n\r\n //All required info to be collected is within the <section> tag\r\n Element sectionTag = Jsoup.connect(url).get().select(\"section\").get(0);\r\n\r\n List<Elements> list = new ArrayList();\r\n\r\n //Banner img Tag\r\n list.add(sectionTag.select(\"img\"));\r\n\r\n //TimeTag\r\n list.add(sectionTag.select(\"header\").select(\"time\"));\r\n\r\n //Article Title\r\n list.add(sectionTag.select(\"header\").select(\"h2 a\"));\r\n\r\n //Author\r\n list.add(sectionTag.select(\"header\").select(\"p a\"));\r\n\r\n //Content Body HTML\r\n list.add(sectionTag.select(\"article\").select(\"div\"));\r\n\r\n return list;\r\n }", "public static String getPage(String u) throws IOException {\n\t\tURL url = new URL(u);\n\t\tURLConnection yc = url.openConnection();\n\t\tyc.addRequestProperty(\"User-Agent\", \"Mozilla/4.76\"); \n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\tyc.getInputStream()));\n\t\tString inputLine;\n\t\tString content=\"\";\n\t\twhile ((inputLine = in.readLine()) != null)\n\t\t\tcontent+=inputLine+\"\\n\";\n\t\tin.close();\n\t\treturn content;\n\t}", "@Override\n public ArrayList<String> fetchData(String html) {\n ArrayList<String> data = new ArrayList<>();\n// Document document = Jsoup.parse(html);\n// Element content = document.selectFirst(\"div\").child(1).child(1).child(2);\n// data.add(content.selectFirst(\"h3\").text());\n// data.add(content.selectFirst(\"em\").text());\n// data.add(content.selectFirst(\"h4\").nextElementSibling().nextElementSibling().text());\n// try {\n// data.add(content.select(\"h4\").get(1).nextElementSibling().nextElementSibling().text());\n// }\n// catch (Exception ex) {}\n return data;\n }", "public String getPageFileName();", "public static void main(String[] args) {\n HttpClient client = new HttpClient();\n\n // Create a method instance.\n GetMethod method = new GetMethod(url);\n\n // Provide custom retry handler is necessary\n method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,\n new DefaultHttpMethodRetryHandler(3, false));\n\n try {\n // Execute the method.\n int statusCode = client.executeMethod(method);\n\n if (statusCode != HttpStatus.SC_OK) {\n System.err.println(\"Method failed: \" + method.getStatusLine());\n }\n\n // Read the response body.\n byte[] responseBody = method.getResponseBody();\n\n Document doc= Jsoup.parse(new String(responseBody));\n\n Element body = doc.select(\"div.c1-body\").first();\n // 找出定义了 class=masthead 的元素\n Elements contents = body.select(\"div.c1-bline\");\n for (Element content : contents) {\n Element link = content.select(\"div\").select(\"a\").get(1);\n String linkHref = link.attr(\"href\");\n String linkText = link.text();\n System.out.println(\"-------------------------\");\n System.out.println(linkHref+\",\"+linkText);\n// copyTofile(\"------------------------------\");\n// copyTofile(linkHref+\",\"+linkText +\"\\n\");\n// readStatics(linkHref);\n }\n // Deal with the response.\n // Use caution: ensure correct character encoding and is not binary data\n// System.out.println(new String(responseBody));\n\n } catch (HttpException e) {\n System.err.println(\"Fatal protocol violation: \" + e.getMessage());\n e.printStackTrace();\n } catch (IOException e) {\n System.err.println(\"Fatal transport error: \" + e.getMessage());\n e.printStackTrace();\n } finally {\n // Release the connection.\n method.releaseConnection();\n }\n }", "WebCrawlerData retrieve(String url);", "public ReactorResult<org.ontoware.rdfreactor.schema.rdfs.Resource> getAllOfficialFileWebpage_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), OFFICIALFILEWEBPAGE, org.ontoware.rdfreactor.schema.rdfs.Resource.class);\r\n\t}", "void loadAll(int pageNum, LoadView mLoadView);", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\n\t\tString url=\"http://pop.heraldcorp.com/view.php?ud=202105232102500066857_1&ACE_SEARCH=1\";\n\t\t\n\t\t\n\t\tDocument doc=null;\n\t\ttry {\n\t\t\tdoc = Jsoup.connect(url).get();\n\t\t}catch(IOException\t e) {\n\t\t\tthrow new RuntimeException(\"[Error: Crawling fail : \" + e.getMessage() + \"]\");\n\t\t}\n\t\tElements title=doc.select(\"#content > div.article > div.top > div.title > h1\");\n\t\tElements images=doc.select(\"#CmAdContent > div > div > img\");\n\t\tElements contents=doc.select(\"#CmAdContent\");\n\t\tNews n=new News();\n\t\t\n\t\t\n\t\n\t\t\n\t\tfor(Element el: contents) {\n\t\t\tn.setNewsContent(el.html());\n\t\t}\n\t\n\t\tSystem.out.println(n.getNewsContent());\n\t\t\n\t}" ]
[ "0.69857883", "0.66444707", "0.65427715", "0.6450159", "0.639077", "0.6277016", "0.6273504", "0.60278165", "0.5986924", "0.597685", "0.597685", "0.597685", "0.59632283", "0.59216917", "0.58580595", "0.57850343", "0.57814693", "0.57797134", "0.57791674", "0.5764199", "0.57223165", "0.56852615", "0.56608087", "0.565955", "0.5646473", "0.56351316", "0.5626682", "0.5622317", "0.5609499", "0.5607981", "0.5559987", "0.5537227", "0.5528748", "0.5515637", "0.55110264", "0.5488564", "0.54821074", "0.5482048", "0.54734755", "0.54687434", "0.5447587", "0.5445852", "0.5437086", "0.5428002", "0.54041654", "0.5398967", "0.5395055", "0.5392812", "0.53854203", "0.5381363", "0.537453", "0.5372036", "0.53641003", "0.5362486", "0.536095", "0.53593653", "0.53563386", "0.5351403", "0.5351229", "0.5339414", "0.5323264", "0.5318363", "0.52996105", "0.5299096", "0.52927643", "0.5292574", "0.5290752", "0.5285017", "0.5276648", "0.5274152", "0.5272372", "0.5266003", "0.52657765", "0.52657765", "0.5264579", "0.5263493", "0.52617335", "0.5260156", "0.52599394", "0.5249757", "0.5238196", "0.5230604", "0.5225247", "0.5224553", "0.52236235", "0.5222945", "0.5219476", "0.52112496", "0.520777", "0.520403", "0.52024245", "0.5191339", "0.51893944", "0.5183783", "0.51833105", "0.51818866", "0.5179529", "0.5177716", "0.51764846", "0.51660216" ]
0.54165554
44
function to fetch my online friends
@RequestMapping(value = {"/my/online/friends/{id}"}, method = RequestMethod.GET) public ResponseEntity<List<User>> fetchOnlineFriends(@PathVariable ("id") int userId) { System.out.println("Fetching online friends"); List<User> users = userDAO.fetchOnlineFriends(userId); List<User> onlineFriends = new ArrayList<>(); for(User user1 : users) { if(user1.getId() != userId) { onlineFriends.add(user1); } } return new ResponseEntity<List<User>>(onlineFriends, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void getfriendlist(){\n\n String myfacebookid = DataUtils.getPreference(Const.FACEBOOKID,\"\");\n\n new GraphRequest(\n token,\n //\"/\" + myfacebookid + \"/taggable_friends\", //taggable_friends // friendlists // invitable_friends //excluded_ids //friends\n \"/me/friends\",\n null,\n HttpMethod.GET,\n new GraphRequest.Callback() {\n public void onCompleted(GraphResponse response) {\n /* handle the result */////////////////////////////////////////////////////////////////////\n if (response.getError() != null) {\n // get personal information\n }else {\n try {\n JSONArray rawPhotosData = response.getJSONObject().getJSONArray(\"data\");\n JSONArray useappfriend = new JSONArray();\n for (int j = 0; j < rawPhotosData.length(); j++) {\n //save whatever data you want from the result\n JSONObject photo = new JSONObject();\n photo.put(\"id\", ((JSONObject) rawPhotosData.get(j)).get(\"id\"));\n photo.put(\"name\", ((JSONObject) rawPhotosData.get(j)).get(\"name\"));\n useappfriend.put(photo);\n\n }\n\n String struseappfriend = useappfriend.toString().trim();\n DataUtils.savePreference(Const.USE_APP_FRIENDS, struseappfriend);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n isfriend = 1;\n if(istagglefriend == 1 && islogin == 1){\n gotoReadyPage();\n }\n\n// ////////////////////////////////////////////////////////////////////////////////////////////\n//\n//\n// GraphResponse rep = response;\n// new GraphRequest(\n// token,\n// //\"/\" + myfacebookid + \"/taggable_friends\", //taggable_friends // friendlists // invitable_friends //excluded_ids //friends\n// \"/me/friendlists\",\n// null,\n// HttpMethod.GET,\n// new GraphRequest.Callback() {\n// public void onCompleted(GraphResponse response) {\n// /* handle the result */\n// GraphResponse rep = response;\n//\n// ////////////////////////////////////////////////////////////\n// ////////////////// all facebook users///////////////////////\n//\n// try {\n// JSONObject json = response.getJSONObject();\n//\n// if(json.has(\"data\")){\n// JSONArray rawPhotosData =json.getJSONArray(\"data\");\n// JSONArray facebookfriend = new JSONArray();\n// for(int j=0; j<rawPhotosData.length();j++){\n// //save whatever data you want from the result\n// JSONObject photo = new JSONObject();\n// photo.put(\"id\", ((JSONObject)rawPhotosData.get(j)).get(\"id\"));\n// photo.put(\"name\",((JSONObject)rawPhotosData.get(j)).get(\"name\"));\n// photo.put(\"icon\", ((JSONObject)rawPhotosData.get(j)).get(\"picture\"));\n// facebookfriend.put(photo);\n// }\n// String strfacebookfriend = facebookfriend.toString().trim();\n// DataUtils.savePreference(Const.FACEBOOK_FRIENDS, strfacebookfriend);\n//\n// }else{\n//\n// }\n// } catch (JSONException e) {\n// Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_SHORT).show();\n// e.printStackTrace();\n// }\n//\n// // goto setting scrreen.\n// Intent intent = new Intent(MainActivity.this,ReadyActivity.class);\n// startActivity(intent);\n// overridePendingTransition(R.anim.anim_slide_in_right, R.anim.anim_slide_out_left);\n// //\n// finish();\n// ////////////////////////////////////////////////////////////\n// }\n// }\n// ).executeAsync();\n }\n }\n\n ).executeAsync();\n }", "void noFriendsRetrieved();", "private void getFriends() {\n final String url = HomeView.HOST_URL + \"/match/friend/\";\n RequestQueue que = Volley.newRequestQueue(this);\n user.setFriendMatches(new ArrayList<UserAccount>());\n JsonObjectRequest jsonReq = new JsonObjectRequest(Request.Method.GET,\n url + user.getId(), null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n JSONArray friends = (JSONArray) response.get(\"friends\");\n MatchView.parseEdges(friends, user.getFriendMatches());\n initMessageBoard();\n } catch (JSONException e) {\n Log.d(TAG, \"failed to parse friend json\");\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Error: \" + error.getMessage());\n error.printStackTrace();\n }\n });\n que.add(jsonReq);\n }", "List<UserInfo> getFriendsOfMine(Integer user_id);", "private void findAllUserFriends(Context cntx) {\n String method = \"get_all_friends_url\";\n\n ServerApiRequests apiRequests = new ServerApiRequests(\n this,\n new ServerApiRequests.AsyncStart() {\n @Override\n public void onProcessStart() {\n loadReport.setVisibility(View.VISIBLE);\n }\n },\n new ServerApiRequests.AsyncResponse() {\n @Override\n public void onProcessFinish(String responce) {\n\n Log.e(\"report acr - fr search\", responce);\n\n if(!responce.equals(\"Server error\")){\n\n try {\n JSONObject result = new JSONObject(responce);\n\n String state = result.getString(\"success\");\n\n if(state.equals(\"true\")){\n\n\n\n\n JSONArray jsonUsers = result.getJSONArray(\"users\");\n\n if (allFriends.size() != (jsonUsers.length()+1)){\n\n allFriends.clear();\n\n for (int i = 0; i < jsonUsers.length(); i++) {\n\n UsersItem tmpItem = new UsersItem(\n jsonUsers.getJSONObject(i).getInt(\"ID\")\n , jsonUsers.getJSONObject(i).getString(\"NAME\")\n , jsonUsers.getJSONObject(i).getString(\"COOR_X\")\n , jsonUsers.getJSONObject(i).getString(\"COOR_Y\")\n , jsonUsers.getJSONObject(i).getString(\"REC_DATE\"));\n\n allFriends.add(tmpItem);\n }\n\n // adding ourselves\n User user = new User(getBaseContext());\n allFriends.add(new UsersItem(Integer.parseInt(user.getUserId()), user.getUserName(), \"\", \"\", \"\"));\n\n fillUserFriendsAdapter();\n }\n\n\n }\n\n\n loadReport.setVisibility(View.GONE);\n } catch (JSONException e) {\n e.printStackTrace();\n PersonalToastDesign tst = new PersonalToastDesign(getBaseContext());\n tst.showToast(\"Проблем с интернета/сървъра\");\n loadReport.setVisibility(View.GONE);\n }\n } else {// if server OKAY\n loadReport.setVisibility(View.GONE);\n PersonalToastDesign tst = new PersonalToastDesign(getBaseContext());\n tst.showToast(\"Проблем с интернета/сървъра\");\n }\n\n }\n }\n );\n User user = new User(getApplicationContext());\n apiRequests.execute(method, user.getUserId());\n }", "void fetchfriends() {\n Log.d(LOG_TAG, \"Fetch friends started\");\n mExecutors.networkIO().execute(() -> {\n try {\n\n if (mFirestoreAdapter != null) {\n\n if (mUserRef != null) {\n //Fetch more data\n if (mFirestoreAdapter.getItemCount() != 0) {\n DocumentSnapshot snapshot = mFirestoreAdapter.getSnapshot(mFirestoreAdapter.getItemCount() - 1);\n\n mQuery = mUserRef\n .collection(ReferenceNames.WHATSAPP_FRIENDS)\n .orderBy(ReferenceNames.TIMES_CONTACTED, Query.Direction.DESCENDING)\n .limit(fetchLimit)\n .startAfter(snapshot);\n\n } else {\n\n mQuery = mUserRef\n .collection(ReferenceNames.WHATSAPP_FRIENDS)\n .orderBy(ReferenceNames.TIMES_CONTACTED, Query.Direction.DESCENDING)\n .limit(fetchLimit);\n\n }\n } else Log.d(LOG_TAG, \"fetchFriends, user reference is null \");\n\n Log.d(LOG_TAG, \"Fetch Friends, setting query\");\n mFirestoreAdapter.setQuery(mQuery);\n }\n } catch (Exception e) {\n // Server probably invalid\n e.printStackTrace();\n }\n });\n }", "public static ArrayList<Friend> getFriends(String accessToken) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n try {\n JsonObject friendsJson = getWebService(params, FRIENDS_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"FRIENDS RESULT: \" + friendsJson.toString());\n if (friendsJson != null) {\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n\n ArrayList<Friend> friendList = gson.fromJson(\n friendsJson.get(\"friends\"),\n new TypeToken<ArrayList<Friend>>() {\n }.getType());\n return friendList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when getting friends - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when getting friends\", e);\n return null;\n } // end try-catch\n }", "public static ArrayList<String> Searching_OnPeople_who_AddMe() {\n\t\t\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\t\tArrayList<String> requests= new ArrayList<String>();\n\t\tQuery gaeQuery = new Query(\"friends\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\n\t\tfor (Entity entity : pq.asIterable()) {\n\t\t\t\n\t\t\tif (entity.getProperty(\"friendEmail\").toString().equals(User.getCurrentActiveUser().getEmail().toString())&&\n\t\t\t\t\t!entity.getProperty(\"status\").toString().equals(\"accept\")) {\n\t\t\t\t\n\t\t\t\trequests.add(entity.getProperty(\"myEmail\").toString());\n\t\t\t\t\n\t\t\t }\nelse{\n\t\t\t\t }\n\t\t}\n\t\treturn requests;\n\t\n\t}", "List<Friend> getPendingRequests(String email);", "POGOProtos.Rpc.GetFriendsListOutProto.Result getResult();", "String getOnlineUsers(String senderName)\n {\n List<String> users = new ArrayList<>();\n for (CommunicationLink node : allNodes.values())\n {\n NodeInfo currentNodeInfo = node.getInfo();\n if (currentNodeInfo.getName().equals(senderName))\n {\n users.add(senderName);\n } else\n {\n node.sendMessage(new Message(\"Checking if you are alive\", currentNodeInfo, myInfo, NAME));\n try\n {\n users.add(node.readMessage().getContent());\n } catch (IOException e)\n {\n handleNodeDeath(currentNodeInfo);\n logger.error(\"Node \" + myInfo + \"\\n - \" + currentNodeInfo.getName() + \" disconnected unexpectedly.\");\n }\n }\n }\n users.add(0, myInfo.getName());\n return String.join(\", \", users);\n }", "private void handleResponseIsOwner(Friends friends) {\n final Gson gson = new Gson();\n //Toast.makeText(_context, response.toString(), Toast.LENGTH_SHORT).show();\n Log.d(DEBUG, \"Owner: \" + friends.getFirstName() + friends.getLastName() + friends.getEmail());\n // debug only, can set invisible if needed\n if (friends.getPendingFriendList() != null) {\n for (String uid: friends.getPendingFriendList()){\n getSingleUser(uid, gson, false);\n }\n }\n else{\n Log.d(DEBUG,\"I am so lonely, i don't have any friends\");\n }\n }", "public Set<String> getFriends(String nickname) throws NoSuchElementException {\n // Not using containsKey for concurrency safety,\n // really not needed in this particular case but as a good practice.\n if (nickname == null) throw new NoSuchElementException(\"The user must be a valid one\");\n User user = this.onlineUsers.get(nickname);\n if (user != null) {\n return user.getFriends();\n }\n throw new NoSuchElementException(\"The user is not currently online\");\n }", "@SuppressWarnings(\"unchecked\")\n\t\tpublic String getFriends(String name){\n\t\t\tIterator<JSONObject> iterator = allFriends.iterator();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tJSONObject u=iterator.next();\n\t\t\t\tString nameOfUser = (String) u.get(\"nick\");\n\t\t\t\t//quando trovo l'utente stampo\n\t\t\t\tif(nameOfUser.equals(name)){\n\t\t\t\t\tString f = (String) u.get(\"friends\");\n\n\t\t\t\t\treturn f;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn \"\";\n\t\t}", "public static Result friends(){\n return null;\n }", "public void getFriend(String Screen_Name) {\n\t\tPagableResponseList<User> statuses = null;\n\n\t\ttry {\n\t\t\tResponseList<Status> userinfo = twitter.getUserTimeline(Screen_Name);\n\t\t\tstatuses = twitter.getFriendsList(Screen_Name, -1, 200);\n\t\t\tfor (User newUser : statuses) {\n\t\t\t\tdb.insertuser(newUser); // return true if the User was inserted\n\t\t\t\tdb.insert_User_Following(userinfo.get(0).getUser().getId(), newUser.getId());\n\t\t\t}\n\t\t\tdb.updateisCompelet(userinfo.get(0).getUser().getId());\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "@GET\n\t@Path(\"/getallfriends\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List getAllFriends() {\n\t\tList allfrnds = fcs.getAllFriends();\n\n\t\t// for (int i = 0; i < allfrnds.size(); i++) {\n\t\t// Friend f=(Friend)allfrnds.get(i);\n\t\t// System.out.println(f.id+\"===>\"+f.name);\n\t\t// }\n\n\t\treturn allfrnds;\n\t}", "UserFriendsEntry getUserFriendsList(Integer user_id);", "FriendList.Req getFriendlistReq();", "private void getFriendData() {\n //Create our query\n final GetUsersFriendsByUUIDQuery getFriends = GetUsersFriendsByUUIDQuery.builder()\n .uuid(SharedPreferencesHelper.getStringValue(\"uuid\"))\n .build();\n\n //Make the call.\n apolloClient\n .query(getFriends)\n .enqueue(\n new ApolloCall.Callback<GetUsersFriendsByUUIDQuery.Data>() {\n MainActivity mainActivity = MainActivity.this;\n\n @Override\n public void onResponse(@NotNull Response<GetUsersFriendsByUUIDQuery.Data> response) {\n Log.d(\"TEST\", \"Got a friend uuid response from the API.\");\n //Get the received data into our models\n //Get all of our data\n Object[] data = response.getData().GetUserFriendsByUUID().toArray();\n\n //Send this back to the main thread.\n mainActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mainActivity.receiveData(data);\n }\n });\n }\n\n @Override\n public void onFailure(@NotNull ApolloException e) {\n mainActivity.runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(mainActivity, \"An error has occurred!\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n );\n }", "@Override\r\n\tpublic String getUserFriends(Context _in_context, String _in_data) {\n\t\treturn\"\";\r\n\t}", "@Override\r\n\tpublic String getUserFriends(Context _in_context, String _in_data) {\n\t\treturn\"\";\r\n\t}", "@RequestMapping(value=\"/getListOfMyFriends\", method=RequestMethod.GET)\r\n\tpublic ResponseEntity<List<Friend>> getListOfMyFriends()\r\n\t{\r\n\t\tlogger.debug(\"->->->->-> Inside getListOfMyFriends method ->->->->->\");\r\n\t\tString loggedInUserName = (String) httpSession.getAttribute(\"loggedInUserName\");\r\n\t\tlogger.debug(\"UserName :\"+loggedInUserName);\r\n\t\tList<Friend> myFriends = new ArrayList<Friend>();\r\n\t\t\r\n\t\t// To check if the User is Logged In or not\r\n\t\tif(loggedInUserName==null){\r\n\t\t\tfriend.setErrCode(\"404\");\r\n\t\t\tfriend.setErrMessage(\"Please login to know who all are your friends!\");\r\n\t\t\tmyFriends.add(friend);\r\n\t\t\treturn new ResponseEntity<List<Friend>>(myFriends,HttpStatus.OK);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.debug(\"getting friends of : \" + loggedInUserName);\r\n\t\tmyFriends = friendDAO.getListOfMyFriends(loggedInUserName);\r\n\t\t\r\n\t\t// To check if the User has friends or not\r\n\t\tif (myFriends.isEmpty()) {\r\n\t\t\tlogger.debug(\"Friends does not exsit for the user : \" + loggedInUserName);\r\n\t\t\tfriend.setErrCode(\"404\");\r\n\t\t\tfriend.setErrMessage(\"You does not have any friends\");\r\n\t\t\tmyFriends.add(friend);\r\n\t\t}\r\n\t\t\r\n\t\treturn new ResponseEntity<List<Friend>>(myFriends,HttpStatus.OK);\r\n\t}", "java.util.List<com.vine.vinemars.net.pb.SocialMessage.FriendObj> \n getFriendListList();", "public FollowerResp getUsersFollowing(Dataset dataset, Dataset clusterizedDataset) throws InterruptedException {\n Chrono c = new Chrono(\"Downloading user friendships....\");\n FollowerResp resp = new FollowerResp(dataset.getName());\n Twitter twitter = new TwitterFactory().getInstance();\n\n List<UserModel> users = this.getSortedUsers(dataset);\n int current_user = 0; // keeps tack of current user\n\n while (current_user < users.size()) {\n UserModel u = users.get(current_user);\n System.out.println(String.format(\"Downloading friends of user %s...\", current_user));\n\n try {\n String stringUserId = u.getName(dataset);\n long userId = Integer.parseInt(stringUserId);\n User user = twitter.showUser(userId);\n if (user.getStatus() == null) {\n u.setIsPrivate(true);\n resp.addPrivateUserId(stringUserId);\n } else {\n IDs ids = twitter.getFriendsIDs(userId, -1);\n HashSet<String> friends = new HashSet<String>();\n for (long i : ids.getIDs()) {\n if (clusterizedDataset.exixstObj(i + \"\")) {\n friends.add(i + \"\");\n// UserModel followed = clusterizedDataset.getUser(i + \"\");\n// TwitterObjectFactory tof = new TwitterObjectFactory(clusterizedDataset);\n// UserModel following = tof.getUser(userId + \"\", dataset.getName());\n// following.addFollowOut(followed);\n }\n }\n resp.addFriends(stringUserId, friends);\n }\n\n current_user++;\n } catch (TwitterException e) {\n boolean cause = manageRequestError(e, u, resp, dataset);\n current_user += cause ? 1 : 0;\n }\n }\n c.millis();\n return resp;\n }", "java.util.List<People>\n getFriendListList();", "FriendList.Rsp getFriendlistRes();", "public FriendList getFriendListByName(String name);", "public void onCompleted(GraphResponse response) {/\n if (response.getError() != null) {\n // get personal information\n }else {\n try {\n JSONArray rawPhotosData = response.getJSONObject().getJSONArray(\"data\");\n JSONArray useappfriend = new JSONArray();\n for (int j = 0; j < rawPhotosData.length(); j++) {\n //save whatever data you want from the result\n JSONObject photo = new JSONObject();\n photo.put(\"id\", ((JSONObject) rawPhotosData.get(j)).get(\"id\"));\n photo.put(\"name\", ((JSONObject) rawPhotosData.get(j)).get(\"name\"));\n useappfriend.put(photo);\n\n }\n\n String struseappfriend = useappfriend.toString().trim();\n DataUtils.savePreference(Const.USE_APP_FRIENDS, struseappfriend);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n isfriend = 1;\n if(istagglefriend == 1 && islogin == 1){\n gotoReadyPage();\n }\n\n// ////////////////////////////////////////////////////////////////////////////////////////////\n//\n//\n// GraphResponse rep = response;\n// new GraphRequest(\n// token,\n// //\"/\" + myfacebookid + \"/taggable_friends\", //taggable_friends // friendlists // invitable_friends //excluded_ids //friends\n// \"/me/friendlists\",\n// null,\n// HttpMethod.GET,\n// new GraphRequest.Callback() {\n// public void onCompleted(GraphResponse response) {\n// /* handle the result */\n// GraphResponse rep = response;\n//\n// ////////////////////////////////////////////////////////////\n// ////////////////// all facebook users///////////////////////\n//\n// try {\n// JSONObject json = response.getJSONObject();\n//\n// if(json.has(\"data\")){\n// JSONArray rawPhotosData =json.getJSONArray(\"data\");\n// JSONArray facebookfriend = new JSONArray();\n// for(int j=0; j<rawPhotosData.length();j++){\n// //save whatever data you want from the result\n// JSONObject photo = new JSONObject();\n// photo.put(\"id\", ((JSONObject)rawPhotosData.get(j)).get(\"id\"));\n// photo.put(\"name\",((JSONObject)rawPhotosData.get(j)).get(\"name\"));\n// photo.put(\"icon\", ((JSONObject)rawPhotosData.get(j)).get(\"picture\"));\n// facebookfriend.put(photo);\n// }\n// String strfacebookfriend = facebookfriend.toString().trim();\n// DataUtils.savePreference(Const.FACEBOOK_FRIENDS, strfacebookfriend);\n//\n// }else{\n//\n// }\n// } catch (JSONException e) {\n// Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_SHORT).show();\n// e.printStackTrace();\n// }\n//\n// // goto setting scrreen.\n// Intent intent = new Intent(MainActivity.this,ReadyActivity.class);\n// startActivity(intent);\n// overridePendingTransition(R.anim.anim_slide_in_right, R.anim.anim_slide_out_left);\n// //\n// finish();\n// ////////////////////////////////////////////////////////////\n// }\n// }\n// ).executeAsync();\n }", "UserFriendsFriendsEntry getFriendsFriends(Integer user_id);", "java.util.List<protocol.Data.Friend.FriendItem> \n getFriendList();", "int getFriendListCount();", "int getFriendListCount();", "public ArrayList<Profile> getFriends()\n {\n\n return friendslist;\n }", "private void onFriendsSync(Profile profile) {\n String userId = profile.getUserId();\n\n String ownId = Login.getUserId();\n\n UserDatabase userDb = new UserDatabase(userId);\n userDb.getChildCollection(\"friends\")\n .whereEqualTo(\"id\", ownId)\n .get()\n .addOnSuccessListener(query -> {\n\n boolean pending = false;\n boolean requested = false;\n boolean exists = query.size() >0;\n\n if(exists){\n List<DocumentSnapshot> documents = query.getDocuments();\n Map<String,Object> test = documents.get(0).getData();\n\n if( test.containsKey(\"status\")){\n pending = test.get(\"status\").equals(\"requested\");\n }\n\n if( test.containsKey(\"status\")){\n requested = test.get(\"status\").equals(\"pending\");\n }\n }\n boolean ownProfile = userId.equals(Login.getUserId());\n\n if (exists && !ownProfile && !pending && !requested) {\n buttonRemoveFriend(userId, ownId);\n } else if (ownProfile) {\n buttonAddFriends();\n } else if(exists && pending) {\n buttonAcceptFriend(userId, ownId);\n } else if(exists && requested) {\n buttonCancelRequest(userId, ownId);\n } else{\n buttonAddFriend(userId, ownId);\n }\n\n loadingBar.hide();\n swipeRefreshLayout.setRefreshing(false);\n\n syncFriendsCount();\n })\n .addOnFailureListener(fail -> {\n fail.printStackTrace();\n Toast.makeText(this, \"Failed to load friends information\", Toast.LENGTH_SHORT)\n .show();\n });\n }", "public static ExecutionResult getFriendsOfFriends(Universe universe, String name) {\n ExecutionEngine engine = new ExecutionEngine(universe.getGraphDb());\n String query = \"START p=node:node_auto_index(name='\" + name + \"') MATCH p-[:\" + RelationshipTypes.FRIENDS_WITH + \"]->()-[:\" + RelationshipTypes.FRIENDS_WITH + \"]->fof \" + \"RETURN p, fof.name\";\n\n ExecutionResult result = engine.execute(query);\n System.out.println(result.toString());\n return result;\n }", "public static FriendsList getFriendsList() {\r\n\t\treturn friendsList;\r\n\t}", "public abstract ArrayList<String> getInvitedFriend(int gameId, String username) throws SQLException;", "public FriendList[] getFriendsLists();", "public static synchronized void loadFriendsList() {\r\n\t\t\t\r\n\t\t\t// TODO Controllare che esista il file CONTACTS.xml\r\n\t\t\t// TODO Se esiste, caricare i contatti dal file altrimenti richiedere al sip\r\n\t\t\tArrayList<Contact> contactList = ContactListManager.getContactList(); \r\n\t\t\t\r\n\t\t\tFriendsList fl = new FriendsList(); \r\n\t\t\t\r\n\t\t\tfor(Contact contact : contactList) {\r\n\t\t\t\tfl.addFriend(contact.getFriend()); \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetFriendsList(fl); \r\n\t\t}", "public String ListOnlineUsers(){\r\n StringBuilder listUsers = new StringBuilder();\r\n for (Utente u: utenti) { // crea la lista degli utenti registrati al servizio e online\r\n if(u.getStatus().equals(\"ONLINE\")) {\r\n \tlistUsers.append(u.getUsername()).append(\" \");\r\n \tlistUsers.append(u.getStatus()).append(\"\\n\");\r\n }\r\n }\r\n return listUsers.toString(); \r\n }", "POGOProtos.Rpc.GetFriendsListOutProto.FriendProto getFriend(int index);", "private void showPeopleList() {\n\t\t// If we do not have network, show an error\n\t\tif(! NetworkUtils.isOnline(getActivity())) {\n\t\t\tLog.i(m_fragmentName, \"showPeopleList() - Cannot show people's list because Network is Not Available\");\n\t\t\t\n\t\t\tfinal String title = getStringFromResources(R.string.error);\n\t\t\tfinal String message = getStringFromResources(R.string.noNetwork);\n\t\t\tif (m_uiUpdater != null) {\n\t\t\t\tm_uiUpdater.showAlert(title, message);\n\t\t\t}\n\t\t\t\n\t\t\t// Show Login UI\n\t\t\tif(m_uiUpdater != null) {\n\t\t\t\tm_uiUpdater.showLoginUi();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If this Fragment is attached\n\t\tif (m_fragmentAttached.get() && getArguments() != null) {\n\t\t\t// Get the friend data from Bundle\n\t\t\tList<PersonInCircle> personInCircleData = getArguments()\n\t\t\t\t\t.getParcelableArrayList(PEOPLE_IN_CIRCLE_DATA_KEY);\n\n\t\t\tif (personInCircleData != null && personInCircleData.size() > 0) {\n\t\t\t\tm_lvFriendsList.setVisibility(View.VISIBLE);\n\n\t\t\t\t// Update the data\n\t\t\t\tm_personAdapter.updateData(personInCircleData);\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tm_lvFriendsList.setVisibility(View.INVISIBLE);\n\n\t\t\t\tfinal String title = getStringFromResources(R.string.warning);\n\t\t\t\tfinal String message = getStringFromResources(R.string.emptyPeopleList);\n\t\t\t\tif (m_uiUpdater != null) {\n\t\t\t\t\tm_uiUpdater.showAlert(title, message);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\tm_lvFriendsList.setVisibility(View.INVISIBLE);\n\n\t\t\tfinal String title = getStringFromResources(R.string.warning);\n\t\t\tfinal String message = getStringFromResources(R.string.emptyPeopleList);\n\t\t\tif (m_uiUpdater != null) {\n\t\t\t\tm_uiUpdater.showAlert(title, message);\n\t\t\t}\n\t\t}\n\t}", "public FriendList createFriendList();", "public Friend findFriend(Address addr);", "public ArrayList<String> getUsersOnline(){\n if(usersOnline != null)\n return usersOnline;\n return new ArrayList<>();\n }", "private List<Person> fetchingUtility() {\n List<Person> fetchedList = new ArrayList<>();\n fetchedList.add(new Person(-26.220616, 28.079329, \"PJ0\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.187616, 28.079329, \"PJ1\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.207616, 28.079329, \"PJ2\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.217616, 28.079329, \"PJ3\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.346316, 28.079329, \"PJ4\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.215896, 28.079329, \"PJ5\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.215436, 28.079129, \"PJ6\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.431461, 28.079329, \"PJ7\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.168879, 28.079329, \"PJ8\", \"https://twitter.com/pjapplez\", false));\n fetchedList.add(new Person(-26.227616, 28.079329, \"PJ9\", \"https://twitter.com/pjapplez\", false));\n\n return fetchedList;\n }", "public ArrayList<Neighbor> getAllFriends()\n\n {\n allFriends = new ArrayList<Neighbor>();\n\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n String query = \"SELECT * FROM Friend WHERE 1\";\n Cursor c = database.rawQuery(query, null);\n if (c.moveToFirst())\n {\n do\n {\n Neighbor friend = new Neighbor();\n friend.setDeviceAddress(c.getString(c.getColumnIndex(\"deviceID\")));\n friend.setIpAddress(c.getString(c.getColumnIndex(\"IP\")));\n friend.setInstanceName(c.getString(c.getColumnIndex(\"Username\")));\n\n allFriends.add(friend);\n } while (c.moveToNext());\n }\n\n else\n {\n Log.i(TAG, \"There are no posts in the DB.\");\n }\n c.close();\n dbH.close();\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n }\n return allFriends;\n }", "public void getFriendRequests() {\n DocumentReference userDocument = dbref.getUserDocument();\n userDocument.collection(\"PendingFriendRequest\").addSnapshotListener(new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(@Nullable QuerySnapshot value,\n @Nullable FirebaseFirestoreException e) {\n if (e != null) {\n Log.w(TAG, \"Listen failed.\", e);\n return;\n }\n\n for (QueryDocumentSnapshot doc : value) {\n\n Users user = doc.toObject(Users.class);\n Instructors.add(user);\n }\n printFriendRequestNames();\n }\n });\n }", "@Override\n\t\tpublic void visit(IsOnlineRequest request) {\n\t\t\tOptional<Boolean> response = Optional.empty();\n\t\t\tif (data.areFriends(client, request.who)) {\n\t\t\t\tresponse = Optional.of(data.isConnected(request.who));\n\t\t\t}\n\t\t\tsendIfOnline(client, new IsOnlineResponse(request.who, response));\n\t\t}", "java.util.List<POGOProtos.Rpc.GetFriendsListOutProto.FriendProto> \n getFriendList();", "public static ExecutionResult lookupFriendship(Universe universe, Node person, Node friend) {\n ExecutionEngine engine = new ExecutionEngine(universe.getGraphDb());\n String query = \"START p=node(\" + person.getId() + \"), s=node(\" + friend.getId() + \") MATCH (p)-[r:\" + RelationshipTypes.FRIENDS_WITH + \"]->s RETURN s.name\";\n return engine.execute(query);\n }", "@Override\n\tpublic ArrayList<UserProfile> viewAllFriends(String userId) {\n\t\tArrayList<UserProfile> arrUserProfile = new ArrayList<UserProfile>();\n\t\tUserProfile profile;\n\t\tUserProfileService userProfileService = new UserProfileService();\n\t\t\n\t\tconn = ConnectionFactory.getConnection();\n\n\t\ttry {\n\t\t\tString sql = \"select user_id_2 from friendship where user_id_1=? and status='Y'\";\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, userId);\n\n\t\t\tset = pstmt.executeQuery();\n\n\t\t\twhile(set.next()){\n\t\t\t\t//Retrieve by column name\n\t\t\t\tprofile = userProfileService.viewUserProfile(set.getString(\"user_id_2\"));\n\t\t\t\t\n\t\t\t\tarrUserProfile.add(profile);\n\t\t\t}\n\t\t} catch(SQLException sqlex) {\n\t\t\tsqlex.printStackTrace();\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionFactory.closeResources(set, pstmt, conn);\n\t\t}\n\n\t\treturn arrUserProfile;\n\t}", "int getFriendCount();", "int getFriendCount();", "People getFriendList(int index);", "public Roster getListofFriends(){\n\n\t\treturn friendsList;\n\t}", "public List<User> getPotFriends() {\n //friends;\n compareMajor();\n compareClasses();\n compareLanguage();\n Collections.sort(friends);\n return friends;\n }", "@Override\n\t\tprotected ArrayList<Friend> doInBackground(Integer... params) {\n\t\t\tArrayList<Friend> arr = new ArrayList<Friend>();\n\t\t\tJsonFriends json;\n\t\t\tString key_word = null;\n\t\t\tif (KEY_IS_SEARCHING)\n\t\t\t\tkey_word = txt_find_friend.getText().toString();\n\t\t\tjson = JsonFriends.getFriendsList(params[0], key_word, params[1]);\n\t\t\tif (json.getErrorCode() == 0) {\n\t\t\t\tif (json.isSuccess()) {\n\t\t\t\t\tarr.addAll(json.array_friend);\n\t\t\t\t\tTOTAL_ITEM_FOUND = json.totalFound;\n\t\t\t\t} else {\n\t\t\t\t\tLog.e(LOG_TAG, json.getErrorMessage());\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tERR_MSG = json.getErrorMessage();\n\t\t\t}\n\t\t\treturn arr;\n\t\t}", "private void fetchUsers(){\n for(Chat chat : chatArrayList){\n if(chat.getUserOne().equals(profileRemoteDAO.getUserId()))\n profileRemoteDAO.getProfileRequestHandler(chat.getUserTwo());\n else\n profileRemoteDAO.getProfileRequestHandler(chat.getUserOne());\n }\n customArrayAdapter.notifyDataSetChanged();\n }", "public ArrayList<UserBean> listOnlineUsers()\n\t{\n\t\ttry{\n\t\t\tSocket toServer = new Socket(server,directorySocket);\n\t\t\tObjectOutputStream outToServer = new ObjectOutputStream(toServer.getOutputStream());\n\t\t\t\n\t\t\tServerMessage m = new ServerMessage();\n\t\t\tm.setCommand(LIST);\n\t\t\t\n\t\t\toutToServer.writeObject(m);\n\t\t\t\n\t\t\tObjectInputStream serverInput = new ObjectInputStream(toServer.getInputStream());\n\t\t\tonlineUsers = (ArrayList<UserBean>) serverInput.readObject();\n\t\t\t\n\t\t\toutToServer.close();\n\t\t\tserverInput.close();\n\t\t\ttoServer.close();\n\t\t}catch(UnknownHostException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn onlineUsers;\n\t}", "private void getAllUsers(){\n\t\t\n\t\tSystem.out.println(\"Retrieving Social Graph Data from tibbr...\"); \n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\n\t\tString params = \"?sort=firstNameAsc&fields=name,jive.username,-resources&count=5000&startIndex=0\"; \n\t\tHttpGet getRequest = new HttpGet(urlBase+\"/api/core/v3/people/@all\"+params);\n\t\t\n\n\t\t\t \n\t\tgetRequest.setHeader(\"Authorization\", \"Basic \" + this.auth);\n\t\t\n\t\t\t\n\t\ttry {\n\t\t\tHttpResponse response = httpClient.execute(getRequest);\n\t\t\tString jsonOut = readStream(response.getEntity().getContent());\n\t\t // Remove throwline if present\n\t\t\tjsonOut = removeThrowLine(jsonOut);\n\t\t getAllUserElements(jsonOut);\n\t\t \n\t \n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public void onlineUsers(ArrayList<String> users);", "void whosAround () {\n String prefFileName = getText(R.string.pref_file_name).toString();\n SharedPreferences prefs = getSharedPreferences(prefFileName, MODE_PRIVATE);\n String profileIdStr = prefs.getString(\"profileId\", null);\n\n profiles = new ArrayList<Profile>();\n\n if (profileIdStr != null) {\n // 2) make url http://<host>/people/<profile-id>/whos_around.xml\n String host = getText(R.string.server_url).toString();\n String url = host + \"/people/\" + profileIdStr + \"/location/whos_around.xml\";\n RequestTool reqTool = RequestTool.getInstance(prefs);\n Document doc = reqTool.makeGetRequest(url, null, 200);\n profiles = (ArrayList<Profile>) Profile.constructFromXml(doc);\n }\n }", "public void getProfileInformation() {\n\n\t\t mAsyncRunner.request(\"me\", new RequestListener() {\n\t\t\t @Override\n\t\t\t public void onComplete(String response, Object state) {\n\t\t\t\t Log.d(\"Profile\", response);\n\t\t\t\t String json = response;\n\t\t\t\t try {\n\t\t\t\t\t // Facebook Profile JSON data\n\t\t\t\t\t JSONObject profile = new JSONObject(json);\n\n\t\t\t\t\t uName = profile.getString(\"name\");\n\t\t\t\t\t uMail = profile.getString(\"email\");\n\t\t\t\t\t //uGender=profile.getString(\"gender\");\n\n\n\t\t\t\t\t //final String birthday=profile.getString(\"birthday\");\n\t\t\t\t\t runOnUiThread(new Runnable() {\n\t\t\t\t\t\t @Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t //Toast.makeText(getApplicationContext(), \"Name: \" + name + \"\\nEmail: \" + email+\"\\nGender: \"+gender, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }\n\t\t\t\t\t });\n\t\t\t\t } \n\t\t\t\t catch (JSONException e) \n\t\t\t\t {\n\t\t\t\t\t errorMessage = \"JSON Error Occured\";\n\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onIOException(IOException e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Data read Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onFileNotFoundException(FileNotFoundException e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Image read Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onMalformedURLException(MalformedURLException e,\n\t\t\t\t\t Object state) {\n\t\t\t\t errorMessage = \"Facebook URL Error Occured\";\n\t\t\t }\n\n\t\t\t @Override\n\t\t\t public void onFacebookError(FacebookError e, Object state) {\n\t\t\t\t errorMessage = \"Facebook Error Occured OnFacebook\";\n\t\t\t }\n\t\t });\n\t }", "public List<String> getDirectFriends(String name) {\r\n \t\t\r\n\t ArrayList<String> directFriends = new ArrayList<String>();\r\n\t \r\n\t if(friendsCache.containsKey(name)){\r\n\t\t directFriends.addAll(friendsCache.get(name));\r\n\t }\r\n\t // Traverse each friend's list to see if we find name, if we do, then enter the name in to direct friends name.\r\n//\t for(Map.Entry<String, ArrayList<String>> entry : friendsCache.entrySet()){\r\n//\t\t ArrayList<String> friends = entry.getValue();\r\n//\t\t if(friends.contains(name) && directFriends.contains(entry)){\r\n//\t\t\t directFriends.add(entry.getKey());\r\n//\t\t }\r\n//\t }\r\n//\t \r\n\t \r\n\t return directFriends;\r\n }", "com.vine.vinemars.net.pb.SocialMessage.FriendObj getFriendList(int index);", "@Transactional\n public static Result friends(String userAuthToken)\n {\n try\n {\n User user = UserDao.getUserByAuthToken(userAuthToken);\n if (user != null)\n {\n UserFriendsResponse userFriendsResponse = new UserFriendsResponse(true, null);\n userFriendsResponse.friends = new ArrayList<UserFriendsResponse.Friend>();\n for (User userOfFriend: user.getFriends())\n {\n UserFriendsResponse.Friend responseFriend = new UserFriendsResponse.Friend();\n responseFriend.userId = userOfFriend.getIdHash();\n responseFriend.name = userOfFriend.facebookUser.name;\n responseFriend.gender = userOfFriend.facebookUser.gender;\n responseFriend.pictureUrl = userOfFriend.facebookUser.pictureUrl;\n userFriendsResponse.friends.add(responseFriend);\n }\n return ok(toJson(userFriendsResponse));\n }\n else\n {\n UserFriendsResponse userFriendsResponse =\n new UserFriendsResponse(false, \"Could not find auth token and/or user. Try logging in again.\");\n return badRequest(toJson(userFriendsResponse));\n }\n }\n catch (Exception e)\n {\n Logger.error(\"Error pulling user friend info from DB\", e);\n UserFriendsResponse userFriendsResponse = new UserFriendsResponse(false, \"Unexpected error\");\n return internalServerError(toJson(userFriendsResponse));\n }\n }", "public static void loadFriendsListFromSIP() {\r\n\t\t\tClientEngine.LoadContactsFromSIP();\r\n\t\t}", "Data<List<User>> getfollowingUsers(Integer limit);", "public void acceptFriendRequest(Friend friend);", "private void getCustomer() {\n final LoginGet loginget = new LoginGet();\n loginget.setLoginGetListener(new LoginGetListener() {\n\n @Override\n public void getMember(ArrayList<Customer> list) {\n\n }\n\n @Override\n public void getCustomer(ArrayList<Customer> list) {\n customerList = new ArrayList<Customer>();\n customerList.addAll(list);\n if (customerList.size() > 0) {\n defaultPage.setVisibility(View.GONE);\n ll.setVisibility(View.VISIBLE);\n myNewCustomersAdapter = new MyNewCustomersAdapter(\n NewFriendsActivity.this, customerList);\n listView.setAdapter(myNewCustomersAdapter);\n } else {\n tv2.setText(\"You haven't friends for a long time\");\n }\n\n }\n });\n loginget.CustomerRequest(NewFriendsActivity.this);\n\n }", "public void facebookFriends()\n\t{\n\t\tPreferences preferences = new Preferences(getActivity());\n\t\tString accessToken = preferences.getFacebookAccessToken();\n\t\tlong expiration = preferences.getFacebookAccessExpiration();\n\n\t\tif(accessToken != null) mFacebook.setAccessToken(accessToken);\n\t\tif(expiration != 0) mFacebook.setAccessExpires(expiration);\n\t\t\n\t\tif(mFacebook.isSessionValid())\n\t\t{\n\t\t\t// show progress in action bar\n\t\t\tshowActionBarProgress(true);\n\t\t\t\n\t\t\t// parameters\n\t\t\tBundle bundle = new Bundle();\n\t\t\tbundle.putString(\"fields\", \"id,name,gender\");\n\t\t\t\n\t\t\tmAsyncFacebookRunner.request(\"me/friends\", bundle, new RequestListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void onComplete(final String response, Object state)\n\t\t\t\t{\n\t\t\t\t\t// TODO: run callbacks in TaskFragment.runTaskCallback()\n\n\t\t\t\t\tLogcat.d(\"Fragment.facebookFriends().onComplete(): \" + response);\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onFacebookError(final FacebookError e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookFriends().onFacebookError(): \" + e.getErrorType() + \" / \" + e.getLocalizedMessage() + \" / \" + e.getMessage());\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tif(e.getMessage()!=null) Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onIOException(IOException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookFriends().onIOException()\");\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFileNotFoundException(FileNotFoundException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookFriends().onFileNotFoundException()\");\n\t\t\t\t\t\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onMalformedURLException(MalformedURLException e, Object state)\n\t\t\t\t{\n\t\t\t\t\tLogcat.d(\"Fragment.facebookFriends().onMalformedURLException()\");\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// toast\n\t\t\t\t\t\t\tToast.makeText(getActivity(), R.string.global_server_fail_toast, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\telse\n\t\t{\n\t\t\tToast.makeText(getActivity(), \"You are logged out.\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "public void getFollowList(String un, UserFriends uf) {\n // accessing follow list table (collection)\n MongoCollection<Document> followColl = db.getCollection(\"followList\");\n\n // find user's document\n Document followDoc = followColl.find(Filters.eq(\"username\", un)).first();\n //System.out.println(followDoc.toJson());\n\n // get username of everyone that this user is following into UserFriends class\n if (!uf.friendsList.isEmpty())\n uf.friendsList.clear();\n\n uf.friendsList.addAll((ArrayList<String>) followDoc.get(\"following\"));\n\n // debugging\n /*\n for (String followingWho: uf.friendsList) {\n System.out.println(\"Following: \" + followingWho.toString());\n //GetUser(followingWho.toString());\n }\n */\n }", "private void handleResponseNotOwner(Friends friends) {\n Log.d(DEBUG, \"friends: \" + friends.getFirstName() + friends.getLastName() + friends.getEmail());\n // debug only, can set invisible if needed\n pendingFriendList.add(friends);\n // NEED to notify the adapter that data has been changed!\n mAdapter.notifyDataSetChanged();\n }", "@GetMapping(\"/{id}/allfriends\")\n\tpublic String allFriend(HttpSession session, @ModelAttribute(\"friend\")Friend friend, Model viewModel, @PathVariable(\"id\")Long uid) {\n\t\tLong userId = (Long)session.getAttribute(\"userId\");\n\t\tUser user = this.uServ.findUserById(userId);\n\t\tviewModel.addAttribute(\"user\", user);\n\t\t\n\t\tList<Friend> allFrnd = user.getFriend();\n\t\tviewModel.addAttribute(\"allFrnd\", allFrnd);\n\t\t\n\t\tList<Friend> top8 = this.mServ.findTopEightOfOwner(user);\n\t\tviewModel.addAttribute(\"top8\", top8);\n\t\treturn \"AllFriend.jsp\";\n\t}", "@GetMapping(\"/{id}/allfriends\")\n\tpublic String allFriend(HttpSession session, @ModelAttribute(\"friend\")Friend friend, Model viewModel, @PathVariable(\"id\")Long uid) {\n\t\t\n\t\tUser user = this.uServ.findUserById(uid);\n\t\tviewModel.addAttribute(\"user\", user);\n\t\t\n\t\tList<Friend> allFrnd = user.getFriend();\n\t\tviewModel.addAttribute(\"allFrnd\", allFrnd);\n\t\t\n\t\tTop8 top8 = this.mServ.findTopEightOfOwner(user);\n\t\tviewModel.addAttribute(\"top8\", top8);\n\t\treturn \"AllFriend.jsp\";\n\t}", "public ArrayList getFriendData(String account_name, String data){\n ArrayList friendList = new ArrayList();\n ArrayList imageList = new ArrayList();\n ArrayList friends = new ArrayList();\n ArrayList onlinefriends = new ArrayList();\n ArrayList offlineFriends = new ArrayList();\n\n try{\n statement = connection.createStatement();\n\n\n\n //execute SQL query and get the data from the database\n ResultSet myResult = statement.executeQuery(\"SELECT * FROM \" + account_name);\n //add the friends and online status to the lists\n while (myResult.next()){\n friends.add(myResult.getString(\"friend\"));\n if (myResult.getString(\"online\").equals(\"online\"))\n onlinefriends.add(myResult.getString(\"friend\"));\n else\n offlineFriends.add(myResult.getString(\"friend\"));\n\n }\n\n\n //now get the images of the friends from members table in a for loop\n\n for (int i = 0; i < friends.size();i++){\n myResult = statement.executeQuery(\"SELECT image,name FROM members WHERE name ='\" +friends.get(i) + \"'\" );\n while (myResult.next()){\n //get bytes from database for image\n\n friendList.add(myResult.getString(\"name\"));\n //get the blob\n byte[]bytes = myResult.getBytes(\"image\");\n\n try {\n //convert it to an fximage\n ByteArrayInputStream in = new ByteArrayInputStream(bytes);\n BufferedImage bufferedImage = ImageIO.read(in);\n Image image = SwingFXUtils.toFXImage(bufferedImage,null);\n\n\n imageList.add(image);\n\n }catch (IOException ex){ex.printStackTrace();}\n\n\n\n }\n }\n\n\n\n }catch (SQLException ex){ex.printStackTrace();}\n if (data.equals(\"image\"))\n return imageList;\n else if (data.equals(\"friends\"))\n return friendList;\n else if(data.equals(\"offline\"))\n return offlineFriends;\n else\n return onlinefriends;\n\n\n\n }", "AddFriend.AToServer getAddFriendAToServer();", "public void getFriend_and_tweet(String Screen_Name, String Label) {\n\t\tPagableResponseList<User> statuses = null;\n\t\tResponseList<Status> userinfo = null;\n\n\t\ttry {\n\n\t\t\tuserinfo = twitter.getUserTimeline(Screen_Name);\n\t\t\tstatuses = twitter.getFriendsList(Screen_Name, -1, 200);\n\t\t\tdb.insertuser(userinfo.get(0).getUser()); // this line will insert the user given to table of Users\n\t\t\tdb.insert_User_to_Trning_set(userinfo.get(0).getUser(), Label);// this line will insert the user given to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// table of User_to_Trning_set\n\t\t\tfor (User newUser : statuses) {\n\t\t\t\tdb.insertuser(newUser); // return true if the User was inserted\n\t\t\t\tdb.insert_User_Following(userinfo.get(0).getUser().getId(), newUser.getId());\n\t\t\t}\n\t\t\tSystem.out.println(\"Done from FriendsList for \" + Screen_Name);\n\t\t\tdb.updateisCompelet(userinfo.get(0).getUser().getId());\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tList<ResponseList<Status>> tweets = get_tweet(userinfo.get(0).getUser().getId());\n\n\t}", "public static FriendsList getFriendsList(String username)\r\n\t{\r\n\t\tFriendsList friends = friendsLists.get(username);\r\n\t\treturn friends;\r\n\t}", "public void onFriendsInfoReady(JSONObject result){\n\n try{\n if(result.getBoolean(\"Success\")){\n JSONArray friendsInJsonArray = result.getJSONArray(\"Data\");\n\n for(int i=0;i<friendsInJsonArray.length();i++)\n {\n JSONObject friendInJson = (JSONObject) friendsInJsonArray.get(i);\n //fill hash map with friends name\n friends_names.put(friendInJson.getString(\"_id\"),friendInJson.getString(\"name\"));\n //Log.i(LOG_TAG,friendInJson.toString());\n }\n }else{\n Log.e(LOG_TAG,result.getString(\"Error\"));\n }\n\n }catch (JSONException exception)\n {\n Log.e(LOG_TAG,exception.toString());\n }\n //TODO: parse result and set friends hash map,result is array of user\n //Toast.makeText(MainActivity.this, result.toString(),Toast.LENGTH_SHORT).show();\n }", "private void updatePage() {\n\t\ttry {\n\t\t\tList<ParseUser> friendUsers = ParseUser.getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.fromLocalDatastore()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.whereNotEqualTo(\"facebookId\", currentUser.getString(\"facebookId\"))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.find();\n\t\t\t\n\t\t\tpopulateViews(friendUsers);\n\t\t\n\t\t} catch (ParseException e) {\n\t\t\tLog.e(StealTheCheeseApplication.LOG_TAG, \"Fetch friends from localstore failed with message: \" + e);\n\t\t}\n\t}", "@Override\n\tpublic void onGetOnlineUsersDone(AllUsersEvent arg0) {\n\t\t\n\t}", "public void getSuggestedFriends(String un, UserFriends uf) {\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n if (!uf.suggestion.isEmpty())\n uf.suggestion.clear();\n\n FindIterable<Document> allDocs = collRU.find(); // get all documents\n MongoCursor<Document> cursor = allDocs.iterator(); // set up cursor to iterate rows of documents\n try {\n while (cursor.hasNext()) {\n String nextUsername = cursor.next().getString(\"username\");\n if (!nextUsername.equals(un) && !uf.friendsList.contains(nextUsername)) {\n uf.suggestion.add(nextUsername);\n }\n }\n } finally {\n cursor.close();\n }\n }", "@Override\n\tpublic List<String> acquireUserList() {\n\t\tString url = WeChatConst.WECHATURL+WeChatConst.GETUSERLISTURI;\n\t\tboolean flag = true;\n\t\tString next_openid = null;\n\t\tList<String> openids = new ArrayList<String>(); \n\t\twhile (flag) \n\t\t{\n\t\t\tMap<String, String> param = new HashMap<String, String>();\n\t\t\tparam.put(\"access_token\",WeChatGlobalVar.accessToken);\n\t\t\tif(next_openid != null)\n\t\t\t{\n\t\t\t\tparam.put(\"next_openid\", next_openid);\n\t\t\t}\n\t\t\tString response = HttpClientUtils.doGetWithoutHead(url, param);\n\t\t\tlog.debug(\" acquireUserList response :\"+response);\n\t\t\ttry {\n\t\t\t\tJSONObject responseJson = JSONObject.parseObject(response);\n\t\t\t\tif(!responseJson.containsKey(\"errcode\"))\n\t\t\t\t{\n\t\t\t\t\tJSONObject data = responseJson.getJSONObject(\"data\");\n\t\t\t\t\tif(data != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tJSONArray openidArray = data.getJSONArray(\"openid\");\n\t\t\t\t\t\tif(openidArray != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor (int i = 0; i < openidArray.size(); i++) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\topenids.add(openidArray.getString(i));\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\tString nextopenid = responseJson.getString(\"next_openid\");\n\t\t\t\t\tif(StringUtils.isEmpty(nextopenid))\n\t\t\t\t\t{\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t}\n\t\t\t\t\tnext_openid = nextopenid;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(e);\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t}\n\t\treturn openids;\n\t}", "@Override\n public void run() {\n JSONObject ronfinfo = ConnectService\n .getIncidentbyHttpGet(AppConfig.URL_PUBLIC\n + \"Friend/ToApproveList?rongCloudIDs=\"\n + newbuilder);\n Log.e(\"url\", AppConfig.URL_PUBLIC\n + \"Friend/ToApproveList?rongCloudIDs=\" + newbuilder);\n List<AddFriend> addinfo = formatFrinds(ronfinfo);\n if (addinfo.size() > 0) {\n setFriendsNameTel(addinfo);\n }\n handler.obtainMessage(AppConfig.LOAD_FINISH).sendToTarget();\n }", "List<KingdomUser> getUsers();", "People getUser();", "public static void getBuddyList(){\r\n\t\tSystem.out.println(\"====== getBuddyList begin======\");\r\n\r\n\t\tList <NameValuePair> nvps = new ArrayList <NameValuePair>();\r\n nvps.add(new BasicNameValuePair(\"buddy_list\", \"1\"));\r\n nvps.add(new BasicNameValuePair(\"notifications\", \"1\"));\r\n nvps.add(new BasicNameValuePair(\"force_render\", \"true\"));\r\n //nvps.add(new BasicNameValuePair(\"popped_out\", \"false\"));\r\n nvps.add(new BasicNameValuePair(\"post_form_id\", post_form_id));\r\n nvps.add(new BasicNameValuePair(\"user\", uid));\r\n \r\n try{\r\n String responseStr = facebookPostMethod(\"http://www.facebook.com\", \"/ajax/presence/update.php\", nvps);\r\n System.out.println(responseStr);\r\n //for (;;);{\"error\":0,\"errorSummary\":\"\",\"errorDescription\":\"No error.\",\"payload\":{\"buddy_list\":{\"listChanged\":true,\"availableCount\":1,\"nowAvailableList\":{\"UID1\":{\"i\":false}},\"wasAvailableIDs\":[],\"userInfos\":{\"UID1\":{\"name\":\"Buddy 1\",\"firstName\":\"Buddy\",\"thumbSrc\":\"http:\\/\\/static.ak.fbcdn.net\\/pics\\/q_default.gif\",\"status\":null,\"statusTime\":0,\"statusTimeRel\":\"\"},\"UID2\":{\"name\":\"Buddi 2\",\"firstName\":\"Buddi\",\"thumbSrc\":\"http:\\/\\/static.ak.fbcdn.net\\/pics\\/q_default.gif\",\"status\":null,\"statusTime\":0,\"statusTimeRel\":\"\"}},\"forcedRender\":true},\"time\":1209560380000}} \r\n //for (;;);{\"error\":0,\"errorSummary\":\"\",\"errorDescription\":\"No error.\",\"payload\":{\"time\":1214626375000,\"buddy_list\":{\"listChanged\":true,\"availableCount\":1,\"nowAvailableList\":{},\"wasAvailableIDs\":[],\"userInfos\":{\"1386786477\":{\"name\":\"\\u5341\\u4e00\",\"firstName\":\"\\u4e00\",\"thumbSrc\":\"http:\\/\\/static.ak.fbcdn.net\\/pics\\/q_silhouette.gif\",\"status\":null,\"statusTime\":0,\"statusTimeRel\":\"\"}},\"forcedRender\":null,\"flMode\":false,\"flData\":{}},\"notifications\":{\"countNew\":0,\"count\":1,\"app_names\":{\"2356318349\":\"\\u670b\\u53cb\"},\"latest_notif\":1214502420,\"latest_read_notif\":1214502420,\"markup\":\"<div id=\\\"presence_no_notifications\\\" style=\\\"display:none\\\" class=\\\"no_notifications\\\">\\u65e0\\u65b0\\u901a\\u77e5\\u3002<\\/div><div class=\\\"notification clearfix notif_2356318349\\\" onmouseover=\\\"CSS.addClass(this, 'hover');\\\" onmouseout=\\\"CSS.removeClass(this, 'hover');\\\"><div class=\\\"icon\\\"><img src=\\\"http:\\/\\/static.ak.fbcdn.net\\/images\\/icons\\/friend.gif?0:41046\\\" alt=\\\"\\\" \\/><\\/div><div class=\\\"notif_del\\\" onclick=\\\"return presenceNotifications.showHideDialog(this, 2356318349)\\\"><\\/div><div class=\\\"body\\\"><a href=\\\"http:\\/\\/www.facebook.com\\/profile.php?id=1190346972\\\" >David Willer<\\/a>\\u63a5\\u53d7\\u4e86\\u60a8\\u7684\\u670b\\u53cb\\u8bf7\\u6c42\\u3002 <span class=\\\"time\\\">\\u661f\\u671f\\u56db<\\/span><\\/div><\\/div>\",\"inboxCount\":\"0\"}},\"bootload\":[{\"name\":\"js\\/common.js.pkg.php\",\"type\":\"js\",\"src\":\"http:\\/\\/static.ak.fbcdn.net\\/rsrc.php\\/pkg\\/60\\/106715\\/js\\/common.js.pkg.php\"}]}\r\n System.out.println(\"+++++++++ getBuddyList end +++++++++\");\r\n // testHttpClient(\"http://www.facebook.com/home.php?\");\r\n ResponseParser.buddylistParser(responseStr);\r\n } catch (JSONException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n\t}", "private void getProfile(String username) {\n if (new AppCommonMethods(mContext).isNetworkAvailable()) {\n WLAPIcalls mAPIcall = new WLAPIcalls(mContext, getString(R.string.getProfile), this);\n mAPIcall.getProfile(username);\n } else {\n Toast.makeText(mContext, R.string.no_internet, Toast.LENGTH_SHORT).show();\n }\n }", "public void getProfileInformation() {\n\t\tmAsyncRunner.request(\"me\", new RequestListener() {\n\t\t\t@Override\n\t\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\tLog.d(\"Profile\", response);\n\t\t\t\tString json = response;\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject profile = new JSONObject(json);\n\t\t\t\t\tLog.d(\"Arvind Profile Data\", \"\"+profile.toString());\n\t\t\t\t\tfinal String name = profile.getString(\"name\");\n\t\t\t\t\tfinal String email = profile.getString(\"email\");\n\t\t\t\t\tHashMap<String, String> hashMap = new HashMap<String, String>();\n\n\t\t\t\t\thashMap.put(\"first_name\", profile.getString(\"first_name\"));\n\n\t\t\t\t\thashMap.put(\"last_name\", profile.getString(\"last_name\"));\n\n\t\t\t\t\thashMap.put(\"id\", profile.getString(\"id\"));\n\n\t\t\t\t\thashMap.put(\"gender\", profile.getString(\"gender\"));\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\thashMap.put(\"email\", profile.getString(\"email\"));\n\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\n\t\t\t\t\thashMap.put(\"birthday\", profile.getString(\"birthday\"));\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t//\tGetAlbumdata();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tIntent returnIntent = new Intent();\n\t\t\t\t\treturnIntent.putExtra(\"map\", hashMap);\n\t\t\t\t\tsetResult(RESULT_OK,returnIntent);\n\t\t\t\t\tfinish();\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} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFileNotFoundException(FileNotFoundException e,\n\t\t\t\t\tObject state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onMalformedURLException(MalformedURLException e,\n\t\t\t\t\tObject state) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFacebookError(FacebookError e, Object state) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t}", "public ArrayList<User> getPending(User main){\n SQLiteDatabase db = getWritableDatabase();\n db.beginTransaction();\n\n ArrayList<User> userList = new ArrayList<>();\n\n try {\n String getQuery = String.format(\n \"SELECT * FROM User u \" +\n \"WHERE u.userID != '%s' AND u.userID IN \" +\n \" (SELECT userID FROM User_has_Friends uhf WHERE uhf.frienduserID == '%s' AND uhf.pending == 1)\"\n , main.getId(), main.getId());\n\n Cursor cursor = db.rawQuery(getQuery, null);\n\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n User user = new User(cursor.getInt(0), cursor.getString(4), cursor.getString(3), cursor.getString(5));\n user.lastname = cursor.getString(2);\n user.firstname = cursor.getString(1);\n user.address = cursor.getString(6);\n user.color = cursor.getString(7);\n user.shoeSize = cursor.getInt(8);\n user.trouserSize = cursor.getString(9);\n user.tshirtSize = cursor.getString(10);\n user.privacy = cursor.getInt(11);\n\n userList.add(user);\n cursor.moveToNext();\n }\n }\n db.setTransactionSuccessful();\n return userList;\n } catch (Exception e) {\n Log.d(\"SQL\", e.getMessage());\n return null;\n } finally {\n db.endTransaction();\n }\n }", "private void syncFriendsCount() {\n new UserDatabase(userId).getDatabase()\n .get()\n .addOnSuccessListener(success -> {\n Map<String, Object> data = success.getData();\n\n if (data != null) {\n Long friendsNum = (Long)data.get(\"friends-count\");\n friendsNum = friendsNum == null ? 0:friendsNum;\n String numberFriends = \"\" + friendsNum;\n friendsView.setText(numberFriends);\n } else {\n String zero = \"\" + 0;\n friendsView.setText(zero);\n }\n\n ProfileCache.setUserCached(userId, true);\n })\n .addOnFailureListener(fail -> {\n fail.printStackTrace();\n Toast.makeText(this, \"Failed to load friends information\", Toast.LENGTH_SHORT)\n .show();\n });\n }", "java.util.List<online_info>\n getInfoList();", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "private void requestUsers(){\n if(mIsLoading)\n return;\n\n mIsLoading = true;\n UserManager.getsInstance().requestUsers(StackExchangeSite.STACK_OVERFLOW,100);\n }", "@Override\n public Vector<Integer> Statusoffriends(Vector<Integer> friends)\n {\n Vector<Integer> StatsOfFreiends=new Vector<>();\n PreparedStatement Is;\n try {\n DriverManager.registerDriver(new OracleDriver());\n Connection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/chat\", \"root\", \"\");\n \n for(int i=0;i<friends.size();i++){\n \n \n Is = con.prepareStatement(\"select Status_ID from users where ID=?\");\n Is.setInt(1, friends.elementAt(i));\n \n ResultSet result = Is.executeQuery();\n if (result.next()) {\n System.out.println(\"success \");\n \n \n StatsOfFreiends.insertElementAt(result.getInt(\"Status_ID\"), i);\n } else {\n\n System.out.println(\"failed \");\n \n }\n}\n } catch (Exception ex) {\n System.out.println(ex);\n ex.printStackTrace();\n }\n\n \n return StatsOfFreiends;\n \n }", "Data<List<User>> getFollowers();", "public void onCompleted(GraphResponse response) {\n if (response.getError() != null) {\n // get personal information\n }else {\n ////////////////////////////////////////////////////////////\n ////////////////// all facebook users///////////////////////\n\n try {\n JSONObject json = response.getJSONObject();\n\n if (json.has(\"data\")) {\n JSONArray rawPhotosData = json.getJSONArray(\"data\");\n JSONArray facebookfriend = new JSONArray();\n for (int j = 0; j < rawPhotosData.length(); j++) {\n //save whatever data you want from the result\n JSONObject photo = new JSONObject();\n photo.put(\"id\", ((JSONObject) rawPhotosData.get(j)).get(\"id\"));\n photo.put(\"name\", ((JSONObject) rawPhotosData.get(j)).get(\"name\"));\n// photo.put(\"icon\", ((JSONObject) rawPhotosData.get(j)).get(\"picture\"));\n facebookfriend.put(photo);\n }\n String strfacebookfriend = facebookfriend.toString().trim();\n DataUtils.savePreference(Const.FACEBOOK_FRIENDS, strfacebookfriend);\n\n } else {\n\n }\n } catch (JSONException e) {\n Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }\n\n istagglefriend = 1;\n if(isfriend == 1 && islogin == 1){\n gotoReadyPage();\n }\n\n ////////////////////////////////////////////////////////////\n }" ]
[ "0.695259", "0.69381815", "0.6811902", "0.67908216", "0.6681114", "0.6651925", "0.6511546", "0.64691895", "0.64232105", "0.6409168", "0.6337315", "0.6309701", "0.6303571", "0.6254829", "0.6241584", "0.6224782", "0.6213292", "0.61828506", "0.6178786", "0.6165483", "0.6152675", "0.6152675", "0.6115248", "0.6110605", "0.60980713", "0.60883296", "0.6067331", "0.60586846", "0.6034527", "0.6033558", "0.5953522", "0.592183", "0.592183", "0.5916165", "0.59102", "0.589206", "0.5884599", "0.5882012", "0.58730245", "0.5870303", "0.5868408", "0.5850487", "0.5848511", "0.58459246", "0.5844164", "0.5836417", "0.5819244", "0.58169067", "0.5814468", "0.58121663", "0.5804835", "0.57863736", "0.57622135", "0.5750051", "0.5750051", "0.5743316", "0.57412696", "0.57329184", "0.57201624", "0.5719317", "0.57180685", "0.57177734", "0.5705839", "0.57044417", "0.5702726", "0.5699092", "0.56883997", "0.5679237", "0.5667009", "0.566095", "0.5657387", "0.56556314", "0.56392545", "0.5636709", "0.5628962", "0.56188923", "0.56074107", "0.5579209", "0.55690396", "0.55548716", "0.5543654", "0.554001", "0.5538101", "0.5537209", "0.55361146", "0.55349064", "0.5529773", "0.55293345", "0.552823", "0.5526015", "0.55236155", "0.55172646", "0.5502406", "0.5491915", "0.5491021", "0.54861605", "0.5480649", "0.54509306", "0.54499906", "0.544358" ]
0.6978856
0
Open the fingerprint device.
public synchronized native static int open();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void open() throws FTD2XXException {\n Memory memory = new Memory(16);\n memory.setString(0, devSerialNumber);\n PointerByReference handle = new PointerByReference();\n ensureFTStatus(ftd2xx.FT_OpenEx(memory, FTD2XX.FT_OPEN_BY_SERIAL_NUMBER, handle));\n this.ftHandle = handle.getValue();\n open = true;\n }", "public void openUsbDevice() {\n tryGetUsbPermission();\n }", "public boolean open(int device)\n {\n \n boolean retVal = open_1(nativeObj, device);\n \n return retVal;\n }", "private static native boolean open_1(long nativeObj, int device);", "public void openDevice() {\n\n new Thread() {\n\n @Override\n public void run() {\n //loger.addRecordToLog(\"_openDevice_ inicio run\");\n\n //openDeviceEnEjecucion = Boolean.TRUE;\n\n showProgressDialog(getString(R.string.mns_titulo), getString(R.string.preparing_device));\n\n int error;\n if ((error = mHuellaScanner.powerOn()) != FingerprintScanner.RESULT_OK) {\n //showErrorDialog(getString(R.string.fingerprint_device_power_on_failed), getFingerprintErrorString(error));\n //loger.addRecordToLog(\"fingerprint_device_power_on_failed : \" + error);\n } else {\n //loger.addRecordToLog(\"mScanner.powerOn() success : \" + error);\n }\n\n Log.i(\"MV\", \"before mScanner.open()\");\n //error = mScanner.open();\n //Log.i(\"MV\", \"after mScanner.open() : \" + error);\n //logger.addRecordToLog(\"after mScanner.open() : \" + error);\n if ((error = mHuellaScanner.open()) != FingerprintScanner.RESULT_OK) {\n Log.i(\"MV\", \"mScanner.open() error\");\n Log.i(\"MV\", \"MSG_UPDATE_SN\");\n Log.i(\"MV\", \"MSG_UPDATE_FW_VERSION\");\n\n //loger.addRecordToLog(\"mScanner.open() error\");\n //loger.addRecordToLog(\"MSG_UPDATE_SN\");\n //loger.addRecordToLog(\"MSG_UPDATE_FW_VERSION\");\n\n } else {\n\n Result res = mHuellaScanner.getSN();\n res = mHuellaScanner.getFirmwareVersion();\n //loger.addRecordToLog(\"MSG_UPDATE_FW_VERSION : \" + (String) res.data);\n\n /*mHandler.sendMessage(mHandler.obtainMessage(MSG_UPDATE_SN, getString(R.string.fps_sn, (String) res.data)));\n mHandler.sendMessage(mHandler.obtainMessage(MSG_UPDATE_FW_VERSION, getString(R.string.fps_fw, (String) res.data)));\n showInfoToast(getString(R.string.fingerprint_device_open_success));\n enableControl(true);*/\n }\n\n if ((error = Bione.initialize(UnicaCompraActivity.this, Constantes.FP_DB_PATH)) == Bione.RESULT_OK) {\n //loger.addRecordToLog(\"algorithm_initialization_success\");\n } else {\n //loger.addRecordToLog(\"algorithm_initialization_failed\");\n }\n\n dismissProgressDialog();\n\n //openDeviceEnEjecucion = Boolean.FALSE;\n //loger.addRecordToLog(\"_openDevice_ fin run\");\n }\n }.start();\n\n }", "private void startListeningForFingerprint() {\n int i = this.mFingerprintRunningState;\n if (i == 2) {\n setFingerprintRunningState(3);\n } else if (i != 3) {\n int currentUser = getCurrentUser();\n if (isUnlockWithFingerprintPossible(currentUser)) {\n CancellationSignal cancellationSignal = this.mFingerprintCancelSignal;\n if (cancellationSignal != null) {\n cancellationSignal.cancel();\n }\n this.mFingerprintCancelSignal = new CancellationSignal();\n Slog.v(\"KeyguardUpdateMonitor\", \"startListeningForFingerprint()\");\n this.mFpm.authenticate(null, this.mFingerprintCancelSignal, 0, this.mFingerprintAuthenticationCallback, null, currentUser);\n setFingerprintRunningState(1);\n }\n }\n }", "void onFingerprintEntered();", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n Fingerprint getFingerprint();", "public void setFingerprint(String fingerprint) {\n this.fingerprint = fingerprint;\n }", "public void openCamera() {\n\n Uri photoURI = FileProvider.getUriForFile(this, BuildConfig.APPLICATION_ID + \".provider\", getTempImage());\n\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n photoURI = Uri.fromFile(getTempImage());\n }\n\n Intent cIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n cIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(cIntent, CAPTURE_PHOTO);\n }", "@Override\n public void showFingerprintDialog(CharSequenceX pincode) {\n mBinding.fingerprintLogo.setVisibility(View.VISIBLE);\n mBinding.fingerprintLogo.setOnClickListener(v -> mViewModel.checkFingerprintStatus());\n // Show dialog itself if not already showing\n if (mFingerprintDialog == null && mViewModel.canShowFingerprintDialog()) {\n mFingerprintDialog = FingerprintDialog.newInstance(pincode, FingerprintDialog.Stage.AUTHENTICATE);\n mFingerprintDialog.setAuthCallback(new FingerprintDialog.FingerprintAuthCallback() {\n @Override\n public void onAuthenticated(CharSequenceX data) {\n dismissFingerprintDialog();\n mViewModel.loginWithDecryptedPin(data);\n }\n\n @Override\n public void onCanceled() {\n dismissFingerprintDialog();\n showKeyboard();\n }\n });\n\n mDelayHandler.postDelayed(() -> {\n if (!isFinishing() && !mIsPaused) {\n mFingerprintDialog.show(getSupportFragmentManager(), FingerprintDialog.TAG);\n } else {\n mFingerprintDialog = null;\n }\n }, 200);\n\n hideKeyboard();\n }\n }", "public abstract void open(CaptchalogueCard card, OpenReason reason);", "private void open() {\n\t\tint state = fileChooser.showOpenDialog(this);\n\t\tswitch (state) {\n\t\tcase JFileChooser.CANCEL_OPTION:\n\t\t\tbreak;\n\t\tcase JFileChooser.APPROVE_OPTION:\r\n\t\t\tFile file = fileChooser.getSelectedFile();\r\n\t\t\t//System.out.println(\"Getting file...\");\r\n\t\t\ttry {\r\n\t\t\t\tfis = new FileInputStream(file);\r\n\t\t\t\tbyte[] b = new byte[fis.available()];\r\n\t\t\t\tif (fis.read(b) == b.length) {\r\n\t\t\t\t\t//System.out.println(\"File read: \" + file.getName());\r\n\t\t\t\t}\r\n\t\t\t\tdistributable = new Distributable(file.getName(), b);\r\n\t\t\t\tdiscoveryRelay.setDistributable(distributable);\r\n\t\t\t} \r\n\t\t\tcatch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} \r\n\t\t\tcatch (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}\n\t\t\tbreak;\n\t\tcase JFileChooser.ERROR_OPTION:\n\t\t}\n\t}", "@Override\n public void run() {\n\n showProgressDialog(getString(R.string.mns_titulo), getString(R.string.preparing_device));\n\n int error;\n if ((error = mHuellaScanner.powerOn()) != FingerprintScanner.RESULT_OK) {\n //showErrorDialog(getString(R.string.fingerprint_device_power_on_failed), getFingerprintErrorString(error));\n //loger.addRecordToLog(\"fingerprint_device_power_on_failed : \" + error);\n } else {\n //loger.addRecordToLog(\"mScanner.powerOn() success : \" + error);\n }\n\n Log.i(\"MV\", \"before mScanner.open()\");\n //error = mScanner.open();\n //Log.i(\"MV\", \"after mScanner.open() : \" + error);\n //logger.addRecordToLog(\"after mScanner.open() : \" + error);\n if ((error = mHuellaScanner.open()) != FingerprintScanner.RESULT_OK) {\n Log.i(\"MV\", \"mScanner.open() error\");\n Log.i(\"MV\", \"MSG_UPDATE_SN\");\n Log.i(\"MV\", \"MSG_UPDATE_FW_VERSION\");\n\n //loger.addRecordToLog(\"mScanner.open() error\");\n //loger.addRecordToLog(\"MSG_UPDATE_SN\");\n //loger.addRecordToLog(\"MSG_UPDATE_FW_VERSION\");\n\n } else {\n\n Result res = mHuellaScanner.getSN();\n res = mHuellaScanner.getFirmwareVersion();\n //loger.addRecordToLog(\"MSG_UPDATE_FW_VERSION : \" + (String) res.data);\n\n /*mHandler.sendMessage(mHandler.obtainMessage(MSG_UPDATE_SN, getString(R.string.fps_sn, (String) res.data)));\n mHandler.sendMessage(mHandler.obtainMessage(MSG_UPDATE_FW_VERSION, getString(R.string.fps_fw, (String) res.data)));\n showInfoToast(getString(R.string.fingerprint_device_open_success));\n enableControl(true);*/\n }\n\n if ((error = Bione.initialize(UnicaCompraActivity.this, Constantes.FP_DB_PATH)) == Bione.RESULT_OK) {\n //loger.addRecordToLog(\"algorithm_initialization_success\");\n } else {\n //loger.addRecordToLog(\"algorithm_initialization_failed\");\n }\n\n dismissProgressDialog();\n\n //openDeviceEnEjecucion = Boolean.FALSE;\n //loger.addRecordToLog(\"_openDevice_ fin run\");\n }", "private void openUsbDevice(UsbDevice device, Bundle extras) throws IOException {\n UsbManager manager = (UsbManager) mContext.getSystemService(Context.USB_SERVICE);\n\n // Find the first available driver.\n final UsbSerialDriver serialDriver = UsbSerialProber.openUsbDevice(manager, device);\n\n if (serialDriver == null) {\n Log.d(TAG, \"No Devices found\");\n throw new IOException(\"No Devices found\");\n } else {\n Log.d(TAG, \"Opening using Baud rate \" + mBaudRate);\n try {\n serialDriver.open();\n serialDriver.setParameters(mBaudRate, 8, UsbSerialDriver.STOPBITS_1, UsbSerialDriver.PARITY_NONE);\n\n serialDriverRef.set(serialDriver);\n\n onUsbConnectionOpened(extras);\n } catch (IOException e) {\n Log.e(TAG, \"Error setting up device: \" + e.getMessage(), e);\n try {\n serialDriver.close();\n } catch (IOException e2) {\n // Ignore.\n }\n }\n }\n }", "public void open(Activity activity, boolean isSecureCamera, boolean isCaptureIntent);", "private void invokeCameraSerialNumber() {\n\n // get a file reference\n pictureUri = FileProvider.getUriForFile(this, getApplicationContext().getPackageName(), createImageFile()); // Make Uri file example file://storage/emulated/0/Pictures/Civil_ID20180924_180619.jpg\n\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // Go to camera\n\n // tell the camera where to save the image.\n intent.putExtra(MediaStore.EXTRA_OUTPUT, pictureUri);\n\n // tell the camera to request WRITE permission.\n intent.setFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n startActivityForResult(intent, CAMERA_DEVICE_SERIAL_NUMBER);\n\n }", "public void openHelpDialog(String deviceName, String fileName) {\r\n\t\tfinal String $METHOD_NAME = \"openHelpDialog\"; //$NON-NLS-1$\r\n\t\ttry {\r\n\t\t\tif (this.helpDialog == null || this.helpDialog.isDisposed()) {\r\n\t\t\t\tthis.helpDialog = new HelpInfoDialog(GDE.shell, SWT.NONE);\r\n\t\t\t}\r\n\t\t\tthis.helpDialog.open(deviceName, fileName, SWT.NONE, false);\r\n\t\t}\r\n\t\tcatch (Error e) {\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"using OS registered web browser\"); //$NON-NLS-1$\r\n\t\t\tWebBrowser.openURL(deviceName, fileName);\r\n\t\t\tapplication.openMessageDialogAsync(Messages.getString(MessageIds.GDE_MSGI0025));\r\n\t\t}\r\n\t\tcatch (Throwable t) {\r\n\t\t\tapplication.openMessageDialog(Messages.getString(MessageIds.GDE_MSGE0007) + t.getClass().getSimpleName() + GDE.STRING_MESSAGE_CONCAT + t.getMessage());\r\n\t\t}\r\n\t}", "public String getFingerprint() {\n return fingerprint;\n }", "public void openCamera(View view) {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n mImagePath = getFile();\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, mImagePath);\n startActivityForResult(takePictureIntent, TAKE_PIC_CODE);\n }", "java.lang.String getFingerPrint();", "public static native int initDevice(int fd);", "public void open();", "public void open();", "public String getFingerprint() {\n return fingerprint;\n }", "public String getFingerprint() {\n return fingerprint;\n }", "public String getFingerprint() {\n return fingerprint;\n }", "public String getFingerprint() {\n return fingerprint;\n }", "public int open(String filename)\n {\n return open(filename, i_hdl); \n }", "public void openSettings() {\r\n \tIntent intent = new Intent(this, DetectorSettingsActivity.class);\r\n \tstartActivity(intent);\r\n }", "void persistFingerprint(String user, SongMetadata smd, Fingerprint fp) throws SQLException;", "public void open()\n {\n }", "@Override\n\tpublic void open() {\n\t\tlong openStartTime = new Date().getTime();\n\t\ttry {\n\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\n\t\t\tif (this.serialPort != null && !this.serialPort.isConnected()) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.serialPort.open();\n\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\tthis.initialAnswerData = this.serialPort.getData(true);\n\t\t\t\t\tif (this.device.isProcessing(1, this.initialAnswerData) || this.device.isProcessing(2, this.initialAnswerData)) {\n\t\t\t\t\t\tthis.application.openMessageDialogAsync(null, Messages.getString(MessageIds.GDE_MSGW2201));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET_CONFIG);\n\t\t\t\t\tthis.deviceIdentifierName = this.serialPort.readDeviceUserName();\n\n\t\t\t\t\tthis.jc = JAXBContext.newInstance(\"gde.device.graupner\"); //$NON-NLS-1$\n\t\t\t\t\tthis.schema = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(\n\t\t\t\t\t\t\tnew StreamSource(UltraDuoPlusDialog.class.getClassLoader().getResourceAsStream(\"resource/\" + UltraDuoPlusDialog.ULTRA_DUO_PLUS_XSD))); //$NON-NLS-1$\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tUnmarshaller unmarshaller = this.jc.createUnmarshaller();\n\t\t\t\t\t\tunmarshaller.setSchema(this.schema);\n\t\t\t\t\t\tthis.ultraDuoPlusSetup = (UltraDuoPlusType) unmarshaller.unmarshal(new File(this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t+ this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML));\n\t\t\t\t\t}\n\t\t\t\t\tcatch (UnmarshalException e) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\tcreateUltraDuoPlusSetup(this.deviceIdentifierName);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\tif (e.getCause() instanceof FileNotFoundException) {\n\t\t\t\t\t\t\tcreateUltraDuoPlusSetup(this.deviceIdentifierName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.synchronizerRead = new UltraDuoPlusSychronizer(this, this.serialPort, this.ultraDuoPlusSetup, UltraDuoPlusSychronizer.SYNC_TYPE.READ);\n\t\t\t\t\tthis.synchronizerRead.start();\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\tthis.serialPort.close();\n\t\t\t\t\tthis.application.openMessageDialog(null,\n\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0015, new Object[] { e.getClass().getSimpleName() + GDE.STRING_BLANK_COLON_BLANK + e.getMessage() }));\n\t\t\t\t\tthis.application.getDeviceSelectionDialog().open();\n\t\t\t\t\tif (!this.application.getActiveDevice().equals(this.device)) //check if device was changed\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, \"serial port == null\"); //$NON-NLS-1$\n\t\t\t\tthis.application.openMessageDialogAsync(null, Messages.getString(gde.messages.MessageIds.GDE_MSGE0010));\n\t\t\t\tthis.application.getDeviceSelectionDialog().open();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, \"dialogShell.isDisposed() \" + ((this.dialogShell == null) ? \"null\" : this.dialogShell.isDisposed())); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tif (this.dialogShell == null || this.dialogShell.isDisposed()) {\n\t\t\t\tif (this.settings.isDeviceDialogsModal())\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getShell(), SWT.DIALOG_TRIM | SWT.PRIMARY_MODAL);\n\t\t\t\telse if (this.settings.isDeviceDialogsOnTop())\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getDisplay(), SWT.DIALOG_TRIM | SWT.ON_TOP);\n\t\t\t\telse\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getDisplay(), SWT.DIALOG_TRIM);\n\n\t\t\t\tSWTResourceManager.registerResourceUser(this.dialogShell);\n\t\t\t\tthis.dialogShell.setLayout(new FormLayout());\n\t\t\t\tthis.dialogShell.setText(this.device.getName() + Messages.getString(gde.messages.MessageIds.GDE_MSGT0273));\n\t\t\t\tthis.dialogShell.setImage(SWTResourceManager.getImage(\"gde/resource/ToolBoxHot.gif\")); //$NON-NLS-1$\n\t\t\t\tthis.dialogShell.layout();\n\t\t\t\tthis.dialogShell.pack();\n\t\t\t\tthis.dialogShell.setSize(655, GDE.IS_MAC ? 685 : 675);\n\t\t\t\tthis.dialogShell.addListener(SWT.Traverse, new Listener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t\t\tswitch (event.detail) {\n\t\t\t\t\t\tcase SWT.TRAVERSE_ESCAPE:\n\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.close();\n\t\t\t\t\t\t\tevent.detail = SWT.TRAVERSE_NONE;\n\t\t\t\t\t\t\tevent.doit = false;\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\tthis.dialogShell.addHelpListener(new HelpListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void helpRequested(HelpEvent evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"dialogShell.helpRequested, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openHelpDialog(UltraDuoPlusDialog.DEVICE_JAR_NAME, \"HelpInfo.html\"); //$NON-NLS-1$ \n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthis.dialogShell.addDisposeListener(new DisposeListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void widgetDisposed(DisposeEvent evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"dialogShell.widgetDisposed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\tif (UltraDuoPlusDialog.this.serialPort != null && UltraDuoPlusDialog.this.serialPort.isConnected()) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerRead.join();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t//set the date to sync with PC time\n\t\t\t\t\t\t\t\t\tString[] date = StringHelper.getDateAndTime(\"yy:MM:dd:hh:mm\").split(GDE.STRING_COLON); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus45:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[15] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[16] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[17] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[10] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[11] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[12] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[10] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[11] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[12] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tChannelData1 value = new ChannelData1();\n\t\t\t\t\t\t\t\t\tvalue.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.channelValues1));\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChannelData1(value, value.getValue().endsWith(\"1\"));\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite = new UltraDuoPlusSychronizer(UltraDuoPlusDialog.this, UltraDuoPlusDialog.this.serialPort, UltraDuoPlusDialog.this.ultraDuoPlusSetup,\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusSychronizer.SYNC_TYPE.WRITE);\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.start();\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.join();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch (Exception e) {\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\tsaveConfigUDP(UltraDuoPlusDialog.this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML);\n\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable 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\tfinally {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.close();\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.resetShellIcon();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t{\n\t\t\t\t\tthis.boundsComposite = new Composite(this.dialogShell, SWT.NONE);\n\t\t\t\t\tFormData boundsCompositeLData = new FormData();\n\t\t\t\t\tboundsCompositeLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.bottom = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\tthis.boundsComposite.setLayoutData(boundsCompositeLData);\n\t\t\t\t\tthis.boundsComposite.setLayout(new FormLayout());\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.userLabel = new CLabel(this.boundsComposite, SWT.RIGHT);\n\t\t\t\t\t\tthis.userLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.userLabel.setText(Messages.getString(MessageIds.GDE_MSGT2289));\n\t\t\t\t\t\tFormData userLabelLData = new FormData();\n\t\t\t\t\t\tuserLabelLData.left = new FormAttachment(0, 1000, 12);\n\t\t\t\t\t\tuserLabelLData.top = new FormAttachment(0, 1000, 7);\n\t\t\t\t\t\tuserLabelLData.width = 280;\n\t\t\t\t\t\tuserLabelLData.height = 20;\n\t\t\t\t\t\tthis.userLabel.setLayoutData(userLabelLData);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.userNameText = new Text(this.boundsComposite, SWT.SINGLE | SWT.BORDER);\n\t\t\t\t\t\tthis.userNameText.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.userNameText.setText(this.deviceIdentifierName);\n\t\t\t\t\t\tthis.userNameText.setTextLimit(16);\n\t\t\t\t\t\tFormData userNameTextLData = new FormData();\n\t\t\t\t\t\tuserNameTextLData.width = 120;\n\t\t\t\t\t\tuserNameTextLData.height = 16;\n\t\t\t\t\t\tuserNameTextLData.left = new FormAttachment(0, 1000, 305);\n\t\t\t\t\t\tuserNameTextLData.top = new FormAttachment(0, 1000, 7);\n\t\t\t\t\t\tthis.userNameText.setLayoutData(userNameTextLData);\n\t\t\t\t\t\tthis.userNameText.addVerifyListener(new VerifyListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void verifyText(VerifyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"evt.doit = \" + (evt.text.length() <= 16)); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tevt.doit = evt.text.length() <= 16;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.userNameText.addKeyListener(new KeyAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"text.keyReleased, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFile oldConfigDataFile = new File(UltraDuoPlusDialog.this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML);\n\t\t\t\t\t\t\t\tif (oldConfigDataFile.exists()) if (!oldConfigDataFile.delete()) UltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, \"could not delete \" + oldConfigDataFile.getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.deviceIdentifierName = (UltraDuoPlusDialog.this.userNameText.getText().trim() + UltraDuoPlusDialog.STRING_16_BLANK).substring(0, 16);\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setIdentifierName(UltraDuoPlusDialog.this.deviceIdentifierName);\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChanged(true);\n\t\t\t\t\t\t\t\tint position = UltraDuoPlusDialog.this.userNameText.getCaretPosition();\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.userNameText.setText(UltraDuoPlusDialog.this.deviceIdentifierName.trim());\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.userNameText.setSelection(position);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"text.keyPressed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.mainTabFolder = new CTabFolder(this.boundsComposite, SWT.BORDER);\n\t\t\t\t\t\tthis.mainTabFolder.setSimple(false);\n\t\t\t\t\t\tFormData TabFolderLData = new FormData();\n\t\t\t\t\t\tTabFolderLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\tTabFolderLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\tTabFolderLData.top = new FormAttachment(0, 1000, 35);\n\t\t\t\t\t\tTabFolderLData.bottom = new FormAttachment(1000, 1000, -45);\n\t\t\t\t\t\tthis.mainTabFolder.setLayoutData(TabFolderLData);\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setupTabItem = new CTabItem(this.mainTabFolder, SWT.BORDER);\n\t\t\t\t\t\t\tthis.setupTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.setupTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2290));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.deviceComposite = new Composite(this.mainTabFolder, SWT.BORDER);\n\t\t\t\t\t\t\t\tGridLayout deviceCompositeLayout = new GridLayout();\n\t\t\t\t\t\t\t\tdeviceCompositeLayout.makeColumnsEqualWidth = true;\n\t\t\t\t\t\t\t\tthis.deviceComposite.setLayout(deviceCompositeLayout);\n\t\t\t\t\t\t\t\tthis.setupTabItem.setControl(this.deviceComposite);\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tGridData group1LData = new GridData();\n\t\t\t\t\t\t\t\t\tgroup1LData.horizontalAlignment = GridData.FILL;\n\t\t\t\t\t\t\t\t\tgroup1LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\tgroup1LData.widthHint = 580;\n\t\t\t\t\t\t\t\t\tgroup1LData.heightHint = this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? 182 : 392;\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setLayoutData(group1LData);\n\t\t\t\t\t\t\t\t\tFillLayout baseDeviceSetupCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setLayout(baseDeviceSetupCompositeLayout);\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setText(Messages.getString(MessageIds.GDE_MSGT2291));\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50, Messages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) {\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[4] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 4, Messages.getString(MessageIds.GDE_MSGT2293), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"°C - °F\", 175, UltraDuoPlusDialog.temperatureDegreeType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[5] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 5, Messages.getString(MessageIds.GDE_MSGT2294), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2240) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2241), 175, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[6] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 6, Messages.getString(MessageIds.GDE_MSGT2295), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"En - De - Fr - It\", 175, UltraDuoPlusDialog.languageTypes, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t//channelParameters[7] = new ParameterConfigControl(baseDeviceSetupComposite, channelValues1, 7, \"PC setup\", 175, \"DISABLE | ENABLE\", 175, diableEnableType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[8] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2296), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[9] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2297), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[15] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 15, Messages.getString(MessageIds.GDE_MSGT2303), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"12H - 24H\", 175, UltraDuoPlusDialog.hourFormatType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse { //UltraDuoPlus45\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[0] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 0, Messages.getString(MessageIds.GDE_MSGT2293), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"°C - °F\", 175, UltraDuoPlusDialog.temperatureDegreeType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[1] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 1, Messages.getString(MessageIds.GDE_MSGT2294), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2240) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2241), 175, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[2] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 2, Messages.getString(MessageIds.GDE_MSGT2306), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[3] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 3, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2307), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[4] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 4, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2305), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[5] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 5, Messages.getString(MessageIds.GDE_MSGT2295), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"En - De - Fr - It\", 175, UltraDuoPlusDialog.languageTypes, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[6] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 6, Messages.getString(MessageIds.GDE_MSGT2308), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175, UltraDuoPlusDialog.powerOnDisplayType, 50, 150);\n\t\t\t\t\t\t\t\t\t\t//channelParameters[7] = new ParameterConfigControl(baseDeviceSetupComposite, channelValues1, 7, \"PC setup\", 175, \"DISABLE | ENABLE\", 175, diableEnableType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[8] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 8, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2296) + \"(1)\", 175, \"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[9] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 9, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2297) + \"(1)\", 175, \"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[10] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 10, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2296) + \"(2)\", 175, \"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[11] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 11, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2297) + \"(2)\", 175, \"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[12] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 12, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2315), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 - 99%\", 175, false, 50, 150, 1, 99, -1, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[18] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 18, Messages.getString(MessageIds.GDE_MSGT2303), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"12H - 24H\", 175, UltraDuoPlusDialog.hourFormatType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//time setup will synced with PC\n\t\t\t\t\t\t\t\t\t//this.channelParameters[10] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 10, Messages.getString(MessageIds.GDE_MSGT2298), 175,\t\"1 ~ 31\", 175, false, 50, 150, 1, 31); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[11] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 11, Messages.getString(MessageIds.GDE_MSGT2299), 175,\t\"1 ~ 12\", 175, false, 50, 150, 1, 12); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[12] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 12, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2300), 175,\t\"0 ~ 99\", 175, false, 50, 150, 0, 99); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[13] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 13, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2302), 175,\t\"0 ~ 12\", 175, false, 50, 150, 0, 12); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[14] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 14, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2301), 175,\t\"0 ~ 59\", 175, false, 50, 150, 0, 59); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) { //no configurable outlet channel 2\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1 = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tGridData group2LData = new GridData();\n\t\t\t\t\t\t\t\t\t\tgroup2LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.horizontalAlignment = GridData.CENTER;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.widthHint = 600;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.heightHint = 130;\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setLayoutData(group2LData);\n\t\t\t\t\t\t\t\t\t\tFillLayout composite1Layout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setLayout(composite1Layout);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setText(Messages.getString(MessageIds.GDE_MSGT2304));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite1, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[0] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 0, Messages.getString(MessageIds.GDE_MSGT2306), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[1] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 1, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2307), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[2] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 2, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2305), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[3] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 3, Messages.getString(MessageIds.GDE_MSGT2308), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175, UltraDuoPlusDialog.powerOnDisplayType, 50, 150);\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\t\tthis.baseDeviceSetupGroup2 = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tGridData group3LData = new GridData();\n\t\t\t\t\t\t\t\t\t\tgroup3LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.horizontalAlignment = GridData.CENTER;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.widthHint = 600;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.heightHint = 130;\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setLayoutData(group3LData);\n\t\t\t\t\t\t\t\t\t\tFillLayout composite1Layout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setLayout(composite1Layout);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setText(Messages.getString(MessageIds.GDE_MSGT2309));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite2, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 0] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 0,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2255), 175, Messages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 1] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 1, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2254), 175, \"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 2] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 2, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2305), 175, \"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 3] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 3,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2308), 175, Messages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.powerOnDisplayType, 50, 150);\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\t{\n\t\t\t\t\t\t\tthis.memorySetupTabItem = new CTabItem(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\tthis.memorySetupTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.memorySetupTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2250));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.memoryBoundsComposite = new Composite(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\tthis.memorySetupTabItem.setControl(this.memoryBoundsComposite);\n\t\t\t\t\t\t\t\tthis.memoryBoundsComposite.setLayout(new FormLayout());\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite = new Composite(this.memoryBoundsComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData memorySelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tmemorySelectLData.height = 150;\n\t\t\t\t\t\t\t\t\tmemorySelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setLayoutData(memorySelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel = new CLabel(this.memorySelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memorySelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemorySelectLabelLData.width = 120;\n\t\t\t\t\t\t\t\t\t\tmemorySelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setLayoutData(memorySelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2251));\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\t\tupdateBatterySetup(1);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo = new CCombo(this.memorySelectComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setItems(this.memoryNames);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setVisibleItemCount(20);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setTextLimit(5 + 16);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboLData.width = 165;\n\t\t\t\t\t\t\t\t\t\tmemoryComboLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setLayoutData(memoryComboLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2252));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setEditable(true);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tint actualSelectionIndex = UltraDuoPlusDialog.this.memoryCombo.getSelectionIndex();\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.lastMemorySelectionIndex != actualSelectionIndex) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup != null && UltraDuoPlusDialog.this.lastMemorySelectionIndex >= 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& UltraDuoPlusDialog.this.lastMemorySelectionIndex < UltraDuoPlusDialog.numberMemories) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//write memory if setup data has been changed changed (update memory name executed while keyListener)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().isChanged()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.memoryValues));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().isChanged()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.memoryStepValues));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_STEP_CHARGE_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//check for copy selected\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.copyButton.getSelection()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.copyButton.setSelection(false);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (SWT.YES == UltraDuoPlusDialog.this.application.openYesNoMessageDialog(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGI2205, new Object[] { UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName(), (actualSelectionIndex + 1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName() }))) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//copy memory name and setup data of lastMemorySelectionIndex to memoryCombo.getSelectionIndex()\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"copy memory: (\" + (UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1) + GDE.STRING_RIGHT_PARENTHESIS + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName()//$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" to (\" + (actualSelectionIndex + 1) + GDE.STRING_RIGHT_PARENTHESIS + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < UltramatSerialPort.SIZE_MEMORY_SETUP; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(UltraDuoPlusDialog.this.memoryValues[i]).append(GDE.STRING_LEFT_BRACKET).append(i).append(GDE.STRING_RIGHT_BRACKET_COMMA);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, sb.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_NAME,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName().getBytes(), actualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setName(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tactualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getSetupData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_STEP_CHARGE_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tactualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getStepChargeData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString newMemoryName = String.format(UltraDuoPlusDialog.STRING_FORMAT_02d_s, actualSelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setText(newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[actualSelectionIndex] = (newMemoryName + UltraDuoPlusDialog.STRING_16_BLANK).substring(5, 16 + 5);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItem(actualSelectionIndex, newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(actualSelectionIndex);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex = actualSelectionIndex;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcatch (Throwable e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.addKeyListener(new KeyAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.keyReleased, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.keyPressed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tif (evt.character == SWT.CR) {\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tString newMemoryName = String.format(UltraDuoPlusDialog.STRING_FORMAT_02d_s, UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(UltraDuoPlusDialog.this.memoryCombo.getText() + UltraDuoPlusDialog.STRING_16_BLANK).substring(5, 16 + 5));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex] = newMemoryName;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setText(newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItem(UltraDuoPlusDialog.this.lastMemorySelectionIndex, newMemoryName);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setName(UltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex].substring(5));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_NAME,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex].substring(5).getBytes(), UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0007, new String[] { e.getMessage() }));\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tCLabel filler = new CLabel(this.memorySelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(140, 20));\n\t\t\t\t\t\t\t\t\t\tfiller.setText(\"<--------- \"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\t\tthis.copyButton = new Button(this.memorySelectComposite, SWT.CHECK | SWT.LEFT);\n\t\t\t\t\t\t\t\t\t\tRowData cellTypeSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tcellTypeSelectLabelLData.width = 200;\n\t\t\t\t\t\t\t\t\t\tcellTypeSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setLayoutData(cellTypeSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setText(Messages.getString(MessageIds.GDE_MSGT2288));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2256));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//cell type\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[0] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 0, Messages.getString(MessageIds.GDE_MSGT2257), 175,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2246), 220, UltraDuoPlusDialog.cellTypeNames, 50, 150);\n\t\t\t\t\t\t\t\t\t//number cells\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[1] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 1, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2258), 175,\n\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 6/7/18\", 220, false, 50, 150, 1, 18); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//battery capacity\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[2] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 2, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2259), 175,\n\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 65000 mAh\", 220, true, 50, 150, 100, 65000, -100, true); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//year, month, day\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[3] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 3, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2260), 100, GDE.STRING_EMPTY, 5, false, 30, 70, 0, 99);\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[4] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 4, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2261), 60, GDE.STRING_EMPTY, 5, false, 20, 80, 1, 12);\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[5] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 5, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2262), 55, GDE.STRING_EMPTY, 5, false, 20, 80, 1, 31);\n\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.memorySelectComposite, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 180, 20);\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\t\tthis.chargeTypeTabFolder = new CTabFolder(this.memoryBoundsComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setSimple(false);\n\t\t\t\t\t\t\t\t\tFormData chargeTypeTabFolderLData = new FormData();\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.bottom = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.top = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setLayoutData(chargeTypeTabFolderLData);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"restoreButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastCellSelectionIndex = -1;\n\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.memoryValues[0] == 1) { //NiMH with possible step charge\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.stepChargeComposite.getStepChargeValues(UltraDuoPlusDialog.this.memoryStepValues);\n\t\t\t\t\t\t\t\t\t\t\t\t\tEvent changeEvent = new Event();\n\t\t\t\t\t\t\t\t\t\t\t\t\tchangeEvent.index = -1;\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.notifyListeners(SWT.Selection, changeEvent);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tupdateBatteryMemoryParameter(UltraDuoPlusDialog.this.memoryValues[0]);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem = new CTabItem(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2298));\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite = new ScrolledComposite(this.chargeTypeTabFolder, SWT.BORDER | SWT.V_SCROLL);\n\t\t\t\t\t\t\t\t\t\t\tFillLayout scrolledMemoryCompositeLayout = new FillLayout();\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.setLayout(scrolledMemoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setControl(this.scrolledchargeComposite);\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup = new Group(this.scrolledchargeComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setText(Messages.getString(MessageIds.GDE_MSGT2299));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//charge parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[6] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 6, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2263), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 20000 mA\", 220, true, 50, 150, 100, 20000, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[11] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 11, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2265), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2310), 220, true, 50, 150, 10, 165);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[10] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t|| this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus40 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0)//°C\n\t\t\t\t\t\t\t\t\t\t\t\t? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 10, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2264), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"10 ~ 80°C\", 220, false, 50, 150, 10, 80) //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new ParameterConfigControl(this.chargeGroup, this.memoryValues, 10, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2264), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 176°F\", 220, false, 50, 150, 50, 176); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[12] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 12, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2266), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2238), 220, false, 50, 150, 10, 905);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[14] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 14, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2267), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"3600 ~ 4200 mV\", 220, true, 50, 150, 3600, 4200, -3600, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[9] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2279), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2312), 220, false, 50, 150, 0, 550);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[26] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 26, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2276), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"3600 ~ 4000 mV\", 220, true, 50, 150, 3600, 4000, -3600, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[7] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 7, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2277), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"0 ~ 25mV\", 220, false, 50, 150, 0, 25); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[8] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2278), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 20min\", 220, false, 50, 150, 1, 20); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[15] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 15, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2281), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[13] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 13, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2280), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 5\", 220, false, 50, 150, 1, 5); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[16] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 16, Messages.getString(MessageIds.GDE_MSGT2282), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2241) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2240), 220, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.setContent(this.chargeGroup);\n\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup.setSize(620, this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.addControlListener(new ControlListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void controlResized(ControlEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"scrolledMemoryComposite.controlResized, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.setSize(UltraDuoPlusDialog.this.scrolledchargeComposite.getClientArea().width, UltraDuoPlusDialog.this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void controlMoved(ControlEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"scrolledMemoryComposite.controlMoved, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.setSize(UltraDuoPlusDialog.this.scrolledchargeComposite.getClientArea().width, UltraDuoPlusDialog.this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem = new CTabItem(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2300));\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeCycleComposite = new Composite(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\tRowLayout scrolledComposite1Layout = new RowLayout(org.eclipse.swt.SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeCycleComposite.setLayout(scrolledComposite1Layout);\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setControl(this.dischargeCycleComposite);\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup = new Group(this.dischargeCycleComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tRowData dischargeGroupLData = new RowData(620, UltraDuoPlusDialog.this.dischargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setLayoutData(dischargeGroupLData);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.dischargeGroup.setText(Messages.getString(MessageIds.GDE_MSGT2301));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.dischargeGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//discharge parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[17] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 17, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2268), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 10000 mA\", 220, true, 50, 150, 100, 10000, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[18] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 18, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2269), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"2500 ~ 4200 mV\", 220, true, 50, 150, 2500, 4200, -2500, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[20] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 20, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2271), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2311), 220, false, 50, 150, 10, 105, -10, false);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[19] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0)//°C\n\t\t\t\t\t\t\t\t\t\t\t\t? new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 19, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2270), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"10 ~ 80°C\", 220, false, 50, 150, 10, 80) //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 19, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2270), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 176°F\", 220, false, 50, 150, 50, 176); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[21] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 21, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2283), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1100 ~ 1300 mV\", 220, true, 50, 150, 1100, 1300, -1100, false); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup = new Group(this.dischargeCycleComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tRowData cycleGroupLData = new RowData(625, UltraDuoPlusDialog.this.cycleSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setLayoutData(cycleGroupLData);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setText(Messages.getString(MessageIds.GDE_MSGT2302));\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//cycle parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[22] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 22, Messages.getString(MessageIds.GDE_MSGT2272), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2292), 220, UltraDuoPlusDialog.cycleDirectionTypes, 50, 150);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[23] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 23, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2273), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 220, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[24] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 24, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2274), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[25] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 25, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2275), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setSelection(0);\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\t{\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem = new CTabItem(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2320));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.memoryDataComposite = new Composite(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setControl(this.memoryDataComposite);\n\t\t\t\t\t\t\t\tthis.memoryDataComposite.setLayout(new FormLayout());\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite = new Composite(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData memorySelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tmemorySelectLData.height = 50;\n\t\t\t\t\t\t\t\t\tmemorySelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setLayoutData(memorySelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tComposite filler = new Composite(this.memoryDataSelectComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(500, 10));\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\t\tthis.memoryDataSelectLabel = new CLabel(this.memoryDataSelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memoryCycleDataSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.width = 315;\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setLayoutData(memoryCycleDataSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2321) + Messages.getString(MessageIds.GDE_MSGT2251));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\t\t//this.memoryNames will be updated by memoryCombo selection handler\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo = new CCombo(this.memoryDataSelectComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setItems(this.memoryNames);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setVisibleItemCount(20);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setTextLimit(5 + 16);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboCycleDataLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.width = 165;\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setLayoutData(memoryComboCycleDataLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2339));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setEditable(true);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryComboData.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memorySelectionIndexData = UltraDuoPlusDialog.this.memoryDataCombo.getSelectionIndex() + 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tButton cycleDataButton = new Button(this.memoryDataComposite, SWT.Selection);\n\t\t\t\t\t\t\t\t\tFormData cycleDataButtonLData = new FormData();\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.height = 30;\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.top = new FormAttachment(0, 1000, 70);\n\t\t\t\t\t\t\t\t\tcycleDataButton.setLayoutData(cycleDataButtonLData);\n\t\t\t\t\t\t\t\t\tcycleDataButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tcycleDataButton.setText(Messages.getString(MessageIds.GDE_MSGT2322));\n\t\t\t\t\t\t\t\t\tcycleDataButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2316));\n\t\t\t\t\t\t\t\t\tcycleDataButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"cycleDataButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(0);\n\t\t\t\t\t\t\t\t\t\t\t\tGraphicsWindow cycleGraph = (GraphicsWindow) UltraDuoPlusDialog.this.device.getUtilityDeviceTabItem();\n\t\t\t\t\t\t\t\t\t\t\t\tRecordSet utilitySet = UltraDuoPlusDialog.this.application.getUtilitySet();\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.clear();\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < Ultramat.cycleDataRecordNames.length; ++i) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tRecord tmpRecord = new Record(UltraDuoPlusDialog.this.device, i, Ultramat.cycleDataRecordNames[i], GDE.STRING_EMPTY, Ultramat.cycleDataUnitNames[i], true, null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ArrayList<PropertyType>(), 11);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setFactor(Ultramat.cycleDataFactors[i]);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (Ultramat.cycleDataSyncRefOrdinal[i] >= 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.createProperty(MeasurementPropertyTypes.SCALE_SYNC_REF_ORDINAL.value(), DataTypes.INTEGER, Ultramat.cycleDataSyncRefOrdinal[i]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setColorDefaultsAndPosition(i);\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.put(Ultramat.cycleDataRecordNames[i], tmpRecord);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setColor(SWTResourceManager.getColor(Ultramat.cycleDataColors[i][0], Ultramat.cycleDataColors[i][1], Ultramat.cycleDataColors[i][2]));\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (i >= 4) tmpRecord.setPositionLeft(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ((i + 1) % 2 == 0) tmpRecord.setVisible(false);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setHorizontalGridType(RecordSet.HORIZONTAL_GRID_EVERY);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setHorizontalGridRecordOrdinal(4);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setTimeGridType(RecordSet.TIME_GRID_MAIN);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setTimeStep_ms(-1.0); //different time steps\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.syncScaleOfSyncableRecords();\n\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.getTabFolder().setSelection(cycleGraph);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(50);\n\n\t\t\t\t\t\t\t\t\t\t\t\tlong justNowPlus2Hours = new Date().getTime() + 7200000L;\n\t\t\t\t\t\t\t\t\t\t\t\tlong justNowMinus2Year = new Date().getTime() - 63072000000L;\n\t\t\t\t\t\t\t\t\t\t\t\tboolean isDateChanged = false;\n\t\t\t\t\t\t\t\t\t\t\t\tVector<byte[]> cyclesData = new Vector<byte[]>();\n\t\t\t\t\t\t\t\t\t\t\t\tTreeMap<Long, int[]> sortCyclesData = new TreeMap<Long, int[]>();\n\t\t\t\t\t\t\t\t\t\t\t\tif (Boolean.parseBoolean(System.getProperty(\"GDE_IS_SIMULATION\"))) { //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t//test data - change dates in timeSteps block below to vary\n\t\t\t\t\t\t\t\t\t\t\t\t\t//original data\n\t\t\t\t\t\t\t\t\t\t\t\t\tString memoryCycleData = \"00030026000B00040011050141C2040C00213F880000000B0004000B00040018017341D905910000000000000009002D000B0005000709BF417E03B50000000000000008002B000C00050009084341DC04B4000B0000000000000032000F00050012001A41F0000000000000000000090015000C0005001D0A2E4194044E00000000000000100004000B000600040ADF41960566000F0022001D00120034000B0006000C07D0418004740000000000000003000E000E0006000D094241E206A30000000000000000000000000000000000000000000000000000000000210088000000000000000000000000000000000000\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t//updated data\n\t\t\t\t\t\t\t\t\t\t\t\t\t//String memoryCycleData = \"00030026000B00040011050141C2040C00213F880000000B0004000B00040018017341D905910000000000000009002D000B0005000709BF417E03B500000000000000130013000B0005000A084341DC04B4000B0000000000000032000000050012001A41F0000000000000000000130028000B0005001E0A2E4194044E00000000000000100004000B000600040ADF41960566000F0022001D00120034000B0006000C07D041800474000000000000000D0022000B00060010094241E206A30000000000000000000000000000000000000000000000000000000000210088000000000000000000000000000000000000\";\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < 11; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint startIndex = i * (11 * 4);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint endIndex = (i + 1) * (11 * 4);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcyclesData.add(memoryCycleData.substring(startIndex, endIndex).getBytes());\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\tlong[] timeSteps = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 01, 03, 38, 0).getTimeInMillis(), \n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 02, 03, 38, 0).getTimeInMillis(), \n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 03, 11, 04, 0).getTimeInMillis(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 04, 9, 45, 0).getTimeInMillis(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 04, 16, 04, 0).getTimeInMillis(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 12, 18, 52, 0).getTimeInMillis(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\tint[][] pointss = { \n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16834, 0, 1000, 0, 1300, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16834, 16264, 1281, 33, 1036, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16857, 0, 371, 0, 1425, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16766, 0, 2783, 0, 949, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16790, 34, 2783, 15, 1382, 29},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16768, \t\t0, 2000, 0, 1140, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t// 2; 0; \t 4; 3; 1; 5\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t//2011-04-17, 03:38:00; 1281; 16834; 1036; 33; 16264; 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t//2011-04-24, 11:04:00; 371; 16857; 1425; 0; 0; 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t//2011-05-07, 09:45:00; 2783; 16766; 949; 0; 0; 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t//2011-06-04, 16:04:00; 2783; 16790; 1382; 15; 34; 29\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t//2011-06-12, 18:52:00; 2000; 16768; 1140; 0; 0; 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < timeSteps.length; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortCyclesData.put(timeSteps[i], pointss[i].clone());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcyclesData = UltraDuoPlusDialog.this.serialPort.readMemoryCycleData(UltraDuoPlusDialog.this.memorySelectionIndexData);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (byte[] cycleData : cyclesData) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(new String(cycleData));\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, sb.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dataTable.removeAll();\n\n\t\t\t\t\t\t\t\t\t\t\t\tfor (byte[] cycleData : cyclesData) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tlong timeStamp = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint[] points = new int[6];\n\t\t\t\t\t\t\t\t\t\t\t\t\tint hour = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint minute = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint year = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint month = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint day = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thour = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[0], cycleData[1], cycleData[2], cycleData[3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tminute = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[4], cycleData[5], cycleData[6], cycleData[7]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tday = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[8], cycleData[9], cycleData[10], cycleData[11]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmonth = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[12], cycleData[13], cycleData[14], cycleData[15]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tyear = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[16], cycleData[17], cycleData[18], cycleData[19]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeStamp = new GregorianCalendar(2000 + year, month - 1, day, hour, minute, 0).getTimeInMillis();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[2] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[20], (char) cycleData[21], (char) cycleData[22], (char) cycleData[23]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[0] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[24], (char) cycleData[25], (char) cycleData[26], (char) cycleData[27]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[4] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[28], (char) cycleData[29], (char) cycleData[30], (char) cycleData[31]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[3] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[32], (char) cycleData[33], (char) cycleData[34], (char) cycleData[35]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[1] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[36], (char) cycleData[37], (char) cycleData[38], (char) cycleData[39]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[5] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[40], (char) cycleData[41], (char) cycleData[42], (char) cycleData[43]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int point : points) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(\"; \").append(String.format(\"%8d\", point)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", timeStamp) + sb.toString()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//if time stamp is not between just now - 1 year and just now + 2 hrs and contains data ask if the date should be corrected\n\t\t\t\t\t\t\t\t\t\t\t\t\tlong dataSum = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int point : points) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdataSum += point;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (dataSum > 0 && (timeStamp < justNowMinus2Year || timeStamp > justNowPlus2Hours)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"time stamp out of range ! \" + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", timeStamp)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint[] newTimeStamp = new ChangeDateDialog(UltraDuoPlusDialog.this.dialogShell, SWT.NONE, new int[] { hour, minute, 2000 + year, month, day, points[2], points[3] }).open();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (newTimeStamp.length > 0) { //change requested\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, \"date change requested !\"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisDateChanged = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[0] = newTimeStamp[0] < 0 ? 0 : newTimeStamp[0] > 24 ? 24 : newTimeStamp[0]; //hour\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[1] = newTimeStamp[1] < 0 ? 0 : newTimeStamp[1] > 60 ? 60 : newTimeStamp[1]; //minute\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[2] = newTimeStamp[2] <= 2000 ? 0 : newTimeStamp[2] - 2000; //year\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[3] = newTimeStamp[3] < 1 ? 1 : newTimeStamp[3] > 12 ? 12 : newTimeStamp[3]; //month\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[4] = newTimeStamp[4] < 1 ? 1 : newTimeStamp[4] > 30 ? 30 : newTimeStamp[4]; //day\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0, k = 0; i < newTimeStamp.length; i++, k += 4) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbyte[] bytes = String.format(\"%04X\", newTimeStamp[i]).getBytes(); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int j = 0; j < bytes.length; j++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcycleData[j + k] = bytes[j];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thour = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[0], cycleData[1], cycleData[2], cycleData[3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tminute = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[4], cycleData[5], cycleData[6], cycleData[7]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tyear = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[8], cycleData[9], cycleData[10], cycleData[11]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmonth = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[12], cycleData[13], cycleData[14], cycleData[15]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tday = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[16], cycleData[17], cycleData[18], cycleData[19]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeStamp = new GregorianCalendar(2000 + year, month - 1, day, hour, minute, 0).getTimeInMillis();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t//add selected entries to the sorted map, this is what gets displayed in the utility record\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (dataSum > 0 && timeStamp > justNowMinus2Year && timeStamp < justNowPlus2Hours) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortCyclesData.put(timeStamp, points.clone());\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Entry<Long, int[]> entry : sortCyclesData.entrySet()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t//display values\n\t\t\t\t\t\t\t\t\t\t\t\t\tTableItem item = new TableItem(UltraDuoPlusDialog.this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\t\t\t\tint[] points = entry.getValue();\n\t\t\t\t\t\t\t\t\t\t\t\t\titem.setText(new String[] { StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm\", entry.getKey()), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.3f\", points[0] / 1000.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.3f\", points[1] / 1000.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.0f\", points[2] / 1.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.0f\", points[3] / 1.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.1f\", points[4] / 10.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.1f\", points[5] / 10.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t//check if time stamp was changed, if yes write back changed data to device\n\t\t\t\t\t\t\t\t\t\t\t\tif (isDateChanged) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2333));\n\t\t\t\t\t\t\t\t\t\t\t\t\t//not implemented device firmware: serialPort.writeMemoryCycleData(UltraDuoPlusDialog.this.memorySelectionIndexData, cyclesData);\n\t\t\t\t\t\t\t\t\t\t\t\t\tisDateChanged = false;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"used entries between \" + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", justNowMinus2Year) + GDE.STRING_MESSAGE_CONCAT + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", justNowPlus2Hours) + GDE.LINE_SEPARATOR); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\t\t\t\t\t\t\t\t\t\tlong lastTimeStamp = 0;\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Entry<Long, int[]> entry : sortCyclesData.entrySet()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.addPoints(entry.getValue(), (lastTimeStamp == 0 ? 0 : entry.getKey() - lastTimeStamp));\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < entry.getValue().length; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(\"; \").append(String.format(\"%8d\", entry.getValue()[i])); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", entry.getKey()) + String.format(\"; %12d%s\", (lastTimeStamp == 0 ? 0 : entry.getKey() - lastTimeStamp), sb.toString())); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tlastTimeStamp = lastTimeStamp == 0 ? entry.getKey() : lastTimeStamp;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tLong[] dates = sortCyclesData.keySet().toArray(new Long[0]);\n\t\t\t\t\t\t\t\t\t\t\t\tArrays.sort(dates);\n\t\t\t\t\t\t\t\t\t\t\t\tif (dates != null && dates.length > 1) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setRecordSetDescription(UltraDuoPlusDialog.this.memoryDataCombo.getText()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ GDE.STRING_BLANK_COLON_BLANK\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", dates[0]) + GDE.STRING_MESSAGE_CONCAT + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", dates[dates.length - 1])); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setRecordSetDescription(UltraDuoPlusDialog.this.memoryDataCombo.getText());\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcycleGraph.enableGraphicsHeader(true);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.getTabFolder().notifyListeners(SWT.Selection, new Event());\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(100);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar = new ProgressBar(this.memoryDataComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData cycleDataProgressBarLData = new FormData();\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.height = 15;\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.top = new FormAttachment(0, 1000, 110);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setLayoutData(cycleDataProgressBarLData);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setMinimum(0);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setMinimum(100);\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\t\tthis.dataTable = new Table(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData dataTableLData = new FormData();\n\t\t\t\t\t\t\t\t\tdataTableLData.height = 200;\n\t\t\t\t\t\t\t\t\tdataTableLData.left = new FormAttachment(0, 1000, 5);\n\t\t\t\t\t\t\t\t\tdataTableLData.right = new FormAttachment(1000, 1000, -5);\n\t\t\t\t\t\t\t\t\tdataTableLData.top = new FormAttachment(0, 1000, 140);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setLayoutData(dataTableLData);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setLinesVisible(true);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setHeaderVisible(true);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tTableColumn timeColumn = new TableColumn(this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\ttimeColumn.setText(\"yyyy-MM-dd, HH:mm\"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\ttimeColumn.setWidth(timeColumn.getText().length() * 9);\n\t\t\t\t\t\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\tsb.append(Ultramat.cycleDataTableNames[i]).append(GDE.STRING_BLANK_LEFT_BRACKET).append(Ultramat.cycleDataUnitNames[i]).append(GDE.STRING_RIGHT_BRACKET);\n\t\t\t\t\t\t\t\t\t\tTableColumn column = new TableColumn(this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\tcolumn.setWidth(77);\n\t\t\t\t\t\t\t\t\t\tcolumn.setText(sb.toString());\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\t{\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite = new Composite(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData channelSelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tchannelSelectLData.height = 50;\n\t\t\t\t\t\t\t\t\tchannelSelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tchannelSelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchannelSelectLData.bottom = new FormAttachment(1000, 1000, -90);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setLayoutData(channelSelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tComposite filler = new Composite(this.channelSelectComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(500, 10));\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\t\tthis.channelSelectLabel = new CLabel(this.channelSelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memoryCycleDataSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.width = 370;\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setLayoutData(memoryCycleDataSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2334));\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\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\t\t//this.memoryNames will be updated by memoryCombo selection handler\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo = new CCombo(this.channelSelectComposite, SWT.BORDER | SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setItems(this.channelNumbers);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setVisibleItemCount(2);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboCycleDataLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.width = 35;\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setLayoutData(memoryComboCycleDataLData);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2335));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setEditable(false);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryComboData.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelSelectionIndex = UltraDuoPlusDialog.this.channelCombo.getSelectionIndex() + 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tButton graphicsDataButton = new Button(this.memoryDataComposite, SWT.Selection);\n\t\t\t\t\t\t\t\t\tFormData graphicsDataButtonLData = new FormData();\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.height = 30;\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.bottom = new FormAttachment(1000, 1000, -40);\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setLayoutData(graphicsDataButtonLData);\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setText(Messages.getString(MessageIds.GDE_MSGT2318));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2319));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"graphicsDataButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\t\t\t\t\t\t\t\t\t\t\t\tint[] points = new int[UltraDuoPlusDialog.this.device.getNumberOfMeasurements(UltraDuoPlusDialog.this.channelSelectionIndex)];\n\t\t\t\t\t\t\t\t\t\t\t\tfinal byte[][] graphicsData = new byte[3][];\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.readGraphicsData(graphicsData, UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this);\n\n\t\t\t\t\t\t\t\t\t\t\t\t//create a new record set at the selected output channel\n\t\t\t\t\t\t\t\t\t\t\t\tString processName = Messages.getString(MessageIds.GDE_MSGT2337);\n\t\t\t\t\t\t\t\t\t\t\t\tRecordSet recordSet = null;\n\t\t\t\t\t\t\t\t\t\t\t\tChannel channel = Channels.getInstance().get(UltraDuoPlusDialog.this.channelSelectionIndex);\n\t\t\t\t\t\t\t\t\t\t\t\tif (channel != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tString recordSetKey = channel.getNextRecordSetNumber() + GDE.STRING_RIGHT_PARENTHESIS_BLANK + processName;\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSetKey = recordSetKey.length() <= RecordSet.MAX_NAME_LENGTH ? recordSetKey : recordSetKey.substring(0, RecordSet.MAX_NAME_LENGTH);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.put(recordSetKey, RecordSet.createRecordSet(recordSetKey, UltraDuoPlusDialog.this.device, UltraDuoPlusDialog.this.channelSelectionIndex, true, false, true));\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.applyTemplateBasics(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, recordSetKey + \" created for channel \" + channel.getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet = channel.get(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.device.setTemperatureUnit(UltraDuoPlusDialog.this.channelSelectionIndex, recordSet, UltraDuoPlusDialog.this.initialAnswerData); //°C or °F\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setAllDisplayable();\n\t\t\t\t\t\t\t\t\t\t\t\t\t// switch the active record set if the current record set is child of active channel\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channels.switchChannel(UltraDuoPlusDialog.this.channelSelectionIndex, recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.switchRecordSet(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tString description = recordSet.getRecordSetDescription() + GDE.LINE_SEPARATOR\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"Firmware : \" + UltraDuoPlusDialog.this.device.getFirmwareVersion(UltraDuoPlusDialog.this.initialAnswerData) //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ (UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) >= 1 ? \"; Memory #\" + UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) : GDE.STRING_EMPTY); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint batteryMemoryNumber = UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (batteryMemoryNumber > 0 && UltraDuoPlusDialog.this.ultraDuoPlusSetup != null && UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(batteryMemoryNumber) != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString batteryMemoryName = UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) - 1).getName();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdescription = description + GDE.STRING_MESSAGE_CONCAT + batteryMemoryName;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (recordSetKey.startsWith(\"1)\")) UltraDuoPlusDialog.this.device.matchBatteryMemory2ObjectKey(batteryMemoryName); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ignore and do not append memory name\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setRecordSetDescription(description);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tint numOfPoints = Integer.parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(DeviceSerialPortImpl.FORMAT_4_CHAR, graphicsData[0][1], (char) graphicsData[0][2], (char) graphicsData[0][3], (char) graphicsData[0][4]), 16) - 10;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint timeStep_sec = Integer.parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(DeviceSerialPortImpl.FORMAT_4_CHAR, graphicsData[0][5], (char) graphicsData[0][6], (char) graphicsData[0][7], (char) graphicsData[0][8]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setNewTimeStep_ms(timeStep_sec * 1000.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0, j = 9; i < numOfPoints; i++, j += 4) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0=Spannung 1=Strom 5=BatteryTemperature\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[0] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[0][j], (char) graphicsData[0][j + 1], (char) graphicsData[0][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[0][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[1] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[1][j], (char) graphicsData[1][j + 1], (char) graphicsData[1][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[1][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[5] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[2][j], (char) graphicsData[2][j + 1], (char) graphicsData[2][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[2][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.addPoints(points);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.device.updateVisibilityStatus(recordSet, true);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.updateAllTabs(true);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (DataInconsitsentException e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2338));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2336));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar = new ProgressBar(this.memoryDataComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData graphicsDataProgressBarLData = new FormData();\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.height = 15;\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.bottom = new FormAttachment(1000, 1000, -15);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setLayoutData(graphicsDataProgressBarLData);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setMinimum(0);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setMinimum(100);\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\tthis.mainTabFolder.setSelection(1);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.restoreButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData restoreButtonLData = new FormData();\n\t\t\t\t\t\trestoreButtonLData.width = 118;\n\t\t\t\t\t\trestoreButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\trestoreButtonLData.left = new FormAttachment(0, 1000, 165);\n\t\t\t\t\t\trestoreButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tthis.restoreButton.setLayoutData(restoreButtonLData);\n\t\t\t\t\t\tthis.restoreButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.restoreButton.setText(Messages.getString(MessageIds.GDE_MSGT2284));\n\t\t\t\t\t\tthis.restoreButton.setEnabled(false);\n\t\t\t\t\t\tthis.restoreButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"restoreButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFileDialog fileDialog = UltraDuoPlusDialog.this.application.openFileOpenDialog(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2284), new String[] {\n\t\t\t\t\t\t\t\t\t\tGDE.FILE_ENDING_STAR_XML, GDE.FILE_ENDING_STAR }, UltraDuoPlusDialog.this.settings.getDataFilePath(), GDE.STRING_EMPTY, SWT.SINGLE);\n\t\t\t\t\t\t\t\tif (fileDialog.getFileName().length() > 4) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.setBackupRetoreButtons(false);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\n\t\t\t\t\t\t\t\t\t\tUnmarshaller unmarshaller = UltraDuoPlusDialog.this.jc.createUnmarshaller();\n\t\t\t\t\t\t\t\t\t\tunmarshaller.setSchema(UltraDuoPlusDialog.this.schema);\n\t\t\t\t\t\t\t\t\t\t//merge loaded configuration into active\n\t\t\t\t\t\t\t\t\t\tmergeUltraDuoPlusSetup((UltraDuoPlusType) unmarshaller.unmarshal(new File(fileDialog.getFilterPath() + GDE.FILE_SEPARATOR + fileDialog.getFileName())));\n\t\t\t\t\t\t\t\t\t\t//write updated entries while merging\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite = new UltraDuoPlusSychronizer(UltraDuoPlusDialog.this, UltraDuoPlusDialog.this.serialPort, UltraDuoPlusDialog.this.ultraDuoPlusSetup,\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusSychronizer.SYNC_TYPE.WRITE);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.start();\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.join();\n\t\t\t\t\t\t\t\t\t\t//check and sync active configuration with device content\n\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(0);\n\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.memoryCombo != null && !UltraDuoPlusDialog.this.memoryCombo.isDisposed()) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItems(UltraDuoPlusDialog.this.memoryNames);\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.select(0);\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\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\tif (e.getCause() instanceof FileNotFoundException) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup = new ObjectFactory().createUltraDuoPlusType();\n\t\t\t\t\t\t\t\t\t\t\tList<MemoryType> cellMemories = UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory();\n\t\t\t\t\t\t\t\t\t\t\tif (cellMemories.size() < UltraDuoPlusDialog.numberMemories) { // initially create only base setup data\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < UltraDuoPlusDialog.numberMemories; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tMemoryType cellMemory = new ObjectFactory().createMemoryType();\n\t\t\t\t\t\t\t\t\t\t\t\t\tcellMemory.setSetupData(new ObjectFactory().createMemoryTypeSetupData());\n\t\t\t\t\t\t\t\t\t\t\t\t\tcellMemories.add(cellMemory);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0007, new String[] { e.getMessage() }));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.setBackupRetoreButtons(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\t{\n\t\t\t\t\t\tthis.backupButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData backupButtonLData = new FormData();\n\t\t\t\t\t\tbackupButtonLData.width = 118;\n\t\t\t\t\t\tbackupButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\tbackupButtonLData.left = new FormAttachment(0, 1000, 29);\n\t\t\t\t\t\tbackupButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tthis.backupButton.setLayoutData(backupButtonLData);\n\t\t\t\t\t\tthis.backupButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.backupButton.setText(Messages.getString(MessageIds.GDE_MSGT2286));\n\t\t\t\t\t\tthis.backupButton.setEnabled(false);\n\t\t\t\t\t\tthis.backupButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"backupButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFileDialog fileDialog = UltraDuoPlusDialog.this.application.prepareFileSaveDialog(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2285), new String[] {\n\t\t\t\t\t\t\t\t\t\tGDE.FILE_ENDING_STAR_XML, GDE.FILE_ENDING_STAR }, UltraDuoPlusDialog.this.settings.getDataFilePath(), StringHelper.getDateAndTime(\"yyyy-MM-dd-HH-mm-ss\") + GDE.STRING_UNDER_BAR //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.device.getName() + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getIdentifierName());\n\t\t\t\t\t\t\t\tString configFilePath = fileDialog.open();\n\t\t\t\t\t\t\t\tif (configFilePath != null && fileDialog.getFileName().length() > 4) {\n\t\t\t\t\t\t\t\t\tif (FileUtils.checkFileExist(configFilePath)) {\n\t\t\t\t\t\t\t\t\t\tif (SWT.YES != UltraDuoPlusDialog.this.application.openYesNoMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGI0007, new Object[] { configFilePath }))) {\n\t\t\t\t\t\t\t\t\t\t\treturn;\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\tsaveConfigUDP(configFilePath);\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\t{\n\t\t\t\t\t\tthis.closeButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData writeButtonLData = new FormData();\n\t\t\t\t\t\twriteButtonLData.width = 118;\n\t\t\t\t\t\twriteButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\twriteButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\twriteButtonLData.right = new FormAttachment(1000, 1000, -21);\n\t\t\t\t\t\tthis.closeButton.setLayoutData(writeButtonLData);\n\t\t\t\t\t\tthis.closeButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.closeButton.setText(Messages.getString(MessageIds.GDE_MSGT2287));\n\t\t\t\t\t\tthis.closeButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"closeButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.dispose();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.helpButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tthis.helpButton.setImage(SWTResourceManager.getImage(\"gde/resource/QuestionHot.gif\")); //$NON-NLS-1$\n\t\t\t\t\t\tFormData LoadButtonLData = new FormData();\n\t\t\t\t\t\tLoadButtonLData.width = 118;\n\t\t\t\t\t\tLoadButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\tLoadButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tLoadButtonLData.right = new FormAttachment(1000, 1000, -158);\n\t\t\t\t\t\tthis.helpButton.setLayoutData(LoadButtonLData);\n\t\t\t\t\t\tthis.helpButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"helpButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openHelpDialog(UltraDuoPlusDialog.DEVICE_JAR_NAME, \"HelpInfo.html\"); //$NON-NLS-1$ \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\tthis.boundsComposite.addPaintListener(new PaintListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void paintControl(PaintEvent evt) {\n\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"boundsComposite.paintControl() \" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} // end boundsComposite\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.dialogShell.setLocation(getParent().toDisplay(getParent().getSize().x / 2 - 300, 100));\n\t\t\t\tthis.dialogShell.open();\n\t\t\t\tthis.lastMemorySelectionIndex = -1;\n\t\t\t\tthis.lastCellSelectionIndex = -1;\n\t\t\t\tupdateBaseSetup();\n\t\t\t\tthis.memoryCombo.notifyListeners(SWT.Selection, new Event());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.dialogShell.setVisible(true);\n\t\t\t\tthis.dialogShell.setActive();\n\t\t\t\tthis.lastMemorySelectionIndex = -1;\n\t\t\t\tthis.lastCellSelectionIndex = -1;\n\t\t\t\tupdateBaseSetup();\n\t\t\t\tthis.memoryCombo.notifyListeners(SWT.Selection, new Event());\n\t\t\t}\n\t\t\tDisplay display = this.dialogShell.getDisplay();\n\t\t\tUltraDuoPlusDialog.log.log(Level.TIME, \"open dialog time = \" + StringHelper.getFormatedTime(\"ss:SSS\", (new Date().getTime() - openStartTime))); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\twhile (!this.dialogShell.isDisposed()) {\n\t\t\t\tif (!display.readAndDispatch()) display.sleep();\n\t\t\t}\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t}\n\t\tfinally {\n\t\t\tif (!GDE.shell.isDisposed()) {\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.application.resetShellIcon();\n\t\t\t\tif (this.serialPort != null && this.serialPort.isConnected()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t\tfinally {\n\t\t\t\t\t\tthis.serialPort.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void open() throws ToyPadException;", "public void inicializarCaptura() {\n try {\n fingerprintSDK = new MatchingContext(); \n //Inicializa la captura de huella digital.\n GrFingerJava.initializeCapture(this); \n objpantprincipal.writeLog(\"**SDK de huella dactilar inicializado con éxito**\");\n } catch (Exception e) {\n //Si ocurre un error se cierra la aplicación.\n //If any error ocurred while initializing GrFinger,\n //writes the error to log\n Toolkit.getDefaultToolkit().beep();\n objpantprincipal.writeLog(e.getMessage());\n //System.exit(1);\n }\n }", "public Builder setFingerprint(String fingerprint) {\n this.fingerprint = fingerprint;\n return this;\n }", "public void open() {\r\n\t}", "public void show() throws DeviceException;", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String mCameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(mCameraId);\n StreamConfigurationMap map = characteristics.\n get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n mImageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) !=\n PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE) !=\n PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(CameraActivity.this, new\n String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CAMERA_PERMISSION);\n }\n manager.openCamera(mCameraId, mStateCallback, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "void open();", "void open();", "void open();", "public void openBluetooth() throws IOException {\n UUID uuid = UUID.fromString(\"00001101-0000-1000-8000-00805f9b34fb\"); //Standard SerialPortService ID\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n mmSocket.connect();\n mmOutputStream = mmSocket.getOutputStream();\n mmInputStream = mmSocket.getInputStream();\n\n beginListenForData();\n\n btStatusDisplay.setText(\"Bluetooth Connection Opened\");\n }", "@When(\"^I open details page of device number (\\\\d+) on Devices tab$\")\n public void IOpenDeviceDetails(int deviceIndex) throws Exception {\n getUserDetailsDevicesPage().openDeviceDetailsPage(deviceIndex);\n\n }", "public void open() {\n\t}", "public void openReader(){\r\n handle = -1;\r\n try {\r\n cardReader = new ACR120U();\r\n } catch (java.lang.UnsatisfiedLinkError e) {\r\n e.printStackTrace();\r\n System.err.println(\"Are you sure the DLL is installed???\");\r\n message = \"DLL Installation problem.\";\r\n return;\r\n }\r\n handle = cardReader.open(ACR120U.ACR120_USB1); \r\n if (handle < 0){\r\n //message = \"Error opening reader [port may be in use or reader not in binary mode]\";\r\n message = \"No reader found\";\r\n System.err.println(message);\r\n return;\r\n }\r\n message = \"Device opened.\";\r\n }", "public void openCamera(View view){\n if (isInspecting) {\n Context context = App.getContext();\n Intent intent = new Intent(Inspector.this, PhotoManager.class);\n intent.putExtra(\"blueprint\", blueprint);\n intent.putExtra(\"isInspecting\", isInspecting);\n intent.putExtra(\"filename\", filename);\n View parent = (View) view.getParent();\n String tag = parent.getTag().toString();\n intent.putExtra(\"cameraID\", tag);\n LogManager.reportStatus(context, \"INSPECTOR\", \"parent tag = \" + tag);\n startActivity(intent);\n }\n }", "@Override\n\tpublic void open() {\n\t\topenMMUModeSelect();\n\t}", "public void openProfile(){\n\t\t\n\t\tclickElement(profile_L, driver);\n\t}", "public void openCamera() {\n \n\n }", "public void openRegister() {\n\n }", "public void open() {\n\t\ttry {\n\t\t\tdisplay = Display.getDefault();\n\t\t\tcreateContents();\n\t\t\tcreateTray(display);\t//system tray\n\t\t\tshell.open();\n\t\t\tshell.layout();\n\t\t\twhile (!shell.isDisposed()) {\n\t\t\t\tthis.setAppEnd(true);\n\t\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t}\n\t\t\t}\n\t\t\tterminarPWs(); //cerrar todos los trabajos de impresion que hay dando vueltas por ahi.\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.print(e.getMessage());\n\t\t}\n\t}", "public void openAddSmartDeviceList() {\n getNavigator().openAddSmartDeviceList();\n }", "public void openLock(){\n /*Code to send an unlocking signal to the physical device Gate*/\n }", "public static boolean hasFingerprintSupport(Context context) {\n FingerprintManager fingerprintManager = (FingerprintManager) context.getSystemService(Context.FINGERPRINT_SERVICE);\n return context.getApplicationContext().checkSelfPermission(Manifest.permission.USE_FINGERPRINT) == PackageManager.PERMISSION_GRANTED &&\n (fingerprintManager != null && fingerprintManager.isHardwareDetected());\n }", "private static native boolean open_0(long nativeObj, String filename);", "public void openFlag() {\n \tIntent intent = new Intent(this, DisplayFlagActivity.class);\n \tstartActivity(intent);\n }", "public void openCamera() {\n Toast.makeText(this, \"Coming soon...\", Toast.LENGTH_SHORT).show();\n }", "private void StartSyncCapture() {\n\n new Thread(new Runnable() {\n\n @Override\n public void run() {\n SetTextOnUIThread(\"\");\n isCaptureRunning = true;\n try {\n FingerData fingerData = new FingerData();//predefined class to get result data\n\n //Method to capture finger print with in time out session\n int ret = mfs100.AutoCapture(fingerData, timeout,false);\n Log.e(\"StartSyncCapture.RET\", \"\"+ret);\n if (ret != 0) {\n SetTextOnUIThread(mfs100.GetErrorMsg(ret));\n } else {\n lastCapFingerData = fingerData;\n final Bitmap bitmap = BitmapFactory.decodeByteArray(fingerData.FingerImage(), 0,\n fingerData.FingerImage().length);\n activity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //set bitmap image to the image view\n imgFinger.setImageBitmap(bitmap);\n }\n });\n\n SetTextOnUIThread(\"Capture Success\");\n String log = \"\\nQuality: \" + fingerData.Quality()\n + \"\\nNFIQ: \" + fingerData.Nfiq()\n + \"\\nWSQ Compress Ratio: \"\n + fingerData.WSQCompressRatio()\n + \"\\nImage Dimensions (inch): \"\n + fingerData.InWidth() + \"\\\" X \"\n + fingerData.InHeight() + \"\\\"\"\n + \"\\nImage Area (inch): \" + fingerData.InArea()\n + \"\\\"\" + \"\\nResolution (dpi/ppi): \"\n + fingerData.Resolution() + \"\\nGray Scale: \"\n + fingerData.GrayScale() + \"\\nBits Per Pixal: \"\n + fingerData.Bpp() + \"\\nWSQ Info: \"\n + fingerData.WSQInfo();\n SetLogOnUIThread(log);\n\n SetData2(fingerData);\n\n }\n } catch (Exception ex) {\n SetTextOnUIThread(ex.toString());\n } finally {\n isCaptureRunning = false;\n }\n }\n }).start();\n }", "Device createDevice();", "private void openFile(String name){\n File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);\n File file = new File(path, \"\"+name);\n\n Intent install = new Intent(Intent.ACTION_VIEW);\n install.setDataAndType(Uri.fromFile(file), \"application/pdf\");\n install.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(install);\n\n }", "private native int open0(String host,\n int msid, int port) throws IOException;", "private void launchCamera() {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // Create a File reference for future access\n photoFile = getPhotoFileUri(photoFileName);\n\n // wrap File object into a content provider\n // required for API >= 24\n // See https://guides.codepath.com/android/Sharing-Content-with-Intents#sharing-files-with-api-24-or-higher\n Uri fileProvider = FileProvider.getUriForFile(getContext(), \"com.codepath.fileprovider\", photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileProvider);\n\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\n // So as long as the result is not null, it's safe to use the intent.\n if (intent.resolveActivity(getContext().getPackageManager()) != null) {\n // Start the image capture intent to take photo\n startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);\n }\n }", "protected void open_camera_and_save_image() {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n // Ensure that there is a camera activity to handle the intent.\n if(intent.resolveActivity(getPackageManager()) != null) {\n // create the file where the photo should go\n File photoFile = null;\n try {\n photoFile = createImageFile();\n } catch (IOException e) {\n // error occurred while creating the file\n result.setText(R.string.fail_in_creating_photo);\n }\n\n if(photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(this,\n \"com.example.jiankaiwang.fileprovider\", photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n\n // pass to another external activity\n startActivityForResult(intent, REQUEST_IMAGE_CAPTURE);\n }\n }\n }", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String cameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId);\n StreamConfigurationMap map = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n imageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE}, REQUEST_CAMERA_PERMISSION);\n return;\n }\n manager.openCamera(cameraId, stateCallback, null);\n } catch (CameraAccessException e) {\n Toast.makeText(this, \"Camera failed to open.\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }", "private void launchCamera() {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // Create a File reference to access to future access\n photoFile = getPhotoFileUri(photoFileName);\n\n // wrap File object into a content provider\n // required for API >= 24\n // See https://guides.codepath.com/android/Sharing-Content-with-Intents#sharing-files-with-api-24-or-higher\n Uri fileProvider = FileProvider.getUriForFile(getContext(), \"com.codepath.fileprovider\", photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileProvider);\n\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\n // So as long as the result is not null, it's safe to use the intent.\n if (intent.resolveActivity(getContext().getPackageManager()) != null) {\n // Start the image capture intent to take photo\n startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);\n }\n }", "public static void openFile(File file) throws IOException {\n\n\t\tif (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.OPEN))\n\t\t\tDesktop.getDesktop().open(file);\n\t}", "@Override\n\tpublic void open() {\n\t\tlight.open();\n\t}", "@Override\n public void startDeviceImageIntent() {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(galleryIntent, PICK_FROM_GALLERY_REQUEST_CODE);\n }", "protected void open()\n {\n }", "private void handleFingerprintAcquired(int i) {\n Assert.isMainThread();\n if (i == 0) {\n for (int i2 = 0; i2 < this.mCallbacks.size(); i2++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i2).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onBiometricAcquired(BiometricSourceType.FINGERPRINT);\n }\n }\n }\n }", "private void doYourOpenUsbDevice(UsbDevice usbDevice) {\n connection = mUsbManager.openDevice(usbDevice);\n //add your operation code here\n\n if (connection == null) {\n Log.e(LOG_TAG, \"UsbDeviceConnection null\");\n }\n\n ProbeTable customTable = new ProbeTable();\n customTable.addProduct(0x067B, 0x2303, ProlificSerialDriver.class);\n customTable.addProduct(0x04E2, 0x1410, CdcAcmSerialDriver.class);\n\n UsbSerialProber prober = new UsbSerialProber(customTable);\n\n List<UsbSerialDriver> availableDrivers = prober.findAllDrivers(mUsbManager);\n if (availableDrivers.isEmpty()) {\n\n Log.e(LOG_TAG, \"No available drivers\");\n\n return;\n }\n\n // Open a connection to the first available driver.\n UsbSerialDriver driver = availableDrivers.get(0);\n// mUsbManager.requestPermission(driver.getDevice(), mPermissionIntent);\n boolean hasPermission = mUsbManager.hasPermission(driver.getDevice());\n\n Log.e(LOG_TAG, \"is permission \" + hasPermission);\n\n if (connection == null) {\n\n // You probably need to call UsbManager.requestPermission(driver.getDevice(), ..)\n return;\n }\n\n\n sPort = driver.getPorts().get(0);\n\n\n boundRate = Integer.parseInt(preferences.getString(\"boundRate\", \"9600\"));\n\n dataBits = Integer.parseInt(preferences.getString(\"dataBits\", \"8\"));\n\n String parityStr = preferences.getString(\"parity\", \"NONE\");\n\n\n if (parityStr.equalsIgnoreCase(\"ODD\")) {\n parity = UsbSerialPort.PARITY_ODD;\n } else if (parityStr.equalsIgnoreCase(\"EVEN\")) {\n parity = UsbSerialPort.PARITY_EVEN;\n } else if (parityStr.equalsIgnoreCase(\"NONE\")) {\n parity = UsbSerialPort.PARITY_NONE;\n } else {\n Toast.makeText(getApplicationContext(),\n \"Please select valid parity from settings\", Toast.LENGTH_SHORT).show();\n }\n\n\n String stopBitsStr = preferences.getString(\"stopBits\", \"1\");\n\n if (stopBitsStr.equalsIgnoreCase(\"1\")) {\n stopBits = UsbSerialPort.STOPBITS_1;\n } else if (stopBitsStr.equalsIgnoreCase(\"1.5\")) {\n stopBits = UsbSerialPort.STOPBITS_1_5;\n } else if (stopBitsStr.equalsIgnoreCase(\"2\")) {\n stopBits = UsbSerialPort.STOPBITS_2;\n } else {\n Toast.makeText(getApplicationContext(),\n \"Please select valid stop bits from settings\", Toast.LENGTH_SHORT).show();\n }\n\n\n try {\n sPort.open(connection);\n sPort.setParameters(boundRate, dataBits, stopBits, parity);\n sPort.setRTS(true);\n sPort.setDTR(true);\n\n tvResult.append(\"Connected to device.\\n\");\n svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n\n// showStatus(mDumpTextView, \"CD - Carrier Detect\", sPort.getCD());\n// showStatus(mDumpTextView, \"CTS - Clear To Send\", sPort.getCTS());\n// showStatus(mDumpTextView, \"DSR - Data Set Ready\", sPort.getDSR());\n// showStatus(mDumpTextView, \"DTR - Data Terminal Ready\", sPort.getDTR());\n// showStatus(mDumpTextView, \"DSR - Data Set Ready\", sPort.getDSR());\n// showStatus(mDumpTextView, \"RI - Ring Indicator\", sPort.getRI());\n// showStatus(mDumpTextView, \"RTS - Request To Send\", sPort.getRTS());\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Error setting up device: \" + e.getMessage(), e);\n tvResult.append(\"Error opening device: \" + e.getMessage());\n svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n try {\n sPort.close();\n } catch (IOException e2) {\n // Ignore.\n }\n sPort = null;\n return;\n }\n tvResult.append(\"Serial device: \" + sPort.getClass().getSimpleName());\n svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n\n onDeviceStateChange();\n\n Log.e(LOG_TAG, \"Setting: \" + boundRate + \" \" + dataBits + \" \" + parity + \" \" + stopBits);\n\n// if (preferences.getString(\"boundRate\", null) != null) {\n//\n// boundRate = Integer.parseInt(preferences.getString(\"boundRate\", null));\n//\n//\n// if (preferences.getString(\"dataBits\", null) != null) {\n//\n// dataBits = Integer.parseInt(preferences.getString(\"dataBits\", null));\n//\n//\n// if (preferences.getString(\"parity\", null) != null) {\n//\n// String parityStr = preferences.getString(\"parity\", null);\n//\n// if (parityStr.equalsIgnoreCase(\"ODD\")) {\n// parity = UsbSerialPort.PARITY_ODD;\n// } else if (parityStr.equalsIgnoreCase(\"EVEN\")) {\n// parity = UsbSerialPort.PARITY_EVEN;\n// } else if (parityStr.equalsIgnoreCase(\"NONE\")) {\n// parity = UsbSerialPort.PARITY_NONE;\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select valid parity from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n//\n// if (preferences.getString(\"stopBits\", null) != null) {\n//\n// String stopBitsStr = preferences.getString(\"stopBits\", null);\n//\n// if (stopBitsStr.equalsIgnoreCase(\"1\")) {\n// stopBits = UsbSerialPort.STOPBITS_1;\n// } else if (stopBitsStr.equalsIgnoreCase(\"1.5\")) {\n// stopBits = UsbSerialPort.STOPBITS_1_5;\n// } else if (stopBitsStr.equalsIgnoreCase(\"2\")) {\n// stopBits = UsbSerialPort.STOPBITS_2;\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select valid stop bits from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n//\n// try {\n// sPort.open(connection);\n// sPort.setParameters(boundRate, dataBits, stopBits, parity);\n// sPort.setRTS(true);\n// sPort.setDTR(true);\n//\n// tvResult.append(\"Connected to device.\\n\");\n// svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n//\n//// showStatus(mDumpTextView, \"CD - Carrier Detect\", sPort.getCD());\n//// showStatus(mDumpTextView, \"CTS - Clear To Send\", sPort.getCTS());\n//// showStatus(mDumpTextView, \"DSR - Data Set Ready\", sPort.getDSR());\n//// showStatus(mDumpTextView, \"DTR - Data Terminal Ready\", sPort.getDTR());\n//// showStatus(mDumpTextView, \"DSR - Data Set Ready\", sPort.getDSR());\n//// showStatus(mDumpTextView, \"RI - Ring Indicator\", sPort.getRI());\n//// showStatus(mDumpTextView, \"RTS - Request To Send\", sPort.getRTS());\n//\n// } catch (IOException e) {\n// Log.e(LOG_TAG, \"Error setting up device: \" + e.getMessage(), e);\n// tvResult.append(\"Error opening device: \" + e.getMessage());\n// svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n// try {\n// sPort.close();\n// } catch (IOException e2) {\n// // Ignore.\n// }\n// sPort = null;\n// return;\n// }\n// tvResult.append(\"Serial device: \" + sPort.getClass().getSimpleName());\n// svDemoScroller.smoothScrollTo(0, tvResult.getBottom());\n//\n// onDeviceStateChange();\n//\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select Stop bits from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n//\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select Parity bits from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n//\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select Data bits from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n// } else {\n// Toast.makeText(getApplicationContext(),\n// \"Please select Bound rate from settings\", Toast.LENGTH_SHORT).show();\n// }\n//\n// Log.e(LOG_TAG, \"Setting: \" + boundRate + \" \" + dataBits + \" \" + parity + \" \" + stopBits);\n }", "public void onLaunchCamera() {\n takePic.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // create Intent to take a picture and return control to the calling application\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // Create a File reference to access to future access\n photoFile = getPhotoFileUri(photoFileName);\n\n // wrap File object into a content provider\n // required for API >= 24\n // See https://guides.codepath.com/android/Sharing-Content-with-Intents#sharing-files-with-api-24-or-higher\n Uri fileProvider = FileProvider.getUriForFile(Driver_License_Scan.this, \"com.codepath.fileprovider\", photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileProvider);\n\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\n // So as long as the result is not null, it's safe to use the intent.\n if (intent.resolveActivity(getPackageManager()) != null) {\n // Start the image capture intent to take photo\n startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);\n }\n }\n });\n }", "boolean hasFingerPrint();", "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (drmIntent != null) {\n activity.startActivity(drmIntent);\n }else {\n Toast.makeText(activity, com.sprd.fileexplorer.R.string.msg_invalid_intent, Toast.LENGTH_SHORT)\n .show();\n }\n }", "Fingerprint findFingerprintByUserAndMetadata(String user, SongMetadata smd) throws SQLException;", "private void openUri() {\n try {\n Desktop.getDesktop().browse(new URI(\"http://localhost:\" + Constants.DEFAULT_PORT));\n } catch (URISyntaxException | IOException e) {\n logger.error(\"MainService error [openUri]: \" + e);\n }\n }", "private static void openCH340(int length) {\n int ret_val = driver.ResumeUsbList();\n YXYCLog.d(TAG, ret_val + \"\");\n // ResumeUsbList方法用于枚举CH34X设备以及打开相关设备\n if (ret_val == -1) {\n YXYCLog.d(TAG, ret_val + \"Failed to open device!\");\n driver.CloseDevice();\n } else if (ret_val == 0) {\n if (!driver.UartInit()) { //对串口设备进行初始化操作\n YXYCLog.d(TAG, ret_val + \"Failed device initialization!\");\n YXYCLog.d(TAG, ret_val + \"Failed to open device!\");\n return;\n }\n YXYCLog.d(TAG, ret_val + \"Open device successfully!\");\n if (!isOpenDeviceCH340) {\n isOpenDeviceCH340 = true;\n configParameters(length);//配置ch340的参数、需要先配置参数\n }\n } else {\n YXYCLog.d(TAG, \"The phone couldn't find the device!\");\n }\n }", "public void open( ) {\n System.out.println(\"Door is unlocked. \\n\" +\n \"Welcome to Park Extravaganza\\n\");\n }", "@Override\n\tpublic void open() {\n\t\t\n\t}", "Reference getDevice();", "public void openDriver(SurfaceHolder holder, int cameraPosition)\n\t{\n\t\tif (camera == null) {\n\t\t\tcamera = openCamera(cameraPosition);\n\t\t\tif (camera == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tcamera.setPreviewDisplay(holder);\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.d(TAG, \"cannot set preview display\");\n\t\t\t}\n\t\t\tupdateCameraDisplayOrientation();\n\t\t\tif (!initialized) {\n\t\t\t\tinitialized = true;\n\t\t\t\tconfigManager.initFromCameraParameters(camera);\n\t\t\t}\n\t\t\tconfigManager.setDesiredCameraParameters(camera);\n\t\t\t\n\t\t}\n\t}", "private void openUrl() throws IOException, URISyntaxException{\r\n if(Desktop.isDesktopSupported()){\r\n Desktop desktop = Desktop.getDesktop();\r\n desktop.browse(new URI(url));\r\n } else {\r\n Runtime runtime = Runtime.getRuntime();\r\n runtime.exec(\"xdg-open \" + url);\r\n }\r\n }", "public void openHelpDialog(String deviceName, String fileName, boolean extractBase) {\r\n\t\tfinal String $METHOD_NAME = \"openHelpDialog\"; //$NON-NLS-1$\r\n\t\ttry {\r\n\t\t\tif (this.helpDialog == null || this.helpDialog.isDisposed()) {\r\n\t\t\t\tthis.helpDialog = new HelpInfoDialog(GDE.shell, SWT.NONE);\r\n\t\t\t}\r\n\t\t\tthis.helpDialog.open(deviceName, fileName, SWT.NONE, extractBase);\r\n\t\t}\r\n\t\tcatch (Error e) {\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"using OS registered web browser\"); //$NON-NLS-1$\r\n\t\t\tWebBrowser.openURL(deviceName, fileName);\r\n\t\t\tapplication.openMessageDialogAsync(Messages.getString(MessageIds.GDE_MSGI0025));\r\n\t\t}\r\n\t\tcatch (Throwable t) {\r\n\t\t\tapplication.openMessageDialog(Messages.getString(MessageIds.GDE_MSGE0007) + t.getClass().getSimpleName() + GDE.STRING_MESSAGE_CONCAT + t.getMessage());\r\n\t\t}\r\n\t}", "private void launchCamera() {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n // Ensure that there's a camera activity to handle the intent\n if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\n // Create the temporary File where the photo should go\n try {\n photoFile = createTempImageFile(PhotoActivity.this);\n } catch (IOException ex) {\n // Error occurred while creating the File\n ex.printStackTrace();\n }\n // Continue only if the File was successfully created\n if (photoFile != null) {\n\n // Get the path of the temporary file\n mTempPhotoPath = photoFile.getAbsolutePath();\n\n // Get the content URI for the image file\n Uri photoURI = FileProvider.getUriForFile(this,\n FILE_PROVIDER_AUTHORITY,\n photoFile);\n\n // Add the URI so the camera can store the image\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n\n // Launch the camera activity\n startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);\n }\n }\n }", "private void openCamera() {\n Intent intent=new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // intent.setAction(Intent.ACTION_PICK);\n // intent.putExtra(MediaStore.EXTRA_OUTPUT,Image_uri);\n startActivityForResult(intent, camera_image_code);\n\n }", "void open(VirtualFrame frame);", "public Device(\n Context context, String phoneNumber, String displayName, Bitmap image, Double latitude,\n Double longitude, Long timeOfLastLocation, Boolean trustedFriend, String lookupKey) {\n this.phoneNumber = phoneNumber;\n this.password = null;\n this.type = Device.DEVICE_FRIEND;\n this.image = image;\n this.displayName = displayName;\n this.latitude = latitude;\n this.longitude = longitude;\n this.timeOfLastLocation = timeOfLastLocation;\n this.battery = null;\n this.trustedFriend = trustedFriend;\n this.interval = null;\n this.polls = null;\n this.lookupKey = lookupKey;\n\n if (latitude != null && longitude != null) {\n Location location = new Location(\"\");\n location.setLatitude(latitude);\n location.setLongitude(longitude);\n if (GeoUtils.getLastKnownLocation(context) != null) {\n bearingTo =\n (float) Math.toRadians(GeoUtils.getLastKnownLocation(context).bearingTo(\n location));\n distanceTo = GeoUtils.getLastKnownLocation(context).distanceTo(location);\n }\n }\n }", "private void openFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PICK_IMAGE_REQUEST);\n\n }", "protected void OpenImageFile(String path) {\n\t\tSystem.out.println(\"path\"+path);\n\t\tIntent intent = new Intent(\"android.intent.action.VIEW\");\n\t\tintent.addCategory(\"android.intent.category.DEFAULT\");\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tUri uri = Uri.fromFile(new File(path));\n\t\tintent.setDataAndType(uri, \"image/*\");\n\t\tstartActivity(intent);\n\n\t}", "public boolean open(String filename)\n {\n \n boolean retVal = open_0(nativeObj, filename);\n \n return retVal;\n }", "private void newOpenCamera() {\n if (mThread == null) {\n mThread = new CameraHandlerThread();\n }\n\n synchronized (mThread) {\n mThread.openCamera();\n }\n }", "public static void start() {\n // TODO(xingliu): Find a better way to access feature in Java code.\n // https://crbug.com/1017860.\n if (!ChimeSessionJni.get().isEnabled() || sRegistered) return;\n\n // Install the DFM and then reigster.\n if (ChimeModule.isInstalled()) {\n registerChimeInternal();\n return;\n }\n\n ChimeModule.install((success) -> {\n if (success) registerChimeInternal();\n });\n }", "void openFromFileClicked() {\n\t\tif (GeoGebraJSNativeBridge.get() != null) {\n\t\t\tGeoGebraJSNativeBridge.get().openFromFileClickedNative();\n\t\t}\n\t}", "@Override\n\tpublic void open(int id) {\n\t\t\n\t}", "void openHardware(){\n if(hardware!=null && hardware.isOpen()){\n playMode=PlayMode.LIVE; // in case (like StereoHardwareInterface) where device can be open but not by MotionViewer\n return;\n }\n try{\n hardware=(SiLabsC8051F320_OpticalFlowHardwareInterface)OpticalFlowHardwareInterfaceFactory.instance().getFirstAvailableInterface();\n hardware.setChip(chip);\n chip.setHardwareInterface(hardware);\n hardware.open();\n\n\n \n if(hardware==null) {\n fixLoggingControls();\n fixBiasgenControls();\n return;\n }\n\n fixLoggingControls();\n fixBiasgenControls();\n // note it is important that this openHardware succeeed BEFORE hardware is assigned to biasgen, which immeiately tries to openHardware and download biases, creating a storm of complaints if not sucessful!\n \n// if(hardware instanceof BiasgenHardwareInterface){\n// chip.getBiasgen().sendConfiguration(chip.getBiasgen());\n// chip.setHardwareInterface(hardware); // if we do this, events do not start coming again after reconnect of device\n// biasgen=chip.getBiasgen();\n// if(biasgenFrame==null) {\n// biasgenFrame=new BiasgenFrame(biasgen); // should check if exists...\n// }\n// }\n \n setPlaybackControlsEnabledState(true);\n setPlayMode(PlayMode.LIVE);\n setTitleAccordingToState();\n }catch(Exception e){\n log.warning(e.getMessage());\n if(hardware!= null) hardware.close();\n setPlaybackControlsEnabledState(false);\n fixLoggingControls();\n fixBiasgenControls();\n setPlayMode(PlayMode.WAITING);\n }\n }", "public void connect(View view) {\n if (phoneNum.getText().toString().equals(\"\")) {\n Toast.makeText(getApplication(), \"Please enter a phone number\", Toast.LENGTH_SHORT).show();\n } else {\n phoneNum.setEnabled(false);\n HashMap<String, UsbDevice> usbDevices = usbManager.getDeviceList();\n if (!usbDevices.isEmpty()) {\n boolean keep = true;\n for (Map.Entry<String, UsbDevice> entry : usbDevices.entrySet()) {\n device = entry.getValue();\n int deviceVID = device.getVendorId();\n if (deviceVID == 0x2341)//Arduino Vendor ID\n {\n PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);\n usbManager.requestPermission(device, pi);\n keep = false;\n } else {\n connection = null;\n device = null;\n }\n\n if (!keep)\n break;\n }\n }\n }\n }", "private void openImageIntent() {\n final File root = new File(Environment.getExternalStorageDirectory() + File.separator + \"MyDir\" + File.separator);\n root.mkdirs();\n final String fname = UUID.randomUUID().toString();\n final File sdImageMainDirectory = new File(root, fname);\n outputFileUri = Uri.fromFile(sdImageMainDirectory);\n\n // Camera.\n final List<Intent> cameraIntents = new ArrayList<Intent>();\n final Intent captureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n final PackageManager packageManager = getPackageManager();\n final List<ResolveInfo> listCam = packageManager.queryIntentActivities(captureIntent, 0);\n for(ResolveInfo res : listCam) {\n final String packageName = res.activityInfo.packageName;\n final Intent intent = new Intent(captureIntent);\n intent.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n intent.setPackage(packageName);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n cameraIntents.add(intent);\n }\n\n // Filesystem.\n final Intent galleryIntent = new Intent();\n galleryIntent.setType(\"image/*\");\n galleryIntent.setAction(Intent.ACTION_GET_CONTENT);\n\n // Chooser of filesystem options.\n final Intent chooserIntent = Intent.createChooser(galleryIntent, \"Select Source\");\n\n // Add the camera options.\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, cameraIntents.toArray(new Parcelable[]{}));\n\n startActivityForResult(chooserIntent, SELECT_PICTURE);\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }" ]
[ "0.63012093", "0.608562", "0.60129833", "0.5815275", "0.56855184", "0.5488772", "0.54707384", "0.53430945", "0.5286337", "0.5221471", "0.5166802", "0.51565087", "0.5138858", "0.51247436", "0.5115327", "0.506342", "0.5060948", "0.505845", "0.5043863", "0.49953216", "0.4989263", "0.49851283", "0.49780384", "0.49780384", "0.49699718", "0.4969194", "0.4969194", "0.4969194", "0.49587247", "0.4940531", "0.493437", "0.49261156", "0.49117872", "0.49090004", "0.49070674", "0.49001083", "0.49000403", "0.48994336", "0.48930842", "0.48851213", "0.48851213", "0.48851213", "0.48677588", "0.48646364", "0.48565495", "0.48344767", "0.48256683", "0.48086187", "0.4798604", "0.4789193", "0.4782072", "0.4774102", "0.47601667", "0.47591385", "0.47576368", "0.47449175", "0.47353294", "0.47320867", "0.47306046", "0.47301477", "0.47100043", "0.47095194", "0.47069392", "0.470232", "0.46979445", "0.46979064", "0.4691906", "0.46770844", "0.46759093", "0.46738845", "0.4673012", "0.46708205", "0.4668798", "0.4665897", "0.4655276", "0.4655175", "0.46477023", "0.46457577", "0.46375582", "0.4636011", "0.46329224", "0.46246043", "0.46245378", "0.46093434", "0.46049416", "0.45971832", "0.45950398", "0.45898858", "0.45841616", "0.45771626", "0.45760575", "0.45719117", "0.45691812", "0.45679867", "0.4567598", "0.45672247", "0.45611888", "0.45605922", "0.45491484", "0.45491484" ]
0.51904625
10
Close the fingerprint device.
public native static int close();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void close() {\n if (VDBG) log(\"close()\");\n\n mAppRegistered = false;\n final IBluetoothDeviceGroup service = getService();\n if (service != null) {\n try {\n service.unregisterGroupClientApp(mAppId, mAttributionSource);\n } catch (RemoteException e) {\n Log.e(TAG, \"Stack:\" + Log.getStackTraceString(new Throwable()));\n }\n }\n\n mProfileConnector.disconnect();\n }", "void close(){\r\n // check precondition: device must be opened\r\n if (!checkOpen()){\r\n return;\r\n }\r\n // turn off antenna and LED\r\n cardReader.power(handle, (byte)0);\r\n cardReader.close(handle);\r\n handle = -1;\r\n message = \"Device closed\";\r\n }", "@UnsupportedAppUsage\n public void close() {\n this.mProfileConnector.disconnect();\n }", "private void close() {\n if (mGatt != null) {\n mGatt.close();\n mGatt = null;\n mDeviceAddress = null;\n mDevice = null;\n }\n }", "@Override\n public void close() throws IOException {\n mThread.quit();\n if (mGpio!=null) {\n try {\n mGpio.close();\n } finally {\n mGpio = null;\n }\n }\n }", "@Override\n public void close() throws IOException {\n if (mDevice!=null) {\n try {\n mDevice.close();\n } finally {\n mDevice = null;\n }\n }\n }", "public void destroy() {\n destroyFingerprintSDK();\n //destroyDB();\n }", "public void Close() {\n\t\tfd.close();\r\n\t}", "public synchronized void closeDriver() {\n if (camera != null) {\n camera.getCamera().release();\n camera = null;\n }\n }", "@Override\n @TargetApi(11)\n public void shutdown() {\n mOpenHelper.close();\n super.shutdown();\n }", "public native void close();", "public native void close();", "protected void closeCamera() {\n try {\n mCameraOpenCloseLock.acquire();\n if (null != mCameraDevice) {\n mCameraDevice.close();\n mCameraDevice = null;\n }\n if (null != mMediaRecorder) {\n mMediaRecorder.release();\n mMediaRecorder = null;\n }\n } catch (InterruptedException e) {\n throw new RuntimeException(\"Interrupted while trying to lock camera closing.\");\n } finally {\n mCameraOpenCloseLock.release();\n }\n }", "public void close() throws FTD2XXException {\n if (!open)\n return;\n open = false;\n ensureFTStatus(ftd2xx.FT_Close(ftHandle));\n }", "void close() {\n unload0(name, handle);\n }", "public void closeMidi() {\n\t\tjDevice.close();\n\t}", "public void closeDriver() {\n\t\tif (camera != null) {\n\t\t\tcamera.release();\n\t\t\tcamera = null;\n\t\t\tinitialized = false;\n\t\t}\n\t}", "public void close() {\n try {\n ptr_file.close();\n suf_file.close();\n int k;\n for (k = 0; k < ptr_parts_num; ++k) {\n ptr_buff[k] = null;\n }\n for (k = 0; k < suf_parts_num; ++k) {\n suf_buff[k] = null;\n }\n } catch (IOException e) {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "public void closeKiosk() {\n\t\tdriver.close();\n\t}", "@Override\n public void close()\n {\n this.disconnect();\n }", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close();", "public void close(){ \n\t\tdumpHandler.close();\n\t}", "public void close()\r\n {\r\n datagramSocket.close();\r\n datagramSocket=null;\r\n }", "public void close() {\n\t\tkeystore = null;\n\t}", "public void close() throws IOException {\r\n \taf.close();\r\n \taf = null;\r\n }", "public void close()\n {\n\n window.close();\n try\n {\n screen.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "public void close() {\n if (mBluetoothGatt == null) {\n return;\n }\n Log.w(TAG, \"mBluetoothGatt closed\");\n mBluetoothDeviceAddress = null;\n mBluetoothGatt.close();\n mBluetoothGatt = null;\n }", "@Override\r\n public void close(){\r\n if(!isOpened){\r\n log.warning(\"close(): not open\");\r\n return;\r\n }\r\n \r\n if(servoCommandWriter!=null) {\r\n// log.info(\"disabling all servos\");\r\n// disableAllServos();\r\n try{\r\n Thread.sleep(10);\r\n }catch(InterruptedException e){\r\n \r\n }\r\n servoCommandWriter.shutdownThread();\r\n }\r\n servoCommandWriter.close(); // unbinds pipes too\r\n if(gUsbIo!=null) gUsbIo.close();\r\n UsbIo.destroyDeviceList(gDevList);\r\n log.info(\"device closed\");\r\n errorString=null;\r\n isOpened=false;\r\n \r\n }", "public synchronized void close() {}", "public void close() {}", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "void close();", "public void close() {\r\n helper.close();\r\n }", "public native void Close();", "public void close() {\n\t\t}", "void close() throws ToyPadException;", "public void close() {\n helper.close();\n }", "public void close() {\t\t\n\t}", "public void close() {\n btClose().push();\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n }", "public void close() {\n if (cleanup != null) {\n cleanup.disable();\n }\n if (isOpen()) {\n forceClose();\n }\n }", "public void close() {\r\n\t}", "public void close() {\n if (numDigits > 0)\n flush();\n try {\n output.close();\n } catch (IOException e) {\n throw new RuntimeException(e.toString());\n }\n }", "public void close() {\n\n\t}", "public void close() {\n\n\t}", "public void closeCamera()\n {\n }", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close() {\n\t\t\n\t}", "public void close()\n\t\t{\n\t\t}", "public void close() {\n\t\t\r\n\t}" ]
[ "0.6127398", "0.60829914", "0.6014565", "0.5999005", "0.59349716", "0.5849175", "0.5843097", "0.5828608", "0.58079433", "0.5807056", "0.5779785", "0.5779785", "0.57153124", "0.5713747", "0.56712", "0.56600696", "0.5640596", "0.56291777", "0.56290144", "0.56163204", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.56066996", "0.5602298", "0.5601899", "0.5553184", "0.55492306", "0.55400455", "0.5538404", "0.5527264", "0.5522939", "0.55156183", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.5509084", "0.54951024", "0.5488575", "0.5454661", "0.543902", "0.54357535", "0.54334027", "0.54258895", "0.5425089", "0.5425089", "0.5425089", "0.5421213", "0.54208785", "0.5407961", "0.5405887", "0.5405887", "0.5399499", "0.5394229", "0.5394229", "0.5394229", "0.5392584", "0.53855777" ]
0.5515154
44
Get the feature of fingerprint.
public synchronized native static int getFea(byte[] arryFea, int nFeaLength, int[] pRealFeaLength, int n_TimeOut_S);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFeature();", "String getFeature();", "public String getFeature() {\r\n return feature;\r\n }", "Feature getFeature();", "Feature getFeature();", "public String feature() {\n return feature;\n }", "public Integer getFeature() {\n return feature;\n }", "FTCommand getFeature();", "iet.distributed.telemetry.Feature getFeature(int index);", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n Fingerprint getFingerprint();", "public org.pentaho.pms.cwm.pentaho.meta.core.CwmStructuralFeature getFeature();", "FeatureCall getFec();", "public String getFingerprint() {\n return fingerprint;\n }", "public AbstractMFeature2 getFeature() {\n return feature;\n }", "public String getFingerprint() {\n return fingerprint;\n }", "public String getFingerprint() {\n return fingerprint;\n }", "public String getFingerprint() {\n return fingerprint;\n }", "public String getFingerprint() {\n return fingerprint;\n }", "@Nullable JvmIdentifiableElement getFeature();", "@Override\n public String getFeature() {\n return this.exteriorFeature;\n }", "int getFeatureValue();", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@Override\r\n\t\tpublic Object getFeature(String feature, String version)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "java.lang.String getFingerPrint();", "FeatureId getFeatureId();", "public java.util.List getFeature() \n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\n \t\tList list = instance.getFeature(this.refMofId());\n \t\tlist.addAll(super_getFeature());\n \t\t\n \t\treturn list; \t\t\n \t}\n \n \treturn super_getFeature();\n }", "public FeatureElements getFeatureAccess() {\n\t\treturn pFeature;\n\t}", "java.util.List<iet.distributed.telemetry.Feature> \n getFeatureList();", "FeatureProvider getFeatureProvider() {\n return this.provider;\n }", "public String getPhoneFeature(String phone, String featureName) {\n\treturn null;\n }", "public vis.smart.webservice.ProteinFeaturesFeature[] getFeature() {\n return feature;\n }", "public Object getUnderlyingObject() {\n return feature;\n }", "iet.distributed.telemetry.FeatureOrBuilder getFeatureOrBuilder(\n int index);", "public javax.activation.DataHandler getFingerprintTemplate(){\n return localFingerprintTemplate;\n }", "public ComponentFeature getFeature(int index) {\r\n\t\tif (index >= features.length)\r\n\t\t\treturn null;\r\n\r\n\t\treturn features[index];\r\n\t}", "@Override\n\tpublic String getFeatureCode() {\n\t\treturn featureCode;\n\t}", "public String getFeatVect();", "@Override\n\tpublic MADlibFeature lookUpFeature(MADlibFeatureKey key) {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "public org.pentaho.pms.cwm.pentaho.meta.expressions.CwmFeatureNode getFeatureNode();", "PolicyEngineFeatureApi getFeatureProvider(String featureName);", "public ISlideData getFeature(int index);", "Map<String, Object> getFingerprint() {\r\n return delete.getFingerprint();\r\n }", "public Fingerprint[] fingerprints();", "List<IFeature> getFeatureList();", "public FeatureStream getFeatureStream() {\n\treturn stream;\n }", "public byte[] getFingerprint()\n {\n byte[] tmp = new byte[fingerprint.length];\n \n System.arraycopy(fingerprint, 0, tmp, 0, tmp.length);\n \n return tmp;\n }", "List<Feature> getFeatures();", "public java.lang.String getFingerPrint() {\n java.lang.Object ref = fingerPrint_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fingerPrint_ = s;\n }\n return s;\n }\n }", "private NamedFeature getUnigeneTestFeature(){\n BasicFeature testFeat = new BasicFeature(\"chr2\", 179908392, 179909870);\n testFeat.setName(\"hs.516555\");\n return testFeat;\n }", "public String getFID();", "public String getFeatureID() {\r\n if (line == null) {\r\n return null;\r\n }\r\n\r\n return fid;\r\n }", "public FighterCharacteristics characteristics();", "public UMFeature getFeatureById(Long featureID) throws UMUserManagementException {\n return (featureService.getFeatureByFeatureId(featureID));\n }", "public java.lang.String getFingerPrint() {\n java.lang.Object ref = fingerPrint_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n fingerPrint_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public HashMap<String, HashMap<String, String>> getNearestFacility() {\n if (this.featureInfoHashMap==null) {\n return null;\n }\n return (HashMap<String, HashMap<String, String>>) this.featureInfoHashMap.entrySet().iterator().next();\n }", "public FeatureModel getFeatureModel() {\r\n\t\treturn featureModel;\r\n\t}", "Feature loadFeature(Integer id);", "public String getFeatureFlagString() {\n return featureFlagString;\n }", "@Test\n public void getFeatureFlagTest() throws ApiException {\n String projectKey = null;\n String featureFlagKey = null;\n String env = null;\n FeatureFlag response = api.getFeatureFlag(projectKey, featureFlagKey, env);\n\n // TODO: test validations\n }", "Feature createFeature();", "com.google.cloud.vision.v1p3beta1.Feature.Type getType();", "protected TargetFeatureComputer getTargetFeatureComputer(Voice v)\r\n {\r\n return v.getHalfphoneTargetFeatureComputer();\r\n }", "public Integer getProductFeatureId() {\r\n\t\treturn productFeatureId;\r\n\t}", "private String getFeatureFieldName(FeatureImpl feature) {\n return feature.getShortName();\n }", "@Override\n\tpublic String getFeature(Message message) {\n\t\treturn null;\n\t}", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return SurfaceImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { SurfaceImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return SurfaceImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "private Object getFeature (EObject o, String feature) {\n\n if(o == null){\n System.out.println(\"Null object given\");\n }\n\n return o.eGet(o.eClass().getEStructuralFeature(feature));\n }", "@Override\n\tpublic String getFeatureName() {\n\t\treturn this.name();\n\t}", "public HashMap<String, HashMap<String, String>> getFeatureInfoHashMap() {\n return featureInfoHashMap;\n }", "public Collection<String> getProvideFeature();", "List<String> getFeatures();", "public double getFeature(int i) {\n\t return _features[i];\r\n\t//return 0;\r\n}", "public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType xgetFeatureType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType target = null;\n target = (gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.FeatureTypeType)get_store().find_element_user(FEATURETYPE$4, 0);\n return target;\n }\n }", "public SimpleFeature get(String featureID) {\n\t\treturn idIndex.get(featureID);\n\t}", "public FeatureProcessor getFeatureProcessor(String name) {\n\treturn (FeatureProcessor) featureProcessors.get(name);\n }", "com.google.cloud.videointelligence.v1p3beta1.StreamingFeature getFeature();", "public Feature getTestedFeature() {\n return testedFeature;\n }", "public List<String> getFeatures() {\n return features;\n }", "@JsonGetter\n private Feature<Impact> feature() {\n return feature;\n }", "boolean getFaceDetectionPref();", "public FeatType getFeatType()\n {\n return m_featType;\n }", "public Family getFamily() {\r\n return pic_.getFamily();\r\n }", "public String getTapOccurrenceFeatures() {\n double[] linAccMeans = getMean(linAccSample);\n double[] linAccStdDevs = getStdDev(linAccSample);\n double[] linAccSkewness = getSkewness(linAccSample);\n double[] linAccKurtosis = getKurtosis(linAccSample);\n\n double linAcc1Norm = getL1Norm(linAccMatrix);\n double linAccInfNorm = getInfNorm(linAccMatrix);\n double linAccFroNorm = getFroNorm(linAccMatrix);\n double[] linAccNorms = new double[]{linAcc1Norm, linAccInfNorm, linAccFroNorm};\n\n // 15 gyroscope features\n double[] gyroMeans = getMean(gyroSample);\n double[] gyroStdDevs = getStdDev(gyroSample);\n double[] gyroSkewness = getSkewness(gyroSample);\n double[] gyroKurtosis = getKurtosis(gyroSample);\n\n double gyro1Norm = getL1Norm(gyroMatrix);\n double gyroInfNorm = getInfNorm(gyroMatrix);\n double gyroFroNorm = getFroNorm(gyroMatrix);\n double[] gyroNorms = new double[] {gyro1Norm, gyroInfNorm, gyroFroNorm};\n\n // 9 pearson features\n double[] pearsonCoeffs = getPearsonCoeff(linAccSample, gyroSample);\n\n double[] featureArray = merge(\n linAccMeans, linAccStdDevs, linAccSkewness, linAccKurtosis, linAccNorms,\n gyroMeans, gyroStdDevs, gyroSkewness, gyroKurtosis, gyroNorms,\n pearsonCoeffs);\n\n StringBuilder featureString = new StringBuilder();\n for (int i = 0; i < featureArray.length; i++) {\n featureString.append(i+1);\n featureString.append(':');\n featureString.append(featureArray[i]);\n featureString.append(' ');\n }\n return featureString.toString();\n }", "public static interface AdditionalFeature {\n\n\t\tString getAdditionalFeature();\n\t}", "public java.lang.String getFirmwareField() {\n return firmwareField;\n }" ]
[ "0.7052064", "0.7052064", "0.69198644", "0.6874423", "0.6874423", "0.6857654", "0.6844728", "0.6753212", "0.67319256", "0.65310025", "0.64736074", "0.644951", "0.64368826", "0.64349973", "0.63973737", "0.63973737", "0.63973737", "0.63740355", "0.6278191", "0.62381256", "0.61928004", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6150061", "0.6099516", "0.6086305", "0.6015131", "0.5971215", "0.5966496", "0.5959221", "0.59196407", "0.5905089", "0.5886641", "0.5860523", "0.5832857", "0.58325094", "0.58242536", "0.5816341", "0.57921493", "0.5788549", "0.5785493", "0.5776042", "0.5762605", "0.5748445", "0.57468545", "0.57203776", "0.5710956", "0.5702576", "0.56923604", "0.5690642", "0.56724817", "0.56517047", "0.56251276", "0.56108075", "0.55898035", "0.55881834", "0.5587667", "0.5564339", "0.5560452", "0.55518186", "0.5528745", "0.5501114", "0.54932064", "0.54880625", "0.5485087", "0.5476685", "0.54490626", "0.5440283", "0.5435464", "0.54335886", "0.5425759", "0.5421113", "0.5420654", "0.54158396", "0.5410499", "0.54055935", "0.5403393", "0.5402445", "0.53967786", "0.53963614", "0.53817886", "0.53815144", "0.5371739", "0.53716123", "0.5367481", "0.5356843", "0.53552836" ]
0.0
-1
Get the image of fingerprint.
public synchronized native static int getLastImage(byte[] pImgBuffer, int nImgLength, int[] pRealImaLength, int[] pImgWidth, int[] pImgHeight);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "byte[] getProfileImage();", "String getImage();", "java.lang.String getProfileImage();", "java.lang.String getImage();", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n Fingerprint getFingerprint();", "com.google.protobuf.ByteString getPicture();", "public String getFingerprint() {\n return fingerprint;\n }", "byte[] getSignatureImage();", "public String getFingerprint() {\n return fingerprint;\n }", "public String getFingerprint() {\n return fingerprint;\n }", "public String getFingerprint() {\n return fingerprint;\n }", "public String getFingerprint() {\n return fingerprint;\n }", "public BufferedImage getProfilePicture()\n {\n\n return picture;\n }", "public byte[] getFingerprint()\n {\n byte[] tmp = new byte[fingerprint.length];\n \n System.arraycopy(fingerprint, 0, tmp, 0, tmp.length);\n \n return tmp;\n }", "String avatarImage();", "public String getImage()\n {\n return image;\n }", "public String getImage() { return image; }", "public String getImage() {\n return image;\n }", "public Fingerprint[] fingerprints();", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "public java.lang.String getImage() {\n java.lang.Object ref = image_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n image_ = s;\n return s;\n }\n }", "public ImageInfo getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getSnapImage()\r\n\t\t{\r\n\t\tif(this.snapImage != null && this.fximage != null) {\t\r\n\t\t\treturn this.snapImage;\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttry {\r\n\t\t\t\tgetFXImage();\r\n \t\t\tBufferedImage bImage = SwingFXUtils.fromFXImage(this.fximage, null);\r\n \t\t\tByteArrayOutputStream s = new ByteArrayOutputStream();\r\n \t\t\ttry {\r\n\t\t\t\t\tImageIO.write(bImage, \"png\", s);\r\n\t\t\t\t\t} \r\n \t\t\tcatch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n \t\t\tthis.snapImage = Base64.encode(s.toByteArray());\r\n\t\t\t}\r\n\t\t\tcatch (NullPointerException n) {\r\n\t\t\t\tSystem.out.println(\"The asset for \" + iconId + \" was not found.\" );\r\n\t\t\t}\r\n\t\t\treturn this.snapImage;\t\r\n\t\t}\r\n\t}", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public java.lang.String getImage() {\n java.lang.Object ref = image_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n image_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "public ImageDescriptor getImageDescriptor();", "public float getIMG(){\n return profile.getImg();\n }", "public String getStaticPicture();", "public Image getBassClef();", "public int getImage();", "public ParseFile getProfilePicture() {\n return getParseFile(KEY_IMAGE);\n }", "private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }", "public ObjectImage getObjectImage ()\r\n {\r\n return recoverable_.getObjectImage ();\r\n }", "public String getImage() {\n return this.Image;\n }", "public com.google.protobuf.ByteString getPicture() {\n return picture_;\n }", "private byte[] getImage(){\n byte image[] = null;\n try {\n if(isImageGiven()) {\n image = getImageBytes();\n }\n }catch (IOException e){\n Toast.makeText(this,\"Error in Creating the image \"+e, Toast.LENGTH_SHORT).show();\n }\n return image;\n }", "public WritableImage getImage(){\n\t\tWritableImage image = SwingFXUtils.toFXImage(BfImage, null);\r\n\t\treturn image;\r\n\t}", "public Image getImage() {\n ByteArrayInputStream byteIn = new ByteArrayInputStream(Base64.decodeBase64(this.getImageBase64()));\n\n BufferedImage image;\n\n try {\n image = ImageIO.read(byteIn);\n }\n catch (IOException e) {\n if (this.logger != null) {\n this.logger.warning(\"Error when decoding base64 server icon\");\n }\n\n image = null;\n }\n\n if (image == null) {\n return new BufferedImage(64, 64, BufferedImage.TYPE_INT_ARGB);\n }\n else {\n return image;\n }\n }", "public java.lang.String getSignatureimage () {\n\t\treturn signatureimage;\n\t}", "public com.google.protobuf.ByteString getPicture() {\n return picture_;\n }", "public String getUserImg() {\r\n return userImg;\r\n }", "public javax.activation.DataHandler getPicture() {\r\n return localPicture;\r\n }", "public final ImageProcessor getImage() {\r\n return image;\r\n }", "public byte[] getProfilePicture(){\n return profile_picture;\n }", "public java.lang.String getProfileImage() {\n java.lang.Object ref = profileImage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n profileImage_ = s;\n return s;\n }\n }", "public BufferedImage getImage() {\n\t\tString base64ImageString = getData();\n\t\tByteArrayInputStream byteStream = new ByteArrayInputStream(Base64\n\t\t\t\t.decodeBase64(base64ImageString.getBytes()));\n\t\ttry {\n\t\t\treturn ImageIO.read(byteStream);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public ImageIcon getCardPicture()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************** Start getCardPicture Method *****************/\n\n // Return card picture\n return picture;\n\n }", "public BufferedImage image(){\n\t\treturn shotPic;\n\t}", "public Image getInstanceImage() {\r\n return this.image;\r\n }", "java.lang.String getPictureUri();", "com.google.protobuf.ByteString\n getProfileImageBytes();", "String getImagePath();", "String getImagePath();", "public Image getImage(String key)\n {\n return imageRegistry.get(key);\n }", "public java.lang.String getProfileImage() {\n java.lang.Object ref = profileImage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n profileImage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "java.lang.String getImagePath();", "public PImage getImage() {\n return this.image;\n }", "Map<String, Object> getFingerprint() {\r\n return delete.getFingerprint();\r\n }", "public String getImage() {\n\t\treturn null;\n\t}", "public String getPicture() {\r\n return picture;\r\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "@RestrictTo(Scope.LIBRARY_GROUP)\n @Nullable\n public Fingerprint getFingerprint() {\n return mFingerprint;\n }", "public Image getOne();", "public abstract BufferedImage getSnapshot();", "public javax.activation.DataHandler getFingerprintTemplate(){\n return localFingerprintTemplate;\n }", "@Override\n\tpublic String getUserPicture() {\n\t\treturn super.getUserPicture();\n\t}", "public ParseFile getPicture(){\n return getParseFile(KEY_PICTURE);\n }", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "public Bitmap getImage() {\n return image;\n }", "public Image getImage() {\n return image;\n }", "abstract public String getImageKey();", "public Image getImage() {\r\n\t\treturn GDAssemblerUI.getImage(GDAssemblerUI.IMAGE_GD);\r\n\t}", "public byte[] getImageBytes()\n {\n byte[] buff = null;\n \n try\n {\n ByteArrayOutputStream bos = new ByteArrayOutputStream() ;\n ImageIO.write(img, \"jpg\", bos);\n buff = bos.toByteArray();\n bos.flush();\n bos.close();\n }\n catch(Exception ex)\n {\n System.out.println(\"Problem Serializeing PicNode\");\n ex.printStackTrace();\n }\n return buff;\n }", "public Image getImage() {\r\n return image;\r\n }", "@Override\n public String getPicPhoto() {\n return pic_filekey;\n }", "public BufferedImage getImage() {\n return image;\n }", "public Image getImage() {\n if (tamagoStats.getAge() <= 0) {\n return images.get(\"oeuf\").get(\"noeuf\");\n } else if (tamagoStats.getAge() <= 3) {\n return images.get(\"bebe\").get(\"metamorph\");\n } else if (tamagoStats.getAge() <= 7) {\n return images.get(\"enfant\").get(\"evoli\");\n } else {\n return images.get(\"adulte\").get(\"noctali\");\n }\n }", "public Image getImage() {\n return image;\n }" ]
[ "0.69458544", "0.6587609", "0.6552353", "0.6518585", "0.6505027", "0.6504343", "0.64903426", "0.6467056", "0.6394768", "0.6394768", "0.6394768", "0.63501096", "0.63055634", "0.6300869", "0.6234166", "0.6234157", "0.62311655", "0.6197961", "0.6154254", "0.6126661", "0.612539", "0.61191046", "0.61187", "0.61187", "0.61187", "0.61187", "0.6114605", "0.6111238", "0.6111238", "0.6111238", "0.60833", "0.6071819", "0.6071819", "0.60585403", "0.60559434", "0.60359704", "0.6028151", "0.6000489", "0.59985995", "0.5979062", "0.59722763", "0.5970951", "0.5964226", "0.59598863", "0.5950279", "0.59390557", "0.59374666", "0.593541", "0.5934828", "0.5933157", "0.5920236", "0.5883503", "0.58780545", "0.58728117", "0.5870895", "0.58682513", "0.58436507", "0.58396673", "0.58369815", "0.58317435", "0.58317435", "0.58184135", "0.5811877", "0.5803669", "0.5802887", "0.5800981", "0.5800526", "0.57991385", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5787721", "0.5785089", "0.57837814", "0.5782553", "0.5781069", "0.577278", "0.57696104", "0.5766397", "0.5753078", "0.5751102", "0.57479596", "0.5744942", "0.5718175", "0.5699728", "0.5699639", "0.56995434", "0.56918377" ]
0.0
-1
Cancel the fingerprint device.
public native static int cancel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void cancel() {\n }", "public void cancel() {\n\t\tinterrupt();\n\t}", "public void cancel() {\n request.disconnect();\n }", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel() {\n try {\n bluetoothServerSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void onCancel();", "public void cancel() {\n btCancel().push();\n }", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "public void cancel() {\n\t\tcancel(false);\n\t}", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "public void cancel() {\n\t}", "public void cancel();", "@Override\n public void cancel() {\n }", "@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "public boolean cancel();", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "void onCancel();", "public void cancel()\n\t{\n\t}", "public void cancel( String reason );", "@Override\n public void cancel() {\n }", "@Override\n\t\t\tpublic void cancel() {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "public void cancel()\n {\n this.controller.cancelDownloads();\n\n // Synchronised to avoid a race condition\n synchronized(this.cancelledMonitor)\n {\n // Set the cancelled field to true\n this.cancelled = true;\n }\n theLogger.info(\"Cancel request recieved from UI\");\n }", "private void cancel() {\n\t\tfinish();\n\t}", "protected abstract void onCancel();", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "public void cancel(){\n cancelled = true;\n }", "public void cancel() {\n\t\tcancelled = true;\n\t}", "public void onCancel() {\n\t\t\t\t\t}", "public void cancelCard() {}", "public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "public void cancel() throws OperationUnsupportedException;", "@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n public void onCancel() {\n }", "@Override\r\n\t\tpublic void onCancel() {\n\t\t}", "public void onCancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "public void cancel() {\n if( this.attachedThread != null ) {\n this.attachedThread.interrupt();\n }\n else {\n this.attachedFuture.cancel( true );\n\n if( this.attachedHipanFuture != null ) {\n this.attachedHipanFuture.fail( new InterruptedException( \"Task was canceled\" ) );\n }\n }\n }", "@Override\n\t\tpublic void onCancel() {\n \n \t}", "public void cancel() {\n if (call != null) {\n call.cancel();\n }\n\n // TODO: We need a LOCK here because we can try\n // to cancel at the same time the request is getting\n // answered on the OkHTTP thread. We could get rid of\n // this LOCK by using Runnable when we move Android\n // implementation of mbgl::RunLoop to Looper.\n LOCK.lock();\n nativePtr = 0;\n LOCK.unlock();\n }", "public void onCancel() {\n }", "void onCancel(int key);", "public void cancel() {\n writeData(ESC.CMD_CANCEL);\n }", "@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}", "public void cancel() {\r\n try {\r\n blueSocket.close();\r\n } catch (IOException e) { }\r\n }", "public abstract boolean cancel();", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "public void cancel() {\n target.setAllowFlight(false);\n target.setWalkSpeed(0.01F);\n target.setFlySpeed(0.01F);\n targets.remove(target);\n\n JavaUtils.broadcastStage(\"done\",this);\n }", "void cancelOriginal();", "public void cancel() {\n try {\n btSocket.close();\n } catch (IOException e) {\n Log.e(TAG, \"Could not close the client socket\", e);\n }\n }", "public native int cancel (int tagId) throws IOException,IllegalArgumentException;", "public void cancel() {\r\n\t\tbStop = true;\r\n\t}", "synchronized void cancel()\n {\n state = DNSState.CANCELED;\n notifyAll();\n }", "@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\tfinish();\n\t\t\t}", "public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) {\n Log.e(TAG, \"Could not close the connect socket\", e);\n }\n }", "void cancel() {\n\tsleepThread.interrupt();\n }", "@Override\n public void onCancel() {\n\n }", "@Override\n public void onCancel() {\n\n }", "@Override\n public void onCancel() {\n }", "public void onCancel() {\n\n }", "void cancel(long inId);", "@Override\n protected void onCancel() {\n }", "protected void onPdCancel(){\r\r\t}", "public void revoke() {\n WebsitePreferenceBridge.nativeRevokeUsbPermission(mOrigin, mEmbedder, mObject);\n }", "protected void cancel() {\n abort();\n if(cancelAction != null) {\n cancelAction.accept(getObject());\n }\n }", "@Action\n public void acCancel() {\n setChangeObj(false);\n }", "@Action\n public void acCancel() {\n setChangeObj(false);\n }", "private void onCancel() {\n System.exit(0);\r\n dispose();\r\n }", "private void cancel() {\n mFuture.cancel(mMayInterruptIfRunning);\n }", "public final void mo115436b() {\n nativeCancel(this.f119482o);\n }", "@Override\n public void onCanceled(EasyImage.ImageSource source) {\n if (source == EasyImage.ImageSource.CAMERA) {\n File photoFile = EasyImage.lastlyTakenButCanceledPhoto(MainActivity.this);\n if (photoFile != null) photoFile.delete();\n }\n }", "public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) {\n\n }\n }", "public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) { }\n }", "public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) { }\n }", "public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) { }\n }", "@SuppressWarnings(\"unused\")\n\t\t\tpublic void cancel() {\n\t try {\n\t mmSocket.close();\n\t } catch (IOException e) { }\n\t }", "public void cancelTrip() {\n\t\n\t\t// TODO - fill in here\n\t\tIntent intent = new Intent();\n\t\tsetResult(RESULT_CANCELED,intent);\n\t\tfinish();\n\t}", "@Override\n public void onCancel(Platform arg0, int arg1)\n {\n }", "public native int cancel (boolean reliable,boolean sequenced,int tagId) throws IOException,IllegalArgumentException;", "public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) {\n showToast(\"Could not close the client socket.\");\n }\n }" ]
[ "0.6608687", "0.65259546", "0.648935", "0.6486027", "0.6486027", "0.6486027", "0.6486027", "0.6486027", "0.6486027", "0.63996786", "0.63901895", "0.6334935", "0.6303959", "0.6283543", "0.6283468", "0.62421644", "0.6236357", "0.62187177", "0.62033856", "0.6188062", "0.6183996", "0.6179878", "0.6179878", "0.6172693", "0.6172693", "0.6172693", "0.6161883", "0.61549914", "0.61549914", "0.61549914", "0.6137455", "0.61320025", "0.61291313", "0.611992", "0.6119533", "0.61131537", "0.60895926", "0.6084627", "0.60834754", "0.60712355", "0.60655826", "0.60655826", "0.60655826", "0.60655826", "0.60655826", "0.6065304", "0.6039254", "0.6030988", "0.5996682", "0.5981225", "0.59730864", "0.5967161", "0.5966039", "0.59569204", "0.59562993", "0.5947143", "0.5922397", "0.5906291", "0.5893421", "0.5863622", "0.58607346", "0.5859296", "0.58557457", "0.5850603", "0.5839487", "0.582892", "0.582892", "0.58214855", "0.58212215", "0.5808015", "0.5797144", "0.57903117", "0.5790215", "0.57754403", "0.577535", "0.57654285", "0.57621807", "0.57621807", "0.5747574", "0.5733647", "0.5730061", "0.57182163", "0.5717586", "0.5717032", "0.5714549", "0.57102245", "0.57102245", "0.56943035", "0.5688087", "0.568707", "0.56866", "0.5682423", "0.56822187", "0.56822187", "0.56822187", "0.5680394", "0.5677953", "0.56740814", "0.56681275", "0.5663964" ]
0.61582536
27
Created by wyouflf on 15/8/13.
public interface ProgressBody extends RequestBody { void setProgressHandler(ProgressHandler progressHandler); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void anular() {\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\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void kk12() {\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 void init() {\n\n\t}", "@Override\n void init() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void init() {}", "@Override\n protected void init() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void jugar() {\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\r\n\tpublic void init() {}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void m23075a() {\n }", "public void mo12628c() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "protected void mo6255a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "public void mo21779D() {\n }", "@Override\n protected void getExras() {\n }", "public abstract void mo70713b();" ]
[ "0.62127036", "0.6084377", "0.6068907", "0.6018212", "0.5939448", "0.5939448", "0.59087497", "0.5868998", "0.58615875", "0.5859827", "0.584737", "0.5802172", "0.5787153", "0.57836837", "0.5779763", "0.57766443", "0.57698554", "0.57698554", "0.57698554", "0.57698554", "0.57698554", "0.5766849", "0.57537085", "0.57365054", "0.5725559", "0.5720951", "0.57176405", "0.57162625", "0.5707613", "0.57038295", "0.57008576", "0.56865674", "0.56769216", "0.5676042", "0.56742716", "0.56726056", "0.5670503", "0.56678253", "0.5667433", "0.5667433", "0.56615204", "0.5652862", "0.56378114", "0.56378114", "0.5621644", "0.5613275", "0.5607933", "0.5607933", "0.5607933", "0.5607933", "0.5607933", "0.5607933", "0.5607933", "0.5607161", "0.5607161", "0.5607161", "0.5606661", "0.5606661", "0.5605861", "0.5605861", "0.5605861", "0.5598085", "0.5597278", "0.55972123", "0.5592979", "0.5591723", "0.5591723", "0.5591723", "0.5591723", "0.5591723", "0.5591723", "0.55853397", "0.5582475", "0.55717665", "0.55717665", "0.55717665", "0.5565549", "0.55633277", "0.5560819", "0.5558196", "0.555393", "0.55463785", "0.5542452", "0.5534723", "0.5529414", "0.5529227", "0.5525228", "0.54966927", "0.54878056", "0.5483881", "0.5482808", "0.5482356", "0.54793835", "0.5476206", "0.54712075", "0.54625654", "0.546004", "0.546004", "0.5455443", "0.5454006", "0.54444593" ]
0.0
-1
Reposition based on the mouse location difference
@Override public void mouseDragged(MouseEvent e) { int deltaX = e.getXOnScreen() - screenX; int deltaY = e.getYOnScreen() - screenY; setLocation(myX + deltaX, myY + deltaY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseDragged(MouseEvent evt) {\n setLocation(evt.getXOnScreen() - posX, evt.getYOnScreen() - posY);\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n mouseXPosition = e.getX();\n }", "private void formMouseDragged(java.awt.event.MouseEvent evt) {\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n setLocation(x-xMouse , y-yMouse);\n }", "public void mouseMoved (MouseEvent me) { mouse_x = me.getX(); mouse_y = me.getY(); repaint(); }", "private void PanelPertamaMouseDragged(java.awt.event.MouseEvent evt) {\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n this.setLocation(x - xx, y - xy);\n }", "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 }", "@Override\n public void mouseMoved(MouseEvent e) {\n // Simply find x and y and then overwrite last frame data\n int x = e.getX();\n int y = e.getY();\n\n old_x = x;\n old_y = y;\n }", "@Override\r\n\t\t\tpublic void mouseMove(MouseEvent e) {\n\t\t\t\tif(x>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tshell.setLocation(e.x-x + shell.getLocation().x,\r\n\t\t\t\t\t\te.y-y + shell.getLocation().y);\r\n\t\t\t\t}\r\n\t\t\t}", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "@Override\n public void mouseDragged(MouseEvent e){\n newerlabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\tPoint point=getLocation();\r\n\t\t\t\tsetLocation(point.x + (e.getX() - origin.x), point.y + (e.getY() - origin.y));\r\n\t\t\t}", "@Override\r\n public void mouseDragged(MouseEvent e) {\n int thisX = getLocation().x;\r\n int thisY = getLocation().y;\r\n\r\n //determina el desplazamiento\r\n int xMoved = (thisX + e.getX()) - (thisX + initialClick.x);\r\n int yMoved = (thisY + e.getY()) - (thisY + initialClick.y);\r\n\r\n //mueve la ventana a su nueva posicion\r\n int X = thisX + xMoved;\r\n int Y = thisY + yMoved;\r\n this.setLocation(X, Y);\r\n }", "protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}", "private void toolbarEmpMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_toolbarEmpMouseDragged\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n // Move frame by the mouse delta\n setLocation(getLocationOnScreen().x + x - lastX,\n getLocationOnScreen().y + y - lastY);\n lastX = x;\n lastY = y;\n }", "public void mouseMoved(MouseEvent e) {\n \tapp.updateCoord(e.getX(),e.getY());\n }", "public void mouseDragged(MouseEvent evt) {\n\t\t\t\tframe.setLocation(evt.getXOnScreen() - posX, evt.getYOnScreen() - posY);\r\n\r\n\t\t\t}", "public void place(){\n\t\tplace((float) Math.floor(Main.mouseSelector.x)+0.5f,(float) Math.floor(Main.mouseSelector.y)+0.5f);\r\n\t}", "private void cursorPosChanged( double x, double y )\n {\n }", "public void mouseMoved(MouseEvent e) {\n\t\tmainPanel2.mouseX = e.getX()-25;\r\n\t\tmainPanel2.mouseY = e.getY()-30;\r\n\t\tmainPanel2.repaint();\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tif((e.getModifiersEx() & MouseEvent.BUTTON2_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for middle mouse button drags, pan across the scene\r\n\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\ttemp.setTail(worldCenter);\r\n\t\t\tworldCenter = temp.getHead();\r\n\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t}\r\n\t\telse if((e.getModifiersEx() & MouseEvent.BUTTON1_DOWN_MASK) != 0)\r\n\t\t{\r\n\t\t\t//for left mouse button drags, move closest vert.\r\n\t\t\tif(closestPointToCursor != null)\r\n\t\t\t{\r\n\t\t\t\tVector temp = new Vector(new PointD(lastPointOnScreen), new PointD(e.getPoint()));\r\n\t\t\t\ttemp.setTail(closestPointToCursor);\r\n\t\t\t\tclosestPointToCursor.set(temp.getHead());\r\n\t\t\t\tlastPointOnScreen = e.getPoint();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void\tmouseMoved(int oldx, int oldy, int newx, int newy) \n {\n mouseX = newx;\n mouseY = newy;\n }", "public void mouseMoved(MouseEvent e) {\n mX=e.getX();\n mY=e.getY();\n }", "private void mouseMove() {\n if (this.holding) {\n Point point = new Point(mousex, mousey);\n this.addPixel(point);\n }\n }", "void loopy() {\n if (position.y < -50) {\n position.y = Constants.height + 50;\n } else\n if (position.y > Constants.height + 50) {\n position.y = -50;\n }\n if (position.x< -50) {\n position.x = Constants.width +50;\n } else if (position.x > Constants.width + 50) {\n position.x = -50;\n }\n }", "private void drag() {\n Point mousePosition = calculateMouseLocation();\n getArea().x = mousePosition.getX() - (mouseX - prevX);\n getArea().y = mousePosition.getY() - (mouseY - prevY);\n // Ensure that weird resizing stuff doesn't happen while moving the\n // window. Idfk why this works, but it does.\n resize();\n getLayout().resize(this, getChildren());\n getLayout().layout(this, getChildren());\n }", "@Override\n public void mouseDragged(MouseEvent e){\n lblNewLabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \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 void mouseMoved(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n }", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tpvo3 = getPosition(e.getPoint());\n\t\t// System.out.println(pvo1.getX()+\",\"+pvo1.getY());\n\t}", "@Override\n public void mouseDragged(MouseEvent e){\n newLabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "private void frameDragMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_frameDragMouseDragged\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n \n this.setLocation(x - xMouse, y - yMouse);\n }", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\torigin.x=e.getX();\r\n\t\t\t\torigin.y=e.getY();\r\n\t\t\t}", "public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }", "private MotionEvent swapXY(MotionEvent ev){\n float width = getWidth();\n float height = getHeight();\n\n float newX = ev.getY();\n float newY = ev.getX();\n\n ev.setLocation(newX,newY);\n\n return ev;\n }", "@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tx=y=-1;\r\n\t\t\t}", "public void mouseMoved( MouseEvent event )\n\t {\n\t \t /*\n\t \t * Change one unit into pixels sx = width/(b-a)\n\t \t * X = (x-a)*sx\n\t \t * \n\t \t * sy = height/(ymax - ymin)\n\t \t * Y1 = height - (y-ymin)*sy\n\t \t * Y2 = (ymax-y)*sy\n\t \t * Y1=Y2(same expression)\n\t \t */\n\t \t double b = InputView.getEnd();\n\t \t\t double a = InputView.getStart();\n\t \t DecimalFormat df = new DecimalFormat(\"#.##\");\n\t \t double sx = 594/(b-a);\n\t \t double sy = 572/(PlotPoints.getMax()-PlotPoints.getMin());\n\t \t coords.setText( \"(\"+ df.format((event.getX()/sx)+a-.02) + \", \" + df.format((.17 + PlotPoints.getMax()) - (event.getY()/sy)) + \")\" );\n\t }", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "@Override\n public void onMouseMove(int xDelta, int yDelta, float xPos, float yPos) {\n mouseXPos = xPos;\n mouseYPos = yPos;\n\n if (isBeingRotated) {\n float angle = -xDelta * ROTATION_MODIFIER;\n eyeOffset.rotateZ(angle);\n\n } else if (isBeginMoved) {\n // x movement\n Vector3f eyeDir = new Vector3f(eyeOffset);\n eyeDir.mul(xDelta * DRAG_MODIFIER).cross(getUpVector());\n focus.add(eyeDir.x, eyeDir.y, 0);\n\n // y movement\n eyeDir.set(eyeOffset).mul(yDelta * DRAG_MODIFIER);\n focus.sub(eyeDir.x, eyeDir.y, 0);\n }\n }", "public void updateXLoc();", "private void jPanel2MouseDragged(java.awt.event.MouseEvent evt) {\n int x = evt.getXOnScreen();\n int y = evt.getYOnScreen();\n this.setLocation(x - xx, y - xy);\n }", "@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Rotate for LMB\n rt_y -= (old_x - x) / 2;\n rt_x -= (old_y - y) / 2;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n } else if (SwingUtilities.isRightMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Translate for RMB\n tr_x -= ((float) old_x - (float) x) / 1000;\n tr_y += ((float) old_y - (float) y) / 1000;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n }\n }", "public abstract void moveMouse(int iPosX, int iPosY);", "private void setMousePossition() {\n mouseX = Mouse.getMouseX() / Display.SCALE;\n mouseY = Mouse.getMouseY() / Display.SCALE;\n }", "public void relocateToPoint(boolean isUserClick){\n// System.out.println(\"Scene x: \"+point.getX()+\", y: \"+point.getY());\n// System.out.println(\"Local x: \"+getParent().sceneToLocal(point).getX()+\", y: \"+getParent().sceneToLocal(point).getY());\n// System.out.println(\"Relocate x: \"+(getParent().sceneToLocal(point).getX() - (getWidth() / 2))+\", y: \"+(getParent().sceneToLocal(point).getY() - (getHeight() / 2)));\n// System.out.println(getBoundsInLocal().getWidth());\n// System.out.println(widthProperty());\n\n if (isUserClick) {\n double new_x=getParent().sceneToLocal(x,y).getX();\n double new_y=getParent().sceneToLocal(x,y).getY();\n setX(new_x);\n setY(new_y);\n relocate(\n// (getParent().sceneToLocal(x,y).getX() - (widthCountry / 2)),\n// (getParent().sceneToLocal(x,y).getY() - (heightCountry / 2))\n new_x,new_y\n );\n } else {\n relocate(x,y);\n }\n\n\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n int thisX = parent.getLocation().x;\n int thisY = parent.getLocation().y;\n\n // Determine how much the mouse moved since the initial click\n int xMoved = (thisX + e.getX()) - (thisX + initialClick.x);\n int yMoved = (thisY + e.getY()) - (thisY + initialClick.y);\n\n // Move window to this position\n int X = thisX + xMoved;\n int Y = thisY + yMoved;\n parent.setLocation(X, Y);\n }", "public void\nshiftToOrigin()\n{\n\tthis.setLine(0.0, 0.0,\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n}", "void onMouseMoved(double mouseX, double mouseY, double prevMouseX, double prevMouseY);", "public void mouseDragged(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n }", "public void mouseDragged(java.awt.event.MouseEvent evt) {\n tmp.setLocation(cuadroSeleccionado.getLocation().x + evt.getX() - 18, cuadroSeleccionado.getLocation().y + evt.getY() - 28);\n }", "@Override\n public void updatePosition(float deltaTime) {\n if (isBeingRotated || isBeginMoved) return;\n // prevent overshooting when camera is not updated.\n deltaTime = Math.min(deltaTime, 0.5f);\n\n Vector3f eyeDir = new Vector3f(eyeOffset);\n GLFWWindow window = game.window();\n int width = window.getWidth();\n int height = window.getHeight();\n\n // correction for toolbar\n int corrMouseYPos = (int) mouseYPos;\n int corrMouseXPos = (int) mouseXPos;\n\n // x movement\n if (corrMouseXPos < SCREEN_MOVE_BORDER_SIZE) {\n float value = positionToMovement(corrMouseXPos) * deltaTime;\n eyeDir.normalize(value).cross(getUpVector());\n focus.add(eyeDir.x, eyeDir.y, 0);\n\n } else {\n int xInv = width - corrMouseXPos;\n if (xInv < SCREEN_MOVE_BORDER_SIZE) {\n float value = positionToMovement(xInv) * deltaTime;\n eyeDir.normalize(value).cross(getUpVector());\n focus.sub(eyeDir.x, eyeDir.y, 0);\n }\n }\n\n eyeDir.set(eyeOffset);\n // y movement\n if (corrMouseYPos < SCREEN_MOVE_BORDER_SIZE) {\n float value = positionToMovement(corrMouseYPos) * deltaTime;\n eyeDir.normalize(value);\n focus.sub(eyeDir.x, eyeDir.y, 0);\n\n } else {\n int yInv = height - corrMouseYPos;\n if (yInv < SCREEN_MOVE_BORDER_SIZE) {\n float value = positionToMovement(yInv) * deltaTime;\n eyeDir.normalize(value);\n focus.add(eyeDir.x, eyeDir.y, 0);\n }\n }\n }", "private void formMouseDragged(java.awt.event.MouseEvent evt) {\n this.setLocation(this.getX()+evt.getX()-mouseX, this.getY()+evt.getY()-mouseY);\n }", "private void startDragging() {\n Point mousePosition = calculateMouseLocation();\n mouseX = mousePosition.getX();\n mouseY = mousePosition.getY();\n prevX = getArea().getX();\n prevY = getArea().getY();\n setDragging(true);\n }", "void mouseMoved(double x, double y, MouseEvent e );", "public void mousePressed(MouseEvent e) {\n xinitial = e.getX() / 5; //get the x value\r\n yinitial = e.getY() / 5; //get the y value\r\n }", "public void mousePressed(MouseEvent e) {\n oldX = e.getX();\r\n oldY = e.getY();\r\n }", "public abstract void mouseMoved(Point p);", "public void mouseDragged(MouseEvent e) {\n int x = e.getX();\n int y = e.getY();\n Dimension size = e.getComponent().getSize();\n\n float thetaY = 360.0f * ( (float)(x-prevMouseX)/(float)size.width);\n float thetaX = 360.0f * ( (float)(prevMouseY-y)/(float)size.height);\n \n prevMouseX = x;\n prevMouseY = y;\n\n view_rotx += thetaX;\n view_roty += thetaY;\n }", "public void mouseMoved(MouseEvent evt) {\n\n\t\t\tif (isDrawing) {\n\t\t\t\tnewX = evt.getX();\n\t\t\t\tnewY = evt.getY();\n\t\t\t\t\n\t\t\t\trepaint();\n\n\t\t\t}\n\t\t}", "void moveMouse(int horizontal, int vertical);", "private void computeScreenLocation(MouseEvent mouseEvent)\r\n\t{\r\n\t\t\r\n\t\tscreenLocation.setLocation(mouseEvent.getX(), mouseEvent.getY());\r\n\t\tSwingUtilities.convertPointToScreen(screenLocation, (Component)mouseEvent.getSource());\r\n\t\r\n\t}", "void setPosition(double xPos, double yPos);", "public void setPostion(int newXPosition, int newYPosition) {\n xPosition = newXPosition;\n yPosition = newYPosition;\n }", "public abstract void makeMove(int mouseDownX, int mouseDownY, int MouseUpX, int mouseUpY, int left, int top, int width, int height);", "private void moved(MouseEvent e)\r\n {\n }", "public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}", "public void update() {\n\t\t\n\t\tVector size = new Vector(Main.frame.getContentPane().getWidth() + 64, 64 + 64);\n\t\tposition = new Vector(0, Main.frame.getContentPane().getHeight() - 40);\n\t\t\n\t\tRectangle rect = new Rectangle(position, size);\n\t\t\n\t\tif (rect.contains(Mouse.getVector())) {\n\t\t\troom.isMouseOverGUI = true;\n\t\t}\n\t}", "public void mouseDragged( MouseEvent evt ){\n Location x = new Location( evt.getX(), evt.getY() );\n pond.moveAxis(x, canvas);\n\n }", "@Override\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\tmouseX = e.getX();\n\t\t\t\tmouseY = e.getY();\n\t\t\t\tmenu.setMouseX(mouseX);\n\t\t\t\tmenu.setMouseY(mouseY);\n\t\t\t}", "static void setTextMousePoint(int i,int j){tmpx=i;tmpy=j;}", "Position getOldPosition();", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\tlastPointOnScreen = e.getPoint();\t\t\t\r\n\t\t\r\n\t\tif(screenWidth != 0)//control looking around for first person\r\n\t\t{\r\n\t\taSquare.setAngularVelocity(2*Math.pow((e.getX() - screenWidth/2)/(screenWidth/2.),3));\r\n\t\t}\r\n\t\t\r\n\t\tif(showDebug)//select closest point to cursor for global var\r\n\t\t{\r\n\t\t\tdouble minDistance = 100.0;\r\n\t\t\tclosestPointToCursor = null;\r\n\t\t\t\r\n\t\t\tArrayList<PolygonD> objectsInScene = new ArrayList<PolygonD>();\r\n\t\t\tobjectsInScene.addAll(objects);\r\n\t\t\tobjectsInScene.add(currentShape);\r\n\r\n\t\t\t//iterate over all of the verts in all of the objects in the scene\r\n\t\t\tfor(PolygonD obj : objectsInScene)\r\n\t\t\t\tfor(PointD p : obj.getVerts())\r\n\t\t\t\t{\r\n\t\t\t\t\tdouble distance = (double)(new Vector(\r\n\t\t\t\t\t\t\tp, \r\n\t\t\t\t\t\t\tnew PointD(\r\n\t\t\t\t\t\t\t\t\te.getPoint().x - worldCenter.getX(),\r\n\t\t\t\t\t\t\t\t\te.getPoint().y - worldCenter.getY()\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)).getMag();\r\n\t\t\t\t\tif(distance < minDistance)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//set closest point to cursor\r\n\t\t\t\t\t\tminDistance = distance;\r\n\t\t\t\t\t\tclosestPointToCursor = p;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public abstract void mouseMoved(int displayX, int displayY);", "@Override\n protected void moveOver(){\n incrementXPos(getWidth()/2);\n if(pointUp){\n incrementYPos(-1*getHeight());\n } else {\n incrementYPos(getHeight());\n }\n incrementCol();\n setPointDirection();\n }", "public void moveViewRelative(int newX, int newY) {\n\n targetXOffset = (int) (currentXOffset - newX);\n targetYOffset = (int) (currentYOffset - newY);\n\n doPan = true;\n\n gameChanged = true;\n }", "public void frogReposition() {\n\t\tsetY(FrogPositionY);\n\t\tsetX(FrogPositionX);\t\t\n\t\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) \n\t{\n\t\tsuper.mouseDragged(e);\n\n\t\tthis.model.setPosition(e.getX()/2, e.getY()/2);\t//TODO: Important: test this! is it always /2 ? \n\t}", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t//inverted.invert();\n\t\t\t\t\t//Point2D point = inverted.transform(new Point2D.Double(e.getX(), e.getY()), null);\n\t\t\t\t\t//inverted.setToTranslation((double)e.getX(), (double)e.getY());\n\t\t\t\t\tPoint2D p = transform.inverseTransform(new Point2D.Double(e.getX() - panOrigin.getX(), e.getY() - panOrigin.getY()), null);\n\t\t\t\t\ttransform.translate(p.getX(), p.getY());\n\t\t\t\t\trevalidate();\n\t\t\t\t\trepaint();\n\t\t\t\t\tpanOrigin.setLocation(e.getX(), e.getY());\n\t\t\t\t\tSystem.out.printf(\"%f, %f\\n\", p.getX(), p.getY());\n\t\t\t\t} catch (NoninvertibleTransformException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "public void mouseDragged(MouseEvent e) {\n\n try {\n dragEndScreen = e.getPoint();\n //Create a point2d.float with the\n Point2D.Float dragStart = transformPoint(dragStartScreen);\n Point2D.Float dragEnd = transformPoint(dragEndScreen);\n //calculate how far the screen is dragged from its start position.\n double dx = dragEnd.getX() - dragStart.getX();\n double dy = dragEnd.getY() - dragStart.getY();\n transform.translate(dx, dy);\n\n //remember to reposition points to avoid unstable dragging.\n dragStartScreen = dragEndScreen;\n dragEndScreen = null;\n repaint();\n } catch (NoninvertibleTransformException ex) {\n ex.printStackTrace();\n }\n\n }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\tif (currentPoint != null) {\n\t\t\tcurrentPoint.setLocation(arg0.getX() - dx, arg0.getY() - dy);\n\t\t\trepaint();\n\t\t}\n\t}", "public void tick() {\n\t\ta = Window.frame.getMousePosition();\n\t\tif (a != null) {\n\t\t\tmx = (int)a.getX();\n\t\t\tmy = (int)a.getY();\n\t\t}\n\t\t//System.out.println(a);\n\t}", "public void mouseMoved(MouseEvent e)\n {\n int x=e.getX();\n int y=e.getY();\n }", "public void mouseMoved (MouseEvent n)\r\n {\r\n \tmouseX = n.getX();\r\n \tmouseY = n.getY();\r\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n View view = getChart().getView();\n\n //\n if (getChart().getView().is3D()) {\n mousePosition.event = null;\n mousePosition.projection = null;\n } else {\n mousePosition.event = e;\n mousePosition.projection = screenToModel(e);\n }\n view.shoot();\n\n }", "public void mousePressed(MouseEvent e)\n {\n points.setX(e.getX());\n points.setY(e.getY());\n }", "public void mouseMove(int _x, int _y, Dimension box){\n\t\tint oldX = x;\n\t\tint oldY = y;\n\t\t\n\t\tint newX = _x - xClicked;\n\t\tint newY = _y - yClicked;\n\t\t\n\t\t// Move on the grid only\n\t\t//newX -= newX%GRID_WIDTH;\n\t\t//newY -= newY%GRID_HEIGHT;\n\t\t\n\t\tif ( newX >= 0 && newX + width <= box.width){\n\t\t\tx = newX;\n\t\t}\n\t\t\n\t\tif ( newY >= 0 && newY + height <= box.height){\n\t\t\ty = newY;\n\t\t}\n\t\t\n\t\thistory.addDisplayMove(this, oldX, oldY, newX, newY);\n\t}", "private void updateShapeOffset() {\n int offsetX = scroller.getOffsetX();\n int offsetY = scroller.getOffsetY();\n shape.setOffset(offsetX, offsetY);\n }", "private void move(double newXPos){\n this.setX(newXPos);\n }", "private void recalculatePosition()\n {\n position.x = gridCoordinate.getCol()*(width+horizontal_spacing);\n position.y = gridCoordinate.getRow()*(heigh+vertical_spacing);\n }", "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}", "void dragPoint() {\n\t\toffsetP = PVector.sub(P, beginOffsetP); // calculate the offset made by\n\t\t\t\t\t\t\t\t\t\t\t\t// mouseDrag -- subtract\n\t\t\t\t\t\t\t\t\t\t\t\t// beginOffsetP from P\n\t\tfor (int i = 0; i < amount; i++)\n\t\t\tpoint[i].drag();\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n // this.getVision().getCare().set(this.getVision().getSoul().newMemento());\n if (e.getButton() != MouseEvent.BUTTON1) {\n return;\n }\n if (getVerticallyPointOnGraph(e.getX(), e.getY()) != null) {\n setCurrentPoint(getVerticallyPointOnGraph(e.getX(), e.getY()));\n } else {\n setCurrentPoint(null);\n }\n \n if (getCurrentPoint() != null) {\n double toy = Math.min(Math.max(tCanvasPadding, e.getY()), getHeight() - bCanvasPadding);\n // System.out.println(\"moving to [\"+tox+\",\"+toy+\"]\");\n adapter.moveImagePoint(getCurrentPoint(), c2gy(toy));\n // getCurrentPoint().movePoint(getCurrentPoint(),\n // c2gx(tox),c2gy(toy,getCurrentPoint().getDataSet()));\n }\n // System.out.println(\"Current point is \"+currentPoint);\n }", "public void mouseClicked(MouseEvent e) {\n p.x = e.getX();\n p.y = e.getY();\n repaint();\n }", "private void adjustEViewPosition() {\n double aVec[] = theRocket.getCoordSys().getPositionVec();\n CoordSys eViewSys = new CoordSys();\n eViewSys.setZAxis(VMath.normalize(aVec));\n\n aVec = VMath.vecMultByScalar(aVec, 2.5);\n eViewSys.setPositionAsVec(aVec);\n\n double[] zAxis = VMath.normalize(eViewSys.zAxis().getVectorForm());\n double[] yAxis = VMath.normalize(theRocket.getCoordSys().yAxis().getVectorForm());\n double[] xAxis = VMath.normalize(VMath.crossprd(yAxis, zAxis));\n yAxis = VMath.crossprd(zAxis, xAxis);\n eViewSys.setXAxis(xAxis);\n eViewSys.setYAxis(yAxis);\n eViewSys.setZAxis(zAxis);\n\n eViewSys.xRotate(180);\n eViewSys.zRotate(-90);\n eView.setViewingCoordSys(eViewSys);\n }", "@Override\n\tpublic void mouseDragged(MouseEvent me) {\n\t\tcurrentPoint = new Point(me.getX(),me.getY());\n\t\tthis.repaint();\n\t}", "@Override\n public double getLocationX() {\n return myMovable.getLocationX();\n }", "public void mousePressed(MouseEvent e) {\n int i = 0;\n // Koordinaten des Mauszeigers sind relativ zum sichtbaren Bereich der\n // Zeichenflaeche. Also linke obere Ecke des sichtb. Bereichs holen\n // und beruecksichtigen.\n Rectangle r = ((JScrollPane) e.getSource()).getViewport().getViewRect();\n int f = model.getFactor(); // Zoomfaktor beachten\n int x = r.x + e.getX();\n x = x / f;\n int y = r.y + e.getY();\n y = y / f;\n\n moveP = model.getInterpolPoint(new Point(x, y, f));\n // Hilfspunkt erzeugen\n }", "@Override\n public void mousePressed(MouseEvent me) {\n mouse_x = me.getX();\n mouse_y = me.getY();\n super.mousePressed(me);\n }", "double getXPosition();" ]
[ "0.70754737", "0.68996274", "0.68270487", "0.6821742", "0.68193096", "0.68038005", "0.67304313", "0.6722254", "0.6703911", "0.6703265", "0.66967195", "0.66730666", "0.6586281", "0.6584278", "0.65670997", "0.6535927", "0.65286124", "0.6499835", "0.64902693", "0.6468982", "0.6442969", "0.6440142", "0.64186215", "0.6414648", "0.63990545", "0.63967943", "0.63954806", "0.63931125", "0.63912", "0.6384446", "0.6380315", "0.6370143", "0.6365546", "0.6353479", "0.6350551", "0.6348279", "0.63417715", "0.6336922", "0.63282657", "0.63280237", "0.6309591", "0.6305036", "0.6281962", "0.62764686", "0.6270118", "0.6262001", "0.62427044", "0.62181115", "0.62172157", "0.62109315", "0.62041765", "0.620353", "0.6197901", "0.6197896", "0.61966103", "0.61957175", "0.61930525", "0.61891854", "0.61863786", "0.6173062", "0.6159828", "0.61591524", "0.615415", "0.6135753", "0.61261374", "0.6121126", "0.61124367", "0.61070603", "0.6097635", "0.6096215", "0.609402", "0.6090812", "0.6080265", "0.6074987", "0.60692215", "0.606908", "0.6064908", "0.6062698", "0.60493886", "0.60475546", "0.60451436", "0.6040562", "0.6040187", "0.6033352", "0.6009676", "0.6002044", "0.5990129", "0.59860575", "0.5975434", "0.59681094", "0.5959189", "0.59551716", "0.5954305", "0.59509295", "0.59456503", "0.59400654", "0.5934425", "0.5928754", "0.5927391", "0.5926096" ]
0.69563955
1
Sets up the sandbox, but does not invoke it. This constructor sets up a sandbox with no security at all. The spawned process can do whatever it wants. To actually kick off the command, call the Init() method. If trap_sterr is true, then the sandbox catches the stderr output of the spawned program, otherwise the stderr output of the spawned program goes straight to the terminal.
public Sandbox(String command, boolean trapStderr) { childStdin = null; childStdout = null; childStderr = null; this.command = command; process = null; this.trapStderr = trapStderr; isAlive = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sandbox(String command) {\n\tchildStdin = null;\n\tchildStdout = null;\n\tchildStderr = null;\n\tthis.command = command;\n\tprocess = null;\n\tthis.trapStderr = true;\n\tisAlive = false;\t\n }", "public int Init() {\n\ttry {\n\t process = Runtime.getRuntime().exec(command);\n\t} catch (Exception e) {\n\t return 0;\n\t}\n\tif (process == null) {\n\t return 0;\n\t}\n\tchildStdin = new OutputStreamWatcher(process.getOutputStream());\n\tchildStdout = new InputStreamWatcher(process.getInputStream());\n\tchildStderr = new InputStreamWatcher(process.getErrorStream());\n\tchildStdin.start();\n\tchildStdout.start();\n\tchildStderr.start();\n\treturn 1;\n }", "public static void programStandardInit() {\r\n System.setSecurityManager(null);\r\n LoggingUtils.setupConsoleOnly();\r\n }", "public Shell() {\n commandNumber = 0;\n prevPID = -1;\n command = \"\";\n }", "FakeSandboxfsProcess(FileSystem fileSystem, PathFragment mountPoint) throws IOException {\n if (!fileSystem.getPath(mountPoint).exists()) {\n throw new IOException(\"Mount point \" + mountPoint + \" does not exist\");\n } else if (!fileSystem.getPath(mountPoint).isDirectory()) {\n throw new IOException(\"Mount point \" + mountPoint + \" is not a directory\");\n }\n\n this.fileSystem = fileSystem;\n this.mountPoint = mountPoint;\n }", "private void init() {\n LOGGER.info(\"Init piper ProcessBuilder\");\n String generalArgs = constructGeneralArgs();\n String specificArgs = getLaunchCommand();\n if (specificArgs == null) {\n ErrorManager.error(ERROR_GC);\n return;\n }\n ProcessBuilder pb = new ProcessBuilder(piperScript, generalArgs, specificArgs);\n try {\n // Set NW environment\n Map<String, String> env = getEnvironment(nw);\n\n addEnvironment(env, nw);\n\n pb.directory(new File(getPBWorkingDir()));\n pb.environment().putAll(env);\n pb.environment().remove(NIOTracer.LD_PRELOAD);\n pb.environment().remove(NIOTracer.EXTRAE_CONFIG_FILE);\n\n if (NIOTracer.isActivated()) {\n NIOTracer.emitEvent(Long.parseLong(NIOTracer.getHostID()), NIOTracer.getSyncType());\n }\n\n piper = pb.start();\n\n LOGGER.debug(\"Starting stdout/stderr gobblers ...\");\n try {\n piper.getOutputStream().close();\n } catch (IOException e) {\n // Stream closed\n }\n PrintStream out = ((ThreadPrintStream) System.out).getStream();\n PrintStream err = ((ThreadPrintStream) System.err).getStream();\n outputGobbler = new StreamGobbler(piper.getInputStream(), out, LOGGER);\n errorGobbler = new StreamGobbler(piper.getErrorStream(), err, LOGGER);\n outputGobbler.start();\n errorGobbler.start();\n } catch (IOException e) {\n ErrorManager.error(ERROR_PB, e);\n }\n\n // The ProcessBuilder is non-blocking but we block the thread for a short period of time to allow the\n // bash script to create the needed environment (pipes)\n try {\n Thread.sleep(PIPE_CREATION_TIME * size);\n } catch (InterruptedException e) {\n // No need to catch such exceptions\n }\n }", "private synchronized void startRuntimeIfNeeded() {\n if (childProcess != null) {\n return;\n }\n\n // If JSII_DEBUG is set, enable traces.\n final String jsiiDebug = System.getenv(\"JSII_DEBUG\");\n final boolean traceEnabled = jsiiDebug != null\n && !jsiiDebug.isEmpty()\n && !jsiiDebug.equalsIgnoreCase(\"false\")\n && !jsiiDebug.equalsIgnoreCase(\"0\");\n\n final List<String> jsiiRuntimeCommand = jsiiRuntimeCommand();\n if (traceEnabled) {\n System.err.println(\"jsii-runtime: \" + String.join(\" \", jsiiRuntimeCommand));\n }\n\n try {\n final ProcessBuilder pb = new ProcessBuilder()\n .command(jsiiRuntimeCommand)\n .redirectError(ProcessBuilder.Redirect.PIPE)\n .redirectOutput(ProcessBuilder.Redirect.PIPE)\n .redirectInput(ProcessBuilder.Redirect.PIPE);\n pb.environment().put(\"JSII_AGENT\", String.format(\"Java/%s\", System.getProperty(\"java.version\")));\n if (jsiiDebug != null) {\n pb.environment().put(\"JSII_DEBUG\", jsiiDebug);\n }\n\n this.childProcess = pb.start();\n\n this.stdin = new OutputStreamWriter(this.childProcess.getOutputStream(), StandardCharsets.UTF_8);\n this.stdout = new BufferedReader(new InputStreamReader(this.childProcess.getInputStream(), StandardCharsets.UTF_8));\n\n this.errorStreamSink = new ErrorStreamSink(this.childProcess.getErrorStream());\n this.errorStreamSink.start();\n } catch (final IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n\n this.shutdownHook = new Thread(this::terminate, \"Terminate jsii client\");\n Runtime.getRuntime().addShutdownHook(this.shutdownHook);\n\n handshake();\n\n this.client = new JsiiClient(this);\n }", "public Cli() {\r\n\t\tthis.retValue = 0;\r\n\t}", "private Shell() { }", "public IPCam()\n {\n debugUEH = new IPCamUncaughtExceptionHandler();\n Thread.setDefaultUncaughtExceptionHandler(debugUEH);\n }", "public boolean startProcess (Properties ctx, ProcessInfo pi, Trx trx);", "public static void main(String[] args) {\n\t\t\n\t\t/**\n\t\t * Implementation of Environment. Used for communication with user.\n\t\t * Implements Closeable because needs to close Scanner.\n\t\t * */\n\t\tclass MyEnvironment implements Environment, Closeable {\n\t\t\t\n\t\t\t/**\n\t\t\t * Used for scanning input of user.\n\t\t\t * */\n\t\t\tprivate Scanner scan;\n\t\t\t/**\n\t\t\t * Used for security check if scan closes.\n\t\t\t * */\n\t\t\tprivate boolean scanClosed;\n\t\t\t/**\n\t\t\t * multilineSymbol used for marking multilines\n\t\t\t * */\n\t\t\tprivate Character multilineSymbol;\n\t\t\t/**\n\t\t\t * promptSymbol is used for marking input line.\n\t\t\t * */\n\t\t\tprivate Character promptSymbol;\n\t\t\t/**\n\t\t\t * morelinesSymbol is used for marking more lines by user.\n\t\t\t * */\n\t\t\tprivate Character morelinesSymbol;\n\t\t\t/**\n\t\t\t * commands is used to pair commands' name with commands' object\n\t\t\t * */\n\t\t\tprivate SortedMap<String, ShellCommand> commands;\n\t\t\t/**\n\t\t\t * Contains current directory\n\t\t\t * */\n\t\t\tprivate Path currentDirectory;\n\t\t\t/**\n\t\t\t * Used for sharing data between commands\n\t\t\t * */\n\t\t\tprivate Map<String, Object> sharedData;\n\t\t\t\n\t\t\t/**\n\t\t\t * Default constructor. Sets all private variables to default.\n\t\t\t * */\n\t\t\tpublic MyEnvironment() {\n\t\t\t\tscan = new Scanner(System.in);\n\t\t\t\tscanClosed = false;\n\t\t\t\tmultilineSymbol = '|';\n\t\t\t\tpromptSymbol = '>';\n\t\t\t\tmorelinesSymbol = '\\\\';\n\t\t\t\tcommands = new TreeMap<>();\n\t\t\t\tcommands.put(\"cat\", new CatShellCommand());\n\t\t\t\tcommands.put(\"charsets\", new CharsetsShellCommand());\n\t\t\t\tcommands.put(\"copy\", new CopyShellCommand());\n\t\t\t\tcommands.put(\"exit\", new ExitShellCommand());\n\t\t\t\tcommands.put(\"hexdump\", new HexdumpShellCommand());\n\t\t\t\tcommands.put(\"ls\", new LsShellCommand());\n\t\t\t\tcommands.put(\"mkdir\", new MkdirShellCommand());\n\t\t\t\tcommands.put(\"tree\", new TreeShellCommand());\n\t\t\t\tcommands.put(\"symbol\", new SymbolShellCommand());\n\t\t\t\tcommands.put(\"help\", new HelpShellCommand());\n\t\t\t\tcommands.put(\"cd\", new CdShellCommand());\n\t\t\t\tcommands.put(\"pwd\", new PwdShellCommand());\n\t\t\t\tcommands.put(\"dropd\", new DropdShellCommand());\n\t\t\t\tcommands.put(\"pushd\", new PushdShellCommand());\n\t\t\t\tcommands.put(\"listd\", new ListdShellCommand());\n\t\t\t\tcommands.put(\"popd\", new PopdShellCommand());\n\t\t\t\tcommands.put(\"massrename\", new MassrenameShellCommand());\n\t\t\t\tcurrentDirectory = Paths.get(\".\");\n\t\t\t\tsharedData = new HashMap<>();\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Used for closing Scanner scan.\n\t\t\t * */\n\t\t\tpublic void close() {\n\t\t\t\tif(scanClosed == false) {\n\t\t\t\t\tscan.close();\n\t\t\t\t\tscanClosed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String readLine() throws ShellIOException {\n\t\t\t\tString line;\n\t\t\t\ttry {\n\t\t\t\t\tline = scan.nextLine();\n\t\t\t\t} catch (NoSuchElementException | IllegalStateException e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t\treturn line;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void write(String text) throws ShellIOException {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.print(text);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void writeln(String text) throws ShellIOException {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(text);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic SortedMap<String, ShellCommand> commands() {\n\t\t\t\treturn Collections.unmodifiableSortedMap(commands);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getMultilineSymbol() {\n\t\t\t\treturn multilineSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setMultilineSymbol(Character symbol) {\n\t\t\t\tmultilineSymbol = symbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getPromptSymbol() {\n\t\t\t\treturn promptSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setPromptSymbol(Character symbol) {\n\t\t\t\tpromptSymbol = symbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getMorelinesSymbol() {\n\t\t\t\treturn morelinesSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setMorelinesSymbol(Character symbol) {\n\t\t\t\tmorelinesSymbol = symbol;\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Path getCurrentDirectory() {\n\t\t\t\treturn currentDirectory.toAbsolutePath().normalize();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setCurrentDirectory(Path path) throws IOException{\n\t\t\t\tif(!path.toFile().isDirectory()) {\n\t\t\t\t\tthrow new IOException(\"No such directory.\");\n\t\t\t\t}\n\t\t\t\tcurrentDirectory = path.toAbsolutePath().normalize();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object getSharedData(String key) {\n\t\t\t\tif (key == null) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn sharedData.get(key);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setSharedData(String key, Object value) {\n\t\t\t\tif(key == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsharedData.put(key, value);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\ttry(MyEnvironment env = new MyEnvironment()) {\n\t\t\tShellStatus status = ShellStatus.CONTINUE;\n\t\t\tenv.writeln(\"Welcome to MyShell v 1.0\");\n\t\t\t\n\t\t\twhile(status != ShellStatus.TERMINATE) {\n\t\t\t\tenv.write(env.getPromptSymbol() + \" \");\n\t\t\t\tString l = readLineOrLines(env);\n\t\t\t\tint boundaryIndex = l.indexOf(' ') == -1 ? l.length() : l.indexOf(' ');\n\t\t\t\tString commandName = l.substring(0, boundaryIndex);\n\t\t\t\tString arguments = l.substring(boundaryIndex);\n\t\t\t\tShellCommand command = env.commands().get(commandName);\n\t\t\t\tif(command == null) {\n\t\t\t\t\tenv.writeln(\"Wrong command. Use 'help'.\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstatus = command.executeCommand(env, arguments);\n\t\t\t} \n\t\t} catch(ShellIOException e) {\n\t\t\t// Terminates shell.\n\t\t}\n\t\t\n\t}", "public SetEnvCommand() {\n }", "private synchronized void startRuntimeIfNeeded() {\n if (childProcess != null) {\n return;\n }\n\n // If JSII_DEBUG is set, enable traces.\n final String jsiiDebug = System.getenv(\"JSII_DEBUG\");\n final boolean traceEnabled = jsiiDebug != null\n && !jsiiDebug.isEmpty()\n && !jsiiDebug.equalsIgnoreCase(\"false\")\n && !jsiiDebug.equalsIgnoreCase(\"0\");\n\n // If JSII_RUNTIME is set, use it to find the jsii-server executable\n // otherwise, we default to \"jsii-runtime\" from PATH.\n final String jsiiRuntimeEnv = System.getenv(\"JSII_RUNTIME\");\n final List<String> jsiiRuntimeCommand = jsiiRuntimeEnv == null\n ? Arrays.asList(\"node\", BundledRuntime.extract(getClass()))\n : Collections.singletonList(jsiiRuntimeEnv);\n\n if (traceEnabled) {\n System.err.println(\"jsii-runtime: \" + String.join(\" \", jsiiRuntimeCommand));\n }\n\n try {\n final ProcessBuilder pb = new ProcessBuilder()\n .command(jsiiRuntimeCommand)\n .redirectError(ProcessBuilder.Redirect.PIPE)\n .redirectOutput(ProcessBuilder.Redirect.PIPE)\n .redirectInput(ProcessBuilder.Redirect.PIPE);\n pb.environment().put(\"JSII_AGENT\", String.format(\"Java/%s\", System.getProperty(\"java.version\")));\n if (jsiiDebug != null) {\n pb.environment().put(\"JSII_DEBUG\", jsiiDebug);\n }\n\n this.childProcess = pb.start();\n\n this.stdin = new OutputStreamWriter(this.childProcess.getOutputStream(), StandardCharsets.UTF_8);\n this.stdout = new BufferedReader(new InputStreamReader(this.childProcess.getInputStream(), StandardCharsets.UTF_8));\n\n this.errorStreamSink = new ErrorStreamSink(this.childProcess.getErrorStream());\n this.errorStreamSink.start();\n } catch (final IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n\n this.shutdownHook = new Thread(this::terminate, \"Terminate jsii client\");\n Runtime.getRuntime().addShutdownHook(this.shutdownHook);\n\n handshake();\n\n this.client = new JsiiClient(this);\n }", "private CommandLine() {\n\t}", "void execSetupContext(ExecProcess ctx);", "public VMProcess() \n\t{\n\t\tsuper();\n\t}", "@Test\n @AFSocketCapabilityRequirement(AFSocketCapability.CAPABILITY_FD_AS_REDIRECT)\n @ProcessUtilRequirement(canGetJavaCommandArguments = true)\n public void testForkedVMRedirectStdin() throws Exception {\n AFUNIXSocketAddress addr = AFUNIXSocketAddress.ofNewTempFile();\n try (AFUNIXServerSocket serverSocket = AFUNIXServerSocket.bindOn(addr);\n AFUNIXSocket clientConn = AFUNIXSocket.connectTo(addr);\n AFUNIXSocket serverConn = serverSocket.accept()) {\n assertTrue(addr.getFile().delete());\n\n ForkedVM vm = new ForkedVM(StdinSocketApp.class);\n vm.setRedirectInput(FileDescriptorCast.using(clientConn.getFileDescriptor()).as(\n Redirect.class));\n vm.setRedirectError(Redirect.INHERIT);\n // vm.setRedirectOutput(Redirect.INHERIT);\n Process p = vm.fork();\n try {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(serverConn\n .getInputStream(), StandardCharsets.UTF_8))) {\n assertEquals(\"Hello world\", br.readLine());\n String l;\n if ((l = br.readLine()) != null) {\n fail(\"Unexpected output: \" + l);\n }\n }\n assertTrue(p.waitFor(30, TimeUnit.SECONDS));\n assertEquals(0, p.exitValue());\n } finally {\n p.destroyForcibly();\n }\n }\n }", "public VMProcess() {\n\t\tsuper();\n\t}", "private int exec(UnixRuntime r, String[] argv, String[] envp) {\n for(int i=0;i<OPEN_MAX;i++) if(closeOnExec[i]) closeFD(i);\n r.fds = fds;\n r.closeOnExec = closeOnExec;\n // make sure this doesn't get messed with these since we didn't copy them\n fds = null;\n closeOnExec = null;\n \n r.gs = gs;\n r.sm = sm;\n r.cwd = cwd;\n r.pid = pid;\n r.parent = parent;\n r.start(argv,envp);\n \n state = EXECED;\n execedRuntime = r;\n \n return 0; \n }", "public MyEnvironment() {\n\t\t\t\tscan = new Scanner(System.in);\n\t\t\t\tscanClosed = false;\n\t\t\t\tmultilineSymbol = '|';\n\t\t\t\tpromptSymbol = '>';\n\t\t\t\tmorelinesSymbol = '\\\\';\n\t\t\t\tcommands = new TreeMap<>();\n\t\t\t\tcommands.put(\"cat\", new CatShellCommand());\n\t\t\t\tcommands.put(\"charsets\", new CharsetsShellCommand());\n\t\t\t\tcommands.put(\"copy\", new CopyShellCommand());\n\t\t\t\tcommands.put(\"exit\", new ExitShellCommand());\n\t\t\t\tcommands.put(\"hexdump\", new HexdumpShellCommand());\n\t\t\t\tcommands.put(\"ls\", new LsShellCommand());\n\t\t\t\tcommands.put(\"mkdir\", new MkdirShellCommand());\n\t\t\t\tcommands.put(\"tree\", new TreeShellCommand());\n\t\t\t\tcommands.put(\"symbol\", new SymbolShellCommand());\n\t\t\t\tcommands.put(\"help\", new HelpShellCommand());\n\t\t\t\tcommands.put(\"cd\", new CdShellCommand());\n\t\t\t\tcommands.put(\"pwd\", new PwdShellCommand());\n\t\t\t\tcommands.put(\"dropd\", new DropdShellCommand());\n\t\t\t\tcommands.put(\"pushd\", new PushdShellCommand());\n\t\t\t\tcommands.put(\"listd\", new ListdShellCommand());\n\t\t\t\tcommands.put(\"popd\", new PopdShellCommand());\n\t\t\t\tcommands.put(\"massrename\", new MassrenameShellCommand());\n\t\t\t\tcurrentDirectory = Paths.get(\".\");\n\t\t\t\tsharedData = new HashMap<>();\n\t\t\t}", "public Script() {\n\n fs = System.getProperty(\"file.separator\");\n ps = System.getProperty(\"path.separator\");\n\n try {\n env = new Environment();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void run() {\n\t\t\t\tString command = \"psexec -u ACCUSYSARGBSAS\\\\martin.zaragoza -p Marzo2015 D:\\\\Temp\\\\testScripts\\\\a.exe a\";\n\t\t\t\tProcess process;\n\t\t\t\ttry {\n\t\t\t\t\tprocess = Runtime.getRuntime().exec(command);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tint pid = getPid(process);\n\t\t\t\t\tSystem.out.println(\"pid=\" + pid);\n\t\t\t\t\tprintStdout(process.getInputStream());\n\t\t\t\t\tThread.sleep(500);\n\n\t\t\t\t\tProcess exec = Runtime.getRuntime().exec(\"echo %errorlevel%\");\n\t\t\t\t\tprintStdout(exec.getInputStream());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "private void startStreams() {\n InputStream inputStream = process.getInputStream();\n bufferedInputStream = new BufferedReader(new InputStreamReader(inputStream));\n InputStream errorStream = process.getErrorStream();\n bufferedErrorStream = new BufferedReader(new InputStreamReader(errorStream));\n }", "public Process() {\n\t\tthis(null);\n\t}", "static final void initSystemErr() /* hard-coded method signature */\n {\n uncaughtHandler = new UncaughtHandler();\n if (mainVMThread == null) /* hack */\n {\n jniExceptionDescribe0X(new Throwable()); /* hack */\n destroyJavaVM0X(null, 0); /* hack */\n }\n }", "public SyscallException() {\n\t\tsuper();\n\t}", "public void sandbox(boolean sandbox) {\n this.sandbox = sandbox;\n }", "public static Process exec(\n String cmd,\n @SuppressWarnings(\"rawtypes\") Map envVars,\n boolean copyStdOutAndStdErrToParentProcess) throws IOException\n {\n String[] envVarsArr = getEnvVarArray(envVars);\n\n Process p = Runtime.getRuntime().exec(cmd, envVarsArr);\n\n if (copyStdOutAndStdErrToParentProcess)\n {\n pipe(p);\n }\n\n return p;\n }", "public ShellProcess(String sTag, String command, Shell shell) {\n\t\tmStag = sTag;\n\t\tmCommand = command;\n\t\tmShell = shell;\n\t\tmTag = -1;\n\t\tmShouldStop = false;\n\t}", "public Process start() throws IOException, InterruptedException {\n\t\t\n\t\tboolean isRunning = this.isRunning();\n\t\t\n\t\t// Early termination ---------------------------------------------------\n\t\t\n\t\tif (isRunning && this.isManagedExternally) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// Actually starts it --------------------------------------------------\n\t\t\n\t\tif (!isRunning) {\n\t\t\t// Launches the process --------------------------------------------\n\n\t\t\tthis.processRunner.run();\n\n\t\t\t// Polling to check the backend is fully set up --------------------\n\n\t\t\tboolean started = false;\n\t\t\tint time = 0;\n\t\t\twhile (!started && (time < Backend.POLLING_TIME_OUT)) {\n\t\t\t\ttry {\n\t\t\t\t\tHTTP.release(this.http.get(this.ping));\n\t\t\t\t\tstarted = true;\n\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\tThread.sleep(Backend.POLLING_SLEEP_TIME);\n\t\t\t\t\ttime += Backend.POLLING_SLEEP_TIME;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// Return ----------------------------------------------------------\n\n\t\treturn this.processRunner.getProcess();\n\t}", "public void testExecCommand() throws Exception {\n PKey hostKey = PKey.readPrivateKeyFromStream(new FileInputStream(\n \"test/test_rsa.key\"), null);\n PKey publicHostKey = PKey.createFromBase64(hostKey.getBase64());\n mTS.addServerKey(hostKey);\n final FakeServer server = new FakeServer();\n\n final Event sync = new Event();\n new Thread(new Runnable() {\n public void run() {\n try {\n mTS.start(server, 15000);\n sync.set();\n } catch (IOException x) {}\n }\n }).start();\n\n mTC.start(publicHostKey, 15000);\n mTC.authPassword(\"slowdive\", \"pygmalion\", 15000);\n\n sync.waitFor(5000);\n assertTrue(sync.isSet());\n assertTrue(mTS.isActive());\n\n Channel chan = mTC.openSession(5000);\n Channel schan = mTS.accept(5000);\n try {\n chan.execCommand(\"no\", 5000);\n fail(\"expected exception\");\n } catch (IOException x) {\n // pass\n }\n chan.close();\n schan.close();\n\n chan = mTC.openSession(5000);\n chan.execCommand(\"yes\", 5000);\n schan = mTS.accept(5000);\n\n schan.getOutputStream().write(\"Hello there.\\n\".getBytes());\n schan.getStderrOutputStream().write(\"This is on stderr.\\n\".getBytes());\n schan.close();\n\n BufferedReader r = new BufferedReader(new InputStreamReader(\n chan.getInputStream()));\n assertEquals(\"Hello there.\", r.readLine());\n assertEquals(null, r.readLine());\n r = new BufferedReader(new InputStreamReader(\n chan.getStderrInputStream()));\n assertEquals(\"This is on stderr.\", r.readLine());\n assertEquals(null, r.readLine());\n chan.close();\n\n // now try it with combined stdout/stderr\n chan = mTC.openSession(5000);\n chan.execCommand(\"yes\", 5000);\n schan = mTS.accept(5000);\n schan.getOutputStream().write(\"Hello there\\n\".getBytes());\n schan.getStderrOutputStream().write(\"This is on stderr.\\n\".getBytes());\n schan.close();\n\n chan.setCombineStderr(true);\n r = new BufferedReader(new InputStreamReader(chan.getInputStream()));\n assertEquals(\"Hello there\", r.readLine());\n assertEquals(\"This is on stderr.\", r.readLine());\n assertEquals(null, r.readLine());\n chan.close();\n }", "public Launcher() {\n this((java.lang.System[]) null);\n Launcher$$init$S();\n }", "public ProcessSequence(ProcessCreator[] pcs) {\n _creators = pcs;\n _processes = new Process[_creators.length];\n for(int i=0; i<_processes.length; ++i) { _processes[i] = null; }\n _combinedInputStream = new PipedInputStream();\n try {\n _combinedStdOutStream = new PipedOutputStream(_combinedInputStream);\n _combinedInputStream.connect(_combinedStdOutStream);\n }\n catch(IOException e) { /* ignore, no output if this goes wrong */ }\n _combinedErrorStream = new PipedInputStream();\n try {\n _combinedStdErrStream = new PipedOutputStream(_combinedErrorStream);\n _combinedErrorStream.connect(_combinedStdErrStream);\n }\n catch(IOException e) { /* ignore, no output if this goes wrong */ }\n \n _deathThread = new Thread(new Runnable() {\n public void run() {\n GeneralProcessCreator.LOG.log(\"ProcessSequence._deathThread running\");\n boolean interrupted = false;\n // wait for the completion of each of the subprocesses\n while(_index<_processes.length) {\n GeneralProcessCreator.LOG.log(\"Waiting for process \"+_index);\n do {\n interrupted = false;\n try {\n _processes[_index].waitFor();\n }\n catch(InterruptedException e) { interrupted = true; }\n } while(interrupted);\n GeneralProcessCreator.LOG.log(\"Process \"+_index+\" terminated\");\n // a process has just terminated\n if (_index<_processes.length-1) {\n // increase index;\n ++_index;\n try {\n _processes[_index] = _creators[_index].start();\n GeneralProcessCreator.LOG.log(\"Process \"+_index+\" started\");\n connectProcess(_processes[_index]);\n }\n catch(IOException e) {\n // could not start the process, record error but continue\n // TODO: find a way to record the error in the ExternalProcessPanel\n// DrJavaErrorHandler.record(e);\n _processes[_index] = DUMMY_PROCESS;\n }\n }\n else {\n ++_index;\n GeneralProcessCreator.LOG.log(\"Closing StdOut and StdErr streams.\");\n try {\n stopAllRedirectors();\n _combinedStdOutStream.flush();\n _combinedStdOutStream.close();\n _combinedStdErrStream.flush();\n _combinedStdErrStream.close();\n }\n catch(IOException e) { /* ignore, just don't close the streams */ }\n }\n }\n }\n },\"Process Sequence Death Thread\");\n _index = 0;\n try {\n _processes[_index] = _creators[_index].start();\n }\n catch(IOException e) {\n // could not start the process, record error but continue\n // TODO: find a way to record the error in the ExternalProcessPanel\n _processes[_index] = DUMMY_PROCESS;\n// DrJavaErrorHandler.record(e);\n }\n connectProcess(_processes[_index]);\n _deathThread.start();\n }", "public void initTransport() {\n JDE.signal(procID, MESSAGE, \"Debugger connected to standard I/O socket.\", QUOTE);\n\n final Process process = m_debugger.getVM().process();\n standardInputProcessor = new StandardInputProcessor(process.getOutputStream());\n standardInputProcessor.start();\n\n standardOutputWriter = new StandardOutputWriter(m_sioSocket);\n standardOutputWriter.println(\"*** Process Standard I/O ***\");\n\n standardOutputProcessor = new StandardOutputProcessor(process.getInputStream());\n standardOutputProcessor.start();\n\n standardErrorProcessor = new StandardErrorProcessor(process.getErrorStream());\n standardErrorProcessor.start();\n\n }", "public void run(String[] cmdStrings) throws Exception {\n StringBuffer stdoutBuffer = new StringBuffer();\n StringBuffer stderrBuffer = new StringBuffer();\n String CR = System.getProperty(\"line.separator\");\n int subprocessStatus = 1;\n\n System.out.print(CR + \"runCommand method about to execute: \");\n for (int iNdx = 0; iNdx < cmdStrings.length; iNdx++) {\n System.out.print(\" \");\n System.out.print(cmdStrings[iNdx]);\n }\n System.out.println(CR);\n\n try {\n Process process = Runtime.getRuntime().\n exec(VMConnection.insertDebuggeeVMOptions(cmdStrings));\n int BUFFERSIZE = 4096;\n /*\n * Gather up the output of the subprocess using non-blocking\n * reads so we can get both the subprocess stdout and the\n * subprocess stderr without overfilling any buffers.\n */\n BufferedInputStream is =\n new BufferedInputStream(process.getInputStream());\n int isLen = 0;\n byte[] isBuf = new byte[BUFFERSIZE];\n\n BufferedInputStream es =\n new BufferedInputStream(process.getErrorStream());\n int esLen = 0;\n byte[] esBuf = new byte[BUFFERSIZE];\n\n do {\n isLen = is.read(isBuf);\n if (isLen > 0) {\n stdoutBuffer.append(new String(isBuf, 0, isLen));\n }\n esLen = es.read(esBuf);\n if (esLen > 0) {\n stderrBuffer.append(new String(esBuf, 0, esLen));\n }\n } while ((isLen > -1) || (esLen > -1));\n\n try {\n process.waitFor();\n subprocessStatus = process.exitValue();\n process = null;\n } catch(java.lang.InterruptedException e) {\n System.err.println(\"InterruptedException: \" + e);\n throw new Exception(\"Test failed: process interrupted\");\n }\n\n } catch(IOException ex) {\n System.err.println(\"IO error: \" + ex);\n throw new Exception(\"Test failed: IO error running process\");\n }\n\n System.out.println(CR + \"--- Return code was: \" +\n CR + Integer.toString(subprocessStatus));\n System.out.println(CR + \"--- Return stdout was: \" +\n CR + stdoutBuffer.toString());\n System.out.println(CR + \"--- Return stderr was: \" +\n CR + stderrBuffer.toString());\n\n }", "public static Process exec(\n String cmd,\n boolean copyStdOutAndStdErrToParentProcess) throws IOException\n {\n return exec(cmd, null, copyStdOutAndStdErrToParentProcess);\n }", "public void spawnShell(Interpreter interpreter, String[] args) {\r\n\t\tif (args.length == 1 && args[0].endsWith(\".rut\")) {\r\n\r\n\t\t\tinterpreter.setSuppressOutputSignal(true);\r\n\t\t\tthis.runScriptShell(interpreter, args[0]);\r\n\r\n\t\t}\r\n\t\t\r\n\t\t/* Read from command line argument / stdin */\r\n\t\telse if (args.length > 0 && !args[0].equals(\"debug\")) {\r\n\r\n\t\t\tthis.runArgumentShell(interpreter, args);\r\n\r\n\t\t}\r\n\t\t\r\n\t\t/* Read from interactive shell with debugging output */\r\n\t\telse if (args.length == 1 && args[0].equals(\"debug\")) {\r\n\t\t\t\r\n\t\t\tthis.runInteractiveShell(interpreter, \"debug\");\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/* Read from interactive shell */\r\n\t\telse {\r\n\r\n\t\t\tthis.runInteractiveShell(interpreter);\r\n\r\n\t\t}\r\n\r\n\t}", "public static void initialize() {\n // check to see if the name of an alternate configuration\n // file has been specified. This can be done, for example,\n // java -Dfilesys.conf=myfile.txt program-name parameter ...\n String propertyFileName = System.getProperty(\"filesys.conf\");\n if (propertyFileName == null)\n propertyFileName = \"filesys.conf\";\n Properties properties = new Properties();\n try {\n FileInputStream in = new FileInputStream(propertyFileName);\n properties.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n System.err.println(PROGRAM_NAME + \": error opening properties file\");\n System.exit(EXIT_FAILURE);\n } catch (IOException e) {\n System.err.println(PROGRAM_NAME + \": error reading properties file\");\n System.exit(EXIT_FAILURE);\n }\n\n // get the root file system properties\n String rootFileSystemFilename =\n properties.getProperty(\"filesystem.root.filename\", \"filesys.dat\");\n String rootFileSystemMode =\n properties.getProperty(\"filesystem.root.mode\", \"rw\");\n\n // get the current process properties\n short uid = 1;\n try {\n uid = Short.parseShort(properties.getProperty(\"process.uid\", \"1\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.uid in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n short gid = 1;\n try {\n gid = Short.parseShort(properties.getProperty(\"process.gid\", \"1\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.gid in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n short umask = 0002;\n try {\n umask = Short.parseShort(\n properties.getProperty(\"process.umask\", \"002\"), 8);\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.umask in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n String dir = \"/root\";\n dir = properties.getProperty(\"process.dir\", \"/root\");\n\n try {\n MAX_OPEN_FILES = Integer.parseInt(properties.getProperty(\n \"kernel.max_open_files\", \"20\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property kernel.max_open_files in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n try {\n ProcessContext.MAX_OPEN_FILES = Integer.parseInt(\n properties.getProperty(\"process.max_open_files\", \"10\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.max_open_files in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n // create open file array\n openFiles = new FileDescriptor[MAX_OPEN_FILES];\n\n // create the first process\n process = new ProcessContext(uid, gid, dir, umask);\n processCount++;\n\n // open the root file system\n try {\n openFileSystems[ROOT_FILE_SYSTEM] = new FileSystem(\n rootFileSystemFilename, rootFileSystemMode);\n } catch (IOException e) {\n System.err.println(PROGRAM_NAME + \": unable to open root file system\");\n System.exit(EXIT_FAILURE);\n }\n\n }", "ProcessExecutor cloneWithOutputStreams(PrintStream stdOutStream, PrintStream stdErrStream);", "Subprocess createSubprocess();", "public int start( String[] cmdLine )\n {\n int exitCode = 0;\n Console console = null;\n\n if (null == System.getSecurityManager())\n {\n System.setSecurityManager( new RMISecurityManager() );\n }\n\n // Load the hsp properties.\n Property.loadProperties( cmdLine );\n Property.load( TuiConsole.class );\n\n // See if the command line has the console.\n String registryHost = System.getProperty( Console.JICOS_CONSOLE_HOST );\n int registryPort = RegistrationManager.PORT;\n boolean showHelp = false;\n //\n switch (cmdLine.length)\n {\n case 1:\n if (\"-help\".equals( cmdLine[0] ))\n {\n showHelp = true;\n }\n else\n {\n loadStartupConfig( cmdLine[0] );\n }\n break;\n\n case 0:\n break;\n\n default:\n showHelp = true;\n exitCode = 1;\n break;\n }\n\n if (showHelp)\n {\n System.err.println( \"Usage: <java> TuiConsole [config.xml]\" );\n if( 0 != exitCode )\n {\n System.exit( exitCode );\n }\n }\n\n \n // Startup files.\n String fileName = null;\n String homePrefix = \"/.jicos/\";\n String localPrefix = \".\";\n String suffix = \".conf\";\n \n if( System.getProperty( \"os.name\" ).toLowerCase().startsWith( \"window\" ) )\n {\n homePrefix = \"Application Data/Jicos/\";\n localPrefix = \"\";\n }\n \n // See if there is a global startupfile.\n if( null != (fileName = System.getProperty( \"user.home\" )) )\n {\n fileName += homePrefix + \"tuiconsole\" + suffix;\n doStartup( new File( fileName ) );\n }\n \n // See if there is a start-up file in the local directory\n fileName = \"./\" + localPrefix + \"tuiconsole\" + suffix;\n doStartup( new File( fileName ) );\n \n mainLoop();\n return (CMD_Error);\n }", "public final void begin() {\n Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {\n public void uncaughtException(Thread t, Throwable e) {\n\t\t\t\t/*\n\t\t\t\t * Thread interruptions will always throw a thread death exception, and since thread.stop()\n\t\t\t\t * is called from another thread, this default exception handler always receives the throwable, even if thread.stop is surrounded\n\t\t\t\t * by a try-catch.\n\t\t\t\t * TLDR; dont print em...\n\t\t\t\t */\n if (e instanceof ThreadDeath) return;\n log(Level.SEVERE, e.getClass().getSimpleName() + \" caught in thread \" + t.getName() + \": \" + e.getMessage());\n for (StackTraceElement ste : e.getStackTrace()) {\n log(Level.SEVERE, ste.toString());\n }\n }\n });\n\t\t/*\n\t\t * Load the random event pool\n\t\t */\n if (!(this instanceof RandomEvent)) {\n context.randomEvents = new RandomEventPool(context);\n }\n\t\t\n\t\t/*\n\t\t * Check if the script wants to execute\n\t\t */\n boolean initialized = false;\n try {\n initialized = init();\n } catch (Exception exc) {\n //ignore it\n }\n if (!initialized) {\n log(Level.WARNING, \"Script \" + manifest.name() + \" refused to start.\");\n context.getBot().popScript();\n }\n }", "public NativeExecutable(String command) {\n this.command = command;\n }", "Process createProcess();", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t}", "public void testInvokeShell() throws Exception {\n PKey hostKey = PKey.readPrivateKeyFromStream(new FileInputStream(\n \"test/test_rsa.key\"), null);\n PKey publicHostKey = PKey.createFromBase64(hostKey.getBase64());\n mTS.addServerKey(hostKey);\n final FakeServer server = new FakeServer();\n\n final Event sync = new Event();\n new Thread(new Runnable() {\n public void run() {\n try {\n mTS.start(server, 15000);\n sync.set();\n } catch (IOException x) {}\n }\n }).start();\n\n mTC.start(publicHostKey, 15000);\n mTC.authPassword(\"slowdive\", \"pygmalion\", 15000);\n\n sync.waitFor(5000);\n assertTrue(sync.isSet());\n assertTrue(mTS.isActive());\n\n Channel chan = mTC.openSession(5000);\n chan.invokeShell(5000);\n Channel schan = mTS.accept(5000);\n chan.getOutputStream().write(\"communist j. cat\\n\".getBytes());\n assertFalse(chan.isClosed());\n chan.close();\n assertTrue(chan.isClosed());\n\n BufferedReader r = new BufferedReader(new InputStreamReader(\n schan.getInputStream()));\n assertEquals(\"communist j. cat\", r.readLine());\n schan.close();\n }", "public void startExpectSSH() throws JSchException, IOException {\n\t channel = session.openChannel(\"shell\");\n\t expect = new Expect(channel.getInputStream(),channel.getOutputStream());\n\t channel.connect();\t\n\t}", "private void runShellCommand(String shellCommand, MultiBitShell shell, ByteArrayOutputStream result, Message expectedMessage) throws IOException {\n result.reset();\n shell.processLine(shellCommand);\n assertTrue(result.toString().startsWith(MessageFormatter.expectedStartOfOutput(expectedMessage)));\n }", "public InvalidProcessException() {}", "public void initializeSandbox() {\n ImageDecoderJni.get().initializePhotoPickerSandbox();\n mSandboxInitialized = true;\n }", "@Test\n public void testConstructor() {\n interpreterInstance.interpret(\"cd \");\n Command testCommand = interpreterInstance.getCommand();\n List<String> testArguments = interpreterInstance.getArguments();\n assertEquals(\"driver.ChangeDirectory\", testCommand.getClass().getName());\n assertTrue(testArguments.isEmpty());\n }", "public static void main( String[] cmdLine ) throws MalformedURLException,\n NotBoundException, RemoteException\n {\n TuiConsole tuiConsole = new TuiConsole();\n System.exit( tuiConsole.start( cmdLine ) );\n }", "public Process() {\n PC.MakeProcess();\n\n }", "public void start() throws StunException {\n stunStack = StunStack.getInstance();\n stunStack.start();\n\n stunProvider = stunStack.getProvider();\n\n\n started = true;\n }", "public int runProcess(String commandline, String startMsg, String primer) {\n BufferedReader in;\n BufferedReader err;\n PrintStream out;\n boolean done;\n if (commandline == null) {\n return -2;\n }\n// if(startMsg==null){\n// return -3;\n// }\n if (msgs == null) {\n // create one for our local use if you won't give us one\n msgs = new TextList(100, 10);\n }\n if (startMsg != null) {\n dbg.VERBOSE(startMsg);\n }\n\n // dbg.Message(new TextList(\"Executing: \" + commandline, 78, false).asParagraph(\" \", null));\n commandline = commandline.trim();\n try {\n Process process = Runtime.getRuntime().exec(commandline);\n\n in = new BufferedReader(new InputStreamReader(process.getInputStream()));\n err = new BufferedReader(new InputStreamReader(process.getErrorStream()));\n out = new PrintStream(process.getOutputStream());\n boolean kill = (timeoutSeconds > 0);\n if (displayUpdateSeconds == 0) {\n displayUpdateSeconds = 1;\n }\n int numDots = (kill ? ((timeoutSeconds * 1000) / (displayUpdateSeconds * 1000)) : 20);\n done = false;\n // ------ testing !!!!!!!\n if (StringX.NonTrivial(primer)) {\n try {\n out.write(primer.getBytes());\n out.flush();\n } catch (Exception ex) {\n dbg.Caught(ex);\n }\n }\n\n if ((timeoutSeconds < 1) && (displayUpdateSeconds < 1)) {\n // don't watch the process; trust that it will finish\n try {\n process.waitFor();\n } catch (InterruptedException ie) {\n Thread.interrupted(); // clears interrupted bits\n // who cares; just carry on\n }\n } else {\n int counter = numDots;\n int lastSize = 0;\n while (!done && !(kill && !(counter > 0))) {\n // these have to be run regardless of whether it is verbose or not!!!! (for getmacid)\n pStream(in, msgs);\n pStream(err, msgs);\n if (verbose) {\n while (msgs.size() > lastSize) {\n dbg.VERBOSE(msgs.itemAt(lastSize++));\n }\n }\n out.println(\"\"); // slap?\n\n ThreadX.sleepFor(Ticks.forSeconds(displayUpdateSeconds));\n\n try {\n process.exitValue(); // throws if process is not complete; how I tell it isn't\n done = true;\n } catch (IllegalThreadStateException ignored) {\n }\n counter--;\n if (!done && !kill && (counter == 0)) {\n counter = numDots;// cycle around\n }\n }\n }\n pStream(in, msgs); // these must be used always for getmacid\n pStream(err, msgs);\n\n if (!done) {\n process.destroy();\n dbg.ERROR(kill ? \"Process took too long and was terminated!\" : \"User killed process.\");\n }\n\n int x = -1;\n try {\n x = done ? process.exitValue() : -1;\n } catch (IllegalThreadStateException itse2) {\n // who cares\n }\n if (x != 0) {\n dbg.WARNING(\"Process exited with value \" + x);\n }\n return x;\n } catch (Exception ioe) {\n dbg.ERROR(\"Could not start process [\" + commandline + \"] due to exception:\");\n dbg.Caught(ioe);\n // just quit\n return -1;\n }\n }", "private Main()\n {{\n System.err.println ( \"Internal error: \"+\n\t \"unexpected call to default constructor for Main.\" );\n System.exit(-127);\n }}", "@Override\n @SuppressFBWarnings(\"DM_EXIT\")\n protected void initializeBrowserProcess() {\n try {\n LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER)\n .ensureInitialized(getApplicationContext());\n } catch (ProcessInitException e) {\n Log.e(TAG, \"Cannot load content_browsertests.\", e);\n System.exit(-1);\n }\n BrowserStartupController.get(getApplicationContext(), LibraryProcessType.PROCESS_BROWSER)\n .initChromiumBrowserProcessForTests();\n\n setContentView(getTestActivityViewId());\n mShellManager = (ShellManager) findViewById(getShellManagerViewId());\n mWindowAndroid = new ActivityWindowAndroid(this);\n mShellManager.setWindow(mWindowAndroid);\n\n Window wind = this.getWindow();\n wind.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);\n wind.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);\n wind.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);\n }", "public GroovyShellService() {\n \t\tthis(6789);\n \t}", "public RuntimeContext(RuntimeManagerImpl rtMgr)\n {\n super(rtMgr.getJNIEasy()); \n \n this.rtMgr = rtMgr;\n }", "public JshServer() throws RemoteException\n\t{\n\t\tsuper();\n\t\tthis.setProperty( AbstractClient.PROMPT_KEY, \"jsh$ \" );\n\t}", "public CLI()\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = \"\";\r\n\t\t//this.exitStr = exitStr;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}", "public void enterPrivilegedMode() throws Exception{\n\t if(this.getConnectionType().equals(ConnectionType.SSH)){\n\t if(!(session.isConnected())){\n\t\t log.fatal(\"X---------FatalErrorOccured-----------X\\n\\n\");\n\t\t log.error(\"Can't enter the privileged mode without connecting to the device!!!\");\n\t\t log.info(\"Call connectSSH() first and then try again.\");\n\t\t Exception e =new Exception(\"NoConnectionHasBeenMade\");\n\t\t throw e;\n\t }\n\t else{\n\t\t log.info(\"Trying to enter the privileged mode ... \");\n\t\t this.startExpectSSH();\n\t\t String command=setCommand(\"PRIVILEGED_MODE\", this.deviceType.toString());\n\t\t log.info(\"Command \\\"\"+command+\"\\\" is going to be executed\");\n\t\t expect.expect(TIME_OUT,Pattern.compile(\".*>$\"));\n\t\t log.info(\"The following was happening on the terminal screen\\n\\t\\t\");\n\t\t log.info(expect.before);\n\t\t expect.send(command+\"\\n\");\n\t\t expect.expect(TIME_OUT,\"Password\");\n\t\t expect.send(this.deviceEnPassword+\"\\n\");\n\t\t log.info(\"Command \\\"\"+command+\"\\\" was sent. Waiting for response ... \");\n\t\t log.info(\"---The command executed was \\n\"+expect.before);\n\t\t expect.expect(TIME_OUT,Pattern.compile(\".*#$\"));\n\t\t log.info(\"----After execution of command \\n\"+expect.before);\n\t }\n\t }\n\t else{\n\t\t if(!(this.telnetClient.isConnected())){\n\t\t\t log.fatal(\"X---------FatalErrorOccured-----------X\\n\\n\");\n\t\t\t log.error(\"Can't enter the privileged mode without connecting to the device!!!\");\n\t\t\t log.info(\"Call connectTelnet() first and then try again.\");\n\t\t\t Exception e =new Exception(\"NoConnectionHasBeenMade\");\n\t\t\t throw e;\n\t\t }\n\t\t else{\n\t\t\t log.info(\"Trying to enter the privileged mode ... \");\n\t\t\t this.startExpectTelnet();\n\t\t\t String command=setCommand(\"PRIVILEGED_MODE\", this.getDeviceType().toString());\n\t\t\t log.info(\"Command \\\"\"+command+\"\\\" is going to be executed\");\n\t\t\t expect.expect(TIME_OUT,Pattern.compile(\".*>$\"));\n\t\t\t log.info(\"The following was happening on the terminal screen\\n\\t\\t\");\n\t\t\t log.info(expect.before);\n\t\t\t expect.send(command+\"\\n\");\n\t\t\t expect.expect(TIME_OUT,\"Password\");\n\t\t\t expect.send(this.deviceEnPassword+\"\\n\");\n\t\t\t log.info(\"Command \\\"\"+command+\"\\\" was sent. Waiting for response ... \");\n\t\t\t log.info(\"---The command executed was \\n\"+expect.before);\n\t\t\t expect.expect(TIME_OUT,Pattern.compile(\".*#$\"));\n\t\t\t log.info(\"----After execution of command \\n\"+expect.before);\n\t\t }\n\t }\n }", "public abstract void initializeProcess();", "void setutxent();", "private void initialize() {\n if (!stopped.get()) {\n \tSystem.out.printf(\"Starting Red5 with args: %s\\n\", Arrays.toString(commandLineArgs));\n // start\n try {\n\t\t\t\tBootstrap.main(commandLineArgs);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n }", "private static SimpleProcessExecutor newSimpleProcessExecutor() {\n return new SimpleProcessExecutor(new TestProcessManagerFactory().newProcessManager());\n }", "public void run()\n\t{\n\t\tRuntime runtime = null;\n\t\tBufferedReader inputReader = null;\n\t\tBufferedReader errorReader = null;\n\t\tStringBuffer outputStringBuffer = null;\n\t\tStringBuffer errorStringBuffer = null;\n\t\tString s = null;\n\t\tboolean inputDone,errorDone;\n\n\t\truntime = Runtime.getRuntime();\n\t\texception = null;\n\t\tprocess = null;\n\t\toutputString = null;\n\t\terrorString = null;\n\t\ttry\n\t\t{\n\t\t// start process\n\t\t\tprocess = runtime.exec(commandString);\n\t\t// setup streams\n\t\t\toutputStringBuffer = new StringBuffer();\n\t\t\terrorStringBuffer = new StringBuffer();\n\t\t\tinputReader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\t\t\terrorReader = new BufferedReader(new InputStreamReader(process.getErrorStream()));\n\t\t\tinputDone = false;\n\t\t\terrorDone = false;\n\t\t\twhile((inputDone == false)||(errorDone == false))\n\t\t\t{\n\t\t\t\tif(!inputDone)\n\t\t\t\t{\n\t\t\t\t\ts = inputReader.readLine();\n\t\t\t\t\tif(s != null)\n\t\t\t\t\t{\n\t\t\t\t\t\toutputStringBuffer.append(s);\n\t\t\t\t\t\toutputStringBuffer.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tinputDone = true;\n\t\t\t\t}\n\t\t\t\tif(!errorDone)\n\t\t\t\t{\n\t\t\t\t\ts = errorReader.readLine();\n\t\t\t\t\tif(s != null)\n\t\t\t\t\t{\n\t\t\t\t\t\terrorStringBuffer.append(s);\n\t\t\t\t\t\terrorStringBuffer.append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\terrorDone = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\toutputString = outputStringBuffer.toString();\n\t\t\terrorString = errorStringBuffer.toString();\n\t\t// wait for process termination\n\t\t\tprocess.waitFor();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\texception = e;\n\t\t\treturn;\n\t\t}\n\t\tcatch(InterruptedException e)\n\t\t{\n\t\t\texception = e;\n\t\t\treturn;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(inputReader != null)\n\t\t\t\t\tinputReader.close();\n\t\t\t\tif(errorReader != null)\n\t\t\t\t\terrorReader.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {};\n\t\t}\n\t}", "abstract void initiateConsole();", "public ManagedProcess(final String executable, final Process process) {\n myProcess = process;\n myOutput = new StringBuilder();\n\n myLock = new ReentrantLock();\n myLogUpdated = myLock.newCondition();\n\n myReader = new BufferedReader(new InputStreamReader(\n myProcess.getInputStream()));\n\n new Thread(new OutputReader(), executable + \" Process Drain\").start();\n }", "public void start()\n {\n try\n {\n sshd.start();\n }\n catch (IOException e)\n {\n log.error(\"Unable to start ssdh.\", e);\n throw new RuntimeException(e);\n }\n }", "public void run() throws Exception {\n if (getLog().isDebugEnabled()) {\n getLog().debug(\"Launching JVM with command line: \" + String.join(\" \", args));\n }\n process = new ProcessBuilder(args)\n .inheritIO()\n .directory(workingDir)\n .start();\n //https://github.com/quarkusio/quarkus/issues/232\n Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {\n @Override\n public void run() {\n process.destroy();\n }\n }, \"Development Mode Shutdown Hook\"));\n }", "public SyscallException(Throwable cause) {\n\t\tsuper(cause);\n\t}", "public synchronized void start() throws IOException {\n if (isStarted()) {\n throw new IllegalStateException(\"The program has already been started and must be stopped before restarting\");\n }\n // Ensure that the project isn't running from a previous instance.\n runStop();\n Thread launcher = new Thread(() -> {\n try {\n final Shell gripShell = new Shell.Safe(details.createSSHShell());\n gripShell.exec(\"nohup \" + deploymentCommands.getJARLaunchCommand(coreJar.getName(), projectFile.getName()) + \" &\",\n new NullInputStream(0L),\n stdOut.get(),\n stdErr.get());\n } catch (IOException e) {\n throw new IllegalStateException(\"The program failed to start\", e);\n } finally {\n // This thread is done, shut it down.\n synchronized (this) {\n sshThread = Optional.empty();\n }\n eventBus.post(new StartedStoppedEvent(this));\n }\n }, \"SSH Monitor Thread\");\n launcher.setUncaughtExceptionHandler((thread, exception) -> {\n eventBus.post(new UnexpectedThrowableEvent(exception, \"Failed to start the remote instance of the application\"));\n try {\n runStop();\n } catch (IOException e) {\n eventBus.post(new UnexpectedThrowableEvent(e, \"Failed to stop the remote instance of the program\"));\n }\n });\n launcher.setDaemon(true);\n launcher.start();\n this.sshThread = Optional.of(launcher);\n eventBus.post(new StartedStoppedEvent(this));\n }", "public Test construct(org.apache.river.qa.harness.QAConfig sysConfig) throws Exception {\n\n // mandatory call to parent\n super.construct(sysConfig);\n\t\n // Announce where we are in the test\n logger.log(Level.FINE, \"AssocRenewalFailSetTest: In setup() method.\");\n\n // object from which test leases are obtained\n leaseProvider = new TestLeaseProvider(3);\n\n // capture the renewal time\n String property = \"org.apache.river.test.spec.renewalservice.renewGrant\";\n renewGrant = getConfig().getLongConfigVal(property, DEFAULT_RENEW_GRANT);\n\n // create an owner for the lease that will throw a definite exception\n String testName = \"AssocRenewalFailSetTest\";\n Exception except = new IllegalArgumentException(testName);\n failingOwner = new FailingOpCountingOwner(except, 0, renewGrant);\n\n // logs events as they arrive\n rrl = new RememberingRemoteListener(getExporter());\n\n // create lease renewal manager for wider use across implementations\n lrm = new LeaseRenewalManager(sysConfig.getConfiguration());\n return this;\n }", "public static JSqVM sq_open(int initialStackSize) throws JSquirrelException {\r\n\t\tlong handle = sq_open_native(initialStackSize);\r\n\t\tif (handle == 0)\r\n\t\t\tthrow new JSquirrelException(\"Could not create a new Squirrel VM.\");\r\n\t\treturn new JSqVM(handle);\r\n\t}", "public void instantiateCommand() throws SystemException {\r\n\t\t// Check the definitation.\r\n\t\tdefinitionCheck();\r\n\t\t\r\n\t\t// Create the fresh instance.\r\n\t\tcommandInstance = new ReadWriteableAttributes();\r\n\t}", "@Override\n protected void processRun() {\n try {\n if (helpOnly) helpOnly();\n else {\n if (hasPipedInput()) pipeVersion();\n else stdinVersion();\n }\n } catch (IOException e) {\n return; // Killed process\n }\n }", "@BeforeAll\n static void initClass() {\n // start the program\n server = MpSecurityClientMain.startTheServer();\n }", "System createSystem();", "public static boolean startApplication(String execName, String args, String startDir) {\n\r\n try {\r\n ProcessBuilder pb = new ProcessBuilder(execName, startDir, args);\r\n pb.directory(new File(startDir));\r\n Process p = pb.start();\r\n\r\n int rc = p.waitFor();\r\n System.out.println(\"rc is \" + rc);\r\n\r\n return true;\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n return false;\r\n } // endtry\r\n }", "protected void startProcess() {\n System.out.println(\"Process started\");\r\n }", "@Override\n public void execute(IO io, Context context) {\n try {\n Process process = Runtime.getRuntime().exec(createShellCommand());\n pipeStream(io.STDIN, process.getOutputStream());\n process.waitFor();\n pipeStream(process.getInputStream(), io.STDOUT);\n } catch (IOException e) {\n e.printStackTrace(new PrintStream(io.STDERR));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public RentRPCServer() {\n\t\tsuper(null, null);\n\t\t// mocking purpose\n\t}", "public UnitP(UnitP unitP, ErrorTypes errorType)\n {\n \tthis(unitP, errorType, ExceptionHandlingTypes.NeverTriggerException);\n }", "@BeforeClass\n\tpublic static void setNoExitOption ()\n\t{\n\t\tSystem.setProperty ( App.NO_EXIT_PROP, \"true\" );\n\t}", "public Process execAgentServer(short sid,\n File dir,\n String[] jvmargs,\n String className,\n String[] args) throws Exception {\n return scadmin.execAgentServer(sid, dir, jvmargs, className, args);\n }", "final protected void initSilent() throws InstantiateException {\n\t\tif (initialized)\n\t\t\treturn;\n\t\tinit();\n\t}", "public PnuematicSubsystem() {\n\n }", "private void startUp () {\n NativeMethodBroker.loadLibrary(false);\n try {\n start_up();\n } catch (UnsatisfiedLinkError e) {\n try {\n NativeMethodBroker.loadLibrary(true);\n NativeMethodBroker.traceln(AX_PROGRESS, \"There apparently were problems \" +\n \"in initially loading JavaContainer.dll. \" +\n \"It appears to be ok now. Error message \" +\n \"was \" + e.getMessage());\n start_up();\n } catch (UnsatisfiedLinkError e2) {\n NativeMethodBroker.traceln(AX_ERROR, fatalErrorMessage +\n \" Error message was: \" + e2.getMessage());\n // Really should exit here.\n // System.exit(-1);\n }\n }\n }", "public RunExeMain() throws IOException, InterruptedException\n {\n // build the system command we want to run\n List<String> commands = new ArrayList<String>();\n// commands.add(\"/bin/sh\");\n// commands.add(\"-c\");\n// commands.add(\"ls -l /var/tmp | grep tmp\");\n commands.add(\"/Users/musictechnology/Documents/Kinect/OpenNI-Bin-Dev-MacOSX-v1.5.7.10/Samples/Bin/x64-Release/Sample-NiUserTracker\");\n\n // execute the command\n SystemCommandExecutor commandExecutor = new SystemCommandExecutor(commands);\n int result = commandExecutor.executeCommand();\n\n // get the stdout and stderr from the command that was run\n StringBuilder stdout = commandExecutor.getStandardOutputFromCommand();\n StringBuilder stderr = commandExecutor.getStandardErrorFromCommand();\n\n // print the stdout and stderr\n System.out.println(\"The numeric result of the command was: \" + result);\n System.out.println(\"STDOUT:\");\n System.out.println(stdout);\n System.out.println(\"STDERR:\");\n System.out.println(stderr);\n }", "public SetPCProcess()\n {\n super(\"SetPC\");\n }", "private void instantiateResponse(CommandResponder responder) throws SystemException {\r\n\t\t\r\n\t\t// Validate\r\n\t\tif (responder==null) \r\n\t\t\tthrow new SystemException(\"CommandResponder cannot be null.\", SystemException.SYSTEM_COMMAND_FAULT_INSTANCE_DATA_BAD, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\t\t\r\n\t\t// Check the definitation.\r\n\t\tdefinitionCheck();\r\n\t\t\r\n\t\t// Create the fresh instance.\r\n\t\tcommandResponder = responder;\r\n\t}", "public void testPTY() throws Exception {\n PKey hostKey = PKey.readPrivateKeyFromStream(new FileInputStream(\n \"test/test_rsa.key\"), null);\n PKey publicHostKey = PKey.createFromBase64(hostKey.getBase64());\n mTS.addServerKey(hostKey);\n final FakeServer server = new FakeServer();\n\n final Event sync = new Event();\n new Thread(new Runnable() {\n public void run() {\n try {\n mTS.start(server, 15000);\n sync.set();\n } catch (IOException x) {}\n }\n }).start();\n\n mTC.start(publicHostKey, 15000);\n mTC.authPassword(\"slowdive\", \"pygmalion\", 15000);\n\n sync.waitFor(5000);\n assertTrue(sync.isSet());\n assertTrue(mTS.isActive());\n\n Channel chan = mTC.openSession(5000);\n TerminalModes modes = new TerminalModes();\n modes.put(TerminalModes.ECHO, 23);\n modes.put(TerminalModes.IXOFF, 900);\n chan.getPTY(\"vt100\", 80, 24, modes, 5000);\n chan.invokeShell(5000);\n Channel schan = mTS.accept(5000);\n\n assertEquals(\"vt100\", server.mPTYTerm);\n assertEquals(80, server.mPTYWidth);\n assertEquals(24, server.mPTYHeight);\n assertEquals(23, server.mPTYModes.get(TerminalModes.ECHO));\n assertEquals(900, server.mPTYModes.get(TerminalModes.IXOFF));\n assertFalse(server.mPTYModes.contains(TerminalModes.IXON));\n\n chan.getOutputStream().write(\"communist j. cat\\n\".getBytes());\n assertFalse(chan.isClosed());\n chan.close();\n assertTrue(chan.isClosed());\n\n BufferedReader r = new BufferedReader(new InputStreamReader(\n schan.getInputStream()));\n assertEquals(\"communist j. cat\", r.readLine());\n schan.close();\n }", "public synchronized void start() throws IOException {\n \t\tif (launchAtStart && acceptorThread == null) {\n \t\t\ttry {\n \t\t\t\tManagementFactory.getPlatformMBeanServer().registerMBean(this, getJMXObjectName());\n \t\t\t} catch (JMException e) {\n \t\t\t\tlog.warn(\"Failed to register GroovyShellService MBean\", e);\n \t\t\t}\n \n \t\t\tgroovyShellAcceptor = new GroovyShellAcceptor(port, createBinding(bindings), defaultScripts);\n \t\t\tacceptorThread = new Thread(groovyShellAcceptor, \"GroovyShAcceptor-\" + port);\n \t\t\tacceptorThread.start();\n \t\t}\n \t}", "public static void setErrno(int newErrno) {\n if (process == null) {\n System.err.println(PROGRAM_NAME +\n \": no current process in setErrno()\");\n System.exit(EXIT_FAILURE);\n }\n process.errno = newErrno;\n }", "public static void premain(final String agentArgument,\n final Instrumentation instrumentation) {\n\n /* install the default uncaught exception handler */\n\n Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {\n\n @Override\n public void uncaughtException(final Thread t, final Throwable e) {\n\n MimicAgent.handleException(e);\n }\n });\n\n try {\n\n MimicAgent.installAgent(agentArgument, instrumentation);\n } catch (final Throwable t) {\n\n MimicAgent.handleException(t);\n }\n }", "public void start() {\n\t\t// Used to keep track of if we're still attached to the VM.\n\t\tScheduledFuture<?> future = null;\n\t\ttry {\n\t\t\t// Start redirecting process output\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tInputStream pOutput = vm.process().getInputStream();\n\t\t\tInputStream pErr = vm.process().getErrorStream();\n\t\t\tfuture = ThreadUtil.runRepeated(PRINT_THREAD_DELAY, () -> {\n\t\t\t\ttry {\n\t\t\t\t\t// Handle receiving output\n\t\t\t\t\tif (out != null) {\n\t\t\t\t\t\tint size = pOutput.available();\n\t\t\t\t\t\tif (size > 0) {\n\t\t\t\t\t\t\tint n = pOutput.read(buffer, 0, Math.min(size, buffer.length));\n\t\t\t\t\t\t\tout.println(new String(buffer, 0, n));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsize = pErr.available();\n\t\t\t\t\t\tif (size > 0) {\n\t\t\t\t\t\t\tint n = pErr.read(buffer, 0, Math.min(size, buffer.length));\n\t\t\t\t\t\t\tout.println(new String(buffer, 0, n));\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\terror(ex, \"Exception occurred while processing VM IPC\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t// Handle vm events\n\t\t\teventLoop();\n\t\t} catch(VMDisconnectedException ex) {\n\t\t\t// Expected\n\t\t} catch(InterruptedException ex) {\n\t\t\terror(ex, \"Failed processing VM event queue\");\n\t\t}\n\t\tif (future != null)\n\t\t\tfuture.cancel(true);\n\t}", "@Override\n public int getExitCode() {\n return 0;\n }", "@Override\r\n\tpublic void parseAndEvaluate(String cmdline, OutputStream stdout)\r\n\t\t\tthrows AbstractApplicationException, ShellException {\r\n\t\tCommand parentCommand = parse(cmdline);\r\n\t\tparentCommand.evaluate(null, stdout);\r\n\t}" ]
[ "0.6292433", "0.5531845", "0.5179462", "0.5167987", "0.5075353", "0.48507294", "0.47523794", "0.46960878", "0.46940896", "0.45444006", "0.45301622", "0.45166707", "0.4482307", "0.44821846", "0.44520453", "0.44517657", "0.44466656", "0.4445153", "0.443857", "0.4427714", "0.43825033", "0.43727562", "0.4370294", "0.43617597", "0.43509197", "0.43381518", "0.43338096", "0.4317994", "0.42866775", "0.42738235", "0.4272171", "0.42485952", "0.4234894", "0.422775", "0.42269138", "0.4223181", "0.42192677", "0.42145136", "0.42131755", "0.42129126", "0.42116046", "0.42006582", "0.41955414", "0.41835016", "0.41812828", "0.4173566", "0.4165017", "0.41409168", "0.4126929", "0.4124975", "0.41225767", "0.411386", "0.41006073", "0.40998858", "0.4098912", "0.40912184", "0.4076996", "0.40748492", "0.40626678", "0.40605745", "0.40485966", "0.40471408", "0.40415335", "0.40365973", "0.40313601", "0.40296263", "0.4004057", "0.3996804", "0.3987037", "0.39765504", "0.39736274", "0.3968216", "0.3966053", "0.39652428", "0.39646754", "0.3959162", "0.39521506", "0.39496619", "0.39480594", "0.3945923", "0.39370915", "0.39316845", "0.39261276", "0.39177048", "0.39092803", "0.39016196", "0.38986164", "0.38952103", "0.38853824", "0.38831884", "0.38622656", "0.3861265", "0.38545263", "0.3853877", "0.38528892", "0.38523567", "0.3848643", "0.3840624", "0.3838982", "0.38302174" ]
0.7045485
0
Sets up the sandbox, but does not invoke it. This constructor sets up a sandbox with no security at all. The spawned process can do whatever it wants. To actually kick off the command, call the Init() method. Traps the stderr channel of the spawned process.
public Sandbox(String command) { childStdin = null; childStdout = null; childStderr = null; this.command = command; process = null; this.trapStderr = true; isAlive = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sandbox(String command, boolean trapStderr) {\n\tchildStdin = null;\n\tchildStdout = null;\n\tchildStderr = null;\n\tthis.command = command;\n\tprocess = null;\n\tthis.trapStderr = trapStderr;\n\tisAlive = false;\n }", "public int Init() {\n\ttry {\n\t process = Runtime.getRuntime().exec(command);\n\t} catch (Exception e) {\n\t return 0;\n\t}\n\tif (process == null) {\n\t return 0;\n\t}\n\tchildStdin = new OutputStreamWatcher(process.getOutputStream());\n\tchildStdout = new InputStreamWatcher(process.getInputStream());\n\tchildStderr = new InputStreamWatcher(process.getErrorStream());\n\tchildStdin.start();\n\tchildStdout.start();\n\tchildStderr.start();\n\treturn 1;\n }", "public Shell() {\n commandNumber = 0;\n prevPID = -1;\n command = \"\";\n }", "public Process() {\n\t\tthis(null);\n\t}", "public static void programStandardInit() {\r\n System.setSecurityManager(null);\r\n LoggingUtils.setupConsoleOnly();\r\n }", "private CommandLine() {\n\t}", "private void init() {\n LOGGER.info(\"Init piper ProcessBuilder\");\n String generalArgs = constructGeneralArgs();\n String specificArgs = getLaunchCommand();\n if (specificArgs == null) {\n ErrorManager.error(ERROR_GC);\n return;\n }\n ProcessBuilder pb = new ProcessBuilder(piperScript, generalArgs, specificArgs);\n try {\n // Set NW environment\n Map<String, String> env = getEnvironment(nw);\n\n addEnvironment(env, nw);\n\n pb.directory(new File(getPBWorkingDir()));\n pb.environment().putAll(env);\n pb.environment().remove(NIOTracer.LD_PRELOAD);\n pb.environment().remove(NIOTracer.EXTRAE_CONFIG_FILE);\n\n if (NIOTracer.isActivated()) {\n NIOTracer.emitEvent(Long.parseLong(NIOTracer.getHostID()), NIOTracer.getSyncType());\n }\n\n piper = pb.start();\n\n LOGGER.debug(\"Starting stdout/stderr gobblers ...\");\n try {\n piper.getOutputStream().close();\n } catch (IOException e) {\n // Stream closed\n }\n PrintStream out = ((ThreadPrintStream) System.out).getStream();\n PrintStream err = ((ThreadPrintStream) System.err).getStream();\n outputGobbler = new StreamGobbler(piper.getInputStream(), out, LOGGER);\n errorGobbler = new StreamGobbler(piper.getErrorStream(), err, LOGGER);\n outputGobbler.start();\n errorGobbler.start();\n } catch (IOException e) {\n ErrorManager.error(ERROR_PB, e);\n }\n\n // The ProcessBuilder is non-blocking but we block the thread for a short period of time to allow the\n // bash script to create the needed environment (pipes)\n try {\n Thread.sleep(PIPE_CREATION_TIME * size);\n } catch (InterruptedException e) {\n // No need to catch such exceptions\n }\n }", "public Cli() {\r\n\t\tthis.retValue = 0;\r\n\t}", "FakeSandboxfsProcess(FileSystem fileSystem, PathFragment mountPoint) throws IOException {\n if (!fileSystem.getPath(mountPoint).exists()) {\n throw new IOException(\"Mount point \" + mountPoint + \" does not exist\");\n } else if (!fileSystem.getPath(mountPoint).isDirectory()) {\n throw new IOException(\"Mount point \" + mountPoint + \" is not a directory\");\n }\n\n this.fileSystem = fileSystem;\n this.mountPoint = mountPoint;\n }", "private Shell() { }", "private static SimpleProcessExecutor newSimpleProcessExecutor() {\n return new SimpleProcessExecutor(new TestProcessManagerFactory().newProcessManager());\n }", "public SetEnvCommand() {\n }", "public VMProcess() {\n\t\tsuper();\n\t}", "public VMProcess() \n\t{\n\t\tsuper();\n\t}", "private synchronized void startRuntimeIfNeeded() {\n if (childProcess != null) {\n return;\n }\n\n // If JSII_DEBUG is set, enable traces.\n final String jsiiDebug = System.getenv(\"JSII_DEBUG\");\n final boolean traceEnabled = jsiiDebug != null\n && !jsiiDebug.isEmpty()\n && !jsiiDebug.equalsIgnoreCase(\"false\")\n && !jsiiDebug.equalsIgnoreCase(\"0\");\n\n final List<String> jsiiRuntimeCommand = jsiiRuntimeCommand();\n if (traceEnabled) {\n System.err.println(\"jsii-runtime: \" + String.join(\" \", jsiiRuntimeCommand));\n }\n\n try {\n final ProcessBuilder pb = new ProcessBuilder()\n .command(jsiiRuntimeCommand)\n .redirectError(ProcessBuilder.Redirect.PIPE)\n .redirectOutput(ProcessBuilder.Redirect.PIPE)\n .redirectInput(ProcessBuilder.Redirect.PIPE);\n pb.environment().put(\"JSII_AGENT\", String.format(\"Java/%s\", System.getProperty(\"java.version\")));\n if (jsiiDebug != null) {\n pb.environment().put(\"JSII_DEBUG\", jsiiDebug);\n }\n\n this.childProcess = pb.start();\n\n this.stdin = new OutputStreamWriter(this.childProcess.getOutputStream(), StandardCharsets.UTF_8);\n this.stdout = new BufferedReader(new InputStreamReader(this.childProcess.getInputStream(), StandardCharsets.UTF_8));\n\n this.errorStreamSink = new ErrorStreamSink(this.childProcess.getErrorStream());\n this.errorStreamSink.start();\n } catch (final IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n\n this.shutdownHook = new Thread(this::terminate, \"Terminate jsii client\");\n Runtime.getRuntime().addShutdownHook(this.shutdownHook);\n\n handshake();\n\n this.client = new JsiiClient(this);\n }", "public InvalidProcessException() {}", "private synchronized void startRuntimeIfNeeded() {\n if (childProcess != null) {\n return;\n }\n\n // If JSII_DEBUG is set, enable traces.\n final String jsiiDebug = System.getenv(\"JSII_DEBUG\");\n final boolean traceEnabled = jsiiDebug != null\n && !jsiiDebug.isEmpty()\n && !jsiiDebug.equalsIgnoreCase(\"false\")\n && !jsiiDebug.equalsIgnoreCase(\"0\");\n\n // If JSII_RUNTIME is set, use it to find the jsii-server executable\n // otherwise, we default to \"jsii-runtime\" from PATH.\n final String jsiiRuntimeEnv = System.getenv(\"JSII_RUNTIME\");\n final List<String> jsiiRuntimeCommand = jsiiRuntimeEnv == null\n ? Arrays.asList(\"node\", BundledRuntime.extract(getClass()))\n : Collections.singletonList(jsiiRuntimeEnv);\n\n if (traceEnabled) {\n System.err.println(\"jsii-runtime: \" + String.join(\" \", jsiiRuntimeCommand));\n }\n\n try {\n final ProcessBuilder pb = new ProcessBuilder()\n .command(jsiiRuntimeCommand)\n .redirectError(ProcessBuilder.Redirect.PIPE)\n .redirectOutput(ProcessBuilder.Redirect.PIPE)\n .redirectInput(ProcessBuilder.Redirect.PIPE);\n pb.environment().put(\"JSII_AGENT\", String.format(\"Java/%s\", System.getProperty(\"java.version\")));\n if (jsiiDebug != null) {\n pb.environment().put(\"JSII_DEBUG\", jsiiDebug);\n }\n\n this.childProcess = pb.start();\n\n this.stdin = new OutputStreamWriter(this.childProcess.getOutputStream(), StandardCharsets.UTF_8);\n this.stdout = new BufferedReader(new InputStreamReader(this.childProcess.getInputStream(), StandardCharsets.UTF_8));\n\n this.errorStreamSink = new ErrorStreamSink(this.childProcess.getErrorStream());\n this.errorStreamSink.start();\n } catch (final IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n\n this.shutdownHook = new Thread(this::terminate, \"Terminate jsii client\");\n Runtime.getRuntime().addShutdownHook(this.shutdownHook);\n\n handshake();\n\n this.client = new JsiiClient(this);\n }", "public Script() {\n\n fs = System.getProperty(\"file.separator\");\n ps = System.getProperty(\"path.separator\");\n\n try {\n env = new Environment();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "Process createProcess();", "public Process start() throws IOException, InterruptedException {\n\t\t\n\t\tboolean isRunning = this.isRunning();\n\t\t\n\t\t// Early termination ---------------------------------------------------\n\t\t\n\t\tif (isRunning && this.isManagedExternally) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// Actually starts it --------------------------------------------------\n\t\t\n\t\tif (!isRunning) {\n\t\t\t// Launches the process --------------------------------------------\n\n\t\t\tthis.processRunner.run();\n\n\t\t\t// Polling to check the backend is fully set up --------------------\n\n\t\t\tboolean started = false;\n\t\t\tint time = 0;\n\t\t\twhile (!started && (time < Backend.POLLING_TIME_OUT)) {\n\t\t\t\ttry {\n\t\t\t\t\tHTTP.release(this.http.get(this.ping));\n\t\t\t\t\tstarted = true;\n\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\tThread.sleep(Backend.POLLING_SLEEP_TIME);\n\t\t\t\t\ttime += Backend.POLLING_SLEEP_TIME;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t// Return ----------------------------------------------------------\n\n\t\treturn this.processRunner.getProcess();\n\t}", "public Process() {\n PC.MakeProcess();\n\n }", "public MyEnvironment() {\n\t\t\t\tscan = new Scanner(System.in);\n\t\t\t\tscanClosed = false;\n\t\t\t\tmultilineSymbol = '|';\n\t\t\t\tpromptSymbol = '>';\n\t\t\t\tmorelinesSymbol = '\\\\';\n\t\t\t\tcommands = new TreeMap<>();\n\t\t\t\tcommands.put(\"cat\", new CatShellCommand());\n\t\t\t\tcommands.put(\"charsets\", new CharsetsShellCommand());\n\t\t\t\tcommands.put(\"copy\", new CopyShellCommand());\n\t\t\t\tcommands.put(\"exit\", new ExitShellCommand());\n\t\t\t\tcommands.put(\"hexdump\", new HexdumpShellCommand());\n\t\t\t\tcommands.put(\"ls\", new LsShellCommand());\n\t\t\t\tcommands.put(\"mkdir\", new MkdirShellCommand());\n\t\t\t\tcommands.put(\"tree\", new TreeShellCommand());\n\t\t\t\tcommands.put(\"symbol\", new SymbolShellCommand());\n\t\t\t\tcommands.put(\"help\", new HelpShellCommand());\n\t\t\t\tcommands.put(\"cd\", new CdShellCommand());\n\t\t\t\tcommands.put(\"pwd\", new PwdShellCommand());\n\t\t\t\tcommands.put(\"dropd\", new DropdShellCommand());\n\t\t\t\tcommands.put(\"pushd\", new PushdShellCommand());\n\t\t\t\tcommands.put(\"listd\", new ListdShellCommand());\n\t\t\t\tcommands.put(\"popd\", new PopdShellCommand());\n\t\t\t\tcommands.put(\"massrename\", new MassrenameShellCommand());\n\t\t\t\tcurrentDirectory = Paths.get(\".\");\n\t\t\t\tsharedData = new HashMap<>();\n\t\t\t}", "void execSetupContext(ExecProcess ctx);", "ExecRunner(ProcessBuilder builder) {\n if (builder == null) {\n throw new NullPointerException();\n }\n this.builder = builder;\n }", "public abstract void initializeProcess();", "Subprocess createSubprocess();", "public void instantiateCommand() throws SystemException {\r\n\t\t// Check the definitation.\r\n\t\tdefinitionCheck();\r\n\t\t\r\n\t\t// Create the fresh instance.\r\n\t\tcommandInstance = new ReadWriteableAttributes();\r\n\t}", "private Process execute() throws IOException {\n Process process = builder.start();\n\n if (listener != null) {\n stdoutStreamListener = new StdoutStreamListener(process.getInputStream(), listener);\n stderrStreamListener = new StderrStreamListener(process.getErrorStream(), listener);\n }\n\n return process;\n }", "public ManagedProcess(final String executable, final Process process) {\n myProcess = process;\n myOutput = new StringBuilder();\n\n myLock = new ReentrantLock();\n myLogUpdated = myLock.newCondition();\n\n myReader = new BufferedReader(new InputStreamReader(\n myProcess.getInputStream()));\n\n new Thread(new OutputReader(), executable + \" Process Drain\").start();\n }", "public Launcher() {\n this((java.lang.System[]) null);\n Launcher$$init$S();\n }", "@Test\n public void testConstructor() {\n interpreterInstance.interpret(\"cd \");\n Command testCommand = interpreterInstance.getCommand();\n List<String> testArguments = interpreterInstance.getArguments();\n assertEquals(\"driver.ChangeDirectory\", testCommand.getClass().getName());\n assertTrue(testArguments.isEmpty());\n }", "public CLI()\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = \"\";\r\n\t\t//this.exitStr = exitStr;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}", "public NativeExecutable(String command) {\n this.command = command;\n }", "PSConsoleCommand(String cmdArgs)\n {\n super();\n m_cmdArgs = cmdArgs;\n }", "ProcessExecutor cloneWithOutputStreams(PrintStream stdOutStream, PrintStream stdErrStream);", "public static Process exec(\n String cmd,\n boolean copyStdOutAndStdErrToParentProcess) throws IOException\n {\n return exec(cmd, null, copyStdOutAndStdErrToParentProcess);\n }", "public RentRPCServer() {\n\t\tsuper(null, null);\n\t\t// mocking purpose\n\t}", "private void startStreams() {\n InputStream inputStream = process.getInputStream();\n bufferedInputStream = new BufferedReader(new InputStreamReader(inputStream));\n InputStream errorStream = process.getErrorStream();\n bufferedErrorStream = new BufferedReader(new InputStreamReader(errorStream));\n }", "public SubProcessKernel(SubProcessConfiguration options, String binaryName) {\n this.configuration = options;\n this.processBuilder = new ProcessBuilder(binaryName);\n }", "public boolean startProcess (Properties ctx, ProcessInfo pi, Trx trx);", "public OCamlCommandLine(OCamlCLArgParser p) throws CommandLineException\n\t{\n\t\tsuper(p);\n\t\tthis.ocamlArgs = p.getOCamlArgs();\n\t\t// Duplicated from super\n\t\tif (!this.args.containsKey(CLArgFlag.MAIN_MOD) && !this.args.containsKey(CLArgFlag.INLINE_MAIN_MOD))\n\t\t{\n\t\t\tthrow new CommandLineException(\"No main module has been specified\\r\\n\");\n\t\t}\n\t}", "private int exec(UnixRuntime r, String[] argv, String[] envp) {\n for(int i=0;i<OPEN_MAX;i++) if(closeOnExec[i]) closeFD(i);\n r.fds = fds;\n r.closeOnExec = closeOnExec;\n // make sure this doesn't get messed with these since we didn't copy them\n fds = null;\n closeOnExec = null;\n \n r.gs = gs;\n r.sm = sm;\n r.cwd = cwd;\n r.pid = pid;\n r.parent = parent;\n r.start(argv,envp);\n \n state = EXECED;\n execedRuntime = r;\n \n return 0; \n }", "public static void initialize() {\n // check to see if the name of an alternate configuration\n // file has been specified. This can be done, for example,\n // java -Dfilesys.conf=myfile.txt program-name parameter ...\n String propertyFileName = System.getProperty(\"filesys.conf\");\n if (propertyFileName == null)\n propertyFileName = \"filesys.conf\";\n Properties properties = new Properties();\n try {\n FileInputStream in = new FileInputStream(propertyFileName);\n properties.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n System.err.println(PROGRAM_NAME + \": error opening properties file\");\n System.exit(EXIT_FAILURE);\n } catch (IOException e) {\n System.err.println(PROGRAM_NAME + \": error reading properties file\");\n System.exit(EXIT_FAILURE);\n }\n\n // get the root file system properties\n String rootFileSystemFilename =\n properties.getProperty(\"filesystem.root.filename\", \"filesys.dat\");\n String rootFileSystemMode =\n properties.getProperty(\"filesystem.root.mode\", \"rw\");\n\n // get the current process properties\n short uid = 1;\n try {\n uid = Short.parseShort(properties.getProperty(\"process.uid\", \"1\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.uid in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n short gid = 1;\n try {\n gid = Short.parseShort(properties.getProperty(\"process.gid\", \"1\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.gid in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n short umask = 0002;\n try {\n umask = Short.parseShort(\n properties.getProperty(\"process.umask\", \"002\"), 8);\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.umask in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n String dir = \"/root\";\n dir = properties.getProperty(\"process.dir\", \"/root\");\n\n try {\n MAX_OPEN_FILES = Integer.parseInt(properties.getProperty(\n \"kernel.max_open_files\", \"20\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property kernel.max_open_files in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n try {\n ProcessContext.MAX_OPEN_FILES = Integer.parseInt(\n properties.getProperty(\"process.max_open_files\", \"10\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.max_open_files in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n // create open file array\n openFiles = new FileDescriptor[MAX_OPEN_FILES];\n\n // create the first process\n process = new ProcessContext(uid, gid, dir, umask);\n processCount++;\n\n // open the root file system\n try {\n openFileSystems[ROOT_FILE_SYSTEM] = new FileSystem(\n rootFileSystemFilename, rootFileSystemMode);\n } catch (IOException e) {\n System.err.println(PROGRAM_NAME + \": unable to open root file system\");\n System.exit(EXIT_FAILURE);\n }\n\n }", "public static Process exec(\n String cmd,\n @SuppressWarnings(\"rawtypes\") Map envVars,\n boolean copyStdOutAndStdErrToParentProcess) throws IOException\n {\n String[] envVarsArr = getEnvVarArray(envVars);\n\n Process p = Runtime.getRuntime().exec(cmd, envVarsArr);\n\n if (copyStdOutAndStdErrToParentProcess)\n {\n pipe(p);\n }\n\n return p;\n }", "@SuppressWarnings(\"unused\")\n\tprivate AbstractCommand() {\n\t\t//\n\t}", "public AbstractCommand()\n {\n this.logger = new ConsoleLogger();\n }", "private void initialize() {\n if (!stopped.get()) {\n \tSystem.out.printf(\"Starting Red5 with args: %s\\n\", Arrays.toString(commandLineArgs));\n // start\n try {\n\t\t\t\tBootstrap.main(commandLineArgs);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n }", "public IPCam()\n {\n debugUEH = new IPCamUncaughtExceptionHandler();\n Thread.setDefaultUncaughtExceptionHandler(debugUEH);\n }", "public static void main(String[] args) {\n\t\t\n\t\t/**\n\t\t * Implementation of Environment. Used for communication with user.\n\t\t * Implements Closeable because needs to close Scanner.\n\t\t * */\n\t\tclass MyEnvironment implements Environment, Closeable {\n\t\t\t\n\t\t\t/**\n\t\t\t * Used for scanning input of user.\n\t\t\t * */\n\t\t\tprivate Scanner scan;\n\t\t\t/**\n\t\t\t * Used for security check if scan closes.\n\t\t\t * */\n\t\t\tprivate boolean scanClosed;\n\t\t\t/**\n\t\t\t * multilineSymbol used for marking multilines\n\t\t\t * */\n\t\t\tprivate Character multilineSymbol;\n\t\t\t/**\n\t\t\t * promptSymbol is used for marking input line.\n\t\t\t * */\n\t\t\tprivate Character promptSymbol;\n\t\t\t/**\n\t\t\t * morelinesSymbol is used for marking more lines by user.\n\t\t\t * */\n\t\t\tprivate Character morelinesSymbol;\n\t\t\t/**\n\t\t\t * commands is used to pair commands' name with commands' object\n\t\t\t * */\n\t\t\tprivate SortedMap<String, ShellCommand> commands;\n\t\t\t/**\n\t\t\t * Contains current directory\n\t\t\t * */\n\t\t\tprivate Path currentDirectory;\n\t\t\t/**\n\t\t\t * Used for sharing data between commands\n\t\t\t * */\n\t\t\tprivate Map<String, Object> sharedData;\n\t\t\t\n\t\t\t/**\n\t\t\t * Default constructor. Sets all private variables to default.\n\t\t\t * */\n\t\t\tpublic MyEnvironment() {\n\t\t\t\tscan = new Scanner(System.in);\n\t\t\t\tscanClosed = false;\n\t\t\t\tmultilineSymbol = '|';\n\t\t\t\tpromptSymbol = '>';\n\t\t\t\tmorelinesSymbol = '\\\\';\n\t\t\t\tcommands = new TreeMap<>();\n\t\t\t\tcommands.put(\"cat\", new CatShellCommand());\n\t\t\t\tcommands.put(\"charsets\", new CharsetsShellCommand());\n\t\t\t\tcommands.put(\"copy\", new CopyShellCommand());\n\t\t\t\tcommands.put(\"exit\", new ExitShellCommand());\n\t\t\t\tcommands.put(\"hexdump\", new HexdumpShellCommand());\n\t\t\t\tcommands.put(\"ls\", new LsShellCommand());\n\t\t\t\tcommands.put(\"mkdir\", new MkdirShellCommand());\n\t\t\t\tcommands.put(\"tree\", new TreeShellCommand());\n\t\t\t\tcommands.put(\"symbol\", new SymbolShellCommand());\n\t\t\t\tcommands.put(\"help\", new HelpShellCommand());\n\t\t\t\tcommands.put(\"cd\", new CdShellCommand());\n\t\t\t\tcommands.put(\"pwd\", new PwdShellCommand());\n\t\t\t\tcommands.put(\"dropd\", new DropdShellCommand());\n\t\t\t\tcommands.put(\"pushd\", new PushdShellCommand());\n\t\t\t\tcommands.put(\"listd\", new ListdShellCommand());\n\t\t\t\tcommands.put(\"popd\", new PopdShellCommand());\n\t\t\t\tcommands.put(\"massrename\", new MassrenameShellCommand());\n\t\t\t\tcurrentDirectory = Paths.get(\".\");\n\t\t\t\tsharedData = new HashMap<>();\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Used for closing Scanner scan.\n\t\t\t * */\n\t\t\tpublic void close() {\n\t\t\t\tif(scanClosed == false) {\n\t\t\t\t\tscan.close();\n\t\t\t\t\tscanClosed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String readLine() throws ShellIOException {\n\t\t\t\tString line;\n\t\t\t\ttry {\n\t\t\t\t\tline = scan.nextLine();\n\t\t\t\t} catch (NoSuchElementException | IllegalStateException e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t\treturn line;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void write(String text) throws ShellIOException {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.print(text);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void writeln(String text) throws ShellIOException {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(text);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic SortedMap<String, ShellCommand> commands() {\n\t\t\t\treturn Collections.unmodifiableSortedMap(commands);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getMultilineSymbol() {\n\t\t\t\treturn multilineSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setMultilineSymbol(Character symbol) {\n\t\t\t\tmultilineSymbol = symbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getPromptSymbol() {\n\t\t\t\treturn promptSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setPromptSymbol(Character symbol) {\n\t\t\t\tpromptSymbol = symbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getMorelinesSymbol() {\n\t\t\t\treturn morelinesSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setMorelinesSymbol(Character symbol) {\n\t\t\t\tmorelinesSymbol = symbol;\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Path getCurrentDirectory() {\n\t\t\t\treturn currentDirectory.toAbsolutePath().normalize();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setCurrentDirectory(Path path) throws IOException{\n\t\t\t\tif(!path.toFile().isDirectory()) {\n\t\t\t\t\tthrow new IOException(\"No such directory.\");\n\t\t\t\t}\n\t\t\t\tcurrentDirectory = path.toAbsolutePath().normalize();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object getSharedData(String key) {\n\t\t\t\tif (key == null) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn sharedData.get(key);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setSharedData(String key, Object value) {\n\t\t\t\tif(key == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsharedData.put(key, value);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\ttry(MyEnvironment env = new MyEnvironment()) {\n\t\t\tShellStatus status = ShellStatus.CONTINUE;\n\t\t\tenv.writeln(\"Welcome to MyShell v 1.0\");\n\t\t\t\n\t\t\twhile(status != ShellStatus.TERMINATE) {\n\t\t\t\tenv.write(env.getPromptSymbol() + \" \");\n\t\t\t\tString l = readLineOrLines(env);\n\t\t\t\tint boundaryIndex = l.indexOf(' ') == -1 ? l.length() : l.indexOf(' ');\n\t\t\t\tString commandName = l.substring(0, boundaryIndex);\n\t\t\t\tString arguments = l.substring(boundaryIndex);\n\t\t\t\tShellCommand command = env.commands().get(commandName);\n\t\t\t\tif(command == null) {\n\t\t\t\t\tenv.writeln(\"Wrong command. Use 'help'.\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstatus = command.executeCommand(env, arguments);\n\t\t\t} \n\t\t} catch(ShellIOException e) {\n\t\t\t// Terminates shell.\n\t\t}\n\t\t\n\t}", "public void run() throws Exception {\n if (getLog().isDebugEnabled()) {\n getLog().debug(\"Launching JVM with command line: \" + String.join(\" \", args));\n }\n process = new ProcessBuilder(args)\n .inheritIO()\n .directory(workingDir)\n .start();\n //https://github.com/quarkusio/quarkus/issues/232\n Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {\n @Override\n public void run() {\n process.destroy();\n }\n }, \"Development Mode Shutdown Hook\"));\n }", "public CommandLineBuilder()\n {\n m_commandLine = new String[0];\n }", "@Override\n @SuppressFBWarnings(\"DM_EXIT\")\n protected void initializeBrowserProcess() {\n try {\n LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER)\n .ensureInitialized(getApplicationContext());\n } catch (ProcessInitException e) {\n Log.e(TAG, \"Cannot load content_browsertests.\", e);\n System.exit(-1);\n }\n BrowserStartupController.get(getApplicationContext(), LibraryProcessType.PROCESS_BROWSER)\n .initChromiumBrowserProcessForTests();\n\n setContentView(getTestActivityViewId());\n mShellManager = (ShellManager) findViewById(getShellManagerViewId());\n mWindowAndroid = new ActivityWindowAndroid(this);\n mShellManager.setWindow(mWindowAndroid);\n\n Window wind = this.getWindow();\n wind.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);\n wind.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);\n wind.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);\n }", "public void initializeSandbox() {\n ImageDecoderJni.get().initializePhotoPickerSandbox();\n mSandboxInitialized = true;\n }", "public void run() {\n\t\t\t\tString command = \"psexec -u ACCUSYSARGBSAS\\\\martin.zaragoza -p Marzo2015 D:\\\\Temp\\\\testScripts\\\\a.exe a\";\n\t\t\t\tProcess process;\n\t\t\t\ttry {\n\t\t\t\t\tprocess = Runtime.getRuntime().exec(command);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tint pid = getPid(process);\n\t\t\t\t\tSystem.out.println(\"pid=\" + pid);\n\t\t\t\t\tprintStdout(process.getInputStream());\n\t\t\t\t\tThread.sleep(500);\n\n\t\t\t\t\tProcess exec = Runtime.getRuntime().exec(\"echo %errorlevel%\");\n\t\t\t\t\tprintStdout(exec.getInputStream());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public CLI(String inputCommand)\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = inputCommand;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}", "@Override\r\n\tpublic void parseAndEvaluate(String cmdline, OutputStream stdout)\r\n\t\t\tthrows AbstractApplicationException, ShellException {\r\n\t\tCommand parentCommand = parse(cmdline);\r\n\t\tparentCommand.evaluate(null, stdout);\r\n\t}", "public int start( String[] cmdLine )\n {\n int exitCode = 0;\n Console console = null;\n\n if (null == System.getSecurityManager())\n {\n System.setSecurityManager( new RMISecurityManager() );\n }\n\n // Load the hsp properties.\n Property.loadProperties( cmdLine );\n Property.load( TuiConsole.class );\n\n // See if the command line has the console.\n String registryHost = System.getProperty( Console.JICOS_CONSOLE_HOST );\n int registryPort = RegistrationManager.PORT;\n boolean showHelp = false;\n //\n switch (cmdLine.length)\n {\n case 1:\n if (\"-help\".equals( cmdLine[0] ))\n {\n showHelp = true;\n }\n else\n {\n loadStartupConfig( cmdLine[0] );\n }\n break;\n\n case 0:\n break;\n\n default:\n showHelp = true;\n exitCode = 1;\n break;\n }\n\n if (showHelp)\n {\n System.err.println( \"Usage: <java> TuiConsole [config.xml]\" );\n if( 0 != exitCode )\n {\n System.exit( exitCode );\n }\n }\n\n \n // Startup files.\n String fileName = null;\n String homePrefix = \"/.jicos/\";\n String localPrefix = \".\";\n String suffix = \".conf\";\n \n if( System.getProperty( \"os.name\" ).toLowerCase().startsWith( \"window\" ) )\n {\n homePrefix = \"Application Data/Jicos/\";\n localPrefix = \"\";\n }\n \n // See if there is a global startupfile.\n if( null != (fileName = System.getProperty( \"user.home\" )) )\n {\n fileName += homePrefix + \"tuiconsole\" + suffix;\n doStartup( new File( fileName ) );\n }\n \n // See if there is a start-up file in the local directory\n fileName = \"./\" + localPrefix + \"tuiconsole\" + suffix;\n doStartup( new File( fileName ) );\n \n mainLoop();\n return (CMD_Error);\n }", "public SyscallException() {\n\t\tsuper();\n\t}", "public static void start() {\n final Context appContext = ContextUtils.getApplicationContext();\n tryObtainingDataDirLock(appContext);\n // We must post to the UI thread to cover the case that the user\n // has invoked Chromium startup by using the (thread-safe)\n // CookieManager rather than creating a WebView.\n ThreadUtils.runOnUiThreadBlocking(new Runnable() {\n @Override\n public void run() {\n boolean multiProcess = CommandLine.getInstance().hasSwitch(\n AwSwitches.WEBVIEW_SANDBOXED_RENDERER);\n if (multiProcess) {\n // Have a background thread warm up a renderer process now, so that this can\n // proceed in parallel to the browser process initialisation.\n AsyncTask.THREAD_POOL_EXECUTOR.execute(new Runnable() {\n @Override\n public void run() {\n ChildProcessLauncher.warmUp(appContext);\n }\n });\n }\n // The policies are used by browser startup, so we need to register the policy\n // providers before starting the browser process. This only registers java objects\n // and doesn't need the native library.\n CombinedPolicyProvider.get().registerProvider(new AwPolicyProvider(appContext));\n\n try {\n BrowserStartupController.get(appContext, LibraryProcessType.PROCESS_WEBVIEW)\n .startBrowserProcessesSync(!multiProcess);\n } catch (ProcessInitException e) {\n throw new RuntimeException(\"Cannot initialize WebView\", e);\n }\n }\n });\n }", "abstract void initiateConsole();", "@VisibleForTesting\n ProcessRegistry() {}", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t}", "public void testExecCommand() throws Exception {\n PKey hostKey = PKey.readPrivateKeyFromStream(new FileInputStream(\n \"test/test_rsa.key\"), null);\n PKey publicHostKey = PKey.createFromBase64(hostKey.getBase64());\n mTS.addServerKey(hostKey);\n final FakeServer server = new FakeServer();\n\n final Event sync = new Event();\n new Thread(new Runnable() {\n public void run() {\n try {\n mTS.start(server, 15000);\n sync.set();\n } catch (IOException x) {}\n }\n }).start();\n\n mTC.start(publicHostKey, 15000);\n mTC.authPassword(\"slowdive\", \"pygmalion\", 15000);\n\n sync.waitFor(5000);\n assertTrue(sync.isSet());\n assertTrue(mTS.isActive());\n\n Channel chan = mTC.openSession(5000);\n Channel schan = mTS.accept(5000);\n try {\n chan.execCommand(\"no\", 5000);\n fail(\"expected exception\");\n } catch (IOException x) {\n // pass\n }\n chan.close();\n schan.close();\n\n chan = mTC.openSession(5000);\n chan.execCommand(\"yes\", 5000);\n schan = mTS.accept(5000);\n\n schan.getOutputStream().write(\"Hello there.\\n\".getBytes());\n schan.getStderrOutputStream().write(\"This is on stderr.\\n\".getBytes());\n schan.close();\n\n BufferedReader r = new BufferedReader(new InputStreamReader(\n chan.getInputStream()));\n assertEquals(\"Hello there.\", r.readLine());\n assertEquals(null, r.readLine());\n r = new BufferedReader(new InputStreamReader(\n chan.getStderrInputStream()));\n assertEquals(\"This is on stderr.\", r.readLine());\n assertEquals(null, r.readLine());\n chan.close();\n\n // now try it with combined stdout/stderr\n chan = mTC.openSession(5000);\n chan.execCommand(\"yes\", 5000);\n schan = mTS.accept(5000);\n schan.getOutputStream().write(\"Hello there\\n\".getBytes());\n schan.getStderrOutputStream().write(\"This is on stderr.\\n\".getBytes());\n schan.close();\n\n chan.setCombineStderr(true);\n r = new BufferedReader(new InputStreamReader(chan.getInputStream()));\n assertEquals(\"Hello there\", r.readLine());\n assertEquals(\"This is on stderr.\", r.readLine());\n assertEquals(null, r.readLine());\n chan.close();\n }", "public ProcessSequence(ProcessCreator[] pcs) {\n _creators = pcs;\n _processes = new Process[_creators.length];\n for(int i=0; i<_processes.length; ++i) { _processes[i] = null; }\n _combinedInputStream = new PipedInputStream();\n try {\n _combinedStdOutStream = new PipedOutputStream(_combinedInputStream);\n _combinedInputStream.connect(_combinedStdOutStream);\n }\n catch(IOException e) { /* ignore, no output if this goes wrong */ }\n _combinedErrorStream = new PipedInputStream();\n try {\n _combinedStdErrStream = new PipedOutputStream(_combinedErrorStream);\n _combinedErrorStream.connect(_combinedStdErrStream);\n }\n catch(IOException e) { /* ignore, no output if this goes wrong */ }\n \n _deathThread = new Thread(new Runnable() {\n public void run() {\n GeneralProcessCreator.LOG.log(\"ProcessSequence._deathThread running\");\n boolean interrupted = false;\n // wait for the completion of each of the subprocesses\n while(_index<_processes.length) {\n GeneralProcessCreator.LOG.log(\"Waiting for process \"+_index);\n do {\n interrupted = false;\n try {\n _processes[_index].waitFor();\n }\n catch(InterruptedException e) { interrupted = true; }\n } while(interrupted);\n GeneralProcessCreator.LOG.log(\"Process \"+_index+\" terminated\");\n // a process has just terminated\n if (_index<_processes.length-1) {\n // increase index;\n ++_index;\n try {\n _processes[_index] = _creators[_index].start();\n GeneralProcessCreator.LOG.log(\"Process \"+_index+\" started\");\n connectProcess(_processes[_index]);\n }\n catch(IOException e) {\n // could not start the process, record error but continue\n // TODO: find a way to record the error in the ExternalProcessPanel\n// DrJavaErrorHandler.record(e);\n _processes[_index] = DUMMY_PROCESS;\n }\n }\n else {\n ++_index;\n GeneralProcessCreator.LOG.log(\"Closing StdOut and StdErr streams.\");\n try {\n stopAllRedirectors();\n _combinedStdOutStream.flush();\n _combinedStdOutStream.close();\n _combinedStdErrStream.flush();\n _combinedStdErrStream.close();\n }\n catch(IOException e) { /* ignore, just don't close the streams */ }\n }\n }\n }\n },\"Process Sequence Death Thread\");\n _index = 0;\n try {\n _processes[_index] = _creators[_index].start();\n }\n catch(IOException e) {\n // could not start the process, record error but continue\n // TODO: find a way to record the error in the ExternalProcessPanel\n _processes[_index] = DUMMY_PROCESS;\n// DrJavaErrorHandler.record(e);\n }\n connectProcess(_processes[_index]);\n _deathThread.start();\n }", "private Main()\n {{\n System.err.println ( \"Internal error: \"+\n\t \"unexpected call to default constructor for Main.\" );\n System.exit(-127);\n }}", "public GroovyShellService() {\n \t\tthis(6789);\n \t}", "protected void startProcess() {\n System.out.println(\"Process started\");\r\n }", "public AsynchronousProcess(final Process process) {\n super();\n this.process = process;\n processWrapper = new PriTh(process, this);\n }", "private Main() {\r\n throw new IllegalStateException();\r\n }", "public UserProcess() {\n\t fileDescriptors = new OpenFile[16];\n\n\t boolean interrupt = Machine.interrupt().disable();\n\n\t processId = processIdCounter++;\n\t if(parentProcess == null){\n\t\t\tstdin = UserKernel.console.openForReading();\n\t\t\tstdout = UserKernel.console.openForWriting();\n\t\t}else{\n\t\t\tstdin = parentProcess.stdin;\n\t\t\tstdout= parentProcess.stdout;\n\t\t}\n\n\t Machine.interrupt().restore(interrupt);\n\n\t fileDescriptors[0] = stdin;\n\t fileDescriptors[1] = stdout;\n\n\t childProcesses = new HashMap<Integer, UserProcess>();\n\t //exitStats = new HashMap<>();\n\n\t parentProcess = null;\n\t lock = new Lock();\n\n\t\tint numPhysPages = Machine.processor().getNumPhysPages();\n\t\tpageTable = new TranslationEntry[numPhysPages];\n\t\tfor (int i=0; i<numPhysPages; i++)\n\t\t\tpageTable[i] = new TranslationEntry(i,i, true,false,false,false);\n\n }", "public static Process start(ProcessBuilder builder) {\n try {\n return builder.start();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "@Before public void initParser() {\n\t\tparser = new CliParserImpl(\"-\", \"--\");\n\t}", "public Command() {\n this.arguments = new String[0];\n }", "public void sandbox(boolean sandbox) {\n this.sandbox = sandbox;\n }", "@Override\n protected void processRun() {\n try {\n if (helpOnly) helpOnly();\n else {\n if (hasPipedInput()) pipeVersion();\n else stdinVersion();\n }\n } catch (IOException e) {\n return; // Killed process\n }\n }", "public MSCCommander(String CLIServer, String CLIUser, String LocalUser) {\n\n hostname = CLIServer;\n username = CLIUser;\n localUsername = LocalUser;\n execMode = remoteMode;\n rexec = new Rsh(hostname,username,localUsername,null,false);\n }", "public ZKInProcessServer(int clientPort, String logdir) throws IOException {\n this.standalone = true;\n Properties properties = new Properties();\n properties\n .setProperty(\"clientPort\", Integer.valueOf(clientPort).toString());\n properties.setProperty(\"dataDir\", logdir + \"/server-0\");\n properties.setProperty(\"dataLogDir\", logdir + \"/logs-0\");\n properties.setProperty(\"tickTime\", \"2000\");\n properties.setProperty(\"initLimit\", \"10\");\n properties.setProperty(\"syncLimit\", \"5\");\n properties.setProperty(\"electionAlg\", \"3\"); // fast leader election\n properties.setProperty(\"maxClientCnxns\", \"0\");\n createDirs(logdir + \"/server-0\", logdir + \"/logs-0\", 0);\n try {\n config.parseProperties(properties);\n } catch (ConfigException e) {\n throw new IOException(e);\n }\n }", "private Supervisor() {\r\n\t}", "public ProcessRunnable(I_FabSystem sys, Process process, I_Method waitForMethod) {\n processLinesOut_ = sys.newConcurrentLinkedQueue(String.class);\n processDataIn_ = sys.newConcurrentLinkedQueue(ProcessOutputData.class);\n \n process_ = process;\n \n waitForMethod_ = waitForMethod;\n processInput_ = process_.getOutputStream();\n processOutput_ = process_.getInputStream();\n }", "public void run(String[] cmdStrings) throws Exception {\n StringBuffer stdoutBuffer = new StringBuffer();\n StringBuffer stderrBuffer = new StringBuffer();\n String CR = System.getProperty(\"line.separator\");\n int subprocessStatus = 1;\n\n System.out.print(CR + \"runCommand method about to execute: \");\n for (int iNdx = 0; iNdx < cmdStrings.length; iNdx++) {\n System.out.print(\" \");\n System.out.print(cmdStrings[iNdx]);\n }\n System.out.println(CR);\n\n try {\n Process process = Runtime.getRuntime().\n exec(VMConnection.insertDebuggeeVMOptions(cmdStrings));\n int BUFFERSIZE = 4096;\n /*\n * Gather up the output of the subprocess using non-blocking\n * reads so we can get both the subprocess stdout and the\n * subprocess stderr without overfilling any buffers.\n */\n BufferedInputStream is =\n new BufferedInputStream(process.getInputStream());\n int isLen = 0;\n byte[] isBuf = new byte[BUFFERSIZE];\n\n BufferedInputStream es =\n new BufferedInputStream(process.getErrorStream());\n int esLen = 0;\n byte[] esBuf = new byte[BUFFERSIZE];\n\n do {\n isLen = is.read(isBuf);\n if (isLen > 0) {\n stdoutBuffer.append(new String(isBuf, 0, isLen));\n }\n esLen = es.read(esBuf);\n if (esLen > 0) {\n stderrBuffer.append(new String(esBuf, 0, esLen));\n }\n } while ((isLen > -1) || (esLen > -1));\n\n try {\n process.waitFor();\n subprocessStatus = process.exitValue();\n process = null;\n } catch(java.lang.InterruptedException e) {\n System.err.println(\"InterruptedException: \" + e);\n throw new Exception(\"Test failed: process interrupted\");\n }\n\n } catch(IOException ex) {\n System.err.println(\"IO error: \" + ex);\n throw new Exception(\"Test failed: IO error running process\");\n }\n\n System.out.println(CR + \"--- Return code was: \" +\n CR + Integer.toString(subprocessStatus));\n System.out.println(CR + \"--- Return stdout was: \" +\n CR + stdoutBuffer.toString());\n System.out.println(CR + \"--- Return stderr was: \" +\n CR + stderrBuffer.toString());\n\n }", "ProcessRunner waitFor();", "public State() {\r\n this.root = Directory.createRoot();\r\n this.setExit(false);\r\n this.directoryStack = new Stack<>();\r\n this.returnObject = new ReturnObject();\r\n workingDirectory = this.root;\r\n\r\n // Create a new ArrayList for the command history\r\n commandHistory = new ArrayList<>();\r\n }", "public Command() {\r\n\t\t// If default, use a local one.\r\n\t\tmYCommandRegistry = LocalCommandRegistry.getGlobalRegistryStatic();\r\n\t}", "public AbstractInvoker(Console console) {\n\t\tthis.console = console;\n\t}", "public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}", "public SystemCommandRequest()\r\n\t{\r\n\t}", "@BeforeAll\n static void initClass() {\n // start the program\n server = MpSecurityClientMain.startTheServer();\n }", "private int fork(String[] command) throws BuildException {\r\n Execute exe = new Execute(redirector.createHandler(), createWatchdog());\r\n setupExecutable(exe, command);\r\n\r\n try {\r\n int rc = exe.execute();\r\n redirector.complete();\r\n if (exe.killedProcess()) {\r\n throw new BuildException(TIMEOUT_MESSAGE);\r\n }\r\n return rc;\r\n }\r\n catch (IOException e) {\r\n throw new BuildException(e, getLocation());\r\n }\r\n }", "public JsConsoleManagerTest() {\n console = new JsConsoleManager();\n }", "@Override\n public void execute(IO io, Context context) {\n try {\n Process process = Runtime.getRuntime().exec(createShellCommand());\n pipeStream(io.STDIN, process.getOutputStream());\n process.waitFor();\n pipeStream(process.getInputStream(), io.STDOUT);\n } catch (IOException e) {\n e.printStackTrace(new PrintStream(io.STDERR));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public CLIRequest(CLIRequest parent, String[] argv, SSOToken ssoToken) {\n this.parent = parent;\n this.argv = argv;\n this.ssoToken = ssoToken;\n }", "public ExitCommand() {\n }", "public NormalCommandLine createNormalCommandLine() {\n\t\tCollection<String> files = new ArrayList<String>();\n\n\t\tNormalCommandLine line = new NormalCommandLine();\n\t\tif (currConfig != null) {\n\t\t\tif (!currConfig.getSelectedFiles().isEmpty()) {\n\t\t\t\tfiles.add(currConfig.getSelectedFiles().get(0).getPath());\n\t\t\t\tline.setFiles(files);\n\t\t\t}\n\n\t\t\tGMCSection cmdSection = currConfig.getGmcConfig()\n\t\t\t\t\t.getAnonymousSection();\n\n\t\t\tline.setGMCConfig(currConfig.getGmcConfig());\n\t\t\tline.setGMCSection(cmdSection);\n\t\t\tline.complete();\n\t\t}\n\n\t\tline.setCommand(comNameToComKind(currCommand));\n\t\tthis.commandLine = line;\n\t\treturn line;\n\t}", "@Test\n @AFSocketCapabilityRequirement(AFSocketCapability.CAPABILITY_FD_AS_REDIRECT)\n @ProcessUtilRequirement(canGetJavaCommandArguments = true)\n public void testForkedVMRedirectStdin() throws Exception {\n AFUNIXSocketAddress addr = AFUNIXSocketAddress.ofNewTempFile();\n try (AFUNIXServerSocket serverSocket = AFUNIXServerSocket.bindOn(addr);\n AFUNIXSocket clientConn = AFUNIXSocket.connectTo(addr);\n AFUNIXSocket serverConn = serverSocket.accept()) {\n assertTrue(addr.getFile().delete());\n\n ForkedVM vm = new ForkedVM(StdinSocketApp.class);\n vm.setRedirectInput(FileDescriptorCast.using(clientConn.getFileDescriptor()).as(\n Redirect.class));\n vm.setRedirectError(Redirect.INHERIT);\n // vm.setRedirectOutput(Redirect.INHERIT);\n Process p = vm.fork();\n try {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(serverConn\n .getInputStream(), StandardCharsets.UTF_8))) {\n assertEquals(\"Hello world\", br.readLine());\n String l;\n if ((l = br.readLine()) != null) {\n fail(\"Unexpected output: \" + l);\n }\n }\n assertTrue(p.waitFor(30, TimeUnit.SECONDS));\n assertEquals(0, p.exitValue());\n } finally {\n p.destroyForcibly();\n }\n }\n }", "public ConsolePanel() throws Exception, SAXException, IOException\r\n\t{\r\n\t\tgame=null;\r\n\t\tgame_started=false;\r\n\t\tgs=new MainMenuDialog();\r\n\t\tMyKeyHandler kh = new MyKeyHandler();\r\n\t\taddKeyListener(kh);\r\n\t\tsetFocusable(true);\r\n\t}", "public StandardPipeline() {\n this(null);\n }", "public Console() {\n initComponents();\n }", "public Tree(Console console, String command[]) {\n userFileSystem = console.getFileSystem();\n commandArgument = command;\n }", "public PnuematicSubsystem() {\n\n }", "public final void begin() {\n Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {\n public void uncaughtException(Thread t, Throwable e) {\n\t\t\t\t/*\n\t\t\t\t * Thread interruptions will always throw a thread death exception, and since thread.stop()\n\t\t\t\t * is called from another thread, this default exception handler always receives the throwable, even if thread.stop is surrounded\n\t\t\t\t * by a try-catch.\n\t\t\t\t * TLDR; dont print em...\n\t\t\t\t */\n if (e instanceof ThreadDeath) return;\n log(Level.SEVERE, e.getClass().getSimpleName() + \" caught in thread \" + t.getName() + \": \" + e.getMessage());\n for (StackTraceElement ste : e.getStackTrace()) {\n log(Level.SEVERE, ste.toString());\n }\n }\n });\n\t\t/*\n\t\t * Load the random event pool\n\t\t */\n if (!(this instanceof RandomEvent)) {\n context.randomEvents = new RandomEventPool(context);\n }\n\t\t\n\t\t/*\n\t\t * Check if the script wants to execute\n\t\t */\n boolean initialized = false;\n try {\n initialized = init();\n } catch (Exception exc) {\n //ignore it\n }\n if (!initialized) {\n log(Level.WARNING, \"Script \" + manifest.name() + \" refused to start.\");\n context.getBot().popScript();\n }\n }" ]
[ "0.6809974", "0.6049768", "0.5970985", "0.5626481", "0.5625788", "0.5485626", "0.5382826", "0.5329998", "0.5317505", "0.5304426", "0.52301675", "0.5217193", "0.5168823", "0.5164601", "0.5156494", "0.49791023", "0.4946694", "0.49439698", "0.49355307", "0.49344686", "0.49076894", "0.4874858", "0.48693284", "0.47986573", "0.4796478", "0.47914252", "0.4783648", "0.47775742", "0.47661275", "0.474996", "0.4746034", "0.47252548", "0.46944538", "0.4679891", "0.46734664", "0.46495518", "0.4625849", "0.46216533", "0.46019593", "0.46007124", "0.45928192", "0.45857075", "0.45628276", "0.4547348", "0.45469546", "0.45421958", "0.45394593", "0.45331064", "0.45296457", "0.45148906", "0.4510085", "0.4509781", "0.44965532", "0.4493015", "0.44923684", "0.4483084", "0.44765568", "0.4474612", "0.44742763", "0.4473448", "0.4458188", "0.44515938", "0.44506168", "0.444763", "0.4443419", "0.4439747", "0.44379032", "0.44338274", "0.44125456", "0.44107622", "0.4409074", "0.44086552", "0.4408396", "0.44077563", "0.4406661", "0.4398101", "0.43973318", "0.4394214", "0.43904462", "0.43876675", "0.43844658", "0.43790215", "0.43777242", "0.437192", "0.4358448", "0.43583432", "0.4347229", "0.43386865", "0.43382436", "0.43358403", "0.43323928", "0.43318865", "0.43305722", "0.43287408", "0.43247724", "0.4301821", "0.42987683", "0.42948225", "0.4294681", "0.42929214" ]
0.6893118
0
The Init() method actually sets up the sandbox and invokes the command inside it. Returns 1 on success, 0 on failure.
public int Init() { try { process = Runtime.getRuntime().exec(command); } catch (Exception e) { return 0; } if (process == null) { return 0; } childStdin = new OutputStreamWatcher(process.getOutputStream()); childStdout = new InputStreamWatcher(process.getInputStream()); childStderr = new InputStreamWatcher(process.getErrorStream()); childStdin.start(); childStdout.start(); childStderr.start(); return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void invokeInitBlock(PythonFacet init, String env) {\n\t\tString body=init.getBody();\n\t\tPythonInterpreter environment = registerEnv(env);\n\t\tif (body !=null && !body.trim().equals(\"\")) {\n\t\t\tenvironment.exec(body);\n\t\t}\n\n\t}", "@Test\n public void testConstructor() {\n interpreterInstance.interpret(\"cd \");\n Command testCommand = interpreterInstance.getCommand();\n List<String> testArguments = interpreterInstance.getArguments();\n assertEquals(\"driver.ChangeDirectory\", testCommand.getClass().getName());\n assertTrue(testArguments.isEmpty());\n }", "public Cli() {\r\n\t\tthis.retValue = 0;\r\n\t}", "public abstract String initExecute() throws Exception;", "public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}", "public void initDefaultCommand() \n {\n }", "@Override\n\tpublic int doInit() throws RadowException {\n\t\tthis.setNextEventName(\"initX\");\n\t\treturn EventRtnType.NORMAL_SUCCESS;\n\t}", "public void teleopInit() {\n // Initalize test command\n Jagbot.isAutonomous = false;\n MessageWindow.write(1, \"Robot init\");\n //testCommand = new TestCommand();\n //testCommand.start();\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand()\n {\n }", "@Before\n public void init() {\n entityKVStateStoreMock = Mockito.mock(KeyValueStore.class);\n processorContextMock = Mockito.mock(ProcessorContext.class);\n when(processorContextMock.getStateStore(\"dummy\")).thenReturn(entityKVStateStoreMock);\n\n // Let's create tested object.\n commandProcessor = new CommandProcessor(\"dummy\");\n commandProcessor.init(processorContextMock);\n }", "public void initializeSandbox() {\n ImageDecoderJni.get().initializePhotoPickerSandbox();\n mSandboxInitialized = true;\n }", "public void intialRun() {\n }", "public Sandbox(String command) {\n\tchildStdin = null;\n\tchildStdout = null;\n\tchildStderr = null;\n\tthis.command = command;\n\tprocess = null;\n\tthis.trapStderr = true;\n\tisAlive = false;\t\n }", "public void initDefaultCommand() {\n \n }", "public void initDefaultCommand() {\n\t}", "public void initDefaultCommand() {\n \n }", "public void initDefaultCommand()\n\t{\n\t}", "public native void initiate(String config);", "@Override\n public native boolean init(String blendFile, String configFile, String EtcPath);", "protected void initialize () {\r\n if (initCommand!=null) matlabEng.engEvalString (id,initCommand);\r\n }", "public Shell() {\n commandNumber = 0;\n prevPID = -1;\n command = \"\";\n }", "public int start( String[] cmdLine )\n {\n int exitCode = 0;\n Console console = null;\n\n if (null == System.getSecurityManager())\n {\n System.setSecurityManager( new RMISecurityManager() );\n }\n\n // Load the hsp properties.\n Property.loadProperties( cmdLine );\n Property.load( TuiConsole.class );\n\n // See if the command line has the console.\n String registryHost = System.getProperty( Console.JICOS_CONSOLE_HOST );\n int registryPort = RegistrationManager.PORT;\n boolean showHelp = false;\n //\n switch (cmdLine.length)\n {\n case 1:\n if (\"-help\".equals( cmdLine[0] ))\n {\n showHelp = true;\n }\n else\n {\n loadStartupConfig( cmdLine[0] );\n }\n break;\n\n case 0:\n break;\n\n default:\n showHelp = true;\n exitCode = 1;\n break;\n }\n\n if (showHelp)\n {\n System.err.println( \"Usage: <java> TuiConsole [config.xml]\" );\n if( 0 != exitCode )\n {\n System.exit( exitCode );\n }\n }\n\n \n // Startup files.\n String fileName = null;\n String homePrefix = \"/.jicos/\";\n String localPrefix = \".\";\n String suffix = \".conf\";\n \n if( System.getProperty( \"os.name\" ).toLowerCase().startsWith( \"window\" ) )\n {\n homePrefix = \"Application Data/Jicos/\";\n localPrefix = \"\";\n }\n \n // See if there is a global startupfile.\n if( null != (fileName = System.getProperty( \"user.home\" )) )\n {\n fileName += homePrefix + \"tuiconsole\" + suffix;\n doStartup( new File( fileName ) );\n }\n \n // See if there is a start-up file in the local directory\n fileName = \"./\" + localPrefix + \"tuiconsole\" + suffix;\n doStartup( new File( fileName ) );\n \n mainLoop();\n return (CMD_Error);\n }", "public FrameworkCommand(String input, ObjectType init) \n {\n commandString = input.toUpperCase();\n initiator = init;\n\n // todo: verb as first word?\n \n /* This is a crummy timestamp.. We'll hope to do better in subclasses \n using scheduler instances. */\n lTimestamp = System.currentTimeMillis() * 1000;\n }", "protected void initDefaultCommand() {\n \t\t\n \t}", "@Stub\n\tpublic void init()\n\t{\n\t\t//\n\t}", "public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}", "public void _run() {\n String[] args = (String[])tEnv.getObjRelation(\"ARGS\");\n\n log.println(\"Running with arguments:\");\n for (int i=0; i< args.length; i++)\n log.println(\"#\" + i + \": \" + args[i]);\n\n oObj.run(args);\n\n tRes.tested(\"run()\", true);\n }", "public void init()\n {\n _appContext = SubAppContext.createOMM(System.out);\n _serviceName = CommandLine.variable(\"serviceName\");\n initGUI();\n }", "public void setInit(ContainerProgram init)\n {\n _init = init;\n }", "public Sandbox(String command, boolean trapStderr) {\n\tchildStdin = null;\n\tchildStdout = null;\n\tchildStderr = null;\n\tthis.command = command;\n\tprocess = null;\n\tthis.trapStderr = trapStderr;\n\tisAlive = false;\n }", "@BeforeClass\r\n public void setUp() {\r\n super.commandSetUp();\r\n setCommand(new DoDeposit());\r\n }", "public FrameworkCommand(String input, String _verb, ObjectType init) \n {\n this(input, init);\n setVerb(_verb);\n }", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new Climb());\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() \n {\n }", "private String doInit(int i, String[] args) throws SoarException\r\n {\n smem.smem_close();\r\n\r\n // production memory (automatic init-soar clears working memory as a result) \r\n //this->DoCommandInternal( \"excise --all\" );\r\n \r\n // Excise all just removes all rules and does init-soar\r\n final Agent agent = Adaptables.require(getClass(), context, Agent.class);\r\n for(Production p : new ArrayList<Production>(agent.getProductions().getProductions(null)))\r\n {\r\n agent.getProductions().exciseProduction(p, false);\r\n }\r\n agent.initialize();\r\n \r\n return \"\";\r\n }", "void execSetupContext(ExecProcess ctx);", "@Override\n public void initDefaultCommand() {\n\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "private void initialize() {\n if (!stopped.get()) {\n \tSystem.out.printf(\"Starting Red5 with args: %s\\n\", Arrays.toString(commandLineArgs));\n // start\n try {\n\t\t\t\tBootstrap.main(commandLineArgs);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n }", "@Override\n public void autonomousInit() {\n\n autonomousCommand = new Autonomous(start.getSelected(), chooser.getSelected());\n \n autonomousCommand.start();\n }", "public static void init(){\r\n CommandBase.magazine.setSpeed(0.0);\r\n CommandBase.loader.setSpeed(0.0);\r\n Init.manualTankDrive.start(); \r\n Init.runCompressor.start();\r\n Init.stopGyroDrift.start();\r\n \r\n }", "private CommandLine() {\n\t}", "public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }", "public void initDefaultCommand() {\n\t\t// Don't do anything\n }", "@Override\r\n\tpublic void init(GameContainer c, RunState s) {\n\t\t\r\n\t}", "private Shell() { }", "public final int init(STAFServiceInterfaceLevel3.InitInfo initInfo)\n\t{\n\t\tInfoInterface.InitInfo info = new InfoInterface.InitInfo(initInfo.name,initInfo.parms);\n\t\tSTAFResult result = super.init(info);\n\t\treturn result.rc;\n\t}", "public static void programStandardInit() {\r\n System.setSecurityManager(null);\r\n LoggingUtils.setupConsoleOnly();\r\n }", "private void startUp () {\n NativeMethodBroker.loadLibrary(false);\n try {\n start_up();\n } catch (UnsatisfiedLinkError e) {\n try {\n NativeMethodBroker.loadLibrary(true);\n NativeMethodBroker.traceln(AX_PROGRESS, \"There apparently were problems \" +\n \"in initially loading JavaContainer.dll. \" +\n \"It appears to be ok now. Error message \" +\n \"was \" + e.getMessage());\n start_up();\n } catch (UnsatisfiedLinkError e2) {\n NativeMethodBroker.traceln(AX_ERROR, fatalErrorMessage +\n \" Error message was: \" + e2.getMessage());\n // Really should exit here.\n // System.exit(-1);\n }\n }\n }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new TestCommandEye());\n }", "public void autonomousInit() {\n autonomousCommand = (Command) autoChooser.getSelected();\n autonomousCommand.start();\n// \n }", "@Override\n public void init(DaemonContext ctx) throws Exception {\n \tSystem.out.println(\"Daemon init\");\n }", "public void autonomousInit() {\n //autonomousCommand = (Command) chooser.getSelected();\n autoLoopCounter = 0; //This resets the loop counter to 0\n //if (autonomousCommand != null) autonomousCommand.start();\n }", "@Override\n\tpublic void teleopInit() {\n\t\tservoCIMCommand.start();\n\t\tmonitorCommand.start();\n\t\twindowCommand.start();\n\t\t\n\t}", "public static void startActionInit(Context context) {\n try {\n Intent intent = new Intent(context, InitService.class);\n context.startService(intent);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "public void init(){\n System.out.println(\"调用init\");\n }", "private void init(){\n if(!initializing) {\n Initializer init = new Initializer();\n InitializationDetails initializationDetails = new InitializationDetails(url, download, reset, deviceID, this);\n init.execute(initializationDetails);\n initializing = true;\n }\n }", "@Test\r\n public void testInitSession() {\r\n System.out.println(\"initSession\");\r\n assertNotNull(sm);\r\n \r\n boolean result = sm.initSession(\"test1\", programsHome, programsHome + \"files1/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test2\", programsHome, programsHome + \"files2/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test3\", programsHome, programsHome + \"files3/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n assertTrue(result);\r\n \r\n sm.removeSession(\"test4\");\r\n }", "public CLI()\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = \"\";\r\n\t\t//this.exitStr = exitStr;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}" ]
[ "0.5283492", "0.52411", "0.5212989", "0.5183645", "0.51456136", "0.50685453", "0.5042416", "0.50368506", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5033045", "0.5007656", "0.49649698", "0.49525422", "0.49431884", "0.49225283", "0.4918158", "0.49098122", "0.48942298", "0.48933348", "0.48840582", "0.48741925", "0.4829565", "0.48208824", "0.47655952", "0.4760258", "0.4744536", "0.47413173", "0.47224414", "0.47175863", "0.47031292", "0.4703124", "0.47026637", "0.46985745", "0.46927825", "0.46902785", "0.4677671", "0.4677671", "0.4677671", "0.4677671", "0.4677671", "0.4677671", "0.4677671", "0.4676436", "0.4663238", "0.46562213", "0.46519524", "0.46511742", "0.46392846", "0.46392846", "0.46392846", "0.46392846", "0.46392846", "0.46392846", "0.46378657", "0.46199343", "0.4598667", "0.45932886", "0.45832956", "0.4574911", "0.45650983", "0.4535463", "0.4531322", "0.45259076", "0.452158", "0.45194933", "0.45130068", "0.45074487", "0.44935423", "0.4493462", "0.44925594", "0.44860715", "0.4478803", "0.44700128", "0.446119", "0.44600463", "0.44582534", "0.44582534" ]
0.57494605
0
Destroys the spawned process.
public void Kill() { if (process != null) { process.destroy(); childStdin.Kill(); childStdout.Kill(); childStderr.Kill(); } process = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close() {\n myProcess.destroy();\n }", "public final void destroy()\n {\n processDestroy();\n super.destroy();\n }", "@Override\n\tpublic void destroyProcess() {\n\t\tsuper.destroyProcess();\n\t\tDataDirRemoverHandler ddhHandler = \n\t\t\tnew DataDirRemoverHandler(getLogHandler());\n\t\tddhHandler.setRetryLimitInMillis(2000);\n\t\tddhHandler.execute();\n\t\tportsInUse.remove(port);\n\t}", "public final void destroy() {\n requestExit();\n }", "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}", "public void abort()\n\t{\n\t\tif(process != null)\n\t\t\tprocess.destroy();\n\t}", "public void destroy() {\n this.octaveExec.destroy();\n }", "public void destroy() {\n _aborted = true;\n for(int i=0; i<_processes.length; ++i) {\n if (_processes[i]!=null) { _processes[i].destroy(); }\n }\n stopAllRedirectors();\n }", "protected void processDestroy()\n {\n }", "public void destroy(){\n runner.destroy();\n }", "public void destroy() {\r\n Display.destroy();\r\n System.exit(0);\r\n }", "public static void destroy() {\n\t}", "public void destroy() {}", "public void destroy() {}", "public void destroy() {\n AwPacProcessorJni.get().destroyNative(mNativePacProcessor, this);\n }", "public void destroy() {\n \t\n }", "public void destroy() {\n this.bfc.cleanUp();\n }", "public final synchronized void destroy()\n {\n if (running_)\n {\n strategy_.destroy();\n running_ = false;\n }\n }", "public void destroy() {\n destroyIn(0);\n }", "public synchronized static void destroy() {\n if (isInitialized()) {\n Map<String, ProcessEngine> engines = new HashMap<String, ProcessEngine>(processEngines);\n processEngines = new HashMap<String, ProcessEngine>();\n\n for (String processEngineName : engines.keySet()) {\n ProcessEngine processEngine = engines.get(processEngineName);\n try {\n processEngine.close();\n } catch (Exception e) {\n log.error(\"exception while closing {}\", (processEngineName == null ? \"the default process engine\" : \"process engine \" + processEngineName), e);\n }\n }\n\n processEngineInfosByName.clear();\n processEngineInfosByResourceUrl.clear();\n processEngineInfos.clear();\n\n setInitialized(false);\n }\n }", "public void destroy() {\r\n }", "@Override\n protected void onDestroy() {\n android.os.Process.killProcess(android.os.Process.myPid());\n super.onDestroy();\n // this.finish();\n }", "public void destroy()\r\n\t{\r\n\t\tlog.fine(\"destroy\");\r\n\t}", "public void destroy()\n\t{\n\t\tM_log.info(\"destroy()\");\n\t}", "public void destroy()\r\n\t{\r\n\t}", "public void destroy()\r\n {\r\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy() {\r\n\r\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy()\r\n\t{\n\t\t\r\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy()\n\t{\n\t}", "public void destroy() {\n }", "public void destroy()\r\n {\n }", "public void destroy() {\n this.alive = false;\n }", "@Override\n public void destroy() {\n super.destroy();\n logger.log(Level.INFO, \"destory() Invoked\");\n }", "public void destroy() {\n this.running = false;\n\n try {\n this.join();\n } catch (InterruptedException e) {\n RayonCore.LOGGER.error(\"Error joining \" + getName());\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}", "public static void kill(){\r\n\t\tDisplay.destroy();//create Display\r\n\t\tMouse.destroy();//create Mouse\r\n\t\tKeyboard.destroy();//create Keyboard\r\n\t}", "public static void cancelProcess() {\r\n\r\n if (m_Proc != null) {\r\n if (m_bProcInterruptible) {\r\n m_Proc.destroy();\r\n m_Proc = null;\r\n m_bProcCanceled = true;\r\n }\r\n }\r\n\r\n }", "public void destroy() throws Exception;", "public void destroy() {\n\t\tsuper.destroy(); \n\t\t// Put your code here\n\t}", "public void destroy() {\n\r\n\t}", "public void destroy() {\n\r\n\t}", "public void destroy() {\n\r\n\t}" ]
[ "0.7551027", "0.72496706", "0.7240337", "0.6946328", "0.68755454", "0.6858697", "0.6791782", "0.6674599", "0.657801", "0.6539147", "0.6515822", "0.6498201", "0.64869225", "0.64869225", "0.6470262", "0.6447789", "0.64380836", "0.6425378", "0.63967705", "0.6391", "0.63795465", "0.63545847", "0.635362", "0.6350595", "0.6341234", "0.6340018", "0.6339233", "0.6339233", "0.6339233", "0.6339233", "0.6339233", "0.6339233", "0.6339233", "0.6339233", "0.6339233", "0.6339233", "0.6339233", "0.632399", "0.632399", "0.632399", "0.632399", "0.632399", "0.632399", "0.632399", "0.632399", "0.631622", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.6307266", "0.63033617", "0.63033617", "0.63033617", "0.63033617", "0.6285324", "0.62591195", "0.62591195", "0.62591195", "0.62591195", "0.62591195", "0.62591195", "0.62576574", "0.62576574", "0.62576574", "0.62576574", "0.62576574", "0.62576574", "0.6231695", "0.62210834", "0.62200326", "0.6195853", "0.61631304", "0.6153461", "0.61383426", "0.61383426", "0.61383426", "0.61383426", "0.61383426", "0.61383426", "0.61383426", "0.61383426", "0.61383426", "0.6126224", "0.6112708", "0.60948986", "0.60906935", "0.60886717", "0.60886717", "0.60886717" ]
0.73153454
1
Returns true if the spawned process is thought to be alive. If something is known to be wrong with the process, then false is returned. Examples include if an IO function has failed or if the Kill() function has been called.
public boolean IsAlive() { return process != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isAlive(Process p) { \n\t\ttry{ \n\t\t\tp.exitValue(); \n\t\t\treturn false; \n\t\t}catch (IllegalThreadStateException e) { \n\t\t\treturn true; \n\t\t} \n\t}", "boolean isAlive() throws RemoteException;", "public boolean isAlive() throws RemoteException;", "public boolean isAlive () {\n return (daemon != null) && daemon.isAlive();\n }", "public final boolean isAlive() {\n return alive;\n }", "public boolean isAlive()\n\t{\n\t\treturn alive;\n\t}", "public boolean isAlive()\n\t{\n\t\treturn alive;\n\t}", "protected boolean isAlive()\n {\n return alive;\n }", "protected boolean isAlive()\n {\n return alive;\n }", "public boolean isAlive() {\n\t\treturn aliveStatus;\n\t}", "public static boolean isAlive() {\n\t\treturn (display != null && shell != null && !display.isDisposed() && !shell.isDisposed() && !isClosing);\n\t}", "public boolean isAlive() {\n\t\treturn alive;\n\t}", "public boolean isAlive() {\n\t\treturn alive;\n\t}", "public boolean isAlive() {\n\t\treturn alive;\n\t}", "public boolean isAlive() {\r\n\t\treturn alive;\r\n\t}", "public boolean isAlive();", "public final boolean isAlive() { return true; }", "public boolean isAlive() {\n return alive;\n }", "public boolean isAlive() {\n return alive;\n }", "public Boolean isRunning() {\n\t\t// We don't know if it is an external process or not yet ---------------\n\t\t// (first check in the program or after a stop)\n\n\t\tif (this.isManagedExternally == null) {\n\t\t\tif (this.isExternalBackendRunning()) {\n\t\t\t\tthis.isManagedExternally = true;\n\t\t\t\treturn true; // to avoid unnecessary duplicate request below\n\t\t\t} else {\n\t\t\t\tthis.isManagedExternally = false;\n\t\t\t}\n\t\t}\n\n\t\t// Externally managed --------------------------------------------------\n\n\t\tif (this.isManagedExternally) {\n\t\t\treturn this.isExternalBackendRunning();\n\t\t}\n\n\t\t// We manage the process ourself ---------------------------------------\n\n\t\treturn this.processRunner.isRunning();\n\t}", "public boolean isAlive()\n {\n return alive;\n }", "public boolean isAlive()\r\n\t{\r\n\t\treturn internalThread.isAlive();\r\n\t}", "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 isAlive();", "boolean isAlive();", "public boolean isAlive() { return alive; }", "public boolean isAlive() {\n\t\treturn isAlive;\n\t}", "public boolean isAlive() {\n return health > 0;\n }", "public final boolean isAlive() {\n\t\tboolean isAlive = (new File(getFileNamePath())).isFile();\n\n\t\tif (isAlive) {\n\t\t\ttry (Socket socket = new Socket()) {\n\t\t\t\t// this will throw an exception if the socket is in use/unavailable.\n\t\t\t\tsocket.bind(\n\t\t\t\t\t\tnew InetSocketAddress(InetAddress.getLoopbackAddress().getHostAddress(), getPublisherPort()));\n\t\t\t\tisAlive = false;\n\t\t\t} catch (IOException e) {\n\t\t\t\tisAlive = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (SystemUtils.isInDebugMode()) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!isAlive) {\n\t\t\t// we should try to delete the file; this may be left over from a crashed\n\t\t\t// process..\n\t\t\tFileUtils.safeDeleteFile(getFileNamePath());\n\t\t}\n\n\t\treturn isAlive;\n\t}", "@Override\n public final boolean isAlive() {\n return safetyHelper.isAlive();\n }", "public boolean isAlive() {\r\n\t\treturn hp > 0;\r\n\t}", "public boolean isAlive(){\n \t\treturn alive;\n \t}", "public boolean isAlive() {\n\t\treturn this.alive;\n\t}", "public boolean isAlive() {\r\n\t\treturn life > 0;\r\n\t}", "public boolean hasDied() {\n return !isAlive();\n }", "public boolean isAlive(){\n\t\treturn isAlive;\n\t}", "public boolean isAlive() {\n\t\tif (combox == null){\n\t\t\treturn false;\n\t\t}\n\t\tPOPBuffer popBuffer = combox.getBufferFactory().createBuffer();\n\t\tMessageHeader messageHeader = new MessageHeader(0,\n\t\t\t\tMessageHeader.OBJECT_ALIVE_CALL, Semantic.SYNCHRONOUS);\n\t\tmessageHeader.setRequestID(requestID.incrementAndGet());\n\t\tpopBuffer.setHeader(messageHeader);\n\n\t\tpopDispatch(popBuffer);\n\t\tboolean result = false;\n\t\ttry {\n\t\t\tPOPBuffer responseBuffer = combox.getBufferFactory().createBuffer();\n\t\t\tpopResponse(responseBuffer, messageHeader.getRequestID());\n\t\t\tresult = responseBuffer.getBoolean();\n\t\t} catch (POPException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn result;\n\t}", "public boolean isAlive() {\n return this.getHealthPower().hasSomeHealth();\n }", "public boolean isAlive(){\r\n\t\tif(dead==true){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public boolean isAlive() {\n synchronized (this) {\n return mIsAlive;\n }\n }", "public boolean isAlive(){\n \treturn alive;\r\n }", "boolean isAlive() { return alive; }", "public boolean isAlive() {\n\t\treturn state;\n\t}", "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 }", "public boolean connectionAlive() throws RemoteException;", "private boolean isAlive()\n {\n if (null != t && t.isAlive())\n {\n return true;\n }\n return false;\n }", "protected boolean getIsAlive() {\n\t\treturn isAlive;\n\t}", "public boolean isAlive(){\n\t\treturn lifeForce > 0;\n\t}", "public boolean isAlive() {\n return this.isAlive;\n }", "public static boolean isRunning() {\n return _thd != null && _thd.isAlive();\n }", "public boolean isOnline() {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process ipProcess = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n int exitValue = ipProcess.waitFor();\n return (exitValue == 0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return false;\n }", "protected java.lang.Boolean getIsAlive() throws Exception {\n return _isAlive;\n }", "public boolean isAlive(){\n if(this.hp <= 0){\n return false;\n }\n else{\n return true;\n }\n }", "boolean getIsAlive();", "public boolean isAlive() {\r\n return (lives() > 0);\r\n }", "public boolean alive() {\r\n\t\treturn myHP > 0;\r\n\t}", "public boolean isDead() {\r\n\t\treturn !isAlive();\r\n\t}", "public boolean isAlive(){\r\n\t\treturn Thread.currentThread() == workerThread;\r\n\t}", "public boolean isAlive(){\r\n if (currHP > 0){\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean notAlive() {\r\n\r\n if (LOG.isLoggable(Level.FINEST)) {\r\n LOG.finest(\"notAlive ( ) called \");\r\n }\r\n\r\n return !alive();\r\n }", "boolean getAlive();", "protected boolean isFinished() {\n return Math.abs(pid.getError()) < 0.25;\n }", "public boolean getIsAlive() {\n return isAlive;\n }", "public boolean getAlive() {\n return alive_;\n }", "private static boolean isHealthyUnderPath(String path, long timeout) {\n if (path == null) {\n return true;\n }\n List<String> commands = generateCommands(path);\n if (commands != null && commands.size() > 0) {\n for (String command : commands) {\n ScriptProcessLauncher scriptProcessLauncher = new ScriptProcessLauncher(command, timeout);\n ExitStatus exit = scriptProcessLauncher.launch();\n if (exit.equals(ExitStatus.FAILED)) {\n return false;\n }\n }\n return true;\n } else {\n return true;\n }\n }", "boolean stillAlive();", "public boolean getAlive() {\n return instance.getAlive();\n }", "public static boolean isRemoteAlive(Object obj) {\n if (obj instanceof IBinder) {\n return ((IBinder) obj).isBinderAlive();\n }\n\n if (obj instanceof _IRemote) {\n IBinder binder = ((_IRemote) obj)._asBinder();\n if (binder != null) {\n return binder.isBinderAlive();\n }\n }\n\n return false;\n }", "public boolean isRunning()\n\t{\n\t\tif(mBoundService != null){\t// Service already started\n\t\t\tif(mBoundService.testThread != null && mBoundService.testThread.isAlive())\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}else{\n\t\t\tLog.v(\"4G Test\", \"mBoundService null not running\");\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasActiveInternetConnection()\n {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process ipProcess = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n int exitValue = ipProcess.waitFor();\n return (exitValue == 0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return false;\n }", "public boolean spawnWorker() {\n JSONObject args = new JSONObject();\n return (boolean)this.runOnServer(\"spawnWorker\", args);\n }", "private static boolean isProcessRunning(ManufactureProcessInfo processInfo, Manufacture manufactureBuilding) {\n\t\tboolean result = false;\n\n\t\tIterator<ManufactureProcess> i = manufactureBuilding.getProcesses().iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tManufactureProcess process = i.next();\n\t\t\tif (process.getInfo().getName() == processInfo.getName()) {\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\n public boolean isAlive() {\n return health > 0f;\n }", "public boolean isKilled() {\n return killed;\n }", "boolean hasExitStatus();", "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 socketStillAlive() {\n if (bluetoothSocket != null)\n return bluetoothSocket.getSocket() != null;\n return false;\n }", "boolean isMonitoringTerminated();", "private static boolean isServerReachable() {\n\t\treturn new PingRpcExample().pingServer();\n\t}", "public boolean isKeepAlive()\r\n/* 147: */ {\r\n/* 148: */ try\r\n/* 149: */ {\r\n/* 150:167 */ return this.javaSocket.getKeepAlive();\r\n/* 151: */ }\r\n/* 152: */ catch (SocketException e)\r\n/* 153: */ {\r\n/* 154:169 */ throw new ChannelException(e);\r\n/* 155: */ }\r\n/* 156: */ }", "public boolean isRunning ()\n {\n return server == null ? false : true;\n }", "boolean hasKeepAlive();", "public boolean isPlayerAlive() {\r\n\t\treturn !(this.getRobotsAlive().isEmpty());\r\n\t}", "public boolean lokiAlive() {\n\t\tif (lokiHp <= 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\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}", "Boolean isDead();", "final boolean checkAlive() {\r\n\t\t\r\n\t\tif (this.conn == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tif (this.conn.isClosed()) {\r\n\t\t\t\tthis.conn = null;\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (--this.loops < 0 || this.date < System.currentTimeMillis()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.conn.close();\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\tthis.conn = null;\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (this.databaseType == ConnectionHolder.DT_UNKNOWN) {\r\n\t\t\t\tthis.databaseType = this.conn.getMetaData().getDatabaseProductName().toUpperCase().indexOf(\"ORACLE\") == -1\r\n\t\t\t\t\t? ConnectionHolder.DT_NORMAL\r\n\t\t\t\t\t: ConnectionHolder.DT_ORACLE;\r\n\t\t\t}\r\n\t\t\ttry (final Statement st = this.conn.createStatement()) {\r\n\t\t\t\t/** Do not use it here, may be unsupported? */\r\n\t\t\t\ttry {\r\n\t\t\t\t\tst.setQueryTimeout(10);\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\tst.execute(\r\n\t\t\t\t\t\tthis.databaseType == ConnectionHolder.DT_ORACLE\r\n\t\t\t\t\t\t\t? \"SELECT 5 FROM DUAL\"\r\n\t\t\t\t\t\t\t: \"SELECT 5\");\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t} catch (final SQLException e) {\r\n\t\t\tif (this.conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.conn.close();\r\n\t\t\t\t} catch (final Throwable t) {\r\n\t\t\t\t\t// ignore\r\n\t\t\t\t}\r\n\t\t\t\tthis.conn = null;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean isDead();", "public boolean start()\n {\n try\n {\n proc = pb.start();\n return true;\n }\n catch(IOException ex)\n {\n System.err.println(\"PalsProcess ~ failed to start process ~ \"+ex.getMessage());\n return false;\n }\n }", "static synchronized boolean isCurrentRMIServerThreadSocketAlive()\n\t{\n\t\tif (threadSocketMap == null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tfinal Socket socket = threadSocketMap.get(Thread.currentThread());\n\n\t\tboolean isAlive = true;\n\n\t\ttry\n\t\t{\n\t\t\tif (socket == null || socket.isClosed())\n\t\t\t{\n\t\t\t\tisAlive = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\t * When a client explicitly interrupts the InterruptibleRMIThread, the special value\n\t\t\t\t * SHUTDOWN_SOCKET is written to the socket indicating it should shut down.\n\t\t\t\t */\n\n\t\t\t\tfinal InputStream in = socket.getInputStream();\n\n\t\t\t\tif (in.available() > 0)\n\t\t\t\t{\n\t\t\t\t\tfinal int val = in.read();\n\n\t\t\t\t\tif (val == InterruptibleRMISocket.SHUTDOWN_SOCKET)\n\t\t\t\t\t{\n\t\t\t\t\t\tisAlive = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tcatch (final Exception e)\n\t\t{\n\t\t\t/*\n\t\t\t * If an exception occurs while calling an operation on the socket, then it's fair to\n\t\t\t * assume that the socket is dead.\n\t\t\t */\n\t\t\tisAlive = false;\n\t\t}\n\n\t\treturn isAlive;\n\t}", "public boolean processRunning(String process, String[] processList) {\n process = process.toLowerCase();\n\n for (String processItem : processList) {\n try {\n // should not kill system32 processes, as it might kill the system\n if (processItem.contains(\"System32\"))\n break;\n\n processItem = processItem\n .substring(processItem.lastIndexOf(\"\\\\\") + 1, processItem.length())\n .toLowerCase();\n\n if (processItem.equals(process))\n return true;\n\n } catch (NullPointerException e) {\n // do not care about nulls\n }\n }\n\n return false;\n }", "public boolean ping() throws RemoteException;", "boolean isTerminated();", "public boolean isOkay() {\n return BPMNode.getStatus();\n }", "public boolean checkConnection() {\n\t\ttry {\n\t\t\tif (con.isClosed() || !isAlive) {\n\t\t\t\treturn connect();\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean keepAlive() {\n\t\tDate date = LocPairsServerTime.getTime();\n\t\tthis.lastLifeSign = date;\n\t\treturn true;\n\t}", "public boolean hasExited() {\n return this.exited;\n }", "public Boolean ping() throws DynamicCallException, ExecutionException {\n return (Boolean)call(\"ping\").get();\n }", "public boolean isValid()\n\t{\n\t\treturn isValidPort(getPort()) && isValidHostname(getHost()) && m_bUseInterface &&\n\t\t\t(m_endOfBlocking < System.currentTimeMillis());\n\t}", "public boolean canLease(String processName) {\n return lockStorage.getProcessLock(processName, normalizeDate(LocalDateTime.now())) != LockState.LEASED;\n }" ]
[ "0.7503467", "0.6987067", "0.68888766", "0.68195933", "0.66987985", "0.6695256", "0.6695256", "0.6693435", "0.6693435", "0.669176", "0.66382045", "0.663452", "0.663452", "0.663452", "0.6620308", "0.65425545", "0.65314275", "0.6529631", "0.6529631", "0.651909", "0.6506971", "0.6478535", "0.6478019", "0.6461311", "0.6461311", "0.64461786", "0.6424971", "0.6400782", "0.63813597", "0.63725793", "0.6358923", "0.6348932", "0.630119", "0.62921023", "0.6281927", "0.62677205", "0.6231237", "0.6221886", "0.6214627", "0.6211861", "0.6209503", "0.62020427", "0.6185147", "0.6165143", "0.6153824", "0.6144025", "0.6140663", "0.6125452", "0.61205137", "0.6116974", "0.6084795", "0.60769886", "0.60746807", "0.6070392", "0.6060787", "0.6050944", "0.5970675", "0.59643596", "0.5946783", "0.5942424", "0.59388274", "0.5918077", "0.59160495", "0.5899556", "0.5896865", "0.58622766", "0.58448607", "0.5835831", "0.5831206", "0.581372", "0.58069384", "0.57639915", "0.5757782", "0.5696488", "0.568927", "0.5671952", "0.5671162", "0.5622182", "0.5612609", "0.56051344", "0.55959255", "0.55946445", "0.5589172", "0.55490714", "0.554718", "0.5542117", "0.55339617", "0.5501116", "0.5494764", "0.5492421", "0.54880095", "0.5477451", "0.54709953", "0.5468713", "0.5464059", "0.5460732", "0.5456393", "0.5452335", "0.54347396", "0.5408184" ]
0.7516445
0
Writes the given string to the stdin channel of the spawned process, followed by a single newline character (\n). On success, returns the number of bytes written. On error, 1 is returned.
public int WriteLine(String message) { Write(message); childStdin.AddCharacters("\n"); return message.length() + 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int Write(String message) {\n\tchildStdin.AddCharacters(message);\n\treturn message.length();\n }", "OutputStream getStdin();", "public void write(String text) throws ShellIOException;", "public void send() throws InterruptedException, IOException\n {\n netCat.setInput( new ByteArrayInputStream( inputFromTest.getBytes() ) );\n netCat.execute( SEND.toString() );\n latch.await( 5, TimeUnit.SECONDS );\n\n assertNotNull( result );\n assertEquals( SEND, result.op );\n\n // Wait till nc process will be started definitely\n while( process == null ) {\n Thread.sleep( 100 );\n }\n\n // Get received string by external nc process\n BufferedReader b = new BufferedReader( new InputStreamReader( process.getInputStream() ) );\n String line;\n do {\n line = b.readLine();\n Log.i( CLASS_NAME, line );\n } while( !INPUT_TEST.equals( line ) );\n }", "public static void writeWithSystemNewlines (BufferedWriter writer, String string)\n\t\t\tthrows IOException {\n\t\tfor (int i=0; i<string.length(); i++) {\n\t\t\tchar c = string.charAt(i);\n\t\t\tif (c == '\\n')\n\t\t\t\twriter.newLine();\n\t\t\telse\n\t\t\t\twriter.write(c);\n\t\t}\n\t}", "public String ReadLine() {\n\tString s = childStdout.Readline();\n\treturn s;\n }", "public void writeln(String text) throws ShellIOException;", "public int writeString(String src) {\n // Convert the argument strings to ASCII\n byte[] srcAsBytes;\n src += \"\\r\";\n try {\n srcAsBytes = src.getBytes(\"US-ASCII\");\n } catch (UnsupportedEncodingException e) {\n // Very very unlikely in the near-scope of the project.\n return -1;\n }\n print(\"Wrote :\" + src + \":\");\n return write(srcAsBytes);\n }", "public void write(String s) throws IOException {\n\t\tString logmsg = toString() + \".write(\" + s + \")\";\n\t\t_log.trace(logmsg);\n\n\t\ttry {\n\t\t\t_commandLine.write(s);\n\n\t\t\t// FIXME: Do we need both CR and LF ?\n\t\t\t_commandLine.write(Ascii.CR);\n\t\t\t_commandLine.write(Ascii.LF);\n\t\t}\n\t\tcatch(IOException ioe) {\n\t\t\t_log.error(logmsg,ioe);\n\t\t\tthrow(ioe);\n\t\t}\n\t}", "public abstract InputStream stdout();", "public final int Write(String str)\n\t\tthrows IOException, SMBException {\n\n\t\t// Write the whole buffer\n\n\t\tbyte[] byts = str.getBytes();\n\t\treturn Write(byts, byts.length, 0);\n\t}", "public int send(OutputStream out) throws IOException;", "InputStream getStdout();", "public void receive() throws IOException, InterruptedException\n {\n while( process == null ) {\n Thread.sleep( 100 );\n }\n\n // Send string from external nc process\n new Thread( new Runnable()\n {\n @Override\n public void run()\n {\n try {\n process.getOutputStream().write( inputFromProcess.getBytes() );\n process.getOutputStream().flush();\n if( netCat instanceof UdpNetCat ) {\n Thread.sleep( 500 );\n process.getOutputStream().write( UdpNetCat.DISCONNECT_SEQUENCE.getBytes() );\n process.getOutputStream().flush();\n }\n process.getOutputStream().close();\n } catch( Exception e ) {\n e.printStackTrace();\n }\n }\n } ).start();\n\n // Receive string from external nc process\n netCat.createOutput();\n netCat.execute( RECEIVE.toString() );\n latch.await( 5, TimeUnit.SECONDS );\n\n assertNotNull( result );\n assertThat( result.op, is( RECEIVE ));\n String line = netCat.getOutputString();\n Log.i( CLASS_NAME, line );\n assertThat( line, is( INPUT_NC ));\n }", "public String readLine() throws ShellIOException;", "public static native void send( String cmd );", "private Response multilineCommand(String string2, int n) throws IOException {\n Response response = this.simpleCommand(string2);\n if (!response.ok) {\n return response;\n }\n SharedByteArrayOutputStream sharedByteArrayOutputStream = new SharedByteArrayOutputStream(n);\n int n2 = 10;\n do {\n int n3;\n block10 : {\n block9 : {\n if ((n3 = this.input.read()) < 0) break block9;\n if (n2 != 10 || n3 != 46) break block10;\n if (this.debug) {\n this.out.write(n3);\n }\n if ((n3 = this.input.read()) != 13) break block10;\n if (this.debug) {\n this.out.write(n3);\n }\n n3 = this.input.read();\n if (this.debug) {\n this.out.write(n3);\n }\n }\n if (n3 >= 0) break;\n throw new EOFException(\"EOF on socket\");\n }\n sharedByteArrayOutputStream.write(n3);\n if (this.debug) {\n this.out.write(n3);\n }\n n2 = n3;\n } while (true);\n response.bytes = sharedByteArrayOutputStream.toStream();\n return response;\n }", "public void sendString(String string) throws RemoteException, IOException, InterruptedException;", "private void writeLine(String s) throws IOException {\n\tfbuf.write(s, 0, s.length());\n\tfbuf.newLine();\n }", "public static void main(String[] args) throws IOException {\n\t\tProcess process = Runtime.getRuntime().exec(\"cmd /c start cmd\");\r\n\r\n\t\tBufferedWriter in = new BufferedWriter(new OutputStreamWriter(process\r\n\t\t\t\t.getOutputStream()));\r\n\t\tString line = \"2967 \";\r\n\t\tin.write(line);\r\n\t\tin.flush();\r\n\t\tin.close();\r\n\t\tInputStream out = process.getInputStream();\r\n\t\t// clean up if any output in stdout\r\n\t\tBufferedReader brCleanUp = new BufferedReader(\r\n\t\t\t\tnew InputStreamReader(out));\r\n\t\twhile ((line = brCleanUp.readLine()) != null) {\r\n\t\t\tSystem.out.println(\"[Stdout] \" + line);\r\n\t\t}\r\n\t\tbrCleanUp.close();\r\n\t\tprocess.destroy();\r\n\t}", "static String ReadLn(int maxLength) {\n byte line[] = new byte[maxLength];\n int length = 0;\n int input = -1;\n try {\n while (length < maxLength) { // Read untill maxlength\n input = System.in.read();\n if ((input < 0) || (input == '\\n'))\n break; // or untill end of line ninput\n line[length++] += input;\n }\n\n if ((input < 0) && (length == 0))\n return null; // eof\n return new String(line, 0, length);\n } catch (java.io.IOException e) {\n return null;\n }\n }", "static String ReadLn(int maxLength){\n byte line[] = new byte [maxLength];\n int length = 0;\n int input = -1;\n try{\n while (length < maxLength){//Read untill maxlength\n input = System.in.read();\n if ((input < 0) || (input == '\\n')) break; //or untill end of line ninput\n line [length++] += input;\n }\n\n if ((input < 0) && (length == 0)) return null; // eof\n return new String(line, 0, length);\n }catch (IOException e){\n return null;\n }\n }", "public void sendInput(String input) throws IOException {\n\t\tmShell.sendCommand(\"INPUT:\" + mStag + \":\" + input + \":\");\n\t}", "public void write(String string) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(string);\r\n }", "private void printCommandOutput(InputStream in, Channel channel,boolean showOutput) throws Exception\n\t{\n\t\tbyte[] tmp = new byte[1024];\n\t\twhile(true)\n\t\t{\twhile(in.available() > 0)\n\t\t\t{\tint i = in.read(tmp, 0, 1024);\n\t\t\t\tif (i < 0) break;\n\t\t\t\tif(showOutput) soutConsole.appendLine(new String(tmp, 0, i));\n\t\t\t}\n\t\t\tif (channel.isClosed())\n\t\t\t{\tif(showOutput)\n\t\t\t\t\tsoutConsole.appendLine(\"exit-status: \"+ channel.getExitStatus());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttry\n\t\t\t{\tThread.sleep(1000);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tsoutConsole.appendLine(\"Error: \"+e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "protected void sendStartStdInSignal() {\n\t\tDownstreamMessageEvent dme = new DownstreamMessageEvent(channel, Channels.future(channel), STREAM_IN_READY, channel.getRemoteAddress());\n\t\t//channel.getPipeline().sendDownstream(dme);\n\t\tSystem.out.println(\"Sending STDIN READY\");\n\t\tchannel.write(STREAM_IN_READY).awaitUninterruptibly();\n\t\tSystem.out.println(\"Sent STDIN READY\");\n\t}", "protected final String _readTTYLine() {\n\n StringBuffer buf = new StringBuffer(80);\n int c = 0;\n try {\n while ((c = System.in.read()) != -1) {\n char ch = (char) c;\n if (ch == '\\r') {\n ch = (char) System.in.read();\n if (ch == '\\n') {\n break;\n } else {\n continue;\n }\n } else if (ch == '\\n') {\n break; // Unix flavors.\n }\n buf.append(ch);\n }\n } catch (IOException e) {\n this._logger.error(ERROR_TAG + e.getMessage());\n }\n return buf.toString();\n }", "public static native int write(int fd, byte[] data, int off, int len) throws IOException;", "public void writeString(final String s) throws IOException {\n checkOpened();\n dos.writeUTF(s);\n flush();\n }", "@Override\n public int read() throws IOException {\n int c;\n\n do {\n c = System.in.read();\n } while(c != -1 && (c == '\\n' || c == '\\r'));\n\n return c;\n }", "public void writeLine(String s) throws IOException {\n raos.writeLine(s);\n }", "protected String readLine()\n { try { if (stdin!=null) return stdin.readLine(); } catch (IOException e) {}\n return null;\n }", "public String readStringFromCmd() throws IOException {\r\n\t\tSystem.out.println(\"Enter your String:\");\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString string = null;\t\t\r\n\t\tstring = br.readLine();\r\n\t\treturn string;\r\n\t}", "public static int copy(InputStream in, OutputStream out) throws IOException {\n if (in == null) throw new IllegalArgumentException(\"No InputStream specified\");\n if (out == null) throw new IllegalArgumentException(\"No OutputStream specified\");\n int byteCount = 0;\n byte[] buffer = new byte[BUFFER_SIZE];\n int bytesRead;\n while ((bytesRead = in.read(buffer)) != -1) {\n out.write(buffer, 0, bytesRead);\n byteCount += bytesRead;\n }\n out.flush();\n return byteCount;\n }", "public WriteToClient(Socket c) throws IOException { //initialize printwirte and scanner\r\n\t\ttoClient = new PrintWriter(c.getOutputStream());\r\n\t\tstdin = new Scanner(System.in);\r\n\t}", "public static void Run_Program(String command, String input) throws IOException, InterruptedException {\n // creiamo il processo\n String[] argss = {\"cmd\", \"/c\", command};\n ProcessBuilder pb = new ProcessBuilder(argss);\n process = pb.start();\n // si creano le variabili che permettono la lettura e scrittura dei messaggi in input e output dal processo\n //creato\n writer = new BufferedWriter(new OutputStreamWriter(process.getOutputStream()));\n reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\n //Si scrive un il messaggio di input\n writer.write(input + \"\\n\");\n writer.flush();\n\n //fase di reader\n String line = \"\";\n int c = 0;\n\n //nel caso in cui il programma .exe si connettesse con il simulatore darebbe un riscontro all'utente, dunque lo\n //si legge e stampa a terminale\n while (c <6) {\n line = reader.readLine();\n c++;\n System.out.println(line);\n }\n // si procede con la chiusura del reader visto che l'exe non trasmetterà più nulla\n reader.close();\n }", "protected void println(String string) {\n this.output.println(string);\n this.dataSize += (string.getBytes().length);\n }", "private static String readLine(ResettableInputStream in, int maxLength)\n throws IOException {\n\n StringBuilder s = new StringBuilder();\n int c;\n int i = 1;\n while ((c = in.readChar()) != -1) {\n // FIXME: support \\r\\n\n if (c == '\\n') {\n break;\n }\n //System.out.printf(\"seen char val: %c\\n\", (char)c);\n s.append((char)c);\n\n if (i++ > maxLength) {\n System.out.println(\"Output: >\" + s + \"<\");\n throw new RuntimeException(\"Too far!\");\n }\n }\n if (s.length() > 0) {\n s.append('\\n');\n return s.toString();\n } else {\n return null;\n }\n }", "static void sendString(BufferedWriter bw, String str) throws IOException{\n bw.write(str + \"\\r\\n\");\n bw.flush();\n }", "@Override\n public void run() {\n try {\n BufferedReader R = new BufferedReader(new InputStreamReader(S.getInputStream()));\n PrintWriter W = new PrintWriter(S.getOutputStream(), true);\n if(n==1)\n {\n W.write(1);\n n++;\n }else {\n W.write(2);\n }\n }\n catch (IOException ex) {\n Logger.getLogger(Server_1.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public static String readLine()\n\t{\n\t\tif (bJunit == true)\n\t\t{\n\t\t\tsLastLine = sJunitInput;\n\t\t\twriteLine(\"JUnit INPUT: \" + sJunitInput);\n\t\t\treturn sLastLine;\n\t\t}\n\t\n\t\ttry {\n\t\t\tsLastLine = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error reading from STDIN\");\n\t\t}\n\t\t\n\t\treturn sLastLine;\n\t\t\n\t}", "@Override\n public void execute(IO io, Context context) {\n try {\n Process process = Runtime.getRuntime().exec(createShellCommand());\n pipeStream(io.STDIN, process.getOutputStream());\n process.waitFor();\n pipeStream(process.getInputStream(), io.STDOUT);\n } catch (IOException e) {\n e.printStackTrace(new PrintStream(io.STDERR));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "void write (char ch, int offset);", "void writeBytes(String s) throws IOException;", "ProcessRunner print(PrintStream out, PrintStream err);", "public static String readAsciiLine(InputStream in) throws IOException {\n\t\t// TODO: support UTF-8 here instead\n\n\t\tStringBuilder result = new StringBuilder(80);\n\t\twhile (true) {\n\t\t\tint c = in.read();\n\t\t\tif (c == -1) {\n\t\t\t\tthrow new EOFException();\n\t\t\t} else if (c == '\\n') {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tresult.append((char) c);\n\t\t}\n\t\tint length = result.length();\n\t\tif (length > 0 && result.charAt(length - 1) == '\\r') {\n\t\t\tresult.setLength(length - 1);\n\t\t}\n\t\treturn result.toString();\n\t}", "public static void writeln(OutputStream out, String s) throws IOException {\n write(out,s+nl);\n }", "public int drainBuffers() throws IOException {\n if (drainBuffersFinished) {\n throw new IllegalStateException(\"Buffer draining has already been finished\");\n }\n LOG.trace(\"drainBuffers() start\");\n\n int exitValue = -1;\n\n int inBytesRead = 0;\n int errBytesRead = 0;\n\n boolean processEnded = false;\n\n try (final BufferedReader ir =\n new BufferedReader(new InputStreamReader(process.getInputStream(), StandardCharsets.UTF_8));\n final BufferedReader er =\n new BufferedReader(new InputStreamReader(process.getErrorStream(), StandardCharsets.UTF_8))) {\n // Here we do some kind of busy waiting, checking whether the process has finished by calling Process#exitValue().\n // If not yet finished, an IllegalThreadStateException is thrown and ignored, the progress on stdout and stderr read,\n // and retried until the process has ended.\n // Note that Process#waitFor() may block sometimes, that's why we do a polling mechanism using Process#exitValue()\n // instead. Until we extend unit and integration test coverage for SSH action, and we can introduce a more\n // sophisticated error handling based on the extended coverage, this solution should stay in place.\n while (!processEnded) {\n try {\n // Doesn't block but throws IllegalThreadStateException if the process hasn't finished yet\n exitValue = process.exitValue();\n processEnded = true;\n }\n catch (final IllegalThreadStateException itse) {\n // Continue to drain\n }\n\n // Drain input and error streams\n inBytesRead += drainBuffer(ir, inputBuffer, maxLength, inBytesRead, processEnded);\n errBytesRead += drainBuffer(er, errorBuffer, maxLength, errBytesRead, processEnded);\n\n // Necessary evil: sleep and retry\n if (!processEnded) {\n try {\n LOG.trace(\"Sleeping {}ms during buffer draining\", DRAIN_BUFFER_SLEEP_TIME_MS);\n Thread.sleep(DRAIN_BUFFER_SLEEP_TIME_MS);\n }\n catch (final InterruptedException ie) {\n // Sleep a little, then check again\n }\n }\n }\n }\n\n LOG.trace(\"drainBuffers() end [exitValue={0}]\", exitValue);\n drainBuffersFinished = true;\n return exitValue;\n }", "public void writeln (String s) {\n pw.println(s);\n }", "@Override\n\tpublic String readLine() throws IOException {\n\t\tint length = readInt();\n\t\twriteInt(length);\n\t\tbyte[] data = awaitNextPacket(new byte[length]);\n\t\treturn new String(data);\n\t}", "public int sendCommand(String command) throws IOException\n {\n return sendCommand(command, null);\n }", "int main() {\n string input_string; \n \n // Read a full line of input from stdin (cin) and save it to our variable, input_string.\n getline(cin, input_string); \n \n // Print a string literal saying \"Hello, World.\" to stdout using cout.\n cout << \"Hello, World.\" << endl;\n\n // TODO: Write a line of code here that prints the contents of input_string to stdout.\n\n return 0;\n}", "public void write(String input) {\n byte[] msgBuffer = input.getBytes(); //converts entered String into bytes\n try {\n mmOutStream.write(msgBuffer); //write bytes over BT connection via outstream\n } catch (IOException e) {\n //if you cannot write, close the application\n Toast.makeText(getBaseContext(), \"Connection Failure\", Toast.LENGTH_LONG).show();\n finish();\n }\n }", "public String getInput() throws IOException {\n\t\tSystem.out.print(\">> \");\n\t\treturn consoleIn.readLine();\n\t}", "@Test\n @AFSocketCapabilityRequirement(AFSocketCapability.CAPABILITY_FD_AS_REDIRECT)\n @ProcessUtilRequirement(canGetJavaCommandArguments = true)\n public void testForkedVMRedirectStdin() throws Exception {\n AFUNIXSocketAddress addr = AFUNIXSocketAddress.ofNewTempFile();\n try (AFUNIXServerSocket serverSocket = AFUNIXServerSocket.bindOn(addr);\n AFUNIXSocket clientConn = AFUNIXSocket.connectTo(addr);\n AFUNIXSocket serverConn = serverSocket.accept()) {\n assertTrue(addr.getFile().delete());\n\n ForkedVM vm = new ForkedVM(StdinSocketApp.class);\n vm.setRedirectInput(FileDescriptorCast.using(clientConn.getFileDescriptor()).as(\n Redirect.class));\n vm.setRedirectError(Redirect.INHERIT);\n // vm.setRedirectOutput(Redirect.INHERIT);\n Process p = vm.fork();\n try {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(serverConn\n .getInputStream(), StandardCharsets.UTF_8))) {\n assertEquals(\"Hello world\", br.readLine());\n String l;\n if ((l = br.readLine()) != null) {\n fail(\"Unexpected output: \" + l);\n }\n }\n assertTrue(p.waitFor(30, TimeUnit.SECONDS));\n assertEquals(0, p.exitValue());\n } finally {\n p.destroyForcibly();\n }\n }\n }", "public static void main(String[] args) throws IOException {\n\n int n = Integer.parseInt(scanner.nextLine());\n // scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n String s = scanner.nextLine();\n\n long result = substrCount(n, s);\nSystem.out.println(result);\n // bufferedWriter.write(String.valueOf(result));\n // bufferedWriter.newLine();\n\n // bufferedWriter.close();\n\n scanner.close();\n }", "private static String handleCliOutput(Process process, boolean failCommand) throws IOException, InterruptedException{\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\t\tfinal StringBuilder consoleOutput = new StringBuilder(\"\");\n\t\tfinal AtomicReference<Throwable> exception = new AtomicReference<Throwable>();\n\n\t\tThread thread = new Thread(new Runnable() {\n\n\t\t\tString line = null;\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\t\tLogUtils.log(line);\n\t\t\t\t\t\tconsoleOutput.append(line + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\texception.set(e);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tthread.setDaemon(true);\n\n\t\tthread.start();\n\n\t\tint result = process.waitFor();\n\n\t\tthread.join(5000);\n\n\t\tAssertUtils.assertTrue(exception.get() == null);\n\n\t\tif (result != 0 && !failCommand) {\n\t\t\tAssertUtils.assertFail(\"In RunCommand: Process did not complete successfully\");\n\t\t}\n\t\treturn consoleOutput.toString();\n\t}", "private String readLine(ByteBuf in) {\n\n int bytesToRead;\n byte[] data = null;\n int bytesToSkip;\n\n if ((bytesToRead = in.bytesBefore((byte) LINE_FEED_CHAR)) > -1) {\n // Found the line feed.\n bytesToSkip = 1;\n\n // Check (and ignore) optional carriage return.\n if (bytesToRead > 0 && in.getByte(bytesToRead - 1) == CARRIAGE_RETURN_CHAR) {\n bytesToSkip++;\n bytesToRead--;\n }\n\n // Check that the bytes we're about to read will not exceed the\n // max frame size.\n checkTooLongFrame(bytesToRead);\n\n data = new byte[bytesToRead];\n in.readBytes(data);\n in.skipBytes(bytesToSkip);\n\n // Count the bytes read.\n currentDecodedByteCount += bytesToRead;\n }\n else {\n // No line feed. Make sure we're not buffering more than the max\n // frame size.\n checkTooLongFrame(in.readableBytes());\n }\n\n if (data != null) {\n return new String(data, StompConstants.UTF_8);\n }\n else {\n return null;\n }\n }", "public static String inputString(String s)\n {\n if (s != null && s.length() > 0)\n {\n System.out.print(s);\n System.out.flush();\n }\n\n StringBuffer sb = new StringBuffer();\n try\n {\n InputStreamReader reader = new InputStreamReader(System.in);\n do\n {\n sb.append(new BufferedReader(reader).readLine());\n }\n while (System.in.available() > 0);\n\n return sb.toString();\n }\n catch (IOException e)\n {\n return null;\n }\n }", "public interface ConsoleIO {\n void write(String line);\n\n}", "public static long copy(InputStream input, OutputStream output, byte[] buffer) throws IOException {\n long count = 0;\n int bytesRead = 0;\n while (-1 != (bytesRead = input.read(buffer))) {\n output.write(buffer, 0, bytesRead);\n count += bytesRead;\n }\n return count;\n }", "void perform(LineReader input, OutputStream output) throws IOException;", "public int readLine(byte[] b, int off, int len) throws IOException {\n \tif (len <= 0) {\n \t return 0;\n \t}\n \tint count = 0, c;\n\n \twhile ((c = read()) != -1) {\n \t b[off++] = (byte)c;\n \t count++;\n \t if (c == '\\n' || count == len) {\n \t\tbreak;\n \t }\n \t}\n \treturn count > 0 ? count : -1;\n }", "public void writeString(String message);", "void write(String text);", "int writeTo(OutputStream out) throws IOException;", "public void writeInputToProcess(String input, String charSet) {\n if (StringUtils.isEmpty(input)) {\n throw new IllegalArgumentException();\n }\n processDataIn_.add(new ProcessOutputData(input, charSet));\n }", "void write (String s, int offset);", "public int sendData(String command) throws IOException\n {\n return sendCommandWithID(null, command, null);\n }", "public void writeString(String s) throws Exception {\r\n\tout.write(s.getBytes());\r\n}", "public void write (String s) {\n pw.print(s);\n }", "public boolean sendResult(String ans) {\n\t\t try {\n\t\t\t CharSequence cs = (CharSequence)ans;\n\t\t\t ChannelBuffer buf = ChannelBuffers.copiedBuffer(cs, Charset.defaultCharset());\n\t\t\t myPipeline.getChannel().write(buf);\n\t\t } catch (Exception e) {\n\t\t\t System.out.println(\"!! Failure to send results!\");\n\t\t\t return false;\n\t\t }\t \n\t\t return true;\n\t }", "public abstract String inReadLine() throws JVMIOException;", "public void writeRaw(String text)\n/* */ throws IOException\n/* */ {\n/* 442 */ int len = text.length();\n/* 443 */ int room = this._outputEnd - this._outputTail;\n/* */ \n/* 445 */ if (room == 0) {\n/* 446 */ _flushBuffer();\n/* 447 */ room = this._outputEnd - this._outputTail;\n/* */ }\n/* */ \n/* 450 */ if (room >= len) {\n/* 451 */ text.getChars(0, len, this._outputBuffer, this._outputTail);\n/* 452 */ this._outputTail += len;\n/* */ } else {\n/* 454 */ writeRawLong(text);\n/* */ }\n/* */ }", "private void sendLineCommand(String message) throws IOException,\n \t\t\tIllegalStateException {\n \t\tif (!connected) {\n \t\t\tthrow new IllegalStateException(\"Client not connected\");\n \t\t}\n \t\toutput.write(message + \"\\r\");\n \t\toutput.newLine();\n \t\toutput.flush();\n \t}", "public interface Console {\n\n void writeMessage(String msg);\n void writeMessage(String msg, Object... args) throws FormatStringException, IllegalFormatCodeException;\n\n String readString();\n String readLine();\n\n int readInteger();\n\n}", "@Override\n\tpublic void write(int b) throws IOException{\n\t\tconsoleStream.append(String.valueOf((char)b));\n\t\tconsoleStream.setCaretPosition(consoleStream.getDocument().getLength());\n\t\t\n\t}", "void write(final Writer characterStream, final N source) throws IOException, XdmMarshalException;", "public OutputStream setStdInStream(int initialSize) throws IOException {\n\t\tif(stdInLatch.getCount()<1) {\n\t\t\treturn pipeOut;\n\t\t}\n\t\tpipeOut = new PipedOutputStream();\n\t\tpipeIn = new PipedInputStream(pipeOut, initialSize);\n\t\tstdInLatch.countDown();\n\t\tlog.debug(Banner.banner(\"Dropped Latch for STDIN Stream\"));\n\t\treturn pipeOut;\n\t}", "public static int copyInputStream(InputStream in, OutputStream out) throws IOException {\n int bytesCopied = 0;\n byte[] buffer = new byte[1024];\n int bytesReadToBuffer;\n while ((bytesReadToBuffer = in.read(buffer)) >= 0) {\n out.write(buffer, 0, bytesReadToBuffer);\n bytesCopied += bytesReadToBuffer;\n }\n in.close();\n out.close();\n return bytesCopied;\n }", "public static void main(String[] args) throws IOException {\n String s = \"aaaaabc\";\n\n String result = isValid(s);\n System.out.println(result);\n\n// bufferedWriter.write(result);\n// bufferedWriter.newLine();\n\n// bufferedWriter.close();\n//\n// scanner.close();\n }", "public int Init() {\n\ttry {\n\t process = Runtime.getRuntime().exec(command);\n\t} catch (Exception e) {\n\t return 0;\n\t}\n\tif (process == null) {\n\t return 0;\n\t}\n\tchildStdin = new OutputStreamWatcher(process.getOutputStream());\n\tchildStdout = new InputStreamWatcher(process.getInputStream());\n\tchildStderr = new InputStreamWatcher(process.getErrorStream());\n\tchildStdin.start();\n\tchildStdout.start();\n\tchildStderr.start();\n\treturn 1;\n }", "public void sendMsg(OutputStream os, String s) throws IOException {\r\n\t byte[] bytes = s.getBytes();\r\n\t os.write(bytes);\r\n\t os.flush();\r\n\t }", "String consoleInput();", "String write(InputStream content, boolean noPin);", "protected void writeln(String s)\n {\n out.println(s);\n }", "void appendStdout(String line);", "public void out(String input) {\t\t\r\n\t\tSystem.out.println(input);\r\n\t\tint count = 0;\r\n\t\t\r\n\t\t\r\n\t}", "public static String getStdOut(Process p) throws IOException\n {\n return IOUtils.toString(p.getInputStream());\n }", "public void readFromPc(String input) {\n\n }", "public static int copy(InputStream input, OutputStream output) throws IOException {\n long count = copyLarge(input, output);\n if (count > Integer.MAX_VALUE) {\n return -1;\n }\n return (int) count;\n }", "public static int getNumberOfLines(String s) {\n if (s.isEmpty()) {\n return 0;\n }\n int counter = 1;\n for( int i=0; i<s.length(); i++ ) {\n if( s.charAt(i) == '\\n' ) {\n counter++;\n } \n }\n return counter;\n }", "public void writeLine(String theString, int color)\r\n\t{\r\n\t\t/*\r\n\t\t * 0 = system! 1 = User Input 2 = Socket Input 3 = Other\r\n\t\t */\r\n\t\tStyleContext context = new StyleContext();\r\n\t\tstyle = context.getStyle(StyleContext.DEFAULT_STYLE);\r\n\t\tStyleConstants.setFontSize(style, 14);\r\n\t\tStyleConstants.setSpaceAbove(style, 4);\r\n\t\tStyleConstants.setSpaceBelow(style, 4);\r\n\r\n\t\tswitch (color)\r\n\t\t{\r\n\t\tcase 0:\r\n\t\t\tStyleConstants.setForeground(style, Color.GRAY);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLACK);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tStyleConstants.setForeground(style, Color.BLUE);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tStyleConstants.setForeground(style, Color.RED);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\ttheString = theString + \"\\n\";\r\n\r\n\t\ttry\r\n\t\t{\r\n\r\n\t\t\tdoc.insertString(doc.getLength(), theString, style);\r\n\r\n\t\t}\r\n\t\tcatch (BadLocationException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// scroll to the bottom\r\n\t\ttxtDisplayArea.setCaretPosition(txtDisplayArea.getDocument()\r\n\t\t\t\t.getLength());\r\n\r\n\t}", "public abstract String readLine() throws IOException, InterruptedException;", "public static int getFileCount(String path)\r\n {\r\n int lines=0;\r\n System.out.println(\"Path of the source file is: \"+path);\r\n String raw_output_lines = new String();\r\n try\r\n {\r\n Channel line_channel=Syncer.session.openChannel(\"exec\");\r\n String get_count_cmd=\"wc -l < \"+path;\r\n System.out.println(get_count_cmd);\r\n ((ChannelExec)line_channel).setCommand(get_count_cmd);\r\n line_channel.setInputStream(null);\r\n ((ChannelExec)line_channel).setErrStream(System.err); \r\n in=line_channel.getInputStream();\r\n line_channel.connect(); \r\n while(true)\r\n {\r\n while(in.available()>0)\r\n {\r\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n raw_output_lines = br.readLine();\r\n System.out.println(\"Raw_output: \"+raw_output_lines);\r\n }\r\n if(line_channel.isClosed())\r\n break; \r\n }\r\n in.close();\r\n line_channel.disconnect();\r\n System.out.println(\"Out of loop\");\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Lines (in string): \"+raw_output_lines);\r\n String buffer = new String(raw_output_lines);\r\n System.out.println(\"Out of loop\");\r\n lines = Integer.parseInt(buffer);\r\n System.out.println(\"Out of loop\");\r\n System.out.println(\"lines FOUND: \"+lines);\r\n return lines;\r\n }", "public static String readLine(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.nextLine();\n }", "public void send(char ch) {\n try {\n writer.write(ch);\n } catch (IOException e) {\n throw new SpawnException(REDIRECT_OUTPUT_FAILURE, e);\n }\n }", "private void sendInput(int input) {\n sendMessage(new Message(String.valueOf(input)));\n }", "ProcessExecutor cloneWithOutputStreams(PrintStream stdOutStream, PrintStream stdErrStream);", "private static int findEndOfLine(final ChannelBuffer buffer) {\n final int n = buffer.writerIndex();\n for (int i = buffer.readerIndex(); i < n; i ++) {\n final byte b = buffer.getByte(i);\n if (b == '\\n') {\n return i;\n } else if (b == '\\r' && i < n - 1 && buffer.getByte(i + 1) == '\\n') {\n return i; // \\r\\n\n }\n }\n return -1; // Not found.\n }" ]
[ "0.628394", "0.52897614", "0.5104937", "0.5088536", "0.5015067", "0.49798945", "0.49693066", "0.49101183", "0.4901517", "0.47162983", "0.46990794", "0.4686898", "0.4586547", "0.45560715", "0.45356172", "0.44598943", "0.4456393", "0.4442227", "0.44126585", "0.43976194", "0.43590164", "0.4358372", "0.43492645", "0.4343704", "0.4321425", "0.43125436", "0.4311383", "0.43046802", "0.42999688", "0.42993048", "0.42897943", "0.4287097", "0.42395923", "0.4226262", "0.42208672", "0.42206657", "0.4213744", "0.42111868", "0.4193116", "0.41902614", "0.41770214", "0.41679198", "0.41644508", "0.4150908", "0.41506684", "0.41466913", "0.4135163", "0.4125916", "0.41254145", "0.41253677", "0.4117854", "0.4116044", "0.40934855", "0.40677726", "0.4052602", "0.40485653", "0.40406024", "0.40376726", "0.4025213", "0.40190816", "0.40190366", "0.4018812", "0.4011737", "0.40086332", "0.40069088", "0.40061873", "0.3995041", "0.3989095", "0.3978786", "0.3977799", "0.39700145", "0.39619932", "0.39558107", "0.3951895", "0.39518353", "0.39493728", "0.39476737", "0.39424786", "0.39380285", "0.39377454", "0.39247516", "0.3923978", "0.3921185", "0.39124718", "0.391115", "0.39100766", "0.39029446", "0.39008984", "0.38942027", "0.3891174", "0.38897076", "0.38862705", "0.3885018", "0.38814658", "0.38633192", "0.38583687", "0.3858282", "0.38565192", "0.38533667", "0.38515615" ]
0.64172626
0
Writes the given string to the stdin channel of the spawned process, without adding a newline character to the end. On success, returns the number of bytes written. On error, 1 is returned.
public int Write(String message) { childStdin.AddCharacters(message); return message.length(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int WriteLine(String message) {\n\tWrite(message);\n\tchildStdin.AddCharacters(\"\\n\");\n\treturn message.length() + 1;\n }", "OutputStream getStdin();", "public void send() throws InterruptedException, IOException\n {\n netCat.setInput( new ByteArrayInputStream( inputFromTest.getBytes() ) );\n netCat.execute( SEND.toString() );\n latch.await( 5, TimeUnit.SECONDS );\n\n assertNotNull( result );\n assertEquals( SEND, result.op );\n\n // Wait till nc process will be started definitely\n while( process == null ) {\n Thread.sleep( 100 );\n }\n\n // Get received string by external nc process\n BufferedReader b = new BufferedReader( new InputStreamReader( process.getInputStream() ) );\n String line;\n do {\n line = b.readLine();\n Log.i( CLASS_NAME, line );\n } while( !INPUT_TEST.equals( line ) );\n }", "public void write(String text) throws ShellIOException;", "public int send(OutputStream out) throws IOException;", "public void write(String s) throws IOException {\n\t\tString logmsg = toString() + \".write(\" + s + \")\";\n\t\t_log.trace(logmsg);\n\n\t\ttry {\n\t\t\t_commandLine.write(s);\n\n\t\t\t// FIXME: Do we need both CR and LF ?\n\t\t\t_commandLine.write(Ascii.CR);\n\t\t\t_commandLine.write(Ascii.LF);\n\t\t}\n\t\tcatch(IOException ioe) {\n\t\t\t_log.error(logmsg,ioe);\n\t\t\tthrow(ioe);\n\t\t}\n\t}", "public abstract InputStream stdout();", "public void sendInput(String input) throws IOException {\n\t\tmShell.sendCommand(\"INPUT:\" + mStag + \":\" + input + \":\");\n\t}", "public String ReadLine() {\n\tString s = childStdout.Readline();\n\treturn s;\n }", "public void sendString(String string) throws RemoteException, IOException, InterruptedException;", "public final int Write(String str)\n\t\tthrows IOException, SMBException {\n\n\t\t// Write the whole buffer\n\n\t\tbyte[] byts = str.getBytes();\n\t\treturn Write(byts, byts.length, 0);\n\t}", "public int writeString(String src) {\n // Convert the argument strings to ASCII\n byte[] srcAsBytes;\n src += \"\\r\";\n try {\n srcAsBytes = src.getBytes(\"US-ASCII\");\n } catch (UnsupportedEncodingException e) {\n // Very very unlikely in the near-scope of the project.\n return -1;\n }\n print(\"Wrote :\" + src + \":\");\n return write(srcAsBytes);\n }", "public static native int write(int fd, byte[] data, int off, int len) throws IOException;", "public void write(String string) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(string);\r\n }", "public void writeln(String text) throws ShellIOException;", "public static native void send( String cmd );", "public void receive() throws IOException, InterruptedException\n {\n while( process == null ) {\n Thread.sleep( 100 );\n }\n\n // Send string from external nc process\n new Thread( new Runnable()\n {\n @Override\n public void run()\n {\n try {\n process.getOutputStream().write( inputFromProcess.getBytes() );\n process.getOutputStream().flush();\n if( netCat instanceof UdpNetCat ) {\n Thread.sleep( 500 );\n process.getOutputStream().write( UdpNetCat.DISCONNECT_SEQUENCE.getBytes() );\n process.getOutputStream().flush();\n }\n process.getOutputStream().close();\n } catch( Exception e ) {\n e.printStackTrace();\n }\n }\n } ).start();\n\n // Receive string from external nc process\n netCat.createOutput();\n netCat.execute( RECEIVE.toString() );\n latch.await( 5, TimeUnit.SECONDS );\n\n assertNotNull( result );\n assertThat( result.op, is( RECEIVE ));\n String line = netCat.getOutputString();\n Log.i( CLASS_NAME, line );\n assertThat( line, is( INPUT_NC ));\n }", "public OutputStream setStdInStream(int initialSize) throws IOException {\n\t\tif(stdInLatch.getCount()<1) {\n\t\t\treturn pipeOut;\n\t\t}\n\t\tpipeOut = new PipedOutputStream();\n\t\tpipeIn = new PipedInputStream(pipeOut, initialSize);\n\t\tstdInLatch.countDown();\n\t\tlog.debug(Banner.banner(\"Dropped Latch for STDIN Stream\"));\n\t\treturn pipeOut;\n\t}", "protected void sendStartStdInSignal() {\n\t\tDownstreamMessageEvent dme = new DownstreamMessageEvent(channel, Channels.future(channel), STREAM_IN_READY, channel.getRemoteAddress());\n\t\t//channel.getPipeline().sendDownstream(dme);\n\t\tSystem.out.println(\"Sending STDIN READY\");\n\t\tchannel.write(STREAM_IN_READY).awaitUninterruptibly();\n\t\tSystem.out.println(\"Sent STDIN READY\");\n\t}", "public static void writeWithSystemNewlines (BufferedWriter writer, String string)\n\t\t\tthrows IOException {\n\t\tfor (int i=0; i<string.length(); i++) {\n\t\t\tchar c = string.charAt(i);\n\t\t\tif (c == '\\n')\n\t\t\t\twriter.newLine();\n\t\t\telse\n\t\t\t\twriter.write(c);\n\t\t}\n\t}", "InputStream getStdout();", "public WriteToClient(Socket c) throws IOException { //initialize printwirte and scanner\r\n\t\ttoClient = new PrintWriter(c.getOutputStream());\r\n\t\tstdin = new Scanner(System.in);\r\n\t}", "@Override\n public void execute(IO io, Context context) {\n try {\n Process process = Runtime.getRuntime().exec(createShellCommand());\n pipeStream(io.STDIN, process.getOutputStream());\n process.waitFor();\n pipeStream(process.getInputStream(), io.STDOUT);\n } catch (IOException e) {\n e.printStackTrace(new PrintStream(io.STDERR));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tProcess process = Runtime.getRuntime().exec(\"cmd /c start cmd\");\r\n\r\n\t\tBufferedWriter in = new BufferedWriter(new OutputStreamWriter(process\r\n\t\t\t\t.getOutputStream()));\r\n\t\tString line = \"2967 \";\r\n\t\tin.write(line);\r\n\t\tin.flush();\r\n\t\tin.close();\r\n\t\tInputStream out = process.getInputStream();\r\n\t\t// clean up if any output in stdout\r\n\t\tBufferedReader brCleanUp = new BufferedReader(\r\n\t\t\t\tnew InputStreamReader(out));\r\n\t\twhile ((line = brCleanUp.readLine()) != null) {\r\n\t\t\tSystem.out.println(\"[Stdout] \" + line);\r\n\t\t}\r\n\t\tbrCleanUp.close();\r\n\t\tprocess.destroy();\r\n\t}", "public String readLine() throws ShellIOException;", "@Override\n public int read() throws IOException {\n int c;\n\n do {\n c = System.in.read();\n } while(c != -1 && (c == '\\n' || c == '\\r'));\n\n return c;\n }", "public int drainBuffers() throws IOException {\n if (drainBuffersFinished) {\n throw new IllegalStateException(\"Buffer draining has already been finished\");\n }\n LOG.trace(\"drainBuffers() start\");\n\n int exitValue = -1;\n\n int inBytesRead = 0;\n int errBytesRead = 0;\n\n boolean processEnded = false;\n\n try (final BufferedReader ir =\n new BufferedReader(new InputStreamReader(process.getInputStream(), StandardCharsets.UTF_8));\n final BufferedReader er =\n new BufferedReader(new InputStreamReader(process.getErrorStream(), StandardCharsets.UTF_8))) {\n // Here we do some kind of busy waiting, checking whether the process has finished by calling Process#exitValue().\n // If not yet finished, an IllegalThreadStateException is thrown and ignored, the progress on stdout and stderr read,\n // and retried until the process has ended.\n // Note that Process#waitFor() may block sometimes, that's why we do a polling mechanism using Process#exitValue()\n // instead. Until we extend unit and integration test coverage for SSH action, and we can introduce a more\n // sophisticated error handling based on the extended coverage, this solution should stay in place.\n while (!processEnded) {\n try {\n // Doesn't block but throws IllegalThreadStateException if the process hasn't finished yet\n exitValue = process.exitValue();\n processEnded = true;\n }\n catch (final IllegalThreadStateException itse) {\n // Continue to drain\n }\n\n // Drain input and error streams\n inBytesRead += drainBuffer(ir, inputBuffer, maxLength, inBytesRead, processEnded);\n errBytesRead += drainBuffer(er, errorBuffer, maxLength, errBytesRead, processEnded);\n\n // Necessary evil: sleep and retry\n if (!processEnded) {\n try {\n LOG.trace(\"Sleeping {}ms during buffer draining\", DRAIN_BUFFER_SLEEP_TIME_MS);\n Thread.sleep(DRAIN_BUFFER_SLEEP_TIME_MS);\n }\n catch (final InterruptedException ie) {\n // Sleep a little, then check again\n }\n }\n }\n }\n\n LOG.trace(\"drainBuffers() end [exitValue={0}]\", exitValue);\n drainBuffersFinished = true;\n return exitValue;\n }", "public void writeInputToProcess(String input, String charSet) {\n if (StringUtils.isEmpty(input)) {\n throw new IllegalArgumentException();\n }\n processDataIn_.add(new ProcessOutputData(input, charSet));\n }", "public String readStringFromCmd() throws IOException {\r\n\t\tSystem.out.println(\"Enter your String:\");\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString string = null;\t\t\r\n\t\tstring = br.readLine();\r\n\t\treturn string;\r\n\t}", "void write (char ch, int offset);", "void writeBytes(String s) throws IOException;", "@Test\n @AFSocketCapabilityRequirement(AFSocketCapability.CAPABILITY_FD_AS_REDIRECT)\n @ProcessUtilRequirement(canGetJavaCommandArguments = true)\n public void testForkedVMRedirectStdin() throws Exception {\n AFUNIXSocketAddress addr = AFUNIXSocketAddress.ofNewTempFile();\n try (AFUNIXServerSocket serverSocket = AFUNIXServerSocket.bindOn(addr);\n AFUNIXSocket clientConn = AFUNIXSocket.connectTo(addr);\n AFUNIXSocket serverConn = serverSocket.accept()) {\n assertTrue(addr.getFile().delete());\n\n ForkedVM vm = new ForkedVM(StdinSocketApp.class);\n vm.setRedirectInput(FileDescriptorCast.using(clientConn.getFileDescriptor()).as(\n Redirect.class));\n vm.setRedirectError(Redirect.INHERIT);\n // vm.setRedirectOutput(Redirect.INHERIT);\n Process p = vm.fork();\n try {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(serverConn\n .getInputStream(), StandardCharsets.UTF_8))) {\n assertEquals(\"Hello world\", br.readLine());\n String l;\n if ((l = br.readLine()) != null) {\n fail(\"Unexpected output: \" + l);\n }\n }\n assertTrue(p.waitFor(30, TimeUnit.SECONDS));\n assertEquals(0, p.exitValue());\n } finally {\n p.destroyForcibly();\n }\n }\n }", "public static void inputFlush() {\n int dummy;\n int bAvail;\n\n try {\n while ((System.in.available()) != 0)\n dummy = System.in.read();\n } catch (java.io.IOException e) {\n System.out.println(\"Input error\");\n }\n }", "public static void copyStream(InputStream input, OutputStream output,\n int expected) throws IOException {\n if (input == null || output == null) {\n return;\n }\n if (expected <= 0) {\n copyStream(input, output);\n }\n else {\n byte[] bytes = new byte[Math.min(expected, BUFSIZE)];\n\n int totalRead = 0;\n int bytesRead = 0;\n\n while (totalRead < expected) {\n bytesRead = input.read(bytes, 0, bytes.length);\n output.write(bytes, 0, bytesRead);\n totalRead = totalRead + bytesRead;\n }\n output.flush();\n }\n }", "public static int copy(InputStream in, OutputStream out) throws IOException {\n if (in == null) throw new IllegalArgumentException(\"No InputStream specified\");\n if (out == null) throw new IllegalArgumentException(\"No OutputStream specified\");\n int byteCount = 0;\n byte[] buffer = new byte[BUFFER_SIZE];\n int bytesRead;\n while ((bytesRead = in.read(buffer)) != -1) {\n out.write(buffer, 0, bytesRead);\n byteCount += bytesRead;\n }\n out.flush();\n return byteCount;\n }", "String write(InputStream content, boolean noPin);", "public static void Run_Program(String command, String input) throws IOException, InterruptedException {\n // creiamo il processo\n String[] argss = {\"cmd\", \"/c\", command};\n ProcessBuilder pb = new ProcessBuilder(argss);\n process = pb.start();\n // si creano le variabili che permettono la lettura e scrittura dei messaggi in input e output dal processo\n //creato\n writer = new BufferedWriter(new OutputStreamWriter(process.getOutputStream()));\n reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\n //Si scrive un il messaggio di input\n writer.write(input + \"\\n\");\n writer.flush();\n\n //fase di reader\n String line = \"\";\n int c = 0;\n\n //nel caso in cui il programma .exe si connettesse con il simulatore darebbe un riscontro all'utente, dunque lo\n //si legge e stampa a terminale\n while (c <6) {\n line = reader.readLine();\n c++;\n System.out.println(line);\n }\n // si procede con la chiusura del reader visto che l'exe non trasmetterà più nulla\n reader.close();\n }", "protected String readLine()\n { try { if (stdin!=null) return stdin.readLine(); } catch (IOException e) {}\n return null;\n }", "public void writeString(final String s) throws IOException {\n checkOpened();\n dos.writeUTF(s);\n flush();\n }", "public int sendCommand(String command) throws IOException\n {\n return sendCommand(command, null);\n }", "public static int copy(InputStream input, OutputStream output) throws IOException {\n long count = copyLarge(input, output);\n if (count > Integer.MAX_VALUE) {\n return -1;\n }\n return (int) count;\n }", "@Override\n\tpublic void write(int b) throws IOException{\n\t\tconsoleStream.append(String.valueOf((char)b));\n\t\tconsoleStream.setCaretPosition(consoleStream.getDocument().getLength());\n\t\t\n\t}", "public synchronized void readInput() throws InterruptedException, IOException \n\t{\n\t\twhile (getDataSourceEOFlag())\n\t\t{\n\t\t\tcontent.set(incomingPipe.take());\n\t\t\t\n\t\t\t// Ensure thread-timing uniformity (a speed-limiter)\n\t\t\t//Thread.sleep(100);\n\t\t\t\n\t\t\tprocess();\n\t\t\t// Discard the text to free up memory.\n\t\t\tcontent.set(null);\n\t\t}\n\t}", "private void printCommandOutput(InputStream in, Channel channel,boolean showOutput) throws Exception\n\t{\n\t\tbyte[] tmp = new byte[1024];\n\t\twhile(true)\n\t\t{\twhile(in.available() > 0)\n\t\t\t{\tint i = in.read(tmp, 0, 1024);\n\t\t\t\tif (i < 0) break;\n\t\t\t\tif(showOutput) soutConsole.appendLine(new String(tmp, 0, i));\n\t\t\t}\n\t\t\tif (channel.isClosed())\n\t\t\t{\tif(showOutput)\n\t\t\t\t\tsoutConsole.appendLine(\"exit-status: \"+ channel.getExitStatus());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttry\n\t\t\t{\tThread.sleep(1000);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tsoutConsole.appendLine(\"Error: \"+e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public void write(String input) {\n byte[] msgBuffer = input.getBytes(); //converts entered String into bytes\n try {\n mmOutStream.write(msgBuffer); //write bytes over BT connection via outstream\n } catch (IOException e) {\n //if you cannot write, close the application\n Toast.makeText(getBaseContext(), \"Connection Failure\", Toast.LENGTH_LONG).show();\n finish();\n }\n }", "public static int copy(final InputStream input, final OutputStream output) throws IOException {\n final long count = copyLarge(input, output);\n if (count > Integer.MAX_VALUE) {\n return -1;\n }\n return (int) count;\n }", "public static int copy(final InputStream input, final OutputStream output) throws IOException {\n final long count = copyLarge(input, output);\n if (count > Integer.MAX_VALUE) {\n return -1;\n }\n return (int) count;\n }", "public static String inputString(String s)\n {\n if (s != null && s.length() > 0)\n {\n System.out.print(s);\n System.out.flush();\n }\n\n StringBuffer sb = new StringBuffer();\n try\n {\n InputStreamReader reader = new InputStreamReader(System.in);\n do\n {\n sb.append(new BufferedReader(reader).readLine());\n }\n while (System.in.available() > 0);\n\n return sb.toString();\n }\n catch (IOException e)\n {\n return null;\n }\n }", "int writeTo(OutputStream out) throws IOException;", "public void readFromPc(String input) {\n\n }", "ProcessRunner print(PrintStream out, PrintStream err);", "private void writeLine(String s) throws IOException {\n\tfbuf.write(s, 0, s.length());\n\tfbuf.newLine();\n }", "public String getInput() throws IOException {\n\t\tSystem.out.print(\">> \");\n\t\treturn consoleIn.readLine();\n\t}", "static void sendString(BufferedWriter bw, String str) throws IOException{\n bw.write(str + \"\\r\\n\");\n bw.flush();\n }", "protected final String _readTTYLine() {\n\n StringBuffer buf = new StringBuffer(80);\n int c = 0;\n try {\n while ((c = System.in.read()) != -1) {\n char ch = (char) c;\n if (ch == '\\r') {\n ch = (char) System.in.read();\n if (ch == '\\n') {\n break;\n } else {\n continue;\n }\n } else if (ch == '\\n') {\n break; // Unix flavors.\n }\n buf.append(ch);\n }\n } catch (IOException e) {\n this._logger.error(ERROR_TAG + e.getMessage());\n }\n return buf.toString();\n }", "public int Init() {\n\ttry {\n\t process = Runtime.getRuntime().exec(command);\n\t} catch (Exception e) {\n\t return 0;\n\t}\n\tif (process == null) {\n\t return 0;\n\t}\n\tchildStdin = new OutputStreamWatcher(process.getOutputStream());\n\tchildStdout = new InputStreamWatcher(process.getInputStream());\n\tchildStderr = new InputStreamWatcher(process.getErrorStream());\n\tchildStdin.start();\n\tchildStdout.start();\n\tchildStderr.start();\n\treturn 1;\n }", "protected void println(String string) {\n this.output.println(string);\n this.dataSize += (string.getBytes().length);\n }", "public void send(char ch) {\n try {\n writer.write(ch);\n } catch (IOException e) {\n throw new SpawnException(REDIRECT_OUTPUT_FAILURE, e);\n }\n }", "ProcessExecutor cloneWithOutputStreams(PrintStream stdOutStream, PrintStream stdErrStream);", "void write(final Writer characterStream, final N source) throws IOException, XdmMarshalException;", "public interface ConsoleIO {\n void write(String line);\n\n}", "MyInputStream(String name, InputStream in) {\n this.name = name;\n this.in = new BufferedInputStream(in);\n buffer = new StringBuffer(4096);\n Thread thr = new Thread(this);\n thr.setDaemon(true);\n thr.start();\n }", "public final static void pipe(final InputStream in, final OutputStream out)\n {\n new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n IOUtils.copy(in, out);\n }\n catch (IOException e)\n {\n // Do nothing\n }\n }\n }).start();\n }", "void write (String s, int offset);", "public static int copyInputStream(InputStream in, OutputStream out) throws IOException {\n int bytesCopied = 0;\n byte[] buffer = new byte[1024];\n int bytesReadToBuffer;\n while ((bytesReadToBuffer = in.read(buffer)) >= 0) {\n out.write(buffer, 0, bytesReadToBuffer);\n bytesCopied += bytesReadToBuffer;\n }\n in.close();\n out.close();\n return bytesCopied;\n }", "private void sendInput(int input) {\n sendMessage(new Message(String.valueOf(input)));\n }", "public int flush() throws IOException {\n while (sendbuffer != null) {\n channel.write(sendbuffer);\n if (sendbuffer.remaining() == 0) {\n sendbuffer = sendqueue.poll();\n } else {\n return sendbuffer.remaining();\n }\n }\n return 0;\n }", "@Override\n public void run() {\n try {\n BufferedReader R = new BufferedReader(new InputStreamReader(S.getInputStream()));\n PrintWriter W = new PrintWriter(S.getOutputStream(), true);\n if(n==1)\n {\n W.write(1);\n n++;\n }else {\n W.write(2);\n }\n }\n catch (IOException ex) {\n Logger.getLogger(Server_1.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public static char in(String s)\n {\n if (s != null && s.length() > 0)\n {\n System.out.print(s);\n System.out.flush();\n }\n\n InputStreamReader reader = new InputStreamReader(System.in);\n int ch;\n try\n {\n while ((ch = reader.read()) < 0)\n {\n }\n }\n catch (IOException e)\n {\n ch = 0x0;\n }\n\n return (char)ch;\n }", "public static long copy(InputStream input, OutputStream output, byte[] buffer) throws IOException {\n long count = 0;\n int bytesRead = 0;\n while (-1 != (bytesRead = input.read(buffer))) {\n output.write(buffer, 0, bytesRead);\n count += bytesRead;\n }\n return count;\n }", "private Response multilineCommand(String string2, int n) throws IOException {\n Response response = this.simpleCommand(string2);\n if (!response.ok) {\n return response;\n }\n SharedByteArrayOutputStream sharedByteArrayOutputStream = new SharedByteArrayOutputStream(n);\n int n2 = 10;\n do {\n int n3;\n block10 : {\n block9 : {\n if ((n3 = this.input.read()) < 0) break block9;\n if (n2 != 10 || n3 != 46) break block10;\n if (this.debug) {\n this.out.write(n3);\n }\n if ((n3 = this.input.read()) != 13) break block10;\n if (this.debug) {\n this.out.write(n3);\n }\n n3 = this.input.read();\n if (this.debug) {\n this.out.write(n3);\n }\n }\n if (n3 >= 0) break;\n throw new EOFException(\"EOF on socket\");\n }\n sharedByteArrayOutputStream.write(n3);\n if (this.debug) {\n this.out.write(n3);\n }\n n2 = n3;\n } while (true);\n response.bytes = sharedByteArrayOutputStream.toStream();\n return response;\n }", "public int sendData(String command) throws IOException\n {\n return sendCommandWithID(null, command, null);\n }", "public void writeString(String s) throws Exception {\r\n\tout.write(s.getBytes());\r\n}", "public int writeBytes(ScatteringByteChannel in, int length)\r\n/* 624: */ throws IOException\r\n/* 625: */ {\r\n/* 626:634 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 627:635 */ return super.writeBytes(in, length);\r\n/* 628: */ }", "default NettyOutbound sendString(Publisher<? extends String> dataStream) {\n\t\treturn sendString(dataStream, Charset.defaultCharset());\n\t}", "public void testExecCommand() throws Exception {\n PKey hostKey = PKey.readPrivateKeyFromStream(new FileInputStream(\n \"test/test_rsa.key\"), null);\n PKey publicHostKey = PKey.createFromBase64(hostKey.getBase64());\n mTS.addServerKey(hostKey);\n final FakeServer server = new FakeServer();\n\n final Event sync = new Event();\n new Thread(new Runnable() {\n public void run() {\n try {\n mTS.start(server, 15000);\n sync.set();\n } catch (IOException x) {}\n }\n }).start();\n\n mTC.start(publicHostKey, 15000);\n mTC.authPassword(\"slowdive\", \"pygmalion\", 15000);\n\n sync.waitFor(5000);\n assertTrue(sync.isSet());\n assertTrue(mTS.isActive());\n\n Channel chan = mTC.openSession(5000);\n Channel schan = mTS.accept(5000);\n try {\n chan.execCommand(\"no\", 5000);\n fail(\"expected exception\");\n } catch (IOException x) {\n // pass\n }\n chan.close();\n schan.close();\n\n chan = mTC.openSession(5000);\n chan.execCommand(\"yes\", 5000);\n schan = mTS.accept(5000);\n\n schan.getOutputStream().write(\"Hello there.\\n\".getBytes());\n schan.getStderrOutputStream().write(\"This is on stderr.\\n\".getBytes());\n schan.close();\n\n BufferedReader r = new BufferedReader(new InputStreamReader(\n chan.getInputStream()));\n assertEquals(\"Hello there.\", r.readLine());\n assertEquals(null, r.readLine());\n r = new BufferedReader(new InputStreamReader(\n chan.getStderrInputStream()));\n assertEquals(\"This is on stderr.\", r.readLine());\n assertEquals(null, r.readLine());\n chan.close();\n\n // now try it with combined stdout/stderr\n chan = mTC.openSession(5000);\n chan.execCommand(\"yes\", 5000);\n schan = mTS.accept(5000);\n schan.getOutputStream().write(\"Hello there\\n\".getBytes());\n schan.getStderrOutputStream().write(\"This is on stderr.\\n\".getBytes());\n schan.close();\n\n chan.setCombineStderr(true);\n r = new BufferedReader(new InputStreamReader(chan.getInputStream()));\n assertEquals(\"Hello there\", r.readLine());\n assertEquals(\"This is on stderr.\", r.readLine());\n assertEquals(null, r.readLine());\n chan.close();\n }", "public boolean sendData(String data) throws IOException;", "public void writeString(String message);", "public void writeRaw(String text)\n/* */ throws IOException\n/* */ {\n/* 442 */ int len = text.length();\n/* 443 */ int room = this._outputEnd - this._outputTail;\n/* */ \n/* 445 */ if (room == 0) {\n/* 446 */ _flushBuffer();\n/* 447 */ room = this._outputEnd - this._outputTail;\n/* */ }\n/* */ \n/* 450 */ if (room >= len) {\n/* 451 */ text.getChars(0, len, this._outputBuffer, this._outputTail);\n/* 452 */ this._outputTail += len;\n/* */ } else {\n/* 454 */ writeRawLong(text);\n/* */ }\n/* */ }", "public void writeLine(String s) throws IOException {\n raos.writeLine(s);\n }", "void perform(LineReader input, OutputStream output) throws IOException;", "public Reply sendData(InputStream... ios) throws ThingsException, InterruptedException;", "public void sendMsg(OutputStream os, String s) throws IOException {\r\n\t byte[] bytes = s.getBytes();\r\n\t os.write(bytes);\r\n\t os.flush();\r\n\t }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null);\n PipedInputStream pipedInputStream0 = new PipedInputStream();\n javaCharStream0.ReInit((InputStream) pipedInputStream0, 122, 122);\n assertEquals((-1), javaCharStream0.bufpos);\n }", "int main() {\n string input_string; \n \n // Read a full line of input from stdin (cin) and save it to our variable, input_string.\n getline(cin, input_string); \n \n // Print a string literal saying \"Hello, World.\" to stdout using cout.\n cout << \"Hello, World.\" << endl;\n\n // TODO: Write a line of code here that prints the contents of input_string to stdout.\n\n return 0;\n}", "String consoleInput();", "private void putCommand(String cmd) {\n try {\n stream.write((cmd).getBytes(StandardCharsets.UTF_8));\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n }\n }", "private static String handleCliOutput(Process process, boolean failCommand) throws IOException, InterruptedException{\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\t\tfinal StringBuilder consoleOutput = new StringBuilder(\"\");\n\t\tfinal AtomicReference<Throwable> exception = new AtomicReference<Throwable>();\n\n\t\tThread thread = new Thread(new Runnable() {\n\n\t\t\tString line = null;\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\t\tLogUtils.log(line);\n\t\t\t\t\t\tconsoleOutput.append(line + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\texception.set(e);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tthread.setDaemon(true);\n\n\t\tthread.start();\n\n\t\tint result = process.waitFor();\n\n\t\tthread.join(5000);\n\n\t\tAssertUtils.assertTrue(exception.get() == null);\n\n\t\tif (result != 0 && !failCommand) {\n\t\t\tAssertUtils.assertFail(\"In RunCommand: Process did not complete successfully\");\n\t\t}\n\t\treturn consoleOutput.toString();\n\t}", "public void run() {\r\n\t\ttry {\r\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\twhile (!isInterrupted()) {\r\n\t\t\t\tString message = in.readLine();\r\n\t\t\t\tmOut.println(message);\r\n\t\t\t\tmOut.flush();\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\t// Communication is broken\r\n\t\t}\r\n\t}", "boolean processChatCmd( String s )\n\t{\n\t\t\n\t\tman.getOpponent(this).out.println(s);\n\t\tman.getOpponent(this).out.flush();\n\t\tout.println(\"Message sent.\");\n\t\tout.flush();\n\t\treturn true;\n\t}", "boolean canProcess(final WriteableCommandLine commandLine, final String argument);", "public boolean sendResult(String ans) {\n\t\t try {\n\t\t\t CharSequence cs = (CharSequence)ans;\n\t\t\t ChannelBuffer buf = ChannelBuffers.copiedBuffer(cs, Charset.defaultCharset());\n\t\t\t myPipeline.getChannel().write(buf);\n\t\t } catch (Exception e) {\n\t\t\t System.out.println(\"!! Failure to send results!\");\n\t\t\t return false;\n\t\t }\t \n\t\t return true;\n\t }", "public static String readLine()\n\t{\n\t\tif (bJunit == true)\n\t\t{\n\t\t\tsLastLine = sJunitInput;\n\t\t\twriteLine(\"JUnit INPUT: \" + sJunitInput);\n\t\t\treturn sLastLine;\n\t\t}\n\t\n\t\ttry {\n\t\t\tsLastLine = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error reading from STDIN\");\n\t\t}\n\t\t\n\t\treturn sLastLine;\n\t\t\n\t}", "public interface Console {\n\n void writeMessage(String msg);\n void writeMessage(String msg, Object... args) throws FormatStringException, IllegalFormatCodeException;\n\n String readString();\n String readLine();\n\n int readInteger();\n\n}", "public static Process exec(\n String cmd,\n @SuppressWarnings(\"rawtypes\") Map envVars,\n boolean copyStdOutAndStdErrToParentProcess) throws IOException\n {\n String[] envVarsArr = getEnvVarArray(envVars);\n\n Process p = Runtime.getRuntime().exec(cmd, envVarsArr);\n\n if (copyStdOutAndStdErrToParentProcess)\n {\n pipe(p);\n }\n\n return p;\n }", "void onInput(Terminal terminal, int numChars, String current);", "public final void run() {\n int breaked = 0;\n\n while (!isFinish()) {\n try {\n wait(100);\n } catch (InterruptedException e) {\n // ignore\n } catch (Exception e) {\n // ignore\n }\n try {\n System.out.println(\"Exit value: \" + process.exitValue());\n finish = true;\n } catch (Exception e) {\n // ignore\n }\n\n if (getInputStream() != null) {\n try {\n byte[] byt = new byte[process.getInputStream().available()];\n int readed = process.getInputStream().read(byt);\n if (readed > 0) {\n getInputStream().write(byt, 0, readed);\n getInputStream().flush();\n }\n } catch (IOException e) {\n // ignore\n }\n }\n\n if (getErrorStream() != null) {\n try {\n byte[] byt = new byte[process.getErrorStream().available()];\n int readed = process.getErrorStream().read(byt);\n if (readed > 0) {\n getErrorStream().write(byt, 0, readed);\n getErrorStream().flush();\n }\n } catch (IOException e) {\n // ignore\n }\n }\n }\n }", "public String getInput(String message) throws IOException {\n\t\tSystem.out.print(\">> \"+message+\" \");\n\t\treturn consoleIn.readLine();\n\t}", "public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n input = br.readLine();\n while (input != null) {\n CM.processCommand(input, pw, true);\n input = br.readLine();\n }\n } catch (IOException ioe) {\n pw.println(\"ERROR: Problem with reading user input.\");\n } finally {\n try {\n br.close();\n } catch (IOException ioe) {\n pw.println(\"ERROR: Buffer DNE\");\n }\n }\n }", "void write(String text);" ]
[ "0.57357997", "0.53545135", "0.4984578", "0.49513847", "0.4716412", "0.4566055", "0.45311287", "0.4508507", "0.44924593", "0.44920152", "0.44785914", "0.44571134", "0.4424809", "0.4422257", "0.43933854", "0.4392275", "0.435656", "0.4335088", "0.4330564", "0.431477", "0.4293623", "0.42816517", "0.42753798", "0.42418998", "0.42312908", "0.4230307", "0.4224808", "0.41883364", "0.4165953", "0.41535696", "0.41509944", "0.41354427", "0.41307724", "0.41243595", "0.4120137", "0.41148838", "0.4105401", "0.41021416", "0.40853456", "0.40785345", "0.40606126", "0.404035", "0.4035983", "0.40296707", "0.40098485", "0.4009265", "0.4009265", "0.4008905", "0.4007779", "0.39815608", "0.39669663", "0.3964107", "0.39635587", "0.39616472", "0.39523512", "0.39503473", "0.394714", "0.3940998", "0.39355716", "0.39324594", "0.39158872", "0.39138958", "0.39057276", "0.39045817", "0.3899851", "0.38990304", "0.38832054", "0.38827956", "0.38713443", "0.387071", "0.3860513", "0.38597825", "0.38596877", "0.3855522", "0.38528684", "0.38523638", "0.38519764", "0.38487655", "0.38479194", "0.38378108", "0.38329077", "0.3827715", "0.38250843", "0.38232353", "0.38221633", "0.38176316", "0.38051265", "0.38044268", "0.37849748", "0.37801272", "0.3775684", "0.37730443", "0.37727052", "0.3766604", "0.3764195", "0.37618983", "0.37618592", "0.37606093", "0.37560728", "0.37554437" ]
0.6116246
0
Attempts to read a line from the stdout channel of the spawned process. This method does not block. If a complete line of the program's output is available, it is placed into the buf variable and the method returns the number of characters read. The terminating newline character is not included in buf, but is included in the returned character count. If a complete line of the program's output is not yet available, null is returned.
public String ReadLine() { String s = childStdout.Readline(); return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String readLine() throws IOException, ReadTimeoutException {\n\t\ttry {\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[0] = (byte) inputStream.read();\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[1] = (byte) inputStream.read();\n\t\t\tlineLength = 2;\n\t\t\twhile (lineBuffer[lineLength - 2] != (byte) 13\n\t\t\t\t|| lineBuffer[lineLength - 1] != (byte) 10) {\n\t\t\t\twaitForAvailable();\n\t\t\t\tlineBuffer[lineLength] = (byte) inputStream.read();\n\t\t\t\tlineLength++;\n\t\t\t}\n\t\t\treturn new String(lineBuffer, 0, lineLength - 2);\n\t\t} catch (ArrayIndexOutOfBoundsException aioobe) {\n\t\t\tthrow new IOException(\"Line too long.\");\n\t\t}\n\t}", "protected String readLine()\n { try { if (stdin!=null) return stdin.readLine(); } catch (IOException e) {}\n return null;\n }", "public String readLine() {\n if(in.hasNextLine()) {\n return in.nextLine();\n } else {\n // remote host closed connection!\n cleanup();\n return null;\n }\n }", "public String readLine() throws ShellIOException;", "private String readLine(ByteBuf in) {\n\n int bytesToRead;\n byte[] data = null;\n int bytesToSkip;\n\n if ((bytesToRead = in.bytesBefore((byte) LINE_FEED_CHAR)) > -1) {\n // Found the line feed.\n bytesToSkip = 1;\n\n // Check (and ignore) optional carriage return.\n if (bytesToRead > 0 && in.getByte(bytesToRead - 1) == CARRIAGE_RETURN_CHAR) {\n bytesToSkip++;\n bytesToRead--;\n }\n\n // Check that the bytes we're about to read will not exceed the\n // max frame size.\n checkTooLongFrame(bytesToRead);\n\n data = new byte[bytesToRead];\n in.readBytes(data);\n in.skipBytes(bytesToSkip);\n\n // Count the bytes read.\n currentDecodedByteCount += bytesToRead;\n }\n else {\n // No line feed. Make sure we're not buffering more than the max\n // frame size.\n checkTooLongFrame(in.readableBytes());\n }\n\n if (data != null) {\n return new String(data, StompConstants.UTF_8);\n }\n else {\n return null;\n }\n }", "public final String readNextLine() throws IOException {\r\n String str;\r\n if (buf_end-buf_pos <= 0) {\r\n if (fillBuffer() < 0) {\r\n throw new IOException(\"Error filling buffer!\");\r\n }\r\n }\r\n int lineEnd = -1;\r\n for (int i = buf_pos; i < buf_end; i++) {\r\n if (buffer[i] == '\\n') {\r\n lineEnd = i;\r\n break;\r\n }\r\n }\r\n if (lineEnd < 0) {\r\n StringBuilder input = new StringBuilder(256);\r\n int c;\r\n while (((c = read()) != -1) && (c != '\\n')) {\r\n input.append((char)c);\r\n }\r\n if ((c == -1) && (input.length() == 0)) {\r\n return null;\r\n }\r\n return input.toString();\r\n }\r\n\r\n if (lineEnd > 0 && buffer[lineEnd-1] == '\\r') {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos -1);\r\n }\r\n else {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos);\r\n }\r\n buf_pos = lineEnd +1;\r\n return str;\r\n }", "@Override\n public String readLine() {\n try {\n return this.bufferedReader.readLine();\n } catch (IOException e) {\n return \"\";\n }\n }", "private String readLine() {\r\n\t\ttry {\r\n\t\t\treturn input.readLine();\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public final int getLine() {\n/* 377 */ return this.bufline[this.bufpos];\n/* */ }", "public static int getFileCount(String path)\r\n {\r\n int lines=0;\r\n System.out.println(\"Path of the source file is: \"+path);\r\n String raw_output_lines = new String();\r\n try\r\n {\r\n Channel line_channel=Syncer.session.openChannel(\"exec\");\r\n String get_count_cmd=\"wc -l < \"+path;\r\n System.out.println(get_count_cmd);\r\n ((ChannelExec)line_channel).setCommand(get_count_cmd);\r\n line_channel.setInputStream(null);\r\n ((ChannelExec)line_channel).setErrStream(System.err); \r\n in=line_channel.getInputStream();\r\n line_channel.connect(); \r\n while(true)\r\n {\r\n while(in.available()>0)\r\n {\r\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n raw_output_lines = br.readLine();\r\n System.out.println(\"Raw_output: \"+raw_output_lines);\r\n }\r\n if(line_channel.isClosed())\r\n break; \r\n }\r\n in.close();\r\n line_channel.disconnect();\r\n System.out.println(\"Out of loop\");\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Lines (in string): \"+raw_output_lines);\r\n String buffer = new String(raw_output_lines);\r\n System.out.println(\"Out of loop\");\r\n lines = Integer.parseInt(buffer);\r\n System.out.println(\"Out of loop\");\r\n System.out.println(\"lines FOUND: \"+lines);\r\n return lines;\r\n }", "protected final String _readTTYLine() {\n\n StringBuffer buf = new StringBuffer(80);\n int c = 0;\n try {\n while ((c = System.in.read()) != -1) {\n char ch = (char) c;\n if (ch == '\\r') {\n ch = (char) System.in.read();\n if (ch == '\\n') {\n break;\n } else {\n continue;\n }\n } else if (ch == '\\n') {\n break; // Unix flavors.\n }\n buf.append(ch);\n }\n } catch (IOException e) {\n this._logger.error(ERROR_TAG + e.getMessage());\n }\n return buf.toString();\n }", "@Override\n\tpublic String readLine() throws IOException {\n\t\tString line = super.readLine();\n\t\n\t\tif(line==null){\n\t\t\treturn null;\n\t\t}\t\n\t\tline = count+\" \"+line;\n\t\tcount++;\n\t\treturn line;\n\t}", "private static String readLine(ResettableInputStream in, int maxLength)\n throws IOException {\n\n StringBuilder s = new StringBuilder();\n int c;\n int i = 1;\n while ((c = in.readChar()) != -1) {\n // FIXME: support \\r\\n\n if (c == '\\n') {\n break;\n }\n //System.out.printf(\"seen char val: %c\\n\", (char)c);\n s.append((char)c);\n\n if (i++ > maxLength) {\n System.out.println(\"Output: >\" + s + \"<\");\n throw new RuntimeException(\"Too far!\");\n }\n }\n if (s.length() > 0) {\n s.append('\\n');\n return s.toString();\n } else {\n return null;\n }\n }", "InputStream getStdout();", "public abstract InputStream stdout();", "String readLine() throws IOException\n\t{\n\t\tString line = null;\n\t\tif (haveStreams())\n\t\t\tline = m_in.readLine();\n\t\telse\n\t\t\tline = keyboardReadLine();\n\n\t\tsetCurrentLine(line);\n\t\treturn line;\n\t}", "public static String readLine()\n {\n \tString ch=scanner.nextLine();\n \treturn ch;\n }", "public abstract String readLine() throws IOException, InterruptedException;", "@Override\n\tpublic String readLine() throws IOException {\n\t\tint length = readInt();\n\t\twriteInt(length);\n\t\tbyte[] data = awaitNextPacket(new byte[length]);\n\t\treturn new String(data);\n\t}", "public int readLine(byte[] b, int off, int len) throws IOException {\n \tif (len <= 0) {\n \t return 0;\n \t}\n \tint count = 0, c;\n\n \twhile ((c = read()) != -1) {\n \t b[off++] = (byte)c;\n \t count++;\n \t if (c == '\\n' || count == len) {\n \t\tbreak;\n \t }\n \t}\n \treturn count > 0 ? count : -1;\n }", "public String ReadErrorLine() {\n\treturn childStderr.Readline();\n }", "public static int getLine() {\r\n\t\treturn rline;\r\n\t}", "@Override\n public String readLine() throws IOException {\n checkBuffer(-1);\n this.randomAccessFile.seek(this.fileOffset + this.bufferPointer.bufferOffset);\n String line = this.randomAccessFile.readLine();\n this.fileOffset = this.randomAccessFile.getFilePointer();\n this.bufferPointer.invalidate();\n return line;\n }", "public synchronized String Readline() {\n\t return lines.poll();\n\t}", "public static String getOutputFromProcess(Process process) throws IOException, InterruptedException {\n\n String s;\n final StringBuilder r = new StringBuilder();\n final BufferedReader stdInput = new BufferedReader(\n new InputStreamReader(\n process.getInputStream()\n )\n );\n\n process.waitFor();\n\n while ((s = stdInput.readLine()) != null) {\n r.append(s);\n r.append(CSPUtilidadesSO.LINE_SEPARATOR);\n }\n\n return r.toString();\n }", "public static String readLine()\n\t{\n\t\tif (bJunit == true)\n\t\t{\n\t\t\tsLastLine = sJunitInput;\n\t\t\twriteLine(\"JUnit INPUT: \" + sJunitInput);\n\t\t\treturn sLastLine;\n\t\t}\n\t\n\t\ttry {\n\t\t\tsLastLine = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error reading from STDIN\");\n\t\t}\n\t\t\n\t\treturn sLastLine;\n\t\t\n\t}", "public String readLine() throws IOException {\n\t\t// Punt on this and use BufferedReader routines.\n\t\tBufferedReader d = new BufferedReader(new InputStreamReader(this));\n\t\treturn d.readLine();\n\t}", "private static int findEndOfLine(final ChannelBuffer buffer) {\n final int n = buffer.writerIndex();\n for (int i = buffer.readerIndex(); i < n; i ++) {\n final byte b = buffer.getByte(i);\n if (b == '\\n') {\n return i;\n } else if (b == '\\r' && i < n - 1 && buffer.getByte(i + 1) == '\\n') {\n return i; // \\r\\n\n }\n }\n return -1; // Not found.\n }", "int getLine();", "public int getLine();", "public int getLine();", "public int getLine();", "public int nextFreeBufferLine() {\n\t\tlogger.debug(\">> nextFreeBufferLine()\");\n\t\tint line = getRndLine();\n\t\tlogger.debug(\"<< nextFreeBufferLine(): %s\", line);\n\t\treturn line;\n\t}", "private static String readLine() {\r\n String input=\"\";\r\n try {\r\n input = in.readLine();\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n return input;\r\n }", "public static String readNextLine() {\n return sc.nextLine();\n }", "public static String readLine(InputStream inputStream, String charset,\n boolean includeCR) throws IOException {\n byte[] line = readLine(inputStream, includeCR);\n return (null == line) ? null : new String(line, charset);\n }", "public static byte[] readLine(InputStream inputStream, boolean includeCR)\n throws IOException {\n int len = 0;\n int buflen = 128; // average line length\n byte[] buf = new byte[buflen];\n byte[] ret = null;\n int b;\n while (true) {\n b = inputStream.read();\n switch (b) {\n case -1:\n if (len > 0) {\n ret = new byte[len];\n System.arraycopy(buf, 0, ret, 0, len);\n return ret;\n }\n return null;\n case 10:\n if ((len > 0) && (buf[len - 1] == 13)) {\n if (includeCR) {\n ret = new byte[len + 1];\n if (len > 0)\n System.arraycopy(buf, 0, ret, 0, len);\n ret[len] = 10;\n } else {\n len--;\n ret = new byte[len];\n if (len > 0)\n System.arraycopy(buf, 0, ret, 0, len);\n }\n return ret;\n }\n default:\n buf[len++] = (byte) b;\n if (len >= buflen) {\n buflen *= 2;\n byte[] tmp = new byte[buflen];\n System.arraycopy(buf, 0, tmp, 0, len);\n buf = tmp;\n }\n }\n }\n }", "private String readLine() {\n\t\ttry {\n\t\t\treturn reader.nextLine();\t\n\t\t} catch (NoSuchElementException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public void receive() throws IOException, InterruptedException\n {\n while( process == null ) {\n Thread.sleep( 100 );\n }\n\n // Send string from external nc process\n new Thread( new Runnable()\n {\n @Override\n public void run()\n {\n try {\n process.getOutputStream().write( inputFromProcess.getBytes() );\n process.getOutputStream().flush();\n if( netCat instanceof UdpNetCat ) {\n Thread.sleep( 500 );\n process.getOutputStream().write( UdpNetCat.DISCONNECT_SEQUENCE.getBytes() );\n process.getOutputStream().flush();\n }\n process.getOutputStream().close();\n } catch( Exception e ) {\n e.printStackTrace();\n }\n }\n } ).start();\n\n // Receive string from external nc process\n netCat.createOutput();\n netCat.execute( RECEIVE.toString() );\n latch.await( 5, TimeUnit.SECONDS );\n\n assertNotNull( result );\n assertThat( result.op, is( RECEIVE ));\n String line = netCat.getOutputString();\n Log.i( CLASS_NAME, line );\n assertThat( line, is( INPUT_NC ));\n }", "public String readLine() throws IOException {\n/* 176 */ String line = this.currentFilePart.readLine();\n/* 177 */ while (line == null) {\n/* 178 */ this.currentFilePart = this.currentFilePart.rollOver();\n/* 179 */ if (this.currentFilePart != null) {\n/* 180 */ line = this.currentFilePart.readLine();\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 188 */ if (\"\".equals(line) && !this.trailingNewlineOfFileSkipped) {\n/* 189 */ this.trailingNewlineOfFileSkipped = true;\n/* 190 */ line = readLine();\n/* */ } \n/* */ \n/* 193 */ return line;\n/* */ }", "private String readLine(BufferedReader br) throws IOException {\n StringBuffer sb = new StringBuffer();\n boolean haveCR = false;\n boolean done = false;\n int i;\n char c;\n \n while((i = br.read()) != -1) {\n c = (char)i;\n \n if(haveCR) {\n switch(c) {\n case '\\n':\n sb.append(c);\n done = true;\n break;\n default:\n br.reset();\n done = true;\n break;\n }\n }\n else {\n sb.append(c);\n switch(c) {\n case '\\n':\n done = true;\n break;\n case '\\r':\n br.mark(1);\n haveCR = true;\n }\n }\n \n if(done) {\n break;\n }\n }\n\n return sb.length() > 0 ? sb.toString() : null;\n }", "@Override\n\tpublic int available() throws IOException {\n\t\treturn buf.readableBytes();\n\t}", "public String getLine()\n\t{\n\t\ttry\n\t\t{\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn line;\n\t}", "private String getTextLineFromStream( InputStream is ) throws IOException {\n StringBuffer buffer = new StringBuffer();\n int b;\n\n \twhile( (b = is.read()) != -1 && b != (int) '\\n' ) {\n \t\tbuffer.append( (char) b );\n \t}\n \treturn buffer.toString().trim();\n }", "public static String bufferScanner() throws IOException\n\t{\n\treturn br.readLine();\n\t}", "private String eatLine( InputStream stream ) throws IOException {\n buffer = new StringBuffer();\n for ( boolean done = false; ! done; ) {\n int c = stream.read();\n switch ( (char) c ) {\n case '\\n':\n case '\\r':\n case END:\n done = true;\n break;\n default:\n buffer.append( (char) c );\n }\n }\n return buffer.toString();\n }", "public int read() throws IOException {\n if (!started) {\n start();\n }\n if (buffer == null)\n return -1;\n if (bufpos == buflen) {\n buffer = refreshBuffer();\n if (buffer == null)\n return -1;\n }\n return 0xFF & buffer[bufpos++];\n }", "private void readLine() throws IOException {\n line = reader.readLine(); // null at the end of the source\n currentPos = -1;\n\n if (line != null) {\n lineNum++;\n }\n\n if (line != null) {\n sendMessage(new Message(MessageType.SOURCE_LINE, new Object[]{lineNum, line}));\n }\n }", "public String readLine() throws IOException\r\n\t{\r\n\t\treturn file.readLine();\r\n\t}", "private String readNextLine() {\n StringBuilder sb = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n sb.append(br.readLine());\n } catch (IOException e) {\n e.fillInStackTrace();\n }\n\n return sb.toString();\n }", "public synchronized String readLineFromFile(){\n\t\tString line = null;\n\t\t\n\t\ttry{\n\n\t\t\tif((line = bufferedInput.readLine()) != null){\n\t\t\t\treturn line;\n\t\t\t}\n\t\t}\n\t\tcatch(NullPointerException ex) {\n \t\tSystem.err.println(\"File is Blank\");\t\t \n \t\tSystem.exit(1); \n\t\t}\n\t\tcatch(IOException ex) {\n System.err.println(\"Unable to read a line from file\");\t\t \n\t\t\tSystem.exit(1); \n }\n\n\t\treturn line;\n\t}", "public String ReadLine(int maxBlockingTime) {\n\tlong startTime = System.currentTimeMillis();\n\twhile (System.currentTimeMillis() - startTime < maxBlockingTime) {\n\t String s = ReadLine();\n\t if (s != null) {\n\t\treturn s;\n\t }\n\t try {Thread.sleep(10); } catch (Exception e) { }\n\t}\n\treturn null;\n }", "public String readLine(){\n\t\tString line;\n\t\ttry{\n\t\t\tline=scanner.nextLine();\n\t\t}catch (NoSuchElementException e){\n\t\t\tline=null;\n\t\t}\n\t\treturn line;\n\t}", "public synchronized int read() throws InterruptedException\n {\n while (bufferEmpty(\"Consumer\"))\n {\n // Console.println(\"Consumer\" + \" Waiting on Buffer\");\n\n this.wait();\n\n // bufferEmpty = bufferEmpty(\"Consumer\");\n }\n\n int out = theBuffer;\n // Console.println(\"Consumer reading \" + out + \" from Buffer\");\n theBuffer = 0;\n this.notify();\n\n return out;\n }", "private static int readLine(DataInputStream dis){\n\t\tint len = -1;\n\t\ttry{\n\t\t\tboolean end = false;\n\t\t\tString lineEnd = \"\\n\"; //assumes that the end of the line is marked with this\n\t\t\tbyte[] lineEndBytes = lineEnd.getBytes();\n\t\t\tbyte[] byteBuf = new byte[lineEndBytes.length];\n\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\twhile(!end){\n\t\t\t\tdis.read(byteBuf,0,lineEndBytes.length);\n\t\t\t\tbaos.write(byteBuf);\n\t\t\t\tString t = new String(byteBuf);\n\t\t\t\t//System.out.print(t); //uncomment if you want to see what the lines actually look like\n\t\t\t\tif(t.equals(lineEnd)) end=true;\n\t\t\t}\n\t\t\tString data = new String(baos.toByteArray());\n\t\t\tif(data.contains(\"Content-Length: \")){\n\t\t\t\tint index = data.indexOf(\"Content-Length: \") +\"Content-Length: \".length();\n\t\t\t\tif(index >= 0){\n\t\t\t\t\tlen = Integer.parseInt(data.substring(index, data.length() -2));\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"Error Processing the data input Stream : \" +e.getMessage());\n\t\t\treturn -1;\n\t\t}\n\t\treturn len;\n\n\t}", "String getLine();", "public CommandLine getLine() {\n return line;\n }", "public void testReadLineFromConsole() throws Exception {\n System.out.println(\"readLineFromConsole\");\n String expResult = \"\";\n Scanner scanner = null;\n when(scanner.nextLine()).thenReturn(\"console\");\n String data = IOUtil.readLineFromConsole();\n assertNotNull(data);\n\n }", "private int lineNumber() throws IOException {\n int count = 0;\n File answers = new File(this.settings.getValue(\"botAnswerFile\"));\n try (RandomAccessFile raf = new RandomAccessFile(answers, \"r\")) {\n while (raf.getFilePointer() != raf.length()) {\n raf.readLine();\n count++;\n }\n }\n return count;\n }", "public String getMarkdownInputLine() {\n if (markdownReader == null) {\n return null;\n } else {\n return markdownReader.readLine();\n }\n }", "public String recvRaw() throws IOException\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn _reader.readLine();\n\t\t} catch (IOException e)\n\t\t{\n\t\t\tthrow new IOException(\"We have been killed: \" + e.getMessage(), e);\n\t\t}\n\t}", "abstract public String readLine() throws TerminalException;", "public String readLine() {\n BufferedReader input;\n String str = null;\n \n if (file == null || line < 0) {\n return null;\n }\n try {\n input = new BufferedReader(new FileReader(file));\n for (int i = 0; i < line; i++) {\n str = input.readLine();\n }\n input.close();\n } catch (IOException e) {\n return null;\n }\n return str;\n }", "private void printCommandOutput(InputStream in, Channel channel,boolean showOutput) throws Exception\n\t{\n\t\tbyte[] tmp = new byte[1024];\n\t\twhile(true)\n\t\t{\twhile(in.available() > 0)\n\t\t\t{\tint i = in.read(tmp, 0, 1024);\n\t\t\t\tif (i < 0) break;\n\t\t\t\tif(showOutput) soutConsole.appendLine(new String(tmp, 0, i));\n\t\t\t}\n\t\t\tif (channel.isClosed())\n\t\t\t{\tif(showOutput)\n\t\t\t\t\tsoutConsole.appendLine(\"exit-status: \"+ channel.getExitStatus());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttry\n\t\t\t{\tThread.sleep(1000);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tsoutConsole.appendLine(\"Error: \"+e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public synchronized Object waitOutput() {\n Object output = null;\n if (hasOutput()) {\n boolean isFailed = false;\n do {\n try {\n output = outputQueue.take();\n isFailed = false;\n } catch (Exception e) {\n if (output == null) {\n isFailed = true;\n } else {\n isFailed = false;\n }\n // Interrupt may happen when waiting for\n // an element is available\n e.printStackTrace();\n }\n } while (isFailed);\n outputCount++;\n }\n return output;\n }", "int getLinesRead();", "public CharSequence getLineContents(int line) {\n getLock().getReadLock();\n try {\n return lines.getLineContents(line);\n } finally {\n getLock().relinquishReadLock();\n }\n }", "public static String readConsole(){\r\n\t\tString number = new String(\"\");\r\n\t\t\r\n\t\tSystem.out.println(\"Bitte geben Sie eine Zahl ein!\");\r\n\t\tBufferedReader bufferOne = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n\t\ttry {\r\n\t\t\tnumber = bufferOne.readLine();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn number;\r\n\t}", "static String ReadLn(int maxLength){\n byte line[] = new byte [maxLength];\n int length = 0;\n int input = -1;\n try{\n while (length < maxLength){//Read untill maxlength\n input = System.in.read();\n if ((input < 0) || (input == '\\n')) break; //or untill end of line ninput\n line [length++] += input;\n }\n\n if ((input < 0) && (length == 0)) return null; // eof\n return new String(line, 0, length);\n }catch (IOException e){\n return null;\n }\n }", "public static String readAsciiLine(InputStream in) throws IOException {\n\t\t// TODO: support UTF-8 here instead\n\n\t\tStringBuilder result = new StringBuilder(80);\n\t\twhile (true) {\n\t\t\tint c = in.read();\n\t\t\tif (c == -1) {\n\t\t\t\tthrow new EOFException();\n\t\t\t} else if (c == '\\n') {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tresult.append((char) c);\n\t\t}\n\t\tint length = result.length();\n\t\tif (length > 0 && result.charAt(length - 1) == '\\r') {\n\t\t\tresult.setLength(length - 1);\n\t\t}\n\t\treturn result.toString();\n\t}", "private static boolean readLine(BufferedInputStream is, MutableString read)\n throws IOException {\n read.length(0);\n int c = is.read();\n while((c!=-1)&&c!='\\n'&&c!='\\r') {\n read.append((char)c);\n c = is.read();\n }\n if(c==-1 && read.length()==0) {\n // EOF and none read; return false\n return false;\n }\n if(c=='\\n') {\n // consume LF following CR, if present\n is.mark(1);\n if(is.read()!='\\r') {\n is.reset();\n }\n }\n // a line (possibly blank) was read\n return true;\n }", "public int WriteLine(String message) {\n\tWrite(message);\n\tchildStdin.AddCharacters(\"\\n\");\n\treturn message.length() + 1;\n }", "public static String getLine(InputStreamReader reader) {\n StringBuffer b = new StringBuffer();\n int c;\n try {\n while ((c = reader.read()) != -1 && c != '\\n') {\n if (c != '\\r')\n b.append((char)c);\n }\n } catch (IOException ioe) {\n c = -1;\n }\n\n if (c == -1 && b.length() == 0)\n return null;\n else\n return b.toString();\n }", "private String readProcess (final Process p) {\n \tString message=null;\n \tfinal BufferedReader in =new BufferedReader ( new InputStreamReader(p.getErrorStream()));\n \tString line;\n \ttry {\n\t\t\twhile((line = in.readLine()) != null)\n\t\t\t{\n\t\t\t\tmessage =line;\n\t\t\t\tif((line = in.readLine()) != null && line.startsWith(\"\\tat\"))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\t\tmessage =message.substring(message.indexOf(':')+2);\n\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tlogfile.severe(e.getMessage());\n\t\t}\n\t\treturn message;\n }", "static String ReadLn(int maxLength) {\n byte line[] = new byte[maxLength];\n int length = 0;\n int input = -1;\n try {\n while (length < maxLength) { // Read untill maxlength\n input = System.in.read();\n if ((input < 0) || (input == '\\n'))\n break; // or untill end of line ninput\n line[length++] += input;\n }\n\n if ((input < 0) && (length == 0))\n return null; // eof\n return new String(line, 0, length);\n } catch (java.io.IOException e) {\n return null;\n }\n }", "public native long getReceivedByteCount()\n throws IOException, IllegalArgumentException;", "public static Integer getLine(String line){\n\t\ttry{\n\t\t\tScanner scanner = new Scanner(new File(ramProgram));\n\t\t\tInteger numberLine = 1;\n\t\t\twhile (scanner.hasNext()){\n\t\t\t\tif (scanner.nextLine().trim().equals(line)){\n\t\t\t\t\tscanner.close();\n\t\t\t\t\treturn numberLine;\n\t\t\t\t}\n\t\t\t\tnumberLine++;\n\t\t\t}\n\t\t\tscanner.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\t\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "@Override\n public int read() throws IOException {\n int c;\n\n do {\n c = System.in.read();\n } while(c != -1 && (c == '\\n' || c == '\\r'));\n\n return c;\n }", "public static String readLine(BufferedReader reader, StringBuilder sb0) throws IOException {\n final int readAheadLimit = 2;\n\n int val = 0;\n String retstr = null;\n while (reader.ready()) {\n val = reader.read();\n\n // Stop reading if end of file seen\n if (val == -1) {\n break;\n }\n\n final char c = (char)val;\n\n // Stop reading if we find a line ending and set return string\n if (c == '\\n') {\n retstr = sb0.toString();\n clearAndResizeSbIfNeeded(sb0);\n break;\n } else if (c == '\\r') {\n // Check for Windows line ending, CRLF\n reader.mark(readAheadLimit);\n if (reader.read() != '\\n') {\n reader.reset();\n }\n\n retstr = sb0.toString();\n clearAndResizeSbIfNeeded(sb0);\n break;\n } else {\n sb0.append(c);\n }\n }\n\n return retstr;\n }", "public final String readASCIILine() throws IOException\n {\n char buf[] = lineBuffer;\n\n if (buf == null)\n {\n buf = lineBuffer = new char[128];\n }\n\n int room = buf.length;\n int offset = 0;\n int c;\n\n loop: while (true)\n {\n switch (c = in.read())\n {\n case -1:\n case '\\n':\n break loop;\n\n case '\\r':\n int c2 = in.read();\n if ((c2 != '\\n') && (c2 != -1))\n {\n if (!(in instanceof PushbackInputStream))\n {\n in = new PushbackInputStream(in);\n }\n ((PushbackInputStream) in).unread(c2);\n }\n break loop;\n\n default:\n if (--room < 0)\n {\n buf = new char[offset + 128];\n room = buf.length - offset - 1;\n System.arraycopy(lineBuffer, 0, buf, 0, offset);\n lineBuffer = buf;\n }\n buf[offset++] = (char) c;\n break;\n }\n }\n if ((c == -1) && (offset == 0))\n {\n return null;\n }\n return String.copyValueOf(buf, 0, offset);\n }", "@Override\n public void run() {\n String data = readFileBufferedReader();\n System.out.printf(\"Using BufferedReader, append lines to String. read %d char\\n\", data.length());\n }", "public void printRead(int channel);", "boolean waitForProcessOutput (Process proc, String pattern) {\r\n\r\n\t\tBufferedReader stdInput = new BufferedReader(new \r\n\t\t InputStreamReader(proc.getInputStream()));\r\n\r\n\t\twhile (true) {\r\n\t\t\tString s;\r\n\t\t\ttry {\r\n\t\t\t\ts = stdInput.readLine();\r\n\t\t\t\tif (s.contains(\"pattern\"))\r\n\t\t\t\t\treturn true;\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public String readLine() {\n\n String temp = null;\n\n try\n {\n assert this.isValid();\t\t\t//Test that we can read the file\n temp = br.readLine();\t\t\t//Read the next line and store it as temp\n }\n\n\t\t//Catch possible exceptions\n catch(java.io.IOException e) {\n System.out.println(\"Error reading file: \" + e );\n }\n\n return temp;\n }", "public synchronized String readLine(int charLimit) throws IOException {\n\t\tint origLimit = charLimit;\n\n\t\tStringBuffer sb = new StringBuffer();\n\t\twhile (charLimit > 0) {\n\t\t\tint toRead = Math.min(charLimit, m_queueLength);\n\t\t\tfor (int a = 0; a < toRead; a++) {\n\t\t\t\tchar c = current();\n\t\t\t\tnext();\n\t\t\t\tif (isNewLine(c)) {\n\t\t\t\t\tskipLineBreak();\n\t\t\t\t\treturn sb.toString();\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t}\n\t\t\tcharLimit -= toRead;\n\t\t\tpopulateQueue();\n\n\t\t\tif (m_queueLength == 0) {\n\t\t\t\tif (sb.length() == 0) {\n\t\t\t\t\tthrow new EOFException();\n\t\t\t\t}\n\t\t\t\treturn sb.toString();\n\t\t\t}\n\t\t}\n\n\t\tthrow new IOException(\"The limit (\" + origLimit\n\t\t\t\t+ \") of chars were read without reaching a line break.\");\n\t}", "String getLine ();", "public String getLine();", "static public StdReader stdout(Process process, StdProcessor processor) {\n \n return new StdReader(process.getInputStream(), processor);\n }", "public int getLine() {\n return line;\n }", "public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n input = br.readLine();\n while (input != null) {\n CM.processCommand(input, pw, true);\n input = br.readLine();\n }\n } catch (IOException ioe) {\n pw.println(\"ERROR: Problem with reading user input.\");\n } finally {\n try {\n br.close();\n } catch (IOException ioe) {\n pw.println(\"ERROR: Buffer DNE\");\n }\n }\n }", "public int getLine() {\r\n return line;\r\n }", "int getNumberOfLines();", "public int read(char[] buf, int n) {\n int Readnum=0;\n int current=0;\n while(Readnum<n){\n if(nextRead>=end){\n if(end>=0&&end<4) break; // end of file\n end=read4(buffer);\n nextRead=0;\n }\n else{\n buf[current++]=buffer[nextRead++];\n Readnum++;\n }\n }\n return current;\n }", "public static String readLine(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.nextLine();\n }", "public ConsumptionStatus consumeBuffer() {\n\t\tif (status == ConsumptionStatus.BUFFERED){\n\t\t\tString buffered = newBuffer;\n\t\t\tnewBuffer = null;\n\t\t\tstatus = ConsumptionStatus.EMPTY;\n\t\t\tconsumeLine(buffered);\n\t\t\treturn status;\n\t\t}else {\n\t\t\tthrow new IllegalStateException(\"There is no buffer to consume.\");\n\t\t}\n\t}", "public int countLines() throws IOException {\n InputStream is = new BufferedInputStream(new FileInputStream(filename));\n try {\n byte[] c = new byte[1024];\n\n int readChars = is.read(c);\n if (readChars == -1) {\n // bail out if nothing to read\n return 0;\n }\n\n // make it easy for the optimizer to tune this loop\n int count = 0;\n while (readChars == 1024) {\n for (int i=0; i<1024;) {\n if (c[i++] == '\\n') {\n ++count;\n }\n }\n readChars = is.read(c);\n }\n\n // count remaining characters\n while (readChars != -1) {\n for (int i=0; i<readChars; ++i) {\n if (c[i] == '\\n') {\n ++count;\n }\n }\n readChars = is.read(c);\n }\n\n return count == 0 ? 1 : count;\n } finally {\n is.close();\n }\n }", "public String readLineFromServer() throws ServerUnavailableException {\n if (in != null) {\n try {\n // Read and return answer from Server\n String answer = in.readLine();\n if (answer == null) {\n throw new ServerUnavailableException(\"Could not read from server.\");\n }\n return answer;\n } catch (IOException e) {\n throw new ServerUnavailableException(\"Could not read from server.\");\n }\n } else {\n throw new ServerUnavailableException(\"Could not read from server.\");\n }\n }", "public final int getLine()\n\t{\n\t\treturn address >>> 8 & 0x0F;\n\t}", "public static void readStreamOfProcess(final Process pr){\n\t\t readStreamInThread(pr.getInputStream(),false, pr);\n\t\t readStreamInThread(pr.getErrorStream(),true, pr);\n\t }", "private String nextLine() {\n if (console) {\n return con.nextLine();\n }\n return scan.nextLine();\n\n }" ]
[ "0.5790898", "0.5660509", "0.5636956", "0.55338454", "0.55153924", "0.54153925", "0.5397084", "0.5289067", "0.5205893", "0.5194323", "0.51942366", "0.5175007", "0.5159914", "0.5136458", "0.5114919", "0.50496936", "0.5048568", "0.5011905", "0.5003278", "0.49883747", "0.49502528", "0.49221486", "0.49208078", "0.49165538", "0.48995447", "0.4862347", "0.4856776", "0.4851448", "0.4844419", "0.48436642", "0.48436642", "0.48436642", "0.4804747", "0.47732192", "0.4763692", "0.47533396", "0.47451428", "0.47266385", "0.47121477", "0.4686365", "0.4673739", "0.46608388", "0.46586132", "0.46522605", "0.46408033", "0.4637649", "0.46261427", "0.46116439", "0.4607108", "0.460297", "0.46019548", "0.45939186", "0.45842457", "0.45759496", "0.45702448", "0.45483905", "0.45382768", "0.45331255", "0.45250767", "0.45222843", "0.44863448", "0.44807997", "0.44775552", "0.44614568", "0.4455745", "0.4451595", "0.4450908", "0.44504964", "0.44434857", "0.44417632", "0.44246012", "0.44208035", "0.44181255", "0.44173053", "0.4412897", "0.44062346", "0.44052887", "0.44039994", "0.43973497", "0.436771", "0.43651757", "0.4363938", "0.43579748", "0.4357367", "0.4356726", "0.43521956", "0.43423042", "0.43291447", "0.43290982", "0.4327842", "0.43272862", "0.43263605", "0.43151498", "0.43059975", "0.43011987", "0.42983168", "0.42924577", "0.42867142", "0.42830423", "0.42812493" ]
0.6667033
0
A blocking ReadLine. Waits for characters written to the spawned program's stdout stream until a newline is read, or max_blocking_time milliseconds have elapsed. Returns the number of characters read.
public String ReadLine(int maxBlockingTime) { long startTime = System.currentTimeMillis(); while (System.currentTimeMillis() - startTime < maxBlockingTime) { String s = ReadLine(); if (s != null) { return s; } try {Thread.sleep(10); } catch (Exception e) { } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String readLine() throws IOException, ReadTimeoutException {\n\t\ttry {\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[0] = (byte) inputStream.read();\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[1] = (byte) inputStream.read();\n\t\t\tlineLength = 2;\n\t\t\twhile (lineBuffer[lineLength - 2] != (byte) 13\n\t\t\t\t|| lineBuffer[lineLength - 1] != (byte) 10) {\n\t\t\t\twaitForAvailable();\n\t\t\t\tlineBuffer[lineLength] = (byte) inputStream.read();\n\t\t\t\tlineLength++;\n\t\t\t}\n\t\t\treturn new String(lineBuffer, 0, lineLength - 2);\n\t\t} catch (ArrayIndexOutOfBoundsException aioobe) {\n\t\t\tthrow new IOException(\"Line too long.\");\n\t\t}\n\t}", "public abstract String readLine() throws IOException, InterruptedException;", "public String ReadLine() {\n\tString s = childStdout.Readline();\n\treturn s;\n }", "@Override\n\tpublic String readLine() throws IOException {\n\t\tint length = readInt();\n\t\twriteInt(length);\n\t\tbyte[] data = awaitNextPacket(new byte[length]);\n\t\treturn new String(data);\n\t}", "public String readLine() throws ShellIOException;", "protected String readLine()\n { try { if (stdin!=null) return stdin.readLine(); } catch (IOException e) {}\n return null;\n }", "public String recvRaw() throws IOException\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn _reader.readLine();\n\t\t} catch (IOException e)\n\t\t{\n\t\t\tthrow new IOException(\"We have been killed: \" + e.getMessage(), e);\n\t\t}\n\t}", "public synchronized String readLine(int charLimit) throws IOException {\n\t\tint origLimit = charLimit;\n\n\t\tStringBuffer sb = new StringBuffer();\n\t\twhile (charLimit > 0) {\n\t\t\tint toRead = Math.min(charLimit, m_queueLength);\n\t\t\tfor (int a = 0; a < toRead; a++) {\n\t\t\t\tchar c = current();\n\t\t\t\tnext();\n\t\t\t\tif (isNewLine(c)) {\n\t\t\t\t\tskipLineBreak();\n\t\t\t\t\treturn sb.toString();\n\t\t\t\t}\n\t\t\t\tsb.append(c);\n\t\t\t}\n\t\t\tcharLimit -= toRead;\n\t\t\tpopulateQueue();\n\n\t\t\tif (m_queueLength == 0) {\n\t\t\t\tif (sb.length() == 0) {\n\t\t\t\t\tthrow new EOFException();\n\t\t\t\t}\n\t\t\t\treturn sb.toString();\n\t\t\t}\n\t\t}\n\n\t\tthrow new IOException(\"The limit (\" + origLimit\n\t\t\t\t+ \") of chars were read without reaching a line break.\");\n\t}", "@Override\n public String readLine() {\n try {\n return this.bufferedReader.readLine();\n } catch (IOException e) {\n return \"\";\n }\n }", "public void receive() throws IOException, InterruptedException\n {\n while( process == null ) {\n Thread.sleep( 100 );\n }\n\n // Send string from external nc process\n new Thread( new Runnable()\n {\n @Override\n public void run()\n {\n try {\n process.getOutputStream().write( inputFromProcess.getBytes() );\n process.getOutputStream().flush();\n if( netCat instanceof UdpNetCat ) {\n Thread.sleep( 500 );\n process.getOutputStream().write( UdpNetCat.DISCONNECT_SEQUENCE.getBytes() );\n process.getOutputStream().flush();\n }\n process.getOutputStream().close();\n } catch( Exception e ) {\n e.printStackTrace();\n }\n }\n } ).start();\n\n // Receive string from external nc process\n netCat.createOutput();\n netCat.execute( RECEIVE.toString() );\n latch.await( 5, TimeUnit.SECONDS );\n\n assertNotNull( result );\n assertThat( result.op, is( RECEIVE ));\n String line = netCat.getOutputString();\n Log.i( CLASS_NAME, line );\n assertThat( line, is( INPUT_NC ));\n }", "private String readLine(ByteBuf in) {\n\n int bytesToRead;\n byte[] data = null;\n int bytesToSkip;\n\n if ((bytesToRead = in.bytesBefore((byte) LINE_FEED_CHAR)) > -1) {\n // Found the line feed.\n bytesToSkip = 1;\n\n // Check (and ignore) optional carriage return.\n if (bytesToRead > 0 && in.getByte(bytesToRead - 1) == CARRIAGE_RETURN_CHAR) {\n bytesToSkip++;\n bytesToRead--;\n }\n\n // Check that the bytes we're about to read will not exceed the\n // max frame size.\n checkTooLongFrame(bytesToRead);\n\n data = new byte[bytesToRead];\n in.readBytes(data);\n in.skipBytes(bytesToSkip);\n\n // Count the bytes read.\n currentDecodedByteCount += bytesToRead;\n }\n else {\n // No line feed. Make sure we're not buffering more than the max\n // frame size.\n checkTooLongFrame(in.readableBytes());\n }\n\n if (data != null) {\n return new String(data, StompConstants.UTF_8);\n }\n else {\n return null;\n }\n }", "private static String readLine(ResettableInputStream in, int maxLength)\n throws IOException {\n\n StringBuilder s = new StringBuilder();\n int c;\n int i = 1;\n while ((c = in.readChar()) != -1) {\n // FIXME: support \\r\\n\n if (c == '\\n') {\n break;\n }\n //System.out.printf(\"seen char val: %c\\n\", (char)c);\n s.append((char)c);\n\n if (i++ > maxLength) {\n System.out.println(\"Output: >\" + s + \"<\");\n throw new RuntimeException(\"Too far!\");\n }\n }\n if (s.length() > 0) {\n s.append('\\n');\n return s.toString();\n } else {\n return null;\n }\n }", "String readLine() throws IOException\n\t{\n\t\tString line = null;\n\t\tif (haveStreams())\n\t\t\tline = m_in.readLine();\n\t\telse\n\t\t\tline = keyboardReadLine();\n\n\t\tsetCurrentLine(line);\n\t\treturn line;\n\t}", "@Override\n public String readLine() throws IOException {\n checkBuffer(-1);\n this.randomAccessFile.seek(this.fileOffset + this.bufferPointer.bufferOffset);\n String line = this.randomAccessFile.readLine();\n this.fileOffset = this.randomAccessFile.getFilePointer();\n this.bufferPointer.invalidate();\n return line;\n }", "public synchronized void readInput() throws InterruptedException, IOException \n\t{\n\t\twhile (getDataSourceEOFlag())\n\t\t{\n\t\t\tcontent.set(incomingPipe.take());\n\t\t\t\n\t\t\t// Ensure thread-timing uniformity (a speed-limiter)\n\t\t\t//Thread.sleep(100);\n\t\t\t\n\t\t\tprocess();\n\t\t\t// Discard the text to free up memory.\n\t\t\tcontent.set(null);\n\t\t}\n\t}", "public int drainBuffers() throws IOException {\n if (drainBuffersFinished) {\n throw new IllegalStateException(\"Buffer draining has already been finished\");\n }\n LOG.trace(\"drainBuffers() start\");\n\n int exitValue = -1;\n\n int inBytesRead = 0;\n int errBytesRead = 0;\n\n boolean processEnded = false;\n\n try (final BufferedReader ir =\n new BufferedReader(new InputStreamReader(process.getInputStream(), StandardCharsets.UTF_8));\n final BufferedReader er =\n new BufferedReader(new InputStreamReader(process.getErrorStream(), StandardCharsets.UTF_8))) {\n // Here we do some kind of busy waiting, checking whether the process has finished by calling Process#exitValue().\n // If not yet finished, an IllegalThreadStateException is thrown and ignored, the progress on stdout and stderr read,\n // and retried until the process has ended.\n // Note that Process#waitFor() may block sometimes, that's why we do a polling mechanism using Process#exitValue()\n // instead. Until we extend unit and integration test coverage for SSH action, and we can introduce a more\n // sophisticated error handling based on the extended coverage, this solution should stay in place.\n while (!processEnded) {\n try {\n // Doesn't block but throws IllegalThreadStateException if the process hasn't finished yet\n exitValue = process.exitValue();\n processEnded = true;\n }\n catch (final IllegalThreadStateException itse) {\n // Continue to drain\n }\n\n // Drain input and error streams\n inBytesRead += drainBuffer(ir, inputBuffer, maxLength, inBytesRead, processEnded);\n errBytesRead += drainBuffer(er, errorBuffer, maxLength, errBytesRead, processEnded);\n\n // Necessary evil: sleep and retry\n if (!processEnded) {\n try {\n LOG.trace(\"Sleeping {}ms during buffer draining\", DRAIN_BUFFER_SLEEP_TIME_MS);\n Thread.sleep(DRAIN_BUFFER_SLEEP_TIME_MS);\n }\n catch (final InterruptedException ie) {\n // Sleep a little, then check again\n }\n }\n }\n }\n\n LOG.trace(\"drainBuffers() end [exitValue={0}]\", exitValue);\n drainBuffersFinished = true;\n return exitValue;\n }", "public String readLine() throws IOException {\n\t\t// Punt on this and use BufferedReader routines.\n\t\tBufferedReader d = new BufferedReader(new InputStreamReader(this));\n\t\treturn d.readLine();\n\t}", "static String ReadLn(int maxLength){\n byte line[] = new byte [maxLength];\n int length = 0;\n int input = -1;\n try{\n while (length < maxLength){//Read untill maxlength\n input = System.in.read();\n if ((input < 0) || (input == '\\n')) break; //or untill end of line ninput\n line [length++] += input;\n }\n\n if ((input < 0) && (length == 0)) return null; // eof\n return new String(line, 0, length);\n }catch (IOException e){\n return null;\n }\n }", "public final String readNextLine() throws IOException {\r\n String str;\r\n if (buf_end-buf_pos <= 0) {\r\n if (fillBuffer() < 0) {\r\n throw new IOException(\"Error filling buffer!\");\r\n }\r\n }\r\n int lineEnd = -1;\r\n for (int i = buf_pos; i < buf_end; i++) {\r\n if (buffer[i] == '\\n') {\r\n lineEnd = i;\r\n break;\r\n }\r\n }\r\n if (lineEnd < 0) {\r\n StringBuilder input = new StringBuilder(256);\r\n int c;\r\n while (((c = read()) != -1) && (c != '\\n')) {\r\n input.append((char)c);\r\n }\r\n if ((c == -1) && (input.length() == 0)) {\r\n return null;\r\n }\r\n return input.toString();\r\n }\r\n\r\n if (lineEnd > 0 && buffer[lineEnd-1] == '\\r') {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos -1);\r\n }\r\n else {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos);\r\n }\r\n buf_pos = lineEnd +1;\r\n return str;\r\n }", "int readNonBlocking(byte[] buffer, int offset, int length);", "static String readLine(int maxLg) throws IOException {\n\n\t\tbyte lin[] = new byte[maxLg];\n\t\tint lg = 0, car = -1;\n\n\t\twhile (lg < maxLg) {\n\t\t\tcar = System.in.read();\n\t\t\tif ((car < 0) || (car == '\\n')) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlin[lg++] += car;\n\t\t}\n\n\t\tif ((car < 0) && (lg == 0)) {\n\t\t\treturn (null); // eof\n\t\t}\n\n\t\treturn (new String(lin, 0, lg));\n\n\t}", "static String ReadLn(int maxLength) {\n byte line[] = new byte[maxLength];\n int length = 0;\n int input = -1;\n try {\n while (length < maxLength) { // Read untill maxlength\n input = System.in.read();\n if ((input < 0) || (input == '\\n'))\n break; // or untill end of line ninput\n line[length++] += input;\n }\n\n if ((input < 0) && (length == 0))\n return null; // eof\n return new String(line, 0, length);\n } catch (java.io.IOException e) {\n return null;\n }\n }", "public static void main(String[] args) {\n\n BufferedReader unreliableReader = new UnreliableBufferedReader(new InputStreamReader(System.in),\n 0.2);\n\n int linesSuccessfullyRead = 0;\n\n int linesAttemptedToBeRead = 0;\n\n while (linesSuccessfullyRead < MAX_LINES) {\n\n if (linesSuccessfullyRead < MAX_LINES) {\n System.out.println(\"Attempting to read input from unreliable reader...\");\n linesAttemptedToBeRead++;\n try {\n System.out.println(\"Successfully read input: \" + unreliableReader.readLine());\n linesSuccessfullyRead++;\n } catch (IOException exception) {\n System.out.println(\"Failed!\");\n }\n }\n\n }\n\n System.out.println(\"Took \" + linesAttemptedToBeRead + \" attempts to read \" + MAX_LINES\n + \" lines from unreliable reader\");\n\n try {\n unreliableReader.close();\n } catch (IOException exception) {\n System.out.println(\"Error closing unreliable reader.\");\n }\n\n }", "public static String bufferScanner() throws IOException\n\t{\n\treturn br.readLine();\n\t}", "private void await(byte expected, int maxAttempts) throws IOException {\n\t\tlogger.debug(\"Waiting for byte 0x{}\", LogUtil.toHex(expected & 0xff));\n\t\tint attempt = 0;\n\t\twhile (attempt++ < maxAttempts) {\n\t\t\tbyte actual = in.readByte();\n\t\t\tif (actual == expected) {\n\t\t\t\tlogger.debug(\"Byte received 0x{}\", LogUtil.toHex(expected & 0xff));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprocessInput(actual);\n\t\t}\n\t\tthrow new IOException(\"Failed to receive byte 0x\" + Integer.toHexString(expected & 0xff) +\n\t\t\t\" in \" + maxAttempts + \" tries\");\n\t}", "public static void waitForInput() {\n BufferedReader buffyTheVampireSlayer = new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Press Enter To Continue...\");\n try {\n buffyTheVampireSlayer.readLine();\n } catch (IOException e) {\n System.out.println(e);\n System.out.println(\"an unexpected error occurred\");\n }\n }", "protected final String _readTTYLine() {\n\n StringBuffer buf = new StringBuffer(80);\n int c = 0;\n try {\n while ((c = System.in.read()) != -1) {\n char ch = (char) c;\n if (ch == '\\r') {\n ch = (char) System.in.read();\n if (ch == '\\n') {\n break;\n } else {\n continue;\n }\n } else if (ch == '\\n') {\n break; // Unix flavors.\n }\n buf.append(ch);\n }\n } catch (IOException e) {\n this._logger.error(ERROR_TAG + e.getMessage());\n }\n return buf.toString();\n }", "private void receive() throws IOException {\n byte[] lengthBuffer = new byte[4];\n dataInput.readFully(lengthBuffer);\n int length = Utilities.getIntFromByte(lengthBuffer, 0);\n pipedOutputStream.write(Utilities.getBytes(length));\n\n //now read the data indicated by length and write it to buffer\n byte[] buffer = new byte[length];\n dataInput.readFully(buffer);\n pipedOutputStream.write(buffer);\n pipedOutputStream.flush();\n clientBlocker();\n }", "public String readLine() {\n if(in.hasNextLine()) {\n return in.nextLine();\n } else {\n // remote host closed connection!\n cleanup();\n return null;\n }\n }", "public static String readLine()\n\t{\n\t\tif (bJunit == true)\n\t\t{\n\t\t\tsLastLine = sJunitInput;\n\t\t\twriteLine(\"JUnit INPUT: \" + sJunitInput);\n\t\t\treturn sLastLine;\n\t\t}\n\t\n\t\ttry {\n\t\t\tsLastLine = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error reading from STDIN\");\n\t\t}\n\t\t\n\t\treturn sLastLine;\n\t\t\n\t}", "public long readLongNonBlock() {\n Timing.throughputLocal(0);\n readEnable.setNow(1);\n Timing.waitClockLocal();\n return (readData.getLong());\n }", "public synchronized String Readline() {\n\t return lines.poll();\n\t}", "public long readLong() {\n\t\tif(!isInit) return 0L;\n\t\tlong result = 0L;\n\t\tisListening = true;\n\t\twriteLine(\"Waiting for Long input...\");\n\t\twhile(isListening) {\n\t\t\ttry {\n\t\t\t\tresult = Long.parseLong(inputArea.getText());\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\tresult= 0L;\n\t\t\t}\n\t\t}\n\t\tinputArea.setText(\"\");\n\t\twriteLine(\"Input: \" + result);\n\t\treturn result;\n\t}", "public void blockInterface(long a_blockingTime)\n\t{\n\t\tm_endOfBlocking = System.currentTimeMillis() + a_blockingTime;\n\t}", "private void waitForAvailable() throws IOException, ReadTimeoutException {\n\t\tlong expireTime = System.currentTimeMillis() + READ_TIMEOUT;\n\t\twhile (inputStream.available() < 1) {\n\t\t\tif (System.currentTimeMillis() > expireTime) {\n\t\t\t\tthrow new ReadTimeoutException(\"Read Timed Out.\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(SLEEP_TIME);\n\t\t\t} catch (InterruptedException ie) {\n\t\t\t}\n\t\t}\n\t}", "void process() throws IOException\n\t{\n\t\tboolean done = false;\n\t\twhile(!done)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * Now if we are in a session and that session is suspended then we go\n\t\t\t\t * into a state where we wait for some user interaction to get us out\n\t\t\t\t */\n\t\t\t\trunningLoop();\n\n\t\t\t\t/* if we are in the stdin then put out a prompt */\n\t\t\t\tif (!haveStreams())\n\t\t\t\t\tdisplayPrompt();\n\n\t\t\t\t/* now read in the next line */\n\t\t\t\treadLine();\n\t\t\t\tif (m_currentLine == null)\n\t\t\t\t\tbreak;\n\n\t\t\t\tdone = processLine();\n\t\t\t}\n\t\t\tcatch(NoResponseException nre)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noResponseException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NotSuspendedException nse)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"notSuspendedException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(AmbiguousException ae)\n\t\t\t{\n\t\t\t\t// we already put up a warning for the user\n\t\t\t}\n\t\t\tcatch(IllegalStateException ise)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"illegalStateException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(IllegalMonitorStateException ime)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"illegalMonitorStateException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NoSuchElementException nse)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noSuchElementException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NumberFormatException nfe)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"numberFormatException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(SocketException se)\n\t\t\t{\n\t\t\t\tMap<String, Object> socketArgs = new HashMap<String, Object>();\n\t\t\t\tsocketArgs.put(\"message\", se.getMessage()); //$NON-NLS-1$\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"socketException\", socketArgs)); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(VersionException ve)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"versionException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NotConnectedException nce)\n\t\t\t{\n\t\t\t\t// handled by isConnectionLost()\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"unexpectedError\")); //$NON-NLS-1$\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"stackTraceFollows\")); //$NON-NLS-1$\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t// check for a lost connection and if it is clean-up!\n\t\t\tif (isConnectionLost())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tdumpHaltState(false);\n\t\t\t\t}\n\t\t\t\tcatch(PlayerDebugException pde)\n\t\t\t\t{\n\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"sessionEndedAbruptly\")); //$NON-NLS-1$\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void waitOnReceive() throws IOException {\n while (inStream.available() == 0) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException _) {\n }\n }\n }", "private void waitForResponse(InputStream mmInputStream, long timeout) throws IOException {\n int bytesAvailable;\n\n while (true) {\n bytesAvailable = mmInputStream.available();\n if (bytesAvailable > 0) {\n byte[] packetBytes = new byte[bytesAvailable];\n byte[] readBuffer = new byte[1024];\n mmInputStream.read(packetBytes);\n\n for (int i = 0; i < bytesAvailable; i++) {\n byte b = packetBytes[i];\n\n if (b == delimiter) {\n byte[] encodedBytes = new byte[readBufferPosition];\n System.arraycopy(readBuffer, 0, encodedBytes, 0, encodedBytes.length);\n final String data = new String(encodedBytes, \"US-ASCII\");\n\n writeOutput(\"Received:\" + data);\n\n return;\n } else {\n readBuffer[readBufferPosition++] = b;\n }\n }\n }\n }\n }", "public String read() {\n synchronized (this) {\n while (!answerReady) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n answerReady = false;\n return answer;\n }", "abstract public String readLine() throws TerminalException;", "public static String readLine()\n {\n \tString ch=scanner.nextLine();\n \treturn ch;\n }", "public void send() throws InterruptedException, IOException\n {\n netCat.setInput( new ByteArrayInputStream( inputFromTest.getBytes() ) );\n netCat.execute( SEND.toString() );\n latch.await( 5, TimeUnit.SECONDS );\n\n assertNotNull( result );\n assertEquals( SEND, result.op );\n\n // Wait till nc process will be started definitely\n while( process == null ) {\n Thread.sleep( 100 );\n }\n\n // Get received string by external nc process\n BufferedReader b = new BufferedReader( new InputStreamReader( process.getInputStream() ) );\n String line;\n do {\n line = b.readLine();\n Log.i( CLASS_NAME, line );\n } while( !INPUT_TEST.equals( line ) );\n }", "public synchronized int read() throws InterruptedException\n {\n while (bufferEmpty(\"Consumer\"))\n {\n // Console.println(\"Consumer\" + \" Waiting on Buffer\");\n\n this.wait();\n\n // bufferEmpty = bufferEmpty(\"Consumer\");\n }\n\n int out = theBuffer;\n // Console.println(\"Consumer reading \" + out + \" from Buffer\");\n theBuffer = 0;\n this.notify();\n\n return out;\n }", "public int getReadTimeout();", "default int readBlocking(byte[] buffer) {\n return readBlocking(buffer, 0, buffer.length);\n }", "public int getBlockingTimeout() {\n return this.blockingTimeout;\n }", "@Override\n public void run() {\n String data = readFileBufferedReader();\n System.out.printf(\"Using BufferedReader, append lines to String. read %d char\\n\", data.length());\n }", "public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n input = br.readLine();\n while (input != null) {\n CM.processCommand(input, pw, true);\n input = br.readLine();\n }\n } catch (IOException ioe) {\n pw.println(\"ERROR: Problem with reading user input.\");\n } finally {\n try {\n br.close();\n } catch (IOException ioe) {\n pw.println(\"ERROR: Buffer DNE\");\n }\n }\n }", "public void logReadWait()\n {\n try{\n waitLock.lock();\n while(logReadSector != -1){\n \t logReadDone.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }", "public static byte[] readLine(InputStream inputStream, boolean includeCR)\n throws IOException {\n int len = 0;\n int buflen = 128; // average line length\n byte[] buf = new byte[buflen];\n byte[] ret = null;\n int b;\n while (true) {\n b = inputStream.read();\n switch (b) {\n case -1:\n if (len > 0) {\n ret = new byte[len];\n System.arraycopy(buf, 0, ret, 0, len);\n return ret;\n }\n return null;\n case 10:\n if ((len > 0) && (buf[len - 1] == 13)) {\n if (includeCR) {\n ret = new byte[len + 1];\n if (len > 0)\n System.arraycopy(buf, 0, ret, 0, len);\n ret[len] = 10;\n } else {\n len--;\n ret = new byte[len];\n if (len > 0)\n System.arraycopy(buf, 0, ret, 0, len);\n }\n return ret;\n }\n default:\n buf[len++] = (byte) b;\n if (len >= buflen) {\n buflen *= 2;\n byte[] tmp = new byte[buflen];\n System.arraycopy(buf, 0, tmp, 0, len);\n buf = tmp;\n }\n }\n }\n }", "private void printCommandOutput(InputStream in, Channel channel,boolean showOutput) throws Exception\n\t{\n\t\tbyte[] tmp = new byte[1024];\n\t\twhile(true)\n\t\t{\twhile(in.available() > 0)\n\t\t\t{\tint i = in.read(tmp, 0, 1024);\n\t\t\t\tif (i < 0) break;\n\t\t\t\tif(showOutput) soutConsole.appendLine(new String(tmp, 0, i));\n\t\t\t}\n\t\t\tif (channel.isClosed())\n\t\t\t{\tif(showOutput)\n\t\t\t\t\tsoutConsole.appendLine(\"exit-status: \"+ channel.getExitStatus());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttry\n\t\t\t{\tThread.sleep(1000);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tsoutConsole.appendLine(\"Error: \"+e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "ProcessRunner waitFor();", "private String readLine() {\r\n\t\ttry {\r\n\t\t\treturn input.readLine();\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static void myWait()\n {\n try \n {\n System.in.read();\n \n System.in.read();\n //pause\n }\n catch(Exception e)\n {\n }\n }", "public String read()\n\t{\n\t\ttry\n\t\t{\n\t\t\tint startAt = 0;\n\t\t\tString tempRead = inFromClient.readLine();\n\t\t\t\n\t\t\t// Clear out any nonalphabetic characters from the input buffer if\n\t\t\t// the user has just connected.\n\t\t\tif (!hasReadOnce)\n\t\t\t{\n\t\t\t\tfor (int ctr = 0; ctr < tempRead.length(); ctr++)\n\t\t\t\t{\n\t\t\t\t\tif ((tempRead.charAt(ctr) >= 'a' && tempRead.charAt(ctr) <= 'z')\n\t\t\t\t\t\t|| (tempRead.charAt(ctr) >= 'A' && tempRead.charAt(ctr) <= 'Z'))\n\t\t\t\t\t{\n\t\t\t\t\t\tstartAt = ctr;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thasReadOnce = true;\n\t\t\t}\n\n\t\t\thasPrinted = true;\n\t\t\ttempRead = tempRead.substring(startAt, tempRead.length());\n\t\t\t\n\t\t\t// Never return nonprintable characters. To support windows telnet, go back one\n\t\t\t// character for each backspace (chr #8) encountered.\n\t\t\tString newRead = \"\";\n\t\t\tfor (int ctr = 0; ctr < tempRead.length(); ctr++)\n\t\t\t{\n\t\t\t\tif (tempRead.charAt(ctr) > 31)\n\t\t\t\t\tnewRead = newRead+tempRead.charAt(ctr);\n\t\t\t\tif (tempRead.charAt(ctr) == 8 && newRead.length() > 0)\n\t\t\t\t\tnewRead = newRead.substring(0, newRead.length()-1);\n\t\t\t}\n\n\t\t\treturn newRead;\n\n\t\t} catch (NullPointerException e) {\n\t\t\tthis.closeSocket();\n\t\t\tif (ch.shortName.length() > 0)\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: \"+ch.shortName);\n\t\t\telse\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: No character.\");\n\t\t\treturn \"\";\n\t\t} catch (SocketException e) {\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\tif (ch.shortName.length() > 0)\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: \"+ch.shortName);\n\t\t\telse\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: No character.\");\n\t\t\treturn \"\";\n\t\t}\n\t}", "default int readNonBlocking(byte[] buffer) {\n return readNonBlocking(buffer, 0, buffer.length);\n }", "private int readBlock() throws IOException {\n\t\t\t// read next two bytes (short)\n\t\t\tif (!_read(blklen, 2))\n\t\t\t\treturn(-1);\n\n\t\t\t// Get the short-value and store its value in blockLen.\n\t\t\tblockLen = (short)(\n\t\t\t\t\t(blklen[0] & 0xFF) >> 1 |\n\t\t\t\t\t(blklen[1] & 0xFF) << 7\n\t\t\t\t\t);\n\t\t\treadPos = 0;\n\n\t\t\tif (debug) {\n\t\t\t\tif ((blklen[0] & 0x1) == 1) {\n\t\t\t\t\tlogRd(\"read final block: \" + blockLen + \" bytes\");\n\t\t\t\t} else {\n\t\t\t\t\tlogRd(\"read new block: \" + blockLen + \" bytes\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// sanity check to avoid bad servers make us do an ugly\n\t\t\t// stack trace\n\t\t\tif (blockLen > block.length)\n\t\t\t\tthrow new AssertionError(\"Server sent a block \" +\n\t\t\t\t\t\t\"larger than BLOCKsize: \" +\n\t\t\t\t\t\tblockLen + \" > \" + block.length);\n\t\t\tif (!_read(block, blockLen))\n\t\t\t\treturn(-1);\n\n\t\t\tif (debug)\n\t\t\t\tlogRx(new String(block, 0, blockLen, \"UTF-8\"));\n\n\t\t\t// if this is the last block, make it end with a newline and\n\t\t\t// prompt\n\t\t\tif ((blklen[0] & 0x1) == 1) {\n\t\t\t\tif (blockLen > 0 && block[blockLen - 1] != '\\n') {\n\t\t\t\t\t// to terminate the block in a Reader\n\t\t\t\t\tblock[blockLen++] = '\\n';\n\t\t\t\t}\n\t\t\t\t// insert 'fake' flush\n\t\t\t\tblock[blockLen++] = BufferedMCLReader.PROMPT;\n\t\t\t\tblock[blockLen++] = '\\n';\n\t\t\t\tif (debug)\n\t\t\t\t\tlogRd(\"inserting prompt\");\n\t\t\t}\n\n\t\t\treturn(blockLen);\n\t\t}", "void waitToRead();", "private void readIt() throws IOException, InterruptedException\n {\n //resets the buffer and reads from it\n outVideo.println(\"==>\");\n outVideo.flush();\n if(!initializationMode)\n while (!inKeyboard.ready())\n {\n Thread.sleep(50);\n }\n msgIN = inKeyboard.readLine();\n }", "private String readLine(BufferedReader br) throws IOException {\n StringBuffer sb = new StringBuffer();\n boolean haveCR = false;\n boolean done = false;\n int i;\n char c;\n \n while((i = br.read()) != -1) {\n c = (char)i;\n \n if(haveCR) {\n switch(c) {\n case '\\n':\n sb.append(c);\n done = true;\n break;\n default:\n br.reset();\n done = true;\n break;\n }\n }\n else {\n sb.append(c);\n switch(c) {\n case '\\n':\n done = true;\n break;\n case '\\r':\n br.mark(1);\n haveCR = true;\n }\n }\n \n if(done) {\n break;\n }\n }\n\n return sb.length() > 0 ? sb.toString() : null;\n }", "public long readTimeout(){\n return 0l; //TODO codavaj!!\n }", "private static String readLine() {\r\n String input=\"\";\r\n try {\r\n input = in.readLine();\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n return input;\r\n }", "@Override\n public int read() throws IOException {\n int c;\n\n do {\n c = System.in.read();\n } while(c != -1 && (c == '\\n' || c == '\\r'));\n\n return c;\n }", "synchronized String keyboardReadLine()\n\t{\n\t\t// enable a request then block on the queue\n\t\tm_keyboardReadRequest = true;\n\t\ttry { wait(); } catch(InterruptedException ie) {}\n\n\t\t// pull from the front of the queue\n\t\treturn m_keyboardInput.remove(0);\n\t}", "public String readLineFromServer() throws ServerUnavailableException {\n if (in != null) {\n try {\n // Read and return answer from Server\n String answer = in.readLine();\n if (answer == null) {\n throw new ServerUnavailableException(\"Could not read from server.\");\n }\n return answer;\n } catch (IOException e) {\n throw new ServerUnavailableException(\"Could not read from server.\");\n }\n } else {\n throw new ServerUnavailableException(\"Could not read from server.\");\n }\n }", "public char readCharNonBlock() {\n return ((char) readLongNonBlock());\n }", "public ClientInput readClientInput() throws IOException { //TODO blocking\n try {\n //Read a line from the input from client and check if the client is disconnected\n return new ClientInput(in.readLine());\n } catch (SocketException ex) {\n ex.printStackTrace();\n }\n return new ClientInput(in.readLine());\n }", "static String readString() throws IOException{\n return bufferedReader.readLine();\n }", "public interface AudioInputLine extends AbstractLine {\n\n /**\n * Fill given buffer with mic captured data\n *\n * @param buffer where to put data\n * @param offset start position\n * @param length amount of byte to put\n * @return actual amount of reade bytes\n */\n\n int readNonBlocking(byte[] buffer, int offset, int length);\n\n /**\n * Short cut for read\n *\n * @param buffer to fill with data\n * @return actual amount of reade bytes\n */\n\n default int readNonBlocking(byte[] buffer) {\n return readNonBlocking(buffer, 0, buffer.length);\n }\n\n /**\n * Blocking read\n *\n * @param buffer to fill\n * @param offset buffer start position\n * @param length amount of bytes to read\n * @return actual number of read bytes from underlying device buffer\n */\n\n int readBlocking(byte[] buffer, int offset, int length);\n\n /**\n * Blocking read for full buffer\n *\n * @param buffer to fill\n * @return actual number of read bytes from underlying device buffer\n */\n\n default int readBlocking(byte[] buffer) {\n return readBlocking(buffer, 0, buffer.length);\n }\n}", "public long readLong() {\n while (isEmpty()) {\n }\n Timing.waitSyncLocal();\n readEnable.setNow(1);\n Timing.waitClockLocal();\n return (readData.getLong());\n }", "public String readLine() throws IOException\r\n\t{\r\n\t\treturn file.readLine();\r\n\t}", "public static String readAsciiLine(InputStream in) throws IOException {\n\t\t// TODO: support UTF-8 here instead\n\n\t\tStringBuilder result = new StringBuilder(80);\n\t\twhile (true) {\n\t\t\tint c = in.read();\n\t\t\tif (c == -1) {\n\t\t\t\tthrow new EOFException();\n\t\t\t} else if (c == '\\n') {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tresult.append((char) c);\n\t\t}\n\t\tint length = result.length();\n\t\tif (length > 0 && result.charAt(length - 1) == '\\r') {\n\t\t\tresult.setLength(length - 1);\n\t\t}\n\t\treturn result.toString();\n\t}", "String getLine();", "public int read() throws IOException {\n if (!started) {\n start();\n }\n if (buffer == null)\n return -1;\n if (bufpos == buflen) {\n buffer = refreshBuffer();\n if (buffer == null)\n return -1;\n }\n return 0xFF & buffer[bufpos++];\n }", "float getDurationBuffered() throws InterruptedException, ConnectionLostException;", "public void run() {\n try {\n byte b[] = new byte[100];\n for (;;) {\n int n = in.read(b);\n String str;\n if (n < 0) {\n break;\n }\n str = new String(b, 0, n);\n buffer.append(str);\n System.out.print(str);\n }\n } catch (IOException ioe) { /* skip */ }\n }", "int getLine();", "public String getNextLine() throws IOException {\n\n String currentLine = nextLine;\n this.nextLine = bufferedReader.readLine();\n\n return currentLine;\n }", "private Response multilineCommand(String string2, int n) throws IOException {\n Response response = this.simpleCommand(string2);\n if (!response.ok) {\n return response;\n }\n SharedByteArrayOutputStream sharedByteArrayOutputStream = new SharedByteArrayOutputStream(n);\n int n2 = 10;\n do {\n int n3;\n block10 : {\n block9 : {\n if ((n3 = this.input.read()) < 0) break block9;\n if (n2 != 10 || n3 != 46) break block10;\n if (this.debug) {\n this.out.write(n3);\n }\n if ((n3 = this.input.read()) != 13) break block10;\n if (this.debug) {\n this.out.write(n3);\n }\n n3 = this.input.read();\n if (this.debug) {\n this.out.write(n3);\n }\n }\n if (n3 >= 0) break;\n throw new EOFException(\"EOF on socket\");\n }\n sharedByteArrayOutputStream.write(n3);\n if (this.debug) {\n this.out.write(n3);\n }\n n2 = n3;\n } while (true);\n response.bytes = sharedByteArrayOutputStream.toStream();\n return response;\n }", "private static boolean readLine(BufferedInputStream is, MutableString read)\n throws IOException {\n read.length(0);\n int c = is.read();\n while((c!=-1)&&c!='\\n'&&c!='\\r') {\n read.append((char)c);\n c = is.read();\n }\n if(c==-1 && read.length()==0) {\n // EOF and none read; return false\n return false;\n }\n if(c=='\\n') {\n // consume LF following CR, if present\n is.mark(1);\n if(is.read()!='\\r') {\n is.reset();\n }\n }\n // a line (possibly blank) was read\n return true;\n }", "@Override\n\tpublic String readLine() throws IOException {\n\t\tString line = super.readLine();\n\t\n\t\tif(line==null){\n\t\t\treturn null;\n\t\t}\t\n\t\tline = count+\" \"+line;\n\t\tcount++;\n\t\treturn line;\n\t}", "private String readFromClient() throws IOException {\n final String request = inFromClient.readLine();\n return request;\n }", "public void read() {\n synchronized (this) {\n while (events.size() == 0) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.printf(\"Read :%d,%s\\n\",\n events.size(), events.poll());\n notify();\n }\n }", "public void run() {\r\n String message;\r\n try {\r\n while (keepGoing && in != null && (message = in.readLine()) != null) {\r\n println(message);\r\n }\r\n } catch (IOException e) {\r\n finalize();\r\n }\r\n }", "String getLine ();", "public void readWait()\n {\n try{\n waitLock.lock();\n while(readSector != -1){\n \t readDone.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }", "public int WriteLine(String message) {\n\tWrite(message);\n\tchildStdin.AddCharacters(\"\\n\");\n\treturn message.length() + 1;\n }", "protected void sendStartStdInSignal() {\n\t\tDownstreamMessageEvent dme = new DownstreamMessageEvent(channel, Channels.future(channel), STREAM_IN_READY, channel.getRemoteAddress());\n\t\t//channel.getPipeline().sendDownstream(dme);\n\t\tSystem.out.println(\"Sending STDIN READY\");\n\t\tchannel.write(STREAM_IN_READY).awaitUninterruptibly();\n\t\tSystem.out.println(\"Sent STDIN READY\");\n\t}", "public static String readNextLine() {\n return sc.nextLine();\n }", "int waitFor(String variable, int count);", "@Test\n public void testReadLineLFCR1() throws IOException {\n try {\n final String BUFFER_INITIAL_CONTENT = \"Debut\\rSuite\\n\\rFin\\n\\r\\nANEPASTOUCHER\";\n ByteBuffer buff = ByteBuffer.wrap(BUFFER_INITIAL_CONTENT.getBytes(\"ASCII\")).compact();\n //HTTPReader reader = new HTTPReader(null, buff);\n //assertEquals(\"Debut\\rSuite\\n\\rFin\\n\", reader.readLineCRLF());\n ByteBuffer buffFinal = ByteBuffer.wrap(\"ANEPASTOUCHER\".getBytes(\"ASCII\")).compact();\n // assertEquals(buffFinal.flip(), buff.flip());\n } catch (NullPointerException e) {\n // fail(\"The socket must not be read until buff is entirely consumed.\");\n }\n }", "public byte[] readLine(int offset) throws IOException {\n\t\tint lastIndex = -1;\n\t\tint localOffset = offset;\n\t\tint read;\n\t\tdo {\n\t\t\tread = ensureBuffer(localOffset, BUFFER_SIZE);\n\t\t\tif (read <= 0) {\n\t\t\t\t// EOF\n\t\t\t\tthis.pos = this.buffer.length;\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// NOT EOF, search for end of line\n\t\t\tfinal int end = localOffset + read;\n\t\t\tfor (int idx = localOffset; (lastIndex == -1) && (idx < this.buffer.length) && (idx < end); ++idx) {\n\t\t\t\tif ((this.buffer[idx] == '\\n') || (this.buffer[idx] == '\\r')) {\n\t\t\t\t\tlastIndex = idx;\n\t\t\t\t}\n\t\t\t}\n\t\t\tlocalOffset += read;\n\t\t}\n\t\twhile (lastIndex == -1);\n\t\tthis.pos = lastIndex;\n\t\treturn Arrays.copyOfRange(this.buffer, offset, lastIndex);\n\t}", "public void launch() throws IOException {\n initBinding();\n var request = this.password == null ? new AnonymousConnection(login)\n : new AuthentificatedConnection(login, password);\n\n this.uniqueContext.putInQueue(request.toBuffer());\n console.setDaemon(true);\n console.start();// run stdin thread\n\n var lastCheck = System.currentTimeMillis();\n while (!Thread.interrupted()) {\n // printKeys();\n try {\n if (uniqueContext.isClosed()) {\n console.interrupt();\n selector.close();\n serverSocketChannel.close();\n sc.close();\n return;\n }\n selector.select(this::treatKey);\n processCommands();\n var currentTime = System.currentTimeMillis();\n if (currentTime >= lastCheck + TIMEOUT) {\n lastCheck = currentTime;\n clearInvalidSelectionKey();\n }\n } catch (UncheckedIOException tunneled) {\n throw tunneled.getCause();\n }\n }\n }", "private void consoleRun() {\n try {\n var scan = new Scanner(System.in);\n while (scan.hasNextLine()) {\n var msg = scan.nextLine();\n sendCommand(msg);\n }\n } catch (InterruptedException e) {\n logger.info(\"Console thread has been interrupted\");\n } finally {\n logger.info(\"Console thread stopping\");\n }\n }", "@Override public int read() throws IOException {\r\n\t\tif (closed) throw new IOException(\"Reader closed\");\r\n\t\tint r = -1;\r\n\t\twhile (r == -1){\r\n\t\t\tReader in = getCurrentReader();\r\n\t\t\tif (in == null){\r\n\t\t\t\tif (doneAddingReaders) return -1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t} catch (InterruptedException iox){\r\n\t\t\t\t\tthrow new IOException(\"Interrupted\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tr = in.read();\r\n\t\t\t\tif (r == -1) advanceToNextReader();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "public final void run() {\n int breaked = 0;\n\n while (!isFinish()) {\n try {\n wait(100);\n } catch (InterruptedException e) {\n // ignore\n } catch (Exception e) {\n // ignore\n }\n try {\n System.out.println(\"Exit value: \" + process.exitValue());\n finish = true;\n } catch (Exception e) {\n // ignore\n }\n\n if (getInputStream() != null) {\n try {\n byte[] byt = new byte[process.getInputStream().available()];\n int readed = process.getInputStream().read(byt);\n if (readed > 0) {\n getInputStream().write(byt, 0, readed);\n getInputStream().flush();\n }\n } catch (IOException e) {\n // ignore\n }\n }\n\n if (getErrorStream() != null) {\n try {\n byte[] byt = new byte[process.getErrorStream().available()];\n int readed = process.getErrorStream().read(byt);\n if (readed > 0) {\n getErrorStream().write(byt, 0, readed);\n getErrorStream().flush();\n }\n } catch (IOException e) {\n // ignore\n }\n }\n }\n }", "public void waitForClients() throws IOException {\r\n try {\r\n while (this.running) {\r\n System.out.println(\"Waiting for a client ...\");\r\n Socket socket = serverSocket.accept();\r\n new ClientThread(socket).start();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n } finally {\r\n serverSocket.close();\r\n }\r\n }", "public synchronized final void\n\t\trun()\n\t{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = null;\n\n\t\ttry {\n\t\t\twhile (this.isRunning() && (null != (line = reader.readLine()))) {\n\t\t\t\ttry {\n\t\t\t\t\t_handler.handleCommand(line);\n\t\t\t\t} catch (RuntimeException ex) {\n\t\t\t\t\t_LOG.error(new Strings(new Object[]\n\t\t\t\t\t\t{this, \":\", StackTrace.formatStackTrace(ex)}));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException ex) {\n\t\t\t_LOG.error(new Strings(new Object[]\n\t\t\t\t{this, \":\", StackTrace.formatStackTrace(ex)}));\n\t\t}\n\n\t\tif (line == null) {\n\t\t\tif (this.isRunning()) {\n\t\t\t\t_handler.handleCommand(\"quit\");\n\t\t\t}\n\t\t}\n\n\t\t_LOG.warn(\"Console exiting.\");\n\t}", "public abstract String inReadLine() throws JVMIOException;", "public WaitForDigitCommand(long timeout) {\n super();\n this.timeout = timeout;\n }" ]
[ "0.57585776", "0.540291", "0.5344069", "0.5245928", "0.5074038", "0.48411205", "0.46943602", "0.46828282", "0.46628997", "0.46241173", "0.46010834", "0.45908505", "0.4579913", "0.4564426", "0.4548442", "0.45350248", "0.45345837", "0.45307148", "0.45226642", "0.45094252", "0.45034227", "0.4466671", "0.44632688", "0.44407701", "0.44318897", "0.43934035", "0.4387709", "0.437208", "0.43581003", "0.43469456", "0.43322632", "0.4318575", "0.4293022", "0.4286258", "0.42741", "0.42630464", "0.4258242", "0.4241519", "0.42209396", "0.4218763", "0.42173147", "0.41347227", "0.41026428", "0.40910736", "0.4089139", "0.40865406", "0.40817603", "0.40803903", "0.40758744", "0.40756714", "0.4067647", "0.40666044", "0.40645823", "0.4041817", "0.4037464", "0.40235516", "0.40182266", "0.40018067", "0.39812854", "0.3966282", "0.39647147", "0.3948456", "0.39442217", "0.39383513", "0.39181358", "0.3915947", "0.39082488", "0.38969374", "0.38854983", "0.3875956", "0.38755786", "0.38696188", "0.38690713", "0.38672647", "0.3865329", "0.38643193", "0.38598967", "0.385346", "0.38516465", "0.38383448", "0.38233736", "0.38180333", "0.38084778", "0.3805855", "0.3795365", "0.37951973", "0.37911475", "0.37818468", "0.37785673", "0.37766948", "0.3769003", "0.3749947", "0.3747115", "0.37449965", "0.37444776", "0.37403107", "0.37375167", "0.3730806", "0.3730449", "0.37274638" ]
0.68033594
0
Reads a line from the spawned program's stderr channel. Works just the same as the ReadLine method, except for stderr instead of stdout.
public String ReadErrorLine() { return childStderr.Readline(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InputStream getStderr();", "public abstract InputStream stderr();", "public String readLine() throws ShellIOException;", "public String ReadLine() {\n\tString s = childStdout.Readline();\n\treturn s;\n }", "static public StdReader stderr(Process process, StdProcessor processor) {\n \n return new StdReader(process.getErrorStream(), processor);\n }", "protected String readLine()\n { try { if (stdin!=null) return stdin.readLine(); } catch (IOException e) {}\n return null;\n }", "public String readLine() throws IOException, ReadTimeoutException {\n\t\ttry {\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[0] = (byte) inputStream.read();\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[1] = (byte) inputStream.read();\n\t\t\tlineLength = 2;\n\t\t\twhile (lineBuffer[lineLength - 2] != (byte) 13\n\t\t\t\t|| lineBuffer[lineLength - 1] != (byte) 10) {\n\t\t\t\twaitForAvailable();\n\t\t\t\tlineBuffer[lineLength] = (byte) inputStream.read();\n\t\t\t\tlineLength++;\n\t\t\t}\n\t\t\treturn new String(lineBuffer, 0, lineLength - 2);\n\t\t} catch (ArrayIndexOutOfBoundsException aioobe) {\n\t\t\tthrow new IOException(\"Line too long.\");\n\t\t}\n\t}", "abstract public String readLine() throws TerminalException;", "void appendStderr(String line);", "public abstract String readLine() throws IOException, InterruptedException;", "String readLine() throws IOException\n\t{\n\t\tString line = null;\n\t\tif (haveStreams())\n\t\t\tline = m_in.readLine();\n\t\telse\n\t\t\tline = keyboardReadLine();\n\n\t\tsetCurrentLine(line);\n\t\treturn line;\n\t}", "private String readLine() {\r\n\t\ttry {\r\n\t\t\treturn input.readLine();\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n public String readLine() {\n try {\n return this.bufferedReader.readLine();\n } catch (IOException e) {\n return \"\";\n }\n }", "public String readLine() throws IOException {\n\t\t// Punt on this and use BufferedReader routines.\n\t\tBufferedReader d = new BufferedReader(new InputStreamReader(this));\n\t\treturn d.readLine();\n\t}", "public String readLine() {\n if(in.hasNextLine()) {\n return in.nextLine();\n } else {\n // remote host closed connection!\n cleanup();\n return null;\n }\n }", "public static String readLine()\n\t{\n\t\tif (bJunit == true)\n\t\t{\n\t\t\tsLastLine = sJunitInput;\n\t\t\twriteLine(\"JUnit INPUT: \" + sJunitInput);\n\t\t\treturn sLastLine;\n\t\t}\n\t\n\t\ttry {\n\t\t\tsLastLine = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error reading from STDIN\");\n\t\t}\n\t\t\n\t\treturn sLastLine;\n\t\t\n\t}", "@Override\n public String readLine() throws IOException {\n checkBuffer(-1);\n this.randomAccessFile.seek(this.fileOffset + this.bufferPointer.bufferOffset);\n String line = this.randomAccessFile.readLine();\n this.fileOffset = this.randomAccessFile.getFilePointer();\n this.bufferPointer.invalidate();\n return line;\n }", "@Override\n public void logLine(String line, long offset, boolean stderr, String context) {\n validate();\n\n sendSynchronously(restApiClient::logOutputLine,\n createLogLineRequest(line, offset, stderr, context));\n }", "public static String getStdErr(Process p) throws IOException\n {\n return IOUtils.toString(p.getErrorStream());\n }", "public String readLineFromServer() throws ServerUnavailableException {\n if (in != null) {\n try {\n // Read and return answer from Server\n String answer = in.readLine();\n if (answer == null) {\n throw new ServerUnavailableException(\"Could not read from server.\");\n }\n return answer;\n } catch (IOException e) {\n throw new ServerUnavailableException(\"Could not read from server.\");\n }\n } else {\n throw new ServerUnavailableException(\"Could not read from server.\");\n }\n }", "public String getLine()\n\t{\n\t\ttry\n\t\t{\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn line;\n\t}", "private static String readLine() {\r\n String input=\"\";\r\n try {\r\n input = in.readLine();\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n return input;\r\n }", "public synchronized String Readline() {\n\t return lines.poll();\n\t}", "static String read ()\r\n \t{\r\n \t\tString sinput;\r\n \r\n \t\ttry\r\n \t\t{\r\n \t\t\tsinput = br.readLine();\r\n \t\t}\r\n \t\tcatch (IOException e)\r\n \t\t{\r\n \t\t\tErrorLog.addError(\"Input exception occured in command line interface!\");\r\n \t\t\treturn null; //Menu will exit when fed a null\r\n \t\t}\r\n \t\treturn sinput;\r\n \t}", "private void readLine() throws IOException {\n line = reader.readLine(); // null at the end of the source\n currentPos = -1;\n\n if (line != null) {\n lineNum++;\n }\n\n if (line != null) {\n sendMessage(new Message(MessageType.SOURCE_LINE, new Object[]{lineNum, line}));\n }\n }", "public String readLine() throws IOException\r\n\t{\r\n\t\treturn file.readLine();\r\n\t}", "public static String readLine(String format, Object... args) throws IOException {\n\t\tif (System.console() != null) {\n\t\t\treturn System.console().readLine(format, args);\n\t\t}\n\t\tlogger.info(String.format(format, args));\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\treturn reader.readLine();\n\t}", "protected final String _readTTYLine() {\n\n StringBuffer buf = new StringBuffer(80);\n int c = 0;\n try {\n while ((c = System.in.read()) != -1) {\n char ch = (char) c;\n if (ch == '\\r') {\n ch = (char) System.in.read();\n if (ch == '\\n') {\n break;\n } else {\n continue;\n }\n } else if (ch == '\\n') {\n break; // Unix flavors.\n }\n buf.append(ch);\n }\n } catch (IOException e) {\n this._logger.error(ERROR_TAG + e.getMessage());\n }\n return buf.toString();\n }", "private String readProcess (final Process p) {\n \tString message=null;\n \tfinal BufferedReader in =new BufferedReader ( new InputStreamReader(p.getErrorStream()));\n \tString line;\n \ttry {\n\t\t\twhile((line = in.readLine()) != null)\n\t\t\t{\n\t\t\t\tmessage =line;\n\t\t\t\tif((line = in.readLine()) != null && line.startsWith(\"\\tat\"))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\n\t\t\t\tmessage =message.substring(message.indexOf(':')+2);\n\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tlogfile.severe(e.getMessage());\n\t\t}\n\t\treturn message;\n }", "private String readLine() {\n\t\ttry {\n\t\t\treturn reader.nextLine();\t\n\t\t} catch (NoSuchElementException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public final String readNextLine() throws IOException {\r\n String str;\r\n if (buf_end-buf_pos <= 0) {\r\n if (fillBuffer() < 0) {\r\n throw new IOException(\"Error filling buffer!\");\r\n }\r\n }\r\n int lineEnd = -1;\r\n for (int i = buf_pos; i < buf_end; i++) {\r\n if (buffer[i] == '\\n') {\r\n lineEnd = i;\r\n break;\r\n }\r\n }\r\n if (lineEnd < 0) {\r\n StringBuilder input = new StringBuilder(256);\r\n int c;\r\n while (((c = read()) != -1) && (c != '\\n')) {\r\n input.append((char)c);\r\n }\r\n if ((c == -1) && (input.length() == 0)) {\r\n return null;\r\n }\r\n return input.toString();\r\n }\r\n\r\n if (lineEnd > 0 && buffer[lineEnd-1] == '\\r') {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos -1);\r\n }\r\n else {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos);\r\n }\r\n buf_pos = lineEnd +1;\r\n return str;\r\n }", "public CommandLine getLine() {\n return line;\n }", "public String readLine() {\n\n String temp = null;\n\n try\n {\n assert this.isValid();\t\t\t//Test that we can read the file\n temp = br.readLine();\t\t\t//Read the next line and store it as temp\n }\n\n\t\t//Catch possible exceptions\n catch(java.io.IOException e) {\n System.out.println(\"Error reading file: \" + e );\n }\n\n return temp;\n }", "public synchronized String readLineFromFile(){\n\t\tString line = null;\n\t\t\n\t\ttry{\n\n\t\t\tif((line = bufferedInput.readLine()) != null){\n\t\t\t\treturn line;\n\t\t\t}\n\t\t}\n\t\tcatch(NullPointerException ex) {\n \t\tSystem.err.println(\"File is Blank\");\t\t \n \t\tSystem.exit(1); \n\t\t}\n\t\tcatch(IOException ex) {\n System.err.println(\"Unable to read a line from file\");\t\t \n\t\t\tSystem.exit(1); \n }\n\n\t\treturn line;\n\t}", "public final int getLine() {\n/* 377 */ return this.bufline[this.bufpos];\n/* */ }", "public static void ccErrln(String pxLine){\n if(cmErrOn){\n System.err.println(pxLine);\n }//..?\n }", "private String readNextLine() {\n StringBuilder sb = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n sb.append(br.readLine());\n } catch (IOException e) {\n e.fillInStackTrace();\n }\n\n return sb.toString();\n }", "public static AnsiPrintStream err() {\n initStreams();\n return (AnsiPrintStream) err;\n }", "public abstract String inReadLine() throws JVMIOException;", "public java.lang.String readLine() {\n /*\n r7 = this;\n r0 = r7.in;\n monitor-enter(r0);\n r1 = r7.buf;\t Catch:{ all -> 0x0097 }\n if (r1 != 0) goto L_0x000f;\n L_0x0007:\n r1 = new java.io.IOException;\t Catch:{ all -> 0x0097 }\n r2 = \"LineReader is closed\";\n r1.<init>(r2);\t Catch:{ all -> 0x0097 }\n throw r1;\t Catch:{ all -> 0x0097 }\n L_0x000f:\n r1 = r7.pos;\t Catch:{ all -> 0x0097 }\n r2 = r7.end;\t Catch:{ all -> 0x0097 }\n if (r1 < r2) goto L_0x0018;\n L_0x0015:\n r7.aOB();\t Catch:{ all -> 0x0097 }\n L_0x0018:\n r1 = r7.pos;\t Catch:{ all -> 0x0097 }\n L_0x001a:\n r2 = r7.end;\t Catch:{ all -> 0x0097 }\n r3 = 10;\n if (r1 == r2) goto L_0x0051;\n L_0x0020:\n r2 = r7.buf;\t Catch:{ all -> 0x0097 }\n r2 = r2[r1];\t Catch:{ all -> 0x0097 }\n if (r2 != r3) goto L_0x004e;\n L_0x0026:\n r2 = r7.pos;\t Catch:{ all -> 0x0097 }\n if (r1 == r2) goto L_0x0035;\n L_0x002a:\n r2 = r7.buf;\t Catch:{ all -> 0x0097 }\n r3 = r1 + -1;\n r2 = r2[r3];\t Catch:{ all -> 0x0097 }\n r4 = 13;\n if (r2 != r4) goto L_0x0035;\n L_0x0034:\n goto L_0x0036;\n L_0x0035:\n r3 = r1;\n L_0x0036:\n r2 = new java.lang.String;\t Catch:{ all -> 0x0097 }\n r4 = r7.buf;\t Catch:{ all -> 0x0097 }\n r5 = r7.pos;\t Catch:{ all -> 0x0097 }\n r6 = r7.pos;\t Catch:{ all -> 0x0097 }\n r3 = r3 - r6;\n r6 = r7.charset;\t Catch:{ all -> 0x0097 }\n r6 = r6.name();\t Catch:{ all -> 0x0097 }\n r2.<init>(r4, r5, r3, r6);\t Catch:{ all -> 0x0097 }\n r1 = r1 + 1;\n r7.pos = r1;\t Catch:{ all -> 0x0097 }\n monitor-exit(r0);\t Catch:{ all -> 0x0097 }\n return r2;\n L_0x004e:\n r1 = r1 + 1;\n goto L_0x001a;\n L_0x0051:\n r1 = new com.a.a.b$1;\t Catch:{ all -> 0x0097 }\n r2 = r7.end;\t Catch:{ all -> 0x0097 }\n r4 = r7.pos;\t Catch:{ all -> 0x0097 }\n r2 = r2 - r4;\n r2 = r2 + 80;\n r1.<init>(r2);\t Catch:{ all -> 0x0097 }\n L_0x005d:\n r2 = r7.buf;\t Catch:{ all -> 0x0097 }\n r4 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r7.end;\t Catch:{ all -> 0x0097 }\n r6 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r5 - r6;\n r1.write(r2, r4, r5);\t Catch:{ all -> 0x0097 }\n r2 = -1;\n r7.end = r2;\t Catch:{ all -> 0x0097 }\n r7.aOB();\t Catch:{ all -> 0x0097 }\n r2 = r7.pos;\t Catch:{ all -> 0x0097 }\n L_0x0071:\n r4 = r7.end;\t Catch:{ all -> 0x0097 }\n if (r2 == r4) goto L_0x005d;\n L_0x0075:\n r4 = r7.buf;\t Catch:{ all -> 0x0097 }\n r4 = r4[r2];\t Catch:{ all -> 0x0097 }\n if (r4 != r3) goto L_0x0094;\n L_0x007b:\n r3 = r7.pos;\t Catch:{ all -> 0x0097 }\n if (r2 == r3) goto L_0x008a;\n L_0x007f:\n r3 = r7.buf;\t Catch:{ all -> 0x0097 }\n r4 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r2 - r5;\n r1.write(r3, r4, r5);\t Catch:{ all -> 0x0097 }\n L_0x008a:\n r2 = r2 + 1;\n r7.pos = r2;\t Catch:{ all -> 0x0097 }\n r1 = r1.toString();\t Catch:{ all -> 0x0097 }\n monitor-exit(r0);\t Catch:{ all -> 0x0097 }\n return r1;\n L_0x0094:\n r2 = r2 + 1;\n goto L_0x0071;\n L_0x0097:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x0097 }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.a.a.b.readLine():java.lang.String\");\n }", "private static String readLine(ResettableInputStream in, int maxLength)\n throws IOException {\n\n StringBuilder s = new StringBuilder();\n int c;\n int i = 1;\n while ((c = in.readChar()) != -1) {\n // FIXME: support \\r\\n\n if (c == '\\n') {\n break;\n }\n //System.out.printf(\"seen char val: %c\\n\", (char)c);\n s.append((char)c);\n\n if (i++ > maxLength) {\n System.out.println(\"Output: >\" + s + \"<\");\n throw new RuntimeException(\"Too far!\");\n }\n }\n if (s.length() > 0) {\n s.append('\\n');\n return s.toString();\n } else {\n return null;\n }\n }", "public static List<String> readError(Process process) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(process.getErrorStream()));\n\t\tString line;\n\t\tList<String> lines = new ArrayList<>();\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\tlines.add(line);\n\t\t}\n\t\treturn lines;\n\t}", "public String ReadLine(int maxBlockingTime) {\n\tlong startTime = System.currentTimeMillis();\n\twhile (System.currentTimeMillis() - startTime < maxBlockingTime) {\n\t String s = ReadLine();\n\t if (s != null) {\n\t\treturn s;\n\t }\n\t try {Thread.sleep(10); } catch (Exception e) { }\n\t}\n\treturn null;\n }", "@Override\n\tpublic String readLine() throws IOException {\n\t\tint length = readInt();\n\t\twriteInt(length);\n\t\tbyte[] data = awaitNextPacket(new byte[length]);\n\t\treturn new String(data);\n\t}", "public String readLine(){\n\t\tString line;\n\t\ttry{\n\t\t\tline=scanner.nextLine();\n\t\t}catch (NoSuchElementException e){\n\t\t\tline=null;\n\t\t}\n\t\treturn line;\n\t}", "@Override\n public String readLine() throws IOException {\n\n String line = null;\n\n while (true) {\n\n line = super.readLine();\n\n if (line == null) {\n\n return null;\n }\n\n // Get rid of comments\n\n // VT: FIXME: not handling the escaped comments\n\n int hash = line.indexOf(\"#\");\n\n if (hash != -1) {\n\n // Check if the '#' is escaped\n\n if (hash > 0 && line.indexOf(\"\\\\#\") == hash - 1) {\n\n // Yes, it is\n\n // System.err.println( \"Raw: '\"+line+\"'\" );\n line = line.substring(0, hash - 1) + line.substring(hash, line.length());\n // System.err.println( \"Unescaped: '\"+line+\"'\" );\n\n } else {\n\n line = line.substring(0, hash);\n }\n }\n\n // Trim it\n\n line = line.trim();\n\n if (line.length() != 0) {\n\n return line;\n }\n }\n }", "public String recvRaw() throws IOException\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn _reader.readLine();\n\t\t} catch (IOException e)\n\t\t{\n\t\t\tthrow new IOException(\"We have been killed: \" + e.getMessage(), e);\n\t\t}\n\t}", "private String readLine(ByteBuf in) {\n\n int bytesToRead;\n byte[] data = null;\n int bytesToSkip;\n\n if ((bytesToRead = in.bytesBefore((byte) LINE_FEED_CHAR)) > -1) {\n // Found the line feed.\n bytesToSkip = 1;\n\n // Check (and ignore) optional carriage return.\n if (bytesToRead > 0 && in.getByte(bytesToRead - 1) == CARRIAGE_RETURN_CHAR) {\n bytesToSkip++;\n bytesToRead--;\n }\n\n // Check that the bytes we're about to read will not exceed the\n // max frame size.\n checkTooLongFrame(bytesToRead);\n\n data = new byte[bytesToRead];\n in.readBytes(data);\n in.skipBytes(bytesToSkip);\n\n // Count the bytes read.\n currentDecodedByteCount += bytesToRead;\n }\n else {\n // No line feed. Make sure we're not buffering more than the max\n // frame size.\n checkTooLongFrame(in.readableBytes());\n }\n\n if (data != null) {\n return new String(data, StompConstants.UTF_8);\n }\n else {\n return null;\n }\n }", "public String readLine() throws IOException {\n/* 176 */ String line = this.currentFilePart.readLine();\n/* 177 */ while (line == null) {\n/* 178 */ this.currentFilePart = this.currentFilePart.rollOver();\n/* 179 */ if (this.currentFilePart != null) {\n/* 180 */ line = this.currentFilePart.readLine();\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 188 */ if (\"\".equals(line) && !this.trailingNewlineOfFileSkipped) {\n/* 189 */ this.trailingNewlineOfFileSkipped = true;\n/* 190 */ line = readLine();\n/* */ } \n/* */ \n/* 193 */ return line;\n/* */ }", "public static int getLine() {\r\n\t\treturn rline;\r\n\t}", "public static synchronized PrintStream getStdErr() {\n return sysErr;\n }", "public static int getErrno() {\n if (process == null) {\n System.err.println(PROGRAM_NAME +\n \": no current process in getErrno()\");\n System.exit(EXIT_FAILURE);\n }\n return process.errno;\n }", "public static void main(String[] args) {\n\n BufferedReader unreliableReader = new UnreliableBufferedReader(new InputStreamReader(System.in),\n 0.2);\n\n int linesSuccessfullyRead = 0;\n\n int linesAttemptedToBeRead = 0;\n\n while (linesSuccessfullyRead < MAX_LINES) {\n\n if (linesSuccessfullyRead < MAX_LINES) {\n System.out.println(\"Attempting to read input from unreliable reader...\");\n linesAttemptedToBeRead++;\n try {\n System.out.println(\"Successfully read input: \" + unreliableReader.readLine());\n linesSuccessfullyRead++;\n } catch (IOException exception) {\n System.out.println(\"Failed!\");\n }\n }\n\n }\n\n System.out.println(\"Took \" + linesAttemptedToBeRead + \" attempts to read \" + MAX_LINES\n + \" lines from unreliable reader\");\n\n try {\n unreliableReader.close();\n } catch (IOException exception) {\n System.out.println(\"Error closing unreliable reader.\");\n }\n\n }", "public static String readLine(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.nextLine();\n }", "public void testReadLineFromConsole() throws Exception {\n System.out.println(\"readLineFromConsole\");\n String expResult = \"\";\n Scanner scanner = null;\n when(scanner.nextLine()).thenReturn(\"console\");\n String data = IOUtil.readLineFromConsole();\n assertNotNull(data);\n\n }", "private static String readLine(String filename) throws IOException {\n\t\ttry (BufferedReader reader = new BufferedReader(\n\t\t\t\tnew FileReader(filename), 256)) {\n\t\t\treturn reader.readLine();\n\t\t}\n\t}", "public String readStringFromCmd() throws IOException {\r\n\t\tSystem.out.println(\"Enter your String:\");\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString string = null;\t\t\r\n\t\tstring = br.readLine();\r\n\t\treturn string;\r\n\t}", "public static String readLine()\n {\n \tString ch=scanner.nextLine();\n \treturn ch;\n }", "public abstract InputStream stdout();", "public String getError() throws IOException {\n String line = \"\";\n StringBuffer buffer = new StringBuffer();\n BufferedReader in = new BufferedReader(new InputStreamReader(\n httpConnection.getErrorStream()));\n while ((line = in.readLine()) != null) {\n buffer.append(line + \"\\n\");\n }\n in.close();\n return buffer.toString();\n }", "public static String readLine(BufferedReader bufferedReader) {\r\n\r\n try {\r\n return bufferedReader.readLine();\r\n } catch (IOException ex) {\r\n Logger.getLogger(FileUtility.class.getName()).log(Level.SEVERE, \"Error in readLine\", ex);\r\n return null;\r\n }\r\n }", "public String getMarkdownInputLine() {\n if (markdownReader == null) {\n return null;\n } else {\n return markdownReader.readLine();\n }\n }", "public static String getLine(InputStreamReader reader) {\n StringBuffer b = new StringBuffer();\n int c;\n try {\n while ((c = reader.read()) != -1 && c != '\\n') {\n if (c != '\\r')\n b.append((char)c);\n }\n } catch (IOException ioe) {\n c = -1;\n }\n\n if (c == -1 && b.length() == 0)\n return null;\n else\n return b.toString();\n }", "axiom Object readLine(Object BufferedReader(FileReaderr f)) {\n\treturn f.get(0);\n }", "public ClientInput readClientInput() throws IOException { //TODO blocking\n try {\n //Read a line from the input from client and check if the client is disconnected\n return new ClientInput(in.readLine());\n } catch (SocketException ex) {\n ex.printStackTrace();\n }\n return new ClientInput(in.readLine());\n }", "void process() throws IOException\n\t{\n\t\tboolean done = false;\n\t\twhile(!done)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * Now if we are in a session and that session is suspended then we go\n\t\t\t\t * into a state where we wait for some user interaction to get us out\n\t\t\t\t */\n\t\t\t\trunningLoop();\n\n\t\t\t\t/* if we are in the stdin then put out a prompt */\n\t\t\t\tif (!haveStreams())\n\t\t\t\t\tdisplayPrompt();\n\n\t\t\t\t/* now read in the next line */\n\t\t\t\treadLine();\n\t\t\t\tif (m_currentLine == null)\n\t\t\t\t\tbreak;\n\n\t\t\t\tdone = processLine();\n\t\t\t}\n\t\t\tcatch(NoResponseException nre)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noResponseException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NotSuspendedException nse)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"notSuspendedException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(AmbiguousException ae)\n\t\t\t{\n\t\t\t\t// we already put up a warning for the user\n\t\t\t}\n\t\t\tcatch(IllegalStateException ise)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"illegalStateException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(IllegalMonitorStateException ime)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"illegalMonitorStateException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NoSuchElementException nse)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noSuchElementException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NumberFormatException nfe)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"numberFormatException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(SocketException se)\n\t\t\t{\n\t\t\t\tMap<String, Object> socketArgs = new HashMap<String, Object>();\n\t\t\t\tsocketArgs.put(\"message\", se.getMessage()); //$NON-NLS-1$\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"socketException\", socketArgs)); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(VersionException ve)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"versionException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NotConnectedException nce)\n\t\t\t{\n\t\t\t\t// handled by isConnectionLost()\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"unexpectedError\")); //$NON-NLS-1$\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"stackTraceFollows\")); //$NON-NLS-1$\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t// check for a lost connection and if it is clean-up!\n\t\t\tif (isConnectionLost())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tdumpHaltState(false);\n\t\t\t\t}\n\t\t\t\tcatch(PlayerDebugException pde)\n\t\t\t\t{\n\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"sessionEndedAbruptly\")); //$NON-NLS-1$\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic String rReadConsole(Rengine re, String prompt, int addToHistory) {\r\n\t\trPrompt = prompt;\r\n\t\tif (promptVisible) {\r\n\t\t\tprompt(prompt);\r\n\t\t}\r\n\r\n\t\tString input = null;\r\n\t\ttry {\r\n\r\n\t\t\t/*\r\n\t\t\t * //loop whilst there isn't a line //ready to be read so that\r\n\t\t\t * synchronized(this) { while (!keyboard.ready()) { //tell the\r\n\t\t\t * Rengine it can run //it's event handlers, such as updating\r\n\t\t\t * //graphics devices try { wait(100) ; re.rniIdle(); } catch\r\n\t\t\t * (InterruptedException e) { // TODO Auto-generated catch block\r\n\t\t\t * e.printStackTrace(); } } }\r\n\t\t\t * \r\n\t\t\t * \r\n\t\t\t * while (!keyboard.ready()) { try{ wait(100) ; re.rniIdle(); }\r\n\t\t\t * catch( InterruptedException e){} }\r\n\t\t\t */\r\n\r\n\t\t\t// read the keyboard line\r\n\t\t\t// this will not block because we know there\r\n\t\t\t// is something waiting to be read\r\n\t\t\tinput = keyboard.readLine();\r\n\r\n\t\t\t// JConsole returns \";\\n\" if you hit enter.\r\n\t\t\t// Remove the ;\r\n\t\t\tif (input == null || input.equals(\";\")) {\r\n\t\t\t\tinput = \"\\n\";\r\n\t\t\t} else {\r\n\t\t\t\t// add a newline to the input to prevent\r\n\t\t\t\t// a + prompt from the R REPL\r\n\t\t\t\tinput = input + \"\\n\";\r\n\t\t\t}\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn input;\r\n\t}", "private String[] readLine(BufferedReader r) throws IOException\r\n\t{\r\n\t\tSystem.out.print(\"> \");\r\n\t\tfinal String line = r.readLine();\r\n\t\treturn line != null ? split(line) : null;\r\n\t}", "@Override\n\tpublic String readLine() throws IOException {\n\t\tString line = super.readLine();\n\t\n\t\tif(line==null){\n\t\t\treturn null;\n\t\t}\t\n\t\tline = count+\" \"+line;\n\t\tcount++;\n\t\treturn line;\n\t}", "public static\n PrintStream err() {\n return Ansi.err;\n }", "public static long readLong(String prompt) throws IOException {\r\n\t\tlong value = 0;\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.print(prompt + \" _>\");\r\n\t\t\t\tvalue = Long.valueOf(reader.readLine()).longValue();\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.err.println(ex.getLocalizedMessage());\r\n\t\t\t\tthrow ex;\r\n\t\t\t} catch (NumberFormatException ex) {\r\n\t\t\t\tSystem.err.println(\"Conversion Error: \" + ex.getLocalizedMessage());\r\n\t\t\t\treturn readLong(\"Try again: \" + prompt);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public String readMessage() throws IOException {\n\t\treturn reader.readLine();\n\t}", "public void setErr(PrintStream err);", "private String readLine(BufferedReader br) throws IOException {\n StringBuffer sb = new StringBuffer();\n boolean haveCR = false;\n boolean done = false;\n int i;\n char c;\n \n while((i = br.read()) != -1) {\n c = (char)i;\n \n if(haveCR) {\n switch(c) {\n case '\\n':\n sb.append(c);\n done = true;\n break;\n default:\n br.reset();\n done = true;\n break;\n }\n }\n else {\n sb.append(c);\n switch(c) {\n case '\\n':\n done = true;\n break;\n case '\\r':\n br.mark(1);\n haveCR = true;\n }\n }\n \n if(done) {\n break;\n }\n }\n\n return sb.length() > 0 ? sb.toString() : null;\n }", "public static String askForLine(InputStreamReader reader,\n PrintStream out, String prompt) {\n String result = \"\";\n while (result != null && result.length() == 0) {\n out.print(prompt);\n out.flush();\n result = getLine(reader);\n }\n return result;\n }", "public static String readLine(BufferedReader reader, StringBuilder sb0) throws IOException {\n final int readAheadLimit = 2;\n\n int val = 0;\n String retstr = null;\n while (reader.ready()) {\n val = reader.read();\n\n // Stop reading if end of file seen\n if (val == -1) {\n break;\n }\n\n final char c = (char)val;\n\n // Stop reading if we find a line ending and set return string\n if (c == '\\n') {\n retstr = sb0.toString();\n clearAndResizeSbIfNeeded(sb0);\n break;\n } else if (c == '\\r') {\n // Check for Windows line ending, CRLF\n reader.mark(readAheadLimit);\n if (reader.read() != '\\n') {\n reader.reset();\n }\n\n retstr = sb0.toString();\n clearAndResizeSbIfNeeded(sb0);\n break;\n } else {\n sb0.append(c);\n }\n }\n\n return retstr;\n }", "private static String handleCliOutput(Process process, boolean failCommand) throws IOException, InterruptedException{\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\t\tfinal StringBuilder consoleOutput = new StringBuilder(\"\");\n\t\tfinal AtomicReference<Throwable> exception = new AtomicReference<Throwable>();\n\n\t\tThread thread = new Thread(new Runnable() {\n\n\t\t\tString line = null;\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\t\tLogUtils.log(line);\n\t\t\t\t\t\tconsoleOutput.append(line + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\texception.set(e);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tthread.setDaemon(true);\n\n\t\tthread.start();\n\n\t\tint result = process.waitFor();\n\n\t\tthread.join(5000);\n\n\t\tAssertUtils.assertTrue(exception.get() == null);\n\n\t\tif (result != 0 && !failCommand) {\n\t\t\tAssertUtils.assertFail(\"In RunCommand: Process did not complete successfully\");\n\t\t}\n\t\treturn consoleOutput.toString();\n\t}", "public static String readNextLine() {\n return sc.nextLine();\n }", "public java.lang.String getErr() {\n java.lang.Object ref = err_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n err_ = s;\n }\n return s;\n }\n }", "public String read() throws IOException {\n return reader.readLine();\n }", "int getLineOfOffset(int offset) throws BadLocationException;", "public static PrintStream err() {\n return System.err;\n }", "private static void ioProcess(final Process process) {\n\t\ttry (InputStream errorStream = process.getErrorStream(); BufferedReader br = new BufferedReader(new InputStreamReader(errorStream));) {\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tSystem.out.println(\"[LOG] line = \" + line);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tthrow new UncheckedIOException(e);\n\t\t}\n\t}", "java.lang.String getErr();", "public static int execute(String[] cmdarray, File workDir, InputStream stdin, OutputStream stdout, OutputStream stderr, int timeout, int pollInterval, LineFilter lineFilter) throws ExecutionException { \n // Check working directory\n if (workDir != null && !workDir.isDirectory()) {\n throw new ExecutionException(\"'\" + workDir + \"' is not a directory\");\n }\n \n // Check poll interval\n if (pollInterval < 10) {\n throw new ExecutionException(\"Poll interval must be at least 10 ms\");\n }\n \n // Execute command \n boolean finished = false;\n int exitVal = 1;\n try {\n Runtime runtime = Runtime.getRuntime();\n \n // Calculate timeout\n Date startDate = new Date();\n Date timeoutDate = null;\n if (timeout > 0) {\n timeoutDate = new Date(startDate.getTime() + timeout);\n }\n \n // Start the program \n Process proc = runtime.exec(cmdarray, null, workDir);\n \n // Setup and start stream redirectors\n OutputStream outStream = System.out;\n OutputStream errStream = System.err;\n if (stdout != null) {\n outStream = stdout;\n } \n if (stderr != null) {\n errStream = stderr;\n }\n \n StreamRedirector out = null;\n StreamRedirector err = null;\n if (lineFilter != null) {\n out = new StreamRedirector(proc.getInputStream(), outStream, lineFilter, false);\n err = new StreamRedirector(proc.getErrorStream(), errStream, lineFilter, false);\n } else {\n BinaryStreamRedirector bout = new BinaryStreamRedirector(proc.getInputStream(), outStream);\n bout.setCloseInputStream(true);\n bout.setCloseOutputStream(outStream != System.out);\n out = bout;\n \n BinaryStreamRedirector berr = new BinaryStreamRedirector(proc.getErrorStream(), errStream);\n berr.setCloseInputStream(true);\n berr.setCloseOutputStream(errStream != System.err);\n err = berr;\n }\n \n out.start();\n err.start();\n \n if (stdin != null) {\n BinaryStreamRedirector in = new BinaryStreamRedirector(stdin, proc.getOutputStream());\n in.setCloseInputStream(true);\n in.setCloseOutputStream(true);\n in.start();\n }\n \n // Wait (by polling) for exit value \n while (!finished) {\n try {\n exitVal = proc.exitValue();\n finished = true; \n } catch (IllegalThreadStateException e) {\n // Not finished yet\n }\n if (!finished) {\n if (timeoutDate != null && timeoutDate.before(new Date())) {\n proc.destroy();\n throw new ExecutionException(\"Timeout. Aborting program execution.\"); \n }\n Thread.sleep(pollInterval);\n }\n }\n } catch (FileNotFoundException e) {\n throw new ExecutionException(\"Cannot write to file\", e);\n } catch (IOException e) {\n throw new ExecutionException(\"Cannot run command\", e); \n } catch (InterruptedException e) {\n throw new ExecutionException(\"Interrupted in sleep\", e);\n }\n \n // If the program was aborted, it is a failure\n if (!finished) {\n throw new ExecutionException(\"Timeout. Aborting program execution.\"); \n }\n \n return exitVal;\n }", "public static String readMessage() throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tSystem.out.print(\"Enter the message :: \");\n\t\tSystem.out.println();\n\t\tString s = br.readLine();\n\t\treturn s;\n\t}", "private String eatLine( InputStream stream ) throws IOException {\n buffer = new StringBuffer();\n for ( boolean done = false; ! done; ) {\n int c = stream.read();\n switch ( (char) c ) {\n case '\\n':\n case '\\r':\n case END:\n done = true;\n break;\n default:\n buffer.append( (char) c );\n }\n }\n return buffer.toString();\n }", "private ShellStatus getCmdOutput() {\n ShellStatus status = RUNNING;\n\n while (!stdOut.buffer.isEmpty()) {\n String line = stdOut.buffer.remove(0);\n LOG.trace(String.format(\"lockId=%s, shell line:=%s \", lockId, line));\n\n if (\"END_OF_SCRIPT\".equals(line)) {\n if (!hasErrors()) {\n status = SUCCESS;\n } else {\n status = PSSHELL_ERROR;\n }\n } else {\n command.addOutputLine(line);\n }\n }\n\n if (!stdErr.buffer.isEmpty()) {\n while (!stdErr.buffer.isEmpty()) {\n String errorLine = stdErr.buffer.remove(0);\n LOG.trace(\"CallerId: \" + lockId + \" error line: \" + errorLine);\n command.addErrorLine(errorLine);\n }\n status = PSSHELL_ERROR;\n }\n\n command.setReturnCode(status);\n return status;\n }", "public int readLine(byte[] b, int off, int len) throws IOException {\n \tif (len <= 0) {\n \t return 0;\n \t}\n \tint count = 0, c;\n\n \twhile ((c = read()) != -1) {\n \t b[off++] = (byte)c;\n \t count++;\n \t if (c == '\\n' || count == len) {\n \t\tbreak;\n \t }\n \t}\n \treturn count > 0 ? count : -1;\n }", "public InputStream getErrorStrean(){\n return this.mErrStream;\n }", "static String readString() throws Exception {\n\t\twhile (!st.hasMoreTokens()) {\n\t\t\tst = new StringTokenizer(stdin.readLine());\n\t\t}\n\t\treturn st.nextToken();\n\t}", "public String readLine() {\n BufferedReader input;\n String str = null;\n \n if (file == null || line < 0) {\n return null;\n }\n try {\n input = new BufferedReader(new FileReader(file));\n for (int i = 0; i < line; i++) {\n str = input.readLine();\n }\n input.close();\n } catch (IOException e) {\n return null;\n }\n return str;\n }", "public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n input = br.readLine();\n while (input != null) {\n CM.processCommand(input, pw, true);\n input = br.readLine();\n }\n } catch (IOException ioe) {\n pw.println(\"ERROR: Problem with reading user input.\");\n } finally {\n try {\n br.close();\n } catch (IOException ioe) {\n pw.println(\"ERROR: Buffer DNE\");\n }\n }\n }", "int getLine();", "public String getNextLine() throws IOException {\n\n String currentLine = nextLine;\n this.nextLine = bufferedReader.readLine();\n\n return currentLine;\n }", "String getLine();", "public byte[] readLine(int offset) throws IOException {\n\t\tint lastIndex = -1;\n\t\tint localOffset = offset;\n\t\tint read;\n\t\tdo {\n\t\t\tread = ensureBuffer(localOffset, BUFFER_SIZE);\n\t\t\tif (read <= 0) {\n\t\t\t\t// EOF\n\t\t\t\tthis.pos = this.buffer.length;\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// NOT EOF, search for end of line\n\t\t\tfinal int end = localOffset + read;\n\t\t\tfor (int idx = localOffset; (lastIndex == -1) && (idx < this.buffer.length) && (idx < end); ++idx) {\n\t\t\t\tif ((this.buffer[idx] == '\\n') || (this.buffer[idx] == '\\r')) {\n\t\t\t\t\tlastIndex = idx;\n\t\t\t\t}\n\t\t\t}\n\t\t\tlocalOffset += read;\n\t\t}\n\t\twhile (lastIndex == -1);\n\t\tthis.pos = lastIndex;\n\t\treturn Arrays.copyOfRange(this.buffer, offset, lastIndex);\n\t}", "public Integer readIntegerFromCmd() throws IOException {\r\n\t\tSystem.out.println(\"Enter your number:\");\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString number = null;\r\n\t\tnumber = br.readLine();\r\n\t\treturn new Integer(number);\r\n\t}", "@Override\n public int read() throws IOException {\n int c;\n\n do {\n c = System.in.read();\n } while(c != -1 && (c == '\\n' || c == '\\r'));\n\n return c;\n }", "public static String readLine(InputStream inputStream, String charset,\n boolean includeCR) throws IOException {\n byte[] line = readLine(inputStream, includeCR);\n return (null == line) ? null : new String(line, charset);\n }" ]
[ "0.6662843", "0.6418407", "0.63860613", "0.59239316", "0.5873303", "0.57570285", "0.5586782", "0.55665636", "0.548915", "0.5476183", "0.54663134", "0.54231334", "0.5326376", "0.5300557", "0.52879304", "0.5271434", "0.51655203", "0.5106228", "0.50032157", "0.49961975", "0.49245948", "0.48340377", "0.48195332", "0.47911525", "0.47708997", "0.47521704", "0.4750874", "0.47449595", "0.47091696", "0.47073802", "0.47052333", "0.470045", "0.46998063", "0.46938002", "0.46924064", "0.4614193", "0.45839012", "0.45793325", "0.45788902", "0.4569207", "0.45649913", "0.45606458", "0.45537305", "0.45503634", "0.45460987", "0.4544878", "0.4530619", "0.45238554", "0.45069253", "0.4501716", "0.44994164", "0.44761884", "0.44573408", "0.445187", "0.44232562", "0.4410677", "0.44102645", "0.43893823", "0.43801525", "0.43747115", "0.43694195", "0.43479735", "0.4336286", "0.43332294", "0.43317464", "0.4323934", "0.4317763", "0.43165976", "0.43122283", "0.4303579", "0.4297513", "0.429445", "0.4290676", "0.42794645", "0.42759043", "0.4272081", "0.42708242", "0.4259192", "0.4251742", "0.42302123", "0.42271864", "0.42196843", "0.41977245", "0.4192257", "0.41899377", "0.4185902", "0.41847032", "0.4183735", "0.4175444", "0.41668886", "0.41620207", "0.41617548", "0.41613495", "0.41549474", "0.4153747", "0.415067", "0.41501865", "0.41415942", "0.41349727", "0.41336098" ]
0.7323238
0
Returns the shell command used to initialize this sandbox.
public String Command() { return command; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getLaunchCommand();", "private static String getSetCommand()\n {\n String setCmd;\n String osName = System.getProperty(\"os.name\");\n\n if (osName.indexOf(\"indows\") != -1)\n {\n if (osName.indexOf(\"indows 9\") != -1)\n {\n setCmd = \"command.com /c set\";\n }\n else\n {\n setCmd = \"cmd.exe /c set\";\n }\n }\n else\n {\n setCmd = \"/usr/bin/env\";\n //should double check for all unix platforms\n }\n return setCmd;\n }", "public String getInitCommand(){\r\n return initCommand;\r\n }", "public String getKinitCommandAsString() {\n //kinit nifi -kt /etc/security/keytabs/nifi.headless.keytab\n StringBuffer kInitCommand = new StringBuffer();\n return kInitCommand.append(kerberosKinitLocation)\n .append(\" \")\n .append(kerberosPrincipal)\n .append(\" \")\n .append(\"-kt\")\n .append(\" \")\n .append(kerberosKeytab)\n .toString();\n }", "public String getCommand(){\n return getCommand(null);\n }", "public Shell() {\n commandNumber = 0;\n prevPID = -1;\n command = \"\";\n }", "public String getToolCommand();", "protected final String getClearToolCommand() {\n String toReturn = mClearToolDir;\n if (!toReturn.isEmpty() && !toReturn.endsWith(\"/\")) {\n toReturn += \"/\";\n }\n\n toReturn += CLEARTOOL_EXE;\n\n return toReturn;\n }", "java.lang.String getCommand();", "public String getUserCommand();", "public String getCommand() {\n\t\tString[] lines = commandLine.getText().split(\"\\n\");\n\t\treturn lines[commandLine.getLineCount() - 2];\n\t}", "public String getExecutable();", "String getExecutable();", "public String getCommand() {\n\n return command;\n }", "String getCommand();", "public String getCommand() {\n return command;\n }", "public String getCommand() {\n return command;\n }", "public String createUnixShellCommand(SeqAnalysisLocal seqAnalysis);", "public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}", "public String getStartCommand() {\n return startCommand;\n }", "public String getSyntaxCheckCommand() {\n return replaceFilePathToken(syntaxCheckCommand);\n }", "protected String getCommand() {\n\treturn \"USER_LOGIN\";\n }", "public String getCommand() {\r\n return command;\r\n }", "public String getCmd() {\r\n return cmd;\r\n }", "private String getCmdPromptString()\n {\n String prompt = currentUser.getName() + '@' + HOST_NAME + ':';\n prompt += currentUser.getHomeDir().getName().equals(currentUser.getCurrentDirectory().getName())\n ? '~'\n : currentUser.getCurrentDirectory().getName();\n\n prompt += currentUser.isRootUser() ? \"# \" : \"$ \";\n return prompt;\n }", "public String getCommand() {\n return this.command;\n }", "public String commandLine() {\n String command = \"\";\n for (String arg : builder.command()) {\n command += arg + ' ';\n }\n if (command.endsWith(\" \")) {\n command = command.substring(0, command.length() - 1);\n }\n return command;\n }", "public String getOriginalCommand() {\n return command;\n }", "@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}", "private GroovyShell getShell() {\n return CpsThreadGroup.current().getExecution().getShell();\n }", "public\n static\n String\n which( CharSequence cmd )\n {\n String cmdStr = inputs.notNull( cmd, \"cmd\" ).toString();\n\n String path = System.getenv( ENV_PATH );\n\n if ( path != null ) \n {\n for ( String dir : PAT_PATH_SEP.split( path ) )\n {\n File f = new File( dir, cmdStr );\n if ( f.exists() && f.canExecute() ) return f.toString();\n }\n }\n\n return null; // if we get here\n }", "public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }", "public NativeExecutable(String command) {\n this.command = command;\n }", "java.lang.String getCommandName();", "public String getVmSetupCommandLine() {\n return vmSetupCommandLine;\n }", "private static String getCommand(File file) {\n if (OperatingSystemDetector.isMac()) return String.format(\"open %s\", file);\n if (OperatingSystemDetector.isWindows()) return String.format(\"cmd /c start %s\", file);\n if (OperatingSystemDetector.isLinux()) return String.format(\"xdg-open %s\", file);\n return \"\";\n }", "final public String getActionCommand() {\n return command;\n }", "public String getRemoteCommand() {\n return agentConfig.getRemoteCommand();\n }", "String command(String key) {\n return ResourceBundle.getBundle(OvsDbCli.class.getName())\n .getString(name() + \".\" + key);\n }", "public String getCommand() { return command; }", "private Shell() { }", "public static String[] getRunScriptCommand(File script) {\n\t\tString absolutePath = script.getAbsolutePath();\n\t\treturn WINDOWS ? new String[] { \"cmd\", \"/c\", absolutePath } : new String[] { \"/bin/bash\", absolutePath };\n\t}", "public int getCmd() {\n return cmd_;\n }", "public byte[] getCmdString() {\n \t\t\n \t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \t\tString strCmd = null;\n \t\tbyte[] byteCmd = null; \t\t\n \t\t\n \t\tSystem.out.print(\"bash$ \");\n \t\ttry {\n\t\t\tstrCmd = br.readLine();\t\n\t\t\tbyteCmd = new byte[ strCmd.length() ]; \n\t\t\tbyteCmd = strCmd.getBytes(\"UTF-8\");\t\t\t \n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"caught exception.. \");\n\t\t}\n \t\t \t\t \t\t\n \t\treturn byteCmd; \t\n \t}", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "public String getCommand(){\n return command;\n }", "public abstract String getCommand();", "public int getCmd() {\n return cmd_;\n }", "public String getSimulatorExecutable() {\n return simSpec.getSimExecutable();\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "String getCommand(){\n\t\tString command=\"\";\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcommand = br.readLine();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Somethinf went wrong with the system input!! Please try again.\");\n\t\t}\n\t\treturn command;\n\t}", "public Command getCreateCommand() {\n\t\treturn null;\n\t}", "public int getCommand() {\n return command_;\n }", "public Script() {\n\n fs = System.getProperty(\"file.separator\");\n ps = System.getProperty(\"path.separator\");\n\n try {\n env = new Environment();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand(new MySpecialCommand());\r\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "protected String getSquawkExecutable() {\n return \"squawk\" + env.getPlatform().getExecutableExtension();\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \t\n }", "public void initDefaultCommand() {\n\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n\n }", "public Command getCurrentCommand();", "public void initDefaultCommand() {\n \n }", "public static String getExecutable() {\n \texecutable = getProperty(\"executable\");\n \tif (executable == null) executable = \"dot\";\n \treturn executable;\n }", "protected void initDefaultCommand() {\n\t\tsetDefaultCommand(CommandBase.scs);\r\n\t}", "public void initDefaultCommand() \n {\n }", "public int getCommand() {\n return command_;\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "public IManagedCommandLineGenerator getCommandLineGenerator();", "@Override\n\tpublic String toString() {\n\t\treturn CMD_NAME;\n\t}", "@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}", "@Override\n /**\n * Set the default command for a subsystem here\n */\n public void initDefaultCommand() \n {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand()\n {\n }", "public void initDefaultCommand() {\n \n }" ]
[ "0.6223209", "0.58677375", "0.5863686", "0.5702824", "0.56680113", "0.5649872", "0.56498027", "0.5627367", "0.5589999", "0.55789965", "0.5538112", "0.5528352", "0.55102307", "0.5508755", "0.54695714", "0.5444955", "0.5444955", "0.5442395", "0.54239064", "0.5419443", "0.541449", "0.54085684", "0.5389142", "0.53891224", "0.53580576", "0.53408754", "0.53366995", "0.53033286", "0.52914864", "0.5290544", "0.52472466", "0.51723534", "0.5167986", "0.5153242", "0.5147631", "0.5127293", "0.5120544", "0.5103681", "0.5090983", "0.5067047", "0.50668037", "0.50543225", "0.5047255", "0.5045786", "0.50265557", "0.5018513", "0.50056714", "0.50054145", "0.49993277", "0.49878618", "0.49878618", "0.49878618", "0.49878618", "0.49835682", "0.49771562", "0.49679396", "0.49645334", "0.49640504", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.4949802", "0.49379423", "0.49322996", "0.49239415", "0.4921051", "0.49181205", "0.4916892", "0.49155784", "0.4915239", "0.4910721", "0.49088353", "0.49088353", "0.49061367", "0.48998773", "0.48990917", "0.4886139", "0.48788315", "0.487801" ]
0.55330044
11
Kills this thread. Stops monitoring the InputStream.
public synchronized void Kill() { dieDieDie = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n isRunning = false;\n\n mReadLogsHandler = null;\n if (mReadLogThread != null) {\n final Thread inherited = mReadLogThread;\n mReadLogThread = null;\n inherited.interrupt();\n }\n\n IOUtilities.closeStream(reader);\n }", "public void stopThread(){\r\n\t\tthis.p.destroy();\r\n\t\ttry {\r\n\t\t\tinput.close();\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\tthis.stop();\r\n\t}", "public void terminate () {\n\t\t\t\n\t\t\tsynchronized (runningLock) {\n\t\t\t\tif (running == false)\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tinputStream.close ();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"ModemWorker.teminate(): IOException on close().\");\n\t\t\t}\n\t\t}", "void stop() throws IOException;", "public void stop() {\n thread.interrupt();\n }", "public void stop() {\n thread = null;\n }", "public void stop() {}", "public void stop() {\n thread.interrupt();\n }", "public void stop() {\n closed.set(true);\n consumer.wakeup();\n }", "public void stop() {\n if (started && thread != null) {\n stopRequested = true;\n thread.interrupt();\n if (audio != null) {\n audio.stop();\n }\n }\n }", "public void stopThread() {\n\t\talive = false;\n\t\t\n\t\ttry {\n\t\t\tif(oos != null) {\n\t\t\t\toos.close();\n\t\t\t}\n\t\t\tif(ois != null) {\n\t\t\t\tois.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// Why the hell is that being thrown here? Doesn't matter.\n\t\t}\n\t}", "public void stop()\n\t{\n\t\trunning = false;\n\t}", "public void stop() {\n\t\tthis.flag = false;\n\t\t\n\t\t\n\t}", "public synchronized void stop()\n {\n if (open) {\n //stop = true;\n notifyAll();\n started = false;\n line.stop();\n timeTracker.pause();\n }\n }", "public synchronized void stop() {\n this.running = false;\n }", "public static void stop() {\n enableIncomingMessages(false);\n }", "public void stop() {\n _running = false;\n }", "public void stop() {\n if (stream != null) {\n try {\n stream.close();\n } catch (IOException e) {\n logger.error(\"Closing response stream failed\", e);\n }\n }\n\n executorService.shutdownNow();\n executorService = null;\n }", "public synchronized void stop() {\n try {\n if (isRunning) {\n isRunning = false;\n thread.join();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.exit(0);\n }", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void Stop() {\r\n\t\t\r\n\t\tthread = null;\r\n\t}", "public void stop() {\n synchronized (lock) {\n isRunning = false;\n if (rawAudioFileOutputStream != null) {\n try {\n rawAudioFileOutputStream.close();\n } catch (IOException e) {\n Log.e(TAG, \"Failed to close file with saved input audio: \" + e);\n }\n rawAudioFileOutputStream = null;\n }\n fileSizeInBytes = 0;\n }\n }", "private void stop() {\r\n\t\t\tstopped = true;\r\n\t\t}", "public void stop() {\n\t\tthis.close(this.btcomm);\n\t}", "public boolean stop();", "public void stop() {\n stop = true;\n //index--;\n line.flush();\n line.close();\n try {\n decodedInput.close();\n } catch (IOException ex) {\n Logger.getLogger(MP3Player.class.getName()).log(Level.SEVERE, null, ex);\n }\n Runtime.getRuntime().gc();\n }", "public void\n stop() throws IOException;", "public void stop() {\n if (this.thread != null) {\n Thread thre = this.thread;\n this.thread = null;\n thre.interrupt();\n }\n }", "public void stop() {\r\n running = false;\r\n }", "public void stop() {\n synchronized (mLock) {\n //if (!mRunning)\n //{\n // throw new IllegalStateException(\"CameraStreamer is already stopped\");\n //} // if\n \t\n \tLog.d(TAG, \"Stop\");\n \t\n mRunning = false;\n if (mMJpegHttpStreamer != null) {\n mMJpegHttpStreamer.stop();\n mMJpegHttpStreamer = null;\n } // if\n \n if (mCamera != null) {\n mCamera.release();\n mCamera = null;\n } // if\n } // synchronized\n mLooper.quit();\n }", "public void stop()\n throws IOException\n {\n }", "public void stop() {\n running = false;\n }", "public void stop() throws IOException {\n synchronized (lock) {\n this.torrents.stop();\n this.metrics = null;\n }\n }", "@Override\n public void stop() {}", "@Override public void stop() {\n }", "public void stop()\n {\n running = false;\n }", "public void stop() {\n stopped.set(true);\n if (this.currentThread != null) {\n this.currentThread.interrupt();\n this.currentThread = null;\n }\n }", "public void stop() {\n\t\texec.stop();\n\t}", "public void stop() {\n executor.shutdownNow();\n rescanThread.interrupt();\n }", "@Override\n public void stop() {\n }", "public void stop() {\n }", "public void stop() {\n }", "public void stop() {\n stop = true;\n }", "public synchronized void stop() {\n try {\n thread.join();\n running = false;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void stop() {\r\n _keepGoing = false;\r\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}", "@Override\n\tpublic void stop() {\n\t\tsuper.stop();\n\t}", "@Override\n\tpublic void stop() {\n\t\tsuper.stop();\n\t}", "public void cancel() {\n stopThread = true;\n\t\ttry {\n\t\t\tmmSocket.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void stop()\n {\n if ( this.threadRunning.get() )\n {\n this.threadRunning.set(false);\n }\n }", "@Override\r\n public void stop() {\r\n }", "@Override\r\n public void stop() {\r\n }", "@Override\n\tpublic void stop()\n\t\t{\n\t\t}", "public void stop() {\n System.setErr(saveErr);\n System.setOut(saveOut);\n running = false;\n try {\n flushThread.join();\n } catch (InterruptedException e) {\n }\n }", "public void stop() {\n\t\tthis.stopTime = System.nanoTime();\n\t\tthis.running = false;\n\t}", "public void stop() {\n\t}", "public void stopPlayThread() {\n ms.stop();\n }", "public void stop() {\n\t\t\n\t}", "@Override\n public void run() {\n stop();\n }", "public void stopThread() \n {\n \tthis.exit = true;\n \t//ctr.getMemory().programmcounter = 65536;\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "private void stop() {\n\t\tif (null == this.sourceRunner || null == this.channel) {\n\t\t\treturn;\n\t\t}\n\t\tthis.sourceRunner.stop();\n\t\tthis.channel.stop();\n\t\tthis.sinkCounter.stop();\n\t}", "public void kill()\n\t{\n\t\tisKilled = true;\n\t}", "@Override\r\n public void stop() throws IOException {\n\r\n }", "public void stop(){\n\t\t\n\t}", "@Override\r\n public void stop() {\r\n\r\n }", "public void stop() {\n m_enabled = false;\n }", "public synchronized void stop() {\n isRunning = false;\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public synchronized void stop() {\n stopping = true;\n }", "public void stop() {\n\t\t//start the processor thread\n\t\t//logger.debug(processorName+\" stopping processor thread\");\n\t\tprocessorThread.interrupt();\n\t\t\n\t\t//logger.debug(processorName+\" stopped\");\n\t}", "public void stop() {\n\t\tthis.stopper = true;\n\t}", "protected void stop() {\r\n\t\tif (active) {\r\n\t\t\tsource.stop();\r\n\t\t}\r\n\t}", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();" ]
[ "0.7079659", "0.7045995", "0.6402628", "0.6392985", "0.63839734", "0.6364405", "0.6360481", "0.63498145", "0.63436127", "0.6341731", "0.63206196", "0.6318389", "0.6289651", "0.6278615", "0.62781596", "0.62654895", "0.62569785", "0.6255465", "0.625488", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.6242257", "0.623099", "0.6223562", "0.62139505", "0.6211649", "0.61844987", "0.6178369", "0.6176015", "0.6161027", "0.6155241", "0.6154175", "0.61481386", "0.61343825", "0.61341894", "0.6129179", "0.61277896", "0.6114753", "0.6114141", "0.6108112", "0.6100614", "0.6092115", "0.60850984", "0.60850984", "0.6084407", "0.6063466", "0.6061626", "0.6034222", "0.603105", "0.603105", "0.60299075", "0.602863", "0.60250676", "0.60250676", "0.6014597", "0.6007623", "0.5997136", "0.5991377", "0.5981907", "0.5973279", "0.59673667", "0.59660494", "0.59587103", "0.59587103", "0.59587103", "0.59587103", "0.59587103", "0.59587103", "0.59587103", "0.59587103", "0.59587103", "0.59587103", "0.59587103", "0.59577787", "0.59437454", "0.59311754", "0.5929535", "0.59261405", "0.5924811", "0.59222645", "0.59220326", "0.5919914", "0.5916787", "0.591643", "0.59157366", "0.59157366", "0.59157366", "0.59157366", "0.59157366" ]
0.0
-1
Checks to get one line of input, if available. If no line is immediately available, returns null.
public synchronized String Readline() { return lines.poll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String readLine() {\r\n\t\ttry {\r\n\t\t\treturn input.readLine();\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private String readLine() {\n\t\ttry {\n\t\t\treturn reader.nextLine();\t\n\t\t} catch (NoSuchElementException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public String readLine(){\n\t\tString line;\n\t\ttry{\n\t\t\tline=scanner.nextLine();\n\t\t}catch (NoSuchElementException e){\n\t\t\tline=null;\n\t\t}\n\t\treturn line;\n\t}", "protected String readLine()\n { try { if (stdin!=null) return stdin.readLine(); } catch (IOException e) {}\n return null;\n }", "public String readFirstLine() {\n if ( scanner.hasNextLine() ) {\n return scanner.nextLine();\n }\n return \"\";\n }", "public String readLine() {\n if(in.hasNextLine()) {\n return in.nextLine();\n } else {\n // remote host closed connection!\n cleanup();\n return null;\n }\n }", "public Line getLine ()\r\n {\r\n if (line == null) {\r\n computeLine();\r\n }\r\n\r\n return line;\r\n }", "public synchronized String readLineFromFile(){\n\t\tString line = null;\n\t\t\n\t\ttry{\n\n\t\t\tif((line = bufferedInput.readLine()) != null){\n\t\t\t\treturn line;\n\t\t\t}\n\t\t}\n\t\tcatch(NullPointerException ex) {\n \t\tSystem.err.println(\"File is Blank\");\t\t \n \t\tSystem.exit(1); \n\t\t}\n\t\tcatch(IOException ex) {\n System.err.println(\"Unable to read a line from file\");\t\t \n\t\t\tSystem.exit(1); \n }\n\n\t\treturn line;\n\t}", "@Override\r\n\tprotected String processLine(String line) {\n\t\treturn null;\r\n\t}", "public String nextLine() {\n\t\treturn null;\r\n\t}", "public String readLine() {\n BufferedReader input;\n String str = null;\n \n if (file == null || line < 0) {\n return null;\n }\n try {\n input = new BufferedReader(new FileReader(file));\n for (int i = 0; i < line; i++) {\n str = input.readLine();\n }\n input.close();\n } catch (IOException e) {\n return null;\n }\n return str;\n }", "public VCFLine getCurrentValidLine () {\n\t\tcurrentLine = reader.getCurrentLine();\n\t\tpassValidation(currentLine);\n\t\treturn currentLine;\n\t}", "@Override\n\tprotected String processLine(String line) {\n\t\treturn null;\n\t}", "private static String readLine() {\r\n String input=\"\";\r\n try {\r\n input = in.readLine();\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n return input;\r\n }", "private String getNextLine() throws IOException {\n final BufferedReader in = this.in;\n if (in == null) {\n throw new NoSuchElementException();\n } else {\n final String nextLine = this.in.readLine();\n if (nextLine == null) {\n throw new NoSuchElementException();\n }\n return nextLine;\n }\n }", "public String getMarkdownInputLine() {\n if (markdownReader == null) {\n return null;\n } else {\n return markdownReader.readLine();\n }\n }", "private String getNextLine(Scanner input)\n\t{\n\t\tString line = input.nextLine().trim();\n\t\twhile ((line.length() == 0 || line.startsWith(\"#\") || line.startsWith(\"!\")) && input.hasNext())\n\t\t\tline = input.nextLine().trim();\n\t\tif (line.startsWith(\"#\") || line.startsWith(\"!\"))\n\t\t\tline = \"\";\n\t\treturn line;\n\t}", "public String getLine()\n\t{\n\t\ttry\n\t\t{\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn line;\n\t}", "public static String readLine()\n\t{\n\t\tif (bJunit == true)\n\t\t{\n\t\t\tsLastLine = sJunitInput;\n\t\t\twriteLine(\"JUnit INPUT: \" + sJunitInput);\n\t\t\treturn sLastLine;\n\t\t}\n\t\n\t\ttry {\n\t\t\tsLastLine = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error reading from STDIN\");\n\t\t}\n\t\t\n\t\treturn sLastLine;\n\t\t\n\t}", "public String ReadLine(int maxBlockingTime) {\n\tlong startTime = System.currentTimeMillis();\n\twhile (System.currentTimeMillis() - startTime < maxBlockingTime) {\n\t String s = ReadLine();\n\t if (s != null) {\n\t\treturn s;\n\t }\n\t try {Thread.sleep(10); } catch (Exception e) { }\n\t}\n\treturn null;\n }", "public static String readNextLine() {\n return sc.nextLine();\n }", "public abstract String getFirstLine();", "public String readNextLine() throws IOException {\n if (this.reader == null) {\n return null;\n }\n\n boolean openNext = false;\n String line;\n while ((line = this.reader.readLine()) == null) {\n // The current file is read at the end, ready to read next one\n this.close(this.index);\n\n if (++this.index < this.readables.size()) {\n // Open the second or subsequent readables, need\n this.reader = this.open(this.index);\n openNext = true;\n } else {\n return null;\n }\n }\n // Determine if need to skip duplicate header\n if (openNext && isDuplicateHeader(line)) {\n line = this.readNextLine();\n }\n return line;\n }", "String readLine() throws IOException\n\t{\n\t\tString line = null;\n\t\tif (haveStreams())\n\t\t\tline = m_in.readLine();\n\t\telse\n\t\t\tline = keyboardReadLine();\n\n\t\tsetCurrentLine(line);\n\t\treturn line;\n\t}", "public final String readNextLine() throws IOException {\r\n String str;\r\n if (buf_end-buf_pos <= 0) {\r\n if (fillBuffer() < 0) {\r\n throw new IOException(\"Error filling buffer!\");\r\n }\r\n }\r\n int lineEnd = -1;\r\n for (int i = buf_pos; i < buf_end; i++) {\r\n if (buffer[i] == '\\n') {\r\n lineEnd = i;\r\n break;\r\n }\r\n }\r\n if (lineEnd < 0) {\r\n StringBuilder input = new StringBuilder(256);\r\n int c;\r\n while (((c = read()) != -1) && (c != '\\n')) {\r\n input.append((char)c);\r\n }\r\n if ((c == -1) && (input.length() == 0)) {\r\n return null;\r\n }\r\n return input.toString();\r\n }\r\n\r\n if (lineEnd > 0 && buffer[lineEnd-1] == '\\r') {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos -1);\r\n }\r\n else {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos);\r\n }\r\n buf_pos = lineEnd +1;\r\n return str;\r\n }", "public String readLine() {\n\n String temp = null;\n\n try\n {\n assert this.isValid();\t\t\t//Test that we can read the file\n temp = br.readLine();\t\t\t//Read the next line and store it as temp\n }\n\n\t\t//Catch possible exceptions\n catch(java.io.IOException e) {\n System.out.println(\"Error reading file: \" + e );\n }\n\n return temp;\n }", "private static String readNextLine(BufferedReader reader) {\n\t\t\n\t\ttry {\n\t\t\tString line = reader.readLine();\n\t\t\treturn line;\n\t\t} catch(IOException e) {\n\t\t\tGdx.app.error(TAG, \"Failed to read the file\", e);\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch(IOException ex) {\n\t\t\t\tGdx.app.error(TAG, \"Failed to close file\");\n\t\t\t\tGdx.app.exit();\n\t\t\t}\n\t\t\tGdx.app.exit();\n\t\t\treturn null;\n\t\t}\n\t}", "public VCFLine getNextValidLine () throws IOException {\n\t\tgoNextLine();\n\t\treturn getCurrentValidLine();\n\t}", "@Nullable\n public Diff.Line getLineInHunk(int hunkIdx, int lineOfHunk) {\n AtomicLong out = new AtomicLong();\n int e = jniGetLineInHunk(out, getRawPointer(), hunkIdx, lineOfHunk);\n if (ENOTFOUND.getCode() == e) {\n return null;\n }\n Error.throwIfNeeded(e);\n return new Diff.Line(out.get());\n }", "private String readNextLine() {\n StringBuilder sb = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n sb.append(br.readLine());\n } catch (IOException e) {\n e.fillInStackTrace();\n }\n\n return sb.toString();\n }", "public String getCurrentInputString() { return line; }", "static String read ()\r\n \t{\r\n \t\tString sinput;\r\n \r\n \t\ttry\r\n \t\t{\r\n \t\t\tsinput = br.readLine();\r\n \t\t}\r\n \t\tcatch (IOException e)\r\n \t\t{\r\n \t\t\tErrorLog.addError(\"Input exception occured in command line interface!\");\r\n \t\t\treturn null; //Menu will exit when fed a null\r\n \t\t}\r\n \t\treturn sinput;\r\n \t}", "String getLine();", "@Override\n public String readLine() {\n try {\n return this.bufferedReader.readLine();\n } catch (IOException e) {\n return \"\";\n }\n }", "String getLine ();", "public String readLine() throws IOException {\n/* 176 */ String line = this.currentFilePart.readLine();\n/* 177 */ while (line == null) {\n/* 178 */ this.currentFilePart = this.currentFilePart.rollOver();\n/* 179 */ if (this.currentFilePart != null) {\n/* 180 */ line = this.currentFilePart.readLine();\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 188 */ if (\"\".equals(line) && !this.trailingNewlineOfFileSkipped) {\n/* 189 */ this.trailingNewlineOfFileSkipped = true;\n/* 190 */ line = readLine();\n/* */ } \n/* */ \n/* 193 */ return line;\n/* */ }", "public boolean hasLine(){\r\n\t\tif (getLine().equals(\"\"))\r\n\t\t\treturn false;\r\n\t\telse return true;\r\n\t}", "public static String askForLine(InputStreamReader reader,\n PrintStream out, String prompt) {\n String result = \"\";\n while (result != null && result.length() == 0) {\n out.print(prompt);\n out.flush();\n result = getLine(reader);\n }\n return result;\n }", "public String readLine() throws ShellIOException;", "private String readLine(ByteBuf in) {\n\n int bytesToRead;\n byte[] data = null;\n int bytesToSkip;\n\n if ((bytesToRead = in.bytesBefore((byte) LINE_FEED_CHAR)) > -1) {\n // Found the line feed.\n bytesToSkip = 1;\n\n // Check (and ignore) optional carriage return.\n if (bytesToRead > 0 && in.getByte(bytesToRead - 1) == CARRIAGE_RETURN_CHAR) {\n bytesToSkip++;\n bytesToRead--;\n }\n\n // Check that the bytes we're about to read will not exceed the\n // max frame size.\n checkTooLongFrame(bytesToRead);\n\n data = new byte[bytesToRead];\n in.readBytes(data);\n in.skipBytes(bytesToSkip);\n\n // Count the bytes read.\n currentDecodedByteCount += bytesToRead;\n }\n else {\n // No line feed. Make sure we're not buffering more than the max\n // frame size.\n checkTooLongFrame(in.readableBytes());\n }\n\n if (data != null) {\n return new String(data, StompConstants.UTF_8);\n }\n else {\n return null;\n }\n }", "public static String readInput() {\r\n return SCANNER.nextLine();\r\n }", "private void readLine() throws IOException {\n line = reader.readLine(); // null at the end of the source\n currentPos = -1;\n\n if (line != null) {\n lineNum++;\n }\n\n if (line != null) {\n sendMessage(new Message(MessageType.SOURCE_LINE, new Object[]{lineNum, line}));\n }\n }", "public CommandLine getLine() {\n return line;\n }", "public static String readLine()\n {\n \tString ch=scanner.nextLine();\n \treturn ch;\n }", "public String getLine(Integer aLineNumber, Boolean aSkipEmpty) {\n\t\tif (size() > 0) {\n\t\t\tInteger count = aLineNumber < 0 ? (mLines.length + aLineNumber) : aLineNumber;\n\t\t\t\n\t\t\twhile(count >= 0 && count < mLines.length) {\n\t\t\t\tif (!aSkipEmpty || mLines[count].trim().length() > 0) {\n\t\t\t\t\treturn mLines[count].trim();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcount = aLineNumber < 0 ? (count - 1) : (count + 1);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public String getLine();", "public abstract String readLine() throws IOException, InterruptedException;", "int getLine();", "private SensorReading extractReading(String line) {\n\t\tList<Integer> tempArray = new ArrayList<Integer>();\n\t\tString[] sr = line.split(\",\");\n\t\tfor(int i=0; i<sr.length; i++) {\n\t\t\tint num = Integer.MIN_VALUE;\n\t\t\ttry {\n\t\t\t\tnum = Integer.parseInt(sr[i]);\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\t// if num is not integer, skip the current line\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttempArray.add(num);\n\t\t}\t\t\t\n\t\tif(tempArray.size() == sr.length) {\n\t\t\treturn new SensorReading(tempArray, zeroValues);\n\t\t}\n\t\treturn null;\n\t}", "public static String getLine(InputStreamReader reader) {\n StringBuffer b = new StringBuffer();\n int c;\n try {\n while ((c = reader.read()) != -1 && c != '\\n') {\n if (c != '\\r')\n b.append((char)c);\n }\n } catch (IOException ioe) {\n c = -1;\n }\n\n if (c == -1 && b.length() == 0)\n return null;\n else\n return b.toString();\n }", "String getUserInput(String prompt) {\r\n System.out.print(prompt);\r\n try {\r\n return rdr.readLine();\r\n }\r\n catch (IOException ex) {\r\n return null;\r\n }\r\n }", "public String next() {\n try {\n String result = fNextLine;\n if (fNextLine != null) {\n fNextLine = fIn.readLine();\n if (fNextLine == null) {\n fIn.close();\n }\n }\n\n return result;\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", "public String getLine(int lineNumber) {\n if (list.size()>lineNumber)\n return list.get(lineNumber);\n else\n return null; // Requested line number outside range\n }", "public void readLine(String line) {\n\t\tif (request == null) {\n\t\t\tswitch (type) {\n\t\t\tcase JAGGRAB:\n\t\t\t\treadJaggrabPath(line);\n\t\t\t\tbreak;\n\t\t\tcase HTTP:\n\t\t\t\treadHttpPath(line);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\t\t\tif (type == Type.HTTP) {\n\t\t\t\tif (line.length() == 0) {\n\t\t\t\t\tserve();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public String getInputForName() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\treturn bufferedReader.readLine();\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}", "public static String singleString()\n\t{\n\t\treturn(sc.nextLine());\n\t}", "public String readLine() throws IOException, ReadTimeoutException {\n\t\ttry {\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[0] = (byte) inputStream.read();\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[1] = (byte) inputStream.read();\n\t\t\tlineLength = 2;\n\t\t\twhile (lineBuffer[lineLength - 2] != (byte) 13\n\t\t\t\t|| lineBuffer[lineLength - 1] != (byte) 10) {\n\t\t\t\twaitForAvailable();\n\t\t\t\tlineBuffer[lineLength] = (byte) inputStream.read();\n\t\t\t\tlineLength++;\n\t\t\t}\n\t\t\treturn new String(lineBuffer, 0, lineLength - 2);\n\t\t} catch (ArrayIndexOutOfBoundsException aioobe) {\n\t\t\tthrow new IOException(\"Line too long.\");\n\t\t}\n\t}", "private String nextLine() {\n if (console) {\n return con.nextLine();\n }\n return scan.nextLine();\n\n }", "public final int getLine() {\n/* 377 */ return this.bufline[this.bufpos];\n/* */ }", "public String getLine ()\n {\n return line;\n }", "public String getLine(int line) {\n if (line > 14)\n return null;\n if (line < 0)\n return null;\n return getOrCreateTeam(line).getValue();\n }", "private boolean scanLine()\r\n\t{\r\n\t\tboolean isLine=true;\r\n\t\t\r\n\t\t//Implement Filter here.\r\n\t\t\r\n\t\treturn isLine;\r\n\t}", "public static String parseLine(String line) {\n if (line.startsWith(\"//\") || \"\".equals(line.trim())\n || (line.startsWith(\"#\") && !line.startsWith(\"#(\"))) {\n return null;\n } else {\n String arr[] = line.split(\"[:]\");\n if (arr.length == 2) {\n return arr[1];\n } else if (arr.length == 1) {\n return arr[0];\n } else {\n assert false : \"Received line: \" + line;\n return null;\n }\n }\n }", "public static void readEmptyLine(BufferedReader input_file_stream) {\n try {\n input_file_stream.readLine();\n } catch (IOException e) {\n System.out.println(\"Error reading empty line from stream \" + input_file_stream.toString());\n }\n }", "abstract public String readLine() throws TerminalException;", "String getLine (int line);", "private String[] readLine( String line ) throws IOException {\n if ( StringUtils.isBlank( line ) ) {\n return null;\n }\n if ( line.startsWith( \"#\" ) ) {\n return null;\n }\n\n String[] fields = StringUtils.splitPreserveAllTokens( line, '\\t' );\n if ( fields.length < 2 ) {\n throw new IOException( \"Illegal format, expected at least 2 columns, got \" + fields.length );\n }\n return fields;\n\n }", "String getCurrentLine();", "@Override\n\tpublic String read() \n\t{\n\t\tString res = \"\";\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tif (scan.hasNextLine())\n\t\t\tres = scan.nextLine();\n\t\t\n\t\treturn res;\n\t\t\n\n\t}", "protected String firstToken(String unparsedLine) {\r\n\t\tStringTokenizer t = new StringTokenizer(unparsedLine, \" ,\\011\\042\");\r\n\t\tString returnValue = null;\r\n\t\ttry {\r\n\t\t\treturnValue = t.nextToken();\r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t\tSystem.out.println(\"ERROR in IrregularXsectsInpAsciiInput\");\r\n\t\t}\r\n\t\treturn returnValue;\r\n\t}", "public Line getLine(String targetLine);", "private static String readLine(ResettableInputStream in, int maxLength)\n throws IOException {\n\n StringBuilder s = new StringBuilder();\n int c;\n int i = 1;\n while ((c = in.readChar()) != -1) {\n // FIXME: support \\r\\n\n if (c == '\\n') {\n break;\n }\n //System.out.printf(\"seen char val: %c\\n\", (char)c);\n s.append((char)c);\n\n if (i++ > maxLength) {\n System.out.println(\"Output: >\" + s + \"<\");\n throw new RuntimeException(\"Too far!\");\n }\n }\n if (s.length() > 0) {\n s.append('\\n');\n return s.toString();\n } else {\n return null;\n }\n }", "public Line getLine(Line.Info paramInfo) throws LineUnavailableException {\n/* 128 */ Line.Info info = getLineInfo(paramInfo);\n/* */ \n/* 130 */ if (info != null && info instanceof Port.Info) {\n/* 131 */ for (byte b = 0; b < this.portInfos.length; b++) {\n/* 132 */ if (info.equals(this.portInfos[b])) {\n/* 133 */ return getPort(b);\n/* */ }\n/* */ } \n/* */ }\n/* 137 */ throw new IllegalArgumentException(\"Line unsupported: \" + paramInfo);\n/* */ }", "public Line getLine()\n {\n return line;\n }", "public static String readLine(BufferedReader bufferedReader) {\r\n\r\n try {\r\n return bufferedReader.readLine();\r\n } catch (IOException ex) {\r\n Logger.getLogger(FileUtility.class.getName()).log(Level.SEVERE, \"Error in readLine\", ex);\r\n return null;\r\n }\r\n }", "public int getLine();", "public int getLine();", "public int getLine();", "public java.lang.String readLine() {\n /*\n r7 = this;\n r0 = r7.in;\n monitor-enter(r0);\n r1 = r7.buf;\t Catch:{ all -> 0x0097 }\n if (r1 != 0) goto L_0x000f;\n L_0x0007:\n r1 = new java.io.IOException;\t Catch:{ all -> 0x0097 }\n r2 = \"LineReader is closed\";\n r1.<init>(r2);\t Catch:{ all -> 0x0097 }\n throw r1;\t Catch:{ all -> 0x0097 }\n L_0x000f:\n r1 = r7.pos;\t Catch:{ all -> 0x0097 }\n r2 = r7.end;\t Catch:{ all -> 0x0097 }\n if (r1 < r2) goto L_0x0018;\n L_0x0015:\n r7.aOB();\t Catch:{ all -> 0x0097 }\n L_0x0018:\n r1 = r7.pos;\t Catch:{ all -> 0x0097 }\n L_0x001a:\n r2 = r7.end;\t Catch:{ all -> 0x0097 }\n r3 = 10;\n if (r1 == r2) goto L_0x0051;\n L_0x0020:\n r2 = r7.buf;\t Catch:{ all -> 0x0097 }\n r2 = r2[r1];\t Catch:{ all -> 0x0097 }\n if (r2 != r3) goto L_0x004e;\n L_0x0026:\n r2 = r7.pos;\t Catch:{ all -> 0x0097 }\n if (r1 == r2) goto L_0x0035;\n L_0x002a:\n r2 = r7.buf;\t Catch:{ all -> 0x0097 }\n r3 = r1 + -1;\n r2 = r2[r3];\t Catch:{ all -> 0x0097 }\n r4 = 13;\n if (r2 != r4) goto L_0x0035;\n L_0x0034:\n goto L_0x0036;\n L_0x0035:\n r3 = r1;\n L_0x0036:\n r2 = new java.lang.String;\t Catch:{ all -> 0x0097 }\n r4 = r7.buf;\t Catch:{ all -> 0x0097 }\n r5 = r7.pos;\t Catch:{ all -> 0x0097 }\n r6 = r7.pos;\t Catch:{ all -> 0x0097 }\n r3 = r3 - r6;\n r6 = r7.charset;\t Catch:{ all -> 0x0097 }\n r6 = r6.name();\t Catch:{ all -> 0x0097 }\n r2.<init>(r4, r5, r3, r6);\t Catch:{ all -> 0x0097 }\n r1 = r1 + 1;\n r7.pos = r1;\t Catch:{ all -> 0x0097 }\n monitor-exit(r0);\t Catch:{ all -> 0x0097 }\n return r2;\n L_0x004e:\n r1 = r1 + 1;\n goto L_0x001a;\n L_0x0051:\n r1 = new com.a.a.b$1;\t Catch:{ all -> 0x0097 }\n r2 = r7.end;\t Catch:{ all -> 0x0097 }\n r4 = r7.pos;\t Catch:{ all -> 0x0097 }\n r2 = r2 - r4;\n r2 = r2 + 80;\n r1.<init>(r2);\t Catch:{ all -> 0x0097 }\n L_0x005d:\n r2 = r7.buf;\t Catch:{ all -> 0x0097 }\n r4 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r7.end;\t Catch:{ all -> 0x0097 }\n r6 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r5 - r6;\n r1.write(r2, r4, r5);\t Catch:{ all -> 0x0097 }\n r2 = -1;\n r7.end = r2;\t Catch:{ all -> 0x0097 }\n r7.aOB();\t Catch:{ all -> 0x0097 }\n r2 = r7.pos;\t Catch:{ all -> 0x0097 }\n L_0x0071:\n r4 = r7.end;\t Catch:{ all -> 0x0097 }\n if (r2 == r4) goto L_0x005d;\n L_0x0075:\n r4 = r7.buf;\t Catch:{ all -> 0x0097 }\n r4 = r4[r2];\t Catch:{ all -> 0x0097 }\n if (r4 != r3) goto L_0x0094;\n L_0x007b:\n r3 = r7.pos;\t Catch:{ all -> 0x0097 }\n if (r2 == r3) goto L_0x008a;\n L_0x007f:\n r3 = r7.buf;\t Catch:{ all -> 0x0097 }\n r4 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r2 - r5;\n r1.write(r3, r4, r5);\t Catch:{ all -> 0x0097 }\n L_0x008a:\n r2 = r2 + 1;\n r7.pos = r2;\t Catch:{ all -> 0x0097 }\n r1 = r1.toString();\t Catch:{ all -> 0x0097 }\n monitor-exit(r0);\t Catch:{ all -> 0x0097 }\n return r1;\n L_0x0094:\n r2 = r2 + 1;\n goto L_0x0071;\n L_0x0097:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x0097 }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.a.a.b.readLine():java.lang.String\");\n }", "axiom Object readLine(Object BufferedReader(FileReaderr f)) {\n\treturn f.get(0);\n }", "public List<String> nextOneLine() throws IOException {\n counterSeveralLines = linesAfter;\n if (StringUtils.isBlank(currentPath)) return null;\n String sCurrentLine;\n if ((sCurrentLine = bufferReader.readLine()) != null) {\n listBefore = addToArray(sCurrentLine);\n }\n return listBefore;\n }", "private PolylineDataBuffered getLine(PickManager pickManager, ModelDataRetriever<PolylineGeometry> dataRetriever,\n PolylineRenderData renderData, PolylineGeometry geom)\n {\n PolylineDataBuffered line = renderData.getData().get(geom);\n if (line == null)\n {\n line = getBufferedData(geom, dataRetriever, renderData.getProjection(), TimeBudget.ZERO, pickManager,\n myGroupTimeSpan);\n if (line != null)\n {\n renderData.getData().put(geom, line);\n }\n }\n return line;\n }", "public BossBarLine getLine(UUID id) {\n\t\tfor (BossBarLine line : getLines().values()) {\n\t\t\tif (line.getUuid() == id) return line;\n\t\t}\n\t\treturn null;\n\t}", "public String getline() {\n\t\treturn _line;\n\t}", "public abstract boolean read(String line);", "public String readInput() {\n\t\treturn null;\n\t}", "public String readCommand() {\n String input = in.nextLine();\n while (input.trim().isEmpty()) {\n input = in.nextLine();\n }\n return input;\n }", "protected void readAhead() {\n if (! reader.hasNext()) {\n this.nextLine = null;\n } else {\n this.nextLine = reader.next();\n while (this.nextLine != null && this.nextLine.isEmpty() && reader.hasNext())\n this.nextLine = reader.next();\n }\n }", "public static String readKeyBoard() {\n String line = \"\";\n for(;;){\n line = scanner.nextLine();\n if (line.length() < 1) {\n System.out.print(\"Nothing input,please input again:\\n\");\n continue;\n }\n break;\n }\n return line;\n }", "public String nextLine()\n\t{\t\t\n\t\t\n\t\treturn this.getIn().nextLine();\n\t}", "public int nextFreeBufferLine() {\n\t\tlogger.debug(\">> nextFreeBufferLine()\");\n\t\tint line = getRndLine();\n\t\tlogger.debug(\"<< nextFreeBufferLine(): %s\", line);\n\t\treturn line;\n\t}", "public static Integer getLine(String line){\n\t\ttry{\n\t\t\tScanner scanner = new Scanner(new File(ramProgram));\n\t\t\tInteger numberLine = 1;\n\t\t\twhile (scanner.hasNext()){\n\t\t\t\tif (scanner.nextLine().trim().equals(line)){\n\t\t\t\t\tscanner.close();\n\t\t\t\t\treturn numberLine;\n\t\t\t\t}\n\t\t\t\tnumberLine++;\n\t\t\t}\n\t\t\tscanner.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\t\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "static String ReadLn(int maxLength) {\n byte line[] = new byte[maxLength];\n int length = 0;\n int input = -1;\n try {\n while (length < maxLength) { // Read untill maxlength\n input = System.in.read();\n if ((input < 0) || (input == '\\n'))\n break; // or untill end of line ninput\n line[length++] += input;\n }\n\n if ((input < 0) && (length == 0))\n return null; // eof\n return new String(line, 0, length);\n } catch (java.io.IOException e) {\n return null;\n }\n }", "static String readLine(int maxLg) throws IOException {\n\n\t\tbyte lin[] = new byte[maxLg];\n\t\tint lg = 0, car = -1;\n\n\t\twhile (lg < maxLg) {\n\t\t\tcar = System.in.read();\n\t\t\tif ((car < 0) || (car == '\\n')) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlin[lg++] += car;\n\t\t}\n\n\t\tif ((car < 0) && (lg == 0)) {\n\t\t\treturn (null); // eof\n\t\t}\n\n\t\treturn (new String(lin, 0, lg));\n\n\t}", "public static boolean hasNextLine(){\n \tboolean result = scanner.hasNext();\n \treturn result;\n }", "public static int getLine() {\r\n\t\treturn rline;\r\n\t}", "public java.lang.String getLine1() {\r\n return line1;\r\n }", "public String getLine() {\n return this.line;\n }", "protected String skip(BufferedReader br, Predicate p) throws IOException\n {\n while (br.ready())\n {\n String curLine = br.readLine();\n if (curLine == null)\n break;\n curLine = curLine.trim();\n if (p.evaluate(curLine))\n return curLine;\n }\n return null;\n }", "static String ReadLn(int maxLength){\n byte line[] = new byte [maxLength];\n int length = 0;\n int input = -1;\n try{\n while (length < maxLength){//Read untill maxlength\n input = System.in.read();\n if ((input < 0) || (input == '\\n')) break; //or untill end of line ninput\n line [length++] += input;\n }\n\n if ((input < 0) && (length == 0)) return null; // eof\n return new String(line, 0, length);\n }catch (IOException e){\n return null;\n }\n }" ]
[ "0.74294215", "0.7393671", "0.7019271", "0.693072", "0.65789485", "0.63799995", "0.63415045", "0.6336527", "0.6221963", "0.6221958", "0.61662626", "0.61557555", "0.6142932", "0.61328965", "0.61175513", "0.61001176", "0.60305154", "0.60118526", "0.5995352", "0.5986141", "0.59502083", "0.5911177", "0.58909816", "0.58470154", "0.58337057", "0.5799095", "0.57525563", "0.5751961", "0.5721966", "0.5676876", "0.5660514", "0.56597894", "0.5653811", "0.56402665", "0.56224686", "0.56165886", "0.55932844", "0.5554393", "0.55289906", "0.5522527", "0.55172217", "0.54901177", "0.5473235", "0.5469656", "0.5464373", "0.5463076", "0.54466575", "0.54436153", "0.542564", "0.5400746", "0.5399609", "0.53823495", "0.53744143", "0.53742844", "0.5369399", "0.5363082", "0.5361862", "0.53562623", "0.534822", "0.53447825", "0.5344313", "0.53327304", "0.5319686", "0.5293048", "0.52882594", "0.52860475", "0.52572674", "0.5252416", "0.52371687", "0.5234539", "0.52342576", "0.5228719", "0.52248496", "0.52198374", "0.5214284", "0.52138495", "0.52138495", "0.52138495", "0.5212014", "0.5211584", "0.5210751", "0.5209915", "0.52057934", "0.52046484", "0.5197543", "0.51860684", "0.5172241", "0.5166257", "0.51655006", "0.515935", "0.51593363", "0.5156405", "0.5139372", "0.5137141", "0.51347476", "0.5108713", "0.5106952", "0.5106762", "0.5099419", "0.5096865" ]
0.5770097
26
Checks the stream. Returns false if there's a problem. If everything is peachy, returns true.
private synchronized boolean Iteration() { if (inputStream == null) { return false; } int c = -1; try { int avail = inputStream.available(); if (avail > 0) { c = inputStream.read(); } } catch (Exception e) { return false; } if (c < 0) { return true; } if (c == '\n') { lines.offer(buffer); buffer = new String(""); } else { buffer += (char)c; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean valid()\r\n\t{\r\n\t\treturn valid(getInputStream());\r\n\t}", "public boolean hasStreamFailed() {\n return fieldSetFlags()[6];\n }", "private boolean isValid() throws BadInputException {\n try {\n if( ! br.ready() ) \t\t\t\t\t\t//Is the reader ready?\n throw new BadInputException();\t\t//Must be a problem with the file, throw exception\n }\n catch(java.io.IOException e) {\n System.out.println(\"Error validating readability of file: \" + e.toString() );\n }\n\n return true;\n }", "@Override\n\tpublic boolean tryAgainOnEOF()\n\t{\n\t\treturn false;\n\t}", "boolean isValidStreamProcessor(int[] buffer) throws RawDataEventException;", "public abstract boolean canDecodeInput(BufferedInputStream stream) throws IOException;", "private boolean streamClosed() {\n boolean closed = false;\n if (nonNull(dataStream) && Objects.nonNull(streamLinkedOrConsumedField)) {\n try {\n closed = (boolean) streamLinkedOrConsumedField.get(dataStream);\n } catch (Exception e) {\n }\n }\n return closed;\n }", "protected boolean checkFormat() {\n\t\t// Read the card contents and check that all is ok.\n\t byte[] memory = utils.readMemory();\n\t if (memory == null)\n\t return false;\n\t \n\t // Check the application tag.\n\t for (int i = 1; i < 4; i++)\n\t if (memory[4 * 4 + i] != applicationTag[i])\n\t return false;\n\t \n\t // Check zeros. Ignore page 36 and up because of the safe mode.\n\t for (int i = 5 * 4; i < 36 * 4; i++)\n\t if (memory[i] != 0)\n\t return false;\n\t \n\t // Check that the memory pages 4..39 are not locked.\n\t // Lock 0: Check lock status for pages 4-7\n\t if (memory[2 * 4 + 2] != 0) \n\t return false;\n\t // Lock 1: \n\t if (memory[2 * 4 + 3] != 0)\n\t return false;\n\t // Lock 2:\n\t if (memory[40 * 4] != 0)\n\t \t\treturn false;\n\t // Lock 1:\n\t if (memory[40 * 4 + 1] != 0)\n\t \t\treturn false;\n\t \n\t return true;\n\t}", "boolean next() throws IOException;", "public boolean endOfStream()\n {\n return false;\n }", "boolean hasRead();", "@Override\n\tpublic boolean CheckStreamingLike(String mail) {\n\t\treturn false;\n\t}", "public boolean checkVaild() throws IOException;", "boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }", "final boolean processNextFrame() {\n try {\n // This method call results in one or more onRead* methods being called on this thread.\n reader.processNextFrame();\n\n return !readerSawClose;\n } catch (Throwable t) {\n Util.throwIfFatal(t);\n replyToReaderError(t);\n if (t instanceof IOException && !(t instanceof ProtocolException)) {\n readerListener.onClose(WebSocketProtocol.CLOSE_ABNORMAL_TERMINATION, \"\");\n } else {\n readerListener.onFailure(t, null);\n }\n return false;\n }\n }", "private boolean checkScanFinished() {\n\t\treturn trimToEmpty(getCursor().getCursor()).equalsIgnoreCase(\"0\");\n\t}", "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}", "private final boolean hasBufferedInputBytes() {\n return reading && (buffer.hasRemaining() || ungotc != -1);\n }", "boolean hasSendReading();", "public boolean ready() {\n try {\n return in.available() > 0;\n } catch (IOException x) {\n return false;\n }\n }", "@Override\n public boolean hasNext(){\n try{\n return this.notNone();\n } catch(IOException e){\n return false;\n }\n }", "boolean getStream();", "private boolean corrupt() {\r\n\t\tlong receivedChecksum = ByteBuffer.wrap(rcvpkt.getData(),0,8).getLong();\r\n\r\n\t\tCRC32 crc = new CRC32();\r\n\t\tcrc.update(rcvpkt.getData(),8,rcvpkt.getLength()-8);\r\n\t\treturn receivedChecksum != crc.getValue();\r\n\t}", "public boolean isFlowValid()\n\t{\n\t\t// TODO will need to implement this...\n\t\treturn true;\n\t}", "private boolean alreadyStarted() {\n\t\treturn this.buffer.length() > 0;\n\t}", "public void checkFinish()\t{\n\t\tif(readCompareResult() == true)\t{\n\t\t\tfinished = true;\n\t\t}\n\t}", "@Override\n public boolean read() throws Exception {\n if (count >= size) return true;\n if (source == null) source = new ChannelInputSource(channel);\n while (count < size) {\n final int n = location.transferFrom(source, false);\n if (n <= 0) break;\n count += n;\n channelCount = count;\n if (debugEnabled) log.debug(\"read {} bytes for {}\", n, this);\n }\n return count >= size;\n }", "public boolean hasNext() throws IOException{\n\t\t\t//if has processed all bytes read\n\t\t\tif (pos >= count){\n\t\t\t\tcount = in.read(buff);\n\t\t\t\tif (count <= 0) return false;\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\t//assert pos < count\n\n\t\t\t//if the reader points to the start of the next sequence\n\t\t\tif (buff[pos] == 62){// 62 = '>'\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t//if not, looking for the next '>'\n\t\t\twhile (true){\n\t\t\t\tpos ++;\n\t\t\t\tif (pos >= count){\n\t\t\t\t\tcount = in.read(buff);\n\t\t\t\t\tif (count <= 0) return false;\n\t\t\t\t\tpos = 0;\n\t\t\t\t}\n\t\t\t\tif (buff[pos] == 62){// 62 = '>'\n\t\t\t\t\treturn true;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\n\t\t}", "public boolean isOK() {\n\t\treturn adaptee.isOK();\n\t}", "public boolean hasError()\n {\n return errorBuffer.length() != 0;\n }", "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 }", "boolean hasNext(){\n\t\treturn stream.hasNext();\n\t}", "@Test\n public void verifyStreamTest() throws ApiException {\n String chainId = null;\n File stream = null;\n // VerifyContentResponse response = api.verifyStream(chainId, stream);\n\n // TODO: test validations\n }", "public boolean endOfInput() {\n \tif((tmpPosition<totalLength)&&(IsOk)){\n \t//\tSystem.out.println(\"Am returnat ok\");\n \t\treturn false;\n\t\t\t\n \t}\n\t\telse\n\t\t\treturn true;\n \t\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 validateObject(TTransport transport) {\n\t\tif (transport != null && isConnected(transport)) {\n\t\t\t// try {\n\t\t\t// transport.write(bytes);\n\t\t\t// transport.flush();\n\t\t\t// return true;\n\t\t\t// } catch (TTransportException e) {\n\t\t\t// e.printStackTrace();\n\t\t\t// return false;\n\t\t\t// }\n\t\t\tif (pingCallback != null && isPing) {\n\t\t\t\ttry {\n\t\t\t\t\tlog.debug(\"ping checking.\");\n\t\t\t\t\treturn pingCallback.ping(transport);\n\n\t\t\t\t} catch (TTransportException e) {\n\t\t\t\t\tlog.error(\"Transport can't ping!\", e);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "boolean checkAudioRecord() {\n try {\n audioRecord = new AudioRecord(\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[0]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[1]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[2]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[3]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[4]));\n MainActivity.logger(context.getString(R.string.audio_check_4));\n // need to start reading buffer to trigger an exception\n audioRecord.startRecording();\n short buffer[] = new short[audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[4])];\n int audioStatus = audioRecord.read(buffer, 0, audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[4]));\n\n // check for error on pre 6.x and 6.x API\n if(audioStatus == AudioRecord.ERROR_INVALID_OPERATION\n || audioStatus == AudioRecord.STATE_UNINITIALIZED) {\n MainActivity.logger(context.getString(R.string.audio_check_6) + audioStatus);\n // audioStatus == 0(uninitialized) is an error, does not throw exception\n MainActivity.logger(context.getString(R.string.audio_check_5));\n return false;\n }\n }\n catch(Exception e) {\n MainActivity.logger(context.getString(R.string.audio_check_7));\n MainActivity.logger(context.getString(R.string.audio_check_9));\n return false;\n }\n // no errors\n if (audioRecord != null) {\n audioRecord.stop();\n audioRecord.release();\n }\n MainActivity.logger(context.getString(R.string.audio_check_8));\n return true;\n }", "private boolean transmissionFailure(Message[] pumpStates, Message[] pumpControlStates) {\n // Check level readings\n boolean w = false;\n boolean s = false;\n for (int i = 0; i < this.incoming.size(); i++) {\n Message msg = this.incoming.read(i);\n if (msg.getKind().equals(MessageKind.LEVEL_v)) {\n w = true;\n }\n if (msg.getKind().equals(MessageKind.STEAM_v)) {\n s = true;\n }\n }\n\n if (!w || !s) {\n return true;\n }\n\n if (pumpStates.length != this.configuration.getNumberOfPumps()) {\n // Nonsense pump state readings\n return true;\n } else if (pumpControlStates.length != this.configuration.getNumberOfPumps()) {\n // Nonsense pump control state readings\n return true;\n }\n // Done\n return false;\n }", "public boolean isValid() {\n return media.isValid();\n }", "@Override\n public boolean hasValenceError() {\n String valenceCheck = atom.checkBadValence();\n//\n// System.out.println(\"valenceCheckBad \" + valenceCheck);\n// System.out.println(\"calling actual checkValence \" + atom.checkValence());\n// System.out.println(\"valenceCheckBad again \" + atom.checkBadValence());\n return !valenceCheck.isEmpty();\n }", "protected boolean isFinished() {\n return Math.abs(pid.getError()) < 0.25;\n }", "boolean hasErr();", "static boolean m61446c(InputStream inputStream) throws IOException {\n byte[] bArr = new byte[12];\n if (inputStream.read(bArr, 0, 12) != 12 || !\"RIFF\".equals(new String(bArr, 0, 4, \"US-ASCII\")) || !\"WEBP\".equals(new String(bArr, 8, 4, \"US-ASCII\"))) {\n return false;\n }\n return true;\n }", "public boolean dataIsReady()\n {\n boolean[] status = m_receiver.getBufferStatus();\n if (status.length == 0)\n {\n return false;\n }\n for (boolean b : status)\n {\n if (!b)\n return false;\n }\n return true;\n }", "private boolean valid(InputStream instream)\r\n\t\t\tthrows BaseException\r\n\t{\r\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(instream));\r\n\t\tString line = new String();\r\n\t\tboolean newspectrum = false;\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile ((line = in.readLine()) != null)\r\n\t\t\t{\r\n\t\t\t\t// Line with 3 columns (float, float, digit)\r\n\t\t\t\tif ((Pattern.matches(\"^\\\\d+\\\\.\\\\d*[ \\\\t]\\\\d+\\\\.?\\\\d*[ \\\\t]\\\\d\",\r\n\t\t\t\t\tline)))\r\n\t\t\t\t{\r\n\t\t\t\t\tnewspectrum = false;\r\n\t\t\t\t\twhile (!newspectrum)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ((line = in.readLine()) != null)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (line.length() > 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// Line with 2 columns (float, float)\r\n\t\t\t\t\t\t\t\tif (!Pattern.matches(\r\n\t\t\t\t\t\t\t\t\t\"^\\\\d+\\\\.\\\\d*[ \\\\t]\\\\d+\\\\.?\\\\d*\", line))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t// If m/z has 9 or more digits(+1 decimal sign),\r\n\t\t\t\t\t\t\t\t// annotate as\r\n\t\t\t\t\t\t\t\t// double precision\r\n\t\t\t\t\t\t\t\telse if (!mz_double_precision && Pattern\r\n\t\t\t\t\t\t\t\t\t.matches(\"^[\\\\d\\\\.]{10,}[ \\\\t]\\\\d+\\\\.?\\\\d*\",\r\n\t\t\t\t\t\t\t\t\t\tline))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmz_double_precision = true;\r\n\t\t\t\t\t\t\t\t\tlog.info(\"Double precision = true\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tnewspectrum = 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\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tnewspectrum = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if (line.length() > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\tthrow new BaseException(e);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean verifyBuffer(Buffer buffer) {\n if (buffer.isDiscard()) {\n return true;\n }\n Object data = buffer.getData();\n if (buffer.getLength() < 0) {\n System.err.println(\"warning: data length shouldn't be negative: \" + buffer.getLength());\n }\n if (data == null) {\n System.err.println(\"warning: data buffer is null\");\n if (buffer.getLength() != 0) {\n System.err.println(\"buffer advertized length = \" + buffer.getLength() + \" but data buffer is null!\");\n return false;\n }\n } else if (data instanceof byte[]) {\n if (buffer.getLength() > ((byte[]) data).length) {\n System.err.println(\"buffer advertized length = \" + buffer.getLength() + \" but actual length = \" + ((byte[]) data).length);\n return false;\n }\n } else if ((data instanceof int[]) && buffer.getLength() > ((int[]) data).length) {\n System.err.println(\"buffer advertized length = \" + buffer.getLength() + \" but actual length = \" + ((int[]) data).length);\n return false;\n }\n return true;\n }", "protected boolean checkCache()\n\t{\n\t\ttry {\n\t\t\tStream<String> lines = Files.lines(Paths.get(output.getAbsolutePath(), markerFile));\n\t\t\tString content = lines.collect(Collectors.joining());\n\t\t\t//System.out.println(content);\n\t\t\treturn content.equals(successString);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public boolean next() throws IOException;", "protected boolean isCorrupted(Packet packet)\r\n {\r\n \t\tint check = packet.getChecksum();\r\n\t\t//protected int makeCheckSum(int seqNum,int ackNum, String data)\r\n \t\t\r\n\t\tint check2 = makeCheckSum(packet.getSeqnum(),packet.getAcknum(),packet.getPayload());\r\n\t\tif(check!=check2) //Ack = -1 means NAK\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n }", "boolean hasNext() throws IOException;", "public boolean run() throws IOException {\n SapMessage inMsg = null;\n boolean done;\n for(SeqStep step : sequence) {\n\n /* Write all requests - if any */\n if(step.requests != null) {\n for(SapMessage request : step.requests) {\n if(request != null) {\n Log.i(TAG, \"Writing request: \" +\n SapMessage.getMsgTypeName(request.getMsgType()));\n writeSapMessage(request, false); // write the message without flushing\n }\n }\n writeSapMessage(null, true); /* flush the pipe */\n }\n\n /* Handle and validate all responses - if any */\n if(step.hasResponse() == true) {\n done = false;\n boolean foundMatch = false;\n SapMessage responseMatch;\n while(!done) {\n for(SapMessage response : step.responses) {\n if(response != null)\n Log.i(TAG, \"Waiting for the response: \" +\n SapMessage.getMsgTypeName(response.getMsgType()));\n }\n inMsg = readSapMessage();\n if(inMsg != null)\n Log.i(TAG, \"Read message: \" +\n SapMessage.getMsgTypeName(inMsg.getMsgType()));\n else\n assertTrue(\"Failed to read message.\", false);\n\n responseMatch = null;\n for(SapMessage response : step.responses) {\n if(response != null\n && inMsg.getMsgType() == response.getMsgType()\n && compareSapMessages(inMsg, response) == true) {\n foundMatch = true;\n responseMatch = response;\n break;\n }\n }\n\n if(responseMatch != null)\n step.responses.remove(responseMatch);\n\n /* If we are expecting no more responses for this step, continue. */\n if(step.hasResponse() != true) {\n done = true;\n }\n /* Ensure what we received was expected */\n assertTrue(\"wrong message received.\", foundMatch);\n }\n }\n }\n return true;\n }", "boolean hasError();", "boolean hasError();", "boolean hasError();", "public boolean _isStreaming() throws Open4GLException\n {\n return (m_QuarixProgressOOConnectorImpl._isStreaming());\n }", "public boolean test(final ClientContext context) {\n return context.readBytes != -1 && context.readByteBuffer.hasRemaining();\n }", "protected boolean checkBioScarso() {\n return bioService.count() < BIO_NEEDED_MINUMUM_SIZE;\n }", "boolean isUsedForReading();", "private static Boolean errorCheck(String Buffer){\n if(Buffer.matches(\"Y\")) return true;\n if(Buffer.matches(\"N\")) return false;\n screenClear(); //Clears the screen and applies an error message.\n return moreInput(); //Recursive repeat upon error.\n }", "public final boolean accept() {\n boolean result = false;\n\n try {\n result = accept(inputStream);\n }\n catch (IOException e) {\n // translate into a runtime exception.\n throw new IllegalStateException(e);\n }\n\n return result;\n }", "public boolean test(final ClientContext context) {\n return context.readBytes != -1;\n }", "private boolean isGettingData(){\n int available;\n long startTime = System.nanoTime();\n int timeout = 100;\n InputStream inStream = null;\n flushStream();\n try {\n if(socket!=null)\n inStream = socket.getInputStream();\n Thread.sleep(100); //The Arduino keeps sending data for 100ms after it is told to stop\n }catch(IOException | InterruptedException e){}\n try {\n while (true) {\n available = inStream.available();\n if (available > 0) {\n return true;\n }\n Thread.sleep(1);\n long estimatedTime = System.nanoTime() - startTime;\n long estimatedMillis = TimeUnit.MILLISECONDS.convert(estimatedTime,\n TimeUnit.NANOSECONDS);\n if (estimatedMillis > timeout){\n return false; //timeout, no data coming\n }\n }\n }catch(IOException | InterruptedException | NullPointerException e){\n Log.d(\"Exception\", \"Exception\");\n }\n return false;\n }", "boolean hasPossiblyBad();", "public boolean isOk() {\n return this.state == null || this.state.code == 0;\n }", "public boolean isValidRecord () {\n int sumError = latitudeError +\n longitudeError +\n depthError +\n temperatureMinError +\n temperatureMaxError +\n salinityMinError +\n salinityMaxError +\n oxygenMinError +\n oxygenMaxError +\n nitrateMinError +\n nitrateMaxError +\n phosphateMinError +\n phosphateMaxError +\n silicateMinError +\n silicateMaxError +\n chlorophyllMinError +\n chlorophyllMaxError;\n return (sumError == 0 ? true : false);\n }", "public boolean errors() {\n \treturn semantErrors != 0;\n }", "private boolean OK() {\r\n return in == saves[save-1];\r\n }", "private boolean refill() {\n byteBuffer.clear();\n int nRead = loadData();\n byteBuffer.flip();\n if (nRead <= 0) {\n return false;\n }\n return true;\n }", "private final boolean message_ready ()\n {\n \n if (msg_source == null)\n return false;\n \n in_progress = msg_source.pull_msg ();\n if (in_progress == null) {\n return false;\n }\n\n // Get the message size.\n int size = in_progress.size ();\n\n // Account for the 'flags' byte.\n size++;\n\n // For messages less than 255 bytes long, write one byte of message size.\n // For longer messages write 0xff escape character followed by 8-byte\n // message size. In both cases 'flags' field follows.\n \n if (size < 255) {\n tmpbuf[0] = (byte)size;\n tmpbuf[1] = (byte) (in_progress.flags () & Msg.more);\n next_step (tmpbuf, 2, size_ready, false);\n }\n else {\n ByteBuffer b = ByteBuffer.wrap(tmpbuf);\n b.put((byte)0xff);\n b.putLong(size);\n b.put((byte) (in_progress.flags () & Msg.more));\n next_step (tmpbuf, 10, size_ready, false);\n }\n \n return true;\n }", "private boolean matchInputs(InputStream stream1, InputStream stream2) throws Exception {\n try (\n BufferedReader reader1 = new BufferedReader(new InputStreamReader(stream1));\n BufferedReader reader2 = new BufferedReader(new InputStreamReader(stream2))\n ) {\n\n String line;\n while ((line = reader1.readLine()) != null) {\n String otherLine = reader2.readLine();\n if (!(line.equals(otherLine))) {\n return false;\n }\n }\n\n //Check if other reader is empty aswell\n return reader2.readLine() == null;\n }\n }", "protected boolean isConsumingInput() {\r\n return true;\r\n }", "public boolean isReady() throws java.io.IOException {\n\n return br.ready();\n }", "public boolean steamFailure() {\n double steam = this.steamMessage.getDoubleParameter();\n if (steam < 0) {\n return true;\n }\n if (steam > this.configuration.getMaximualSteamRate()) {\n return true;\n }\n return false;\n }", "private boolean check(TokenType type) {\n return !isAtEnd() && peek().type == type;\n }", "public boolean hasError();", "boolean isEOF() \t\t\tthrows IOException;", "@Override\n public boolean isReady() {\n return areValidReadings(mReadings);\n }", "@Override\n\tpublic boolean readBoolean() throws IOException {\n\t\treturn ( (_buff.get() & 0xFF) != 0 );\n\t}", "abstract protected boolean read();", "boolean verify(ChunkDescriptor chunk);", "public boolean isValid() {\n byte reportedChecksum = 0;\n if (packetHeader != null)\n reportedChecksum = packetHeader.getChecksum();\n return ((reportedChecksum == 0) || ((byte)(PacketHeader.MASK_CHECKSUM & getChecksum()) == reportedChecksum));\n }", "private synchronized boolean Iteration() {\n\t if (outputStream == null) {\n\t\treturn false;\n\t }\n\t if (buffer.length() == 0) {\n\t\treturn true;\n\t }\n\t try {\n\t\toutputStream.write(buffer.getBytes());\n\t\toutputStream.flush();\n\t\tbuffer = new String(\"\");\n\t } catch (Exception e) {\n\t\treturn false;\n\t }\n\t return true;\n\t}", "public boolean isValid() {\n\t\treturn !lines.isEmpty();\n\t}", "public Boolean shouldRead() {\n return this.isComplete();\n }", "private boolean pushedStream(int i) {\n if (this.protocol == Protocol.HTTP_2 && i != 0 && (i & 1) == 0) {\n return true;\n }\n return false;\n }", "public boolean checkIsValid() {\n for (Terminal s : sources) {\n if (!s.isValid()) {\n return false;\n }\n }\n for (Terminal t : sinks) {\n if (!t.isValid()) {\n return false;\n }\n }\n\n // check cap constraints on edges\n for (SingleEdge[] row : matrix) {\n for (SingleEdge e : row) {\n if (e != null && !e.isValid()) {\n return false;\n }\n }\n }\n\n // check for conversation of flow at all nodes\n for (int i = 0; i < n; i++) {\n // compute the flow in and out \n double in = 0;\n double out = 0;\n for (int j = 0; j < n; j++) {\n if (matrix[j][i] != null) {\n in += matrix[j][i].getFlow();\n }\n }\n for (int j = 0; j < n; j++) {\n if (matrix[i][j] != null) {\n out += matrix[i][j].getFlow();\n }\n }\n // make sure it aligns \n if (!isSource(i) && !isSink(i)) {\n if (in != out) {\n return false;\n }\n } else if (isSource(i)) {\n if (out - in != getNode(i).getFlow()) {\n return false;\n }\n } else { // is sink\n if (in - out != getNode(i).getFlow()) {\n return false;\n }\n }\n }\n return true;\n }", "public boolean isValid() {\n return header.isValid();\n }", "private boolean responseAvailable() {\n return (responseBody != null) || (responseStream != null);\n }", "@Override\n public boolean isValid() {\n final BlockChainInt outputHash = getOutputHash();\n\n return inputs.stream().map(input -> input.verifySignature(outputHash)).reduce(true, (a, b) -> a && b)\n && outputs.stream().map(output -> output.getAmount() >= 0).reduce(true, (a, b) -> a && b)\n && getTransactionFee() >= 0;\n }", "public boolean isValid() {\n return handle > 0;\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "private boolean isValidProgram() throws IOException\n\t{\n\t\t// Initialize return value to false.\n\t\tboolean isValid = false;\n\t\t\n\t\t// If the current token is program type, confirm if valid program header and body exist.\n\t\tif(theCurrentToken.TokenType == TokenType.PROGRAM)\n\t\t{\n\t\t\t// Set Symbol Type for table. \n\t\t\ttheSymbolTable.CURR_SYMBOL.setType(theCurrentToken.TokenType);\n\t\t\t\n\t\t\t// Update current token before checking if program header.\n\t\t\tupdateToken();\n\t\t\tif(isProgramHeader())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Program Header!\");\n\t\t\t\t// Update current token before checking if program body.\n\t\t\t\tupdateToken();\n\t\t\t\tif(isProgramBody())\n\t\t\t\t{\n\t\t\t\t\t// Update current token before checking if end of program.\n\t\t\t\t\tif(theNextToken != null)\n\t\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.PERIOD)\n\t\t\t\t\t{\n\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\ttheTranslator.WriteCodeToFile();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\n\t\treturn isValid;\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}", "boolean checkWin() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n seq.next();\n in.next();\n if (!seq.hasNext() && !in.hasNext()) {\n return true;\n }\n }\n return false;\n }", "private boolean isPackValid() {\n\t\treturn (logData != null\n\t\t\t\t&& logData.entries != null\n\t\t\t\t&& logData.entries.size() > 1);\n\t}", "protected boolean errors()\n \t{\n\t\treturn !errors.isEmpty();\n \t}", "private boolean checkNoDataAfterEnd(long pos) {\n if (!bytes.inside(pos, 4L))\n return true;\n if (pos <= bytes.writeLimit() - 4) {\n final int value = bytes.bytesStore().readVolatileInt(pos);\n if (value != 0) {\n String text;\n long pos0 = bytes.readPosition();\n try {\n bytes.readPosition(pos);\n text = bytes.toDebugString();\n } finally {\n bytes.readPosition(pos0);\n }\n throw new IllegalStateException(\"Data was written after the end of the message, zero out data before rewinding \" + text);\n }\n }\n return true;\n }", "private void enforceStreamSafety(){\n boolean gettingData = isGettingData(); //Check if we're getting data\n\n if(gettingData) {\n rtButton.setText(getResources().getString(R.string.start_dl_rt));\n sendLogApp(); //Need to send logapp to stop data transfer\n\n streaming_rt = !streaming_rt;\n flushStream(); //Get rid of any real time data still hanging around\n\n try {\n Thread.sleep(200);\n }\n catch(java.lang.InterruptedException e){\n System.out.println(\"Failed to sleep\");\n }\n }\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 }" ]
[ "0.69367486", "0.65966713", "0.65130025", "0.60508883", "0.59925616", "0.59873617", "0.5974446", "0.5948075", "0.5934147", "0.5871778", "0.58473915", "0.58335435", "0.58215564", "0.5820008", "0.5796392", "0.5776872", "0.57484764", "0.57152176", "0.57098395", "0.5690668", "0.56801385", "0.5677763", "0.5674046", "0.56549364", "0.5633864", "0.5632634", "0.56291556", "0.5588675", "0.55792606", "0.55721855", "0.5571016", "0.5568148", "0.5565485", "0.55539966", "0.554378", "0.5541091", "0.55143076", "0.55142504", "0.5494751", "0.5488434", "0.5483451", "0.54705614", "0.5469929", "0.5452689", "0.5451526", "0.54381937", "0.5428025", "0.5427243", "0.5423233", "0.54162925", "0.54147714", "0.5403289", "0.5403289", "0.5403289", "0.53990144", "0.5395684", "0.53868204", "0.5385286", "0.53852797", "0.53753847", "0.5372209", "0.53625655", "0.5355226", "0.5352574", "0.5347072", "0.53467906", "0.53397703", "0.53395563", "0.5334334", "0.53336185", "0.53317446", "0.53291893", "0.5325201", "0.53236437", "0.5321799", "0.53185767", "0.53129274", "0.5312706", "0.53116226", "0.53112394", "0.5308015", "0.5307384", "0.5298792", "0.5295926", "0.5284372", "0.5283886", "0.52791566", "0.52773225", "0.5267047", "0.5262761", "0.5262567", "0.5262567", "0.5262078", "0.5261244", "0.52608323", "0.5258727", "0.52522004", "0.52515876", "0.5249999", "0.52491975" ]
0.5505867
38
Kills this thread. Stops monitoring the InputStream.
public synchronized void Kill() { dieDieDie = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n isRunning = false;\n\n mReadLogsHandler = null;\n if (mReadLogThread != null) {\n final Thread inherited = mReadLogThread;\n mReadLogThread = null;\n inherited.interrupt();\n }\n\n IOUtilities.closeStream(reader);\n }", "public void stopThread(){\r\n\t\tthis.p.destroy();\r\n\t\ttry {\r\n\t\t\tinput.close();\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\tthis.stop();\r\n\t}", "public void terminate () {\n\t\t\t\n\t\t\tsynchronized (runningLock) {\n\t\t\t\tif (running == false)\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tinputStream.close ();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"ModemWorker.teminate(): IOException on close().\");\n\t\t\t}\n\t\t}", "void stop() throws IOException;", "public void stop() {\n thread.interrupt();\n }", "public void stop() {\n thread = null;\n }", "public void stop() {}", "public void stop() {\n thread.interrupt();\n }", "public void stop() {\n closed.set(true);\n consumer.wakeup();\n }", "public void stop() {\n if (started && thread != null) {\n stopRequested = true;\n thread.interrupt();\n if (audio != null) {\n audio.stop();\n }\n }\n }", "public void stop()\n\t{\n\t\trunning = false;\n\t}", "public void stopThread() {\n\t\talive = false;\n\t\t\n\t\ttry {\n\t\t\tif(oos != null) {\n\t\t\t\toos.close();\n\t\t\t}\n\t\t\tif(ois != null) {\n\t\t\t\tois.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// Why the hell is that being thrown here? Doesn't matter.\n\t\t}\n\t}", "public void stop() {\n\t\tthis.flag = false;\n\t\t\n\t\t\n\t}", "public synchronized void stop() {\n this.running = false;\n }", "public synchronized void stop()\n {\n if (open) {\n //stop = true;\n notifyAll();\n started = false;\n line.stop();\n timeTracker.pause();\n }\n }", "public static void stop() {\n enableIncomingMessages(false);\n }", "public void stop() {\n _running = false;\n }", "public synchronized void stop() {\n try {\n if (isRunning) {\n isRunning = false;\n thread.join();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.exit(0);\n }", "public void stop() {\n if (stream != null) {\n try {\n stream.close();\n } catch (IOException e) {\n logger.error(\"Closing response stream failed\", e);\n }\n }\n\n executorService.shutdownNow();\n executorService = null;\n }", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void Stop() {\r\n\t\t\r\n\t\tthread = null;\r\n\t}", "public void stop() {\n synchronized (lock) {\n isRunning = false;\n if (rawAudioFileOutputStream != null) {\n try {\n rawAudioFileOutputStream.close();\n } catch (IOException e) {\n Log.e(TAG, \"Failed to close file with saved input audio: \" + e);\n }\n rawAudioFileOutputStream = null;\n }\n fileSizeInBytes = 0;\n }\n }", "private void stop() {\r\n\t\t\tstopped = true;\r\n\t\t}", "public void stop() {\n\t\tthis.close(this.btcomm);\n\t}", "public boolean stop();", "public void stop() {\n stop = true;\n //index--;\n line.flush();\n line.close();\n try {\n decodedInput.close();\n } catch (IOException ex) {\n Logger.getLogger(MP3Player.class.getName()).log(Level.SEVERE, null, ex);\n }\n Runtime.getRuntime().gc();\n }", "public void\n stop() throws IOException;", "public void stop() {\n if (this.thread != null) {\n Thread thre = this.thread;\n this.thread = null;\n thre.interrupt();\n }\n }", "public void stop() {\r\n running = false;\r\n }", "public void stop() {\n synchronized (mLock) {\n //if (!mRunning)\n //{\n // throw new IllegalStateException(\"CameraStreamer is already stopped\");\n //} // if\n \t\n \tLog.d(TAG, \"Stop\");\n \t\n mRunning = false;\n if (mMJpegHttpStreamer != null) {\n mMJpegHttpStreamer.stop();\n mMJpegHttpStreamer = null;\n } // if\n \n if (mCamera != null) {\n mCamera.release();\n mCamera = null;\n } // if\n } // synchronized\n mLooper.quit();\n }", "public void stop()\n throws IOException\n {\n }", "public void stop() {\n running = false;\n }", "public void stop() throws IOException {\n synchronized (lock) {\n this.torrents.stop();\n this.metrics = null;\n }\n }", "@Override\n public void stop() {}", "@Override public void stop() {\n }", "public void stop() {\n stopped.set(true);\n if (this.currentThread != null) {\n this.currentThread.interrupt();\n this.currentThread = null;\n }\n }", "public void stop()\n {\n running = false;\n }", "public void stop() {\n\t\texec.stop();\n\t}", "public void stop() {\n executor.shutdownNow();\n rescanThread.interrupt();\n }", "@Override\n public void stop() {\n }", "public void stop() {\n }", "public void stop() {\n }", "public void stop() {\n stop = true;\n }", "public synchronized void stop() {\n try {\n thread.join();\n running = false;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void stop() {\r\n _keepGoing = false;\r\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 stop()\n {\n if ( this.threadRunning.get() )\n {\n this.threadRunning.set(false);\n }\n }", "@Override\n\tpublic void stop() {\n\t\tsuper.stop();\n\t}", "@Override\n\tpublic void stop() {\n\t\tsuper.stop();\n\t}", "public void cancel() {\n stopThread = true;\n\t\ttry {\n\t\t\tmmSocket.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n public void stop() {\r\n }", "@Override\r\n public void stop() {\r\n }", "@Override\n\tpublic void stop()\n\t\t{\n\t\t}", "public void stop() {\n System.setErr(saveErr);\n System.setOut(saveOut);\n running = false;\n try {\n flushThread.join();\n } catch (InterruptedException e) {\n }\n }", "public void stop() {\n\t\tthis.stopTime = System.nanoTime();\n\t\tthis.running = false;\n\t}", "public void stop() {\n\t}", "public void stopPlayThread() {\n ms.stop();\n }", "public void stop() {\n\t\t\n\t}", "public void stopThread() \n {\n \tthis.exit = true;\n \t//ctr.getMemory().programmcounter = 65536;\n }", "@Override\n public void run() {\n stop();\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "private void stop() {\n\t\tif (null == this.sourceRunner || null == this.channel) {\n\t\t\treturn;\n\t\t}\n\t\tthis.sourceRunner.stop();\n\t\tthis.channel.stop();\n\t\tthis.sinkCounter.stop();\n\t}", "public void kill()\n\t{\n\t\tisKilled = true;\n\t}", "public void stop(){\n\t\t\n\t}", "@Override\r\n public void stop() throws IOException {\n\r\n }", "@Override\r\n public void stop() {\r\n\r\n }", "public void stop() {\n m_enabled = false;\n }", "public synchronized void stop() {\n isRunning = false;\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public synchronized void stop() {\n stopping = true;\n }", "public void stop() {\n\t\t//start the processor thread\n\t\t//logger.debug(processorName+\" stopping processor thread\");\n\t\tprocessorThread.interrupt();\n\t\t\n\t\t//logger.debug(processorName+\" stopped\");\n\t}", "public void stop() {\n\t\tthis.stopper = true;\n\t}", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();", "void stop();" ]
[ "0.7079698", "0.7048134", "0.6402774", "0.6393268", "0.6389885", "0.637098", "0.63661885", "0.6355841", "0.63456917", "0.63450223", "0.6323649", "0.6323301", "0.6294437", "0.62837666", "0.6282683", "0.6268405", "0.6262245", "0.62620133", "0.6256497", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.62480974", "0.6238213", "0.6222194", "0.6218985", "0.6217095", "0.61903", "0.6178647", "0.6176657", "0.6167653", "0.6160518", "0.6154958", "0.61487496", "0.6139563", "0.613402", "0.6133836", "0.61322373", "0.61208045", "0.61199343", "0.6113498", "0.61050683", "0.60963935", "0.60903114", "0.60903114", "0.60895437", "0.60697573", "0.6066831", "0.6040764", "0.6035975", "0.60354704", "0.60354704", "0.60332364", "0.6029648", "0.6029648", "0.6018971", "0.60108215", "0.6003448", "0.59963536", "0.5987201", "0.59782225", "0.59732383", "0.5971883", "0.5963122", "0.5963122", "0.5963122", "0.5963122", "0.5963122", "0.5963122", "0.5963122", "0.5963122", "0.5963122", "0.5963122", "0.5963122", "0.5960347", "0.5951473", "0.5934421", "0.5930735", "0.5930591", "0.5930421", "0.5928922", "0.5927353", "0.5924952", "0.5922212", "0.5921409", "0.5921409", "0.5921409", "0.5921409", "0.5921409", "0.5921409" ]
0.0
-1
Adds to the queue of characters that are being sent to the sandboxed process' stdin channel.
public synchronized void AddCharacters(String s) { buffer += s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void accept(){\n\t\ttry{\n\t\t\tBufferedReader fromConsole = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString message;\n\t\t\twhile (true){\n\t\t\t\tmessage = fromConsole.readLine();\n\t\t\t\tthis.handleMessage(message);\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exception){\n\t\t\tSystem.out.println\n\t\t\t(\"Unexpected error while reading from console!\");\n\t\t}\n\t}", "private void acceptCommands() {\n\t\tScanner input = new Scanner(System.in);\n\t\tInteractiveCommandParser commandParser = new InteractiveCommandParser(\n\t\t\t\tinput, this);\n\t\tcommandParser.readCommands(); // blocking command reader\n\t}", "public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n input = br.readLine();\n while (input != null) {\n CM.processCommand(input, pw, true);\n input = br.readLine();\n }\n } catch (IOException ioe) {\n pw.println(\"ERROR: Problem with reading user input.\");\n } finally {\n try {\n br.close();\n } catch (IOException ioe) {\n pw.println(\"ERROR: Buffer DNE\");\n }\n }\n }", "public static void inputFlush() {\n int dummy;\n int bAvail;\n\n try {\n while ((System.in.available()) != 0)\n dummy = System.in.read();\n } catch (java.io.IOException e) {\n System.out.println(\"Input error\");\n }\n }", "public void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "protected void sendStartStdInSignal() {\n\t\tDownstreamMessageEvent dme = new DownstreamMessageEvent(channel, Channels.future(channel), STREAM_IN_READY, channel.getRemoteAddress());\n\t\t//channel.getPipeline().sendDownstream(dme);\n\t\tSystem.out.println(\"Sending STDIN READY\");\n\t\tchannel.write(STREAM_IN_READY).awaitUninterruptibly();\n\t\tSystem.out.println(\"Sent STDIN READY\");\n\t}", "void onInput(Terminal terminal, int numChars, String current);", "public synchronized void readInput() throws InterruptedException, IOException \n\t{\n\t\twhile (getDataSourceEOFlag())\n\t\t{\n\t\t\tcontent.set(incomingPipe.take());\n\t\t\t\n\t\t\t// Ensure thread-timing uniformity (a speed-limiter)\n\t\t\t//Thread.sleep(100);\n\t\t\t\n\t\t\tprocess();\n\t\t\t// Discard the text to free up memory.\n\t\t\tcontent.set(null);\n\t\t}\n\t}", "public void accept() {\n try {\n BufferedReader fromConsole = new BufferedReader(new InputStreamReader(System.in));\n String message;\n\n // loops infinitely, until #quit command is called, which sets run = false, and\n // stops the loop\n while (run) {\n message = fromConsole.readLine();\n if (message != null) {\n if (message.charAt(0) == '#') {\n command(message.substring(1));\n } else {\n client.handleMessageFromClientUI(message);\n }\n } else {\n client.handleMessageFromClientUI(message);\n }\n }\n }\n\n // Exceptions where the reader encounters an error\n catch (Exception ex) {\n System.out.println(\"Unexpected error while reading from console!\");\n System.out.println(ex.getMessage());\n }\n }", "OutputStream getStdin();", "synchronized String keyboardReadLine()\n\t{\n\t\t// enable a request then block on the queue\n\t\tm_keyboardReadRequest = true;\n\t\ttry { wait(); } catch(InterruptedException ie) {}\n\n\t\t// pull from the front of the queue\n\t\treturn m_keyboardInput.remove(0);\n\t}", "private void consoleRun() {\n try {\n var scan = new Scanner(System.in);\n while (scan.hasNextLine()) {\n var msg = scan.nextLine();\n sendCommand(msg);\n }\n } catch (InterruptedException e) {\n logger.info(\"Console thread has been interrupted\");\n } finally {\n logger.info(\"Console thread stopping\");\n }\n }", "public void run()\n\t {\n\t stdin = new Scanner(System.in);\n\t boolean done = false;\n\t while ( !done )\n\t {\n\t String command = stdin.next();\n\t char ccommand=command.charAt(0);\n\t switch (ccommand) \n\t { \n\t case 'I': add('I');\n\t\t\t break; \n\t case 'O': add('O');\n\t break;\n\t case 'N': add('N');\n\t break;\n\t case 'R': remove();\n\t break;\n\t case 'P': print();\n\t break;\n\t case 'Q': \n\t System.out.println(\"Program terminated\");\n\t done = true;\n\t break;\n\t default: //deal with bad command here \n\t System.out.println(\"Command\"+\"'\"+command+\"'\"+\"not supported!\");\t\t\n\t } \n\t }\n\t }", "public static void _FlushPendingInputItems(TextEditor This)\r\n { \r\n TextEditorThreadLocalStore threadLocalStore; \r\n\r\n if (This.TextView != null) \r\n {\r\n This.TextView.ThrottleBackgroundTasksForUserInput();\r\n }\r\n\r\n threadLocalStore = TextEditor._ThreadLocalStore;\r\n\r\n if (threadLocalStore.PendingInputItems != null) \r\n {\r\n try \r\n {\r\n for (int i = 0; i < threadLocalStore.PendingInputItems.Count; i++)\r\n {\r\n ((InputItem)threadLocalStore.PendingInputItems[i]).Do(); \r\n\r\n // After the first dequeue, clear the bit that tracks if \r\n // any events are handled after ctl+shift (change flow direction keyboard hotkey). \r\n threadLocalStore.PureControlShift = false;\r\n } \r\n }\r\n finally\r\n {\r\n threadLocalStore.PendingInputItems.Clear(); \r\n }\r\n } \r\n\r\n // Clear the bit that tracks if any events are handled after\r\n // ctl+shift (change flow direction keyboard hotkey) one last \r\n // time, in case the queue was empty.\r\n //\r\n // Because we only call this method in preparation for handling\r\n // a Command, we want this bit cleared. \r\n threadLocalStore.PureControlShift = false;\r\n }", "@Override\n public void flush() throws IOException\n {\n for(;;) {\n int index = indexOneOf(builder, '\\r', '\\n');\n if(index == -1) {\n break;\n }\n // ignore false returned by offer when queue is full\n queue.offer(builder.substring(0, index));\n\n if(builder.charAt(index) == '\\r') {\n ++index;\n }\n if(builder.charAt(index) != '\\n') {\n throw new IllegalStateException();\n }\n ++index;\n builder.delete(0, index);\n }\n }", "synchronized void processCommandQueue() throws IOException {\n\t\tuserMgr.readUserListIfNeeded();\n\t\tuserMgr.clearExpiredPasswords();\n\t\tCommandProcessor.processCommands(this);\n\t}", "public void submitInput(String buffer, int selectionStart, int selectionEnd, ConsoleEditor editor) {\n buffer = buffer.trim();\n if (!buffer.isEmpty()) {\n inputHistory.add(buffer);\n editor.inputHistoryPos = 0;\n logger.info(\"]{}\", buffer);\n executeCmd(buffer, false);\n editor.lastMatch = null;\n }\n editor.setText(\"\");\n }", "@Override\r\n\t\tpublic void run() {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tString buffer;\r\n\t\t\t\t\r\n\t\t\t\twhile(!exit){\r\n\t\t\t\t\tbuffer = in.readLine();\r\n\t\t\t\t\tsetChanged();\r\n\t\t\t\t\tnotifyObservers(buffer);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "@Override\n public void queueSecureInputBuffer(\n int index, int offset, CryptoInfo info, long presentationTimeUs, int flags) {\n bufferEnqueuer.queueSecureInputBuffer(index, offset, info, presentationTimeUs, flags);\n }", "private static void driver() {\n Scanner scnr = new Scanner(System.in);\n String promptCommandLine = \"\\nENTER COMMAND: \";\n\n System.out.print(MENU);\n System.out.print(promptCommandLine);\n String line = scnr.nextLine().trim();\n char c = line.charAt(0);\n\n while (Character.toUpperCase(c) != 'Q') {\n processUserCommandLine(line);\n System.out.println(promptCommandLine);\n line = scnr.nextLine().trim();\n c = line.charAt(0);\n }\n scnr.close();\n }", "private void interactive() {\r\n\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.print(\"Enter Command: \");\r\n\t\t\ttry {\r\n\t\t\t\tprocessCommandSet(tokenizeInput(keyboard.readLine()));\r\n\t\t\t\tif (quit == true) {\r\n\t\t\t\t\tSystem.out.println(\"Terminated at users request.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"An IO Error Occured. \" + e.getMessage());\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "@Override\n\tpublic void run(){\n while (!stop) {\n \ttry {\n \t\tthis.nrOfChars=br.read(cbuf);\n \t} catch (IOException e1) {\n \t\te1.printStackTrace();\n \t}\n \t/**/\n\t\t\t//input=br.readLine();\n\t\t\tfor (int i=0; i<this.nrOfChars; i++){\n\t\t\t\tSystem.out.print(cbuf[i]);\n\t\t\t}\n\t\t\t\n\t\t\tif(cbuf[0]=='1'||(cbuf[nrOfChars-9]=='Y' && cbuf[nrOfChars-8]=='O' && cbuf[nrOfChars-7]=='U')){\t\t\t\t\n\t\t\t\tstop=true;\n\t\t\t\tsynchronized(this){\n\t\t\t\t\tthis.notifyAll();\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"\\nEnter Letter\");\n\t\t\t\tsynchronized(this){\n\t\t\t\t\tthis.notifyAll();\t\n\t\t\t\t}\n\t\t\t}\n }\n\t}", "public static void main(String[] args) {\n//\t\tStringBuffer stringBuffer=new StringBuffer(\"aaaa\");\n//\t\t\n//\t\tSystem.out.println(stringBuffer);\n//\t\t\n\t\tScanner scanner=new Scanner(System.in);\n\t\t\n\t\tStringBuffer stringBuffer2=new StringBuffer();\n\t\tfor(int i=0;i<10;i++){\n\t\tString input =scanner.nextLine();\n\t\tstringBuffer2.append(input);\n\t\t}\n\t\tSystem.out.println(stringBuffer2);\n\t\t\n\t}", "private void unread(char c) {\n unreadBuffer = c;\n }", "private static void ScheduleInput(TextEditor This, InputItem item)\r\n { \r\n if (!This.AcceptsRichContent || IsMouseInputPending(This)) \r\n {\r\n // We have to do the work now, or we'll get out of synch. \r\n TextEditorTyping._FlushPendingInputItems(This);\r\n item.Do();\r\n }\r\n else \r\n {\r\n TextEditorThreadLocalStore threadLocalStore; \r\n\r\n threadLocalStore = TextEditor._ThreadLocalStore;\r\n\r\n if (threadLocalStore.PendingInputItems == null)\r\n {\r\n threadLocalStore.PendingInputItems = new ArrayList(1);\r\n Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, new DispatcherOperationCallback(BackgroundInputCallback), This); \r\n }\r\n\r\n threadLocalStore.PendingInputItems.Add(item); \r\n }\r\n }", "public void start(){\n\t\tdo{\n\t\t\tMessage<T> msg= input.read();\n\t\t\tif (!msg.getQuit() && !msg.getFail() ){\n\t\t\t\tconsume(msg.getContent());\n\t\t\t}\n\t\t\tif (msg.getQuit()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(true);\n\t\t\n\t}", "private void mainLoop()\n {\n try\n {\n while (true)\n {\n System.out.print( \"\\r\\nJicos> \" );\n System.out.flush();\n\n byte[] input = new byte[1024];\n int read = -1;\n if (-1 == (read = System.in.read( input )))\n {\n break;\n }\n\n try\n {\n performCommand( new String( input, 0, read ) );\n }\n catch (Exception exception)\n {\n System.err.println( exception.getMessage() );\n }\n }\n }\n catch (Exception exception)\n {\n }\n }", "public void run() {\n try {\n byte b[] = new byte[100];\n for (;;) {\n int n = in.read(b);\n String str;\n if (n < 0) {\n break;\n }\n str = new String(b, 0, n);\n buffer.append(str);\n System.out.print(str);\n }\n } catch (IOException ioe) { /* skip */ }\n }", "@Override\n public void queueInputBuffer(\n int index, int offset, int size, long presentationTimeUs, int flags) {\n bufferEnqueuer.queueInputBuffer(index, offset, size, presentationTimeUs, flags);\n }", "private void watch() {\n ByteBuffer buffer = ByteBuffer.allocate(BUFFER_SIZE);\n while (true) {\n try {\n int numSelected = selector.select();\n if (numSelected == 0) {\n continue;\n }\n Set<SelectionKey> selectedKeys = selector.selectedKeys();\n Iterator<SelectionKey> iterator = selectedKeys.iterator();\n while (iterator.hasNext()) {\n SelectionKey key = iterator.next();\n iterator.remove();\n SocketChannel channel = ((SocketChannel) key.channel());\n int numReadBytes = channel.read(buffer);\n boolean noMessage = numReadBytes == 0;\n if (noMessage) {\n continue;\n }\n\n String message = new String(buffer.array(), StandardCharsets.UTF_8).replace(\"\\u0000\", \"\");\n System.out.print(message);\n Arrays.fill(buffer.array(), (byte) 0);\n buffer.clear();\n }\n } catch (IOException e) {\n e.printStackTrace();\n return;\n }\n }\n }", "public void sendInput(String input) throws IOException {\n\t\tmShell.sendCommand(\"INPUT:\" + mStag + \":\" + input + \":\");\n\t}", "@SuppressWarnings(\"restriction\")\r\n\tpublic void addSessionConsoleInputListener() {\r\n\t\tfConsoleSession.getDocument().addDocumentListener(new IDocumentListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void documentAboutToBeChanged(DocumentEvent event) {\r\n\t\t\t\t// check if present a new line symbol\r\n\t\t\t\tif (event.fText.indexOf('\\r') != -1 || event.fText.indexOf('\\n') != -1) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tITypedRegion partition = event.fDocument.getPartition(event.fOffset);\r\n\t\t\t\t\t\tif (partition instanceof IOConsolePartition) {\r\n\t\t\t\t\t\t\tIOConsolePartition p = (IOConsolePartition) partition;\r\n\t\t\t\t\t\t\t// check if that is user input\r\n\t\t\t\t\t\t\tif (p.getType().equals(IOConsolePartition.INPUT_PARTITION_TYPE)) {\r\n\t\t\t\t\t\t\t\tif (event.fText.length() <= 2) {\r\n\t\t\t\t\t\t\t\t\tfinal String inputFound = p.getString();\r\n\t\t\t\t\t\t\t\t\tif (inputFound.length() > 0)\r\n\t\t\t\t\t\t\t\t\t\tfConsoleInterpreter.postSessionPrompt(inputFound);\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} catch (BadLocationException e) {\r\n\t\t\t\t\t\tLog.log(IStatus.ERROR, \"Error in RIDE console Listener.\", e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void documentChanged(DocumentEvent event) {\r\n\t\t\t\t// check if new line symbols present\r\n\t\t\t\tif (event.fText.indexOf('\\r') != -1 || event.fText.indexOf('\\n') != -1) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tITypedRegion partition;\r\n\t\t\t\t\t\tpartition = event.fDocument.getPartition(event.fOffset);\r\n\t\t\t\t\t\tif (partition instanceof IOConsolePartition) {\r\n\t\t\t\t\t\t\tIOConsolePartition p = (IOConsolePartition) partition;\r\n\t\t\t\t\t\t\tif (p.getType().equals(IOConsolePartition.INPUT_PARTITION_TYPE)) {\r\n\t\t\t\t\t\t\t\tif (event.fText.length() > 2) {\r\n\t\t\t\t\t\t\t\t\t// user pasted something\r\n//\t\t\t\t\t\t\t\t\tfTarget.postSessionPrompt(event.fText);\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} catch (BadLocationException e) {\r\n\t\t\t\t\t\tLog.log(IStatus.ERROR, \"Can't listen what paste to RIDE console\", e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in, \"utf-8\");\n CircularLinkedList<String> q = new CircularLinkedList<String>();\n while (sc.hasNext()) {\n q.append(sc.next());\n System.out.println(\"Elements in queue:\\t\\t\\t\" + q);\n System.out.println(\"Number of elements in queue:\\t\\t\" + q.size());\n }\n while (! q.isEmpty()) {\n System.out.println(\"Returned element from queue:\\t\\t\" + q.getFirst());\n System.out.println(\"Elements in queue:\\t\\t\\t\" + q);\n System.out.println(\"Number of elements in queue:\\t\\t\" + q.size());\n }\n\n sc = new Scanner(System.in, \"utf-8\");\n while (sc.hasNext()) {\n q.prepend(sc.next());\n System.out.println(\"Elements in queue:\\t\\t\\t\" + q);\n System.out.println(\"Number of elements in queue:\\t\\t\" + q.size());\n }\n while (! q.isEmpty()) {\n System.out.println(\"Returned element from queue:\\t\\t\" + q.getLast());\n System.out.println(\"Elements in queue:\\t\\t\\t\" + q);\n System.out.println(\"Number of elements in queue:\\t\\t\" + q.size());\n }\n }", "protected final String _readTTYLine() {\n\n StringBuffer buf = new StringBuffer(80);\n int c = 0;\n try {\n while ((c = System.in.read()) != -1) {\n char ch = (char) c;\n if (ch == '\\r') {\n ch = (char) System.in.read();\n if (ch == '\\n') {\n break;\n } else {\n continue;\n }\n } else if (ch == '\\n') {\n break; // Unix flavors.\n }\n buf.append(ch);\n }\n } catch (IOException e) {\n this._logger.error(ERROR_TAG + e.getMessage());\n }\n return buf.toString();\n }", "private void processInputData() throws IOException {\n\t\tout.write(Protocol.PC_READY.value);\n\t\tout.flush();\n\t\tInputBuffer buffer = InputBuffer.readFrom(in);\n\t\tdispatcher.dispatch(buffer.entries);\n\t}", "private void mixLoop() {\n\t\tSystem.out.println(\"Enter your secret message: \");\n\t\tthis.setInitialMessage(scanner.nextLine());\n\t\twhile (running) {\n\t\t\tSystem.out.println();\n\t\t\tfor (int i = 0; i < linkedList.size(); i++) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor (int i = 0; i < linkedList.size(); i++) {\n\t\t\t\tString blankSpace = \" \";\n\t\t\t\tint tempI = i;\n\t\t\t\twhile (tempI / 10 != 0) {\n\t\t\t\t\tblankSpace += \" \";\n\t\t\t\t\ttempI /= 10;\n\t\t\t\t}\n\t\t\t\tSystem.out.print(curMessage.charAt(i) + blankSpace);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Commands:\\n\"\n\t\t\t\t\t+ \"Q quit\\n\"\n\t\t\t\t\t+ \"a c # insert char 'c' after position #\\n\"\n\t\t\t\t\t+ \"r c removes all character 'c's\\n\"\n\t\t\t\t\t+ \"c # % & cut to clipboard &, from # to %\" +\n\t\t\t\t\t\"(inclusive)\\n\"\n\t\t\t\t\t+ \"p # & paste from clipboard &, starting after #\\n\"\n\t\t\t\t\t+ \"s filename saves unmix key to a text file named \"\n\t\t\t\t\t+ \"'filename'\\n\");\n\t\t\tthis.processCommand(scanner.nextLine());\n\t\t}\n\t\tSystem.out.println(\n\t\t\t\t\"Your encrypted message is:\\n\" + curMessage);\n\t}", "public void launch() throws IOException {\n initBinding();\n var request = this.password == null ? new AnonymousConnection(login)\n : new AuthentificatedConnection(login, password);\n\n this.uniqueContext.putInQueue(request.toBuffer());\n console.setDaemon(true);\n console.start();// run stdin thread\n\n var lastCheck = System.currentTimeMillis();\n while (!Thread.interrupted()) {\n // printKeys();\n try {\n if (uniqueContext.isClosed()) {\n console.interrupt();\n selector.close();\n serverSocketChannel.close();\n sc.close();\n return;\n }\n selector.select(this::treatKey);\n processCommands();\n var currentTime = System.currentTimeMillis();\n if (currentTime >= lastCheck + TIMEOUT) {\n lastCheck = currentTime;\n clearInvalidSelectionKey();\n }\n } catch (UncheckedIOException tunneled) {\n throw tunneled.getCause();\n }\n }\n }", "@Override\n public void run ()\n {\n // Retrieve the iterator object of the linesInput\n Iterator <Line> linesIterator = linesInput.iterator () ;\n \n // Iterator through the iterator until all entries have been accounted for\n while ( linesIterator.hasNext () ) \n { \n // Grab the next entry in the iterator\n Line lineChange = linesIterator.next() ;\n \n /*\n * Make sure that the users know was is going on by printing that the producer is \n * doing something.\n */\n System.out.println ( \"Line Producer is Producing: \" + lineChange.content ) ;\n \n // Store the line into the messagingQueue\n Program.messagingQueue.putMessage ( lineChange ) ;\n \n // Once the iterator had finished with the entry remove it as it is no longer needed.\n linesIterator.remove () ;\n }\n \n // Add end of file message to the queue showing that we have finished producing the messages.\n Line endOfFileMessage = new Line ( \"END-OF-FILE\", -1 ) ;\n Program.messagingQueue.putMessage ( endOfFileMessage ) ;\n }", "private void consumeNextKeyTyped(KeyEvent paramKeyEvent)\n/* */ {\n/* 1082 */ this.consumeNextKeyTyped = true;\n/* */ }", "@SuppressWarnings(\"restriction\")\r\n\tpublic void addProcessConsoleInputListener() {\r\n\t\tboolean debug = true;\r\n\t\tif (debug) return;\r\n\t\tIConsole console = DebugUITools.getConsole(fConsoleInterpreter.getProcess());\r\n\t\tif (console instanceof ProcessConsole) {\r\n\t\t\tfinal ProcessConsole c = (ProcessConsole) console;\r\n\t fProcConsoleStdOut = c.getStream(IDebugUIConstants.ID_STANDARD_OUTPUT_STREAM);\r\n\t fProcConsoleErrOut = c.getStream(IDebugUIConstants.ID_STANDARD_ERROR_STREAM);\r\n\t\t try {\r\n\t\t\t\tfConsoleProcWriter = new PrintWriter(new OutputStreamWriter(fProcConsoleStdOut,\"UTF8\"));\r\n//\t\t\t\tfConsoleProcReader = new BufferedReader(new InputStreamReader(fProcConsoleIn,\"UTF8\"));\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\tLog.log(IStatus.ERROR, \"RIDE console unsupported encoding\", e);\r\n\t\t\t}\r\n\r\n//\t\t\tfinal List<IConsoleInputListener> participants = ExtensionHelper\r\n//\t\t\t\t\t.getParticipants(ExtensionHelper.APLDEV_DEBUG_CONSOLE_INPUT_LISTENER);\r\n//\t\t\tfinal APLDebugTarget target = this;\r\n\t\t\tc.getDocument().addDocumentListener(new IDocumentListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void documentAboutToBeChanged(DocumentEvent event) {\r\n\t\t\t\t\t// check if present a new line symbol\r\n\t\t\t\t\tif (event.fText.indexOf('\\r') != -1 || event.fText.indexOf('\\n') != -1) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tITypedRegion partition = event.fDocument.getPartition(event.fOffset);\r\n\t\t\t\t\t\t\tif (partition instanceof IOConsolePartition) {\r\n\t\t\t\t\t\t\t\tIOConsolePartition p = (IOConsolePartition) partition;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// check if that is user input\r\n\t\t\t\t\t\t\t\tif (p.getType().equals(IOConsolePartition.INPUT_PARTITION_TYPE)) {\r\n\t\t\t\t\t\t\t\t\tif (event.fText.length() <= 2) {\r\n\t\t\t\t\t\t\t\t\t\tfinal String inputFound = p.getString();\r\n\t\t\t\t\t\t\t\t\t\tWriteRIDE(\"PROC_TYPE: \" + inputFound);\r\n//\t\t\t\t\t\t\t\t\t\tfor (IConsoleInputListener listener : partcipants) {\r\n//\t\t\t\t\t\t\t\t\t\t\tlistener.newLineReceived(inputFound, target);\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} catch (Exception e) {\r\n\t\t\t\t\t\t\tLog.log(IStatus.ERROR, \"Error listen input for process console\", e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void documentChanged(DocumentEvent event) {\r\n\t\t\t\t\tfSessionViewer.getTextWidget().setCaretOffset(Integer.MAX_VALUE);\r\n\t\t\t\t\t// only report when have a new line\r\n\t\t\t\t\tif (event.fText.indexOf('\\r') != -1 || event.fText.indexOf('\\n') != -1) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tITypedRegion partition = event.fDocument.getPartition(event.fOffset);\r\n\t\t\t\t\t\t\tif (partition instanceof IOConsolePartition) {\r\n\t\t\t\t\t\t\t\tIOConsolePartition p = (IOConsolePartition) partition;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (p.getType().equals(IOConsolePartition.INPUT_PARTITION_TYPE)) {\r\n\t\t\t\t\t\t\t\t\tif (event.fText.length() > 2) {\r\n\t\t\t\t\t\t\t\t\t\t// user pasted something\r\n\t\t\t\t\t\t\t\t\t\tWriteRIDE(\"PROC_PASTE: \" + event.fText);\r\n//\t\t\t\t\t\t\t\t\t\tfor (IOConsoleInputListener listener : participants) {\r\n//\t\t\t\t\t\t\t\t\t\t\tlistener.pasteReceived(event.fText, target);\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} catch (Exception e) {\r\n\t\t\t\t\t\t\tLog.log(IStatus.ERROR, \"Error listen input for process console\", e);\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}\r\n\t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tchat.append(s);\r\n\t\t\t\t\t}", "public static void main(String[] args) {\n RandomizedQueue<String> randomizedQueue = new RandomizedQueue<String>();\n while (!StdIn.isEmpty()) {\n String line = StdIn.readString();\n if (!line.isBlank()) {\n randomizedQueue.enqueue(line);\n }\n }\n Iterator<String> itr = randomizedQueue.iterator();\n while (itr.hasNext())\n System.out.println(itr.next());\n }", "@Override\n\t\tpublic void characters(char[] ch, int start, int length)\n\t\t\t\tthrows SAXException {\n\t\t\tbuffer.append(ch);\n\t\t}", "@Override\r\n\tpublic void run() {\n\t\twhile (true) {\r\n\t\t\tsynchronized (this.queue) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tqObj = queue.getQueue().peek();\r\n\t\t\t\t\tif (qObj != null && qObj instanceof String) {\r\n\t\t\t\t\t\tString t = (String) queue.getQueue().poll();\r\n\t\t\t\t\t\tSystem.out.println(\"TextProcessor:\" + t + \"\\tsize: \" + queue.getQueue().size());\r\n\t\t\t\t\t\tqueue.notifyAll();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tqueue.wait();\r\n\t\t\t\t} catch (InterruptedException 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\t\t}\r\n\t\t}\r\n\t}", "public void process () {\n consoleListenerAndSender.execute(() -> {\n String message = null;\n DataInputStream reader = null;\n try {\n reader = new DataInputStream(new BufferedInputStream(console.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n while (!isServerAvailable()) {\n message = reader.readUTF();\n\n if (Objects.equals(message, \"/quit\")){\n close();\n setQuitCommandAppear(true);\n break;\n }\n\n sender.sendMessage(message);\n message = null;\n\n }\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n serverListenerAndConsoleWriter.execute(() -> {\n try {\n while (!isServerAvailable()) {\n System.out.println(getter.getInputMessage());\n }\n } catch (IOException e) {\n if (!isQuitCommandAppear()) {\n System.out.println(\"[SERVER ISSUE] server is down.\");\n close();\n setServerAvailable(true);\n }\n else {\n System.out.println(\"Quit...\");\n }\n }\n });\n }", "public void processInput() {\n\n\t}", "private void buffer(Runnable action) {\n actions.add(action);\n }", "protected boolean isConsumingInput() {\r\n return true;\r\n }", "@Override\r\n public void accept(String line){\n Future<String> result = executor.submit(new Encryptor(line));\r\n try {\r\n String encryptedLine = result.get();\r\n sb.append(encryptedLine);\r\n } catch (InterruptedException e) {\r\n logger.error(e.getMessage());\r\n } catch (ExecutionException e) {\r\n logger.error(e.getMessage());\r\n }\r\n }", "private void eventLoop() {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n try {\n System.out.println(\">\");\n // Before readLine(), clear the in stream.\n System.out.flush();\n String line = in.readLine().toLowerCase();\n if (line.startsWith(\"quit\") || line.startsWith(\"exit\")) {\n break;\n }\n line = \"[\" + \"Node1\" + \"]\" + line;\n // destination address is null, send msg to everyone in the cluster.\n Message msg = new ObjectMessage(null, line);\n channel.send(msg);\n } catch (Exception e) {\n // TODO: handle exception.\n }\n }\n\n }", "public void acceptConversationInput ( String input ) {\n\t\texecute ( handle -> handle.acceptConversationInput ( input ) );\n\t}", "private void readInput(char[] inputArr) {\n\n\t\tfor (char c : inputArr) {\n\t\t\tcheckChar(Character.toString(c));\n\n\t\t\tSystem.out.println(\"==I=N=P=U=T============\");\n\t\t\tSystem.out.println(c);\n\t\t\tSystem.out.println(\"===Q=U=E=U=E===========\");\n\t\t\tSystem.out.println(queue.toString());\n\t\t\tSystem.out.println(\"====S=T=A=C=K==========\");\n\t\t\tSystem.out.println(stack.toString());\n\t\t}\n\t}", "private int getInput() {\n final boolean debug = false;\n int toRead;\n int result;\n int nread;\n\n // if (checkForDeadChannel()) return EINVAL;\n\n // Skipped pushback processing code for stacked Channels\n\n\n // See if we can fill an existing buffer. If we can, read only\n // as much as will fit in it. Otherwise allocate a new buffer,\n // add it to the input queue and attempt to fill it to the max.\n\n ChannelBuffer buf = inQueueTail;\n\n if ((buf != null) && (buf.nextAdded < buf.bufLength)) {\n if (debug) {\n System.out.println(\"smaller than buffer\");\n }\n toRead = buf.bufLength - buf.nextAdded;\n\t} else {\n if (debug) {\n System.out.println(\"fits in existing buffer\");\n }\n\n buf = saveInBuf;\n saveInBuf = null;\n\n // Check the actual buffersize against the requested\n // buffersize. Buffers which are smaller than requested are\n // squashed. This is done to honor dynamic changes of the\n // buffersize made by the user.\n\n if ((buf != null) && ((buf.bufLength - buf.BUFFER_PADDING) < bufSize)) {\n buf = null;\n }\n if (buf == null) {\n if (debug) {\n System.out.println(\"allocated ChannelBuffer of size \" + bufSize);\n }\n buf = new ChannelBuffer(bufSize);\n }\n buf.next = null;\n\n // Use the actual size of the buffer to determine\n // the number of bytes to read from the channel and not the\n // size for new buffers. They can be different if the\n // buffersize was changed between reads.\n\n toRead = buf.bufLength - buf.nextAdded;\n if (debug) {\n System.out.println(\"toRead set to \" + toRead);\n }\n\n if (inQueueTail == null) {\n inQueueHead = buf;\n } else {\n inQueueTail.next = buf;\n }\n\n inQueueTail = buf;\n }\n\n // If EOF is set, we should avoid calling the driver because on some\n // platforms it is impossible to read from a device after EOF.\n\n if (eofCond) {\n if (debug) {\n System.out.println(\"eofCond was true, no error return\");\n }\n return 0;\n }\n\n // FIXME: We do not handle non-blocking or this CHANNEL_TIMER_FEV flag yet\n\n if (/*CHANNEL_TIMER_FEV &&*/\n !blocking) {\n return TclPosixException.EWOULDBLOCK;\n } else {\n result = 0;\n\n // Can we even use this for a brain-dead nonblocking IO check?\n int numAvailable = /*input.available();*/ 0;\n\n if (!blocking && (numAvailable < toRead)) {\n result = TclPosixException.EWOULDBLOCK;\n nread = -1;\n } else {\n try {\n if (debug) {\n System.out.println(\"now to read \" + toRead + \" bytes\");\n }\n\n nread = input.read(buf.buf, buf.nextAdded, toRead);\n\n // read() returns -1 on EOF\n if (nread == -1) {\n if (debug) {\n System.out.println(\"got EOF from read() call\");\n }\n nread = 0;\n }\n } catch (IOException ex) {\n // FIXME: How do we recover from IO errors here?\n // I think we need to set result to a POSIX error\n ex.printStackTrace(System.err);\n nread = -1;\n }\n }\n }\n\n if (nread > 0) {\n if (debug) {\n System.out.println(\"nread is \" + nread);\n }\n buf.nextAdded += nread;\n\n // should avoid calling the driver because on some platforms we\n // will block in the low level reading code even though the\n // channel is set into nonblocking mode.\n\n if (nread < toRead) {\n blocked = true;\n }\n } else if (nread == 0) {\n eofCond = true;\n encodingEnd = true;\n if (debug) {\n System.out.println(\"nread is zero, eofCond set, encodingEnd set\");\n }\n } else if (nread < 0) {\n if (debug) {\n System.out.println(\"nread is \" + nread);\n }\n if ((result == TclPosixException.EWOULDBLOCK) ||\n (result == TclPosixException.EAGAIN)) {\n blocked = true;\n\t result = TclPosixException.EAGAIN;\n\t }\n // FIXME: Called needs to raise a TclException\n //Tcl_SetErrno(result);\n return result;\n }\n if (debug) {\n System.out.println(\"no error return\");\n }\n return 0;\n }", "@Override\n public void process() throws IOException {\n outputPrinter.welcome();\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n final String input = reader.readLine();\n final ExecutableCommand command = new ExecutableCommand(input);\n processCommand(command);\n if (command.getCommandName().equals(ExitCommand.COMMAND_NAME)) {\n break;\n }\n }\n }", "public void run() {\r\n\t\ttry {\r\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\twhile (!isInterrupted()) {\r\n\t\t\t\tString message = in.readLine();\r\n\t\t\t\tmOut.println(message);\r\n\t\t\t\tmOut.flush();\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\t// Communication is broken\r\n\t\t}\r\n\t}", "@Incoming(\"sink\")\n public void sink(String input) {\n results.add(input);\n }", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Waiting for input\");\n\t\t// Handle reading data until we exit\n\t\tByteBuffer buf = ByteBuffer.allocate(2048);\n\t\twhile (!stopper && socketChannel.isOpen()) {\n\t\t\tSystem.out.println(\"Reading the socket\");\n\t\t\ttry {\n\t\t\t\t// No input from the user in 60 seconds results in kicking them\n\t\t\t\t// out\n\t\t\t\tint bytesRead = socketChannel.read(buf).get(60, TimeUnit.SECONDS);\n\t\t\t\t// ByteBuffer dst = ByteBuffer.allocate(bytesRead);\n\t\t\t\t// engine.unwrap(buf, dst);\n\t\t\t\tSystem.out.println(\"Got data of size: \" + bytesRead);\n\t\t\t\t// convert to proto\n\t\t\t\tcommonUIElements.MessageProtos.Message msg = commonUIElements.MessageProtos.Message\n\t\t\t\t\t\t.parseFrom(Arrays.copyOf(buf.array(), bytesRead));\n\t\t\t\tSystem.out.println(\"RXed: \" + msg.toString());\n\t\t\t\tif (!msg.getName().equals(name)) {\n\t\t\t\t\tname = msg.getName();\n\t\t\t\t}\n\t\t\t\t// add data to the message queue\n\t\t\t\tif (SignatureSystem.verifySignature(msg.getSignature(), msg.getMessage(), msg.getName(), trustStore)) {\n\t\t\t\t\tmessages.put(\n\t\t\t\t\t\t\tnew Message(msg.getSender(), msg.getMessage(), msg.getSignature(), msg.getClearance()));\n\t\t\t\t} else {\n\t\t\t\t\tMessage error = new Message(msg.getSender(), \"Error: signture is invalid\", msg.getSignature(),\n\t\t\t\t\t\t\tmsg.getClearance());\n\t\t\t\t\terror.error = true;\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t}\n\t\t\t\t// clear the buffer for the next message\n\t\t\t\tbuf.clear();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.err.println(\"Failed to add message to the queue: \" + e.getMessage());\n\t\t\t\tMessage error = new Message(this.name, \"Disconnected\", \"\", 1);\n\t\t\t\terror.error = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (TimeoutException e) {\n\t\t\t\tSystem.err.println(\"Timeout hit, waiting again\");\n\t\t\t\tMessage error = new Message(this.name, \"Client: \" + this.name + \" has timed out\", \"\", 1);\n\t\t\t\terror.kill = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tSystem.err.println(\"Execution error, breaking out of loop\");\n\t\t\t\tbreak;\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\tSystem.err.println(\"Invalid protobuf received: \" + e.getMessage());\n\t\t\t\t// } catch(SSLException e) {\n\t\t\t\t// System.err.println(\"SSL Failed: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tsocketChannel.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Failed to close socket while exiting\");\n\t\t}\n\t\tSystem.out.println(\"Exiting thread...\");\n\t}", "@SuppressWarnings(\"unused\")\r\n private void addReadStream(InputStream asciiStream) {\n\t\taddReadSize(100);\r\n\t}", "@SuppressWarnings(\"unused\")\r\n private void addReadStream(Reader asciiStream) {\n\t\taddReadSize(100);\r\n\t}", "public Mix(String message) {\n scan = new Scanner(System.in);\n this.message = new DoubleLinkedList<Character>();\n clipBoards = new Hashtable<Integer, ClipBdLinkedList<Character>>();\n\n\n for(int i=0; i<message.length(); ++i) {\n this.message.add(message.charAt(i));\n }\n\n undoCommands = \"\";\n }", "void put(char ch){\n\t\tif(putloc == q.length){\n\t\t\tSystem.out.println(\"- Queue is full.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tq[putloc]=ch;\n\t\tputloc++;\n\t}", "void onCharacter(Terminal terminal, char data);", "public void processStreamInput() {\n }", "public void run()\r\n {\r\n Scanner sc = new Scanner(System.in);\r\n while(socket.isConnected())\r\n {\r\n String comm = sc.nextLine();\r\n\r\n }\r\n }", "public void start(){\r\n\t\tThread cliThread = new Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tString line= \"1\";\r\n\t\t\t\twhile(!line.equals(\"exit\")) {\r\n\t\t\t\t\tSystem.out.println(\"\\n\");\r\n\t\t\t\t\tfor(String str: commandsSet.keySet())\r\n\t\t\t\t\t\tSystem.out.println(\"* \" + str);\r\n\t\t\t\t\tSystem.out.println(\"\\nEnter command\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tline=in.readLine();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tStringBuilder argusb= new StringBuilder();\r\n\t\t\t\t\t\tStringBuilder command=new StringBuilder();\r\n\t\t\t\t\t\tString[] split=line.split(\" \");\r\n\t\t\t\t\t\tint j=0;\r\n\t\t\t\t\t\tfor (int i =0;i<split.length;i++) {\r\n\t\t\t\t\t\t\tif (split[i].startsWith(\"<\")){\r\n\t\t\t\t\t\t\t\tsplit[i] = split[i].replace(\"<\",\"\");\r\n\t\t\t\t\t\t\t\tsplit[i] = split[i].replace(\">\", \"\");\r\n\t\t\t\t\t\t\t\tsplit[i]= split[i].toLowerCase();\r\n\t\t\t\t\t\t\t\targusb.append(split[i]);\r\n\t\t\t\t\t\t\t\targusb.append(\" \");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tcommand.append(\" \");\r\n\t\t\t\t\t\t\t\tcommand.append(split[i]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcommand.deleteCharAt(0);\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\tcontroller.handleUserCommand(command.toString(),argusb.toString().split(\" \"));\r\n\t\t\t\t\t\t}catch (Exception e){\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\targusb=null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//out.write(\"The Program closed Good Bye\");\r\n\t\t\t{ try {\r\n\t\t\t\tin.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"The In stream can't be close\");\r\n\t\t\t} \r\n\t\t\t\tout.close();\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\t\r\n\t\t\tcliThread.start();\t\r\n\t\t}", "protected String getInputFromConsole() throws IOException\n {\n BufferedReader consoleInput = new BufferedReader(new InputStreamReader(System.in));\n return consoleInput.readLine();\n }", "private void processCommands() {\n while (!commandQueue.isEmpty()) {\n var msg = commandQueue.remove();\n treatCommand.parseCommand(msg);\n }\n }", "private static StringBuilder receiveInputStream(InputStream input) throws IOException{\r\n\t\tStringBuilder response = new StringBuilder();\r\n\t\tint i;\r\n\t\twhile((i = input.read())!= -1){//stock the inputstream\r\n\t\t\tresponse.append((char)i); \r\n\t\t}\r\n\t\treturn response;\r\n\t}", "public WriteToClient(Socket c) throws IOException { //initialize printwirte and scanner\r\n\t\ttoClient = new PrintWriter(c.getOutputStream());\r\n\t\tstdin = new Scanner(System.in);\r\n\t}", "public static Queue<String> linesFromInput(SimpleReader input) {\n assert input != null : \"Violation of: input is not null\";\n assert input.isOpen() : \"Violation of: input.is_open\";\n\n Queue<String> lines = new Queue1L<String>();\n while (!input.atEOS()) {\n String text = input.nextLine(); // reads next line\n lines.enqueue(text);\n\n }\n return lines;\n }", "public static void main(String[] args) \n throws IOException, InterruptedException {\n BufferedReader stdin =\n new BufferedReader(\n new InputStreamReader(System.in));\n\n while (true) {\n try {\n String inputDataLine = stdin.readLine();\n CallATPListener(inputDataLine);\n } catch(IOException e) {\n System.out.print(\"Unable to read stdin\");\n System.out.print(\"@END\");\n } catch(NullPointerException e) {\n break;\n }\n }\n }", "MyInputStream(String name, InputStream in) {\n this.name = name;\n this.in = new BufferedInputStream(in);\n buffer = new StringBuffer(4096);\n Thread thr = new Thread(this);\n thr.setDaemon(true);\n thr.start();\n }", "public void writeInputToProcess(String input, String charSet) {\n if (StringUtils.isEmpty(input)) {\n throw new IllegalArgumentException();\n }\n processDataIn_.add(new ProcessOutputData(input, charSet));\n }", "@Override\n public void accept(CharSequence charSequence) {\n }", "@Override\n\tpublic void inputStarted() {\n\t\t\n\t}", "public void put (char ch) {\r\n if (putloc == q.length) {\r\n System.out.println(\" - Queue is full.\");\r\n return;\r\n }\r\n\r\n q[putloc++] = ch;\r\n }", "@Override\n public void userStartedTyping(){\n }", "public static void waitForInput() {\n BufferedReader buffyTheVampireSlayer = new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Press Enter To Continue...\");\n try {\n buffyTheVampireSlayer.readLine();\n } catch (IOException e) {\n System.out.println(e);\n System.out.println(\"an unexpected error occurred\");\n }\n }", "@Override\n public void flush() throws IOException {\n ConsoleRedirect.this.flush(buffer, 0, pos);\n pos = 0;\n }", "public void sendKey(final char c) {\n\t\tmethods.inputManager.sendKey(c);\n\t}", "void process() throws IOException\n\t{\n\t\tboolean done = false;\n\t\twhile(!done)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * Now if we are in a session and that session is suspended then we go\n\t\t\t\t * into a state where we wait for some user interaction to get us out\n\t\t\t\t */\n\t\t\t\trunningLoop();\n\n\t\t\t\t/* if we are in the stdin then put out a prompt */\n\t\t\t\tif (!haveStreams())\n\t\t\t\t\tdisplayPrompt();\n\n\t\t\t\t/* now read in the next line */\n\t\t\t\treadLine();\n\t\t\t\tif (m_currentLine == null)\n\t\t\t\t\tbreak;\n\n\t\t\t\tdone = processLine();\n\t\t\t}\n\t\t\tcatch(NoResponseException nre)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noResponseException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NotSuspendedException nse)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"notSuspendedException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(AmbiguousException ae)\n\t\t\t{\n\t\t\t\t// we already put up a warning for the user\n\t\t\t}\n\t\t\tcatch(IllegalStateException ise)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"illegalStateException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(IllegalMonitorStateException ime)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"illegalMonitorStateException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NoSuchElementException nse)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noSuchElementException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NumberFormatException nfe)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"numberFormatException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(SocketException se)\n\t\t\t{\n\t\t\t\tMap<String, Object> socketArgs = new HashMap<String, Object>();\n\t\t\t\tsocketArgs.put(\"message\", se.getMessage()); //$NON-NLS-1$\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"socketException\", socketArgs)); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(VersionException ve)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"versionException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NotConnectedException nce)\n\t\t\t{\n\t\t\t\t// handled by isConnectionLost()\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"unexpectedError\")); //$NON-NLS-1$\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"stackTraceFollows\")); //$NON-NLS-1$\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t// check for a lost connection and if it is clean-up!\n\t\t\tif (isConnectionLost())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tdumpHaltState(false);\n\t\t\t\t}\n\t\t\t\tcatch(PlayerDebugException pde)\n\t\t\t\t{\n\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"sessionEndedAbruptly\")); //$NON-NLS-1$\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void userInputOccurred(InputEvent e) {\n\t\tif (e.getType() == (InputEvent.TEXT)) {\r\n\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tString input = new String(e.getInput());\r\n\t\t\t// If it's a clear command\r\n\t\t\tif (e.getInput().equals(\"/clear\")) {\r\n\t\t\t\tclearTerminal();\r\n\t\t\t} else {\r\n\t\t\t\tif (e.getSource() == myTerminal) {\r\n\t\t\t\t\t// System.out.println(\"Terminal says: \"+input);\r\n\t\t\t\t\tthis.cmd_string(input);\r\n\t\t\t\t} else if (e.getSource() == this) {\r\n\t\t\t\t\tmyTerminal.write(input);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"Unknown src detected: \" + e.getSource());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (current_state == EXIT) {\r\n\t\t\t\tquit();\r\n\t\t\t}\r\n\r\n\t\t\t// Otherwise it's a up/down/left/right/esc command\r\n\t\t} else if (e.getType() == (InputEvent.KEY_PRESS)) {\r\n\r\n\t\t\tthis.cmd_key(e.getInput());\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void run() {\n\t\tString str;\n\t\t\n\n\t\twhile(true){\n\t\ttry {\n\t\t\tstr = charBufferIn.readLine();\n\t\t\tgm.textArea1.append(str + \"\\n\");\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}\n\t}", "@Override\n protected void keyTyped(char typedChar, int keyCode) throws IOException {\n super.keyTyped(typedChar, keyCode);\n // Forward to root container\n this.screenContainer.keyTyped(typedChar, keyCode);\n }", "private void addCommandToQueue(CancellableCommand command) {\n outstandingRequests.add(command);\n while (outstandingRequests.size() > maxOutstandingRequests) {\n outstandingRequests.poll().onCancelled();\n }\n }", "public void addMessage() throws IOException {\r\n\t\tSystem.out.println(\"Enter the message to be decrypted\");\r\n\t\tmessage = this.readStringFromCmd();\r\n\t}", "private void sendMessage()\n\t{\n\t\tfinal String message = messageTextArea.getText(); \n\t\tif(message.length() == 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tmessageTextArea.setText(\"\");\n\t\ttry\n\t\t{\n\t\t\teventsBlockingQueue.put(new MessageEvent(message));\n\t\t}\n\t\tcatch (final InterruptedException e1)\n\t\t{\n\t\t}\n\t}", "public void run()\n{\n try {\n InputStreamReader in = new InputStreamReader(input_stream);\n int c;\n if(is_synchronized){\n\t while ((c = in.read()) != -1) {\n\t synchronized(lock){\n\t contents.append((char) c);\n\t }\n\t }\n }\n else{\n\t while ((c = in.read()) != -1) {\n\t contents.append((char) c);\n\t }\n }\n }\n catch (Exception e) {\n //that's ok\n }\n}", "private final static void pulsaEnter() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\nPulsa Enter para continuar...\");\n\t\tkb.nextLine();\n\t}", "@Override\n\tpublic void inputStarted() {\n\n\t}", "private void startInThread() {\n final Client fthis = this;\n if (in != null && in.isAlive()) in.interrupt();\n in = new Thread(() -> {\n while (true) {\n if (client.isClosed()) break;\n try {\n InputStream inFromServer = client.getInputStream();\n if (inFromServer.available() > 0) {\n String l = (char) inFromServer.read() + \"\";\n while (!l.endsWith(\"\\r\")) {\n l += (char) inFromServer.read() + \"\";\n }\n l = l.replace(\"\\r\", \"\");\n runPacketEvent(new ClientPacketEvent(fthis, PacketType.CLIENT_RECEIVE, l));\n }\n } catch (Exception e) {\n e.printStackTrace();\n break;\n }\n }\n });\n in.start();\n }", "public void waitForInputSignal(){\r\n\t\ttry {\r\n\t\t\tSystem.in.read();\r\n\t\t\tSystem.in.read();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void beginListenForData() {\n stopWorker = false;\n readBufferPosition = 0;\n try {\n inStream = btSocket.getInputStream();\n } catch (IOException e) {\n Log.d(TAG, \"Bug while reading inStream\", e);\n }\n Thread workerThread = new Thread(new Runnable() {\n public void run() {\n while (!Thread.currentThread().isInterrupted() && !stopWorker) {\n try {\n int bytesAvailable = inStream.available();\n if (bytesAvailable > 0) {\n byte[] packetBytes = new byte[bytesAvailable];\n inStream.read(packetBytes);\n for (int i = 0; i < bytesAvailable; i++) {\n // Log.d(TAG, \" 345 i= \" + i);\n byte b = packetBytes[i];\n if (b == delimiter) {\n byte[] encodedBytes = new byte[readBufferPosition];\n System.arraycopy(readBuffer, 0,\n encodedBytes, 0,\n encodedBytes.length);\n final String data = new String(\n encodedBytes, \"US-ASCII\");\n readBufferPosition = 0;\n handler.post(new Runnable() {\n public void run() {\n Log.d(TAG, \" M250 ingelezen data= \" + data);\n ProcesInput(data); // verwerk de input\n }\n });\n } else {\n readBuffer[readBufferPosition++] = b;\n }\n }\n } // einde bytesavalable > 0\n } catch (IOException ex) {\n stopWorker = true;\n }\n }\n }\n });\n workerThread.start();\n }", "protected void enterText(InputHandler input)\n\t{\n\t\tif (clearCharBuffer)\n\t\t{\n\t\t\tinput.consumeLastTypedChar();\n\t\t\tclearCharBuffer = false;\n\t\t}\n\t\tchar c = input.consumeLastTypedChar();\n\t\tif (c == '\\b')\n\t\t{\n\t\t\t// Remove a character if the key was backspace\n\t\t\tremoveChar();\n\t\t}\n\t\telse if (c == '\\n')\n\t\t{\n\t\t\t// Call the enter method if the enter key was pressed\n\t\t\tenterPressed();\n\t\t}\n\t\telse if (c != 0)\n\t\t{\n\t\t\t// Add a character to the text field\n\t\t\tputChar(c);\n\t\t}\n\t}", "@Override\r\n\tpublic void acceptInput(String input) {\n\t\t\r\n\t}", "public synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }", "public static void main( String args[] )\r\n {\r\n try\r\n {\r\n LateralUDPSender lur = new LateralUDPSender( new LateralCacheAttributes() );\r\n\r\n // process user input till done\r\n boolean notDone = true;\r\n String message = null;\r\n // wait to dispose\r\n BufferedReader br = new BufferedReader( new InputStreamReader( System.in ) );\r\n\r\n while ( notDone )\r\n {\r\n System.out.println( \"enter mesage:\" );\r\n message = br.readLine();\r\n CacheElement ce = new CacheElement( \"test\", \"test\", message );\r\n LateralElementDescriptor led = new LateralElementDescriptor( ce );\r\n lur.send( led );\r\n }\r\n }\r\n catch ( Exception e )\r\n {\r\n System.out.println( e.toString() );\r\n }\r\n }", "private Deque<Character> dequeFrom(CharSequence in) {\n if (in == null) {\n return null;\n }\n\n final Deque<Character> out = new ArrayDeque<>(in.length());\n\n for (int i = in.length() - 1; i >= 0; i--) {\n out.push(in.charAt(i));\n }\n\n return out;\n }", "@Override\n synchronized public void run() {\n try {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(inputStream, Charset.defaultCharset())\n );\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n this.result.add(line);\n }\n } catch (IOException ex) {\n log.error(\"Failed to consume and display the input stream of type \" + streamType + \".\", ex);\n } finally {\n this.isStopped = true;\n notify();\n }\n }", "public void run() {\n\t\tGenRandomString generator = new GenRandomString();\n\t\tStringToInt converter = new StringToInt();\n\t\t\n\t\tint rawData;\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\trawData = converter.convert(generator.generate());\n\t\t\t\n\t\t\t//synchronization to make sure that queue is filled up in the correct order.\n\t\t\tsynchronized(GlobalInfo.enqueueLock){\n\t\t\t\tSystem.out.format(\"%d got the lock.\\n\",deviceNumber);\n\t\t\t\tGlobalInfo.inputs[deviceNumber] = rawData;\n\t\t\t\tGlobalInfo.pipeLine.add(GlobalInfo.inputs);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep(10000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}" ]
[ "0.5873082", "0.5720166", "0.5467646", "0.533187", "0.53170025", "0.53077495", "0.53048515", "0.5294585", "0.527363", "0.5273618", "0.51031315", "0.5039544", "0.5036485", "0.5015532", "0.49964172", "0.49469832", "0.49038452", "0.48968095", "0.48944846", "0.48795995", "0.4877749", "0.4877632", "0.48757678", "0.48415953", "0.48394698", "0.4839079", "0.48305002", "0.4815163", "0.48122653", "0.480425", "0.4802661", "0.47965023", "0.4781296", "0.47687924", "0.4733599", "0.47198918", "0.47172496", "0.47075817", "0.47062147", "0.46939006", "0.46856707", "0.46718907", "0.46581876", "0.46513963", "0.46381974", "0.46175927", "0.46113244", "0.45903823", "0.4582839", "0.45813304", "0.45596033", "0.45586348", "0.45566267", "0.45484242", "0.45415595", "0.45403925", "0.45396063", "0.45372474", "0.45367506", "0.45340613", "0.45279053", "0.45211375", "0.4519533", "0.45190853", "0.45177555", "0.4514274", "0.4507277", "0.45010525", "0.44933307", "0.4489184", "0.4487335", "0.44822827", "0.44794545", "0.44789383", "0.44754395", "0.44716564", "0.44631445", "0.44629195", "0.44584104", "0.44577134", "0.4450577", "0.44499347", "0.44494203", "0.44440943", "0.44294834", "0.4414737", "0.44116905", "0.4411234", "0.44101268", "0.44031534", "0.4403015", "0.4396351", "0.439525", "0.43948203", "0.4390328", "0.43889162", "0.43804982", "0.43803906", "0.43775085", "0.43773457" ]
0.44985273
68
Writes characters from the buffer to the sandboxed process' stdin channel.
private synchronized boolean Iteration() { if (outputStream == null) { return false; } if (buffer.length() == 0) { return true; } try { outputStream.write(buffer.getBytes()); outputStream.flush(); buffer = new String(""); } catch (Exception e) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OutputStream getStdin();", "public static void inputFlush() {\n int dummy;\n int bAvail;\n\n try {\n while ((System.in.available()) != 0)\n dummy = System.in.read();\n } catch (java.io.IOException e) {\n System.out.println(\"Input error\");\n }\n }", "public void accept(){\n\t\ttry{\n\t\t\tBufferedReader fromConsole = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString message;\n\t\t\twhile (true){\n\t\t\t\tmessage = fromConsole.readLine();\n\t\t\t\tthis.handleMessage(message);\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exception){\n\t\t\tSystem.out.println\n\t\t\t(\"Unexpected error while reading from console!\");\n\t\t}\n\t}", "public synchronized void readInput() throws InterruptedException, IOException \n\t{\n\t\twhile (getDataSourceEOFlag())\n\t\t{\n\t\t\tcontent.set(incomingPipe.take());\n\t\t\t\n\t\t\t// Ensure thread-timing uniformity (a speed-limiter)\n\t\t\t//Thread.sleep(100);\n\t\t\t\n\t\t\tprocess();\n\t\t\t// Discard the text to free up memory.\n\t\t\tcontent.set(null);\n\t\t}\n\t}", "public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n input = br.readLine();\n while (input != null) {\n CM.processCommand(input, pw, true);\n input = br.readLine();\n }\n } catch (IOException ioe) {\n pw.println(\"ERROR: Problem with reading user input.\");\n } finally {\n try {\n br.close();\n } catch (IOException ioe) {\n pw.println(\"ERROR: Buffer DNE\");\n }\n }\n }", "public WriteToClient(Socket c) throws IOException { //initialize printwirte and scanner\r\n\t\ttoClient = new PrintWriter(c.getOutputStream());\r\n\t\tstdin = new Scanner(System.in);\r\n\t}", "@Test\n @AFSocketCapabilityRequirement(AFSocketCapability.CAPABILITY_FD_AS_REDIRECT)\n @ProcessUtilRequirement(canGetJavaCommandArguments = true)\n public void testForkedVMRedirectStdin() throws Exception {\n AFUNIXSocketAddress addr = AFUNIXSocketAddress.ofNewTempFile();\n try (AFUNIXServerSocket serverSocket = AFUNIXServerSocket.bindOn(addr);\n AFUNIXSocket clientConn = AFUNIXSocket.connectTo(addr);\n AFUNIXSocket serverConn = serverSocket.accept()) {\n assertTrue(addr.getFile().delete());\n\n ForkedVM vm = new ForkedVM(StdinSocketApp.class);\n vm.setRedirectInput(FileDescriptorCast.using(clientConn.getFileDescriptor()).as(\n Redirect.class));\n vm.setRedirectError(Redirect.INHERIT);\n // vm.setRedirectOutput(Redirect.INHERIT);\n Process p = vm.fork();\n try {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(serverConn\n .getInputStream(), StandardCharsets.UTF_8))) {\n assertEquals(\"Hello world\", br.readLine());\n String l;\n if ((l = br.readLine()) != null) {\n fail(\"Unexpected output: \" + l);\n }\n }\n assertTrue(p.waitFor(30, TimeUnit.SECONDS));\n assertEquals(0, p.exitValue());\n } finally {\n p.destroyForcibly();\n }\n }\n }", "public OutputStream setStdInStream(int initialSize) throws IOException {\n\t\tif(stdInLatch.getCount()<1) {\n\t\t\treturn pipeOut;\n\t\t}\n\t\tpipeOut = new PipedOutputStream();\n\t\tpipeIn = new PipedInputStream(pipeOut, initialSize);\n\t\tstdInLatch.countDown();\n\t\tlog.debug(Banner.banner(\"Dropped Latch for STDIN Stream\"));\n\t\treturn pipeOut;\n\t}", "@Override\n public void flush() throws IOException {\n ConsoleRedirect.this.flush(buffer, 0, pos);\n pos = 0;\n }", "protected void sendStartStdInSignal() {\n\t\tDownstreamMessageEvent dme = new DownstreamMessageEvent(channel, Channels.future(channel), STREAM_IN_READY, channel.getRemoteAddress());\n\t\t//channel.getPipeline().sendDownstream(dme);\n\t\tSystem.out.println(\"Sending STDIN READY\");\n\t\tchannel.write(STREAM_IN_READY).awaitUninterruptibly();\n\t\tSystem.out.println(\"Sent STDIN READY\");\n\t}", "private void processBuffer(boolean flushBuffer, boolean endOfInput) throws IOException {\n decodeBuffer(flushBuffer || endOfInput);\n if (!endOfInput && !flushBuffer && cb.position() < PROCESS_THRESHOLD) {\n return;\n }\n cb.flip();\n found = SubstituteUtil.processSubstitute(cb, substitute, endOfInput, outputCharset, stream);\n // Write the tail bytes in the byte buffer if required\n if (bb.position() > 0 && (found || endOfInput)) {\n bb.flip();\n while (bb.hasRemaining()) {\n stream.write(bb.get());\n }\n bb.clear();\n }\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null);\n PipedInputStream pipedInputStream0 = new PipedInputStream();\n javaCharStream0.ReInit((InputStream) pipedInputStream0, 122, 122);\n assertEquals((-1), javaCharStream0.bufpos);\n }", "public void sendInput(String input) throws IOException {\n\t\tmShell.sendCommand(\"INPUT:\" + mStag + \":\" + input + \":\");\n\t}", "public void run() {\r\n\t\ttry {\r\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\twhile (!isInterrupted()) {\r\n\t\t\t\tString message = in.readLine();\r\n\t\t\t\tmOut.println(message);\r\n\t\t\t\tmOut.flush();\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\t// Communication is broken\r\n\t\t}\r\n\t}", "public void accept() {\n try {\n BufferedReader fromConsole = new BufferedReader(new InputStreamReader(System.in));\n String message;\n\n // loops infinitely, until #quit command is called, which sets run = false, and\n // stops the loop\n while (run) {\n message = fromConsole.readLine();\n if (message != null) {\n if (message.charAt(0) == '#') {\n command(message.substring(1));\n } else {\n client.handleMessageFromClientUI(message);\n }\n } else {\n client.handleMessageFromClientUI(message);\n }\n }\n }\n\n // Exceptions where the reader encounters an error\n catch (Exception ex) {\n System.out.println(\"Unexpected error while reading from console!\");\n System.out.println(ex.getMessage());\n }\n }", "public void testPTY() throws Exception {\n PKey hostKey = PKey.readPrivateKeyFromStream(new FileInputStream(\n \"test/test_rsa.key\"), null);\n PKey publicHostKey = PKey.createFromBase64(hostKey.getBase64());\n mTS.addServerKey(hostKey);\n final FakeServer server = new FakeServer();\n\n final Event sync = new Event();\n new Thread(new Runnable() {\n public void run() {\n try {\n mTS.start(server, 15000);\n sync.set();\n } catch (IOException x) {}\n }\n }).start();\n\n mTC.start(publicHostKey, 15000);\n mTC.authPassword(\"slowdive\", \"pygmalion\", 15000);\n\n sync.waitFor(5000);\n assertTrue(sync.isSet());\n assertTrue(mTS.isActive());\n\n Channel chan = mTC.openSession(5000);\n TerminalModes modes = new TerminalModes();\n modes.put(TerminalModes.ECHO, 23);\n modes.put(TerminalModes.IXOFF, 900);\n chan.getPTY(\"vt100\", 80, 24, modes, 5000);\n chan.invokeShell(5000);\n Channel schan = mTS.accept(5000);\n\n assertEquals(\"vt100\", server.mPTYTerm);\n assertEquals(80, server.mPTYWidth);\n assertEquals(24, server.mPTYHeight);\n assertEquals(23, server.mPTYModes.get(TerminalModes.ECHO));\n assertEquals(900, server.mPTYModes.get(TerminalModes.IXOFF));\n assertFalse(server.mPTYModes.contains(TerminalModes.IXON));\n\n chan.getOutputStream().write(\"communist j. cat\\n\".getBytes());\n assertFalse(chan.isClosed());\n chan.close();\n assertTrue(chan.isClosed());\n\n BufferedReader r = new BufferedReader(new InputStreamReader(\n schan.getInputStream()));\n assertEquals(\"communist j. cat\", r.readLine());\n schan.close();\n }", "@Override\n\tpublic void write(int b) throws IOException{\n\t\tconsoleStream.append(String.valueOf((char)b));\n\t\tconsoleStream.setCaretPosition(consoleStream.getDocument().getLength());\n\t\t\n\t}", "public void run() {\n try {\n byte b[] = new byte[100];\n for (;;) {\n int n = in.read(b);\n String str;\n if (n < 0) {\n break;\n }\n str = new String(b, 0, n);\n buffer.append(str);\n System.out.print(str);\n }\n } catch (IOException ioe) { /* skip */ }\n }", "protected void instrumentIO()\r\n {\r\n // Clear out all the stream history stuff\r\n tcIn = null;\r\n tcOut = null;\r\n tcInBuf = null;\r\n\r\n // Make sure these are history-wrapped\r\n SystemIOUtilities.out();\r\n SystemIOUtilities.err();\r\n\r\n // First, make sure the original System.in gets captured, so it\r\n // can be restored later\r\n SystemIOUtilities.replaceSystemInContents(null);\r\n\r\n // The previous line actually replaced System.in, but now we'll\r\n // \"replace the replacement\" with one that uses fail() if it\r\n // has no contents.\r\n System.setIn(new MutableStringBufferInputStream((String)null)\r\n {\r\n protected void handleMissingContents()\r\n {\r\n fail(\"Attempt to access System.in before its contents \"\r\n + \"have been set\");\r\n }\r\n });\r\n }", "protected final String _readTTYLine() {\n\n StringBuffer buf = new StringBuffer(80);\n int c = 0;\n try {\n while ((c = System.in.read()) != -1) {\n char ch = (char) c;\n if (ch == '\\r') {\n ch = (char) System.in.read();\n if (ch == '\\n') {\n break;\n } else {\n continue;\n }\n } else if (ch == '\\n') {\n break; // Unix flavors.\n }\n buf.append(ch);\n }\n } catch (IOException e) {\n this._logger.error(ERROR_TAG + e.getMessage());\n }\n return buf.toString();\n }", "public void cancelStdInStream() {\n\t\tstdInLatch.countDown();\n\t\tif(pipeOut!=null) {\n\t\t\tlog.debug(\"Closing PipeOut\");\n\t\t\ttry { pipeOut.flush(); } catch (Exception e) {}\n\t\t\ttry { pipeOut.close(); } catch (Exception e) {}\n\t\t\tlog.debug(\"Closed PipeOut\");\n\t\t}\n\t\tpipeOut = null;\n\t\tif(pipeIn!=null) try { \n\t\t\tlog.debug(\"Closing PipeIn\");\n\t\t\tpipeIn.close(); \n\t\t\tlog.debug(\"Closed PipeIn\");\n\t\t} catch (Exception e) {}\n\t\tpipeIn = null;\t\t\n\t}", "public void launch() throws IOException {\n initBinding();\n var request = this.password == null ? new AnonymousConnection(login)\n : new AuthentificatedConnection(login, password);\n\n this.uniqueContext.putInQueue(request.toBuffer());\n console.setDaemon(true);\n console.start();// run stdin thread\n\n var lastCheck = System.currentTimeMillis();\n while (!Thread.interrupted()) {\n // printKeys();\n try {\n if (uniqueContext.isClosed()) {\n console.interrupt();\n selector.close();\n serverSocketChannel.close();\n sc.close();\n return;\n }\n selector.select(this::treatKey);\n processCommands();\n var currentTime = System.currentTimeMillis();\n if (currentTime >= lastCheck + TIMEOUT) {\n lastCheck = currentTime;\n clearInvalidSelectionKey();\n }\n } catch (UncheckedIOException tunneled) {\n throw tunneled.getCause();\n }\n }\n }", "private void mainLoop()\n {\n try\n {\n while (true)\n {\n System.out.print( \"\\r\\nJicos> \" );\n System.out.flush();\n\n byte[] input = new byte[1024];\n int read = -1;\n if (-1 == (read = System.in.read( input )))\n {\n break;\n }\n\n try\n {\n performCommand( new String( input, 0, read ) );\n }\n catch (Exception exception)\n {\n System.err.println( exception.getMessage() );\n }\n }\n }\n catch (Exception exception)\n {\n }\n }", "private void acceptCommands() {\n\t\tScanner input = new Scanner(System.in);\n\t\tInteractiveCommandParser commandParser = new InteractiveCommandParser(\n\t\t\t\tinput, this);\n\t\tcommandParser.readCommands(); // blocking command reader\n\t}", "public void run() {\n int ch;\n\n try {\n while ((ch = is.read()) != -1) {\n sb.append((char) ch);\n }\n }\n catch (IOException e) {\n sb.append(\"IOException reading stream: \" + e.toString());\n }\n }", "synchronized void receive(int preknownDataLength) throws EOFException, IOException {\n byte[] buffer = new byte[preknownDataLength];\n dataInput.readFully(buffer);\n pipedOutputStream.write(buffer);\n }", "@Override\n public void execute(IO io, Context context) {\n try {\n Process process = Runtime.getRuntime().exec(createShellCommand());\n pipeStream(io.STDIN, process.getOutputStream());\n process.waitFor();\n pipeStream(process.getInputStream(), io.STDOUT);\n } catch (IOException e) {\n e.printStackTrace(new PrintStream(io.STDERR));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public int drainBuffers() throws IOException {\n if (drainBuffersFinished) {\n throw new IllegalStateException(\"Buffer draining has already been finished\");\n }\n LOG.trace(\"drainBuffers() start\");\n\n int exitValue = -1;\n\n int inBytesRead = 0;\n int errBytesRead = 0;\n\n boolean processEnded = false;\n\n try (final BufferedReader ir =\n new BufferedReader(new InputStreamReader(process.getInputStream(), StandardCharsets.UTF_8));\n final BufferedReader er =\n new BufferedReader(new InputStreamReader(process.getErrorStream(), StandardCharsets.UTF_8))) {\n // Here we do some kind of busy waiting, checking whether the process has finished by calling Process#exitValue().\n // If not yet finished, an IllegalThreadStateException is thrown and ignored, the progress on stdout and stderr read,\n // and retried until the process has ended.\n // Note that Process#waitFor() may block sometimes, that's why we do a polling mechanism using Process#exitValue()\n // instead. Until we extend unit and integration test coverage for SSH action, and we can introduce a more\n // sophisticated error handling based on the extended coverage, this solution should stay in place.\n while (!processEnded) {\n try {\n // Doesn't block but throws IllegalThreadStateException if the process hasn't finished yet\n exitValue = process.exitValue();\n processEnded = true;\n }\n catch (final IllegalThreadStateException itse) {\n // Continue to drain\n }\n\n // Drain input and error streams\n inBytesRead += drainBuffer(ir, inputBuffer, maxLength, inBytesRead, processEnded);\n errBytesRead += drainBuffer(er, errorBuffer, maxLength, errBytesRead, processEnded);\n\n // Necessary evil: sleep and retry\n if (!processEnded) {\n try {\n LOG.trace(\"Sleeping {}ms during buffer draining\", DRAIN_BUFFER_SLEEP_TIME_MS);\n Thread.sleep(DRAIN_BUFFER_SLEEP_TIME_MS);\n }\n catch (final InterruptedException ie) {\n // Sleep a little, then check again\n }\n }\n }\n }\n\n LOG.trace(\"drainBuffers() end [exitValue={0}]\", exitValue);\n drainBuffersFinished = true;\n return exitValue;\n }", "public File getStdin() {\n return mStdin;\n }", "void encrypt(ChannelBuffer buffer, Channel c);", "private void unread(char c) {\n unreadBuffer = c;\n }", "@Override\n public void process() throws IOException {\n outputPrinter.welcome();\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n final String input = reader.readLine();\n final ExecutableCommand command = new ExecutableCommand(input);\n processCommand(command);\n if (command.getCommandName().equals(ExitCommand.COMMAND_NAME)) {\n break;\n }\n }\n }", "private void consoleRun() {\n try {\n var scan = new Scanner(System.in);\n while (scan.hasNextLine()) {\n var msg = scan.nextLine();\n sendCommand(msg);\n }\n } catch (InterruptedException e) {\n logger.info(\"Console thread has been interrupted\");\n } finally {\n logger.info(\"Console thread stopping\");\n }\n }", "public void submitInput(String buffer, int selectionStart, int selectionEnd, ConsoleEditor editor) {\n buffer = buffer.trim();\n if (!buffer.isEmpty()) {\n inputHistory.add(buffer);\n editor.inputHistoryPos = 0;\n logger.info(\"]{}\", buffer);\n executeCmd(buffer, false);\n editor.lastMatch = null;\n }\n editor.setText(\"\");\n }", "void flushBuffer();", "public void flush() throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n // the newline character should not be necessary. The PrintWriter\r\n // should autmatically put the newline, but it doesn't seem to work\r\n textArea.append(getBuffer().toString());\r\n if(System.getProperty(\"java.version\").startsWith(\"1.1\")){\r\n textArea.append(\"\\n\");\r\n }\r\n textArea.setCaretPosition(textArea.getDocument().getLength());\r\n buffer = new StringBuffer();\r\n }", "private void receive() throws IOException {\n byte[] lengthBuffer = new byte[4];\n dataInput.readFully(lengthBuffer);\n int length = Utilities.getIntFromByte(lengthBuffer, 0);\n pipedOutputStream.write(Utilities.getBytes(length));\n\n //now read the data indicated by length and write it to buffer\n byte[] buffer = new byte[length];\n dataInput.readFully(buffer);\n pipedOutputStream.write(buffer);\n pipedOutputStream.flush();\n clientBlocker();\n }", "public void processStreamInput() {\n }", "@Override\n public int read() throws IOException {\n int c;\n\n do {\n c = System.in.read();\n } while(c != -1 && (c == '\\n' || c == '\\r'));\n\n return c;\n }", "protected String getInputFromConsole() throws IOException\n {\n BufferedReader consoleInput = new BufferedReader(new InputStreamReader(System.in));\n return consoleInput.readLine();\n }", "@Override\n public void queueSecureInputBuffer(\n int index, int offset, CryptoInfo info, long presentationTimeUs, int flags) {\n bufferEnqueuer.queueSecureInputBuffer(index, offset, info, presentationTimeUs, flags);\n }", "@Override\r\n\t\tpublic void run() {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tString buffer;\r\n\t\t\t\t\r\n\t\t\t\twhile(!exit){\r\n\t\t\t\t\tbuffer = in.readLine();\r\n\t\t\t\t\tsetChanged();\r\n\t\t\t\t\tnotifyObservers(buffer);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void run(){\n while (!stop) {\n \ttry {\n \t\tthis.nrOfChars=br.read(cbuf);\n \t} catch (IOException e1) {\n \t\te1.printStackTrace();\n \t}\n \t/**/\n\t\t\t//input=br.readLine();\n\t\t\tfor (int i=0; i<this.nrOfChars; i++){\n\t\t\t\tSystem.out.print(cbuf[i]);\n\t\t\t}\n\t\t\t\n\t\t\tif(cbuf[0]=='1'||(cbuf[nrOfChars-9]=='Y' && cbuf[nrOfChars-8]=='O' && cbuf[nrOfChars-7]=='U')){\t\t\t\t\n\t\t\t\tstop=true;\n\t\t\t\tsynchronized(this){\n\t\t\t\t\tthis.notifyAll();\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"\\nEnter Letter\");\n\t\t\t\tsynchronized(this){\n\t\t\t\t\tthis.notifyAll();\t\n\t\t\t\t}\n\t\t\t}\n }\n\t}", "public static void Input(){\n try{\n prepareReader();\n String linea=\"\";\n while((linea = br.readLine()) != null){\n System.out.println(linea);\n }\n br.close();\n System.out.println(\"-------------------------------------------------\");\n }catch (Exception e){\n System.err.println(\"Error al leer del buffer\");\n }\n }", "public PipedOutputStream(PipedInputStream snk) throws IOException {\n connect(snk);\n }", "MyInputStream(String name, InputStream in) {\n this.name = name;\n this.in = new BufferedInputStream(in);\n buffer = new StringBuffer(4096);\n Thread thr = new Thread(this);\n thr.setDaemon(true);\n thr.start();\n }", "public static void main(String[] args) \n throws IOException, InterruptedException {\n BufferedReader stdin =\n new BufferedReader(\n new InputStreamReader(System.in));\n\n while (true) {\n try {\n String inputDataLine = stdin.readLine();\n CallATPListener(inputDataLine);\n } catch(IOException e) {\n System.out.print(\"Unable to read stdin\");\n System.out.print(\"@END\");\n } catch(NullPointerException e) {\n break;\n }\n }\n }", "public abstract InputStream stdout();", "public void run()\n{\n try {\n InputStreamReader in = new InputStreamReader(input_stream);\n int c;\n if(is_synchronized){\n\t while ((c = in.read()) != -1) {\n\t synchronized(lock){\n\t contents.append((char) c);\n\t }\n\t }\n }\n else{\n\t while ((c = in.read()) != -1) {\n\t contents.append((char) c);\n\t }\n }\n }\n catch (Exception e) {\n //that's ok\n }\n}", "public\n static\n CharBuffer\n charBufferFor( CharSequence s )\n {\n inputs.notNull( s, \"s\" );\n \n CharBuffer res = CharBuffer.allocate( s.length() );\n res.append( s );\n res.flip();\n\n return res.asReadOnlyBuffer();\n }", "public void writeInputToProcess(String input, String charSet) {\n if (StringUtils.isEmpty(input)) {\n throw new IllegalArgumentException();\n }\n processDataIn_.add(new ProcessOutputData(input, charSet));\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 void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\t\ttry {\n\t\t\tinternalSocket = new Socket(\"localhost\", getPort());\n\t\t\tin = new ObjectInputStream(socket.getInputStream());\n\n\t\t\tinternalOut = new ObjectOutputStream(\n\t\t\t\t\tinternalSocket.getOutputStream());\n\t\t} catch (IOException e1) {\n\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\treturn;\n\t\t}\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tString message = in.readUTF();\n\n\t\t\t\t// take message and redirect this message to\n\t\t\t\t// second console\n\t\t\t\tsendMessage(message);\n\n\t\t\t\tif (message.equalsIgnoreCase(\"bye\")) {\n\t\t\t\t\tclose();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} catch (Exception efEx) {\n\t\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\t\ttry {\n\t\t\t\t\tclose();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public int Write(String message) {\n\tchildStdin.AddCharacters(message);\n\treturn message.length();\n }", "private void processInputData() throws IOException {\n\t\tout.write(Protocol.PC_READY.value);\n\t\tout.flush();\n\t\tInputBuffer buffer = InputBuffer.readFrom(in);\n\t\tdispatcher.dispatch(buffer.entries);\n\t}", "public static final void copyInputStream(int bufferSize, InputStream in, OutputStream out) throws IOException {\r\n\t\tbyte[] buffer = new byte[bufferSize];\r\n\t int len;\r\n\r\n\t while((len = in.read(buffer)) >= 0)\r\n\t out.write(buffer, 0, len);\r\n\r\n\t \r\n\t in.close();\r\n\t out.flush();\r\n\t out.close();\r\n\t \r\n\t}", "public native int sendBuf(ByteBuffer buffer, int bufferSize, long nativeHandle);", "public void send() throws InterruptedException, IOException\n {\n netCat.setInput( new ByteArrayInputStream( inputFromTest.getBytes() ) );\n netCat.execute( SEND.toString() );\n latch.await( 5, TimeUnit.SECONDS );\n\n assertNotNull( result );\n assertEquals( SEND, result.op );\n\n // Wait till nc process will be started definitely\n while( process == null ) {\n Thread.sleep( 100 );\n }\n\n // Get received string by external nc process\n BufferedReader b = new BufferedReader( new InputStreamReader( process.getInputStream() ) );\n String line;\n do {\n line = b.readLine();\n Log.i( CLASS_NAME, line );\n } while( !INPUT_TEST.equals( line ) );\n }", "public synchronized final void\n\t\trun()\n\t{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = null;\n\n\t\ttry {\n\t\t\twhile (this.isRunning() && (null != (line = reader.readLine()))) {\n\t\t\t\ttry {\n\t\t\t\t\t_handler.handleCommand(line);\n\t\t\t\t} catch (RuntimeException ex) {\n\t\t\t\t\t_LOG.error(new Strings(new Object[]\n\t\t\t\t\t\t{this, \":\", StackTrace.formatStackTrace(ex)}));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException ex) {\n\t\t\t_LOG.error(new Strings(new Object[]\n\t\t\t\t{this, \":\", StackTrace.formatStackTrace(ex)}));\n\t\t}\n\n\t\tif (line == null) {\n\t\t\tif (this.isRunning()) {\n\t\t\t\t_handler.handleCommand(\"quit\");\n\t\t\t}\n\t\t}\n\n\t\t_LOG.warn(\"Console exiting.\");\n\t}", "public static native void send( String cmd );", "public static void main(String[] args) {\n\t\tString charactorSet = \"UTF-8\";\n\t\tString string = \"꽑한글과Alphabet조합\";\n\n\t\tCharset charset = Charset.forName(charactorSet);\n\t\tCharsetEncoder charsetEncoder = charset.newEncoder();\n\n\t\tCharBuffer charBuffer = CharBuffer.allocate(64);\n\t\tcharBuffer.put(string);\n\t\tcharBuffer.flip();\n\n\t\tByteBuffer byteBuffer = ByteBuffer.allocate(6);\n\n\t\tCoderResult coderResult = null;\n\t\tFileOutputStream fileOutputStream = null;\n\t\tFileChannel fileChannel = null;\n\t\t\n\t\tSystem.out.println(\"string\t\t\t:\t\" + string);\n\t\tSystem.out.println(\"string.length()\t\t:\t\" + string.length());\n\t\tSystem.out.println(\"=======================================================\");\n\t\tSystem.out.println(\"charBuffer.length()\t:\t\" + charBuffer.length());\n\t\tSystem.out.println(\"charBuffer.limit()\t:\t\" + charBuffer.limit() );\n\t\tSystem.out.println(\"charBuffer.position()\t:\t\" + charBuffer.position() );\n\t\tSystem.out.println(\"charBuffer.toString()\t:\t\" + charBuffer.toString() );\n\t\ttry {\n\t\t\tfileOutputStream = new FileOutputStream(\"temp.tmp\");\n\t\t\tfileChannel = fileOutputStream.getChannel();\n\n\t\t\twhile (true) {\n\t\t\t\tcoderResult = charsetEncoder.encode(charBuffer, byteBuffer, true);\n\t\t\t\tbyteBuffer.flip();\n\t\t\t\tfileChannel.write(byteBuffer);\n\t\t\t\tbyteBuffer.clear();\n\t\t\t\tSystem.out.println(\"=======================================================\");\n\t\t\t\tSystem.out.println(\"coderResult\t\t\t\t: \" + coderResult );\n\t\t\t\tSystem.out.println(\"\\ncharBuffer.limit()\t\t\t: \" + charBuffer.limit() );\n\t\t\t\tSystem.out.println(\"charBuffer.position()\t\t\t: \" + charBuffer.position() );\n\t\t\t\tSystem.out.println(\"charBuffer.toString()\t\t\t: \" + charBuffer.toString() );\n\t\t\t\tSystem.out.println(\"\\nbyteBuffer.toString()\t\t\t: \" + byteBuffer.toString() );\n\t\t\t\tSystem.out.println(\"byteBuffer.remaining()\t\t\t: \" + byteBuffer.remaining() );\n\t\t\t\tSystem.out.println(\"new String(byteBuffer.array())\t\t: \" + new String(byteBuffer.array()) );\n\t\t\t\t\n\n\t\t\t\tif (coderResult == CoderResult.UNDERFLOW) {\n\t\t\t\t\tif (charBuffer.position() == charBuffer.limit()) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"=======================================================\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "void onInput(Terminal terminal, int numChars, String current);", "public void write_to_buffer(byte[] buffer) throws IOException {\r\n ByteArrayOutputStream byte_out = new ByteArrayOutputStream(buffer.length);\r\n DataOutputStream out = new DataOutputStream(byte_out);\r\n\r\n write_to_buffer(out);\r\n\r\n byte[] bytes = byte_out.toByteArray();\r\n for (int i = 0; i < buffer.length; ++i) {\r\n buffer[i] = bytes[i];\r\n }\r\n\r\n out.close();\r\n byte_out.close();\r\n }", "public void flush(){\n\t\ttry{\n\t\t\tse.write(buffer, 0, bufferPos);\n\t\t\tbufferPos = 0;\n\t\t\tse.flush();\n\t\t}catch(IOException ioex){\n\t\t\tfailures = true;\n\t\t}\n\t}", "@Override\r\n\tpublic void PushToBuffer(ByteBuffer buffer)\r\n\t{\r\n\t\r\n\t}", "public void write(byte[] buffer);", "public void write(char c){\n\t\tbuffer[bufferPos++] = c;\n\n\t\tif(bufferPos == limit) flush();\n\t}", "public static void waitForInput() {\n BufferedReader buffyTheVampireSlayer = new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Press Enter To Continue...\");\n try {\n buffyTheVampireSlayer.readLine();\n } catch (IOException e) {\n System.out.println(e);\n System.out.println(\"an unexpected error occurred\");\n }\n }", "public InputStream inputWrap(InputStream is) \n throws IOException {\n logger.fine(Thread.currentThread().getName() + \" wrapping input\");\n \n // discard any state from previously-recorded input\n this.characterEncoding = null;\n this.inputIsChunked = false;\n this.contentEncoding = null; \n \n this.ris.open(is);\n return this.ris;\n }", "public void run()\n\t {\n\t stdin = new Scanner(System.in);\n\t boolean done = false;\n\t while ( !done )\n\t {\n\t String command = stdin.next();\n\t char ccommand=command.charAt(0);\n\t switch (ccommand) \n\t { \n\t case 'I': add('I');\n\t\t\t break; \n\t case 'O': add('O');\n\t break;\n\t case 'N': add('N');\n\t break;\n\t case 'R': remove();\n\t break;\n\t case 'P': print();\n\t break;\n\t case 'Q': \n\t System.out.println(\"Program terminated\");\n\t done = true;\n\t break;\n\t default: //deal with bad command here \n\t System.out.println(\"Command\"+\"'\"+command+\"'\"+\"not supported!\");\t\t\n\t } \n\t }\n\t }", "void suspendInput();", "public void run()\r\n {\r\n Scanner sc = new Scanner(System.in);\r\n while(socket.isConnected())\r\n {\r\n String comm = sc.nextLine();\r\n\r\n }\r\n }", "@Override\n public void run() {\n try {\n\n byte[] data = new byte[TcpClient.BUFFER_SIZE * 2];\n\n while(!Rebroadcaster.INSTANCE.isHalted()) {\n int len = is.read(data, 0, data.length);\n os.write(data, 0, len);\n os.flush();\n }\n } catch (IOException ex) {\n LOGGER.log(Level.SEVERE, null, ex);\n }\n }", "public MyInputStream()\n {\n in = new BufferedReader\n (new InputStreamReader(System.in));\n }", "public static void main(String[] args) {\n//\t\tStringBuffer stringBuffer=new StringBuffer(\"aaaa\");\n//\t\t\n//\t\tSystem.out.println(stringBuffer);\n//\t\t\n\t\tScanner scanner=new Scanner(System.in);\n\t\t\n\t\tStringBuffer stringBuffer2=new StringBuffer();\n\t\tfor(int i=0;i<10;i++){\n\t\tString input =scanner.nextLine();\n\t\tstringBuffer2.append(input);\n\t\t}\n\t\tSystem.out.println(stringBuffer2);\n\t\t\n\t}", "@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 }", "Buffer copy();", "public void send(char ch) {\n try {\n writer.write(ch);\n } catch (IOException e) {\n throw new SpawnException(REDIRECT_OUTPUT_FAILURE, e);\n }\n }", "public static void stream(final InputStream in, final OutputStream out) throws IOException {\n\t\tfinal byte buffer[] = new byte[BUFFER_SIZE];\r\n\t\tint len = buffer.length;\r\n\t\twhile (true) {\r\n\t\t\tlen = in.read(buffer);\r\n\t\t\tif (len == -1) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tout.write(buffer, 0, len);\r\n\t\t}\r\n\t\tout.flush();\r\n\t}", "private void interactive() {\r\n\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.print(\"Enter Command: \");\r\n\t\t\ttry {\r\n\t\t\t\tprocessCommandSet(tokenizeInput(keyboard.readLine()));\r\n\t\t\t\tif (quit == true) {\r\n\t\t\t\t\tSystem.out.println(\"Terminated at users request.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"An IO Error Occured. \" + e.getMessage());\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "private void sendBody(OutputStream outputStream, long pending) throws IOException {\n\t\t\tlong BUFFER_SIZE = 16 * 1024;\n\t\t\tbyte[] buff = new byte[(int) BUFFER_SIZE];\n\t\t\tboolean sendEverything = pending == -1;\n\t\t\twhile (pending > 0 || sendEverything) {\n\t\t\t\tlong bytesToRead = sendEverything ? BUFFER_SIZE : Math.min(pending, BUFFER_SIZE);\n\t\t\t\tint read = this.data.read(buff, 0, (int) bytesToRead);\n\t\t\t\tif (read <= 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\toutputStream.write(buff, 0, read);\n\t\t\t\tif (!sendEverything) {\n\t\t\t\t\tpending -= read;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "void process() throws IOException\n\t{\n\t\tboolean done = false;\n\t\twhile(!done)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * Now if we are in a session and that session is suspended then we go\n\t\t\t\t * into a state where we wait for some user interaction to get us out\n\t\t\t\t */\n\t\t\t\trunningLoop();\n\n\t\t\t\t/* if we are in the stdin then put out a prompt */\n\t\t\t\tif (!haveStreams())\n\t\t\t\t\tdisplayPrompt();\n\n\t\t\t\t/* now read in the next line */\n\t\t\t\treadLine();\n\t\t\t\tif (m_currentLine == null)\n\t\t\t\t\tbreak;\n\n\t\t\t\tdone = processLine();\n\t\t\t}\n\t\t\tcatch(NoResponseException nre)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noResponseException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NotSuspendedException nse)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"notSuspendedException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(AmbiguousException ae)\n\t\t\t{\n\t\t\t\t// we already put up a warning for the user\n\t\t\t}\n\t\t\tcatch(IllegalStateException ise)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"illegalStateException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(IllegalMonitorStateException ime)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"illegalMonitorStateException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NoSuchElementException nse)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noSuchElementException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NumberFormatException nfe)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"numberFormatException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(SocketException se)\n\t\t\t{\n\t\t\t\tMap<String, Object> socketArgs = new HashMap<String, Object>();\n\t\t\t\tsocketArgs.put(\"message\", se.getMessage()); //$NON-NLS-1$\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"socketException\", socketArgs)); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(VersionException ve)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"versionException\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tcatch(NotConnectedException nce)\n\t\t\t{\n\t\t\t\t// handled by isConnectionLost()\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"unexpectedError\")); //$NON-NLS-1$\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"stackTraceFollows\")); //$NON-NLS-1$\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t// check for a lost connection and if it is clean-up!\n\t\t\tif (isConnectionLost())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tdumpHaltState(false);\n\t\t\t\t}\n\t\t\t\tcatch(PlayerDebugException pde)\n\t\t\t\t{\n\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"sessionEndedAbruptly\")); //$NON-NLS-1$\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public final static void pipe(final InputStream in, final OutputStream out)\n {\n new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n IOUtils.copy(in, out);\n }\n catch (IOException e)\n {\n // Do nothing\n }\n }\n }).start();\n }", "public void write(String text) throws ShellIOException;", "public void write(int c) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append((char)c);\r\n }", "TclInputStream(InputStream inInput) {\n input = inInput;\n }", "public void bindTo(OutputStream os) throws IOException {\n }", "private void putCommand(String cmd) {\n try {\n stream.write((cmd).getBytes(StandardCharsets.UTF_8));\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void write(int i) throws IOException {\n if (pos == BUFFER_SIZE) {\n flush();\n }\n buffer[pos++] = (byte)i;\n }", "private void decodeBuffer(boolean flushBuffer) throws IOException {\n if (!flushBuffer && bb.position() < PROCESS_THRESHOLD) {\n return;\n }\n bb.flip();\n cd.reset();\n if (bb.hasRemaining()) {\n CoderResult cr = cd.decode(bb, cb, true);\n cd.flush(cb);\n if (cr.isMalformed()) {\n // Move the tail bytes to the head\n int tailLength = bb.remaining();\n if (tailLength >= MALFORMED_INPUT_MAX_LENGTH) {\n // We only expect the bytes of one character to be broken\n throw new MalformedInputException(tailLength);\n }\n }\n bb.compact();\n } else {\n bb.clear();\n }\n }", "protected String readLine()\n { try { if (stdin!=null) return stdin.readLine(); } catch (IOException e) {}\n return null;\n }", "@Override\n public void queueInputBuffer(\n int index, int offset, int size, long presentationTimeUs, int flags) {\n bufferEnqueuer.queueInputBuffer(index, offset, size, presentationTimeUs, flags);\n }", "public void processInput() {\n\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\ttry {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tOutputStream outStream = Channels.newOutputStream(socket);\r\n\t\t\t\t\t\r\n\t\t\t\t\tScanner in = new Scanner(socket);\r\n\t\t\t\t\tPrintWriter out = new PrintWriter(outStream, true);\r\n\t\t\t\t\tout.println(\"Hello,welcome connecting to 8189!\");\r\n\t\t\t\t\tout.println(\"Please Enter BYE to safely exit!\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tboolean flag = true;\r\n\t\t\t\t\twhile(flag && in.hasNextLine()){\r\n\t\t\t\t\t\tString line = in.nextLine();\r\n\t\t\t\t\t\tout.println(\"Echo: \" + line);\r\n\t\t\t\t\t\tif(line.trim().equals(\"BYE\")) flag = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t} finally{\r\n\t\t\t\t\tsocket.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\t\r\n\t\t}", "private static void copy(InputStream in, OutputStream out) throws IOException {\n byte[] buffer = new byte[4096];\n while (true) {\n int bytesRead = in.read(buffer);\n if (bytesRead < 0) {\n break;\n }\n out.write(buffer, 0, bytesRead);\n }\n }", "@Override\n\tpublic void run() {\n\t\twhile(!exit) {\n\t\t\t//Do something\n\t\t\tgetInput();\n\t\t}\n\t}", "private static StringBuilder receiveInputStream(InputStream input) throws IOException{\r\n\t\tStringBuilder response = new StringBuilder();\r\n\t\tint i;\r\n\t\twhile((i = input.read())!= -1){//stock the inputstream\r\n\t\t\tresponse.append((char)i); \r\n\t\t}\r\n\t\treturn response;\r\n\t}", "@Override\n public void flush() throws IOException\n {\n for(;;) {\n int index = indexOneOf(builder, '\\r', '\\n');\n if(index == -1) {\n break;\n }\n // ignore false returned by offer when queue is full\n queue.offer(builder.substring(0, index));\n\n if(builder.charAt(index) == '\\r') {\n ++index;\n }\n if(builder.charAt(index) != '\\n') {\n throw new IllegalStateException();\n }\n ++index;\n builder.delete(0, index);\n }\n }", "public void waitForInputSignal(){\r\n\t\ttry {\r\n\t\t\tSystem.in.read();\r\n\t\t\tSystem.in.read();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void handlePasswordCallback(PasswordCallback pc)\n throws IOException {\n System.out.print(pc.getPrompt());\n System.out.flush();\n String passwd = (new BufferedReader(new InputStreamReader(System.in))).\n readLine();\n pc.setPassword(passwd.toCharArray());\n }" ]
[ "0.59137243", "0.5484983", "0.51204115", "0.5043423", "0.49343234", "0.4882643", "0.48609343", "0.48189938", "0.47587165", "0.4624487", "0.46077088", "0.4587859", "0.45550424", "0.44874686", "0.4482309", "0.44788837", "0.44588655", "0.44571772", "0.4439288", "0.4437989", "0.44371286", "0.44084385", "0.43848383", "0.43457335", "0.43252194", "0.43188852", "0.43137056", "0.43095475", "0.4293133", "0.42825115", "0.42601117", "0.42525697", "0.4246315", "0.4227238", "0.42151356", "0.42107826", "0.4208612", "0.42056268", "0.41957566", "0.4178239", "0.4166842", "0.41647208", "0.4163768", "0.41509482", "0.41503286", "0.4131017", "0.41263163", "0.41214186", "0.41198537", "0.4117634", "0.4104848", "0.41046235", "0.4100369", "0.41003436", "0.40764153", "0.40758517", "0.406753", "0.40613985", "0.40613195", "0.40593472", "0.40497187", "0.4047422", "0.40472353", "0.4042834", "0.4035159", "0.4031852", "0.4024457", "0.40203053", "0.4012088", "0.401051", "0.40078625", "0.4004945", "0.40035513", "0.40013433", "0.40004444", "0.39911035", "0.3989478", "0.39841923", "0.3975623", "0.39687845", "0.3963661", "0.39634153", "0.3960001", "0.39541417", "0.39512694", "0.39484766", "0.3948434", "0.39406428", "0.3936892", "0.39316854", "0.39315522", "0.39311412", "0.3929534", "0.39236364", "0.39220127", "0.3915836", "0.39087752", "0.39065915", "0.38947508", "0.38945943", "0.38894883" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table uc_order_guest_info
int countByExample(UcOrderGuestInfoExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UcOrderGuestInfo selectByPrimaryKey(Long id);", "List<UcOrderGuestInfo> selectByExample(UcOrderGuestInfoExample example);", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public GuestInfo getGuestInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo res){\n\t\tGuestInfo guestInfo = new GuestInfo();\n\t\t\n\t\tguestInfo.setSelectedFlag( res.getSelectedFlag() );\n\t\tguestInfo.setGuestId( res.getGuestId() );\n\t\tguestInfo.setTitle( res.getTitle() );\n\t\tguestInfo.setFirstName( res.getFirstName() );\n\t\tguestInfo.setMiddleName( res.getMiddleName() );\n\t\tguestInfo.setLastName( res.getLastName() );\n\t\tguestInfo.setGender( res.getGender() );\n\t\tguestInfo.setPhoneNumber( res.getPhoneNumber() );\n\t\tguestInfo.setEmailId( res.getEmailId() );\n\t\tguestInfo.setParentGuestId( res.getParentGuestId() );\n\t\tguestInfo.setEmergencyContactName( res.getEmergencyContactName() );\n\t\t//Start the the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\t// Map/Setting the emergency contact phone correctly.\n\t\tguestInfo.setEmergencyContactPhone( res.getEmergencyContactPhone() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\tguestInfo.setFrequentFlyerNo( res.getFrequentFlyerNo() );\n\t\tguestInfo.setAirRemarks( res.getAirRemarks() );\n\t\tguestInfo.setHotelRemarks( res.getHotelRemarks() );\n\t\tguestInfo.setCruiseRemarks( res.getCruiseRemarks() );\n\t\tguestInfo.setMealRequest( res.getMealRequest() );\n\t\tguestInfo.setAirRequest( res.getAirRequest() );\n\t\tguestInfo.setGroundRequest( res.getGroundRequest() );\n\t\tguestInfo.setCateringRequest( res.getCateringRequest() );\n\t\tguestInfo.setSeatPreference( res.getSeatPreference() );\n\t\tguestInfo.setPnrNumber( res.getPnrNumber() );\n\t\tguestInfo.setStatus( res.getStatus() );\n\t\tguestInfo.setRedressNumber( res.getRedressNumber() );\n\t\tguestInfo.setChangeType( res.getChangeType() );\n\t\tguestInfo.setOldPaxId( res.getOldPaxId() );\n\t\tguestInfo.setPaxWeight( res.getPaxWeight() );\n\t\tif( res.getAge() != null ){\n\t\t\tguestInfo.setAge( res.getAge().byteValue() );\n\t\t}\n\t\tif( res.isLapChild() != null ){\n\t\t\tguestInfo.setLapChild( res.isLapChild().booleanValue() );\n\t\t}\n\t\tif( res.getDateOfBirth() != null ){\n\t\t\tguestInfo.setDateOfBirth( this.dateConverterXMLtoUtilBirthDate( res.getDateOfBirth() ) );\n\t\t}\n\t\tif( (res.getAgeCode() != null) && (res.getAgeCode().getAge() > 0) ){\n\t\t\tguestInfo.setAgeCode( this.getAgeCode( res.getAgeCode() ) );\n\t\t}\n\t\tif( res.getPassportInfo() != null ){\n\t\t\tguestInfo.setPassportInfo( this.getPassportInfo( res.getPassportInfo() ) );\n\t\t}\n\t\tif( res.getPriceBreakup() != null ){\n\t\t\tguestInfo.setPriceBreakup( this.getGuestPriceBreakup( res.getPriceBreakup() ) );\n\t\t}\n\t\t\n\t\treturn guestInfo;\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\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}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tString s = \"user's id=\" + id +\"hotel Name = \" + hotelName +\", RoomNumber\" + roomNumber+\" hotelPrice=\" + price + \", roomType=\" + type; \n\t\treturn s;\n\t}", "public List<Output> viewOrders(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n List<PurchaseOrder> poList = new ArrayList<PurchaseOrder>();\n List<Output> outputList = new ArrayList<>();\n\n try {\n session.beginTransaction();\n\n String sqlQuery = \"select po.id , po.poNumber, po.seller_vendor, po.dueDate, po.status, po.priority, org.shipFrom, des.shipTo, po.transResp \\n\" +\n \"from PurchaseOrder po \\n\" +\n \"join purchaseorder_origin_address porg on po.id=porg.PurchaseOrder_id\\n\" +\n \"join origin_address org on org.ID=porg.originAddresses_ID\\n\" +\n \"join purchaseorder_destination_address pd on po.id=pd.PurchaseOrder_id\\n\" +\n \"join destination_address des on des.ID=pd.destinationAddresses_ID \";\n\n SQLQuery query = session.createSQLQuery(sqlQuery);\n query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n /*query.setFirstResult(RetrieveAction.count*5);\n RetrieveAction.count++;\n query.setMaxResults(5);*/\n poList = query.list();\n tx.commit();\n session.close();\n for(Object po : poList){\n Map m = (Map) po;\n Output output = new Output();\n output.setPoNumber((int)m.get(\"poNumber\"));\n output.setSupplier(m.get(\"seller_vendor\").toString());\n output.setDueDate((Date) m.get(\"dueDate\"));\n output.setStatus(m.get(\"status\").toString());\n output.setPriority(m.get(\"priority\").toString());\n output.setShipfrom(m.get(\"shipFrom\").toString());\n output.setShipto(m.get(\"shipTo\").toString());\n output.setTransresp(m.get(\"transResp\").toString());\n outputList.add(output);\n }\n\n return outputList;\n\n } catch (Exception e) {\n System.err.println(\"Error getting Users :\" + e.getMessage());\n session.getTransaction().rollback();\n }\n return outputList;\n }", "TbaDeliveryinfo selectByPrimaryKey(Integer deliveryid);", "@Override\n\tpublic String inspectPrimaryKey() {\n\t\treturn \"INDV_ELG: \" + \"bnft_pin_num=\" + bnft_pin_num + \",\" + \"bnft_case_num=\" + bnft_case_num + \",\" + \"cat_cd=\" + cat_cd + \",\" + \"scat_cd=\"\n\t\t\t\t+ scat_cd + \",\" + \"scat_seq_num=\" + scat_seq_num + \",\" + \"cur_elg_ind=\" + cur_elg_ind + \",\" + \"pymt_beg_dt=\" + pymt_beg_dt;\n\t}", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "organize_infoBean selectByPrimaryKey(Integer id);", "public List getOrderDetails(OrderDetail orderDetail);", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "@Override\n\tpublic ProductVO detailOrderList(int p_num) {\n\t\treturn sql.selectOne(\"detailOrderList\", p_num);\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "public void selectSomeField() {\n\t\tList<com.service.JpaSelectSpecificColumns.SubOrder> findAllSubOrder = springDataSelectSpecificColumns.findAllSubOrder();\n\t\tfindAllSubOrder.forEach(t -> System.out.println(t));\n\t}", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "int insert(UcOrderGuestInfo record);", "@Override\r\n\tpublic List<OrderDetailBean> query(OrderDetailBean detail) {\n\t\treturn dao.query(detail);\r\n\t}", "@Override\n public String getSearchIDFromDB(String email, String vertical) {\n String sql = \"select SEARCH_ID from SEARCH a inner join customer c on \" +\n \"a.CUSTOMER_ID = c.CUSTOMER_ID where \" +\n \"CLASS = '\" + vertical + \"' and \" +\n \"c.EMAIL = '\" + email + \"' \" +\n \"order by a.CREATE_DATE desc\";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"SEARCH_ID\").toString();\n }", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Address> selectAll();", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "public int getGuestAddress() {\n return guestAddress;\n }", "@Override\n\tpublic Serializable generate(SessionImplementor s, Object obj) {\n\t\tString name = \"HDFC000\";\n\t\tConnection con = s.connection();\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"select USR_ACCT_NO from HDFC_USR_INFO order by USR_ACCT_NO DESC\");\n\t\t\tif(rs.next()){\n\t\t\t\tname = name+rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn name;\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileSessionCreatedByColumn()\n {\n return newMobileSessionCreatedByColumn(\"Mobile Session Created By\");\n }", "int insertSelective(UcOrderGuestInfo record);", "public ArrayList<Guest02Dto> getList(){\n\t\tArrayList<Guest02Dto> list=new ArrayList<Guest02Dto>();\n\t\tString sql=\"select num,sub,(select name from user02 \";\n\t\tsql+=\" where num=unum) as uname,pay from GUEST02\";\n\t\tjavax.sql.DataSource source=null;\n\t\ttry {\n\t\t\tInitialContext init = new InitialContext();\n\t\t\tContext context=(Context)init.lookup(\"java:/comp/env\");\n\t\t\tsource=(javax.sql.DataSource) context.lookup(\"jdbc/oracle\");\n\t\t\t\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\tResultSet rs=null;\n\t\t\n\t\ttry {\n\t\t\tconn=source.getConnection();\n\t\t\tpstmt=conn.prepareStatement(sql);\n\t\t\trs=pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuest02Dto bean=new Guest02Dto();\n\t\t\t\tbean.setNum(rs.getInt(\"num\"));\n\t\t\t\tbean.setSub(rs.getString(\"sub\"));\n\t\t\t\tbean.setName(rs.getString(\"uname\"));\n\t\t\t\tbean.setPay(rs.getInt(\"pay\"));\n\t\t\t\tlist.add(bean);\n\t\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(rs!=null)rs.close();\n\t\t\t\tif(pstmt!=null)pstmt.close();\n\t\t\t\tif(conn!=null)conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }", "@Override public final String toString() {\r\n return String.format(this.vId + \"\\t\" + this.vName\r\n + \"\\t\" + this.vUserName + \"\\t\" + this.vPassword + \"\\t\" + this.vPhone);\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Customer[id=\"+id+\",firstName=\"+firstName+\",lastName=\"+lastName+\",age=\"\r\n\t\t\t\t+age+\",createdTime=\"+createdTime+\",updateTime=\"+updateTime+\"]\";\r\n\t}", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "public Table buildAssetDetailsTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 610px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tif (dto.getAssetConfig() != null && dto.getAssetConfig().size() > 0) {\n\n\t\t\tint count = 0;\n\n\t\t\tfor (AssetConfig asset : dto.getAssetConfig()) {\n\n\t\t\t\tTableRow row = new TableRow();\n\n\t\t\t\tTableData facility = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getFacility())));\n\t\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\t\tTableData workCenterCode = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getWorkCenterCode())));\n\t\t\t\tworkCenterCode.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 15% ; vertical-align: middle\");\n\n\t\t\t\tTableData description = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getDescription())));\n\t\t\t\tdescription.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 35% ; vertical-align: middle\");\n\n\t\t\t\tTableData assetNumber = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(/*asset.getAssetNumber()*/\"123456789123456\")));\n\t\t\t\tassetNumber.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 20% ; vertical-align: middle\");\n\n\t\t\t\tString statusFlag = asset.getStatus();\n\n\t\t\t\tTableData status;\n\t\t\t\tif (!\"A\".equalsIgnoreCase(statusFlag)) {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" />\"));\n\t\t\t\t} else {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t\t}\n\t\t\t\tstatus.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\t\tstatus.addAttribute(\"disabled\", \"disabled\");\n\n\t\t\t\tTableData editImage = new TableData(new Image(\n\t\t\t\t\t\t\"static/images/edit.jpg\", \"Edit\"));\n\t\t\t\teditImage.addAttribute(\"style\", \"width: 10%\");\n\t\t\t\teditImage.addAttribute(\"onClick\", \"javascript:edit('\" + count\n\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getWorkCenterCode())\n\t\t\t\t\t\t+ \"','\" + asset.getFacility() + \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getDescription()) + \"','\"\n\t\t\t\t\t\t+ asset.getAssetNumber() + \"','\" + asset.getStatus()\n\t\t\t\t\t\t+ \"');\");\n\t\t\t\teditImage.addAttribute(\"style\", \"cursor: pointer;\");\n\n\t\t\t\trow.addTableData(facility);\n\t\t\t\trow.addTableData(workCenterCode);\n\t\t\t\trow.addTableData(assetNumber);\n\t\t\t\trow.addTableData(description);\n\t\t\t\trow.addTableData(status);\n\t\t\t\trow.addTableData(editImage);\n\n\t\t\t\tif (count % 2 == 0) {\n\t\t\t\t\trow.addAttribute(\"class\", \"normalRow\");\n\t\t\t\t} else {\n\t\t\t\t\trow.addAttribute(\"class\", \"alternateRow\");\n\t\t\t\t}\n\t\t\t\ttable.addTableRow(row);\n\t\t\t\tcount++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn table;\n\t}", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "Basicinfo selectByPrimaryKey(String taxregcode);", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}", "@Override\n public String toString() {\n String details = \"\";\n\n if (this.columnType.getValue() != ColumnType._ANY) {\n details += \" typu '\" + this.columnType.getValue().toString() + \"'\";\n }\n if (!this.columnName.getValue().isEmpty()) {\n details += \" s názvem '\" + this.columnName.getValue() + \"'\";\n }\n if (this.columnIsPrimary.getValue() != YesNoType._ANY) {\n details += \", které \" + (this.columnIsPrimary.getValue() == YesNoType.YES ? \"jsou\" : \"nejsou\") + \" primárním klíčem,\";\n }\n\n return \"Počet sloupců\" + details + \" v každé tabulce \" + this.countOp.getValue() + \" \" + this.count.getValue();\n }", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "ClOrderInfo selectByPrimaryKey(String orderId);", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "@Override\r\npublic List<OrderInfo> selectUnfinishedSaleOrderList() {\n\t\treturn OrderInfoMapper.selectUnfinishedSaleOrderList();\r\n}", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic List<HashMap<String, String>> GeunTaeList(HashMap<String, String> params) {\n\t\treturn sqlsession.selectList(\"GeuntaeMgnt.GeunTaeList\",params);\r\n\t}", "@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}" ]
[ "0.5967312", "0.54307216", "0.5095361", "0.5056573", "0.50336015", "0.5020163", "0.50114596", "0.4977055", "0.4975924", "0.49726197", "0.49679083", "0.49661392", "0.49465713", "0.49343327", "0.49217805", "0.49192396", "0.4898314", "0.48977977", "0.4890611", "0.4889592", "0.48627892", "0.4862108", "0.48511332", "0.4847869", "0.48464978", "0.48398867", "0.4818299", "0.4795115", "0.47923705", "0.47843912", "0.47841007", "0.47732058", "0.475674", "0.4746502", "0.4746502", "0.47444993", "0.47402152", "0.47269475", "0.47069502", "0.47042647", "0.46935254", "0.46935004", "0.46880412", "0.46691424", "0.46686402", "0.46682388", "0.46560967", "0.4654693", "0.46518788", "0.46505314", "0.4650502", "0.46478474", "0.4647416", "0.46429506", "0.46393457", "0.46202576", "0.46146044", "0.46145752", "0.46120426", "0.46024108", "0.4599539", "0.45891696", "0.45880646", "0.45847338", "0.45813796", "0.45813447", "0.4580121", "0.4579681", "0.4575782", "0.4572363", "0.45678884", "0.45677313", "0.45542005", "0.45534444", "0.45502147", "0.45501253", "0.4548513", "0.45473075", "0.45406452", "0.45404264", "0.45384142", "0.45353523", "0.45314878", "0.4531106", "0.4528855", "0.4526603", "0.4526152", "0.4521833", "0.45194894", "0.4515628", "0.4512006", "0.45112592", "0.4509336", "0.44963232", "0.44961762", "0.44946957", "0.449393", "0.44933403", "0.44913507", "0.44884542", "0.44851267" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table uc_order_guest_info
int deleteByExample(UcOrderGuestInfoExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UcOrderGuestInfo selectByPrimaryKey(Long id);", "List<UcOrderGuestInfo> selectByExample(UcOrderGuestInfoExample example);", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public GuestInfo getGuestInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo res){\n\t\tGuestInfo guestInfo = new GuestInfo();\n\t\t\n\t\tguestInfo.setSelectedFlag( res.getSelectedFlag() );\n\t\tguestInfo.setGuestId( res.getGuestId() );\n\t\tguestInfo.setTitle( res.getTitle() );\n\t\tguestInfo.setFirstName( res.getFirstName() );\n\t\tguestInfo.setMiddleName( res.getMiddleName() );\n\t\tguestInfo.setLastName( res.getLastName() );\n\t\tguestInfo.setGender( res.getGender() );\n\t\tguestInfo.setPhoneNumber( res.getPhoneNumber() );\n\t\tguestInfo.setEmailId( res.getEmailId() );\n\t\tguestInfo.setParentGuestId( res.getParentGuestId() );\n\t\tguestInfo.setEmergencyContactName( res.getEmergencyContactName() );\n\t\t//Start the the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\t// Map/Setting the emergency contact phone correctly.\n\t\tguestInfo.setEmergencyContactPhone( res.getEmergencyContactPhone() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\tguestInfo.setFrequentFlyerNo( res.getFrequentFlyerNo() );\n\t\tguestInfo.setAirRemarks( res.getAirRemarks() );\n\t\tguestInfo.setHotelRemarks( res.getHotelRemarks() );\n\t\tguestInfo.setCruiseRemarks( res.getCruiseRemarks() );\n\t\tguestInfo.setMealRequest( res.getMealRequest() );\n\t\tguestInfo.setAirRequest( res.getAirRequest() );\n\t\tguestInfo.setGroundRequest( res.getGroundRequest() );\n\t\tguestInfo.setCateringRequest( res.getCateringRequest() );\n\t\tguestInfo.setSeatPreference( res.getSeatPreference() );\n\t\tguestInfo.setPnrNumber( res.getPnrNumber() );\n\t\tguestInfo.setStatus( res.getStatus() );\n\t\tguestInfo.setRedressNumber( res.getRedressNumber() );\n\t\tguestInfo.setChangeType( res.getChangeType() );\n\t\tguestInfo.setOldPaxId( res.getOldPaxId() );\n\t\tguestInfo.setPaxWeight( res.getPaxWeight() );\n\t\tif( res.getAge() != null ){\n\t\t\tguestInfo.setAge( res.getAge().byteValue() );\n\t\t}\n\t\tif( res.isLapChild() != null ){\n\t\t\tguestInfo.setLapChild( res.isLapChild().booleanValue() );\n\t\t}\n\t\tif( res.getDateOfBirth() != null ){\n\t\t\tguestInfo.setDateOfBirth( this.dateConverterXMLtoUtilBirthDate( res.getDateOfBirth() ) );\n\t\t}\n\t\tif( (res.getAgeCode() != null) && (res.getAgeCode().getAge() > 0) ){\n\t\t\tguestInfo.setAgeCode( this.getAgeCode( res.getAgeCode() ) );\n\t\t}\n\t\tif( res.getPassportInfo() != null ){\n\t\t\tguestInfo.setPassportInfo( this.getPassportInfo( res.getPassportInfo() ) );\n\t\t}\n\t\tif( res.getPriceBreakup() != null ){\n\t\t\tguestInfo.setPriceBreakup( this.getGuestPriceBreakup( res.getPriceBreakup() ) );\n\t\t}\n\t\t\n\t\treturn guestInfo;\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\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}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tString s = \"user's id=\" + id +\"hotel Name = \" + hotelName +\", RoomNumber\" + roomNumber+\" hotelPrice=\" + price + \", roomType=\" + type; \n\t\treturn s;\n\t}", "public List<Output> viewOrders(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n List<PurchaseOrder> poList = new ArrayList<PurchaseOrder>();\n List<Output> outputList = new ArrayList<>();\n\n try {\n session.beginTransaction();\n\n String sqlQuery = \"select po.id , po.poNumber, po.seller_vendor, po.dueDate, po.status, po.priority, org.shipFrom, des.shipTo, po.transResp \\n\" +\n \"from PurchaseOrder po \\n\" +\n \"join purchaseorder_origin_address porg on po.id=porg.PurchaseOrder_id\\n\" +\n \"join origin_address org on org.ID=porg.originAddresses_ID\\n\" +\n \"join purchaseorder_destination_address pd on po.id=pd.PurchaseOrder_id\\n\" +\n \"join destination_address des on des.ID=pd.destinationAddresses_ID \";\n\n SQLQuery query = session.createSQLQuery(sqlQuery);\n query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n /*query.setFirstResult(RetrieveAction.count*5);\n RetrieveAction.count++;\n query.setMaxResults(5);*/\n poList = query.list();\n tx.commit();\n session.close();\n for(Object po : poList){\n Map m = (Map) po;\n Output output = new Output();\n output.setPoNumber((int)m.get(\"poNumber\"));\n output.setSupplier(m.get(\"seller_vendor\").toString());\n output.setDueDate((Date) m.get(\"dueDate\"));\n output.setStatus(m.get(\"status\").toString());\n output.setPriority(m.get(\"priority\").toString());\n output.setShipfrom(m.get(\"shipFrom\").toString());\n output.setShipto(m.get(\"shipTo\").toString());\n output.setTransresp(m.get(\"transResp\").toString());\n outputList.add(output);\n }\n\n return outputList;\n\n } catch (Exception e) {\n System.err.println(\"Error getting Users :\" + e.getMessage());\n session.getTransaction().rollback();\n }\n return outputList;\n }", "TbaDeliveryinfo selectByPrimaryKey(Integer deliveryid);", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "@Override\n\tpublic String inspectPrimaryKey() {\n\t\treturn \"INDV_ELG: \" + \"bnft_pin_num=\" + bnft_pin_num + \",\" + \"bnft_case_num=\" + bnft_case_num + \",\" + \"cat_cd=\" + cat_cd + \",\" + \"scat_cd=\"\n\t\t\t\t+ scat_cd + \",\" + \"scat_seq_num=\" + scat_seq_num + \",\" + \"cur_elg_ind=\" + cur_elg_ind + \",\" + \"pymt_beg_dt=\" + pymt_beg_dt;\n\t}", "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "organize_infoBean selectByPrimaryKey(Integer id);", "public List getOrderDetails(OrderDetail orderDetail);", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "@Override\n\tpublic ProductVO detailOrderList(int p_num) {\n\t\treturn sql.selectOne(\"detailOrderList\", p_num);\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public void selectSomeField() {\n\t\tList<com.service.JpaSelectSpecificColumns.SubOrder> findAllSubOrder = springDataSelectSpecificColumns.findAllSubOrder();\n\t\tfindAllSubOrder.forEach(t -> System.out.println(t));\n\t}", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "int insert(UcOrderGuestInfo record);", "@Override\r\n\tpublic List<OrderDetailBean> query(OrderDetailBean detail) {\n\t\treturn dao.query(detail);\r\n\t}", "@Override\n public String getSearchIDFromDB(String email, String vertical) {\n String sql = \"select SEARCH_ID from SEARCH a inner join customer c on \" +\n \"a.CUSTOMER_ID = c.CUSTOMER_ID where \" +\n \"CLASS = '\" + vertical + \"' and \" +\n \"c.EMAIL = '\" + email + \"' \" +\n \"order by a.CREATE_DATE desc\";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"SEARCH_ID\").toString();\n }", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Address> selectAll();", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "public int getGuestAddress() {\n return guestAddress;\n }", "@Override\n\tpublic Serializable generate(SessionImplementor s, Object obj) {\n\t\tString name = \"HDFC000\";\n\t\tConnection con = s.connection();\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"select USR_ACCT_NO from HDFC_USR_INFO order by USR_ACCT_NO DESC\");\n\t\t\tif(rs.next()){\n\t\t\t\tname = name+rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn name;\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileSessionCreatedByColumn()\n {\n return newMobileSessionCreatedByColumn(\"Mobile Session Created By\");\n }", "public ArrayList<Guest02Dto> getList(){\n\t\tArrayList<Guest02Dto> list=new ArrayList<Guest02Dto>();\n\t\tString sql=\"select num,sub,(select name from user02 \";\n\t\tsql+=\" where num=unum) as uname,pay from GUEST02\";\n\t\tjavax.sql.DataSource source=null;\n\t\ttry {\n\t\t\tInitialContext init = new InitialContext();\n\t\t\tContext context=(Context)init.lookup(\"java:/comp/env\");\n\t\t\tsource=(javax.sql.DataSource) context.lookup(\"jdbc/oracle\");\n\t\t\t\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\tResultSet rs=null;\n\t\t\n\t\ttry {\n\t\t\tconn=source.getConnection();\n\t\t\tpstmt=conn.prepareStatement(sql);\n\t\t\trs=pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuest02Dto bean=new Guest02Dto();\n\t\t\t\tbean.setNum(rs.getInt(\"num\"));\n\t\t\t\tbean.setSub(rs.getString(\"sub\"));\n\t\t\t\tbean.setName(rs.getString(\"uname\"));\n\t\t\t\tbean.setPay(rs.getInt(\"pay\"));\n\t\t\t\tlist.add(bean);\n\t\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(rs!=null)rs.close();\n\t\t\t\tif(pstmt!=null)pstmt.close();\n\t\t\t\tif(conn!=null)conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "int insertSelective(UcOrderGuestInfo record);", "@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }", "@Override public final String toString() {\r\n return String.format(this.vId + \"\\t\" + this.vName\r\n + \"\\t\" + this.vUserName + \"\\t\" + this.vPassword + \"\\t\" + this.vPhone);\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Customer[id=\"+id+\",firstName=\"+firstName+\",lastName=\"+lastName+\",age=\"\r\n\t\t\t\t+age+\",createdTime=\"+createdTime+\",updateTime=\"+updateTime+\"]\";\r\n\t}", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "public Table buildAssetDetailsTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 610px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tif (dto.getAssetConfig() != null && dto.getAssetConfig().size() > 0) {\n\n\t\t\tint count = 0;\n\n\t\t\tfor (AssetConfig asset : dto.getAssetConfig()) {\n\n\t\t\t\tTableRow row = new TableRow();\n\n\t\t\t\tTableData facility = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getFacility())));\n\t\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\t\tTableData workCenterCode = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getWorkCenterCode())));\n\t\t\t\tworkCenterCode.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 15% ; vertical-align: middle\");\n\n\t\t\t\tTableData description = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getDescription())));\n\t\t\t\tdescription.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 35% ; vertical-align: middle\");\n\n\t\t\t\tTableData assetNumber = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(/*asset.getAssetNumber()*/\"123456789123456\")));\n\t\t\t\tassetNumber.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 20% ; vertical-align: middle\");\n\n\t\t\t\tString statusFlag = asset.getStatus();\n\n\t\t\t\tTableData status;\n\t\t\t\tif (!\"A\".equalsIgnoreCase(statusFlag)) {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" />\"));\n\t\t\t\t} else {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t\t}\n\t\t\t\tstatus.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\t\tstatus.addAttribute(\"disabled\", \"disabled\");\n\n\t\t\t\tTableData editImage = new TableData(new Image(\n\t\t\t\t\t\t\"static/images/edit.jpg\", \"Edit\"));\n\t\t\t\teditImage.addAttribute(\"style\", \"width: 10%\");\n\t\t\t\teditImage.addAttribute(\"onClick\", \"javascript:edit('\" + count\n\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getWorkCenterCode())\n\t\t\t\t\t\t+ \"','\" + asset.getFacility() + \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getDescription()) + \"','\"\n\t\t\t\t\t\t+ asset.getAssetNumber() + \"','\" + asset.getStatus()\n\t\t\t\t\t\t+ \"');\");\n\t\t\t\teditImage.addAttribute(\"style\", \"cursor: pointer;\");\n\n\t\t\t\trow.addTableData(facility);\n\t\t\t\trow.addTableData(workCenterCode);\n\t\t\t\trow.addTableData(assetNumber);\n\t\t\t\trow.addTableData(description);\n\t\t\t\trow.addTableData(status);\n\t\t\t\trow.addTableData(editImage);\n\n\t\t\t\tif (count % 2 == 0) {\n\t\t\t\t\trow.addAttribute(\"class\", \"normalRow\");\n\t\t\t\t} else {\n\t\t\t\t\trow.addAttribute(\"class\", \"alternateRow\");\n\t\t\t\t}\n\t\t\t\ttable.addTableRow(row);\n\t\t\t\tcount++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn table;\n\t}", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "Basicinfo selectByPrimaryKey(String taxregcode);", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "@Override\n public String toString() {\n String details = \"\";\n\n if (this.columnType.getValue() != ColumnType._ANY) {\n details += \" typu '\" + this.columnType.getValue().toString() + \"'\";\n }\n if (!this.columnName.getValue().isEmpty()) {\n details += \" s názvem '\" + this.columnName.getValue() + \"'\";\n }\n if (this.columnIsPrimary.getValue() != YesNoType._ANY) {\n details += \", které \" + (this.columnIsPrimary.getValue() == YesNoType.YES ? \"jsou\" : \"nejsou\") + \" primárním klíčem,\";\n }\n\n return \"Počet sloupců\" + details + \" v každé tabulce \" + this.countOp.getValue() + \" \" + this.count.getValue();\n }", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "ClOrderInfo selectByPrimaryKey(String orderId);", "@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "@Override\r\npublic List<OrderInfo> selectUnfinishedSaleOrderList() {\n\t\treturn OrderInfoMapper.selectUnfinishedSaleOrderList();\r\n}", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);", "@Override\r\n\tpublic List<HashMap<String, String>> GeunTaeList(HashMap<String, String> params) {\n\t\treturn sqlsession.selectList(\"GeuntaeMgnt.GeunTaeList\",params);\r\n\t}", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}" ]
[ "0.59679544", "0.54316205", "0.5095957", "0.505718", "0.503224", "0.50196356", "0.5010775", "0.497697", "0.49743563", "0.49709788", "0.49674714", "0.49671787", "0.49457926", "0.4934255", "0.49222803", "0.49195752", "0.48989034", "0.4898203", "0.48898008", "0.48892307", "0.48633268", "0.4862308", "0.4851176", "0.48482385", "0.4846497", "0.48405117", "0.48187378", "0.47956073", "0.4793173", "0.47863743", "0.47843966", "0.47734234", "0.47556725", "0.47455806", "0.47455806", "0.47453645", "0.47395456", "0.4726392", "0.470666", "0.4704746", "0.4694701", "0.4692638", "0.46875826", "0.46699893", "0.46684414", "0.4666166", "0.46554828", "0.4654679", "0.46528074", "0.46498343", "0.46494555", "0.46476966", "0.464684", "0.46437472", "0.4638105", "0.46190345", "0.4614804", "0.46136022", "0.46125838", "0.46013793", "0.4598544", "0.45898858", "0.4586541", "0.4584201", "0.45806846", "0.45801282", "0.45795703", "0.4579556", "0.4575231", "0.45718104", "0.45679665", "0.4567914", "0.45546332", "0.45525336", "0.4550479", "0.4549758", "0.45488837", "0.45457754", "0.45410138", "0.45405257", "0.4539248", "0.45358676", "0.45323652", "0.45311898", "0.45296082", "0.45267978", "0.45261142", "0.4519704", "0.45182383", "0.45155597", "0.45122302", "0.45112786", "0.45090836", "0.44976383", "0.4495971", "0.4494727", "0.44942722", "0.44935077", "0.44897643", "0.44895044", "0.44859347" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table uc_order_guest_info
int deleteByPrimaryKey(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UcOrderGuestInfo selectByPrimaryKey(Long id);", "List<UcOrderGuestInfo> selectByExample(UcOrderGuestInfoExample example);", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public GuestInfo getGuestInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo res){\n\t\tGuestInfo guestInfo = new GuestInfo();\n\t\t\n\t\tguestInfo.setSelectedFlag( res.getSelectedFlag() );\n\t\tguestInfo.setGuestId( res.getGuestId() );\n\t\tguestInfo.setTitle( res.getTitle() );\n\t\tguestInfo.setFirstName( res.getFirstName() );\n\t\tguestInfo.setMiddleName( res.getMiddleName() );\n\t\tguestInfo.setLastName( res.getLastName() );\n\t\tguestInfo.setGender( res.getGender() );\n\t\tguestInfo.setPhoneNumber( res.getPhoneNumber() );\n\t\tguestInfo.setEmailId( res.getEmailId() );\n\t\tguestInfo.setParentGuestId( res.getParentGuestId() );\n\t\tguestInfo.setEmergencyContactName( res.getEmergencyContactName() );\n\t\t//Start the the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\t// Map/Setting the emergency contact phone correctly.\n\t\tguestInfo.setEmergencyContactPhone( res.getEmergencyContactPhone() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\tguestInfo.setFrequentFlyerNo( res.getFrequentFlyerNo() );\n\t\tguestInfo.setAirRemarks( res.getAirRemarks() );\n\t\tguestInfo.setHotelRemarks( res.getHotelRemarks() );\n\t\tguestInfo.setCruiseRemarks( res.getCruiseRemarks() );\n\t\tguestInfo.setMealRequest( res.getMealRequest() );\n\t\tguestInfo.setAirRequest( res.getAirRequest() );\n\t\tguestInfo.setGroundRequest( res.getGroundRequest() );\n\t\tguestInfo.setCateringRequest( res.getCateringRequest() );\n\t\tguestInfo.setSeatPreference( res.getSeatPreference() );\n\t\tguestInfo.setPnrNumber( res.getPnrNumber() );\n\t\tguestInfo.setStatus( res.getStatus() );\n\t\tguestInfo.setRedressNumber( res.getRedressNumber() );\n\t\tguestInfo.setChangeType( res.getChangeType() );\n\t\tguestInfo.setOldPaxId( res.getOldPaxId() );\n\t\tguestInfo.setPaxWeight( res.getPaxWeight() );\n\t\tif( res.getAge() != null ){\n\t\t\tguestInfo.setAge( res.getAge().byteValue() );\n\t\t}\n\t\tif( res.isLapChild() != null ){\n\t\t\tguestInfo.setLapChild( res.isLapChild().booleanValue() );\n\t\t}\n\t\tif( res.getDateOfBirth() != null ){\n\t\t\tguestInfo.setDateOfBirth( this.dateConverterXMLtoUtilBirthDate( res.getDateOfBirth() ) );\n\t\t}\n\t\tif( (res.getAgeCode() != null) && (res.getAgeCode().getAge() > 0) ){\n\t\t\tguestInfo.setAgeCode( this.getAgeCode( res.getAgeCode() ) );\n\t\t}\n\t\tif( res.getPassportInfo() != null ){\n\t\t\tguestInfo.setPassportInfo( this.getPassportInfo( res.getPassportInfo() ) );\n\t\t}\n\t\tif( res.getPriceBreakup() != null ){\n\t\t\tguestInfo.setPriceBreakup( this.getGuestPriceBreakup( res.getPriceBreakup() ) );\n\t\t}\n\t\t\n\t\treturn guestInfo;\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\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}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tString s = \"user's id=\" + id +\"hotel Name = \" + hotelName +\", RoomNumber\" + roomNumber+\" hotelPrice=\" + price + \", roomType=\" + type; \n\t\treturn s;\n\t}", "public List<Output> viewOrders(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n List<PurchaseOrder> poList = new ArrayList<PurchaseOrder>();\n List<Output> outputList = new ArrayList<>();\n\n try {\n session.beginTransaction();\n\n String sqlQuery = \"select po.id , po.poNumber, po.seller_vendor, po.dueDate, po.status, po.priority, org.shipFrom, des.shipTo, po.transResp \\n\" +\n \"from PurchaseOrder po \\n\" +\n \"join purchaseorder_origin_address porg on po.id=porg.PurchaseOrder_id\\n\" +\n \"join origin_address org on org.ID=porg.originAddresses_ID\\n\" +\n \"join purchaseorder_destination_address pd on po.id=pd.PurchaseOrder_id\\n\" +\n \"join destination_address des on des.ID=pd.destinationAddresses_ID \";\n\n SQLQuery query = session.createSQLQuery(sqlQuery);\n query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n /*query.setFirstResult(RetrieveAction.count*5);\n RetrieveAction.count++;\n query.setMaxResults(5);*/\n poList = query.list();\n tx.commit();\n session.close();\n for(Object po : poList){\n Map m = (Map) po;\n Output output = new Output();\n output.setPoNumber((int)m.get(\"poNumber\"));\n output.setSupplier(m.get(\"seller_vendor\").toString());\n output.setDueDate((Date) m.get(\"dueDate\"));\n output.setStatus(m.get(\"status\").toString());\n output.setPriority(m.get(\"priority\").toString());\n output.setShipfrom(m.get(\"shipFrom\").toString());\n output.setShipto(m.get(\"shipTo\").toString());\n output.setTransresp(m.get(\"transResp\").toString());\n outputList.add(output);\n }\n\n return outputList;\n\n } catch (Exception e) {\n System.err.println(\"Error getting Users :\" + e.getMessage());\n session.getTransaction().rollback();\n }\n return outputList;\n }", "TbaDeliveryinfo selectByPrimaryKey(Integer deliveryid);", "@Override\n\tpublic String inspectPrimaryKey() {\n\t\treturn \"INDV_ELG: \" + \"bnft_pin_num=\" + bnft_pin_num + \",\" + \"bnft_case_num=\" + bnft_case_num + \",\" + \"cat_cd=\" + cat_cd + \",\" + \"scat_cd=\"\n\t\t\t\t+ scat_cd + \",\" + \"scat_seq_num=\" + scat_seq_num + \",\" + \"cur_elg_ind=\" + cur_elg_ind + \",\" + \"pymt_beg_dt=\" + pymt_beg_dt;\n\t}", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "organize_infoBean selectByPrimaryKey(Integer id);", "public List getOrderDetails(OrderDetail orderDetail);", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "@Override\n\tpublic ProductVO detailOrderList(int p_num) {\n\t\treturn sql.selectOne(\"detailOrderList\", p_num);\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public void selectSomeField() {\n\t\tList<com.service.JpaSelectSpecificColumns.SubOrder> findAllSubOrder = springDataSelectSpecificColumns.findAllSubOrder();\n\t\tfindAllSubOrder.forEach(t -> System.out.println(t));\n\t}", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "int insert(UcOrderGuestInfo record);", "@Override\r\n\tpublic List<OrderDetailBean> query(OrderDetailBean detail) {\n\t\treturn dao.query(detail);\r\n\t}", "@Override\n public String getSearchIDFromDB(String email, String vertical) {\n String sql = \"select SEARCH_ID from SEARCH a inner join customer c on \" +\n \"a.CUSTOMER_ID = c.CUSTOMER_ID where \" +\n \"CLASS = '\" + vertical + \"' and \" +\n \"c.EMAIL = '\" + email + \"' \" +\n \"order by a.CREATE_DATE desc\";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"SEARCH_ID\").toString();\n }", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Address> selectAll();", "public int getGuestAddress() {\n return guestAddress;\n }", "@Override\n\tpublic Serializable generate(SessionImplementor s, Object obj) {\n\t\tString name = \"HDFC000\";\n\t\tConnection con = s.connection();\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"select USR_ACCT_NO from HDFC_USR_INFO order by USR_ACCT_NO DESC\");\n\t\t\tif(rs.next()){\n\t\t\t\tname = name+rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn name;\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileSessionCreatedByColumn()\n {\n return newMobileSessionCreatedByColumn(\"Mobile Session Created By\");\n }", "@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }", "int insertSelective(UcOrderGuestInfo record);", "public ArrayList<Guest02Dto> getList(){\n\t\tArrayList<Guest02Dto> list=new ArrayList<Guest02Dto>();\n\t\tString sql=\"select num,sub,(select name from user02 \";\n\t\tsql+=\" where num=unum) as uname,pay from GUEST02\";\n\t\tjavax.sql.DataSource source=null;\n\t\ttry {\n\t\t\tInitialContext init = new InitialContext();\n\t\t\tContext context=(Context)init.lookup(\"java:/comp/env\");\n\t\t\tsource=(javax.sql.DataSource) context.lookup(\"jdbc/oracle\");\n\t\t\t\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\tResultSet rs=null;\n\t\t\n\t\ttry {\n\t\t\tconn=source.getConnection();\n\t\t\tpstmt=conn.prepareStatement(sql);\n\t\t\trs=pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuest02Dto bean=new Guest02Dto();\n\t\t\t\tbean.setNum(rs.getInt(\"num\"));\n\t\t\t\tbean.setSub(rs.getString(\"sub\"));\n\t\t\t\tbean.setName(rs.getString(\"uname\"));\n\t\t\t\tbean.setPay(rs.getInt(\"pay\"));\n\t\t\t\tlist.add(bean);\n\t\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(rs!=null)rs.close();\n\t\t\t\tif(pstmt!=null)pstmt.close();\n\t\t\t\tif(conn!=null)conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Override public final String toString() {\r\n return String.format(this.vId + \"\\t\" + this.vName\r\n + \"\\t\" + this.vUserName + \"\\t\" + this.vPassword + \"\\t\" + this.vPhone);\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Customer[id=\"+id+\",firstName=\"+firstName+\",lastName=\"+lastName+\",age=\"\r\n\t\t\t\t+age+\",createdTime=\"+createdTime+\",updateTime=\"+updateTime+\"]\";\r\n\t}", "public Table buildAssetDetailsTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 610px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tif (dto.getAssetConfig() != null && dto.getAssetConfig().size() > 0) {\n\n\t\t\tint count = 0;\n\n\t\t\tfor (AssetConfig asset : dto.getAssetConfig()) {\n\n\t\t\t\tTableRow row = new TableRow();\n\n\t\t\t\tTableData facility = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getFacility())));\n\t\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\t\tTableData workCenterCode = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getWorkCenterCode())));\n\t\t\t\tworkCenterCode.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 15% ; vertical-align: middle\");\n\n\t\t\t\tTableData description = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getDescription())));\n\t\t\t\tdescription.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 35% ; vertical-align: middle\");\n\n\t\t\t\tTableData assetNumber = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(/*asset.getAssetNumber()*/\"123456789123456\")));\n\t\t\t\tassetNumber.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 20% ; vertical-align: middle\");\n\n\t\t\t\tString statusFlag = asset.getStatus();\n\n\t\t\t\tTableData status;\n\t\t\t\tif (!\"A\".equalsIgnoreCase(statusFlag)) {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" />\"));\n\t\t\t\t} else {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t\t}\n\t\t\t\tstatus.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\t\tstatus.addAttribute(\"disabled\", \"disabled\");\n\n\t\t\t\tTableData editImage = new TableData(new Image(\n\t\t\t\t\t\t\"static/images/edit.jpg\", \"Edit\"));\n\t\t\t\teditImage.addAttribute(\"style\", \"width: 10%\");\n\t\t\t\teditImage.addAttribute(\"onClick\", \"javascript:edit('\" + count\n\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getWorkCenterCode())\n\t\t\t\t\t\t+ \"','\" + asset.getFacility() + \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getDescription()) + \"','\"\n\t\t\t\t\t\t+ asset.getAssetNumber() + \"','\" + asset.getStatus()\n\t\t\t\t\t\t+ \"');\");\n\t\t\t\teditImage.addAttribute(\"style\", \"cursor: pointer;\");\n\n\t\t\t\trow.addTableData(facility);\n\t\t\t\trow.addTableData(workCenterCode);\n\t\t\t\trow.addTableData(assetNumber);\n\t\t\t\trow.addTableData(description);\n\t\t\t\trow.addTableData(status);\n\t\t\t\trow.addTableData(editImage);\n\n\t\t\t\tif (count % 2 == 0) {\n\t\t\t\t\trow.addAttribute(\"class\", \"normalRow\");\n\t\t\t\t} else {\n\t\t\t\t\trow.addAttribute(\"class\", \"alternateRow\");\n\t\t\t\t}\n\t\t\t\ttable.addTableRow(row);\n\t\t\t\tcount++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn table;\n\t}", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "Basicinfo selectByPrimaryKey(String taxregcode);", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }", "@Override\n public String toString() {\n String details = \"\";\n\n if (this.columnType.getValue() != ColumnType._ANY) {\n details += \" typu '\" + this.columnType.getValue().toString() + \"'\";\n }\n if (!this.columnName.getValue().isEmpty()) {\n details += \" s názvem '\" + this.columnName.getValue() + \"'\";\n }\n if (this.columnIsPrimary.getValue() != YesNoType._ANY) {\n details += \", které \" + (this.columnIsPrimary.getValue() == YesNoType.YES ? \"jsou\" : \"nejsou\") + \" primárním klíčem,\";\n }\n\n return \"Počet sloupců\" + details + \" v každé tabulce \" + this.countOp.getValue() + \" \" + this.count.getValue();\n }", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "ClOrderInfo selectByPrimaryKey(String orderId);", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "@Override\r\npublic List<OrderInfo> selectUnfinishedSaleOrderList() {\n\t\treturn OrderInfoMapper.selectUnfinishedSaleOrderList();\r\n}", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic List<HashMap<String, String>> GeunTaeList(HashMap<String, String> params) {\n\t\treturn sqlsession.selectList(\"GeuntaeMgnt.GeunTaeList\",params);\r\n\t}", "@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}" ]
[ "0.59686077", "0.5430412", "0.509382", "0.50578535", "0.5032601", "0.5018578", "0.5012282", "0.4976719", "0.49758866", "0.49703467", "0.49687666", "0.49675158", "0.49461478", "0.4936134", "0.4921217", "0.49207553", "0.48992163", "0.48963723", "0.489108", "0.48900905", "0.4862083", "0.48604104", "0.48507977", "0.48477474", "0.4846186", "0.4839804", "0.48188612", "0.4795127", "0.47929537", "0.4785345", "0.47818083", "0.47720847", "0.47572625", "0.47446606", "0.47446606", "0.4742496", "0.47407413", "0.47255906", "0.4705816", "0.47026274", "0.46927127", "0.46909362", "0.46886033", "0.46684575", "0.4667524", "0.46664014", "0.46559086", "0.46556562", "0.46524224", "0.46514323", "0.46494588", "0.46468905", "0.4645243", "0.46433967", "0.46394417", "0.4619872", "0.461334", "0.4612891", "0.46123183", "0.46031055", "0.45997998", "0.4588932", "0.4588843", "0.4584063", "0.4581802", "0.4580638", "0.45796877", "0.4577552", "0.45748326", "0.45734215", "0.45693654", "0.45679373", "0.45535198", "0.45517743", "0.45515227", "0.45496574", "0.45471033", "0.45464", "0.45412236", "0.4539154", "0.45381647", "0.4533498", "0.45322883", "0.4530333", "0.45275277", "0.45271757", "0.45235902", "0.45209208", "0.45179474", "0.4516143", "0.4511044", "0.45109117", "0.45109054", "0.44953978", "0.4495248", "0.44927388", "0.44921863", "0.44914278", "0.44892898", "0.44870794", "0.44846243" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table uc_order_guest_info
int insert(UcOrderGuestInfo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UcOrderGuestInfo selectByPrimaryKey(Long id);", "List<UcOrderGuestInfo> selectByExample(UcOrderGuestInfoExample example);", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public GuestInfo getGuestInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo res){\n\t\tGuestInfo guestInfo = new GuestInfo();\n\t\t\n\t\tguestInfo.setSelectedFlag( res.getSelectedFlag() );\n\t\tguestInfo.setGuestId( res.getGuestId() );\n\t\tguestInfo.setTitle( res.getTitle() );\n\t\tguestInfo.setFirstName( res.getFirstName() );\n\t\tguestInfo.setMiddleName( res.getMiddleName() );\n\t\tguestInfo.setLastName( res.getLastName() );\n\t\tguestInfo.setGender( res.getGender() );\n\t\tguestInfo.setPhoneNumber( res.getPhoneNumber() );\n\t\tguestInfo.setEmailId( res.getEmailId() );\n\t\tguestInfo.setParentGuestId( res.getParentGuestId() );\n\t\tguestInfo.setEmergencyContactName( res.getEmergencyContactName() );\n\t\t//Start the the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\t// Map/Setting the emergency contact phone correctly.\n\t\tguestInfo.setEmergencyContactPhone( res.getEmergencyContactPhone() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\tguestInfo.setFrequentFlyerNo( res.getFrequentFlyerNo() );\n\t\tguestInfo.setAirRemarks( res.getAirRemarks() );\n\t\tguestInfo.setHotelRemarks( res.getHotelRemarks() );\n\t\tguestInfo.setCruiseRemarks( res.getCruiseRemarks() );\n\t\tguestInfo.setMealRequest( res.getMealRequest() );\n\t\tguestInfo.setAirRequest( res.getAirRequest() );\n\t\tguestInfo.setGroundRequest( res.getGroundRequest() );\n\t\tguestInfo.setCateringRequest( res.getCateringRequest() );\n\t\tguestInfo.setSeatPreference( res.getSeatPreference() );\n\t\tguestInfo.setPnrNumber( res.getPnrNumber() );\n\t\tguestInfo.setStatus( res.getStatus() );\n\t\tguestInfo.setRedressNumber( res.getRedressNumber() );\n\t\tguestInfo.setChangeType( res.getChangeType() );\n\t\tguestInfo.setOldPaxId( res.getOldPaxId() );\n\t\tguestInfo.setPaxWeight( res.getPaxWeight() );\n\t\tif( res.getAge() != null ){\n\t\t\tguestInfo.setAge( res.getAge().byteValue() );\n\t\t}\n\t\tif( res.isLapChild() != null ){\n\t\t\tguestInfo.setLapChild( res.isLapChild().booleanValue() );\n\t\t}\n\t\tif( res.getDateOfBirth() != null ){\n\t\t\tguestInfo.setDateOfBirth( this.dateConverterXMLtoUtilBirthDate( res.getDateOfBirth() ) );\n\t\t}\n\t\tif( (res.getAgeCode() != null) && (res.getAgeCode().getAge() > 0) ){\n\t\t\tguestInfo.setAgeCode( this.getAgeCode( res.getAgeCode() ) );\n\t\t}\n\t\tif( res.getPassportInfo() != null ){\n\t\t\tguestInfo.setPassportInfo( this.getPassportInfo( res.getPassportInfo() ) );\n\t\t}\n\t\tif( res.getPriceBreakup() != null ){\n\t\t\tguestInfo.setPriceBreakup( this.getGuestPriceBreakup( res.getPriceBreakup() ) );\n\t\t}\n\t\t\n\t\treturn guestInfo;\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\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}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tString s = \"user's id=\" + id +\"hotel Name = \" + hotelName +\", RoomNumber\" + roomNumber+\" hotelPrice=\" + price + \", roomType=\" + type; \n\t\treturn s;\n\t}", "public List<Output> viewOrders(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n List<PurchaseOrder> poList = new ArrayList<PurchaseOrder>();\n List<Output> outputList = new ArrayList<>();\n\n try {\n session.beginTransaction();\n\n String sqlQuery = \"select po.id , po.poNumber, po.seller_vendor, po.dueDate, po.status, po.priority, org.shipFrom, des.shipTo, po.transResp \\n\" +\n \"from PurchaseOrder po \\n\" +\n \"join purchaseorder_origin_address porg on po.id=porg.PurchaseOrder_id\\n\" +\n \"join origin_address org on org.ID=porg.originAddresses_ID\\n\" +\n \"join purchaseorder_destination_address pd on po.id=pd.PurchaseOrder_id\\n\" +\n \"join destination_address des on des.ID=pd.destinationAddresses_ID \";\n\n SQLQuery query = session.createSQLQuery(sqlQuery);\n query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n /*query.setFirstResult(RetrieveAction.count*5);\n RetrieveAction.count++;\n query.setMaxResults(5);*/\n poList = query.list();\n tx.commit();\n session.close();\n for(Object po : poList){\n Map m = (Map) po;\n Output output = new Output();\n output.setPoNumber((int)m.get(\"poNumber\"));\n output.setSupplier(m.get(\"seller_vendor\").toString());\n output.setDueDate((Date) m.get(\"dueDate\"));\n output.setStatus(m.get(\"status\").toString());\n output.setPriority(m.get(\"priority\").toString());\n output.setShipfrom(m.get(\"shipFrom\").toString());\n output.setShipto(m.get(\"shipTo\").toString());\n output.setTransresp(m.get(\"transResp\").toString());\n outputList.add(output);\n }\n\n return outputList;\n\n } catch (Exception e) {\n System.err.println(\"Error getting Users :\" + e.getMessage());\n session.getTransaction().rollback();\n }\n return outputList;\n }", "TbaDeliveryinfo selectByPrimaryKey(Integer deliveryid);", "@Override\n\tpublic String inspectPrimaryKey() {\n\t\treturn \"INDV_ELG: \" + \"bnft_pin_num=\" + bnft_pin_num + \",\" + \"bnft_case_num=\" + bnft_case_num + \",\" + \"cat_cd=\" + cat_cd + \",\" + \"scat_cd=\"\n\t\t\t\t+ scat_cd + \",\" + \"scat_seq_num=\" + scat_seq_num + \",\" + \"cur_elg_ind=\" + cur_elg_ind + \",\" + \"pymt_beg_dt=\" + pymt_beg_dt;\n\t}", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "organize_infoBean selectByPrimaryKey(Integer id);", "public List getOrderDetails(OrderDetail orderDetail);", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "@Override\n\tpublic ProductVO detailOrderList(int p_num) {\n\t\treturn sql.selectOne(\"detailOrderList\", p_num);\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public void selectSomeField() {\n\t\tList<com.service.JpaSelectSpecificColumns.SubOrder> findAllSubOrder = springDataSelectSpecificColumns.findAllSubOrder();\n\t\tfindAllSubOrder.forEach(t -> System.out.println(t));\n\t}", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "@Override\r\n\tpublic List<OrderDetailBean> query(OrderDetailBean detail) {\n\t\treturn dao.query(detail);\r\n\t}", "@Override\n public String getSearchIDFromDB(String email, String vertical) {\n String sql = \"select SEARCH_ID from SEARCH a inner join customer c on \" +\n \"a.CUSTOMER_ID = c.CUSTOMER_ID where \" +\n \"CLASS = '\" + vertical + \"' and \" +\n \"c.EMAIL = '\" + email + \"' \" +\n \"order by a.CREATE_DATE desc\";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"SEARCH_ID\").toString();\n }", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Address> selectAll();", "public int getGuestAddress() {\n return guestAddress;\n }", "@Override\n\tpublic Serializable generate(SessionImplementor s, Object obj) {\n\t\tString name = \"HDFC000\";\n\t\tConnection con = s.connection();\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"select USR_ACCT_NO from HDFC_USR_INFO order by USR_ACCT_NO DESC\");\n\t\t\tif(rs.next()){\n\t\t\t\tname = name+rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn name;\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileSessionCreatedByColumn()\n {\n return newMobileSessionCreatedByColumn(\"Mobile Session Created By\");\n }", "@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }", "int insertSelective(UcOrderGuestInfo record);", "public ArrayList<Guest02Dto> getList(){\n\t\tArrayList<Guest02Dto> list=new ArrayList<Guest02Dto>();\n\t\tString sql=\"select num,sub,(select name from user02 \";\n\t\tsql+=\" where num=unum) as uname,pay from GUEST02\";\n\t\tjavax.sql.DataSource source=null;\n\t\ttry {\n\t\t\tInitialContext init = new InitialContext();\n\t\t\tContext context=(Context)init.lookup(\"java:/comp/env\");\n\t\t\tsource=(javax.sql.DataSource) context.lookup(\"jdbc/oracle\");\n\t\t\t\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\tResultSet rs=null;\n\t\t\n\t\ttry {\n\t\t\tconn=source.getConnection();\n\t\t\tpstmt=conn.prepareStatement(sql);\n\t\t\trs=pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuest02Dto bean=new Guest02Dto();\n\t\t\t\tbean.setNum(rs.getInt(\"num\"));\n\t\t\t\tbean.setSub(rs.getString(\"sub\"));\n\t\t\t\tbean.setName(rs.getString(\"uname\"));\n\t\t\t\tbean.setPay(rs.getInt(\"pay\"));\n\t\t\t\tlist.add(bean);\n\t\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(rs!=null)rs.close();\n\t\t\t\tif(pstmt!=null)pstmt.close();\n\t\t\t\tif(conn!=null)conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Override public final String toString() {\r\n return String.format(this.vId + \"\\t\" + this.vName\r\n + \"\\t\" + this.vUserName + \"\\t\" + this.vPassword + \"\\t\" + this.vPhone);\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Customer[id=\"+id+\",firstName=\"+firstName+\",lastName=\"+lastName+\",age=\"\r\n\t\t\t\t+age+\",createdTime=\"+createdTime+\",updateTime=\"+updateTime+\"]\";\r\n\t}", "public Table buildAssetDetailsTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 610px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tif (dto.getAssetConfig() != null && dto.getAssetConfig().size() > 0) {\n\n\t\t\tint count = 0;\n\n\t\t\tfor (AssetConfig asset : dto.getAssetConfig()) {\n\n\t\t\t\tTableRow row = new TableRow();\n\n\t\t\t\tTableData facility = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getFacility())));\n\t\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\t\tTableData workCenterCode = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getWorkCenterCode())));\n\t\t\t\tworkCenterCode.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 15% ; vertical-align: middle\");\n\n\t\t\t\tTableData description = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getDescription())));\n\t\t\t\tdescription.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 35% ; vertical-align: middle\");\n\n\t\t\t\tTableData assetNumber = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(/*asset.getAssetNumber()*/\"123456789123456\")));\n\t\t\t\tassetNumber.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 20% ; vertical-align: middle\");\n\n\t\t\t\tString statusFlag = asset.getStatus();\n\n\t\t\t\tTableData status;\n\t\t\t\tif (!\"A\".equalsIgnoreCase(statusFlag)) {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" />\"));\n\t\t\t\t} else {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t\t}\n\t\t\t\tstatus.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\t\tstatus.addAttribute(\"disabled\", \"disabled\");\n\n\t\t\t\tTableData editImage = new TableData(new Image(\n\t\t\t\t\t\t\"static/images/edit.jpg\", \"Edit\"));\n\t\t\t\teditImage.addAttribute(\"style\", \"width: 10%\");\n\t\t\t\teditImage.addAttribute(\"onClick\", \"javascript:edit('\" + count\n\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getWorkCenterCode())\n\t\t\t\t\t\t+ \"','\" + asset.getFacility() + \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getDescription()) + \"','\"\n\t\t\t\t\t\t+ asset.getAssetNumber() + \"','\" + asset.getStatus()\n\t\t\t\t\t\t+ \"');\");\n\t\t\t\teditImage.addAttribute(\"style\", \"cursor: pointer;\");\n\n\t\t\t\trow.addTableData(facility);\n\t\t\t\trow.addTableData(workCenterCode);\n\t\t\t\trow.addTableData(assetNumber);\n\t\t\t\trow.addTableData(description);\n\t\t\t\trow.addTableData(status);\n\t\t\t\trow.addTableData(editImage);\n\n\t\t\t\tif (count % 2 == 0) {\n\t\t\t\t\trow.addAttribute(\"class\", \"normalRow\");\n\t\t\t\t} else {\n\t\t\t\t\trow.addAttribute(\"class\", \"alternateRow\");\n\t\t\t\t}\n\t\t\t\ttable.addTableRow(row);\n\t\t\t\tcount++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn table;\n\t}", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "Basicinfo selectByPrimaryKey(String taxregcode);", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }", "@Override\n public String toString() {\n String details = \"\";\n\n if (this.columnType.getValue() != ColumnType._ANY) {\n details += \" typu '\" + this.columnType.getValue().toString() + \"'\";\n }\n if (!this.columnName.getValue().isEmpty()) {\n details += \" s názvem '\" + this.columnName.getValue() + \"'\";\n }\n if (this.columnIsPrimary.getValue() != YesNoType._ANY) {\n details += \", které \" + (this.columnIsPrimary.getValue() == YesNoType.YES ? \"jsou\" : \"nejsou\") + \" primárním klíčem,\";\n }\n\n return \"Počet sloupců\" + details + \" v každé tabulce \" + this.countOp.getValue() + \" \" + this.count.getValue();\n }", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "ClOrderInfo selectByPrimaryKey(String orderId);", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "@Override\r\npublic List<OrderInfo> selectUnfinishedSaleOrderList() {\n\t\treturn OrderInfoMapper.selectUnfinishedSaleOrderList();\r\n}", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic List<HashMap<String, String>> GeunTaeList(HashMap<String, String> params) {\n\t\treturn sqlsession.selectList(\"GeuntaeMgnt.GeunTaeList\",params);\r\n\t}", "@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}" ]
[ "0.59686077", "0.5430412", "0.509382", "0.50578535", "0.5032601", "0.5018578", "0.5012282", "0.4976719", "0.49758866", "0.49703467", "0.49687666", "0.49675158", "0.49461478", "0.4936134", "0.4921217", "0.49207553", "0.48992163", "0.48963723", "0.489108", "0.48900905", "0.4862083", "0.48604104", "0.48507977", "0.48477474", "0.4846186", "0.4839804", "0.48188612", "0.4795127", "0.47929537", "0.4785345", "0.47818083", "0.47720847", "0.47572625", "0.47446606", "0.47446606", "0.4742496", "0.47407413", "0.47255906", "0.4705816", "0.47026274", "0.46927127", "0.46909362", "0.46886033", "0.46684575", "0.4667524", "0.46664014", "0.46556562", "0.46524224", "0.46514323", "0.46494588", "0.46468905", "0.4645243", "0.46433967", "0.46394417", "0.4619872", "0.461334", "0.4612891", "0.46123183", "0.46031055", "0.45997998", "0.4588932", "0.4588843", "0.4584063", "0.4581802", "0.4580638", "0.45796877", "0.4577552", "0.45748326", "0.45734215", "0.45693654", "0.45679373", "0.45535198", "0.45517743", "0.45515227", "0.45496574", "0.45471033", "0.45464", "0.45412236", "0.4539154", "0.45381647", "0.4533498", "0.45322883", "0.4530333", "0.45275277", "0.45271757", "0.45235902", "0.45209208", "0.45179474", "0.4516143", "0.4511044", "0.45109117", "0.45109054", "0.44953978", "0.4495248", "0.44927388", "0.44921863", "0.44914278", "0.44892898", "0.44870794", "0.44846243" ]
0.46559086
46
This method was generated by MyBatis Generator. This method corresponds to the database table uc_order_guest_info
int insertSelective(UcOrderGuestInfo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UcOrderGuestInfo selectByPrimaryKey(Long id);", "List<UcOrderGuestInfo> selectByExample(UcOrderGuestInfoExample example);", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public GuestInfo getGuestInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo res){\n\t\tGuestInfo guestInfo = new GuestInfo();\n\t\t\n\t\tguestInfo.setSelectedFlag( res.getSelectedFlag() );\n\t\tguestInfo.setGuestId( res.getGuestId() );\n\t\tguestInfo.setTitle( res.getTitle() );\n\t\tguestInfo.setFirstName( res.getFirstName() );\n\t\tguestInfo.setMiddleName( res.getMiddleName() );\n\t\tguestInfo.setLastName( res.getLastName() );\n\t\tguestInfo.setGender( res.getGender() );\n\t\tguestInfo.setPhoneNumber( res.getPhoneNumber() );\n\t\tguestInfo.setEmailId( res.getEmailId() );\n\t\tguestInfo.setParentGuestId( res.getParentGuestId() );\n\t\tguestInfo.setEmergencyContactName( res.getEmergencyContactName() );\n\t\t//Start the the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\t// Map/Setting the emergency contact phone correctly.\n\t\tguestInfo.setEmergencyContactPhone( res.getEmergencyContactPhone() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\tguestInfo.setFrequentFlyerNo( res.getFrequentFlyerNo() );\n\t\tguestInfo.setAirRemarks( res.getAirRemarks() );\n\t\tguestInfo.setHotelRemarks( res.getHotelRemarks() );\n\t\tguestInfo.setCruiseRemarks( res.getCruiseRemarks() );\n\t\tguestInfo.setMealRequest( res.getMealRequest() );\n\t\tguestInfo.setAirRequest( res.getAirRequest() );\n\t\tguestInfo.setGroundRequest( res.getGroundRequest() );\n\t\tguestInfo.setCateringRequest( res.getCateringRequest() );\n\t\tguestInfo.setSeatPreference( res.getSeatPreference() );\n\t\tguestInfo.setPnrNumber( res.getPnrNumber() );\n\t\tguestInfo.setStatus( res.getStatus() );\n\t\tguestInfo.setRedressNumber( res.getRedressNumber() );\n\t\tguestInfo.setChangeType( res.getChangeType() );\n\t\tguestInfo.setOldPaxId( res.getOldPaxId() );\n\t\tguestInfo.setPaxWeight( res.getPaxWeight() );\n\t\tif( res.getAge() != null ){\n\t\t\tguestInfo.setAge( res.getAge().byteValue() );\n\t\t}\n\t\tif( res.isLapChild() != null ){\n\t\t\tguestInfo.setLapChild( res.isLapChild().booleanValue() );\n\t\t}\n\t\tif( res.getDateOfBirth() != null ){\n\t\t\tguestInfo.setDateOfBirth( this.dateConverterXMLtoUtilBirthDate( res.getDateOfBirth() ) );\n\t\t}\n\t\tif( (res.getAgeCode() != null) && (res.getAgeCode().getAge() > 0) ){\n\t\t\tguestInfo.setAgeCode( this.getAgeCode( res.getAgeCode() ) );\n\t\t}\n\t\tif( res.getPassportInfo() != null ){\n\t\t\tguestInfo.setPassportInfo( this.getPassportInfo( res.getPassportInfo() ) );\n\t\t}\n\t\tif( res.getPriceBreakup() != null ){\n\t\t\tguestInfo.setPriceBreakup( this.getGuestPriceBreakup( res.getPriceBreakup() ) );\n\t\t}\n\t\t\n\t\treturn guestInfo;\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\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}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tString s = \"user's id=\" + id +\"hotel Name = \" + hotelName +\", RoomNumber\" + roomNumber+\" hotelPrice=\" + price + \", roomType=\" + type; \n\t\treturn s;\n\t}", "public List<Output> viewOrders(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n List<PurchaseOrder> poList = new ArrayList<PurchaseOrder>();\n List<Output> outputList = new ArrayList<>();\n\n try {\n session.beginTransaction();\n\n String sqlQuery = \"select po.id , po.poNumber, po.seller_vendor, po.dueDate, po.status, po.priority, org.shipFrom, des.shipTo, po.transResp \\n\" +\n \"from PurchaseOrder po \\n\" +\n \"join purchaseorder_origin_address porg on po.id=porg.PurchaseOrder_id\\n\" +\n \"join origin_address org on org.ID=porg.originAddresses_ID\\n\" +\n \"join purchaseorder_destination_address pd on po.id=pd.PurchaseOrder_id\\n\" +\n \"join destination_address des on des.ID=pd.destinationAddresses_ID \";\n\n SQLQuery query = session.createSQLQuery(sqlQuery);\n query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n /*query.setFirstResult(RetrieveAction.count*5);\n RetrieveAction.count++;\n query.setMaxResults(5);*/\n poList = query.list();\n tx.commit();\n session.close();\n for(Object po : poList){\n Map m = (Map) po;\n Output output = new Output();\n output.setPoNumber((int)m.get(\"poNumber\"));\n output.setSupplier(m.get(\"seller_vendor\").toString());\n output.setDueDate((Date) m.get(\"dueDate\"));\n output.setStatus(m.get(\"status\").toString());\n output.setPriority(m.get(\"priority\").toString());\n output.setShipfrom(m.get(\"shipFrom\").toString());\n output.setShipto(m.get(\"shipTo\").toString());\n output.setTransresp(m.get(\"transResp\").toString());\n outputList.add(output);\n }\n\n return outputList;\n\n } catch (Exception e) {\n System.err.println(\"Error getting Users :\" + e.getMessage());\n session.getTransaction().rollback();\n }\n return outputList;\n }", "TbaDeliveryinfo selectByPrimaryKey(Integer deliveryid);", "@Override\n\tpublic String inspectPrimaryKey() {\n\t\treturn \"INDV_ELG: \" + \"bnft_pin_num=\" + bnft_pin_num + \",\" + \"bnft_case_num=\" + bnft_case_num + \",\" + \"cat_cd=\" + cat_cd + \",\" + \"scat_cd=\"\n\t\t\t\t+ scat_cd + \",\" + \"scat_seq_num=\" + scat_seq_num + \",\" + \"cur_elg_ind=\" + cur_elg_ind + \",\" + \"pymt_beg_dt=\" + pymt_beg_dt;\n\t}", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "organize_infoBean selectByPrimaryKey(Integer id);", "public List getOrderDetails(OrderDetail orderDetail);", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "@Override\n\tpublic ProductVO detailOrderList(int p_num) {\n\t\treturn sql.selectOne(\"detailOrderList\", p_num);\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "public void selectSomeField() {\n\t\tList<com.service.JpaSelectSpecificColumns.SubOrder> findAllSubOrder = springDataSelectSpecificColumns.findAllSubOrder();\n\t\tfindAllSubOrder.forEach(t -> System.out.println(t));\n\t}", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "int insert(UcOrderGuestInfo record);", "@Override\r\n\tpublic List<OrderDetailBean> query(OrderDetailBean detail) {\n\t\treturn dao.query(detail);\r\n\t}", "@Override\n public String getSearchIDFromDB(String email, String vertical) {\n String sql = \"select SEARCH_ID from SEARCH a inner join customer c on \" +\n \"a.CUSTOMER_ID = c.CUSTOMER_ID where \" +\n \"CLASS = '\" + vertical + \"' and \" +\n \"c.EMAIL = '\" + email + \"' \" +\n \"order by a.CREATE_DATE desc\";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"SEARCH_ID\").toString();\n }", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Address> selectAll();", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "public int getGuestAddress() {\n return guestAddress;\n }", "@Override\n\tpublic Serializable generate(SessionImplementor s, Object obj) {\n\t\tString name = \"HDFC000\";\n\t\tConnection con = s.connection();\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"select USR_ACCT_NO from HDFC_USR_INFO order by USR_ACCT_NO DESC\");\n\t\t\tif(rs.next()){\n\t\t\t\tname = name+rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn name;\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileSessionCreatedByColumn()\n {\n return newMobileSessionCreatedByColumn(\"Mobile Session Created By\");\n }", "public ArrayList<Guest02Dto> getList(){\n\t\tArrayList<Guest02Dto> list=new ArrayList<Guest02Dto>();\n\t\tString sql=\"select num,sub,(select name from user02 \";\n\t\tsql+=\" where num=unum) as uname,pay from GUEST02\";\n\t\tjavax.sql.DataSource source=null;\n\t\ttry {\n\t\t\tInitialContext init = new InitialContext();\n\t\t\tContext context=(Context)init.lookup(\"java:/comp/env\");\n\t\t\tsource=(javax.sql.DataSource) context.lookup(\"jdbc/oracle\");\n\t\t\t\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\tResultSet rs=null;\n\t\t\n\t\ttry {\n\t\t\tconn=source.getConnection();\n\t\t\tpstmt=conn.prepareStatement(sql);\n\t\t\trs=pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuest02Dto bean=new Guest02Dto();\n\t\t\t\tbean.setNum(rs.getInt(\"num\"));\n\t\t\t\tbean.setSub(rs.getString(\"sub\"));\n\t\t\t\tbean.setName(rs.getString(\"uname\"));\n\t\t\t\tbean.setPay(rs.getInt(\"pay\"));\n\t\t\t\tlist.add(bean);\n\t\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(rs!=null)rs.close();\n\t\t\t\tif(pstmt!=null)pstmt.close();\n\t\t\t\tif(conn!=null)conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }", "@Override public final String toString() {\r\n return String.format(this.vId + \"\\t\" + this.vName\r\n + \"\\t\" + this.vUserName + \"\\t\" + this.vPassword + \"\\t\" + this.vPhone);\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Customer[id=\"+id+\",firstName=\"+firstName+\",lastName=\"+lastName+\",age=\"\r\n\t\t\t\t+age+\",createdTime=\"+createdTime+\",updateTime=\"+updateTime+\"]\";\r\n\t}", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "public Table buildAssetDetailsTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 610px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tif (dto.getAssetConfig() != null && dto.getAssetConfig().size() > 0) {\n\n\t\t\tint count = 0;\n\n\t\t\tfor (AssetConfig asset : dto.getAssetConfig()) {\n\n\t\t\t\tTableRow row = new TableRow();\n\n\t\t\t\tTableData facility = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getFacility())));\n\t\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\t\tTableData workCenterCode = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getWorkCenterCode())));\n\t\t\t\tworkCenterCode.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 15% ; vertical-align: middle\");\n\n\t\t\t\tTableData description = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getDescription())));\n\t\t\t\tdescription.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 35% ; vertical-align: middle\");\n\n\t\t\t\tTableData assetNumber = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(/*asset.getAssetNumber()*/\"123456789123456\")));\n\t\t\t\tassetNumber.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 20% ; vertical-align: middle\");\n\n\t\t\t\tString statusFlag = asset.getStatus();\n\n\t\t\t\tTableData status;\n\t\t\t\tif (!\"A\".equalsIgnoreCase(statusFlag)) {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" />\"));\n\t\t\t\t} else {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t\t}\n\t\t\t\tstatus.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\t\tstatus.addAttribute(\"disabled\", \"disabled\");\n\n\t\t\t\tTableData editImage = new TableData(new Image(\n\t\t\t\t\t\t\"static/images/edit.jpg\", \"Edit\"));\n\t\t\t\teditImage.addAttribute(\"style\", \"width: 10%\");\n\t\t\t\teditImage.addAttribute(\"onClick\", \"javascript:edit('\" + count\n\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getWorkCenterCode())\n\t\t\t\t\t\t+ \"','\" + asset.getFacility() + \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getDescription()) + \"','\"\n\t\t\t\t\t\t+ asset.getAssetNumber() + \"','\" + asset.getStatus()\n\t\t\t\t\t\t+ \"');\");\n\t\t\t\teditImage.addAttribute(\"style\", \"cursor: pointer;\");\n\n\t\t\t\trow.addTableData(facility);\n\t\t\t\trow.addTableData(workCenterCode);\n\t\t\t\trow.addTableData(assetNumber);\n\t\t\t\trow.addTableData(description);\n\t\t\t\trow.addTableData(status);\n\t\t\t\trow.addTableData(editImage);\n\n\t\t\t\tif (count % 2 == 0) {\n\t\t\t\t\trow.addAttribute(\"class\", \"normalRow\");\n\t\t\t\t} else {\n\t\t\t\t\trow.addAttribute(\"class\", \"alternateRow\");\n\t\t\t\t}\n\t\t\t\ttable.addTableRow(row);\n\t\t\t\tcount++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn table;\n\t}", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "Basicinfo selectByPrimaryKey(String taxregcode);", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}", "@Override\n public String toString() {\n String details = \"\";\n\n if (this.columnType.getValue() != ColumnType._ANY) {\n details += \" typu '\" + this.columnType.getValue().toString() + \"'\";\n }\n if (!this.columnName.getValue().isEmpty()) {\n details += \" s názvem '\" + this.columnName.getValue() + \"'\";\n }\n if (this.columnIsPrimary.getValue() != YesNoType._ANY) {\n details += \", které \" + (this.columnIsPrimary.getValue() == YesNoType.YES ? \"jsou\" : \"nejsou\") + \" primárním klíčem,\";\n }\n\n return \"Počet sloupců\" + details + \" v každé tabulce \" + this.countOp.getValue() + \" \" + this.count.getValue();\n }", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "ClOrderInfo selectByPrimaryKey(String orderId);", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "@Override\r\npublic List<OrderInfo> selectUnfinishedSaleOrderList() {\n\t\treturn OrderInfoMapper.selectUnfinishedSaleOrderList();\r\n}", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic List<HashMap<String, String>> GeunTaeList(HashMap<String, String> params) {\n\t\treturn sqlsession.selectList(\"GeuntaeMgnt.GeunTaeList\",params);\r\n\t}", "@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}" ]
[ "0.5967312", "0.54307216", "0.5095361", "0.5056573", "0.50336015", "0.5020163", "0.50114596", "0.4977055", "0.4975924", "0.49726197", "0.49679083", "0.49661392", "0.49465713", "0.49343327", "0.49217805", "0.49192396", "0.4898314", "0.48977977", "0.4890611", "0.4889592", "0.48627892", "0.4862108", "0.48511332", "0.4847869", "0.48464978", "0.48398867", "0.4818299", "0.4795115", "0.47923705", "0.47843912", "0.47841007", "0.47732058", "0.475674", "0.4746502", "0.4746502", "0.47444993", "0.47402152", "0.47269475", "0.47069502", "0.47042647", "0.46935254", "0.46935004", "0.46880412", "0.46691424", "0.46686402", "0.46682388", "0.46560967", "0.4654693", "0.46518788", "0.46505314", "0.4650502", "0.46478474", "0.4647416", "0.46429506", "0.46393457", "0.46202576", "0.46145752", "0.46120426", "0.46024108", "0.4599539", "0.45891696", "0.45880646", "0.45847338", "0.45813796", "0.45813447", "0.4580121", "0.4579681", "0.4575782", "0.4572363", "0.45678884", "0.45677313", "0.45542005", "0.45534444", "0.45502147", "0.45501253", "0.4548513", "0.45473075", "0.45406452", "0.45404264", "0.45384142", "0.45353523", "0.45314878", "0.4531106", "0.4528855", "0.4526603", "0.4526152", "0.4521833", "0.45194894", "0.4515628", "0.4512006", "0.45112592", "0.4509336", "0.44963232", "0.44961762", "0.44946957", "0.449393", "0.44933403", "0.44913507", "0.44884542", "0.44851267" ]
0.46146044
56
This method was generated by MyBatis Generator. This method corresponds to the database table uc_order_guest_info
List<UcOrderGuestInfo> selectByExample(UcOrderGuestInfoExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UcOrderGuestInfo selectByPrimaryKey(Long id);", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public GuestInfo getGuestInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo res){\n\t\tGuestInfo guestInfo = new GuestInfo();\n\t\t\n\t\tguestInfo.setSelectedFlag( res.getSelectedFlag() );\n\t\tguestInfo.setGuestId( res.getGuestId() );\n\t\tguestInfo.setTitle( res.getTitle() );\n\t\tguestInfo.setFirstName( res.getFirstName() );\n\t\tguestInfo.setMiddleName( res.getMiddleName() );\n\t\tguestInfo.setLastName( res.getLastName() );\n\t\tguestInfo.setGender( res.getGender() );\n\t\tguestInfo.setPhoneNumber( res.getPhoneNumber() );\n\t\tguestInfo.setEmailId( res.getEmailId() );\n\t\tguestInfo.setParentGuestId( res.getParentGuestId() );\n\t\tguestInfo.setEmergencyContactName( res.getEmergencyContactName() );\n\t\t//Start the the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\t// Map/Setting the emergency contact phone correctly.\n\t\tguestInfo.setEmergencyContactPhone( res.getEmergencyContactPhone() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\tguestInfo.setFrequentFlyerNo( res.getFrequentFlyerNo() );\n\t\tguestInfo.setAirRemarks( res.getAirRemarks() );\n\t\tguestInfo.setHotelRemarks( res.getHotelRemarks() );\n\t\tguestInfo.setCruiseRemarks( res.getCruiseRemarks() );\n\t\tguestInfo.setMealRequest( res.getMealRequest() );\n\t\tguestInfo.setAirRequest( res.getAirRequest() );\n\t\tguestInfo.setGroundRequest( res.getGroundRequest() );\n\t\tguestInfo.setCateringRequest( res.getCateringRequest() );\n\t\tguestInfo.setSeatPreference( res.getSeatPreference() );\n\t\tguestInfo.setPnrNumber( res.getPnrNumber() );\n\t\tguestInfo.setStatus( res.getStatus() );\n\t\tguestInfo.setRedressNumber( res.getRedressNumber() );\n\t\tguestInfo.setChangeType( res.getChangeType() );\n\t\tguestInfo.setOldPaxId( res.getOldPaxId() );\n\t\tguestInfo.setPaxWeight( res.getPaxWeight() );\n\t\tif( res.getAge() != null ){\n\t\t\tguestInfo.setAge( res.getAge().byteValue() );\n\t\t}\n\t\tif( res.isLapChild() != null ){\n\t\t\tguestInfo.setLapChild( res.isLapChild().booleanValue() );\n\t\t}\n\t\tif( res.getDateOfBirth() != null ){\n\t\t\tguestInfo.setDateOfBirth( this.dateConverterXMLtoUtilBirthDate( res.getDateOfBirth() ) );\n\t\t}\n\t\tif( (res.getAgeCode() != null) && (res.getAgeCode().getAge() > 0) ){\n\t\t\tguestInfo.setAgeCode( this.getAgeCode( res.getAgeCode() ) );\n\t\t}\n\t\tif( res.getPassportInfo() != null ){\n\t\t\tguestInfo.setPassportInfo( this.getPassportInfo( res.getPassportInfo() ) );\n\t\t}\n\t\tif( res.getPriceBreakup() != null ){\n\t\t\tguestInfo.setPriceBreakup( this.getGuestPriceBreakup( res.getPriceBreakup() ) );\n\t\t}\n\t\t\n\t\treturn guestInfo;\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\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}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tString s = \"user's id=\" + id +\"hotel Name = \" + hotelName +\", RoomNumber\" + roomNumber+\" hotelPrice=\" + price + \", roomType=\" + type; \n\t\treturn s;\n\t}", "public List<Output> viewOrders(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n List<PurchaseOrder> poList = new ArrayList<PurchaseOrder>();\n List<Output> outputList = new ArrayList<>();\n\n try {\n session.beginTransaction();\n\n String sqlQuery = \"select po.id , po.poNumber, po.seller_vendor, po.dueDate, po.status, po.priority, org.shipFrom, des.shipTo, po.transResp \\n\" +\n \"from PurchaseOrder po \\n\" +\n \"join purchaseorder_origin_address porg on po.id=porg.PurchaseOrder_id\\n\" +\n \"join origin_address org on org.ID=porg.originAddresses_ID\\n\" +\n \"join purchaseorder_destination_address pd on po.id=pd.PurchaseOrder_id\\n\" +\n \"join destination_address des on des.ID=pd.destinationAddresses_ID \";\n\n SQLQuery query = session.createSQLQuery(sqlQuery);\n query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n /*query.setFirstResult(RetrieveAction.count*5);\n RetrieveAction.count++;\n query.setMaxResults(5);*/\n poList = query.list();\n tx.commit();\n session.close();\n for(Object po : poList){\n Map m = (Map) po;\n Output output = new Output();\n output.setPoNumber((int)m.get(\"poNumber\"));\n output.setSupplier(m.get(\"seller_vendor\").toString());\n output.setDueDate((Date) m.get(\"dueDate\"));\n output.setStatus(m.get(\"status\").toString());\n output.setPriority(m.get(\"priority\").toString());\n output.setShipfrom(m.get(\"shipFrom\").toString());\n output.setShipto(m.get(\"shipTo\").toString());\n output.setTransresp(m.get(\"transResp\").toString());\n outputList.add(output);\n }\n\n return outputList;\n\n } catch (Exception e) {\n System.err.println(\"Error getting Users :\" + e.getMessage());\n session.getTransaction().rollback();\n }\n return outputList;\n }", "TbaDeliveryinfo selectByPrimaryKey(Integer deliveryid);", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "@Override\n\tpublic String inspectPrimaryKey() {\n\t\treturn \"INDV_ELG: \" + \"bnft_pin_num=\" + bnft_pin_num + \",\" + \"bnft_case_num=\" + bnft_case_num + \",\" + \"cat_cd=\" + cat_cd + \",\" + \"scat_cd=\"\n\t\t\t\t+ scat_cd + \",\" + \"scat_seq_num=\" + scat_seq_num + \",\" + \"cur_elg_ind=\" + cur_elg_ind + \",\" + \"pymt_beg_dt=\" + pymt_beg_dt;\n\t}", "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "organize_infoBean selectByPrimaryKey(Integer id);", "public List getOrderDetails(OrderDetail orderDetail);", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "@Override\n\tpublic ProductVO detailOrderList(int p_num) {\n\t\treturn sql.selectOne(\"detailOrderList\", p_num);\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public void selectSomeField() {\n\t\tList<com.service.JpaSelectSpecificColumns.SubOrder> findAllSubOrder = springDataSelectSpecificColumns.findAllSubOrder();\n\t\tfindAllSubOrder.forEach(t -> System.out.println(t));\n\t}", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "int insert(UcOrderGuestInfo record);", "@Override\r\n\tpublic List<OrderDetailBean> query(OrderDetailBean detail) {\n\t\treturn dao.query(detail);\r\n\t}", "@Override\n public String getSearchIDFromDB(String email, String vertical) {\n String sql = \"select SEARCH_ID from SEARCH a inner join customer c on \" +\n \"a.CUSTOMER_ID = c.CUSTOMER_ID where \" +\n \"CLASS = '\" + vertical + \"' and \" +\n \"c.EMAIL = '\" + email + \"' \" +\n \"order by a.CREATE_DATE desc\";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"SEARCH_ID\").toString();\n }", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Address> selectAll();", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "public int getGuestAddress() {\n return guestAddress;\n }", "@Override\n\tpublic Serializable generate(SessionImplementor s, Object obj) {\n\t\tString name = \"HDFC000\";\n\t\tConnection con = s.connection();\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"select USR_ACCT_NO from HDFC_USR_INFO order by USR_ACCT_NO DESC\");\n\t\t\tif(rs.next()){\n\t\t\t\tname = name+rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn name;\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileSessionCreatedByColumn()\n {\n return newMobileSessionCreatedByColumn(\"Mobile Session Created By\");\n }", "public ArrayList<Guest02Dto> getList(){\n\t\tArrayList<Guest02Dto> list=new ArrayList<Guest02Dto>();\n\t\tString sql=\"select num,sub,(select name from user02 \";\n\t\tsql+=\" where num=unum) as uname,pay from GUEST02\";\n\t\tjavax.sql.DataSource source=null;\n\t\ttry {\n\t\t\tInitialContext init = new InitialContext();\n\t\t\tContext context=(Context)init.lookup(\"java:/comp/env\");\n\t\t\tsource=(javax.sql.DataSource) context.lookup(\"jdbc/oracle\");\n\t\t\t\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\tResultSet rs=null;\n\t\t\n\t\ttry {\n\t\t\tconn=source.getConnection();\n\t\t\tpstmt=conn.prepareStatement(sql);\n\t\t\trs=pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuest02Dto bean=new Guest02Dto();\n\t\t\t\tbean.setNum(rs.getInt(\"num\"));\n\t\t\t\tbean.setSub(rs.getString(\"sub\"));\n\t\t\t\tbean.setName(rs.getString(\"uname\"));\n\t\t\t\tbean.setPay(rs.getInt(\"pay\"));\n\t\t\t\tlist.add(bean);\n\t\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(rs!=null)rs.close();\n\t\t\t\tif(pstmt!=null)pstmt.close();\n\t\t\t\tif(conn!=null)conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "int insertSelective(UcOrderGuestInfo record);", "@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }", "@Override public final String toString() {\r\n return String.format(this.vId + \"\\t\" + this.vName\r\n + \"\\t\" + this.vUserName + \"\\t\" + this.vPassword + \"\\t\" + this.vPhone);\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Customer[id=\"+id+\",firstName=\"+firstName+\",lastName=\"+lastName+\",age=\"\r\n\t\t\t\t+age+\",createdTime=\"+createdTime+\",updateTime=\"+updateTime+\"]\";\r\n\t}", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "public Table buildAssetDetailsTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 610px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tif (dto.getAssetConfig() != null && dto.getAssetConfig().size() > 0) {\n\n\t\t\tint count = 0;\n\n\t\t\tfor (AssetConfig asset : dto.getAssetConfig()) {\n\n\t\t\t\tTableRow row = new TableRow();\n\n\t\t\t\tTableData facility = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getFacility())));\n\t\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\t\tTableData workCenterCode = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getWorkCenterCode())));\n\t\t\t\tworkCenterCode.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 15% ; vertical-align: middle\");\n\n\t\t\t\tTableData description = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getDescription())));\n\t\t\t\tdescription.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 35% ; vertical-align: middle\");\n\n\t\t\t\tTableData assetNumber = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(/*asset.getAssetNumber()*/\"123456789123456\")));\n\t\t\t\tassetNumber.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 20% ; vertical-align: middle\");\n\n\t\t\t\tString statusFlag = asset.getStatus();\n\n\t\t\t\tTableData status;\n\t\t\t\tif (!\"A\".equalsIgnoreCase(statusFlag)) {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" />\"));\n\t\t\t\t} else {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t\t}\n\t\t\t\tstatus.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\t\tstatus.addAttribute(\"disabled\", \"disabled\");\n\n\t\t\t\tTableData editImage = new TableData(new Image(\n\t\t\t\t\t\t\"static/images/edit.jpg\", \"Edit\"));\n\t\t\t\teditImage.addAttribute(\"style\", \"width: 10%\");\n\t\t\t\teditImage.addAttribute(\"onClick\", \"javascript:edit('\" + count\n\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getWorkCenterCode())\n\t\t\t\t\t\t+ \"','\" + asset.getFacility() + \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getDescription()) + \"','\"\n\t\t\t\t\t\t+ asset.getAssetNumber() + \"','\" + asset.getStatus()\n\t\t\t\t\t\t+ \"');\");\n\t\t\t\teditImage.addAttribute(\"style\", \"cursor: pointer;\");\n\n\t\t\t\trow.addTableData(facility);\n\t\t\t\trow.addTableData(workCenterCode);\n\t\t\t\trow.addTableData(assetNumber);\n\t\t\t\trow.addTableData(description);\n\t\t\t\trow.addTableData(status);\n\t\t\t\trow.addTableData(editImage);\n\n\t\t\t\tif (count % 2 == 0) {\n\t\t\t\t\trow.addAttribute(\"class\", \"normalRow\");\n\t\t\t\t} else {\n\t\t\t\t\trow.addAttribute(\"class\", \"alternateRow\");\n\t\t\t\t}\n\t\t\t\ttable.addTableRow(row);\n\t\t\t\tcount++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn table;\n\t}", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "Basicinfo selectByPrimaryKey(String taxregcode);", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "@Override\n public String toString() {\n String details = \"\";\n\n if (this.columnType.getValue() != ColumnType._ANY) {\n details += \" typu '\" + this.columnType.getValue().toString() + \"'\";\n }\n if (!this.columnName.getValue().isEmpty()) {\n details += \" s názvem '\" + this.columnName.getValue() + \"'\";\n }\n if (this.columnIsPrimary.getValue() != YesNoType._ANY) {\n details += \", které \" + (this.columnIsPrimary.getValue() == YesNoType.YES ? \"jsou\" : \"nejsou\") + \" primárním klíčem,\";\n }\n\n return \"Počet sloupců\" + details + \" v každé tabulce \" + this.countOp.getValue() + \" \" + this.count.getValue();\n }", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "ClOrderInfo selectByPrimaryKey(String orderId);", "@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "@Override\r\npublic List<OrderInfo> selectUnfinishedSaleOrderList() {\n\t\treturn OrderInfoMapper.selectUnfinishedSaleOrderList();\r\n}", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);", "@Override\r\n\tpublic List<HashMap<String, String>> GeunTaeList(HashMap<String, String> params) {\n\t\treturn sqlsession.selectList(\"GeuntaeMgnt.GeunTaeList\",params);\r\n\t}", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}" ]
[ "0.59679544", "0.5095957", "0.505718", "0.503224", "0.50196356", "0.5010775", "0.497697", "0.49743563", "0.49709788", "0.49674714", "0.49671787", "0.49457926", "0.4934255", "0.49222803", "0.49195752", "0.48989034", "0.4898203", "0.48898008", "0.48892307", "0.48633268", "0.4862308", "0.4851176", "0.48482385", "0.4846497", "0.48405117", "0.48187378", "0.47956073", "0.4793173", "0.47863743", "0.47843966", "0.47734234", "0.47556725", "0.47455806", "0.47455806", "0.47453645", "0.47395456", "0.4726392", "0.470666", "0.4704746", "0.4694701", "0.4692638", "0.46875826", "0.46699893", "0.46684414", "0.4666166", "0.46554828", "0.4654679", "0.46528074", "0.46498343", "0.46494555", "0.46476966", "0.464684", "0.46437472", "0.4638105", "0.46190345", "0.4614804", "0.46136022", "0.46125838", "0.46013793", "0.4598544", "0.45898858", "0.4586541", "0.4584201", "0.45806846", "0.45801282", "0.45795703", "0.4579556", "0.4575231", "0.45718104", "0.45679665", "0.4567914", "0.45546332", "0.45525336", "0.4550479", "0.4549758", "0.45488837", "0.45457754", "0.45410138", "0.45405257", "0.4539248", "0.45358676", "0.45323652", "0.45311898", "0.45296082", "0.45267978", "0.45261142", "0.4519704", "0.45182383", "0.45155597", "0.45122302", "0.45112786", "0.45090836", "0.44976383", "0.4495971", "0.4494727", "0.44942722", "0.44935077", "0.44897643", "0.44895044", "0.44859347" ]
0.54316205
1
This method was generated by MyBatis Generator. This method corresponds to the database table uc_order_guest_info
UcOrderGuestInfo selectByPrimaryKey(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<UcOrderGuestInfo> selectByExample(UcOrderGuestInfoExample example);", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public GuestInfo getGuestInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo res){\n\t\tGuestInfo guestInfo = new GuestInfo();\n\t\t\n\t\tguestInfo.setSelectedFlag( res.getSelectedFlag() );\n\t\tguestInfo.setGuestId( res.getGuestId() );\n\t\tguestInfo.setTitle( res.getTitle() );\n\t\tguestInfo.setFirstName( res.getFirstName() );\n\t\tguestInfo.setMiddleName( res.getMiddleName() );\n\t\tguestInfo.setLastName( res.getLastName() );\n\t\tguestInfo.setGender( res.getGender() );\n\t\tguestInfo.setPhoneNumber( res.getPhoneNumber() );\n\t\tguestInfo.setEmailId( res.getEmailId() );\n\t\tguestInfo.setParentGuestId( res.getParentGuestId() );\n\t\tguestInfo.setEmergencyContactName( res.getEmergencyContactName() );\n\t\t//Start the the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\t// Map/Setting the emergency contact phone correctly.\n\t\tguestInfo.setEmergencyContactPhone( res.getEmergencyContactPhone() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\tguestInfo.setFrequentFlyerNo( res.getFrequentFlyerNo() );\n\t\tguestInfo.setAirRemarks( res.getAirRemarks() );\n\t\tguestInfo.setHotelRemarks( res.getHotelRemarks() );\n\t\tguestInfo.setCruiseRemarks( res.getCruiseRemarks() );\n\t\tguestInfo.setMealRequest( res.getMealRequest() );\n\t\tguestInfo.setAirRequest( res.getAirRequest() );\n\t\tguestInfo.setGroundRequest( res.getGroundRequest() );\n\t\tguestInfo.setCateringRequest( res.getCateringRequest() );\n\t\tguestInfo.setSeatPreference( res.getSeatPreference() );\n\t\tguestInfo.setPnrNumber( res.getPnrNumber() );\n\t\tguestInfo.setStatus( res.getStatus() );\n\t\tguestInfo.setRedressNumber( res.getRedressNumber() );\n\t\tguestInfo.setChangeType( res.getChangeType() );\n\t\tguestInfo.setOldPaxId( res.getOldPaxId() );\n\t\tguestInfo.setPaxWeight( res.getPaxWeight() );\n\t\tif( res.getAge() != null ){\n\t\t\tguestInfo.setAge( res.getAge().byteValue() );\n\t\t}\n\t\tif( res.isLapChild() != null ){\n\t\t\tguestInfo.setLapChild( res.isLapChild().booleanValue() );\n\t\t}\n\t\tif( res.getDateOfBirth() != null ){\n\t\t\tguestInfo.setDateOfBirth( this.dateConverterXMLtoUtilBirthDate( res.getDateOfBirth() ) );\n\t\t}\n\t\tif( (res.getAgeCode() != null) && (res.getAgeCode().getAge() > 0) ){\n\t\t\tguestInfo.setAgeCode( this.getAgeCode( res.getAgeCode() ) );\n\t\t}\n\t\tif( res.getPassportInfo() != null ){\n\t\t\tguestInfo.setPassportInfo( this.getPassportInfo( res.getPassportInfo() ) );\n\t\t}\n\t\tif( res.getPriceBreakup() != null ){\n\t\t\tguestInfo.setPriceBreakup( this.getGuestPriceBreakup( res.getPriceBreakup() ) );\n\t\t}\n\t\t\n\t\treturn guestInfo;\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\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}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tString s = \"user's id=\" + id +\"hotel Name = \" + hotelName +\", RoomNumber\" + roomNumber+\" hotelPrice=\" + price + \", roomType=\" + type; \n\t\treturn s;\n\t}", "public List<Output> viewOrders(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n List<PurchaseOrder> poList = new ArrayList<PurchaseOrder>();\n List<Output> outputList = new ArrayList<>();\n\n try {\n session.beginTransaction();\n\n String sqlQuery = \"select po.id , po.poNumber, po.seller_vendor, po.dueDate, po.status, po.priority, org.shipFrom, des.shipTo, po.transResp \\n\" +\n \"from PurchaseOrder po \\n\" +\n \"join purchaseorder_origin_address porg on po.id=porg.PurchaseOrder_id\\n\" +\n \"join origin_address org on org.ID=porg.originAddresses_ID\\n\" +\n \"join purchaseorder_destination_address pd on po.id=pd.PurchaseOrder_id\\n\" +\n \"join destination_address des on des.ID=pd.destinationAddresses_ID \";\n\n SQLQuery query = session.createSQLQuery(sqlQuery);\n query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n /*query.setFirstResult(RetrieveAction.count*5);\n RetrieveAction.count++;\n query.setMaxResults(5);*/\n poList = query.list();\n tx.commit();\n session.close();\n for(Object po : poList){\n Map m = (Map) po;\n Output output = new Output();\n output.setPoNumber((int)m.get(\"poNumber\"));\n output.setSupplier(m.get(\"seller_vendor\").toString());\n output.setDueDate((Date) m.get(\"dueDate\"));\n output.setStatus(m.get(\"status\").toString());\n output.setPriority(m.get(\"priority\").toString());\n output.setShipfrom(m.get(\"shipFrom\").toString());\n output.setShipto(m.get(\"shipTo\").toString());\n output.setTransresp(m.get(\"transResp\").toString());\n outputList.add(output);\n }\n\n return outputList;\n\n } catch (Exception e) {\n System.err.println(\"Error getting Users :\" + e.getMessage());\n session.getTransaction().rollback();\n }\n return outputList;\n }", "TbaDeliveryinfo selectByPrimaryKey(Integer deliveryid);", "@Override\n\tpublic String inspectPrimaryKey() {\n\t\treturn \"INDV_ELG: \" + \"bnft_pin_num=\" + bnft_pin_num + \",\" + \"bnft_case_num=\" + bnft_case_num + \",\" + \"cat_cd=\" + cat_cd + \",\" + \"scat_cd=\"\n\t\t\t\t+ scat_cd + \",\" + \"scat_seq_num=\" + scat_seq_num + \",\" + \"cur_elg_ind=\" + cur_elg_ind + \",\" + \"pymt_beg_dt=\" + pymt_beg_dt;\n\t}", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "organize_infoBean selectByPrimaryKey(Integer id);", "public List getOrderDetails(OrderDetail orderDetail);", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "@Override\n\tpublic ProductVO detailOrderList(int p_num) {\n\t\treturn sql.selectOne(\"detailOrderList\", p_num);\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public void selectSomeField() {\n\t\tList<com.service.JpaSelectSpecificColumns.SubOrder> findAllSubOrder = springDataSelectSpecificColumns.findAllSubOrder();\n\t\tfindAllSubOrder.forEach(t -> System.out.println(t));\n\t}", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "int insert(UcOrderGuestInfo record);", "@Override\r\n\tpublic List<OrderDetailBean> query(OrderDetailBean detail) {\n\t\treturn dao.query(detail);\r\n\t}", "@Override\n public String getSearchIDFromDB(String email, String vertical) {\n String sql = \"select SEARCH_ID from SEARCH a inner join customer c on \" +\n \"a.CUSTOMER_ID = c.CUSTOMER_ID where \" +\n \"CLASS = '\" + vertical + \"' and \" +\n \"c.EMAIL = '\" + email + \"' \" +\n \"order by a.CREATE_DATE desc\";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"SEARCH_ID\").toString();\n }", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Address> selectAll();", "public int getGuestAddress() {\n return guestAddress;\n }", "@Override\n\tpublic Serializable generate(SessionImplementor s, Object obj) {\n\t\tString name = \"HDFC000\";\n\t\tConnection con = s.connection();\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"select USR_ACCT_NO from HDFC_USR_INFO order by USR_ACCT_NO DESC\");\n\t\t\tif(rs.next()){\n\t\t\t\tname = name+rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn name;\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileSessionCreatedByColumn()\n {\n return newMobileSessionCreatedByColumn(\"Mobile Session Created By\");\n }", "@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }", "int insertSelective(UcOrderGuestInfo record);", "public ArrayList<Guest02Dto> getList(){\n\t\tArrayList<Guest02Dto> list=new ArrayList<Guest02Dto>();\n\t\tString sql=\"select num,sub,(select name from user02 \";\n\t\tsql+=\" where num=unum) as uname,pay from GUEST02\";\n\t\tjavax.sql.DataSource source=null;\n\t\ttry {\n\t\t\tInitialContext init = new InitialContext();\n\t\t\tContext context=(Context)init.lookup(\"java:/comp/env\");\n\t\t\tsource=(javax.sql.DataSource) context.lookup(\"jdbc/oracle\");\n\t\t\t\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\tResultSet rs=null;\n\t\t\n\t\ttry {\n\t\t\tconn=source.getConnection();\n\t\t\tpstmt=conn.prepareStatement(sql);\n\t\t\trs=pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuest02Dto bean=new Guest02Dto();\n\t\t\t\tbean.setNum(rs.getInt(\"num\"));\n\t\t\t\tbean.setSub(rs.getString(\"sub\"));\n\t\t\t\tbean.setName(rs.getString(\"uname\"));\n\t\t\t\tbean.setPay(rs.getInt(\"pay\"));\n\t\t\t\tlist.add(bean);\n\t\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(rs!=null)rs.close();\n\t\t\t\tif(pstmt!=null)pstmt.close();\n\t\t\t\tif(conn!=null)conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Override public final String toString() {\r\n return String.format(this.vId + \"\\t\" + this.vName\r\n + \"\\t\" + this.vUserName + \"\\t\" + this.vPassword + \"\\t\" + this.vPhone);\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Customer[id=\"+id+\",firstName=\"+firstName+\",lastName=\"+lastName+\",age=\"\r\n\t\t\t\t+age+\",createdTime=\"+createdTime+\",updateTime=\"+updateTime+\"]\";\r\n\t}", "public Table buildAssetDetailsTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 610px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tif (dto.getAssetConfig() != null && dto.getAssetConfig().size() > 0) {\n\n\t\t\tint count = 0;\n\n\t\t\tfor (AssetConfig asset : dto.getAssetConfig()) {\n\n\t\t\t\tTableRow row = new TableRow();\n\n\t\t\t\tTableData facility = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getFacility())));\n\t\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\t\tTableData workCenterCode = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getWorkCenterCode())));\n\t\t\t\tworkCenterCode.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 15% ; vertical-align: middle\");\n\n\t\t\t\tTableData description = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getDescription())));\n\t\t\t\tdescription.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 35% ; vertical-align: middle\");\n\n\t\t\t\tTableData assetNumber = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(/*asset.getAssetNumber()*/\"123456789123456\")));\n\t\t\t\tassetNumber.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 20% ; vertical-align: middle\");\n\n\t\t\t\tString statusFlag = asset.getStatus();\n\n\t\t\t\tTableData status;\n\t\t\t\tif (!\"A\".equalsIgnoreCase(statusFlag)) {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" />\"));\n\t\t\t\t} else {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t\t}\n\t\t\t\tstatus.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\t\tstatus.addAttribute(\"disabled\", \"disabled\");\n\n\t\t\t\tTableData editImage = new TableData(new Image(\n\t\t\t\t\t\t\"static/images/edit.jpg\", \"Edit\"));\n\t\t\t\teditImage.addAttribute(\"style\", \"width: 10%\");\n\t\t\t\teditImage.addAttribute(\"onClick\", \"javascript:edit('\" + count\n\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getWorkCenterCode())\n\t\t\t\t\t\t+ \"','\" + asset.getFacility() + \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getDescription()) + \"','\"\n\t\t\t\t\t\t+ asset.getAssetNumber() + \"','\" + asset.getStatus()\n\t\t\t\t\t\t+ \"');\");\n\t\t\t\teditImage.addAttribute(\"style\", \"cursor: pointer;\");\n\n\t\t\t\trow.addTableData(facility);\n\t\t\t\trow.addTableData(workCenterCode);\n\t\t\t\trow.addTableData(assetNumber);\n\t\t\t\trow.addTableData(description);\n\t\t\t\trow.addTableData(status);\n\t\t\t\trow.addTableData(editImage);\n\n\t\t\t\tif (count % 2 == 0) {\n\t\t\t\t\trow.addAttribute(\"class\", \"normalRow\");\n\t\t\t\t} else {\n\t\t\t\t\trow.addAttribute(\"class\", \"alternateRow\");\n\t\t\t\t}\n\t\t\t\ttable.addTableRow(row);\n\t\t\t\tcount++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn table;\n\t}", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "Basicinfo selectByPrimaryKey(String taxregcode);", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }", "@Override\n public String toString() {\n String details = \"\";\n\n if (this.columnType.getValue() != ColumnType._ANY) {\n details += \" typu '\" + this.columnType.getValue().toString() + \"'\";\n }\n if (!this.columnName.getValue().isEmpty()) {\n details += \" s názvem '\" + this.columnName.getValue() + \"'\";\n }\n if (this.columnIsPrimary.getValue() != YesNoType._ANY) {\n details += \", které \" + (this.columnIsPrimary.getValue() == YesNoType.YES ? \"jsou\" : \"nejsou\") + \" primárním klíčem,\";\n }\n\n return \"Počet sloupců\" + details + \" v každé tabulce \" + this.countOp.getValue() + \" \" + this.count.getValue();\n }", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "ClOrderInfo selectByPrimaryKey(String orderId);", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "@Override\r\npublic List<OrderInfo> selectUnfinishedSaleOrderList() {\n\t\treturn OrderInfoMapper.selectUnfinishedSaleOrderList();\r\n}", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic List<HashMap<String, String>> GeunTaeList(HashMap<String, String> params) {\n\t\treturn sqlsession.selectList(\"GeuntaeMgnt.GeunTaeList\",params);\r\n\t}", "@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}" ]
[ "0.5430412", "0.509382", "0.50578535", "0.5032601", "0.5018578", "0.5012282", "0.4976719", "0.49758866", "0.49703467", "0.49687666", "0.49675158", "0.49461478", "0.4936134", "0.4921217", "0.49207553", "0.48992163", "0.48963723", "0.489108", "0.48900905", "0.4862083", "0.48604104", "0.48507977", "0.48477474", "0.4846186", "0.4839804", "0.48188612", "0.4795127", "0.47929537", "0.4785345", "0.47818083", "0.47720847", "0.47572625", "0.47446606", "0.47446606", "0.4742496", "0.47407413", "0.47255906", "0.4705816", "0.47026274", "0.46927127", "0.46909362", "0.46886033", "0.46684575", "0.4667524", "0.46664014", "0.46559086", "0.46556562", "0.46524224", "0.46514323", "0.46494588", "0.46468905", "0.4645243", "0.46433967", "0.46394417", "0.4619872", "0.461334", "0.4612891", "0.46123183", "0.46031055", "0.45997998", "0.4588932", "0.4588843", "0.4584063", "0.4581802", "0.4580638", "0.45796877", "0.4577552", "0.45748326", "0.45734215", "0.45693654", "0.45679373", "0.45535198", "0.45517743", "0.45515227", "0.45496574", "0.45471033", "0.45464", "0.45412236", "0.4539154", "0.45381647", "0.4533498", "0.45322883", "0.4530333", "0.45275277", "0.45271757", "0.45235902", "0.45209208", "0.45179474", "0.4516143", "0.4511044", "0.45109117", "0.45109054", "0.44953978", "0.4495248", "0.44927388", "0.44921863", "0.44914278", "0.44892898", "0.44870794", "0.44846243" ]
0.59686077
0
This method was generated by MyBatis Generator. This method corresponds to the database table uc_order_guest_info
int updateByExampleSelective(@Param("record") UcOrderGuestInfo record, @Param("example") UcOrderGuestInfoExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UcOrderGuestInfo selectByPrimaryKey(Long id);", "List<UcOrderGuestInfo> selectByExample(UcOrderGuestInfoExample example);", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public GuestInfo getGuestInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo res){\n\t\tGuestInfo guestInfo = new GuestInfo();\n\t\t\n\t\tguestInfo.setSelectedFlag( res.getSelectedFlag() );\n\t\tguestInfo.setGuestId( res.getGuestId() );\n\t\tguestInfo.setTitle( res.getTitle() );\n\t\tguestInfo.setFirstName( res.getFirstName() );\n\t\tguestInfo.setMiddleName( res.getMiddleName() );\n\t\tguestInfo.setLastName( res.getLastName() );\n\t\tguestInfo.setGender( res.getGender() );\n\t\tguestInfo.setPhoneNumber( res.getPhoneNumber() );\n\t\tguestInfo.setEmailId( res.getEmailId() );\n\t\tguestInfo.setParentGuestId( res.getParentGuestId() );\n\t\tguestInfo.setEmergencyContactName( res.getEmergencyContactName() );\n\t\t//Start the the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\t// Map/Setting the emergency contact phone correctly.\n\t\tguestInfo.setEmergencyContactPhone( res.getEmergencyContactPhone() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\tguestInfo.setFrequentFlyerNo( res.getFrequentFlyerNo() );\n\t\tguestInfo.setAirRemarks( res.getAirRemarks() );\n\t\tguestInfo.setHotelRemarks( res.getHotelRemarks() );\n\t\tguestInfo.setCruiseRemarks( res.getCruiseRemarks() );\n\t\tguestInfo.setMealRequest( res.getMealRequest() );\n\t\tguestInfo.setAirRequest( res.getAirRequest() );\n\t\tguestInfo.setGroundRequest( res.getGroundRequest() );\n\t\tguestInfo.setCateringRequest( res.getCateringRequest() );\n\t\tguestInfo.setSeatPreference( res.getSeatPreference() );\n\t\tguestInfo.setPnrNumber( res.getPnrNumber() );\n\t\tguestInfo.setStatus( res.getStatus() );\n\t\tguestInfo.setRedressNumber( res.getRedressNumber() );\n\t\tguestInfo.setChangeType( res.getChangeType() );\n\t\tguestInfo.setOldPaxId( res.getOldPaxId() );\n\t\tguestInfo.setPaxWeight( res.getPaxWeight() );\n\t\tif( res.getAge() != null ){\n\t\t\tguestInfo.setAge( res.getAge().byteValue() );\n\t\t}\n\t\tif( res.isLapChild() != null ){\n\t\t\tguestInfo.setLapChild( res.isLapChild().booleanValue() );\n\t\t}\n\t\tif( res.getDateOfBirth() != null ){\n\t\t\tguestInfo.setDateOfBirth( this.dateConverterXMLtoUtilBirthDate( res.getDateOfBirth() ) );\n\t\t}\n\t\tif( (res.getAgeCode() != null) && (res.getAgeCode().getAge() > 0) ){\n\t\t\tguestInfo.setAgeCode( this.getAgeCode( res.getAgeCode() ) );\n\t\t}\n\t\tif( res.getPassportInfo() != null ){\n\t\t\tguestInfo.setPassportInfo( this.getPassportInfo( res.getPassportInfo() ) );\n\t\t}\n\t\tif( res.getPriceBreakup() != null ){\n\t\t\tguestInfo.setPriceBreakup( this.getGuestPriceBreakup( res.getPriceBreakup() ) );\n\t\t}\n\t\t\n\t\treturn guestInfo;\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\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}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tString s = \"user's id=\" + id +\"hotel Name = \" + hotelName +\", RoomNumber\" + roomNumber+\" hotelPrice=\" + price + \", roomType=\" + type; \n\t\treturn s;\n\t}", "public List<Output> viewOrders(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n List<PurchaseOrder> poList = new ArrayList<PurchaseOrder>();\n List<Output> outputList = new ArrayList<>();\n\n try {\n session.beginTransaction();\n\n String sqlQuery = \"select po.id , po.poNumber, po.seller_vendor, po.dueDate, po.status, po.priority, org.shipFrom, des.shipTo, po.transResp \\n\" +\n \"from PurchaseOrder po \\n\" +\n \"join purchaseorder_origin_address porg on po.id=porg.PurchaseOrder_id\\n\" +\n \"join origin_address org on org.ID=porg.originAddresses_ID\\n\" +\n \"join purchaseorder_destination_address pd on po.id=pd.PurchaseOrder_id\\n\" +\n \"join destination_address des on des.ID=pd.destinationAddresses_ID \";\n\n SQLQuery query = session.createSQLQuery(sqlQuery);\n query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n /*query.setFirstResult(RetrieveAction.count*5);\n RetrieveAction.count++;\n query.setMaxResults(5);*/\n poList = query.list();\n tx.commit();\n session.close();\n for(Object po : poList){\n Map m = (Map) po;\n Output output = new Output();\n output.setPoNumber((int)m.get(\"poNumber\"));\n output.setSupplier(m.get(\"seller_vendor\").toString());\n output.setDueDate((Date) m.get(\"dueDate\"));\n output.setStatus(m.get(\"status\").toString());\n output.setPriority(m.get(\"priority\").toString());\n output.setShipfrom(m.get(\"shipFrom\").toString());\n output.setShipto(m.get(\"shipTo\").toString());\n output.setTransresp(m.get(\"transResp\").toString());\n outputList.add(output);\n }\n\n return outputList;\n\n } catch (Exception e) {\n System.err.println(\"Error getting Users :\" + e.getMessage());\n session.getTransaction().rollback();\n }\n return outputList;\n }", "TbaDeliveryinfo selectByPrimaryKey(Integer deliveryid);", "@Override\n\tpublic String inspectPrimaryKey() {\n\t\treturn \"INDV_ELG: \" + \"bnft_pin_num=\" + bnft_pin_num + \",\" + \"bnft_case_num=\" + bnft_case_num + \",\" + \"cat_cd=\" + cat_cd + \",\" + \"scat_cd=\"\n\t\t\t\t+ scat_cd + \",\" + \"scat_seq_num=\" + scat_seq_num + \",\" + \"cur_elg_ind=\" + cur_elg_ind + \",\" + \"pymt_beg_dt=\" + pymt_beg_dt;\n\t}", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "organize_infoBean selectByPrimaryKey(Integer id);", "public List getOrderDetails(OrderDetail orderDetail);", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "@Override\n\tpublic ProductVO detailOrderList(int p_num) {\n\t\treturn sql.selectOne(\"detailOrderList\", p_num);\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public void selectSomeField() {\n\t\tList<com.service.JpaSelectSpecificColumns.SubOrder> findAllSubOrder = springDataSelectSpecificColumns.findAllSubOrder();\n\t\tfindAllSubOrder.forEach(t -> System.out.println(t));\n\t}", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "int insert(UcOrderGuestInfo record);", "@Override\r\n\tpublic List<OrderDetailBean> query(OrderDetailBean detail) {\n\t\treturn dao.query(detail);\r\n\t}", "@Override\n public String getSearchIDFromDB(String email, String vertical) {\n String sql = \"select SEARCH_ID from SEARCH a inner join customer c on \" +\n \"a.CUSTOMER_ID = c.CUSTOMER_ID where \" +\n \"CLASS = '\" + vertical + \"' and \" +\n \"c.EMAIL = '\" + email + \"' \" +\n \"order by a.CREATE_DATE desc\";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"SEARCH_ID\").toString();\n }", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Address> selectAll();", "public int getGuestAddress() {\n return guestAddress;\n }", "@Override\n\tpublic Serializable generate(SessionImplementor s, Object obj) {\n\t\tString name = \"HDFC000\";\n\t\tConnection con = s.connection();\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"select USR_ACCT_NO from HDFC_USR_INFO order by USR_ACCT_NO DESC\");\n\t\t\tif(rs.next()){\n\t\t\t\tname = name+rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn name;\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileSessionCreatedByColumn()\n {\n return newMobileSessionCreatedByColumn(\"Mobile Session Created By\");\n }", "@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }", "int insertSelective(UcOrderGuestInfo record);", "public ArrayList<Guest02Dto> getList(){\n\t\tArrayList<Guest02Dto> list=new ArrayList<Guest02Dto>();\n\t\tString sql=\"select num,sub,(select name from user02 \";\n\t\tsql+=\" where num=unum) as uname,pay from GUEST02\";\n\t\tjavax.sql.DataSource source=null;\n\t\ttry {\n\t\t\tInitialContext init = new InitialContext();\n\t\t\tContext context=(Context)init.lookup(\"java:/comp/env\");\n\t\t\tsource=(javax.sql.DataSource) context.lookup(\"jdbc/oracle\");\n\t\t\t\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\tResultSet rs=null;\n\t\t\n\t\ttry {\n\t\t\tconn=source.getConnection();\n\t\t\tpstmt=conn.prepareStatement(sql);\n\t\t\trs=pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuest02Dto bean=new Guest02Dto();\n\t\t\t\tbean.setNum(rs.getInt(\"num\"));\n\t\t\t\tbean.setSub(rs.getString(\"sub\"));\n\t\t\t\tbean.setName(rs.getString(\"uname\"));\n\t\t\t\tbean.setPay(rs.getInt(\"pay\"));\n\t\t\t\tlist.add(bean);\n\t\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(rs!=null)rs.close();\n\t\t\t\tif(pstmt!=null)pstmt.close();\n\t\t\t\tif(conn!=null)conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Override public final String toString() {\r\n return String.format(this.vId + \"\\t\" + this.vName\r\n + \"\\t\" + this.vUserName + \"\\t\" + this.vPassword + \"\\t\" + this.vPhone);\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Customer[id=\"+id+\",firstName=\"+firstName+\",lastName=\"+lastName+\",age=\"\r\n\t\t\t\t+age+\",createdTime=\"+createdTime+\",updateTime=\"+updateTime+\"]\";\r\n\t}", "public Table buildAssetDetailsTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 610px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tif (dto.getAssetConfig() != null && dto.getAssetConfig().size() > 0) {\n\n\t\t\tint count = 0;\n\n\t\t\tfor (AssetConfig asset : dto.getAssetConfig()) {\n\n\t\t\t\tTableRow row = new TableRow();\n\n\t\t\t\tTableData facility = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getFacility())));\n\t\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\t\tTableData workCenterCode = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getWorkCenterCode())));\n\t\t\t\tworkCenterCode.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 15% ; vertical-align: middle\");\n\n\t\t\t\tTableData description = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getDescription())));\n\t\t\t\tdescription.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 35% ; vertical-align: middle\");\n\n\t\t\t\tTableData assetNumber = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(/*asset.getAssetNumber()*/\"123456789123456\")));\n\t\t\t\tassetNumber.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 20% ; vertical-align: middle\");\n\n\t\t\t\tString statusFlag = asset.getStatus();\n\n\t\t\t\tTableData status;\n\t\t\t\tif (!\"A\".equalsIgnoreCase(statusFlag)) {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" />\"));\n\t\t\t\t} else {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t\t}\n\t\t\t\tstatus.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\t\tstatus.addAttribute(\"disabled\", \"disabled\");\n\n\t\t\t\tTableData editImage = new TableData(new Image(\n\t\t\t\t\t\t\"static/images/edit.jpg\", \"Edit\"));\n\t\t\t\teditImage.addAttribute(\"style\", \"width: 10%\");\n\t\t\t\teditImage.addAttribute(\"onClick\", \"javascript:edit('\" + count\n\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getWorkCenterCode())\n\t\t\t\t\t\t+ \"','\" + asset.getFacility() + \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getDescription()) + \"','\"\n\t\t\t\t\t\t+ asset.getAssetNumber() + \"','\" + asset.getStatus()\n\t\t\t\t\t\t+ \"');\");\n\t\t\t\teditImage.addAttribute(\"style\", \"cursor: pointer;\");\n\n\t\t\t\trow.addTableData(facility);\n\t\t\t\trow.addTableData(workCenterCode);\n\t\t\t\trow.addTableData(assetNumber);\n\t\t\t\trow.addTableData(description);\n\t\t\t\trow.addTableData(status);\n\t\t\t\trow.addTableData(editImage);\n\n\t\t\t\tif (count % 2 == 0) {\n\t\t\t\t\trow.addAttribute(\"class\", \"normalRow\");\n\t\t\t\t} else {\n\t\t\t\t\trow.addAttribute(\"class\", \"alternateRow\");\n\t\t\t\t}\n\t\t\t\ttable.addTableRow(row);\n\t\t\t\tcount++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn table;\n\t}", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "Basicinfo selectByPrimaryKey(String taxregcode);", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }", "@Override\n public String toString() {\n String details = \"\";\n\n if (this.columnType.getValue() != ColumnType._ANY) {\n details += \" typu '\" + this.columnType.getValue().toString() + \"'\";\n }\n if (!this.columnName.getValue().isEmpty()) {\n details += \" s názvem '\" + this.columnName.getValue() + \"'\";\n }\n if (this.columnIsPrimary.getValue() != YesNoType._ANY) {\n details += \", které \" + (this.columnIsPrimary.getValue() == YesNoType.YES ? \"jsou\" : \"nejsou\") + \" primárním klíčem,\";\n }\n\n return \"Počet sloupců\" + details + \" v každé tabulce \" + this.countOp.getValue() + \" \" + this.count.getValue();\n }", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "ClOrderInfo selectByPrimaryKey(String orderId);", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "@Override\r\npublic List<OrderInfo> selectUnfinishedSaleOrderList() {\n\t\treturn OrderInfoMapper.selectUnfinishedSaleOrderList();\r\n}", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic List<HashMap<String, String>> GeunTaeList(HashMap<String, String> params) {\n\t\treturn sqlsession.selectList(\"GeuntaeMgnt.GeunTaeList\",params);\r\n\t}", "@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}" ]
[ "0.59686077", "0.5430412", "0.509382", "0.50578535", "0.5032601", "0.5018578", "0.5012282", "0.4976719", "0.49758866", "0.49703467", "0.49687666", "0.49675158", "0.49461478", "0.4936134", "0.4921217", "0.49207553", "0.48992163", "0.48963723", "0.489108", "0.48900905", "0.4862083", "0.48604104", "0.48507977", "0.48477474", "0.4846186", "0.4839804", "0.48188612", "0.4795127", "0.47929537", "0.4785345", "0.47818083", "0.47720847", "0.47572625", "0.47446606", "0.47446606", "0.4742496", "0.47407413", "0.47255906", "0.4705816", "0.47026274", "0.46927127", "0.46909362", "0.46886033", "0.46684575", "0.4667524", "0.46664014", "0.46559086", "0.46556562", "0.46524224", "0.46514323", "0.46494588", "0.46468905", "0.4645243", "0.46433967", "0.46394417", "0.4619872", "0.461334", "0.4612891", "0.46123183", "0.46031055", "0.45997998", "0.4588932", "0.4588843", "0.4584063", "0.4581802", "0.4580638", "0.45796877", "0.4577552", "0.45748326", "0.45734215", "0.45693654", "0.45679373", "0.45535198", "0.45517743", "0.45515227", "0.45496574", "0.45471033", "0.45464", "0.45412236", "0.4539154", "0.45381647", "0.4533498", "0.45322883", "0.4530333", "0.45275277", "0.45271757", "0.45235902", "0.45209208", "0.45179474", "0.4516143", "0.4511044", "0.45109117", "0.45109054", "0.44953978", "0.4495248", "0.44927388", "0.44921863", "0.44914278", "0.44892898", "0.44870794", "0.44846243" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table uc_order_guest_info
int updateByExample(@Param("record") UcOrderGuestInfo record, @Param("example") UcOrderGuestInfoExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UcOrderGuestInfo selectByPrimaryKey(Long id);", "List<UcOrderGuestInfo> selectByExample(UcOrderGuestInfoExample example);", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public GuestInfo getGuestInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo res){\n\t\tGuestInfo guestInfo = new GuestInfo();\n\t\t\n\t\tguestInfo.setSelectedFlag( res.getSelectedFlag() );\n\t\tguestInfo.setGuestId( res.getGuestId() );\n\t\tguestInfo.setTitle( res.getTitle() );\n\t\tguestInfo.setFirstName( res.getFirstName() );\n\t\tguestInfo.setMiddleName( res.getMiddleName() );\n\t\tguestInfo.setLastName( res.getLastName() );\n\t\tguestInfo.setGender( res.getGender() );\n\t\tguestInfo.setPhoneNumber( res.getPhoneNumber() );\n\t\tguestInfo.setEmailId( res.getEmailId() );\n\t\tguestInfo.setParentGuestId( res.getParentGuestId() );\n\t\tguestInfo.setEmergencyContactName( res.getEmergencyContactName() );\n\t\t//Start the the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\t// Map/Setting the emergency contact phone correctly.\n\t\tguestInfo.setEmergencyContactPhone( res.getEmergencyContactPhone() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\tguestInfo.setFrequentFlyerNo( res.getFrequentFlyerNo() );\n\t\tguestInfo.setAirRemarks( res.getAirRemarks() );\n\t\tguestInfo.setHotelRemarks( res.getHotelRemarks() );\n\t\tguestInfo.setCruiseRemarks( res.getCruiseRemarks() );\n\t\tguestInfo.setMealRequest( res.getMealRequest() );\n\t\tguestInfo.setAirRequest( res.getAirRequest() );\n\t\tguestInfo.setGroundRequest( res.getGroundRequest() );\n\t\tguestInfo.setCateringRequest( res.getCateringRequest() );\n\t\tguestInfo.setSeatPreference( res.getSeatPreference() );\n\t\tguestInfo.setPnrNumber( res.getPnrNumber() );\n\t\tguestInfo.setStatus( res.getStatus() );\n\t\tguestInfo.setRedressNumber( res.getRedressNumber() );\n\t\tguestInfo.setChangeType( res.getChangeType() );\n\t\tguestInfo.setOldPaxId( res.getOldPaxId() );\n\t\tguestInfo.setPaxWeight( res.getPaxWeight() );\n\t\tif( res.getAge() != null ){\n\t\t\tguestInfo.setAge( res.getAge().byteValue() );\n\t\t}\n\t\tif( res.isLapChild() != null ){\n\t\t\tguestInfo.setLapChild( res.isLapChild().booleanValue() );\n\t\t}\n\t\tif( res.getDateOfBirth() != null ){\n\t\t\tguestInfo.setDateOfBirth( this.dateConverterXMLtoUtilBirthDate( res.getDateOfBirth() ) );\n\t\t}\n\t\tif( (res.getAgeCode() != null) && (res.getAgeCode().getAge() > 0) ){\n\t\t\tguestInfo.setAgeCode( this.getAgeCode( res.getAgeCode() ) );\n\t\t}\n\t\tif( res.getPassportInfo() != null ){\n\t\t\tguestInfo.setPassportInfo( this.getPassportInfo( res.getPassportInfo() ) );\n\t\t}\n\t\tif( res.getPriceBreakup() != null ){\n\t\t\tguestInfo.setPriceBreakup( this.getGuestPriceBreakup( res.getPriceBreakup() ) );\n\t\t}\n\t\t\n\t\treturn guestInfo;\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\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}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tString s = \"user's id=\" + id +\"hotel Name = \" + hotelName +\", RoomNumber\" + roomNumber+\" hotelPrice=\" + price + \", roomType=\" + type; \n\t\treturn s;\n\t}", "public List<Output> viewOrders(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n List<PurchaseOrder> poList = new ArrayList<PurchaseOrder>();\n List<Output> outputList = new ArrayList<>();\n\n try {\n session.beginTransaction();\n\n String sqlQuery = \"select po.id , po.poNumber, po.seller_vendor, po.dueDate, po.status, po.priority, org.shipFrom, des.shipTo, po.transResp \\n\" +\n \"from PurchaseOrder po \\n\" +\n \"join purchaseorder_origin_address porg on po.id=porg.PurchaseOrder_id\\n\" +\n \"join origin_address org on org.ID=porg.originAddresses_ID\\n\" +\n \"join purchaseorder_destination_address pd on po.id=pd.PurchaseOrder_id\\n\" +\n \"join destination_address des on des.ID=pd.destinationAddresses_ID \";\n\n SQLQuery query = session.createSQLQuery(sqlQuery);\n query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n /*query.setFirstResult(RetrieveAction.count*5);\n RetrieveAction.count++;\n query.setMaxResults(5);*/\n poList = query.list();\n tx.commit();\n session.close();\n for(Object po : poList){\n Map m = (Map) po;\n Output output = new Output();\n output.setPoNumber((int)m.get(\"poNumber\"));\n output.setSupplier(m.get(\"seller_vendor\").toString());\n output.setDueDate((Date) m.get(\"dueDate\"));\n output.setStatus(m.get(\"status\").toString());\n output.setPriority(m.get(\"priority\").toString());\n output.setShipfrom(m.get(\"shipFrom\").toString());\n output.setShipto(m.get(\"shipTo\").toString());\n output.setTransresp(m.get(\"transResp\").toString());\n outputList.add(output);\n }\n\n return outputList;\n\n } catch (Exception e) {\n System.err.println(\"Error getting Users :\" + e.getMessage());\n session.getTransaction().rollback();\n }\n return outputList;\n }", "TbaDeliveryinfo selectByPrimaryKey(Integer deliveryid);", "@Override\n\tpublic String inspectPrimaryKey() {\n\t\treturn \"INDV_ELG: \" + \"bnft_pin_num=\" + bnft_pin_num + \",\" + \"bnft_case_num=\" + bnft_case_num + \",\" + \"cat_cd=\" + cat_cd + \",\" + \"scat_cd=\"\n\t\t\t\t+ scat_cd + \",\" + \"scat_seq_num=\" + scat_seq_num + \",\" + \"cur_elg_ind=\" + cur_elg_ind + \",\" + \"pymt_beg_dt=\" + pymt_beg_dt;\n\t}", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "organize_infoBean selectByPrimaryKey(Integer id);", "public List getOrderDetails(OrderDetail orderDetail);", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "@Override\n\tpublic ProductVO detailOrderList(int p_num) {\n\t\treturn sql.selectOne(\"detailOrderList\", p_num);\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "public void selectSomeField() {\n\t\tList<com.service.JpaSelectSpecificColumns.SubOrder> findAllSubOrder = springDataSelectSpecificColumns.findAllSubOrder();\n\t\tfindAllSubOrder.forEach(t -> System.out.println(t));\n\t}", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "int insert(UcOrderGuestInfo record);", "@Override\r\n\tpublic List<OrderDetailBean> query(OrderDetailBean detail) {\n\t\treturn dao.query(detail);\r\n\t}", "@Override\n public String getSearchIDFromDB(String email, String vertical) {\n String sql = \"select SEARCH_ID from SEARCH a inner join customer c on \" +\n \"a.CUSTOMER_ID = c.CUSTOMER_ID where \" +\n \"CLASS = '\" + vertical + \"' and \" +\n \"c.EMAIL = '\" + email + \"' \" +\n \"order by a.CREATE_DATE desc\";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"SEARCH_ID\").toString();\n }", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Address> selectAll();", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "public int getGuestAddress() {\n return guestAddress;\n }", "@Override\n\tpublic Serializable generate(SessionImplementor s, Object obj) {\n\t\tString name = \"HDFC000\";\n\t\tConnection con = s.connection();\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"select USR_ACCT_NO from HDFC_USR_INFO order by USR_ACCT_NO DESC\");\n\t\t\tif(rs.next()){\n\t\t\t\tname = name+rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn name;\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileSessionCreatedByColumn()\n {\n return newMobileSessionCreatedByColumn(\"Mobile Session Created By\");\n }", "int insertSelective(UcOrderGuestInfo record);", "public ArrayList<Guest02Dto> getList(){\n\t\tArrayList<Guest02Dto> list=new ArrayList<Guest02Dto>();\n\t\tString sql=\"select num,sub,(select name from user02 \";\n\t\tsql+=\" where num=unum) as uname,pay from GUEST02\";\n\t\tjavax.sql.DataSource source=null;\n\t\ttry {\n\t\t\tInitialContext init = new InitialContext();\n\t\t\tContext context=(Context)init.lookup(\"java:/comp/env\");\n\t\t\tsource=(javax.sql.DataSource) context.lookup(\"jdbc/oracle\");\n\t\t\t\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\tResultSet rs=null;\n\t\t\n\t\ttry {\n\t\t\tconn=source.getConnection();\n\t\t\tpstmt=conn.prepareStatement(sql);\n\t\t\trs=pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuest02Dto bean=new Guest02Dto();\n\t\t\t\tbean.setNum(rs.getInt(\"num\"));\n\t\t\t\tbean.setSub(rs.getString(\"sub\"));\n\t\t\t\tbean.setName(rs.getString(\"uname\"));\n\t\t\t\tbean.setPay(rs.getInt(\"pay\"));\n\t\t\t\tlist.add(bean);\n\t\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(rs!=null)rs.close();\n\t\t\t\tif(pstmt!=null)pstmt.close();\n\t\t\t\tif(conn!=null)conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }", "@Override public final String toString() {\r\n return String.format(this.vId + \"\\t\" + this.vName\r\n + \"\\t\" + this.vUserName + \"\\t\" + this.vPassword + \"\\t\" + this.vPhone);\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Customer[id=\"+id+\",firstName=\"+firstName+\",lastName=\"+lastName+\",age=\"\r\n\t\t\t\t+age+\",createdTime=\"+createdTime+\",updateTime=\"+updateTime+\"]\";\r\n\t}", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "public Table buildAssetDetailsTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 610px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tif (dto.getAssetConfig() != null && dto.getAssetConfig().size() > 0) {\n\n\t\t\tint count = 0;\n\n\t\t\tfor (AssetConfig asset : dto.getAssetConfig()) {\n\n\t\t\t\tTableRow row = new TableRow();\n\n\t\t\t\tTableData facility = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getFacility())));\n\t\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\t\tTableData workCenterCode = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getWorkCenterCode())));\n\t\t\t\tworkCenterCode.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 15% ; vertical-align: middle\");\n\n\t\t\t\tTableData description = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getDescription())));\n\t\t\t\tdescription.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 35% ; vertical-align: middle\");\n\n\t\t\t\tTableData assetNumber = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(/*asset.getAssetNumber()*/\"123456789123456\")));\n\t\t\t\tassetNumber.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 20% ; vertical-align: middle\");\n\n\t\t\t\tString statusFlag = asset.getStatus();\n\n\t\t\t\tTableData status;\n\t\t\t\tif (!\"A\".equalsIgnoreCase(statusFlag)) {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" />\"));\n\t\t\t\t} else {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t\t}\n\t\t\t\tstatus.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\t\tstatus.addAttribute(\"disabled\", \"disabled\");\n\n\t\t\t\tTableData editImage = new TableData(new Image(\n\t\t\t\t\t\t\"static/images/edit.jpg\", \"Edit\"));\n\t\t\t\teditImage.addAttribute(\"style\", \"width: 10%\");\n\t\t\t\teditImage.addAttribute(\"onClick\", \"javascript:edit('\" + count\n\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getWorkCenterCode())\n\t\t\t\t\t\t+ \"','\" + asset.getFacility() + \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getDescription()) + \"','\"\n\t\t\t\t\t\t+ asset.getAssetNumber() + \"','\" + asset.getStatus()\n\t\t\t\t\t\t+ \"');\");\n\t\t\t\teditImage.addAttribute(\"style\", \"cursor: pointer;\");\n\n\t\t\t\trow.addTableData(facility);\n\t\t\t\trow.addTableData(workCenterCode);\n\t\t\t\trow.addTableData(assetNumber);\n\t\t\t\trow.addTableData(description);\n\t\t\t\trow.addTableData(status);\n\t\t\t\trow.addTableData(editImage);\n\n\t\t\t\tif (count % 2 == 0) {\n\t\t\t\t\trow.addAttribute(\"class\", \"normalRow\");\n\t\t\t\t} else {\n\t\t\t\t\trow.addAttribute(\"class\", \"alternateRow\");\n\t\t\t\t}\n\t\t\t\ttable.addTableRow(row);\n\t\t\t\tcount++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn table;\n\t}", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "Basicinfo selectByPrimaryKey(String taxregcode);", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}", "@Override\n public String toString() {\n String details = \"\";\n\n if (this.columnType.getValue() != ColumnType._ANY) {\n details += \" typu '\" + this.columnType.getValue().toString() + \"'\";\n }\n if (!this.columnName.getValue().isEmpty()) {\n details += \" s názvem '\" + this.columnName.getValue() + \"'\";\n }\n if (this.columnIsPrimary.getValue() != YesNoType._ANY) {\n details += \", které \" + (this.columnIsPrimary.getValue() == YesNoType.YES ? \"jsou\" : \"nejsou\") + \" primárním klíčem,\";\n }\n\n return \"Počet sloupců\" + details + \" v každé tabulce \" + this.countOp.getValue() + \" \" + this.count.getValue();\n }", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "ClOrderInfo selectByPrimaryKey(String orderId);", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "@Override\r\npublic List<OrderInfo> selectUnfinishedSaleOrderList() {\n\t\treturn OrderInfoMapper.selectUnfinishedSaleOrderList();\r\n}", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic List<HashMap<String, String>> GeunTaeList(HashMap<String, String> params) {\n\t\treturn sqlsession.selectList(\"GeuntaeMgnt.GeunTaeList\",params);\r\n\t}", "@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}" ]
[ "0.5967312", "0.54307216", "0.5095361", "0.5056573", "0.50336015", "0.5020163", "0.50114596", "0.4977055", "0.4975924", "0.49726197", "0.49679083", "0.49661392", "0.49465713", "0.49343327", "0.49217805", "0.49192396", "0.4898314", "0.48977977", "0.4890611", "0.4889592", "0.48627892", "0.4862108", "0.48511332", "0.4847869", "0.48464978", "0.48398867", "0.4818299", "0.4795115", "0.47923705", "0.47843912", "0.47841007", "0.47732058", "0.475674", "0.4746502", "0.4746502", "0.47444993", "0.47402152", "0.47269475", "0.47069502", "0.47042647", "0.46935254", "0.46935004", "0.46880412", "0.46691424", "0.46686402", "0.46682388", "0.46560967", "0.4654693", "0.46518788", "0.46505314", "0.4650502", "0.46478474", "0.4647416", "0.46429506", "0.46393457", "0.46202576", "0.46146044", "0.46145752", "0.46120426", "0.46024108", "0.4599539", "0.45891696", "0.45880646", "0.45847338", "0.45813796", "0.45813447", "0.4580121", "0.4579681", "0.4575782", "0.4572363", "0.45678884", "0.45677313", "0.45542005", "0.45534444", "0.45502147", "0.45501253", "0.4548513", "0.45473075", "0.45406452", "0.45404264", "0.45384142", "0.45353523", "0.45314878", "0.4531106", "0.4528855", "0.4526603", "0.4526152", "0.4521833", "0.45194894", "0.4515628", "0.4512006", "0.45112592", "0.4509336", "0.44963232", "0.44961762", "0.44946957", "0.449393", "0.44933403", "0.44913507", "0.44884542", "0.44851267" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table uc_order_guest_info
int updateByPrimaryKeySelective(UcOrderGuestInfo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UcOrderGuestInfo selectByPrimaryKey(Long id);", "List<UcOrderGuestInfo> selectByExample(UcOrderGuestInfoExample example);", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public GuestInfo getGuestInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo res){\n\t\tGuestInfo guestInfo = new GuestInfo();\n\t\t\n\t\tguestInfo.setSelectedFlag( res.getSelectedFlag() );\n\t\tguestInfo.setGuestId( res.getGuestId() );\n\t\tguestInfo.setTitle( res.getTitle() );\n\t\tguestInfo.setFirstName( res.getFirstName() );\n\t\tguestInfo.setMiddleName( res.getMiddleName() );\n\t\tguestInfo.setLastName( res.getLastName() );\n\t\tguestInfo.setGender( res.getGender() );\n\t\tguestInfo.setPhoneNumber( res.getPhoneNumber() );\n\t\tguestInfo.setEmailId( res.getEmailId() );\n\t\tguestInfo.setParentGuestId( res.getParentGuestId() );\n\t\tguestInfo.setEmergencyContactName( res.getEmergencyContactName() );\n\t\t//Start the the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\t// Map/Setting the emergency contact phone correctly.\n\t\tguestInfo.setEmergencyContactPhone( res.getEmergencyContactPhone() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\tguestInfo.setFrequentFlyerNo( res.getFrequentFlyerNo() );\n\t\tguestInfo.setAirRemarks( res.getAirRemarks() );\n\t\tguestInfo.setHotelRemarks( res.getHotelRemarks() );\n\t\tguestInfo.setCruiseRemarks( res.getCruiseRemarks() );\n\t\tguestInfo.setMealRequest( res.getMealRequest() );\n\t\tguestInfo.setAirRequest( res.getAirRequest() );\n\t\tguestInfo.setGroundRequest( res.getGroundRequest() );\n\t\tguestInfo.setCateringRequest( res.getCateringRequest() );\n\t\tguestInfo.setSeatPreference( res.getSeatPreference() );\n\t\tguestInfo.setPnrNumber( res.getPnrNumber() );\n\t\tguestInfo.setStatus( res.getStatus() );\n\t\tguestInfo.setRedressNumber( res.getRedressNumber() );\n\t\tguestInfo.setChangeType( res.getChangeType() );\n\t\tguestInfo.setOldPaxId( res.getOldPaxId() );\n\t\tguestInfo.setPaxWeight( res.getPaxWeight() );\n\t\tif( res.getAge() != null ){\n\t\t\tguestInfo.setAge( res.getAge().byteValue() );\n\t\t}\n\t\tif( res.isLapChild() != null ){\n\t\t\tguestInfo.setLapChild( res.isLapChild().booleanValue() );\n\t\t}\n\t\tif( res.getDateOfBirth() != null ){\n\t\t\tguestInfo.setDateOfBirth( this.dateConverterXMLtoUtilBirthDate( res.getDateOfBirth() ) );\n\t\t}\n\t\tif( (res.getAgeCode() != null) && (res.getAgeCode().getAge() > 0) ){\n\t\t\tguestInfo.setAgeCode( this.getAgeCode( res.getAgeCode() ) );\n\t\t}\n\t\tif( res.getPassportInfo() != null ){\n\t\t\tguestInfo.setPassportInfo( this.getPassportInfo( res.getPassportInfo() ) );\n\t\t}\n\t\tif( res.getPriceBreakup() != null ){\n\t\t\tguestInfo.setPriceBreakup( this.getGuestPriceBreakup( res.getPriceBreakup() ) );\n\t\t}\n\t\t\n\t\treturn guestInfo;\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\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}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tString s = \"user's id=\" + id +\"hotel Name = \" + hotelName +\", RoomNumber\" + roomNumber+\" hotelPrice=\" + price + \", roomType=\" + type; \n\t\treturn s;\n\t}", "public List<Output> viewOrders(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n List<PurchaseOrder> poList = new ArrayList<PurchaseOrder>();\n List<Output> outputList = new ArrayList<>();\n\n try {\n session.beginTransaction();\n\n String sqlQuery = \"select po.id , po.poNumber, po.seller_vendor, po.dueDate, po.status, po.priority, org.shipFrom, des.shipTo, po.transResp \\n\" +\n \"from PurchaseOrder po \\n\" +\n \"join purchaseorder_origin_address porg on po.id=porg.PurchaseOrder_id\\n\" +\n \"join origin_address org on org.ID=porg.originAddresses_ID\\n\" +\n \"join purchaseorder_destination_address pd on po.id=pd.PurchaseOrder_id\\n\" +\n \"join destination_address des on des.ID=pd.destinationAddresses_ID \";\n\n SQLQuery query = session.createSQLQuery(sqlQuery);\n query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n /*query.setFirstResult(RetrieveAction.count*5);\n RetrieveAction.count++;\n query.setMaxResults(5);*/\n poList = query.list();\n tx.commit();\n session.close();\n for(Object po : poList){\n Map m = (Map) po;\n Output output = new Output();\n output.setPoNumber((int)m.get(\"poNumber\"));\n output.setSupplier(m.get(\"seller_vendor\").toString());\n output.setDueDate((Date) m.get(\"dueDate\"));\n output.setStatus(m.get(\"status\").toString());\n output.setPriority(m.get(\"priority\").toString());\n output.setShipfrom(m.get(\"shipFrom\").toString());\n output.setShipto(m.get(\"shipTo\").toString());\n output.setTransresp(m.get(\"transResp\").toString());\n outputList.add(output);\n }\n\n return outputList;\n\n } catch (Exception e) {\n System.err.println(\"Error getting Users :\" + e.getMessage());\n session.getTransaction().rollback();\n }\n return outputList;\n }", "TbaDeliveryinfo selectByPrimaryKey(Integer deliveryid);", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "@Override\n\tpublic String inspectPrimaryKey() {\n\t\treturn \"INDV_ELG: \" + \"bnft_pin_num=\" + bnft_pin_num + \",\" + \"bnft_case_num=\" + bnft_case_num + \",\" + \"cat_cd=\" + cat_cd + \",\" + \"scat_cd=\"\n\t\t\t\t+ scat_cd + \",\" + \"scat_seq_num=\" + scat_seq_num + \",\" + \"cur_elg_ind=\" + cur_elg_ind + \",\" + \"pymt_beg_dt=\" + pymt_beg_dt;\n\t}", "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "organize_infoBean selectByPrimaryKey(Integer id);", "public List getOrderDetails(OrderDetail orderDetail);", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "@Override\n\tpublic ProductVO detailOrderList(int p_num) {\n\t\treturn sql.selectOne(\"detailOrderList\", p_num);\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public void selectSomeField() {\n\t\tList<com.service.JpaSelectSpecificColumns.SubOrder> findAllSubOrder = springDataSelectSpecificColumns.findAllSubOrder();\n\t\tfindAllSubOrder.forEach(t -> System.out.println(t));\n\t}", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "int insert(UcOrderGuestInfo record);", "@Override\r\n\tpublic List<OrderDetailBean> query(OrderDetailBean detail) {\n\t\treturn dao.query(detail);\r\n\t}", "@Override\n public String getSearchIDFromDB(String email, String vertical) {\n String sql = \"select SEARCH_ID from SEARCH a inner join customer c on \" +\n \"a.CUSTOMER_ID = c.CUSTOMER_ID where \" +\n \"CLASS = '\" + vertical + \"' and \" +\n \"c.EMAIL = '\" + email + \"' \" +\n \"order by a.CREATE_DATE desc\";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"SEARCH_ID\").toString();\n }", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Address> selectAll();", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "public int getGuestAddress() {\n return guestAddress;\n }", "@Override\n\tpublic Serializable generate(SessionImplementor s, Object obj) {\n\t\tString name = \"HDFC000\";\n\t\tConnection con = s.connection();\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"select USR_ACCT_NO from HDFC_USR_INFO order by USR_ACCT_NO DESC\");\n\t\t\tif(rs.next()){\n\t\t\t\tname = name+rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn name;\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileSessionCreatedByColumn()\n {\n return newMobileSessionCreatedByColumn(\"Mobile Session Created By\");\n }", "public ArrayList<Guest02Dto> getList(){\n\t\tArrayList<Guest02Dto> list=new ArrayList<Guest02Dto>();\n\t\tString sql=\"select num,sub,(select name from user02 \";\n\t\tsql+=\" where num=unum) as uname,pay from GUEST02\";\n\t\tjavax.sql.DataSource source=null;\n\t\ttry {\n\t\t\tInitialContext init = new InitialContext();\n\t\t\tContext context=(Context)init.lookup(\"java:/comp/env\");\n\t\t\tsource=(javax.sql.DataSource) context.lookup(\"jdbc/oracle\");\n\t\t\t\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\tResultSet rs=null;\n\t\t\n\t\ttry {\n\t\t\tconn=source.getConnection();\n\t\t\tpstmt=conn.prepareStatement(sql);\n\t\t\trs=pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuest02Dto bean=new Guest02Dto();\n\t\t\t\tbean.setNum(rs.getInt(\"num\"));\n\t\t\t\tbean.setSub(rs.getString(\"sub\"));\n\t\t\t\tbean.setName(rs.getString(\"uname\"));\n\t\t\t\tbean.setPay(rs.getInt(\"pay\"));\n\t\t\t\tlist.add(bean);\n\t\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(rs!=null)rs.close();\n\t\t\t\tif(pstmt!=null)pstmt.close();\n\t\t\t\tif(conn!=null)conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "int insertSelective(UcOrderGuestInfo record);", "@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }", "@Override public final String toString() {\r\n return String.format(this.vId + \"\\t\" + this.vName\r\n + \"\\t\" + this.vUserName + \"\\t\" + this.vPassword + \"\\t\" + this.vPhone);\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Customer[id=\"+id+\",firstName=\"+firstName+\",lastName=\"+lastName+\",age=\"\r\n\t\t\t\t+age+\",createdTime=\"+createdTime+\",updateTime=\"+updateTime+\"]\";\r\n\t}", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "public Table buildAssetDetailsTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 610px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tif (dto.getAssetConfig() != null && dto.getAssetConfig().size() > 0) {\n\n\t\t\tint count = 0;\n\n\t\t\tfor (AssetConfig asset : dto.getAssetConfig()) {\n\n\t\t\t\tTableRow row = new TableRow();\n\n\t\t\t\tTableData facility = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getFacility())));\n\t\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\t\tTableData workCenterCode = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getWorkCenterCode())));\n\t\t\t\tworkCenterCode.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 15% ; vertical-align: middle\");\n\n\t\t\t\tTableData description = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getDescription())));\n\t\t\t\tdescription.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 35% ; vertical-align: middle\");\n\n\t\t\t\tTableData assetNumber = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(/*asset.getAssetNumber()*/\"123456789123456\")));\n\t\t\t\tassetNumber.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 20% ; vertical-align: middle\");\n\n\t\t\t\tString statusFlag = asset.getStatus();\n\n\t\t\t\tTableData status;\n\t\t\t\tif (!\"A\".equalsIgnoreCase(statusFlag)) {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" />\"));\n\t\t\t\t} else {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t\t}\n\t\t\t\tstatus.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\t\tstatus.addAttribute(\"disabled\", \"disabled\");\n\n\t\t\t\tTableData editImage = new TableData(new Image(\n\t\t\t\t\t\t\"static/images/edit.jpg\", \"Edit\"));\n\t\t\t\teditImage.addAttribute(\"style\", \"width: 10%\");\n\t\t\t\teditImage.addAttribute(\"onClick\", \"javascript:edit('\" + count\n\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getWorkCenterCode())\n\t\t\t\t\t\t+ \"','\" + asset.getFacility() + \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getDescription()) + \"','\"\n\t\t\t\t\t\t+ asset.getAssetNumber() + \"','\" + asset.getStatus()\n\t\t\t\t\t\t+ \"');\");\n\t\t\t\teditImage.addAttribute(\"style\", \"cursor: pointer;\");\n\n\t\t\t\trow.addTableData(facility);\n\t\t\t\trow.addTableData(workCenterCode);\n\t\t\t\trow.addTableData(assetNumber);\n\t\t\t\trow.addTableData(description);\n\t\t\t\trow.addTableData(status);\n\t\t\t\trow.addTableData(editImage);\n\n\t\t\t\tif (count % 2 == 0) {\n\t\t\t\t\trow.addAttribute(\"class\", \"normalRow\");\n\t\t\t\t} else {\n\t\t\t\t\trow.addAttribute(\"class\", \"alternateRow\");\n\t\t\t\t}\n\t\t\t\ttable.addTableRow(row);\n\t\t\t\tcount++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn table;\n\t}", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "Basicinfo selectByPrimaryKey(String taxregcode);", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "@Override\n public String toString() {\n String details = \"\";\n\n if (this.columnType.getValue() != ColumnType._ANY) {\n details += \" typu '\" + this.columnType.getValue().toString() + \"'\";\n }\n if (!this.columnName.getValue().isEmpty()) {\n details += \" s názvem '\" + this.columnName.getValue() + \"'\";\n }\n if (this.columnIsPrimary.getValue() != YesNoType._ANY) {\n details += \", které \" + (this.columnIsPrimary.getValue() == YesNoType.YES ? \"jsou\" : \"nejsou\") + \" primárním klíčem,\";\n }\n\n return \"Počet sloupců\" + details + \" v každé tabulce \" + this.countOp.getValue() + \" \" + this.count.getValue();\n }", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "ClOrderInfo selectByPrimaryKey(String orderId);", "@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "@Override\r\npublic List<OrderInfo> selectUnfinishedSaleOrderList() {\n\t\treturn OrderInfoMapper.selectUnfinishedSaleOrderList();\r\n}", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);", "@Override\r\n\tpublic List<HashMap<String, String>> GeunTaeList(HashMap<String, String> params) {\n\t\treturn sqlsession.selectList(\"GeuntaeMgnt.GeunTaeList\",params);\r\n\t}", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}" ]
[ "0.59679544", "0.54316205", "0.5095957", "0.505718", "0.503224", "0.50196356", "0.5010775", "0.497697", "0.49743563", "0.49709788", "0.49674714", "0.49671787", "0.49457926", "0.4934255", "0.49222803", "0.49195752", "0.48989034", "0.4898203", "0.48898008", "0.48892307", "0.48633268", "0.4862308", "0.4851176", "0.48482385", "0.4846497", "0.48405117", "0.48187378", "0.47956073", "0.4793173", "0.47863743", "0.47843966", "0.47734234", "0.47556725", "0.47455806", "0.47455806", "0.47453645", "0.47395456", "0.4726392", "0.470666", "0.4704746", "0.4694701", "0.4692638", "0.46875826", "0.46699893", "0.46684414", "0.4666166", "0.46554828", "0.4654679", "0.46528074", "0.46498343", "0.46494555", "0.46476966", "0.464684", "0.46437472", "0.4638105", "0.46190345", "0.4614804", "0.46136022", "0.46125838", "0.46013793", "0.4598544", "0.45898858", "0.4586541", "0.4584201", "0.45806846", "0.45801282", "0.45795703", "0.4579556", "0.4575231", "0.45718104", "0.45679665", "0.4567914", "0.45546332", "0.45525336", "0.4550479", "0.4549758", "0.45488837", "0.45457754", "0.45410138", "0.45405257", "0.4539248", "0.45358676", "0.45323652", "0.45311898", "0.45296082", "0.45267978", "0.45261142", "0.4519704", "0.45182383", "0.45155597", "0.45122302", "0.45112786", "0.45090836", "0.44976383", "0.4495971", "0.4494727", "0.44942722", "0.44935077", "0.44897643", "0.44895044", "0.44859347" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table uc_order_guest_info
int updateByPrimaryKey(UcOrderGuestInfo record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UcOrderGuestInfo selectByPrimaryKey(Long id);", "List<UcOrderGuestInfo> selectByExample(UcOrderGuestInfoExample example);", "@Select({\n \"select\",\n \"id, user_id, user_name, tel_number, postal_Code, national_Code, province_Name, \",\n \"city_Name, county_Name, detail_Info, is_default\",\n \"from twshop_address\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"user_name\", property=\"userName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"tel_number\", property=\"telNumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal_Code\", property=\"postalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"national_Code\", property=\"nationalCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province_Name\", property=\"provinceName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city_Name\", property=\"cityName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"county_Name\", property=\"countyName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"detail_Info\", property=\"detailInfo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_default\", property=\"isDefault\", jdbcType=JdbcType.INTEGER)\n })\n Address selectByPrimaryKey(Integer id);", "public GuestInfo getGuestInfo(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo res){\n\t\tGuestInfo guestInfo = new GuestInfo();\n\t\t\n\t\tguestInfo.setSelectedFlag( res.getSelectedFlag() );\n\t\tguestInfo.setGuestId( res.getGuestId() );\n\t\tguestInfo.setTitle( res.getTitle() );\n\t\tguestInfo.setFirstName( res.getFirstName() );\n\t\tguestInfo.setMiddleName( res.getMiddleName() );\n\t\tguestInfo.setLastName( res.getLastName() );\n\t\tguestInfo.setGender( res.getGender() );\n\t\tguestInfo.setPhoneNumber( res.getPhoneNumber() );\n\t\tguestInfo.setEmailId( res.getEmailId() );\n\t\tguestInfo.setParentGuestId( res.getParentGuestId() );\n\t\tguestInfo.setEmergencyContactName( res.getEmergencyContactName() );\n\t\t//Start the the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\t// Map/Setting the emergency contact phone correctly.\n\t\tguestInfo.setEmergencyContactPhone( res.getEmergencyContactPhone() );\n\t\t//End of the AV-3749/HBsi 52 Enhancement of emergency info tab for passegner\t\n\t\tguestInfo.setFrequentFlyerNo( res.getFrequentFlyerNo() );\n\t\tguestInfo.setAirRemarks( res.getAirRemarks() );\n\t\tguestInfo.setHotelRemarks( res.getHotelRemarks() );\n\t\tguestInfo.setCruiseRemarks( res.getCruiseRemarks() );\n\t\tguestInfo.setMealRequest( res.getMealRequest() );\n\t\tguestInfo.setAirRequest( res.getAirRequest() );\n\t\tguestInfo.setGroundRequest( res.getGroundRequest() );\n\t\tguestInfo.setCateringRequest( res.getCateringRequest() );\n\t\tguestInfo.setSeatPreference( res.getSeatPreference() );\n\t\tguestInfo.setPnrNumber( res.getPnrNumber() );\n\t\tguestInfo.setStatus( res.getStatus() );\n\t\tguestInfo.setRedressNumber( res.getRedressNumber() );\n\t\tguestInfo.setChangeType( res.getChangeType() );\n\t\tguestInfo.setOldPaxId( res.getOldPaxId() );\n\t\tguestInfo.setPaxWeight( res.getPaxWeight() );\n\t\tif( res.getAge() != null ){\n\t\t\tguestInfo.setAge( res.getAge().byteValue() );\n\t\t}\n\t\tif( res.isLapChild() != null ){\n\t\t\tguestInfo.setLapChild( res.isLapChild().booleanValue() );\n\t\t}\n\t\tif( res.getDateOfBirth() != null ){\n\t\t\tguestInfo.setDateOfBirth( this.dateConverterXMLtoUtilBirthDate( res.getDateOfBirth() ) );\n\t\t}\n\t\tif( (res.getAgeCode() != null) && (res.getAgeCode().getAge() > 0) ){\n\t\t\tguestInfo.setAgeCode( this.getAgeCode( res.getAgeCode() ) );\n\t\t}\n\t\tif( res.getPassportInfo() != null ){\n\t\t\tguestInfo.setPassportInfo( this.getPassportInfo( res.getPassportInfo() ) );\n\t\t}\n\t\tif( res.getPriceBreakup() != null ){\n\t\t\tguestInfo.setPriceBreakup( this.getGuestPriceBreakup( res.getPriceBreakup() ) );\n\t\t}\n\t\t\n\t\treturn guestInfo;\n\t}", "@SuppressWarnings(\"all\")\npublic interface I_i_ordertrx_temp \n{\n\n /** TableName=i_ordertrx_temp */\n public static final String Table_Name = \"i_ordertrx_temp\";\n\n /** AD_Table_ID=1000126 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name count_order */\n public static final String COLUMNNAME_count_order = \"count_order\";\n\n\t/** Set count_order\t */\n\tpublic void setcount_order (int count_order);\n\n\t/** Get count_order\t */\n\tpublic int getcount_order();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name i_ordertrx_temp_ID */\n public static final String COLUMNNAME_i_ordertrx_temp_ID = \"i_ordertrx_temp_ID\";\n\n\t/** Set Semeru Order Temporary\t */\n\tpublic void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);\n\n\t/** Get Semeru Order Temporary\t */\n\tpublic int geti_ordertrx_temp_ID();\n\n /** Column name insert_order */\n public static final String COLUMNNAME_insert_order = \"insert_order\";\n\n\t/** Set insert_order\t */\n\tpublic void setinsert_order (boolean insert_order);\n\n\t/** Get insert_order\t */\n\tpublic boolean isinsert_order();\n\n /** Column name order_detail */\n public static final String COLUMNNAME_order_detail = \"order_detail\";\n\n\t/** Set order_detail\t */\n\tpublic void setorder_detail (String order_detail);\n\n\t/** Get order_detail\t */\n\tpublic String getorder_detail();\n\n /** Column name orders */\n public static final String COLUMNNAME_orders = \"orders\";\n\n\t/** Set orders\t */\n\tpublic void setorders (String orders);\n\n\t/** Get orders\t */\n\tpublic String getorders();\n\n /** Column name pos */\n public static final String COLUMNNAME_pos = \"pos\";\n\n\t/** Set pos\t */\n\tpublic void setpos (String pos);\n\n\t/** Get pos\t */\n\tpublic String getpos();\n\n /** Column name Result */\n public static final String COLUMNNAME_Result = \"Result\";\n\n\t/** Set Result.\n\t * Result of the action taken\n\t */\n\tpublic void setResult (String Result);\n\n\t/** Get Result.\n\t * Result of the action taken\n\t */\n\tpublic String getResult();\n\n /** Column name transaction_id */\n public static final String COLUMNNAME_transaction_id = \"transaction_id\";\n\n\t/** Set transaction_id\t */\n\tpublic void settransaction_id (int transaction_id);\n\n\t/** Get transaction_id\t */\n\tpublic int gettransaction_id();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "@DAO(catalog = \"ABC\")\npublic interface AddressDAO {\n static final String TABLE_NAME= \"address\";\n static final String FIELDS = \"id,type,user_id,city,province ,district,phone,address,create_time,update_time,user_device_id\" ;\n static final String INSERT_FIELDS = \"type,user_id,city,province ,district,phone,address,update_time,user_device_id\" ;\n\n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where id =:1\")\n public Address getAddress(long id);\n\n\t@SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1 order by type desc limit :2,:3\")\n\tpublic List<Address> getAddresses(long user_id, int start, int offset);\n\n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddress(Address address);\n\n @SQL(\"update \" + TABLE_NAME + \" set city=:1.city,phone =:1.phone, address = :1.address ,update_time=now()\" + \" where id = :1.id\")\n public int updateAddress(Address address);\n\n @SQL(\"delete from \" + TABLE_NAME + \" where id = :1.id\")\n public int delAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type=1 where id = :1\")\n public int defaultAddress(long address_id);\n\n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_id = :1\")\n public int cleanDefaultAddress(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set type = 0 where user_device_id = :1\")\n public int cleanDefaultAddressByUserDeviceId(long userDeviceId);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where device_user_id =:1\")\n\tpublic List<Address> getAddressesByDeviceUserId(long user_id);\n \n @SQL(\"select \"+ FIELDS +\" from \" + TABLE_NAME + \" where user_id =:1\")\n\tpublic List<Address> getAddresses(long user_id);\n \n @SQL(\"update \" + TABLE_NAME + \" set user_id=:1,user_device_id= -1 where user_device_id = :2\")\n public Integer bindAddress2User(long userId,long userDeviceId);\n \n @ReturnGeneratedKeys\n @SQL(\"insert into \" + TABLE_NAME + \"(\" + INSERT_FIELDS +\") values (:1.type,:1.user_id,:1.city,:1.province,:1.district,:1.phone,:1.address,:1.update_time,:1.user_device_id)\")\n public int addAddressByUserApp(Address address);\n\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}", "private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}", "public void showCustomerInvoices()\n\t{\n\t\ttry {\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\tString sql=\"select * from CustomerData order by Customer_Name asc\";\n\t\t\tps=con.prepareStatement(sql);\n\t\t\trs=ps.executeQuery();\n\t\t\ttblCustomer.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }", "@SuppressWarnings(\"all\")\npublic interface I_HBC_TripAllocation \n{\n\n /** TableName=HBC_TripAllocation */\n public static final String Table_Name = \"HBC_TripAllocation\";\n\n /** AD_Table_ID=1100198 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Day */\n public static final String COLUMNNAME_Day = \"Day\";\n\n\t/** Set Day\t */\n\tpublic void setDay (BigDecimal Day);\n\n\t/** Get Day\t */\n\tpublic BigDecimal getDay();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Distance */\n public static final String COLUMNNAME_Distance = \"Distance\";\n\n\t/** Set Distance\t */\n\tpublic void setDistance (BigDecimal Distance);\n\n\t/** Get Distance\t */\n\tpublic BigDecimal getDistance();\n\n /** Column name From_PortPosition_ID */\n public static final String COLUMNNAME_From_PortPosition_ID = \"From_PortPosition_ID\";\n\n\t/** Set Port/Position From\t */\n\tpublic void setFrom_PortPosition_ID (int From_PortPosition_ID);\n\n\t/** Get Port/Position From\t */\n\tpublic int getFrom_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getFrom_PortPosition() throws RuntimeException;\n\n /** Column name FuelAllocation */\n public static final String COLUMNNAME_FuelAllocation = \"FuelAllocation\";\n\n\t/** Set Fuel Allocation\t */\n\tpublic void setFuelAllocation (BigDecimal FuelAllocation);\n\n\t/** Get Fuel Allocation\t */\n\tpublic BigDecimal getFuelAllocation();\n\n /** Column name HBC_BargeCategory_ID */\n public static final String COLUMNNAME_HBC_BargeCategory_ID = \"HBC_BargeCategory_ID\";\n\n\t/** Set Barge Category\t */\n\tpublic void setHBC_BargeCategory_ID (int HBC_BargeCategory_ID);\n\n\t/** Get Barge Category\t */\n\tpublic int getHBC_BargeCategory_ID();\n\n\tpublic I_HBC_BargeCategory getHBC_BargeCategory() throws RuntimeException;\n\n /** Column name HBC_TripAllocation_ID */\n public static final String COLUMNNAME_HBC_TripAllocation_ID = \"HBC_TripAllocation_ID\";\n\n\t/** Set Trip Allocation\t */\n\tpublic void setHBC_TripAllocation_ID (int HBC_TripAllocation_ID);\n\n\t/** Get Trip Allocation\t */\n\tpublic int getHBC_TripAllocation_ID();\n\n /** Column name HBC_TripAllocation_UU */\n public static final String COLUMNNAME_HBC_TripAllocation_UU = \"HBC_TripAllocation_UU\";\n\n\t/** Set HBC_TripAllocation_UU\t */\n\tpublic void setHBC_TripAllocation_UU (String HBC_TripAllocation_UU);\n\n\t/** Get HBC_TripAllocation_UU\t */\n\tpublic String getHBC_TripAllocation_UU();\n\n /** Column name HBC_TripType_ID */\n public static final String COLUMNNAME_HBC_TripType_ID = \"HBC_TripType_ID\";\n\n\t/** Set Trip Type\t */\n\tpublic void setHBC_TripType_ID (String HBC_TripType_ID);\n\n\t/** Get Trip Type\t */\n\tpublic String getHBC_TripType_ID();\n\n /** Column name HBC_TugboatCategory_ID */\n public static final String COLUMNNAME_HBC_TugboatCategory_ID = \"HBC_TugboatCategory_ID\";\n\n\t/** Set Tugboat Category\t */\n\tpublic void setHBC_TugboatCategory_ID (int HBC_TugboatCategory_ID);\n\n\t/** Get Tugboat Category\t */\n\tpublic int getHBC_TugboatCategory_ID();\n\n\tpublic I_HBC_TugboatCategory getHBC_TugboatCategory() throws RuntimeException;\n\n /** Column name Hour */\n public static final String COLUMNNAME_Hour = \"Hour\";\n\n\t/** Set Hour\t */\n\tpublic void setHour (BigDecimal Hour);\n\n\t/** Get Hour\t */\n\tpublic BigDecimal getHour();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LiterAllocation */\n public static final String COLUMNNAME_LiterAllocation = \"LiterAllocation\";\n\n\t/** Set Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic void setLiterAllocation (BigDecimal LiterAllocation);\n\n\t/** Get Liter Allocation.\n\t * Liter Allocation\n\t */\n\tpublic BigDecimal getLiterAllocation();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Speed */\n public static final String COLUMNNAME_Speed = \"Speed\";\n\n\t/** Set Speed (Knot)\t */\n\tpublic void setSpeed (BigDecimal Speed);\n\n\t/** Get Speed (Knot)\t */\n\tpublic BigDecimal getSpeed();\n\n /** Column name Standby_Hour */\n public static final String COLUMNNAME_Standby_Hour = \"Standby_Hour\";\n\n\t/** Set Standby Hour\t */\n\tpublic void setStandby_Hour (BigDecimal Standby_Hour);\n\n\t/** Get Standby Hour\t */\n\tpublic BigDecimal getStandby_Hour();\n\n /** Column name To_PortPosition_ID */\n public static final String COLUMNNAME_To_PortPosition_ID = \"To_PortPosition_ID\";\n\n\t/** Set Port/Position To\t */\n\tpublic void setTo_PortPosition_ID (int To_PortPosition_ID);\n\n\t/** Get Port/Position To\t */\n\tpublic int getTo_PortPosition_ID();\n\n\tpublic I_HBC_PortPosition getTo_PortPosition() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name ValidFrom */\n public static final String COLUMNNAME_ValidFrom = \"ValidFrom\";\n\n\t/** Set Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic void setValidFrom (Timestamp ValidFrom);\n\n\t/** Get Valid from.\n\t * Valid from including this date (first day)\n\t */\n\tpublic Timestamp getValidFrom();\n\n /** Column name ValidTo */\n public static final String COLUMNNAME_ValidTo = \"ValidTo\";\n\n\t/** Set Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic void setValidTo (Timestamp ValidTo);\n\n\t/** Get Valid to.\n\t * Valid to including this date (last day)\n\t */\n\tpublic Timestamp getValidTo();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "@Override\n\tpublic String toString() {\n\t\t\n\t\tString s = \"user's id=\" + id +\"hotel Name = \" + hotelName +\", RoomNumber\" + roomNumber+\" hotelPrice=\" + price + \", roomType=\" + type; \n\t\treturn s;\n\t}", "public List<Output> viewOrders(){\n Session session = HibernateUtil.getSessionFactory().openSession();\n List<PurchaseOrder> poList = new ArrayList<PurchaseOrder>();\n List<Output> outputList = new ArrayList<>();\n\n try {\n session.beginTransaction();\n\n String sqlQuery = \"select po.id , po.poNumber, po.seller_vendor, po.dueDate, po.status, po.priority, org.shipFrom, des.shipTo, po.transResp \\n\" +\n \"from PurchaseOrder po \\n\" +\n \"join purchaseorder_origin_address porg on po.id=porg.PurchaseOrder_id\\n\" +\n \"join origin_address org on org.ID=porg.originAddresses_ID\\n\" +\n \"join purchaseorder_destination_address pd on po.id=pd.PurchaseOrder_id\\n\" +\n \"join destination_address des on des.ID=pd.destinationAddresses_ID \";\n\n SQLQuery query = session.createSQLQuery(sqlQuery);\n query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n /*query.setFirstResult(RetrieveAction.count*5);\n RetrieveAction.count++;\n query.setMaxResults(5);*/\n poList = query.list();\n tx.commit();\n session.close();\n for(Object po : poList){\n Map m = (Map) po;\n Output output = new Output();\n output.setPoNumber((int)m.get(\"poNumber\"));\n output.setSupplier(m.get(\"seller_vendor\").toString());\n output.setDueDate((Date) m.get(\"dueDate\"));\n output.setStatus(m.get(\"status\").toString());\n output.setPriority(m.get(\"priority\").toString());\n output.setShipfrom(m.get(\"shipFrom\").toString());\n output.setShipto(m.get(\"shipTo\").toString());\n output.setTransresp(m.get(\"transResp\").toString());\n outputList.add(output);\n }\n\n return outputList;\n\n } catch (Exception e) {\n System.err.println(\"Error getting Users :\" + e.getMessage());\n session.getTransaction().rollback();\n }\n return outputList;\n }", "TbaDeliveryinfo selectByPrimaryKey(Integer deliveryid);", "@Override\n\tpublic String inspectPrimaryKey() {\n\t\treturn \"INDV_ELG: \" + \"bnft_pin_num=\" + bnft_pin_num + \",\" + \"bnft_case_num=\" + bnft_case_num + \",\" + \"cat_cd=\" + cat_cd + \",\" + \"scat_cd=\"\n\t\t\t\t+ scat_cd + \",\" + \"scat_seq_num=\" + scat_seq_num + \",\" + \"cur_elg_ind=\" + cur_elg_ind + \",\" + \"pymt_beg_dt=\" + pymt_beg_dt;\n\t}", "public interface OrderMapper {\n\n //购物车确认订单之后插入订单商品信息(确认,但未发货)\n @Insert(\"insert into `order` ( order_code,order_time,username,goods_code,goods_name,goods_currentPrice,goods_counts,goods_image,goods_singlePrice,goods_totalPrice,goods_remark,goods_status) values (#{order_code},#{order_time},#{username},#{goods_code},#{goods_name},#{goods_currentPrice},#{goods_counts},#{goods_image},#{goods_singlePrice},#{goods_totalPrice},#{goods_remark},#{goods_status})\")\n int insertIntoOrder(Order order);\n\n //根据商品状态(未发货,待接收,待评价,已完成,已取消)查询商品信息\n @Select(\"select *from `order` where goods_status=#{goods_status} and username=#{username} \")\n List<Order> selectOrderByGoodsStatus(Order order) ;\n\n //改变商品订单的状态(根据商品订单和商品状态)\n @Update(\"update `order` set goods_status = #{goods_status} where order_code=#{order_code}\")\n int updateOrderStatus(Order order);\n\n}", "@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Saleorderdetail> selectAll();", "@Override\n\t\t\tpublic MemberInfoShowBean doInHibernate(Session session) throws HibernateException, SQLException {\n\t\t\t\tString hql = \"select new com.yuncai.modules.lottery.bean.vo.MemberInfoShowBean(m1.account, m1.name, m1.certNo, m1.email, m1.mobile, m2.bankCard, m2.bankPart,m2.bank) from Member as m1 ,MemberInfo as m2 where m1.id=m2.memberId and m1.account=:account\";\n\t\t\t\tQuery query = session.createQuery(hql);\n\t\t\t\tquery.setParameter(\"account\", account);\n\t\t\t\tMemberInfoShowBean bean = (MemberInfoShowBean) query.uniqueResult();\n\t\t\t\t\n\t\t\t\treturn bean;\n\t\t\t}", "@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }", "@Override\n\tpublic List<mOrderDetail> getListOrderDetail(String status, String CUSCode) {\n\t\ttry {\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT mo.O_Status_Code, mo.O_Code, mo.O_OrderDate, mo.O_DeliveryAddress, mo.O_DeliveryLat, mo.O_DeliveryLng ,mo.O_TimeEarly, mo.O_TimeLate, mo.O_DueDate, mc.C_Name, mrb.REQBAT_Description\"\n\t\t\t\t\t+ \" FROM mOrders mo, mClients mc, batchOnlineStore mrb\"\n\t\t\t\t\t+ \" WHERE mo.O_Status_Code IN (\"+status+\") and mo.O_ClientCode = mc.C_Code and mrb.REQBAT_Code = mo.O_BatchCode and mrb.REQBAT_CustomerCode = :C_Code ORDER BY mo.O_DueDate ASC\";\n//\t\t\t='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\n//\t\t\t\t\t\"' or mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"')\n\t\t\tQuery query = getSession().createQuery(sql);\n\t\t\tquery.setParameter(\"C_Code\", CUSCode);\n\t\t\tquery.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP);\n\t\t\tList query_result = query.list();\n\t\t\tList<mOrderDetail> lstOrderDetail = new ArrayList<mOrderDetail>();\n\t\t\t//0=Chưa được gán cho shipper, 1=OR000137, 2=2016-09-06, 3=200 Lê Duẩn, Hà Nội, 4=21.0173, 5=105.841, 6=18:00:00, 7=19:00:00, 8=2016-09-06, 9=Phan Anh Tú, 10=Các request lô 2016-09-24 10:00:00\n\t\t\tfor(int i=0; i<query_result.size(); i++){\n\t\t\t\tMap tmp = (Map) query_result.get(i);\n\t\t\t\tmOrderDetail temp = new mOrderDetail();\n\t\t\t\ttemp.setO_Code(tmp.get(\"1\").toString());\n\t\t\t\ttemp.setO_DeliveryLat(Float.valueOf(tmp.get(\"4\").toString()));\n\t\t\t\ttemp.setO_DeliveryLng(Float.valueOf(tmp.get(\"5\").toString()));\n\t\t\t\ttemp.setO_TimeEarly(tmp.get(\"6\").toString());\n\t\t\t\ttemp.setO_TimeLate(tmp.get(\"7\").toString());\n\t\t\t\ttemp.setO_DueDate(tmp.get(\"8\").toString());\n\t\t\t\ttemp.setC_Name(tmp.get(\"9\").toString());\n\t\t\t\ttemp.setREQBAT_Description(tmp.get(\"10\").toString());\n\t\t\t\ttemp.setO_DeliveryAddress(tmp.get(\"3\").toString());\n\t\t\t\ttemp.setO_Status_Code(tmp.get(\"0\").toString());\n\t\t\t\ttemp.setO_OrderDate(tmp.get(\"2\").toString());\n\t\t\t\t//System.out.println(name()+\"::getListOrderDetail--mOrderDetail[\"+i+\"]\"+tmp.toString());\n\t\t\t\tlstOrderDetail.add(temp);\n\t\t\t}\n\t commit();\n\t \n\t return lstOrderDetail;\n\t \n\t } catch (HibernateException e) {\n\t \te.printStackTrace();\n\t rollback();\n\t close();\n\t return null;\n\t } finally {\n\t \tflush();\n\t close();\n\t }\n\t}", "organize_infoBean selectByPrimaryKey(Integer id);", "public List getOrderDetails(OrderDetail orderDetail);", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo getGuestInfoReq(GuestInfo guestInfo){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo guestInfoReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.guestinfo.v1.GuestInfo();\n\t\t\n\t\tguestInfoReq.setSelectedFlag( guestInfo.getSelectedFlag() );\n\t\tguestInfoReq.setGuestId( guestInfo.getGuestId() );\n\t\tguestInfoReq.setAge( new Byte(guestInfo.getAge()) );\n\t\tguestInfoReq.setLapChild( new Boolean(guestInfo.isLapChild()) );\n\t\tguestInfoReq.setTitle( guestInfo.getTitle() );\n\t\tguestInfoReq.setFirstName( guestInfo.getFirstName() );\n\t\tguestInfoReq.setMiddleName( guestInfo.getMiddleName() );\n\t\tguestInfoReq.setLastName( guestInfo.getLastName() );\n\t\tguestInfoReq.setGender( guestInfo.getGender() );\n\t\tguestInfoReq.setPhoneNumber( guestInfo.getPhoneNumber() );\n\t\tguestInfoReq.setEmailId( guestInfo.getEmailId() );\n\t\tif((guestInfo.getAgeCode().getPaxTypeCode()=='I'||guestInfo.getAgeCode().getPaxTypeCode()=='L')\n\t\t\t\t&&(guestInfo.getParentGuestId()==null || guestInfo.getParentGuestId().equals(\"\"))){\n\t\t\tguestInfoReq.setParentGuestId(\"1\");\n\t\t}else{\n\t\t\tguestInfoReq.setParentGuestId( guestInfo.getParentGuestId() );\n\t\t}\n\t\tguestInfoReq.setEmergencyContactName( guestInfo.getEmergencyContactName() );\n\t\tguestInfoReq.setEmergencyContactPhone( guestInfo.getEmergencyContactPhone() );\n\t\tguestInfoReq.setFrequentFlyerNo( guestInfo.getFrequentFlyerNo() );\n\t\tguestInfoReq.setAirRemarks( guestInfo.getAirRemarks() );\n\t\tguestInfoReq.setHotelRemarks( guestInfo.getHotelRemarks() );\n\t\tguestInfoReq.setCruiseRemarks( guestInfo.getCruiseRemarks() );\n\t\tguestInfoReq.setMealRequest( guestInfo.getMealRequest() );\n\t\tguestInfoReq.setAirRequest( guestInfo.getAirRequest() );\n\t\tguestInfoReq.setGroundRequest( guestInfo.getGroundRequest() );\n\t\tguestInfoReq.setCateringRequest( guestInfo.getCateringRequest() );\n\t\tguestInfoReq.setSeatPreference( guestInfo.getSeatPreference() );\n\t\tguestInfoReq.setPnrNumber( guestInfo.getPnrNumber() );\n\t\tguestInfoReq.setStatus( guestInfo.getStatus() );\n\t\tguestInfoReq.setRedressNumber( guestInfo.getRedressNumber() );\n\t\tguestInfoReq.setChangeType( guestInfo.getChangeType() );\n\t\tguestInfoReq.setOldPaxId( guestInfo.getOldPaxId() );\n\t\tguestInfoReq.setPaxWeight( guestInfo.getPaxWeight() );\n\t\tif( guestInfo.getDateOfBirth() != null ){\n\t\t\tguestInfoReq.setDateOfBirth( this.getDate( guestInfo.getDateOfBirth() ) );\n\t\t}\n\t\tif( guestInfo.getAgeCode() != null ){\n\t\t\tguestInfoReq.setAgeCode( this.getAgeCodeReq(guestInfo.getAgeCode()) );\n\t\t}\n\t\tif( guestInfo.getPassportInfo() != null ){\n\t\t\tguestInfoReq.setPassportInfo( this.getPassportInfoReq(guestInfo.getPassportInfo()) );\n\t\t}\n\t\tif( guestInfo.getPriceBreakup() != null ){\n\t\t\tguestInfoReq.setPriceBreakup( this.getGuestPriceBreakupReq(guestInfo.getPriceBreakup()) );\n\t\t}\n\t\t\n\t\treturn guestInfoReq;\n\t}", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}", "@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);", "@Override\n\tpublic List<OrderVO> orderList() throws Exception {\n\t\treturn session.selectList(\"orderMapper.orderList\");\n\t}", "@Override\n\tpublic ProductVO detailOrderList(int p_num) {\n\t\treturn sql.selectOne(\"detailOrderList\", p_num);\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}", "@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "@Select({\n \"select\",\n \"order_id, num, com, status, message, ischeck, traceJson, create_time, last_udpate_time\",\n \"from tb_express_trace\",\n \"where order_id = #{orderId,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"BaseResultMap\")\n TbExpressTrace selectByPrimaryKey(String orderId);", "@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();", "public void selectSomeField() {\n\t\tList<com.service.JpaSelectSpecificColumns.SubOrder> findAllSubOrder = springDataSelectSpecificColumns.findAllSubOrder();\n\t\tfindAllSubOrder.forEach(t -> System.out.println(t));\n\t}", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "@Select({\n \"select\",\n \"id, orderid, name, price, userid\",\n \"from order\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n @ResultMap(\"BaseResultMap\")\n Order selectByPrimaryKey(Long id);", "public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }", "@Override\n public Map<String, String> createFieldToPropertyMapping() {\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n mapping.put(this.tableName + \".rsres_id\", \"id\");\n mapping.put(this.tableName + \".resource_id\", \"resourceId\");\n mapping.put(this.tableName + \".quantity\", QUANTITY);\n mapping.put(this.tableName + \".cost_rsres\", \"cost\");\n\n return mapping;\n }", "int insert(UcOrderGuestInfo record);", "@Override\r\n\tpublic List<OrderDetailBean> query(OrderDetailBean detail) {\n\t\treturn dao.query(detail);\r\n\t}", "@Override\n public String getSearchIDFromDB(String email, String vertical) {\n String sql = \"select SEARCH_ID from SEARCH a inner join customer c on \" +\n \"a.CUSTOMER_ID = c.CUSTOMER_ID where \" +\n \"CLASS = '\" + vertical + \"' and \" +\n \"c.EMAIL = '\" + email + \"' \" +\n \"order by a.CREATE_DATE desc\";\n Map<String, Object> result = jdbcTemplate.queryForMap(sql);\n return result.get(\"SEARCH_ID\").toString();\n }", "public static String[] detailsColumnProjection() {\n\n\t\treturn new String[]{KEY_ID, KEY_ADDRESS, KEY_NAME, KEY_VOLUME};\n\t}", "public interface CustomerInfo extends EObject {\n\t/**\n\t * Returns the name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCustomerLastName(String bookingRef);\n\n\t/**\n\t * Returns the age of the customer associated to the booking reference. \n\t * Returns -1 if the booking reference does not exist.\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getCustomerAge(String bookingRef);\n\n\t/**\n\t * Returns the email of the customer associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */ \n\tString getCustomerEmail(String bookingRef);\n\n\t/**\n\t * Returns the ccnr of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcNr(String bookingRef);\n\n\t/**\n\t * Returns the ccv of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCcV(String bookingRef);\n\n\t/**\n\t * Returns the expiry month of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpMonth(String bookingRef);\n\n\t/**\n\t * Returns the expiry year of the bank card associated to the booking reference\n\t * @model dataType=\"types.Integer\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tint getExpYear(String bookingRef);\n\n\t/**\n\t * Returns the first name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardFirstName(String bookingRef);\n\n\t/**\n\t * Returns the last name of the bank card associated to the booking reference\n\t * @model dataType=\"types.String\" required=\"true\" ordered=\"false\" bookingRefDataType=\"types.String\" bookingRefRequired=\"true\" bookingRefOrdered=\"false\"\n\t * @generated NOT\n\t */\n\tString getCardLastName(String bookingRef);\n\n}", "@Override\n public JSONObject viewSLInvoiceByAdmin() {\n\n return in_invoicedao.viewInvoiceByAdmin();\n }", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n List<Address> selectAll();", "public int getGuestAddress() {\n return guestAddress;\n }", "@Override\n\tpublic Serializable generate(SessionImplementor s, Object obj) {\n\t\tString name = \"HDFC000\";\n\t\tConnection con = s.connection();\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"select USR_ACCT_NO from HDFC_USR_INFO order by USR_ACCT_NO DESC\");\n\t\t\tif(rs.next()){\n\t\t\t\tname = name+rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\treturn name;\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public ScGridColumn<AcMobileDeviceTransmitSummaryVo> newMobileSessionCreatedByColumn()\n {\n return newMobileSessionCreatedByColumn(\"Mobile Session Created By\");\n }", "@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }", "int insertSelective(UcOrderGuestInfo record);", "public ArrayList<Guest02Dto> getList(){\n\t\tArrayList<Guest02Dto> list=new ArrayList<Guest02Dto>();\n\t\tString sql=\"select num,sub,(select name from user02 \";\n\t\tsql+=\" where num=unum) as uname,pay from GUEST02\";\n\t\tjavax.sql.DataSource source=null;\n\t\ttry {\n\t\t\tInitialContext init = new InitialContext();\n\t\t\tContext context=(Context)init.lookup(\"java:/comp/env\");\n\t\t\tsource=(javax.sql.DataSource) context.lookup(\"jdbc/oracle\");\n\t\t\t\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConnection conn=null;\n\t\tPreparedStatement pstmt=null;\n\t\tResultSet rs=null;\n\t\t\n\t\ttry {\n\t\t\tconn=source.getConnection();\n\t\t\tpstmt=conn.prepareStatement(sql);\n\t\t\trs=pstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tGuest02Dto bean=new Guest02Dto();\n\t\t\t\tbean.setNum(rs.getInt(\"num\"));\n\t\t\t\tbean.setSub(rs.getString(\"sub\"));\n\t\t\t\tbean.setName(rs.getString(\"uname\"));\n\t\t\t\tbean.setPay(rs.getInt(\"pay\"));\n\t\t\t\tlist.add(bean);\n\t\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(rs!=null)rs.close();\n\t\t\t\tif(pstmt!=null)pstmt.close();\n\t\t\t\tif(conn!=null)conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "@Override public final String toString() {\r\n return String.format(this.vId + \"\\t\" + this.vName\r\n + \"\\t\" + this.vUserName + \"\\t\" + this.vPassword + \"\\t\" + this.vPhone);\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Customer[id=\"+id+\",firstName=\"+firstName+\",lastName=\"+lastName+\",age=\"\r\n\t\t\t\t+age+\",createdTime=\"+createdTime+\",updateTime=\"+updateTime+\"]\";\r\n\t}", "public Table buildAssetDetailsTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 610px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tif (dto.getAssetConfig() != null && dto.getAssetConfig().size() > 0) {\n\n\t\t\tint count = 0;\n\n\t\t\tfor (AssetConfig asset : dto.getAssetConfig()) {\n\n\t\t\t\tTableRow row = new TableRow();\n\n\t\t\t\tTableData facility = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getFacility())));\n\t\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\t\tTableData workCenterCode = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getWorkCenterCode())));\n\t\t\t\tworkCenterCode.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 15% ; vertical-align: middle\");\n\n\t\t\t\tTableData description = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(asset.getDescription())));\n\t\t\t\tdescription.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 35% ; vertical-align: middle\");\n\n\t\t\t\tTableData assetNumber = new TableData(new SimpleText(\n\t\t\t\t\t\tvalidateDisplayField(/*asset.getAssetNumber()*/\"123456789123456\")));\n\t\t\t\tassetNumber.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 20% ; vertical-align: middle\");\n\n\t\t\t\tString statusFlag = asset.getStatus();\n\n\t\t\t\tTableData status;\n\t\t\t\tif (!\"A\".equalsIgnoreCase(statusFlag)) {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" />\"));\n\t\t\t\t} else {\n\t\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chkbox\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t\t}\n\t\t\t\tstatus.addAttribute(\"style\",\n\t\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\t\tstatus.addAttribute(\"disabled\", \"disabled\");\n\n\t\t\t\tTableData editImage = new TableData(new Image(\n\t\t\t\t\t\t\"static/images/edit.jpg\", \"Edit\"));\n\t\t\t\teditImage.addAttribute(\"style\", \"width: 10%\");\n\t\t\t\teditImage.addAttribute(\"onClick\", \"javascript:edit('\" + count\n\t\t\t\t\t\t+ \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getWorkCenterCode())\n\t\t\t\t\t\t+ \"','\" + asset.getFacility() + \"','\"\n\t\t\t\t\t\t+ validateDisplayField(asset.getDescription()) + \"','\"\n\t\t\t\t\t\t+ asset.getAssetNumber() + \"','\" + asset.getStatus()\n\t\t\t\t\t\t+ \"');\");\n\t\t\t\teditImage.addAttribute(\"style\", \"cursor: pointer;\");\n\n\t\t\t\trow.addTableData(facility);\n\t\t\t\trow.addTableData(workCenterCode);\n\t\t\t\trow.addTableData(assetNumber);\n\t\t\t\trow.addTableData(description);\n\t\t\t\trow.addTableData(status);\n\t\t\t\trow.addTableData(editImage);\n\n\t\t\t\tif (count % 2 == 0) {\n\t\t\t\t\trow.addAttribute(\"class\", \"normalRow\");\n\t\t\t\t} else {\n\t\t\t\t\trow.addAttribute(\"class\", \"alternateRow\");\n\t\t\t\t}\n\t\t\t\ttable.addTableRow(row);\n\t\t\t\tcount++;\n\n\t\t\t}\n\t\t}\n\n\t\treturn table;\n\t}", "@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}", "@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n //Override method to the to-string for the concatenation of the customer name and ID\n public String toString() {\n return customerName + \" [\" + customerId + \"]\";\n }", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Mapper\r\npublic interface OrderMapper {\r\n /**\r\n * 添加库存\r\n *\r\n * @param order\r\n */\r\n void addOrder(Order order);\r\n\r\n /**\r\n * 获得所有库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3;\")\r\n List<Order> getList();\r\n\r\n\r\n @Select(\"SELECT COUNT(*) FROM ms_sale WHERE sale_check =1;\")\r\n Integer getCount();\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 limit #{rows} offset #{offset};;\")\r\n List<Order> getListByPage(@Param(\"rows\") Integer rows, @Param(\"offset\") Integer offset);\r\n\r\n\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and or_check=3 LIMIT #{row} OFFSET #{page};\")\r\n List<Order> getListByPageAndRow(@Param(\"row\") Integer row, @Param(\"page\") Integer page);\r\n\r\n /**\r\n * 获得公司进货记录\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_id=#{id}\")\r\n Order getById(Integer id);\r\n\r\n /**\r\n * 获得库存物品信息\r\n *\r\n * @param val\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,ms_goods WHERE ms_order.or_goods_id =#{val} and or_goods_id=su_id and or_supplier_id=supplier_id and or_check='3';\")\r\n List<Order> getGoodsInfoInBound(Integer val);\r\n\r\n /**\r\n * 设置发票状况\r\n *\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_invoice`=#{value} WHERE `or_id`=#{key};\")\r\n void setInvoice(@Param(\"key\") Integer key, @Param(\"value\") Integer value);\r\n\r\n /**\r\n * 结款\r\n *\r\n * @param id\r\n * @return\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_payment`=6 WHERE `or_id`=#{id};\")\r\n void setPayment(Integer id);\r\n\r\n /**\r\n * 获得待审核进货信息\r\n *\r\n * @param check\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods WHERE or_supplier_id=supplier_id and or_goods_id=su_id and ms_order.or_check=#{check};\")\r\n List<Order> getOrderWhereCheck(Integer check);\r\n\r\n /**\r\n * 删除库存\r\n *\r\n * @param id\r\n */\r\n @Delete(\"DELETE FROM `gongxiao`.`ms_order` WHERE `or_id`=#{id};\")\r\n void deleteOrderById(Integer id);\r\n\r\n /**\r\n * 获得库存状态\r\n *\r\n * @return\r\n */\r\n @Select(\"select su_name,SUM(or_number) as su_sum from repertory group by su_name;\")\r\n List<Statistics> getStatistics();\r\n\r\n /**\r\n * 查找相似物品的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_name like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getLikeOrderInBound(String like);\r\n\r\n /**\r\n * 查找货号的库存信息\r\n *\r\n * @param like\r\n * @return\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where ms_goods.su_No like #{like} and or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id\")\r\n List<Order> getListByNo(String like);\r\n\r\n\r\n void updateOrderNumInBound(UpdateItem updateItem);\r\n\r\n /**\r\n * 审核入库\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_check`= 3 WHERE `or_id`=#{id};\")\r\n void orderInBound(Integer id);\r\n\r\n /**\r\n * 刷新库存\r\n */\r\n void refreshOrderInBound();\r\n\r\n /**\r\n * 根据日期和供货商获得库存信息\r\n *\r\n * @param item\r\n * @return\r\n */\r\n List<Order> getOrderByDateAndSupplierId(OfIdAndDateItem item);\r\n\r\n /**\r\n * 获得仓库预警库存\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_number<=or_alarm;\")\r\n List<Order> getBoundAlarm();\r\n\r\n /**\r\n * 获得仓库预期\r\n * 只显示库存大于0的,小鱼0的不需要显示!\r\n *\r\n * @param time\r\n * @return\r\n */\r\n @Select(\"SELECT * FROM gongxiao.repertory WHERE or_deaddate<=#{s} and or_number >0;\")\r\n List<Order> getListByDead(Date time);\r\n\r\n /**\r\n * 重设预警值\r\n *\r\n * @param val\r\n * @param key\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_alarm`=#{val} WHERE `or_id`=#{key};\")\r\n void resetAlarm(@Param(\"val\") Integer val, @Param(\"key\") Integer key);\r\n\r\n /**\r\n * 根据公司ID获得库存信息\r\n */\r\n @Select(\"SELECT ms_order.*,ms_supplier.supplier_office,ms_goods.* FROM gongxiao.ms_order,gongxiao.ms_supplier,gongxiao.ms_goods where or_supplier_id=supplier_id and or_check='3' and or_goods_id = su_id and supplier_id=#{id}\")\r\n List<Order> getListBySupId(Integer id);\r\n\r\n /**\r\n * 获得公司库存金额\r\n *\r\n * @return\r\n */\r\n @Select(\"SELECT sum(or_price*or_number) FROM gongxiao.ms_order WHERE or_check =3;\")\r\n Double getAmount();\r\n\r\n /**\r\n * 修改备注\r\n */\r\n @Update(\"UPDATE `gongxiao`.`ms_order` SET `or_other`=#{val} WHERE `or_id`=#{key};\")\r\n void updateOther(@Param(\"val\") String val, @Param(\"key\") Integer key);\r\n}", "public interface OrderDetailsService {\n\n List<MallV_Order_Show> getMallV_Order_Show(Map<String, Object> map);/*列表*/\n\n int getMallV_Order_ShowCount(Map<String, Object> map);\n\n MallV_Order_Show selectMallV_Order_Show(String no);\n\n}", "Basicinfo selectByPrimaryKey(String taxregcode);", "public List<Map> querystbDeviceDetail(long deviceTypeId, long detailSpecId)\n\t{\n\t\tString infoSql = \"select a.devicetype_id, c.vendor_add, b.device_model, a.access_style_relay_id,a.spec_id,\"\n\t\t\t +\" a.specversion, a.hardwareversion, a.softwareversion, a.is_check, a.rela_dev_type_id,\"\n\t\t\t\t+ \" a.access_style_relay_id,a.ip_type ,is_normal from stb_tab_devicetype_info a, stb_gw_device_model b,stb_tab_vendor c \"\n\t\t\t\t+ \" where a.device_model_id=b.device_model_id and a.vendor_id=c.vendor_id and a.devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tPrepareSQL infoPsql = new PrepareSQL(infoSql.toString());\n\t\tList<Map> infoList = new ArrayList<Map>();\n\t\tinfoList = jt.queryForList(infoPsql.getSQL());\n\t\tif (infoList.size() > 0)\n\t\t{\n\t\t\tString access_style_relay_id = StringUtil.getStringValue(infoList.get(0).get(\n\t\t\t\t\t\"access_style_relay_id\"));\n\t\t\tif (!\"\".equals(access_style_relay_id))\n\t\t\t{\n\t\t\t\tString type_name = getTypeNameByTypeId(access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_id\", access_style_relay_id);\n\t\t\t\tinfoList.get(0).put(\"type_name\", type_name);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinfoList.get(0).put(\"type_id\", \"\");\n\t\t\t\tinfoList.get(0).put(\"type_name\", \"\");\n\t\t\t}\n\t\t}\n\t\tString specName = getSpecName(String.valueOf(detailSpecId));\n\t\tinfoList.get(0).put(\"specName\", specName);\n\t\tString portSql = \"select port_name,port_dir,port_type,port_desc from stb_tab_devicetype_info_port where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> portList = new ArrayList<Map>();\n\t\tPrepareSQL portPsql = new PrepareSQL(portSql.toString());\n\t\tportList = jt.queryForList(portPsql.getSQL());\n\t\tif (portList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString port = \"\";\n\t\t\tfor (int i = 0; i < portList.size(); i++)\n\t\t\t{\n\t\t\t\tport += StringUtil.getStringValue(portList.get(i).get(\"port_name\"))+ \",\";\n\t\t\t}\n\t\t\tport = port.substring(0, port.length() - 1);\n\t\t\tinfoList.get(0).put(\"port_name\", port);\n\t\t}\n\t\tString typeSql = \"select server_type from stb_tab_devicetype_info_servertype where devicetype_id=\"\n\t\t\t\t+ deviceTypeId;\n\t\tList<Map> typeList = new ArrayList<Map>();\n\t\tPrepareSQL typePsql = new PrepareSQL(typeSql.toString());\n\t\ttypeList = jt.queryForList(typePsql.getSQL());\n\t\tif (typeList.size() > 0 && infoList.size() > 0)\n\t\t{\n\t\t\tString type = \"\";\n\t\t\tfor (Map m:typeList)\n\t\t\t{\n\t\t\t\tString tempType = StringUtil.getStringValue(m.get(\"server_type\"));\n\t\t\t\tif (tempType.equals(\"0\")){\n\t\t\t\t\ttype += \"IMS SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"1\")){\n\t\t\t\t\ttype += \"软交换SIP\" + \",\";\n\t\t\t\t}else if (tempType.equals(\"2\")){\n\t\t\t\t\ttype += \"H248\" + \",\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttype = type.substring(0, type.length() - 1);\n\t\t\tinfoList.get(0).put(\"server_type\", type);\n\t\t}\n\t\treturn infoList;\n\t}", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "private void getMailOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getMailOrderList());\n \n }", "@Override\n public String toString() {\n String details = \"\";\n\n if (this.columnType.getValue() != ColumnType._ANY) {\n details += \" typu '\" + this.columnType.getValue().toString() + \"'\";\n }\n if (!this.columnName.getValue().isEmpty()) {\n details += \" s názvem '\" + this.columnName.getValue() + \"'\";\n }\n if (this.columnIsPrimary.getValue() != YesNoType._ANY) {\n details += \", které \" + (this.columnIsPrimary.getValue() == YesNoType.YES ? \"jsou\" : \"nejsou\") + \" primárním klíčem,\";\n }\n\n return \"Počet sloupců\" + details + \" v každé tabulce \" + this.countOp.getValue() + \" \" + this.count.getValue();\n }", "@Override\r\npublic List<Order> getallorders() {\n\treturn productdao.getalloderds();\r\n}", "List<TbaDeliveryinfo> selectByExample(TbaDeliveryinfoCriteria example);", "protected int getTableOrder()\n\t\t{\n\t\t\treturn Order ;\n\t\t}", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "ClOrderInfo selectByPrimaryKey(String orderId);", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "@Query(nativeQuery = true, value =\"select * from order_details where user_id = :userId\" )\r\n\tList<OrderDetails> getOrderDetailsByUserId(@Param(\"userId\") Integer id);", "public interface DepartmentDao {\n\n /**\n * 部门列表查询\n * @return\n */\n @Select(\"select deptno,dname,loc from department\")\n List<Map> getDeptList();\n}", "@Override\n public String toString() {\n \treturn this.getUsername()+\"\\t\\t\"+this.getTel()+\"\\t\\t\"+this.getPassword()+\"\\t\"+this.getMembertypeid()+\"\\t\\t\"+this.getIntegral()+\"\\t\\t\"+this.getAddress();\n }", "@Select({\r\n \"select\",\r\n \"contract_address_id, contract_address, contract_type, contract_state, contract_num, \",\r\n \"chain_status, chain_trans_hash, create_time\",\r\n \"from cwv_game_contract_address\",\r\n \"where contract_address_id = #{contractAddressId,jdbcType=INTEGER}\"\r\n })\r\n @Results({\r\n @Result(column=\"contract_address_id\", property=\"contractAddressId\", jdbcType=JdbcType.INTEGER, id=true),\r\n @Result(column=\"contract_address\", property=\"contractAddress\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_type\", property=\"contractType\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"contract_state\", property=\"contractState\", jdbcType=JdbcType.CHAR),\r\n @Result(column=\"contract_num\", property=\"contractNum\", jdbcType=JdbcType.INTEGER),\r\n @Result(column=\"chain_status\", property=\"chainStatus\", jdbcType=JdbcType.TINYINT),\r\n @Result(column=\"chain_trans_hash\", property=\"chainTransHash\", jdbcType=JdbcType.VARCHAR),\r\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\r\n })\r\n CWVGameContractAddress selectByPrimaryKey(CWVGameContractAddressKey key);", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);", "@Override\r\npublic List<OrderInfo> selectUnfinishedSaleOrderList() {\n\t\treturn OrderInfoMapper.selectUnfinishedSaleOrderList();\r\n}", "public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}", "private void getLargeOrderList(){\n sendPacket(CustomerTableAccess.getConnection().getLargeOrderList());\n \n }", "public String toString() {\r\n\t\treturn this.eId + \" \" + this.eName + \" \" + this.eCity + \" \";\r\n\t}", "@Override\r\n\tpublic PageDataList<CustomerBaseinfoModel> customerBaseinfoList(int pageNumber,int pageSize,CustomerBaseinfoModel model) {\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tsb.append(\" select distinct w.id,w.name,u.real_name,c.sex,u.mobile_phone, \")\r\n\t\t .append(\" (DATE_FORMAT(CURDATE(),'%Y') - SUBSTR(u.card_id,7,4)) age, \")\r\n\t\t .append(\" u.card_id, ab.bank_no,ab.bank,u.add_time,i.real_name_verify_time as real_name_time,i.real_name_verify_time as bind_card_time, \")\r\n\t\t .append(\" c.status,p.coupon_code,a.use_money,u.user_id from rd_user u \")\r\n\t\t .append(\" LEFT JOIN ehb_wealth_user wu ON u.user_id = wu.user_id \")\r\n\t\t .append(\" LEFT JOIN ehb_zc_wealth_manager_user m ON wu.id = m.wealth_user_id \")\t\t\r\n\t\t .append(\" left join ehb_zc_wealth_manager w on m.wealth_manager_id = w.id \" )\r\n\t\t .append(\" left join rd_user_identify i on u.user_id = i.user_id \")\r\n\t\t .append(\" left join rd_user_base_info b on u.user_id = b.user_id \" )\r\n\t\t .append(\" left join rd_user_cache c on u.user_id = c.user_id \" )\r\n\t\t .append(\" left join rd_account_bank ab on u.user_id = ab.user_id \")\r\n\t\t .append(\" left join rd_user_invite ui on u.user_id = ui.user_id \")\r\n\t\t .append(\" left join rd_user_promot p on ui.invite_user = p.user_id \")\r\n\t\t .append(\" left join rd_account a on u.user_id = a.user_id where ab.status = 1 \");\r\n\t\tString strSql = sb.toString();\r\n\t if (!StringUtil.isBlank(model.getSearchName())) {\r\n\t \tstrSql += \" and (u.mobile_phone like '%\" + model.getSearchName() + \"%' \" + \r\n \t \" or u.real_name like '%\" + model.getSearchName() + \"%') \";\r\n\t\t} \r\n\t\tQuery query = em.createNativeQuery(strSql);\r\n\t\tPage page = new Page(query.getResultList().size(), pageNumber,pageSize);\r\n\t\tquery.setFirstResult((pageNumber - 1) * pageSize);\r\n\t\tquery.setMaxResults(pageSize);\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Object[]> list = query.getResultList();\r\n\t\tPageDataList<CustomerBaseinfoModel> pageDataList_ = new PageDataList<CustomerBaseinfoModel>();\r\n List<CustomerBaseinfoModel> cpmList = new ArrayList<CustomerBaseinfoModel>();\r\n pageDataList_.setPage(page);\r\n int i = 1;\r\n \tfor (Object[] o : list) {\r\n \t\tCustomerBaseinfoModel customer = new CustomerBaseinfoModel();\r\n\t\t\tcustomer.setId(i);\r\n\t\t\tcustomer.setSaleCode(o[0]==null?\"\":o[0].toString());\r\n\t\t\tcustomer.setSaleName(o[1]==null?\"\":o[1].toString());\r\n\t\t\tcustomer.setRealName(o[2]==null?\"\":o[2].toString());\r\n\t\t\tcustomer.setSex(o[3]==null?0:((Boolean)o[3]?1:0));\r\n\t\t\tcustomer.setPhone(o[4]==null?\"\":o[4].toString());\r\n\t\t\tcustomer.setAge(o[5]==null?0:((Double)o[5]).intValue());\r\n\t\t\tcustomer.setCertificate(o[6]==null?\"\":o[6].toString());\r\n\t\t\tcustomer.setBankNo(o[7]==null?\"\":o[7].toString());\r\n\t\t\tcustomer.setBank(o[8]==null?\"\":o[8].toString());\r\n\t\t\tcustomer.setRegisterTime(o[9]==null?new Date():(Date)o[9]);\r\n\t\t\tcustomer.setRealNameTime(o[10]==null?new Date():(Date)o[10]);\r\n\t\t\tcustomer.setBindCardTime(o[11]==null?new Date():(Date)o[11]);\r\n\t\t\tcustomer.setAccountState(o[12]==null?0:((Boolean)o[12]?1:0));\r\n\t\t\tcustomer.setRecommendCode(o[13]==null?\"\":o[13].toString());\r\n\t\t\tcustomer.setUseMoney(o[14]==null?0:Double.parseDouble(o[14].toString()));\r\n\t\t\tstrSql = \" select sum(account) from rd_borrow_tender where user_id = \" + (o[15]==null?0:Integer.parseInt(o[15].toString()));\r\n\t\t\tquery = em.createNativeQuery(strSql);\r\n\t\t\tif(query.getResultList()!=null&&query.getResultList().size()>0&&query.getResultList().get(0)!=null)\r\n\t\t\t{\r\n\t\t\t\tString money = query.getResultList().get(0).toString();\r\n\t\t\t\tcustomer.setInvestMoney(Double.parseDouble(money));\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tcustomer.setInvestMoney(0.0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcpmList.add(customer);\r\n\t\t\ti++;\r\n \t}\r\n\t\tpageDataList_.setList(cpmList);\r\n\t\treturn pageDataList_;\r\n\t}", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\n\n}", "public List getRoutes(int fromId, int toId) {\n String queryString = \"FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n// String queryString = \"SELECT R.airline, R.price FROM Route R WHERE R.fromId =\\\"\" + fromId + \"\\\" AND R.toId = \\\"\"+ toId +\"\\\" ORDER BY R.price ASC\";\n List<Route> routeList = null;\n try {\n org.hibernate.Transaction tx = session.beginTransaction();\n Query q = session.createQuery (queryString);\n routeList = (List<Route>) q.list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n// for(Route r : routeList){\n// System.out.println(r.getAirline().getName() + \", \" + r.getPrice());\n// }\n return routeList;\n}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Override\r\n\t\r\n\tpublic List<Employee> getAllDetails()\r\n\t{\r\n\t\t\r\n\t\tList<Employee> empList =hibernateTemplate.loadAll(Employee.class);\r\n\t\t\r\n\t\treturn empList;\r\n\t}", "@Select({\n \"select\",\n \"addrid, userid, province, city, region, address, postal, consignee, phone, status, \",\n \"createdate\",\n \"from t_address\",\n \"where addrid = #{addrid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"addrid\", property=\"addrid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"userid\", property=\"userid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"province\", property=\"province\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"city\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"region\", property=\"region\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"postal\", property=\"postal\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"consignee\", property=\"consignee\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"phone\", property=\"phone\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"createdate\", property=\"createdate\", jdbcType=JdbcType.TIMESTAMP)\n })\n Address selectByPrimaryKey(String addrid);", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic List<HashMap<String, String>> GeunTaeList(HashMap<String, String> params) {\n\t\treturn sqlsession.selectList(\"GeuntaeMgnt.GeunTaeList\",params);\r\n\t}", "@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}" ]
[ "0.59686077", "0.5430412", "0.509382", "0.50578535", "0.5032601", "0.5018578", "0.5012282", "0.4976719", "0.49758866", "0.49703467", "0.49687666", "0.49675158", "0.49461478", "0.4936134", "0.4921217", "0.49207553", "0.48992163", "0.48963723", "0.489108", "0.48900905", "0.4862083", "0.48604104", "0.48507977", "0.48477474", "0.4846186", "0.4839804", "0.48188612", "0.4795127", "0.47929537", "0.4785345", "0.47818083", "0.47720847", "0.47572625", "0.47446606", "0.47446606", "0.4742496", "0.47407413", "0.47255906", "0.4705816", "0.47026274", "0.46927127", "0.46909362", "0.46886033", "0.46684575", "0.4667524", "0.46664014", "0.46559086", "0.46556562", "0.46524224", "0.46514323", "0.46494588", "0.46468905", "0.4645243", "0.46433967", "0.46394417", "0.4619872", "0.461334", "0.4612891", "0.46123183", "0.46031055", "0.45997998", "0.4588932", "0.4588843", "0.4584063", "0.4581802", "0.4580638", "0.45796877", "0.4577552", "0.45748326", "0.45734215", "0.45693654", "0.45679373", "0.45535198", "0.45517743", "0.45515227", "0.45496574", "0.45471033", "0.45464", "0.45412236", "0.4539154", "0.45381647", "0.4533498", "0.45322883", "0.4530333", "0.45275277", "0.45271757", "0.45235902", "0.45209208", "0.45179474", "0.4516143", "0.4511044", "0.45109117", "0.45109054", "0.44953978", "0.4495248", "0.44927388", "0.44921863", "0.44914278", "0.44892898", "0.44870794", "0.44846243" ]
0.0
-1
find another player that already has the gui for this tile open
public void syncOnOpen(EntityPlayerMP playerOpened) { WorldServer server = playerOpened.getServerWorld(); for (EntityPlayer player : server.playerEntities) { if (player == playerOpened) { continue; } if (player.openContainer instanceof BaseContainer) { if (this.sameGui((BaseContainer<H>) player.openContainer)) { syncWithOtherContainer((BaseContainer<H>) player.openContainer, playerOpened); return; } } } // no player has a container open for the tile syncNewContainer(playerOpened); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Player getSelectedPlayer();", "void findOpponent() {\n\t\tif(gameHelper == null){return;}\n\t\tif (gameHelper.isSignedIn()) {\n\t\t\tIntent intent = Games.TurnBasedMultiplayer\n\t\t\t\t\t.getSelectOpponentsIntent(gameHelper.getApiClient(), 1, 1);\n\t\t\tstartActivityForResult(intent, RC_SELECT_PLAYERS);\n\t\t} else if (gameHelper.isConnecting()) {\n\t\t\tToast.makeText(getActivity(), R.string.wait_connecting_to_google,\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t}\n\t}", "private boolean try2GetYellowPlayerFromHome(Player player)\n {\n try\n {\n YellowPlayer yellowPlayer = (YellowPlayer) player;\n if (YellowPlayer.getNumber_of_buttons_allowed() > 0)\n {\n ludo.getPlayerFromHome(player);\n //YellowPlayer.setNumber_of_buttons_allowed(YellowPlayer.decrementNumberOfAllowedPlayers());\n return true;\n }\n return false;\n }\n catch (Exception e)\n {\n return false;\n }\n }", "public void run()\r\n/* 29: */ {\r\n/* 30:26 */ for (Player p :HG.plugin.getServer().getOnlinePlayers()) {\r\n/* 31:28 */ if (p.getInventory().contains(Material.COMPASS))\r\n/* 32: */ {\r\n/* 33:29 */ PlayerData pd = (PlayerData)this.plugin.players.get(p.getName());\r\n/* 34:31 */ if (pd != null)\r\n/* 35: */ {\r\n/* 36:33 */ String[] st = getNearestPlayer(p, pd);\r\n/* 37:34 */ String info = \"\" + ChatColor.WHITE + ChatColor.BOLD + \"Nearest Player: \" + ChatColor.RED + st[0] + \" \" + ChatColor.WHITE + ChatColor.BOLD + \"Distance: \" + ChatColor.RED + st[1];\r\n/* 38:36 */ for (ItemStack it : p.getInventory()) {\r\n/* 39:37 */ if ((it != null) && (it.getType() == Material.COMPASS))\r\n/* 40: */ {\r\n/* 41:38 */ ItemMeta im = it.getItemMeta();\r\n/* 42:39 */ im.setDisplayName(info);\r\n/* 43:40 */ it.setItemMeta(im);\r\n/* 44: */ }\r\n/* 45: */ }\r\n/* 46: */ }\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49: */ }", "private void loadPlayerPanel(Player player) {\n\t\tCustomButton nullButton = new CustomButton() {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\tpublic void buttonPressed() {}\n\t\t};\n\t\tnullButton.setVisible(false);\n\t\t\n\t\tLinkedList<Card> cards = new LinkedList<Card>();\n\t\tcards.addAll(player.getAllItems());\n\t\tMultiSelectCardPanel playerPanel = new MultiSelectCardPanel(cards, 3, nullButton, null) {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\tpublic void setCheckedInfoText() {}\n\t\t};\n\t\tplayerPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.BLACK), player.getName()));\n\t\t\n\t\tif (player == initiator) {\n\t\t\tif (initiatorPanel != null)\n\t\t\t\tgetContentPane().remove(initiatorPanel);\n\t\t\t\n\t\t\tc.gridx = 0;\n\t\t\tinitiatorPanel = playerPanel;\n\t\t}\n\t\telse {\n\t\t\tif (otherPlayerPanel != null)\n\t\t\t\tgetContentPane().remove(otherPlayerPanel);\n\t\t\t\n\t\t\tc.gridx = 2;\n\t\t\totherPlayerPanel = playerPanel;\n\t\t}\n\t\t\n\t\tc.gridheight = 3;\n\t\tc.gridy = 0;\n\t\tgetContentPane().add(playerPanel, c);\n\t\trefresh();\n\t\tc.gridheight = 1;\n\t}", "Player getCurrentPlayer();", "Player getCurrentPlayer();", "public void isPickingUpPowerup(Player player) {\n if (player.getActivePowerup() == null) {\n for (Powerup powerup : powerups) {\n if (powerup.getBoundsInParent().intersects(player.getBoundsInParent())) {\n player.setActivePowerup(powerup);\n fieldPane.getChildren().remove(powerup);\n cleanup.add(powerup);\n }\n }\n }\n }", "boolean checkWin(Tile initialTile);", "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 }", "@Override\n public Object getClientGuiElement(int id, EntityPlayer player, World world,int x, int y, int z) {\n TileEntity tileEntity = world.getBlockTileEntity(x, y, z);\n if(tileEntity instanceof TileEntityBioCarbonizer){\n return new GuiBioCarbonizer(player.inventory, (TileEntityBioCarbonizer) tileEntity);\n }else if(tileEntity instanceof TileEntityBlast){\n \t \treturn new GuiBlast(player.inventory,(TileEntityBlast)tileEntity);\n \t }else if(tileEntity instanceof TileEntityIncinerator){\n \t \treturn new GuiIncinerator(player.inventory,(TileEntityIncinerator)tileEntity);\n \t }\n return null;\n\n }", "@Override\n\tpublic Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {\n\t TileEntity tileEntity = world.getBlockTileEntity(x, y, z);\n\t if(tileEntity instanceof TileEntityBioCarbonizer){\n\t \treturn new ContainerBioCarbonizer(player.inventory, (TileEntityBioCarbonizer)tileEntity);\n\t }else if(tileEntity instanceof TileEntityBlast){\n\t \treturn new ContainerBlast(player.inventory,(TileEntityBlast)tileEntity);\n\t }else if(tileEntity instanceof TileEntityIncinerator){\n\t \treturn new ContainerIncinerator(player.inventory,(TileEntityIncinerator)tileEntity);\n\t }\n return null;\n}", "@Override\n\tpublic Object getClientGuiElement(int _ID, EntityPlayer _player, World _world, int _x, int _y, int _z) \n\t{\n\t\tswitch(_ID)\n\t\t{\n\t\tcase 0:\n\t\t\treturn new GuiTalentScreen();\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn null;\n\t}", "private boolean try2GetBluePlayerFromHome(Player player)\n {\n try\n {\n BluePlayer bluePlayer = (BluePlayer) player;\n if (BluePlayer.getNumber_of_buttons_allowed() > 0)\n {\n ludo.getPlayerFromHome(player);\n //BluePlayer.setNumber_of_buttons_allowed(BluePlayer.decrementNumberOfAllowedPlayers());\n return true;\n }\n return false;\n }\n catch (Exception e)\n {\n return false;\n }\n }", "private boolean try2GetGreenPlayerFromHome(Player player)\n {\n try\n {\n GreenPlayer greenPlayer = (GreenPlayer) player;\n if (GreenPlayer.getNumber_of_buttons_allowed() > 0)\n {\n ludo.getPlayerFromHome(player);\n //GreenPlayer.setNumber_of_buttons_allowed(GreenPlayer.decrementNumberOfAllowedPlayers());\n return true;\n }\n return false;\n }\n catch (Exception e)\n {\n return false;\n }\n }", "public void waitingMissingPlayer() {\r\n\r\n\t\tthis.waitingPanel = new WaitingForPlayerPanel(this);\r\n\t\tgameFrame.add(waitingPanel);\r\n\t\tmultiplayerPanel.setVisible(false);\r\n\t\tgameFrame.pack();\r\n\t\tgameFrame.setVisible(true);\r\n\t\tgameFrame.repaint();\r\n\t}", "public void singlePlayerChosen(){\n DifficultyViewController dif = new DifficultyViewController(this);\n dif.showView();\n this.hideView();\n }", "private boolean try2GetRedPlayerFromHome(Player player)\n {\n try\n {\n RedPlayer redPlayer = (RedPlayer) player;\n if (RedPlayer.getNumber_of_buttons_allowed() > 0)\n {\n ludo.getPlayerFromHome(player);\n //RedPlayer.setNumber_of_buttons_allowed(RedPlayer.decrementNumberOfAllowedPlayers());\n return true;\n }\n return false;\n }\n catch (Exception e)\n {\n return false;\n }\n }", "private void ReplacePlayer()\n {\n String oldPlayer = GetPlayerString(mTeamsComboBox.getSelectedItem().toString(),\n mPositionComboBox.getSelectedItem().toString());\n if( oldPlayer == null )\n return;\n\n String newPlayer = GetPlayerString_UI();\n String team = mTeamsComboBox.getModel().getElementAt(mTeamsComboBox.getSelectedIndex()).toString();\n ReplacePlayer(team, oldPlayer, newPlayer);\n }", "public boolean hasDialog(Player player) {\n\t\treturn this.activeDialog.containsKey(player.getUniqueId());\n\t}", "@FXML\n private void fastMatch() {\n if (Client.getUser().getState() != Type.UserState.IDLE) {\n JOptionPane.showMessageDialog(null, \"您已经在房间中\");\n return;\n }\n Room match = null;\n for (Room room : Client.roomsMap.values()) {\n if (room.hasSeat()) {\n match = room;\n Client.getUser().setRoom(match.getId());\n Client.getUser().setState(Type.UserState.READY);\n Client.updateUser();\n match.setState(Type.RoomState.READY);\n if (match.getPlayer1() == null || match.getPlayer1().isEmpty()) {\n match.setPlayer1(Client.getUser().getAccount());\n Client.updateRoom(room, Type.UpdateRoom.PLAYER1IN);\n } else {\n match.setPlayer2(Client.getUser().getAccount());\n Client.updateRoom(room, Type.UpdateRoom.PLAYER2IN);\n }\n break;\n }\n }\n if (match != null) {\n client.gotoGame(match);\n } else {\n int res = JOptionPane.showConfirmDialog(null, \"暂时找不到匹配的房间哦,是否要自己创建一个呢?\", \"未找到匹配的房间\", JOptionPane.YES_NO_OPTION);\n if (res == JOptionPane.YES_OPTION) {\n client.gotoCreateRoom();\n }\n }\n }", "public BasketballPlayer getPlayer(String player){\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_homeTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _homeTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_awayTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _awayTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "boolean hasOpenedInventory(Player player);", "private static Player getThroughWhomSendMessage() {\n\t\treturn Remain.getOnlinePlayers().isEmpty() ? null : Remain.getOnlinePlayers().iterator().next();\n\t}", "public void chooseWorker(){\n resetUpdate();\n\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.notify(gameMessage);\n\n if ( liteGame.getCurrWorker() == null ){\n removePlayerFromTheGame();\n }\n }", "TileItem getCurrentTile();", "public void showLobby(ArrayList<String> players) throws IOException {\n String firstOpponentUsername = null, secondOpponentUsername;\n lobbyPane= FXMLLoader.load(Objects.requireNonNull(GodsController.class.getClassLoader().getResource(\"Fxml/Lobby.fxml\")));\n borderPane=(BorderPane) lobbyPane.getChildren().get(1);\n exitButton=(ImageView) borderPane.getBottom();\n playerStackPane=(StackPane) borderPane.getLeft();\n playerUsernameLabel=(Label) playerStackPane.getChildren().get(2);\n opponentsVBox=(VBox) borderPane.getRight();\n firstOpponentPane=(StackPane) opponentsVBox.getChildren().get(0);\n secondOpponentPane=(StackPane) opponentsVBox.getChildren().get(1);\n firstOpponentLabel=(Label) firstOpponentPane.getChildren().get(2);\n secondOpponentLabel=(Label) secondOpponentPane.getChildren().get(2);\n if(Client.getNumPlayers()==2) opponentsVBox.getChildren().remove(1);\n playerUsernameLabel.setText(Client.getUsername());\n for(String username :players ){\n if(!Client.getUsername().equals(username)) {\n if(firstOpponentUsername==null) {\n firstOpponentLabel.setText(firstOpponentUsername=username);\n }\n else secondOpponentLabel.setText(secondOpponentUsername = username);\n }\n }\n GUI.getGameStage().setScene(new Scene(lobbyPane));\n GUI.getGameStage().show();\n }", "@Override\n public Player getWinningPlayer() {\n return wonGame ? currentPlayer : null;\n }", "public void createChooseGameUI()\n {\n \tHashMap<InventoryRunnable, InventoryItem> inventoryStuff = new HashMap<InventoryRunnable, InventoryItem>();\n \t\n \tInventoryRunnable gladiatorJoinRunnable = new GladiatorJoinInventoryRunnable(plugin);\n \t\n \tArrayList<String> gladiatorLore = new ArrayList<String>();\n \tgladiatorLore.add(\"FIGHT TO THE DEATH AND WIN YOUR FREEDOM\");\n \tgladiatorLore.add(\"GOOD LUCK WARRIOR!\");\n \tInventoryItem gladiatorItem = new InventoryItem(plugin, Material.SHIELD, \"GLADIATOR\", gladiatorLore, 1, true, 1);\n \tinventoryStuff.put(gladiatorJoinRunnable, gladiatorItem);\n \t\n \tchooseGameUI = new GUIInventory(plugin, \"MINIGAMES\", inventoryStuff, 3);\n }", "public Player checkWin ()\n {\n //checks rows\n for (int row = 0; row < 3; row++)\n if (getGridElement(row, 0).getPlayer() == getGridElement(row, 1).getPlayer() &&\n getGridElement(row, 1).getPlayer() == getGridElement(row, 2).getPlayer() &&\n getGridElement(row, 0).getPlayer() != Player.NONE)\n return getGridElement(row, 0).getPlayer();\n\n //checks columns\n for (int column = 0; column < 3; column++)\n if (getGridElement(0, column).getPlayer() == getGridElement(1, column).getPlayer() &&\n getGridElement(1, column).getPlayer() == getGridElement(2, column).getPlayer() &&\n getGridElement(0, column).getPlayer() != Player.NONE)\n return getGridElement(0, column).getPlayer();\n\n //checks diagonals\n if (getGridElement(0, 0).getPlayer() == getGridElement(1, 1).getPlayer() &&\n getGridElement(1, 1).getPlayer() == getGridElement(2, 2).getPlayer() &&\n getGridElement(0, 0).getPlayer() != Player.NONE)\n return getGridElement(0, 0).getPlayer();\n if (getGridElement(2, 0).getPlayer() == getGridElement(1, 1).getPlayer() &&\n getGridElement(1, 1).getPlayer() == getGridElement(0, 2).getPlayer() &&\n getGridElement(0, 0).getPlayer() != Player.NONE)\n return getGridElement(2, 0).getPlayer();\n\n return Player.NONE;\n }", "public void winnerFound() {\r\n\t\tfor (int n = 0; n < 6; n++) {\r\n\t\t\tfor (int m = 0; m < 7; m++) {\r\n\t\t\t\tsquares[n][m].setEnabled(false);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 7; a++) {\r\n\t\t\tbuttons[a].setEnabled(false);\r\n\t\t}\r\n\t\tif (winnerChip != 67) {\r\n\t\t\tint result = JOptionPane.showConfirmDialog(null,\r\n\t\t\t\t\t\" Player \" + (winnerChip - 48) + \" won! Do you want to start a new game?\", null,\r\n\t\t\t\t\tJOptionPane.YES_NO_OPTION);\r\n\r\n\t\t\tif (result == JOptionPane.YES_OPTION) {\r\n\t\t\t\tgameReset();\r\n\t\t\t} else if (result == JOptionPane.NO_OPTION) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Click Ok to return to Main Menu\");\r\n\r\n\t\t\t\tJFrame backToMenu = new JFrame(\"Main Menu\");\r\n\r\n\t\t\t\tbackToMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\t\tbackToMenu.getContentPane().add(new MainMenu());\r\n\t\t\t\tbackToMenu.pack();\r\n\t\t\t\tbackToMenu.setSize(750, 650);\r\n\t\t\t\tbackToMenu.setVisible(true);\r\n\t\t\t}\r\n\t\t}if (winnerChip == 67) {\r\n\t\t\tint result = JOptionPane.showConfirmDialog(null, \" You lost! Do you want to start a new game?\", null, JOptionPane.YES_NO_OPTION);\r\n\t\t\tif (result == JOptionPane.YES_OPTION) {\r\n\t\t\t\tgameReset();\r\n\t\t\t} else if (result == JOptionPane.NO_OPTION) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Click Ok to return to Main Menu\");\r\n\r\n\t\t\t\tJFrame backToMenu = new JFrame(\"Main Menu\");\r\n\r\n\t\t\t\tbackToMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\t\tbackToMenu.getContentPane().add(new MainMenu());\r\n\t\t\t\tbackToMenu.pack();\r\n\t\t\t\tbackToMenu.setSize(750, 650);\r\n\t\t\t\tbackToMenu.setVisible(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean pickedup(Player player) {\n\t\treturn false;\n\t}", "public static void decidedWinner(){\n if(playerOneWon == true ){\n//\n// win.Fill(\"Player One Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else if (playerTwoWon == true){\n// win.Fill(\"Player Two Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else\n {\n// win.Fill(\"Match Has been Tied !\");\n// new WinnerWindow().setVisible(true);\n }\n }", "@Override\r\n public boolean interactFirst(EntityPlayer player)\r\n {\r\n ItemStack item = player.getHeldItem();\r\n if (player.isSneaking() && item != null && item.getItem() instanceof ItemLinker\r\n && ((owner != null && player.getUniqueID().equals(owner)) || player.capabilities.isCreativeMode))\r\n {\r\n if (item.getTagCompound() == null)\r\n {\r\n item.setTagCompound(new NBTTagCompound());\r\n }\r\n item.getTagCompound().setString(\"lift\", id.toString());\r\n\r\n String message = StatCollector.translateToLocalFormatted(\"msg.liftSet.name\");\r\n\r\n if (worldObj.isRemote) player.addChatMessage(new ChatComponentText(message));\r\n return true;\r\n }\r\n else if (item != null && item.getItem() instanceof ItemLinker\r\n && ((owner != null && player.getUniqueID().equals(owner)) || player.capabilities.isCreativeMode))\r\n {\r\n if (!worldObj.isRemote && owner != null)\r\n {\r\n Entity ownerentity = worldObj.getPlayerEntityByUUID(owner);\r\n String message = StatCollector.translateToLocalFormatted(\"msg.lift.owner\", ownerentity.getName());\r\n\r\n player.addChatMessage(new ChatComponentText(message));\r\n }\r\n }\r\n if ((player.isSneaking() && item != null\r\n && (player.getHeldItem().getItem().getUnlocalizedName().toLowerCase().contains(\"wrench\")\r\n || player.getHeldItem().getItem().getUnlocalizedName().toLowerCase().contains(\"screwdriver\")\r\n || player.getHeldItem().getItem().getUnlocalizedName()\r\n .equals(Items.stick.getUnlocalizedName())))\r\n && ((owner != null && player.getUniqueID().equals(owner)) || player.capabilities.isCreativeMode))\r\n {\r\n if (!worldObj.isRemote)\r\n {\r\n String message = StatCollector.translateToLocalFormatted(\"msg.lift.killed\");\r\n player.addChatMessage(new ChatComponentText(message));\r\n setDead();\r\n }\r\n return true;\r\n }\r\n else if (player.isSneaking() && item != null && Block.getBlockFromItem(item.getItem()) != null\r\n && (owner == null || owner.equals(player.getUniqueID())))\r\n {\r\n Block block = Block.getBlockFromItem(item.getItem());\r\n if (block.isNormalCube())\r\n {\r\n ItemStack item2 = item.splitStack(1);\r\n if (this.getHeldItem() != null && !worldObj.isRemote)\r\n {\r\n this.entityDropItem(getHeldItem(), 1);\r\n }\r\n this.setCurrentItemOrArmor(0, item2);\r\n }\r\n }\r\n else if (player.isSneaking() && item == null && (owner == null || owner.equals(player.getUniqueID())))\r\n {\r\n if (this.getHeldItem() != null && !worldObj.isRemote)\r\n {\r\n this.entityDropItem(getHeldItem(), 1);\r\n }\r\n this.setCurrentItemOrArmor(0, null);\r\n }\r\n return false;\r\n }", "public void showDuplicatePlayerNameMessage() {\n Optional<SelectGameScreen> maybeSelectGameScreen = getSelectGameScreenIfActive();\n if (maybeSelectGameScreen.isPresent()) {\n maybeSelectGameScreen.get().showDuplicatePlayerNameMessage();\n } else {\n showError(\"Player name already exists.\");\n }\n }", "@Override\n public Object getClientGuiElement(int id, EntityPlayer player, World world,\n int x, int y, int z) {\n TileEntity tileEntity = world.getBlockTileEntity(x, y, z);\n if(tileEntity instanceof TileEntityCobbleGen){\n return new GuiCobbleGen(player.inventory, (TileEntityCobbleGen) tileEntity);\n }\n return null;\n }", "@SuppressWarnings(\"deprecation\")\n private void update(Player player) {\n Team team = teams.getTeam(player);\n\n if (team == null) {\n for (Player online : game.getPlayers()) {\n player.showPlayer(online);\n online.showPlayer(player);\n }\n return;\n }\n\n for (Player online : game.getPlayers()) {\n if (team.hasPlayer(online)) {\n player.hidePlayer(online);\n online.hidePlayer(player);\n } else {\n player.showPlayer(online);\n online.showPlayer(player);\n }\n }\n }", "Player currentPlayer();", "public abstract void isUsedBy(Player player);", "@Override\n public Object getServerGuiElement(int id, EntityPlayer player, World world,\n int x, int y, int z) {\n TileEntity tileEntity = world.getBlockTileEntity(x, y, z);\n if(tileEntity instanceof TileEntityCobbleGen){\n return new ContainerCobbleGen(player.inventory, (TileEntityCobbleGen) tileEntity);\n }\n return null;\n }", "public void displayWin()\n {\n if(player1 instanceof GameController){\n player1.gameOver(1);\n } else {\n player2.gameOver(1);\n }\n }", "private static void findWindow() {\n\t\tCoInitialize();\n\t\t\n\t\thandle = user32.FindWindowA(\"WMPlayerApp\", \"Windows Media Player\");\n\t}", "@Override\n public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {\n return null;\n }", "public void enterPlayerView(){\n\t\tplayerSeen=true;\r\n\t\tplayerMapped=true;\r\n\t}", "private void win() {\r\n Player winner = board.win();\r\n if (winner == null)\r\n return;\r\n\r\n int winner_number;\r\n Label winner_info;\r\n Label loser_info;\r\n if (winner.getId() == 'U') {\r\n winner_info = player1info;\r\n loser_info = player2info;\r\n winner_number = 1;\r\n }\r\n else {\r\n winner_info = player2info;\r\n loser_info = player1info;\r\n winner_number = 2;\r\n }\r\n\r\n winner_info.setFont(new Font(\"Segoe UI Semibold\", 20));\r\n winner_info.setText(\"You Won!!\");\r\n loser_info.setFont(new Font(\"Segoe UI Semibold\", 20));\r\n loser_info.setText(\"You Lost :)\");\r\n\r\n for (int i = 0; i < 17; ++i)\r\n for (int j = 0; j < 17; j++) {\r\n String id = \"#cell\" + ((i < 10) ? \"0\" + i : i) + ((j < 10) ? \"0\" + j : j);\r\n AnchorPane cell = (AnchorPane) (play.getScene().lookup(id));\r\n // remove functionality\r\n cell.setOnMouseClicked(null);\r\n cell.setOnMouseEntered(null);\r\n cell.setOnMouseExited(null);\r\n if (!cup_is_on) {\r\n if (i == 6) {\r\n if (j == 6) {\r\n cell.setStyle(\"-fx-background-color: mediumaquamarine\");\r\n Label label = new Label(\"try\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n else if (j == 8) {\r\n cell.setStyle(\"-fx-background-color: mediumaquamarine\");\r\n Label label = new Label(\"again?\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n }\r\n else if(i == 8) {\r\n if (j == 6) {\r\n cell.setStyle(\"-fx-background-color: limegreen\");\r\n Label label = new Label(\"YES\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n label.setOnMouseClicked(event -> {\r\n try {\r\n gotoNewGame(new Player(board.getPlayer1().getName(), 'U', 10),\r\n new Player(board.getPlayer2().getName(), 'D', 10));\r\n } catch (IOException ioException) { ioException.printStackTrace(); }\r\n });\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n else if (j == 8) {\r\n cell.setStyle(\"-fx-background-color: red\");\r\n Label label = new Label(\"NO\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n label.setOnMouseClicked(event -> {\r\n try { gotoGameModes(); } catch (IOException ioException) {\r\n ioException.printStackTrace();\r\n }\r\n });\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (cup_is_on)\r\n cupOptimizer(winner_number);\r\n }", "@Override\n\tpublic void onLookUp(PlatformPlayer player) {\n\t\t\n\t}", "private boolean isOver() {\r\n return players.size() == 1;\r\n }", "public Player getOtherPlayer() {\n if (getCurrentPlayer().getNumber() == 1) {\n return joueur2;\n } else {\n return joueur1;\n }\n }", "@Override\n\tpublic Integer getGui(World world, int x, int y, int z,\n\t\t\tEntityPlayer entityplayer) {\n\t\treturn null;\n\t}", "public boolean isWin_CommanderVimes(){\r\n // player got LordSelachii card\r\n Player playerHoldCard = null;\r\n for (Player player : discWorld.getPlayer_HASH().values()) {\r\n if (player.getPersonalityCardID() == 7) {\r\n playerHoldCard = player;\r\n break;\r\n }\r\n }\r\n \r\n if(playerHoldCard != null){\r\n if(discWorld.getShuffled_PlayerCard().size() == 0){\r\n return true;\r\n }\r\n } \r\n \r\n return false;\r\n }", "public boolean activeFor(String player);", "private void showMatch() {\n System.out.println(\"Player 1\");\n game.getOne().getField().showField();\n System.out.println(\"Player 2\");\n game.getTwo().getField().showField();\n }", "public void switchPlayer(){\n // Menukar giliran player dalam bermain\n Player temp = this.currentPlayer;\n this.currentPlayer = this.oppositePlayer;\n this.oppositePlayer = temp;\n }", "private Player aiRequestTarget(Player ai){\n // generates a random player index\n int index = (int) (Math.random() * GoFish.Players.length);\n\n // prevents the logic from outputting and index that is equal\n // to the player object\n while (GoFish.Players[index]==ai){\n index = (int) (Math.random() * GoFish.Players.length);\n }// end while\n\n return GoFish.Players[index];\n }", "public OverWorldPanel(String mn, String cn, MasterWindow frame){\r\n //super();\r\n eventCaller = frame;\r\n\r\n random = new Random();\r\n moveAnimator = new Timer(100, this);\r\n moveAnimator.setRepeats(true);\r\n moving = false;\r\n\r\n direction = 'n';\r\n prevDirection = 'n';\r\n mapName = mn;\r\n currentMap = new ImageIcon(mapName);\r\n characterName = cn;\r\n playerName = characterName + direction + \".png\";\r\n currentCharacter = new ImageIcon(playerName);\r\n\r\n this.setFocusable(true);\r\n requestFocusInWindow();\r\n addKeyListener(new AL());\r\n//sets up the map in the panel using the map loader methods. come back later to make the\r\n//start based on the panel size for a resizable screen\r\n mapX = invisMap.getMapStartX(mapName);\r\n mapY = invisMap.getMapStartY(mapName);\r\n protagonistX = -mapX + 250;\r\n protagonistY = -mapY + 250;\r\n System.out.println(\"protagonist x and y\" + protagonistX + \" \" + protagonistY);\r\n this.setFocusable(true);\r\n requestFocusInWindow();\r\n //System.out.println(KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner());\r\n // not sure what to do for this yet protagonist = new Player(panelWidth/2, panelHeight/2);\r\n }", "@Override\n\tpublic Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {\n\t\t\n\t TileEntity tileEntity = world.getTileEntity(new BlockPos(x, y, z));\n\t BlockPos blockPos = new BlockPos(x,y,z);\n\t\t\n\t\tif (ID == TINKERTABLE_GUI) {\n\t\t\t\n\t\t\tSystem.out.println(\"Inside GuiHandler:GetServerGuiElement, TINKERTABLE case\");\n\t\t\treturn new TinkerTableContainer(player, world, blockPos);\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"ERROR: bad Gui ID sent to GuiHandler:getServerGuiElement: \" + ID);\n\t\t\n\t\treturn null;\n\t}", "private void startMatch() {\n game = new Match(players.get(0), players.get(1), \"Nueva Partida\");\n showMatch();\n state = 1;\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 }", "public Player getTeamMate(){\n\t\tif(team == null) return null;\n\t\tCollection<Player> players = team.getPlayers();\n\t\tfor(Player p : players){\n\t\t\tif(!p.equals(this))return p; \n\t\t}\n\t\treturn null;\n\t}", "public void startYouWon(){\r\n\t\tpanel[CurrentPanel].stop();\r\n\t\t\r\n\t\tDriver.panel[CurrentPanel].setVisible(false);\r\n\t\tgame.remove(panel[CurrentPanel] );\r\n\t\t\r\n\t\tCurrentPanel = 0;\r\n\t\t\r\n\t\t\r\n\t\tpanel[CurrentPanel] = new YouWon(this);\r\n\t\t\r\n\t\tadd( panel[CurrentPanel] );\r\n\t\tpanel[CurrentPanel].setVisible(true);\r\n\t\tgame.setVisible(true);\r\n\t\t\r\n\t\tpanel[CurrentPanel].start();\r\n\t}", "void gui(){\n _hasGUI = true;\n }", "@Override\n\tpublic Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {\n\t\treturn null;\n\t}", "void showPlaceholderGui() {\n this.game.a(new da());\n }", "public void openGUISounds(Player p){\n //gui.setItem(0, new ItemStack(Material.GRASS));\n //ItemStack grass = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);\n //SkullMeta skullMeta = (SkullMeta) grass.getItemMeta();\n //skullMeta.setDisplayName(ChatColor.GRAY + \"Player: \" + ChatColor.YELLOW + p.getName());\n //skullMeta.setOwner(p.getName());\n //grass.setItemMeta(skullMeta);\n //gui.setItem(1, grass);\n //p.openInventory(gui);\n }", "private void checkIfAnotherPlayerLiesThere(int player, int place) {\n //get our board position\n int playerPos = userGridToLudoBoardGrid(player, place);\n\n //iterate all players\n for (int i = 0; i < nrOfPlayers(); i++) {\n //not our player\n if (players.get(i).getName() != players.get(player).getName()) {\n int counter = 0;\n //go through all pieces\n for (Piece piece : players.get(i).getPieces()) {\n //check if board position is the same\n if (userGridToLudoBoardGrid(i, piece.getPosition()) == playerPos) {\n counter++;\n }\n }\n //if there is only 1 piece there, reset it\n if (counter == 1) {\n int pieceIndex = 0;\n for (Piece piece : players.get(i).getPieces()) {\n if (userGridToLudoBoardGrid(i, piece.getPosition()) == playerPos) {\n\n // PIECELISTENER : Throw PieceEvent to PieceListeners\n for (PieceListener listener : pieceListeners) {\n PieceEvent pieceEvent = new PieceEvent(this, players.get(i).colour, pieceIndex++, piece.getPosition(), 0);\n listener.pieceMoved(pieceEvent);\n }\n\n // Reset piece\n piece.setPosition(0);\n }\n }\n }\n }\n }\n }", "private Player selectPlayer (int which) {\n System.out.println();\n int choice = readPlayerChoice(which);\n String name = readPlayerName();\n if (choice == TIMID)\n return new TimidPlayer(name);\n else if (choice == GREEDY)\n return new GreedyPlayer(name);\n else if (choice == CLEVER)\n return new CleverPlayer(name);\n else\n return new InteractivePlayer(name);\n }", "void onInsertHeldContainer(EntityPlayerMP player);", "private void setPlayer()\t{\n\t\tgrid.setGameObject(spy, Spy.INITIAL_X, Spy.INITIAL_Y);\n\t}", "private void checkGame() {\n if (game.checkWin()) {\n rollButton.setDisable(true);\n undoButton.setDisable(true);\n this.dialogFlag = true;\n if (game.isDraw()) {\n showDrawDialog();\n return;\n }\n if (game.getWinner().getName().equals(\"Computer\")) {\n showLoserDialog();\n return;\n }\n showWinnerDialog(player1);\n }\n }", "public Object getGuiObject();", "@Override\n\tpublic Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {\n\t\t\n\t TileEntity tileEntity = world.getTileEntity(new BlockPos(x, y, z));\n\n\t\tif (ID == CLASS_GUI) {\n\t\t\tSystem.out.println(\"Inside GuiHandler:GetClientGuiElement, CLASS case\");\n\t\t\t\n\t return new ClassGUI(player);\n\t\t}\n\t\t\n\t\t\n\t\t// Example of how you would do it if you were using a block with TileEntities:\n//\t\t if (tileEntity != null)\n//\t {\n//\t if (ID == BlockSmith.GUI_ENUM.GRINDER.ordinal())\n//\t {\n//\t return new GuiGrinder(player.inventory, (IInventory)tileEntity);\n//\t }\n//\t }\n\t\t\n\t\telse if (ID == TINKERTABLE_GUI) {\n\t\t\t\n\t\t\t//System.out.println(\"Inside GuiHandler:GetClientGuiElement, TINKERTABLE case\");\n\t\t\t//System.out.println(\"x:\" + x + \" y:\" + y + \"z:\" + z);\n\t \t\n\t\t\treturn new TinkerTableGui(player, world, \n\t I18n.format(\"tile.tinkertable.name\"), x, y, z);\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"ERROR: bad Gui ID sent to GuiHandler:getClientGuiElement: \" + ID);\n\t\t\n\t\treturn null;\n\t}", "protected abstract Player getModPlayer(String name);", "public Player getPlayer(String username) {\n for (Player p : players) {\n if (p.username.equals(username))\n return p;\n }\n return null;\n }", "public MainFrameMultiPlayer(Gui gui){\n super(gui);\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n initGameMode();\n preGameMode();\n }", "void gameWin(Player player);", "boolean hasTargetPlayerName();", "private RealPlayer findRegisteredMatch(String nickname) {\n\n for(RealPlayer realPlayer : gameManager.getLobbyManager().getRealPlayerList()) {\n if (realPlayer.getName().equals(nickname)) {\n return realPlayer;\n }\n }\n return null;\n }", "boolean hasTargetPlayerId();", "@Override\n public void startNewGame() {\n reset();\n winnerDialogShown_ = false;\n sendGameChangedEvent(null); // get the info panel to refresh with 1st players name\n Player firstPlayer = controller.getPlayers().getFirstPlayer();\n\n if (firstPlayer.isSurrogate()) {\n doSurrogateMove((SurrogateMultiPlayer) firstPlayer);\n }\n else if (!firstPlayer.isHuman()) {\n controller.computerMovesFirst();\n }\n }", "boolean hasPlayerBag();", "@Override\n\tpublic Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {\n\t\tif (ID != getGuiID()) {\n\t\t\tSystem.err.println(\"Invalid ID: expected \" + getGuiID() + \", received \" + ID);\n\t\t}\n\n\t\tBlockPos xyz = new BlockPos(x, y, z);\n\t\tTileEntity tileEntity = world.getTileEntity(xyz);\n\t\tif (tileEntity instanceof TileEntityPulverBlock) {\n\t\t\tTileEntityPulverBlock TileEntityPulverBlock = (TileEntityPulverBlock) tileEntity;\n\t\t\treturn new GuiInventoryPulver(player.inventory, TileEntityPulverBlock);\n\t\t}\n\t\treturn null;\n\t}", "public void checkWin() \n {\n if (lWin ==8)\n {\n Greenfoot.playSound(\"finalWin.wav\");\n setLocation(getWorld().getWidth() / 2, getWorld().getHeight() / 2);\n setImage(win);\n Greenfoot.stop();\n \n \n }\n \n if (rWin ==8)\n {\n \n \n Greenfoot.playSound(\"finalWin.wav\");\n setLocation(getWorld().getWidth() / 2, getWorld().getHeight() / 2);\n setImage(win);\n \n Greenfoot.stop();\n \n \n \n \n \n }\n \n }", "public void multiplayerSelected()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyDiscoveryState()\n clientController.searchForGames();\n\n //populate the GameSelectScreen's text box with the lobbies from the\n //state\n gameSelectScreen.clearGames();\n\n //set state to GAMESELECT\n state = CurrentWindow.GAMESELECT;\n\n //hide the intro screen and show the game select screen\n introScreen.setVisible(false);\n gameSelectScreen.setVisible(true);\n }", "public Player getPlayerFromList(String name){\n for (BrPlayer p : playerList){\n if (p.getBukkitPlayer().getDisplayName().equalsIgnoreCase(name)){\n return p.getBukkitPlayer();\n }\n }\n return null;\n }", "protected abstract boolean isPlayerActivatable(PlayerSimple player);", "public JLabel getPlayer2() {\n return player2;\n }", "Gui getGui();", "public synchronized Player getPlayerIfNotFull() {\n if (player1 == null) {\n player1 = new Player(order, 'X');\n order++;\n nrOfPlayers++;\n return player1;\n } else if (player2 == null) {\n player2 = new Player(order, 'O');\n order = 0;\n nrOfPlayers++;\n started = true;\n return player2;\n }\n return null;\n }", "@Override\n public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {\n if(ID == 0) {\n TileEntity tileEntity = world.getTileEntity(x, y, z);\n if (tileEntity != null) {\n if (tileEntity instanceof TileCoercionDeriver) {\n return new CoercionDeriverContainer(player, (TileCoercionDeriver) tileEntity);\n } else if (tileEntity instanceof TileForceFieldProjector) {\n return new ForceFieldProjectorContainer(player, (TileForceFieldProjector) tileEntity);\n } else if (tileEntity instanceof TileFortronCapacitor) {\n return new FortronCapacitorContainer(player, (TileFortronCapacitor) tileEntity);\n } else if (tileEntity instanceof TileBiometricIdentifier) {\n return new BiometricContainer(player, (TileBiometricIdentifier) tileEntity);\n }\n }\n } else if(ID == 1) {\n return new HotBarContainer(player);\n }\n return null;\n }", "public boolean isOwner(EntityPlayer player) {\n\t\treturn player.getDisplayName().equals(owner) /*|| Platform.worldType() != Platform.WorldMode.MP*/;\r\n\t}", "protected void syncNewContainer(EntityPlayerMP player) {\n\t}", "public Dialog getActiveDialog(Player player) {\n\t\tRandom rand = new Random();\n\t\tDialog dialog = null;\n\t\t// Run the methods in this exact order Q_Q or else dialog softlocking will happen\n\t\t\n\t\t// Checks to give the player the default NPC dialog\n\t\tif (!DialogueSystem.hasDialog(player) && this.allLines.size() > 0)\n\t\t\tdialog = this.defaultDialog;\n\t\t\n\t\t// Checks to give the player a random generic dialog line\n\t\tif(!DialogueSystem.hasDialog(player) && this.genericDialog.size() > 0) {\n\t\t\tArrayList<Dialog> temp = new ArrayList<Dialog>();\n\t\t\n\t\t\t// Checks all generic dialog\n\t\t\tfor(Dialog d : this.genericDialog) {\n\t\t\t\tif(d.getReq() != null && d.getReq().checkRequirement(NFPlayer.getPlayer(player.getUniqueId()))) {\n\t\t\t\t\ttemp.add(d);\n\t\t\t\t} else if(d.getReq() == null) {\n\t\t\t\t\ttemp.add(d);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdialog = temp.get(rand.nextInt(temp.size()));\n\t\t}\n\t\t\n\t\t// Checks to give the player the required NPC dialog\n\t\tif (!DialogueSystem.hasDialog(player) && this.requiredDialog.containsKey(player.getUniqueId()))\n\t\t\tdialog = this.requiredDialog.get(player.getUniqueId())[0];\n\t\t\n\t\t// Applies the current prioritized dialog\n\t\tif(dialog != null) \n\t\t\tsetActiveDialog(player, dialog);\n\t\t \n\t\t\n\t\treturn this.activeDialog.get(player.getUniqueId());\n\t}", "public boolean whoIsHere(){\r\n\t\treturn otherPlayer;\r\n\t}", "public void checkWin(){\n boolean result = false;\n if(game.getTurn() > 3){\n Player currentPlayer = game.getPlayerTurn();\n int playernumber = currentPlayer.getPlayericon();\n result = game.winChecker(game.getBored(),playernumber);\n if(result == true) {\n setWinMsgBox(currentPlayer.getPlayerName() + \" Is victorious :)\",\"WIN\");\n }else if(game.getTurn() == 8 && result == false){\n setWinMsgBox(\"Too bad it is a draw, No one out smarted the other -_-\",\"DRAW\");\n }else{}\n }else{\n result = false;\n }\n }", "public Player<T> findWinner(){\n\tPlayer<T> highPlayer = this.currentPlayer;\n\tPlayer<T> tempPlayer = this.currentPlayer;\n\tfor (int i = 0; i < getNumPlayers(); i++) {\n\t\tif (tempPlayer.getPoints() > highPlayer.getPoints()) {\n\t\t\thighPlayer = getCurrentPlayer();\n\t\t}\n\t\ttempPlayer = tempPlayer.getNext();\n\t}\n\treturn tempPlayer;\n}", "boolean playerExists() {\n return this.game.h != null;\n }", "public JPanel setUpOtherPlayerAssets(Player player) {\n playerToOfferTo = player;\n return setUpDealMakerPanel(player);\n }", "void win(Player player);", "public void updatePlayerPanel()\n {\n playerInfoPanel.updateLabel();\n }", "public boolean hasGui() {\n return hasGui;\n }" ]
[ "0.62450886", "0.5754316", "0.573149", "0.57149357", "0.5702279", "0.5677285", "0.5677285", "0.56578946", "0.5654721", "0.5627808", "0.5616292", "0.5590811", "0.55639184", "0.55539274", "0.55410165", "0.55207384", "0.5484313", "0.5474415", "0.5468524", "0.5461445", "0.5461111", "0.54523134", "0.54475105", "0.5447262", "0.5445759", "0.54419523", "0.54392576", "0.5435604", "0.5433357", "0.54255545", "0.5413368", "0.5406387", "0.5401933", "0.5386674", "0.5381975", "0.5376353", "0.5375099", "0.5364412", "0.5361037", "0.5352311", "0.5345953", "0.53452533", "0.53450334", "0.53352875", "0.53278196", "0.53189564", "0.5315866", "0.5313367", "0.53125465", "0.53037375", "0.5303323", "0.5291463", "0.5286301", "0.52808356", "0.5279022", "0.52781785", "0.52711904", "0.5269289", "0.52692324", "0.52616566", "0.5244076", "0.52371025", "0.52368987", "0.5229897", "0.522789", "0.5227135", "0.52267087", "0.522532", "0.5220517", "0.5217814", "0.5215178", "0.52118486", "0.5210935", "0.52095926", "0.5205974", "0.5203838", "0.52004915", "0.5199322", "0.51986796", "0.5197714", "0.5193975", "0.51939183", "0.5185237", "0.5180783", "0.5179022", "0.51765734", "0.5175337", "0.51626843", "0.5161377", "0.51590747", "0.51589227", "0.51559407", "0.5155668", "0.51553637", "0.51544726", "0.5151691", "0.5146042", "0.5142843", "0.5141741", "0.51401377" ]
0.52471
60
Called when the container is opened and no other player has it open. Set the default state here.
protected void syncNewContainer(EntityPlayerMP player) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onOpened() {\n\r\n\t}", "@Override\n public void onOpened(AdColonyInterstitial ad) {\n notifyShown();\n notifyStarted();\n }", "public void onStart() {\r\n\t\tthis.setVisible(true);\r\n\t}", "@Override\r\n\tpublic void onContainerClosed(EntityPlayer playerIn)\r\n {\r\n super.onContainerClosed(playerIn);\r\n }", "public void setMainPlayerOpening(final boolean status) {\n this.mainPlayer = status;\n }", "public void initPlayerStateUI() {\n if (!playableMediaItem.getBitrate().isEmpty()) {\n tvTrackInfo.setText(playableMediaItem.getBitrate() + getString(R.string.kbps));\n } else {\n tvTrackInfo.setText(\"\");\n }\n\n if (universalPlayer.isPrepaired) {\n ((IToolbarHolder) getActivity()).getToolbar().setTitle(R.string.now_paying);\n if (btnPlay.isPlay() && universalPlayer.isPlaying()) {\n btnPlay.toggle();\n } else if (!btnPlay.isPlay() && !universalPlayer.isPlaying()) {\n btnPlay.toggle();\n }\n\n } else {\n ((IToolbarHolder) getActivity()).getToolbar().setTitle(R.string.buffering);\n if (!btnPlay.isPlay()) {\n btnPlay.toggle();\n }\n }\n }", "public void open() {\n isOpen = true;\n }", "@Override\n public boolean isOpen() {\n return true;\n }", "@Override\n\t\t\tpublic void open() {\n\t\t\t\tisAutoPlay = true;\n\t\t\t\tCustomApplication.app.preferencesUtil.setBooleanValue(\n\t\t\t\t\t\t\"isAutoPlay\", isAutoPlay);\n\t\t\t}", "@Override\n public void onOpened() {\n menu.callOnResumeForUpdate();\n menu.showData();\n isMenuShowing = true;\n }", "public abstract void onOpen();", "@Override\n\tpublic boolean isOpen() { return false; }", "@Override\r\n\tpublic void opening(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "abstract void onOpen();", "@Override\n\tpublic boolean isOpen() {\n\t\treturn true;\n\t}", "public void open() {\n this.isClosed = false;\n }", "public void setPlaying() {\n\t\tstate = State.INGAME;\n\t}", "@Override\n public void componentOpened() {\n // TODO add custom code on component opening\n }", "@Override\n public void componentOpened() {\n // TODO add custom code on component opening\n }", "@Override\n public void componentOpened() {\n // TODO add custom code on component opening\n }", "@Override\n public void componentOpened() {\n // TODO add custom code on component opening\n }", "public void setSinglePlayer(){\n isSinglePlayer = true;\n }", "@Override\n\tpublic boolean isOpen() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isOpen() {\n\t\treturn false;\n\t}", "public boolean isOpened() {\n return false;\n }", "private void initBeginOfTurn()\n\t{\n\t\tfor(Action action : this.getCurrentPlayer().getPersonalityCard().getActions())\n\t\t{\n\t\t\taction.execute(this);\n\t\t}\n\t\t\n\t\tcanPlayPlayerCard = true;\n\t\tthis.getCurrentPlayer().getDataInput().printMessage(this.getEntireGameStatus());\n\t\tthis.getCurrentPlayer().getDataInput().printMessage(this.getCurrentPlayerGameStatus());\n\t\tthis.showSaveGame = true;\n\t\t\n\t\tfor(Card card : this.getCurrentPlayer().getCityAreaCardDeck())\n\t\t{\n\t\t\tcard.setActiveState(true);\n\t\t}\n\t}", "public void setOpened(boolean opened) {\r\n\t\tthis.opened = opened;\r\n\t}", "private void start() {\n GameStateManager gameStateManager = new GameStateManager();\n JPanel jPanel = gameStateManager.getGameState().getJPanel();\n jPanel.setVisible(true);\n GUI gui = GUI.getInstance();\n gui.setjPanel(jPanel);\n gui.addKeyListener(gameStateManager);\n GameStateObserver gameStateObserver = new GameStateObserver(gameStateManager,gui);\n gameStateManager.addObserver(gameStateObserver);\n }", "@Override\n public void onViewStateRestored(@Nullable Bundle savedInstanceState) {\n super.onViewStateRestored(savedInstanceState);\n position = savedInstanceState != null ? savedInstanceState.getInt(\"Position\") : 0;\n mediaPlayer.seekTo(position);\n mediaPlayer.start();\n }", "public boolean isMainPlayerOpen() {\n return this.mainPlayer;\n }", "@Override\r\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void playerStarted() {\n mPlaying = true;\n\t\tmStateManager.setState(PlayerState.PLAYING);\n\t}", "public void onStart(Closeable closeable) {\n\t}", "void onOpen();", "public void onPlayerLoggedIn() {\n\t\tshowPlayerButtons();\n\t}", "@Override\n public void openInventory() {\n PacketPlayOutOpenWindow packetPlayOutOpenWindow = new PacketPlayOutOpenWindow(this.fakeAnvil.getContainerId(), Containers.ANVIL, new ChatMessage(this.title));\n ((CraftPlayer) player).getHandle().playerConnection.sendPacket(packetPlayOutOpenWindow);\n ((CraftPlayer) player).getHandle().activeContainer = this.fakeAnvil;\n this.fakeAnvil.addSlotListener(((CraftPlayer) player).getHandle());\n }", "private void setVisualState() {\n\n // STATE: station loading\n if (isAdded() && mThisStation != null && mPlaybackState == PLAYBACK_STATE_LOADING_STATION) {\n // change playback button image to stop\n mPlaybackButton.setImageResource(R.drawable.smbl_stop);\n // change playback indicator and metadata views\n mPlaybackIndicator.setBackgroundResource(R.drawable.ic_playback_indicator_loading_24dp);\n mStationMetadataView.setText(R.string.descr_station_stream_loading);\n mStationDataSheetMetadata.setText(R.string.descr_station_stream_loading);\n // show metadata views\n mStationMetadataView.setVisibility(View.VISIBLE);\n mStationMetadataView.setSelected(true);\n mStationDataSheetMetadataLayout.setVisibility(View.VISIBLE);\n displayExtendedMetaData(mThisStation);\n }\n // STATE: playback started\n else if (isAdded() && mThisStation != null && mPlaybackState == PLAYBACK_STATE_STARTED) {\n // change playback button image to stop\n mPlaybackButton.setImageResource(R.drawable.smbl_stop);\n // change playback indicator and metadata views\n mPlaybackIndicator.setBackgroundResource(R.drawable.ic_playback_indicator_started_24dp);\n mStationMetadataView.setText(mThisStation.getMetadata());\n mStationDataSheetMetadata.setText(mThisStation.getMetadata());\n // show metadata views\n mStationMetadataView.setVisibility(View.VISIBLE);\n mStationMetadataView.setSelected(true);\n mStationDataSheetMetadataLayout.setVisibility(View.VISIBLE);\n displayExtendedMetaData(mThisStation);\n }\n // STATE: playback stopped\n else if (isAdded()) {\n // change playback button image to play\n mPlaybackButton.setImageResource(R.drawable.smbl_play);\n // change playback indicator\n mPlaybackIndicator.setBackgroundResource(R.drawable.ic_playback_indicator_stopped_24dp);\n // hide metadata views\n mStationMetadataView.setVisibility(View.GONE);\n mStationDataSheetMetadataLayout.setVisibility(View.GONE);\n mStationDataSheetMimeTypeLayout.setVisibility(View.GONE);\n mStationDataSheetChannelCountLayout.setVisibility(View.GONE);\n mStationDataSheetSampleRateLayout.setVisibility(View.GONE);\n mStationDataSheetBitRateLayout.setVisibility(View.GONE);\n }\n }", "@Override\n public void componentOpened() {\n super.componentOpened();\n\n }", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}", "public void syncOnOpen(EntityPlayerMP playerOpened) {\n\t\tWorldServer server = playerOpened.getServerWorld();\n\t\tfor (EntityPlayer player : server.playerEntities) {\n\t\t\tif (player == playerOpened) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (player.openContainer instanceof BaseContainer) {\n\t\t\t\tif (this.sameGui((BaseContainer<H>) player.openContainer)) {\n\t\t\t\t\tsyncWithOtherContainer((BaseContainer<H>) player.openContainer, playerOpened);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// no player has a container open for the tile\n\t\tsyncNewContainer(playerOpened);\n\t}", "protected void setInitialState() {\n btnPause.setEnabled(true);\n btnResume.setEnabled(false);\n btnStop.setEnabled(true); \n }", "@Override\r\n public void onGameStart(){\r\n this.setVisible(false);\r\n }", "public abstract void RunOnGameOpen();", "public void setSidePlayerOpening(final boolean status) {\n this.sidePlayer = status;\n }", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tsuper.windowOpened(e);\n\t\t\t}", "public void playerStarted () {\n this.setState(STATE.MEDIA_RUNNING);\n\n // Send status notification to JavaScript\n sendStatusChange(MEDIA_DURATION, null, null);\n }", "@Override\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}", "protected abstract void postOpen();", "@Override\r\n\tpublic void onOpen() {\n\r\n\t}", "private void setPlayerCallbacks() {\n universalPlayer.setPlayerStateListener(this);\n universalPlayer.setOnAutonomicTrackChangeCallback(new IOperationFinishCallback() {\n @Override\n public void operationFinished() {\n if (isAdded()) {\n playableMediaItem = UniversalPlayer.getInstance().getPlayingMediaItem();\n initPlayerUI();\n configurePlayer();\n initTrackNumbersSection();\n }\n }\n });\n\n IOperationFinishCallback playerFailedCallback = MediaUtils.getPlayerFailCallback(getActivity(), playableMediaItem);\n\n if (universalPlayer.isInErrorState) {\n playerFailedCallback.operationFinished();\n } else {\n universalPlayer.setOnPlayingFailedCallback(playerFailedCallback);\n }\n }", "@Override\n public void setInitializePawn() {\n //overlayedStage.close();\n System.out.println(\"-Welcome-\");\n lightMove();\n startTable(this.getTable(), bt);\n }", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\n\t}", "@Override\n public void windowOpened(WindowEvent arg0) {\n\n }", "@Override\n\tpublic void windowOpened(WindowEvent arg0) {\n\n\t}", "@Override\n\tpublic void init(GameContainer gc) throws SlickException {\n\t\tGameMaster.setHeight(gc.getHeight());\n\t\tGameMaster.setWidth(gc.getWidth());\n\t\tGameMaster.setLife(3);\n\t\tgui = new GUI();\n\t\tinputListener = new InputListener();\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent arg0)\n\t{\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public void open(){\n \ttriggerTimer.reset();\n \tisClosed = false;\n \tClawAct.set(false);\n\t\tRobot.oi.armRumble(RUMBLE_DURATION);\n }", "@Override\n public void componentOpened() {\n }", "@Override\n public void componentOpened() {\n }", "@Override\n public void componentOpened() {\n }", "@Override\n public void componentOpened() {\n }", "protected void initialize() {\n setSize(600, 420);\n setContentPane(getJContentPane());\n setTitle(\"Edit Play List\");\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setName(\"framePlayList\");\n\t\tsetModal(false);\n\t\t//this.setResizable(false);\n\t\tsetComponentOrientation(java.awt.ComponentOrientation.LEFT_TO_RIGHT);\n\t\t\n\t\t//fire this off once this dialog is displaying\n\t\taddWindowListener( new WindowAdapter() {\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tgetJButtonCancel().requestFocusInWindow();\n\t\t\t}\n\t\t});\n\n }", "public void singlePlayerSelected()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyState()\n clientController.startSinglePlayerGame();\n }", "@Override\n public void componentOpened() {\n }", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}", "public void start(){\n\t\tif (host.getGameSettings().isMusicOn()) {\r\n\t\t\tspr_btnMute.setFrame(0);\r\n\t\t}else{\r\n\t\t\tspr_btnMute.setFrame(1);\r\n\t\t}\r\n\t}", "public boolean isOpen() { return this.isOpen; }", "@Override\n\t\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\t\n\t\t}", "public void setActivePlayer()\n {\n activePlayer = !activePlayer;\n }", "private void setPlayer() {\n player = Player.getInstance();\n }", "public void onOpenStorageDialog() {\n if (this.mCurrentDisplayingUiComponent == null) {\n return;\n }\n this.closeSettingDialog();\n this.closeCapturingModeSelector();\n if (!this.getActivity().getStorageManager().isReady()) return;\n StateMachine stateMachine = this.mStateMachine;\n StateMachine.TransitterEvent transitterEvent = StateMachine.TransitterEvent.EVENT_DIALOG_OPENED;\n Object[] arrobject = new Object[]{BaseFastViewFinder.UiComponentKind.SETTING_DIALOG};\n stateMachine.sendEvent(transitterEvent, arrobject);\n }", "@Override\r\n\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void init(GameContainer c, RunState s) {\n\t\t\r\n\t}", "public boolean isOpen() {\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void init(GameContainer container, StateBasedGame game)\n\t\t\tthrows SlickException {\n\t\tthis.in = container.getInput();\n\t\tthis.bkg = ResourceLoader.getImage(\"settingsbackground\");\n\t\t\n\t\tthis.upButton = new MenuButton(ResourceLoader.getAnimation(\"upbutton\"), in);\n\t\tthis.downButton = new MenuButton(ResourceLoader.getAnimation(\"downbutton\"), in);\n\t\tthis.applyButton = new MenuButton(ResourceLoader.getAnimation(\"applyButton\"), in);\n\t\tthis.goBackButton = new MenuButton(ResourceLoader.getAnimation(\"backbutton\"), in);\n\t\t\n\t\tthis.upButton.setPosition(300, 150);\n\t\tthis.downButton.setPosition(300, 250);\n\t\tthis.applyButton.setPosition(300, 350);\n\t\tthis.goBackButton.setPosition(300, 450);\n\t\t\n\t\ttestVariable = 0;\n\t\ttempTestVariable = 0;\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t}", "public void initialise() {\r\n this.lockGui.setDisplay(\"Open\");\r\n this.isLocked = false;\r\n this.lockGui.setLocked(isLocked);\r\n this.code = \"\";\r\n this.entered = \"\";\r\n //Ticking lets the timer know if it should be counting ticks.\r\n //Used when entering a code to lock/unlock.\r\n this.ticking = false;\r\n this.ticks = 0;\r\n }", "@Override\n\tpublic void init(GameContainer gc, StateBasedGame sb) throws SlickException {\n\t\t// background\n\t\t// creating background-entity\n\t\tEntity background = new Entity(Constants.MENU_ID);\n\t\tbackground.setPosition(new Vector2f((OptionsHandler.getWindow_x() / 2), (OptionsHandler.getWindow_y() / 2)));\n\t\tif (!Breakout.getDebug()) {\n\t\t\t// only if not in debug-mode\n\t\t\tbackground.addComponent(new ImageRenderComponent(new Image(ThemeHandler.MENU_BACKGROUND)));\n\t\t}\n\t\tbackground.setScale(Variables.BACKGROUND_SCALE); // scaling\n\t\t// giving StateBasedEntityManager the background-entity\n\t\tentityManager.addEntity(stateID, background);\n\n\t\t// listener entity\n\t\tEntity listener = new Entity(\"listener\");\n\t\tentityManager.addEntity(stateID, listener);\n\t\t// Loop event for various uses (controller input)\n\t\tLoopEvent listenerLoop = new LoopEvent();\n\t\tlistener.addComponent(listenerLoop);\n\n\t\t// new_Game-entity\n\n\t\tButtonEntity newGame = new ButtonEntity(\"newGame\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_1_X, Variables.MAIN_MENU_BUTTON_1_Y);\n\t\tnewGame.addAction((gc1, sb1, delta, event) -> {\n\t\t\tSoundHandler.playButtonPress();\n\t\t\tPlayerHandler.reset();\n\t\t\t// grab the mouse\n\t\t\tgc1.setMouseGrabbed(true);\n\t\t});\n\t\tnewGame.addAction(new ChangeStateInitAction(Breakout.GAMEPLAY_STATE));\n\n\t\t// controller \"listener\" (Button 4)\n\t\tlistenerLoop.addAction((gc1, sb1, delta, event) -> {\n\t\t\tif (ControllerHandler.isButtonPressed(3)) {\n\t\t\t\t// if the button 3 was not pressed before but is pressed now\n\n\t\t\t\t// resetting the players progress / stats\n\t\t\t\tPlayerHandler.reset();\n\n\t\t\t\t// grab the mouse\n\t\t\t\tgc1.setMouseGrabbed(true);\n\n\t\t\t\t// going into GameplayState (like changeStateInitAction)\n\t\t\t\tsb1.enterState(Constants.GAMEPLAY_STATE);\n\n\t\t\t\t// forcing init for all states\n\t\t\t\tBreakout.reinitStates(gc1, sb1, Constants.GAMEPLAY_STATE);\n\t\t\t}\n\t\t});\n\n\t\t// resume_Game-entity\n\t\tButtonEntity resumeGame = new ButtonEntity(\"resumeGame\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_2_X, Variables.MAIN_MENU_BUTTON_1_Y);\n\t\tresumeGame.addAction((gc1, sb1, delta, event) -> {\n\t\t\tif (GameplayState.currentlyRunning) {\n\t\t\t\t// play sound for acceptable button press\n\t\t\t\tSoundHandler.playButtonPress();\n\t\t\t\t// grab the mouse\n\t\t\t\tgc1.setMouseGrabbed(true);\n\t\t\t\t// keep track of the time (pause time ended now)\n\t\t\t\tGameplayState.pauseTime += gc1.getTime() - GameplayState.startPauseTime;\n\t\t\t\tsb1.enterState(Breakout.GAMEPLAY_STATE);\n\t\t\t\tif (gc1.isPaused()) {\n\t\t\t\t\tgc1.resume();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSoundHandler.playNotAcceptable();\n\t\t\t}\n\t\t});\n\n\t\t// controller \"listener\" (Button 3)\n\t\tlistenerLoop.addAction((gc1, sb1, delta, event) -> {\n\t\t\tif (ControllerHandler.isButtonPressed(2)) {\n\t\t\t\t// if the button 3 was not pressed before but is pressed now\n\n\t\t\t\tif (GameplayState.currentlyRunning) {\n\t\t\t\t\tGameplayState.pauseTime += gc1.getTime() - GameplayState.startPauseTime;\n\t\t\t\t\t// grab the mouse\n\t\t\t\t\tgc1.setMouseGrabbed(true);\n\t\t\t\t\tsb1.enterState(Breakout.GAMEPLAY_STATE);\n\t\t\t\t\tif (gc1.isPaused()) {\n\t\t\t\t\t\tgc1.resume();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSoundHandler.playNotAcceptable();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// options-entity\n\t\tButtonEntity options = new ButtonEntity(\"options\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_1_X, Variables.MAIN_MENU_BUTTON_2_Y);\n\t\toptions.addAction(new ChangeStateAction(Breakout.OPTIONS_STATE));\n\t\toptions.addAction((gc1, sb1, delta, event) -> SoundHandler.playButtonPress());\n\n\t\t// highscore-entity\n\t\tButtonEntity highscore = new ButtonEntity(\"highscore\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_2_X, Variables.MAIN_MENU_BUTTON_2_Y);\n\t\thighscore.addAction(new ChangeStateAction(Breakout.HIGHSCORE_STATE));\n\t\thighscore.addAction((gc1, sb1, delta, event) -> SoundHandler.playButtonPress());\n\n\n\t\t// quit-entity\n\t\tButtonEntity quit = new ButtonEntity(\"quit\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_1_X, Variables.MAIN_MENU_BUTTON_3_Y);\n\t\tquit.addAction(new QuitAction());\n\n\t\t// controller \"listener\" (Button 2)\n\t\tlistenerLoop.addAction((gc1, sb1, delta, event) -> {\n\t\t\tif (ControllerHandler.isButtonPressed(1)) {\n\t\t\t\t// if the button 3 was not pressed before but is pressed now\n\t\t\t\t// exit the game\n\t\t\t\tgc1.exit();\n\t\t\t}\n\t\t});\n\n\t\t// about-entity\n\t\tButtonEntity about = new ButtonEntity(\"about\", stateID, Constants.ButtonType.MAINMENU, Variables.MAIN_MENU_BUTTON_2_X, Variables.MAIN_MENU_BUTTON_3_Y);\n\t\tabout.addAction(new ChangeStateAction(Breakout.ABOUT_STATE));\n\t\tabout.addAction((gc1, sb1, delta, event) -> SoundHandler.playButtonPress());\n\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\n\t}" ]
[ "0.5858749", "0.57697487", "0.5769686", "0.57629657", "0.5751245", "0.57494056", "0.5668953", "0.56632894", "0.56257004", "0.5609172", "0.560763", "0.55835336", "0.5572503", "0.55721056", "0.55232894", "0.548729", "0.5486013", "0.54751956", "0.54751956", "0.54751956", "0.54751956", "0.5473977", "0.5465621", "0.5465621", "0.545974", "0.54412585", "0.5426185", "0.5410048", "0.54009426", "0.5374446", "0.5353784", "0.53502977", "0.53492737", "0.5344969", "0.5326756", "0.5318851", "0.53171504", "0.5309899", "0.53052425", "0.53052425", "0.53052425", "0.53052425", "0.53052425", "0.53052425", "0.53052425", "0.5303712", "0.5303033", "0.5284858", "0.5283151", "0.5281861", "0.52781504", "0.52774894", "0.5264181", "0.52555513", "0.52548444", "0.5253448", "0.5250117", "0.52457386", "0.52457386", "0.52457386", "0.52457386", "0.52457386", "0.5241806", "0.5233279", "0.5227468", "0.5227048", "0.5227048", "0.5226001", "0.5226001", "0.5223266", "0.52167857", "0.52167857", "0.52167857", "0.52167857", "0.5207283", "0.52053154", "0.51978683", "0.51972646", "0.51972646", "0.51972646", "0.51972646", "0.51972646", "0.5194506", "0.5194118", "0.5194065", "0.5193955", "0.5192528", "0.5189308", "0.51864237", "0.5183077", "0.51823604", "0.51821125", "0.51810175", "0.5174278", "0.51702195", "0.51669896", "0.51669896", "0.51669896", "0.51669896", "0.51669896", "0.51669896" ]
0.0
-1
Initialize filter criteria with no filter
private void initialize() { filterSelectedField = "-1"; filterCriteria = ""; // Initialize sort with default values sortHelper = new SortHelper(); try { sortHelper.setField(getPrimarySortedField()); sortHelper.setAscending(primarySortedFieldAsc); } catch (PrimarySortedFieldNotFoundException ex) { java.util.logging.Logger.getLogger(AbstractCrudBean.class.getName()).log( Level.SEVERE, i18n.iValue("web.client.backingBean.message.Error") + ex.getMessage(), ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initFilter() {\r\n if (filter == null) {\r\n filter = new VocabularyConceptFilter();\r\n }\r\n filter.setVocabularyFolderId(vocabularyFolder.getId());\r\n filter.setPageNumber(page);\r\n filter.setNumericIdentifierSorting(vocabularyFolder.isNumericConceptIdentifiers());\r\n }", "public DDataFilter() {\n filters = new ArrayList<>();\n operator = null;\n value = null;\n externalData = false;\n valueTo = null;\n attribute = ROOT_FILTER;\n }", "public FalseFilter() {\n\t\t//can be ignored\n\t}", "protected NullFilterImpl() {\n }", "public Filter () {\n\t\tsuper();\n\t}", "protected AbstractJoSQLFilter ()\n {\n\n }", "public static ArticleFilter zero() {\n return new ArticleFilter() {\n @Override public int score(PubmedArticle article) {\n return 0;\n }\n\n @Override public boolean testArticle(PubmedArticle article) {\n return false;\n };\n };\n }", "public FilterData() {\n }", "public TBusineCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void resetFilter();", "public Filter() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate Filter() {\n\n\t}", "public PanoOrderTransCriteria() {\r\n oredCriteria = new ArrayList();\r\n }", "public static ArticleFilter none() {\n return new ArticleFilter() {\n @Override public boolean testArticle(PubmedArticle article) {\n return false;\n };\n };\n }", "public NegationFilter(QueryFilter subFilter) {\n this.subFilter = subFilter;\n }", "BuildFilter defaultFilter();", "public FilterWidget( String initalFilter )\n {\n this.initalFilter = initalFilter;\n }", "public ObjectFilter()\n\t{\n\t}", "public FilterWidget()\n {\n this.browserConnection = null;\n this.initalFilter = null;\n }", "private void inicializarFiltros() {\r\n filtros = new HashMap<String, String>();\r\n filtros.put(\"parametroNombre\", null);\r\n filtros.put(\"parametroApellido\", null);\r\n filtros.put(\"parametroDocumento\", null);\r\n filtros.put(\"parametroTipoDocumento\", null);\r\n filtros.put(\"parametroCorreo\", null);\r\n filtros.put(\"parametroUsuario\", null);\r\n filtros.put(\"parametroEstado\", null);\r\n filtros.put(\"parametroGenero\", null);\r\n agregarFiltrosAdicionales();\r\n }", "public ApplyExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public FileFilter() {\n this.filterExpression = \"\";\n }", "public GameFilter() {\r\n\t\tthis.category = 1;\r\n\t\tthis.mask = Long.MAX_VALUE;\r\n\t\tthis.v1 = null;\r\n\t\tthis.v2 = null;\r\n\t\tthis.noJoints = true;\r\n\t}", "protected TableCommandRequestQueryCriteria() {\r\n\t\tthis(null, null);\r\n\t}", "public NewsExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public FinalOrderBeanCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private static Filter newFilter()\r\n {\r\n Filter filter = new Filter(\"filter1\", new Source(\"display1\", \"name1\", \"server\", \"key1\"));\r\n filter.getOtherSources().add(filter.getSource());\r\n Group group = new Group();\r\n group.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"123\"));\r\n Group group2 = new Group();\r\n group2.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"124\"));\r\n group.addFilterGroup(group2);\r\n filter.setFilterGroup(group);\r\n return filter;\r\n }", "public WaterExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private void clearAllFilter() {\n }", "@Override public Filter getFilter() { return null; }", "public SearchCriteria initSearchCriteria() throws Exception {\n\t\treturn null;\n\t}", "public GroupsOnlySenseFilter() {\n \n }", "public LogFilter() {}", "public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n if (debug) {\n log(\"RequestQueryFilter:Initializing filter\");\n }\n }\n }", "public void resetFilter() {\n searchList.clear();\n mediaCategoryList.clear();\n\n searchList.addAll(viewModel.getMediaList());\n mediaCategoryList.addAll(viewModel.getMediaList());\n }", "public GoodsSkuCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "protected FilterImpl() {\n this(SparkUtils.ALL_PATHS);\n }", "protected void setQueryFilter(CalendarFilter filter) {\n this.queryFilter = filter;\n }", "public GermchitExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public abstract String getDefaultFilter ();", "public Filters() {\n }", "public TFirmwareCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private void setUpFilter() {\n List<Department> departmentsList = departmentService.getAll(0, 10000);\n departments.setItems(departmentsList);\n departments.setItemLabelGenerator(Department::getDepartment_name);\n departments.setValue(departmentsList.get(0));\n category.setItems(\"Consumable\", \"Asset\", \"%\");\n category.setValue(\"%\");\n status.setItems(\"FREE\", \"IN USE\", \"%\");\n status.setValue(\"%\");\n show.addClickListener(click -> updateGrid());\n }", "@Override\r\n\t public Filter getFilter() {\n\t return null;\r\n\t }", "public QueryUserFilter(QueryUserFilter source) {\n if (source.PropertyKey != null) {\n this.PropertyKey = new String(source.PropertyKey);\n }\n if (source.PropertyValue != null) {\n this.PropertyValue = new String(source.PropertyValue);\n }\n if (source.Logic != null) {\n this.Logic = new Boolean(source.Logic);\n }\n if (source.OperateLogic != null) {\n this.OperateLogic = new String(source.OperateLogic);\n }\n }", "public void resetSearchFilters() {\n this.searchFilters.resetToDefaults();\n }", "public PipelineFilter()\n {\n }", "public GoodsExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "public Filter condition();", "void setFilterByExpression(boolean filterByExpression);", "private Criteria buildInactiveCriteria(){\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, false);\r\n\r\n return criteria;\r\n }", "static ObjectInputFilter createFilter(String param2String, boolean param2Boolean) {\n/* 446 */ Global global = new Global(param2String, param2Boolean);\n/* 447 */ return global.isEmpty() ? null : global;\n/* */ }", "public void clearFilters() {\n // TODO [assignment_final] vycisteni aktualne nastavenych filtru\n }", "public StudentExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void resetFilter() {\n filters.clear();\n modifiedSinceLastResult = true;\n }", "public BhiFeasibilityStudyExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}", "static ObjectInputFilter createFilter(String param2String, boolean param2Boolean) {\n/* 448 */ Global global = new Global(param2String, param2Boolean);\n/* 449 */ return global.isEmpty() ? null : global;\n/* */ }", "@Override\r\n\tpublic void initModel(Model model) {\n\t\tsuper.initModel(model);\r\n Filter filter = null;\r\n // ZAP: Added type argument.\r\n List<Filter> filters = filterFactory.getAllFilter();\r\n\t\tfor (int i=0; i<filters.size(); i++) {\r\n // ZAP: Removed unnecessary cast.\r\n filter = filters.get(i);\r\n try {\r\n filter.init(model);\r\n } catch (Exception ignore) {\r\n \tlog.warn(\"Error initializing filter. Continuing.\", ignore);\r\n }\r\n }\r\n\t}", "public MdCategoryVCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Results(FilterSpecifier filter) {\r\n this.ctypes = new ArrayList<ColumnType>();\r\n if (filter.getColumnTypes() != null) {\r\n for (ColumnType ctype : filter.getColumnTypes()) {\r\n if (ctype.isPicked()) {\r\n ctypes.add(ctype);\r\n }\r\n }\r\n }\r\n this.listBy = filter.getListBy();\r\n this.geneList = filter.getGeneList();\r\n this.patientList = filter.getPatientList();\r\n this.disease = filter.getDisease();\r\n this.chromRegions = filter.getChromRegions();\r\n this.geneListOptions = filter.getGeneListOptions();\r\n this.patientListOptions = filter.getPatientListOptions();\r\n }", "public RentExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "private DatasetPieChartFilter initPieChartFilter(String title, String filterId, int index, int width, int height) {\n DatasetPieChartFilter filter = new DatasetPieChartFilter(title, filterId, index, width, height) {\n @Override\n public void selectDatasets(boolean noselection) {\n Set<Integer> finalSelectionIds = filterSelectionUnit();\n if (noselection) {\n updateFilters(finalSelectionIds, \"\");\n } else {\n updateFilters(finalSelectionIds, filterId);\n }\n }\n };\n return filter;\n }", "public NewsCustomerSurveyExample() {\r\n oredCriteria = new ArrayList();\r\n }", "public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }", "public boolean isEmpty() { return this.filterExpression.length()==0; }", "boolean doFilter() { return false; }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria();\n return criteria;\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria();\n return criteria;\n }", "public Filter (Filter filter) {\n this.name = filter.name;\n this.type = filter.type;\n this.pred = new FilterPred(filter.pred);\n this.enabled = filter.enabled;\n }", "protected FilterCondition(final FilterCondition rhs) {\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "public RegisterFilter() {\n\t\tqueryList = new ArrayList<QueryPart>();\n\t\torderList = new ArrayList<OrderPart>();\n\t}", "public ConcatFilter() {\n super();\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria();\n return criteria;\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria();\n return criteria;\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria();\n return criteria;\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria();\n return criteria;\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria();\n return criteria;\n }" ]
[ "0.69380164", "0.6641577", "0.6585341", "0.6552248", "0.6549757", "0.653111", "0.6503888", "0.6406685", "0.6362939", "0.6297496", "0.6284581", "0.6256314", "0.6253835", "0.62421584", "0.62260246", "0.62183183", "0.6182355", "0.6166661", "0.6155862", "0.61466944", "0.61449593", "0.61443007", "0.6126654", "0.61170053", "0.6113529", "0.60996914", "0.6097619", "0.609574", "0.6043302", "0.6038987", "0.60203665", "0.60143095", "0.6010131", "0.600427", "0.59932333", "0.59832096", "0.596237", "0.59522945", "0.5951774", "0.5948416", "0.59440887", "0.59261674", "0.5904592", "0.59024054", "0.5877359", "0.58757555", "0.58699906", "0.5869709", "0.58630717", "0.58433336", "0.5843179", "0.5835004", "0.5834845", "0.5832149", "0.5826215", "0.58060145", "0.58019614", "0.579809", "0.57950956", "0.5788581", "0.5788148", "0.5774093", "0.57514936", "0.574584", "0.5740329", "0.5727526", "0.5717116", "0.5717116", "0.5709895", "0.5707697", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5705065", "0.5703042", "0.5702625", "0.56911886", "0.56896985", "0.56896985", "0.56896985", "0.56896985", "0.56896985" ]
0.6195641
16
MESSAGE LIST AND TABLE METHODS
public PaginationHelper getPaginationHelper() { if (paginationHelper == null) { int pageSize = getRowQuantSelected().length() > 0 ? Integer.valueOf( getRowQuantSelected()).intValue() : 0; paginationHelper = new PaginationHelper(pageSize) { Integer count = null; @Override public int getItemsCount() { String where = null; if (count == null) { if (!filterSelectedField.equals("-1") && filterCriteria.length() > 0) { Class<?> fieldClass = getFieldType(filterSelectedField); if (fieldClass.equals(Integer.class) || fieldClass.equals(Long.class) || fieldClass.equals(BigInteger.class)) { where = "where o.".concat(filterSelectedField).concat( " = ").concat(filterCriteria); } else if (fieldClass.equals(String.class)) { where = "where lower(o.".concat( filterSelectedField).concat(") LIKE '%").concat( filterCriteria.toLowerCase()).concat( "%'"); } } if (aditionalFilter != null && aditionalFilter.trim().length() > 0) { if (where == null) { where = "where "; } else { where = where.concat(" AND"); } where = where.concat(" (").concat( aditionalFilter.trim()).concat(") "); } count = facade.count(where); } return count; } @Override public DataModel createPageDataModel() { String where = null; if (!filterSelectedField.equals("-1") && filterCriteria.length() > 0) { Class<?> fieldClass = getFieldType(filterSelectedField); if (fieldClass.equals(Integer.class) || fieldClass.equals(Long.class) || fieldClass.equals(BigInteger.class)) { where = "where o.".concat(filterSelectedField).concat( " = ").concat(filterCriteria); } else if (fieldClass.equals(String.class)) { where = "where lower(o.".concat(filterSelectedField).concat( ") LIKE '%").concat( filterCriteria.toLowerCase()).concat("%'"); } } if (aditionalFilter != null && aditionalFilter.trim().length() > 0) { if (where == null) { where = "where "; } else { where = where.concat(" AND"); } where = where.concat(" (").concat( aditionalFilter.trim()).concat(") "); } String beginOrderBy = sortHelper.getField().equals( "codeChr") ? "o.metaDataPK." : "o."; String orderby = beginOrderBy.concat(sortHelper.getField()).concat( sortHelper.isAscending() ? " ASC" : " DESC"); return new ListDataModelViewCsTigo(facade.findRange( new int[] { getPageFirstItem(), getPageFirstItem() + getPageSize() }, where, orderby)); } }; } return paginationHelper; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Message> listMessages(Integer tid);", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<io.dstore.engine.Message> \n getMessageList();", "java.util.List<Res.Msg>\n getMsgList();", "public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}", "public List<QlikMessageDto> getMessagesFromDatabase() {\r\n\t\tArrayList<QlikMessageDto> qlikMessages = new ArrayList<QlikMessageDto>();\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tConnection conn = DriverManager.getConnection(url, user, password);\r\n\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql_getMessagesFromDatabase, Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint id = rs.getInt(\"id\");\r\n\t\t\t\tString messagetext = rs.getString(\"messagetext\");\r\n\t\t\t\tboolean ispalindrome = rs.getBoolean(\"ispalindrome\");\r\n\t\t\t\tString createddatetime = rs.getString(\"createddatetime\");\r\n\r\n\t\t\t\tqlikMessages.add(new QlikMessageDto(id, messagetext, ispalindrome, createddatetime));\r\n\t\t\t}\r\n\t\t\tconn.close();\r\n\t\t} catch (ClassNotFoundException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn qlikMessages;\r\n\t}", "java.util.List<Rsp.Msg>\n getMsgList();", "public ListeMessage() {\n\t\tmessagesEntrant = new ArrayList<Message>();\n\t\tmessagesSortant = new ArrayList<Message>();\n\t\tmessages = new ArrayList<Message>();\n\t}", "edu.usfca.cs.dfs.StorageMessages.List getList();", "public List<Object> getMessageList()\r\n\t{\r\n\t\treturn messageList;\r\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtTable() {\n\t\t\n\t}", "java.lang.String listMessageCounter() throws java.lang.Exception;", "public List<MessageKey> listMessages(String status);", "public ArrayList<Message> getAllmessage(){return allmessage;}", "@Override\n\tpublic List<Map<String, String>> queryMessageInfo(String appId) {\n\t\treturn getSqlMap().queryForList(NAMESPACES + \"queryMessageInfo\", appId);\n\t}", "private List<Message> returnMessages(Query query, String recipient) {\n List<Message> messages = new ArrayList<>();\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID id = UUID.fromString(idString);\n String text = (String) entity.getProperty(\"text\");\n long timestamp = (long) entity.getProperty(\"timestamp\");\n String user = (String) entity.getProperty(\"user\");\n recipient = recipient != null ? recipient : (String) entity.getProperty(\"recipient\");\n\n Message message = new Message(id, user, text, timestamp, recipient);\n messages.add(message);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading message.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return messages;\n }", "ReadResponseMessage fetchAllMessages();", "public synchronized static ArrayList<Message> getNLstMessage(int fid, int i, int n){\r\n ArrayList<Message> list = new ArrayList<>();\r\n try (Connection conn = DBConfig.getConnection()) {\r\n PreparedStatement ps = conn.prepareStatement(getMes);\r\n ps.setInt(1, fid);\r\n ps.setInt(2, i);\r\n ps.setInt(3, n);\r\n ps.setInt(4, n);\r\n ResultSet rs = ps.executeQuery();\r\n while(rs.next()) {\r\n list.add(new Message(rs.getInt(1),rs.getInt(2),rs.getString(3)));\r\n }\r\n rs.close();\r\n ps.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return list;\r\n }", "private List<IUIMessageGettable> getUIMessageGettables() {\r\n\t\tif (messageGettables == null) {\r\n\t\t\tmessageGettables = new Vector<IUIMessageGettable>();\r\n\t\t}\r\n\t\treturn messageGettables;\r\n\t}", "@Override\n\tpublic List<Message> findAll() {\n\t\treturn msgdao.findAll();\n\t}", "public List<MessageResource> listMessageResource();", "@Override\n\tpublic List<MessageEntity> getMessages(MessageEntity message) {\n\t\t\tList<MessageEntity> list = messageDAO.selectMessageList(message);\n\t\t\treturn list;\n\t}", "@Override\n public List<Message> getMessages() {\n return (List<Message>) messageRepository.findAll();\n }", "public ArrayList<QlikMessageDto> getMessageFromDatabaseByMessageText(String message) {\r\n\t\tArrayList<QlikMessageDto> qlikMessages = new ArrayList<QlikMessageDto>();\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tConnection conn = DriverManager.getConnection(url, user, password);\r\n\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql_getMessageFromDatabaseByMessageText, Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tstatement.setString(1, message);\r\n\t\t\t\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint id = rs.getInt(\"id\");\r\n\t\t\t\tString messagetext = rs.getString(\"messagetext\");\r\n\t\t\t\tboolean ispalindrome = rs.getBoolean(\"ispalindrome\");\r\n\t\t\t\tString createddatetime = rs.getString(\"createddatetime\");\r\n\r\n\t\t\t\tqlikMessages.add(new QlikMessageDto(id, messagetext, ispalindrome, createddatetime));\r\n\t\t\t}\r\n\t\t\tconn.close();\r\n\t\t} catch (ClassNotFoundException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn qlikMessages;\r\n\t}", "io.dstore.engine.Message getMessage(int index);", "io.dstore.engine.Message getMessage(int index);", "io.dstore.engine.Message getMessage(int index);", "io.dstore.engine.Message getMessage(int index);", "io.dstore.engine.Message getMessage(int index);", "public ArrayList<VicinityMessage> viewAllMessages()\n\n {\n\n try\n {\n database=dbH.getReadableDatabase();\n dbH.openDataBase();\n String query=\"SELECT * FROM Message\";\n Cursor c = database.rawQuery(query,null);\n\n VicinityMessage msg = null;\n if (c.moveToFirst()) {\n\n do {\n\n msg = new VicinityMessage();\n msg.setMessageBody(c.getString(3));\n msg.setFriendName(c.getString(2));\n msg.setIsMyMsg(c.getInt(c.getColumnIndex(\"isMyMsg\"))>0);\n msg.setFrom(c.getString(c.getColumnIndex(\"fromIP\")));\n msg.setImageString(c.getString(c.getColumnIndex(\"image\")));\n msg.setDate(c.getString(1));\n\n // Adding message to allMessages\n allMessages.add(msg);\n } while (c.moveToNext());\n }else{\n Log.i(TAG, \"There are no messages in the DB.\");\n }\n dbH.close();\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n\n return allMessages;\n }", "public List<Message> getMessageAll(){\n return repo.findAll();\n \n }", "public ArrayList<Message> getMessages(String logUser, String friendUser, String date){\n String dateAux = date.split(\" \")[0];\r\n String lastDay = sdf.format(Timestamp.valueOf(date).getTime() - (24*60*60*1000));\r\n lastDay = lastDay.split(\" \")[0];\r\n ArrayList<Message> myMessageList = new ArrayList<>();\r\n this.query = \"SELECT * FROM cristomessenger.message\\n\" +\r\n \"WHERE ((id_user_orig = \\\"\" + logUser + \"\\\" and id_user_dest = \\\"\" + friendUser + \"\\\") or (\"\r\n + \"id_user_orig = \\\"\" + friendUser + \"\\\" and id_user_dest = \\\"\" + logUser + \"\\\")) and \"\r\n + \"datetime >= \\\"\" + lastDay + \"%\\\" and \" + \"datetime < \\\"\" + date + \"\\\" order by datetime asc;\";\r\n //System.out.println(\"getMessagesDate: \" + date);\r\n try {\r\n this.ConnectDatabase();\r\n this.QuerySQLExecute();\r\n while (this.rs.next()) {\r\n Message MessageAux = new Message();\r\n MessageAux.setTransmitter(this.rs.getString(\"id_user_orig\"));\r\n MessageAux.setReceiver(this.rs.getString(\"id_user_dest\"));\r\n MessageAux.setText(this.rs.getString(\"text\"));\r\n MessageAux.setDate(this.rs.getString(\"datetime\"));\r\n myMessageList.add(MessageAux);\r\n }\r\n //System.out.println(\"getMessages: \" + myMessageList.size());\r\n } catch (SQLException e ) {\r\n System.out.println(e.getMessage());\r\n } finally {\r\n if (this.stmt != null) { \r\n try {\r\n this.stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(UsersModel.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n if (myMessageList.isEmpty()) {\r\n //myMessageList = getTop10Messages(logUser,friendUser,date);\r\n }\r\n return myMessageList;\r\n }", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();", "public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }", "java.util.List<main.java.io.grpc.chatservice.Message> \n getMessagesList();", "Res.Msg getMsg(int index);", "protected void messageList() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tmessageStore.print();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<ChatMessageModel> getMessages(int messageIndex) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic List<Msg> getmsg(Msg msg) {\n\t\treturn msgDao.getmsg(msg);\r\n\t}", "public List<Message> queryAllMessages(String sender) {\n List<Message> messageList = new ArrayList<>();\n\tMessage message;\n String sql = \"SELECT * FROM message WHERE sender = ? ORDER BY time\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n statement.setString(1, sender);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tmessage = new Message();\n message.setMid(this.resultSet.getInt(\"mid\"));\n message.setSender(this.resultSet.getString(\"sender\"));\n message.setReceiver(this.resultSet.getString(\"receiver\"));\n message.setContent(this.resultSet.getString(\"content\"));\n message.setTime(this.resultSet.getTimestamp(\"time\"));\n message.setIs_read(this.resultSet.getInt(\"is_read\"));\n\t\tmessageList.add(message);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return messageList;\n }", "public List<Messages> getAll(){\n\treturn messageRepository.getAll();\n }", "public List<MessageInfo> getAllInfo() {\n List<MessageInfo> messageList = new ArrayList<MessageInfo>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_CONTACTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n\n MessageInfo messageInfo = new MessageInfo();\n messageInfo.setBankName(cursor.getString(0));\n messageInfo.setDate(cursor.getString(1));\n messageInfo.setCreDeb(cursor.getString(2));\n messageInfo.setAccNumber(cursor.getString(3));\n messageInfo.setBal(cursor.getFloat(4));\n messageInfo.setAmount(cursor.getFloat(5));\n messageList.add(messageInfo);\n\n\n } while (cursor.moveToNext());\n }\n\n // return contact list\n cursor.close();\n return messageList;\n }", "List<Message> selectAll();", "public interface MessageListBeanIntfc {\n String getTitle();//标题\n\n String getContent();//内容\n\n long getDate();//时间\n\n int getStatus();//消息状态 0未接单 1已接单 2通知类(具体看后台)\n\n //未接单情况下\n String getPhone();//用户电话\n\n String getGoodsName();//商品名称\n\n long getBookDate();//预约配送时间\n}", "@SuppressWarnings(\"null\")\n public static List<Message> getAllMessages(int userId) throws SQLException {\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n ResultSet set = DatabaseSelectHelper.getAllMessages(userId, connection);\n List<Message> messages = new ArrayList<>();\n while (set.next()) {\n int id = set.getInt(\"ID\");\n String message = set.getString(\"MESSAGE\");\n boolean viewed = set.getBoolean(\"VIEWED\");\n messages.add(new MessageImpl(id, message, viewed));\n }\n connection.close();\n return messages;\n \n }", "public List<String> build() {\n equalColSize();\n\n //titlebar\n String message = \"```\" + title + \"```\";\n\n int numRows = columnList.get(0).entries.size();\n int rowIndex = 0;\n String potentialMsg = \"\";\n while (rowIndex < numRows) {\n //for each row, iterate through columns and add entries to potentialMsg\n Iterator<ColumnElement> columnsListIt = columnList.iterator();\n while (columnsListIt.hasNext()) {\n ColumnElement columnElement = columnsListIt.next();\n switch (columnElement.columnType) {\n case HYPERLINK:\n //rowIndex 0 is title row and gets same treatment as ColumnType.DEFAULT\n if (rowIndex != 0) {\n potentialMsg = potentialMsg.concat(\"<\" + columnElement.entries.get(rowIndex) + \"> \");\n break;\n }\n case DEFAULT:\n potentialMsg = potentialMsg.concat(\"`\" + columnElement.entries.get(rowIndex) + \"` \");\n break;\n }\n }\n //Remove last trailing space\n potentialMsg = potentialMsg.trim();\n\n //max char limit is 2000, so if concatenating the potentialMsg to message will be less then 1996, go ahead and concat.\n //if not, add current message to array and then make a new message for the bot to send\n if ((message.length() + potentialMsg.length()) <= 1996) {\n message = message.concat(potentialMsg);\n } else {\n fullMsgList.add(message);\n message = potentialMsg;\n }\n\n //end of row\n message = message.concat(\"\\n\");\n potentialMsg = \"\";\n rowIndex++;\n }\n fullMsgList.add(message);\n return fullMsgList;\n }", "@Override\r\n\tpublic List<message> getMessages(Integer send_id) {\n\t\tList<message> messageList=null;\r\n\t\tString sql=\"select * from message where send_id=?\";\r\n\t\ttry {\r\n\t\t\tmessageList=getObjectList(conn, sql, send_id);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(messageList.size()==0) {\r\n\t\t\treturn null;\r\n\t\t}else\r\n\t\treturn messageList;\r\n\t}", "public List<Tuple> getMessagesList(){\n\t\tsynchronized(messagesList){\n\t\t\tLinkedList<Tuple> messagesListCopy = new LinkedList<Tuple>();\n\t\t\tmessagesListCopy.addAll(messagesList);\n\t\t\treturn messagesListCopy;\n\t\t}\n\t}", "java.util.List<com.polytech.spik.protocol.SpikMessages.Sms> \n getMessagesList();", "MessageQuery createMessageQuery();", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public void listMessages() {\n\t\tSystem.out.println(\"== The wall of \" + name + \" ==\");\n\t\tfor(String msg : messages)\n\t\t{\n\t\t\tSystem.out.println(msg);\n\t\t}\n\t}", "public ListView getMessageListView() {\n return mMessageListView;\n }", "@Override\r\n\tpublic int getCount() {\n\t\treturn msgList.size();\r\n\t}", "@Override\n\tpublic List<Message> displayListMessageByDate(String date) {\n\n\t\tList<Message> messages = new ArrayList<Message>();\n\n\t\ttry {\n\t\t\tmessages = messageReader.getMessageByDate(date);\n\n\t\t} catch (MessageException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn messages;\n\t}", "List<Message> findAll();", "private void remplirTabNewMess(){\n\t\tCalendar date = Calendar.getInstance();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);\n\n\t\tString passage[]= new String[7];\n\n\t\tpassage[0]=tab[2]; //sender\n\t\tpassage[1]=tab[1]; //recep\n\t\tpassage[2]=tab[4]; //obj\n\t\tpassage[3]=tab[3]; //txt\n\t\tpassage[4]=\"0\"; //importance\n\t\tpassage[5]=sdf.format(date.getTime()); //date\n\t\tpassage[6]=\"1\"; //non lu\n\n\t\tmessages.add((String[])passage);\n\t\tthis.send(messages);\n\t\tmessagerie.Server.con.closeSocket();\n\n\t}", "@Override\r\n\tpublic message getMessage(Integer id) {\n\t\tString sql=\"select * from message where id=?\";\r\n\t\tmessage m=null;\r\n\t\ttry {\r\n\t\t\tm=getObject(conn, sql, id);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn m;\r\n\t}", "public ArrayList<String> getMessages() {return messages;}", "main.java.io.grpc.chatservice.Message getMessages(int index);", "public interface MessageService {\n\n List<Message> selectMessage(SeeRecord seeRecord);\n\n int getCount();\n\n Message selectMes(int id);\n}", "Object getMessage();", "public List<Message> queryAllMessagesForReceiver(String receiver) {\n List<Message> messageList = new ArrayList<>();\n\tMessage message;\n String sql = \"SELECT * FROM message WHERE receiver = ? ORDER BY time\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n statement.setString(1, receiver);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tmessage = new Message();\n message.setMid(this.resultSet.getInt(\"mid\"));\n message.setSender(this.resultSet.getString(\"sender\"));\n message.setContent(this.resultSet.getString(\"content\"));\n message.setTime(this.resultSet.getTimestamp(\"time\"));\n message.setIs_read(this.resultSet.getInt(\"is_read\"));\n\t\tmessageList.add(message);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return messageList;\n }", "private void hookUpMessageListAdapter(){\n DeviceSingleton deviceSingleton = DeviceSingleton.getInstance();\n this.arrayAdapter = new ArrayAdapter<String>(\n this,\n android.R.layout.simple_list_item_1,\n deviceSingleton.getTempTextArray() );\n// messageList.setAdapter(arrayAdapter);\n\n\n //ADD MessageAdapter here to replace above stuff\n messageObjectList = deviceSingleton.getMessages();\n messageList = (ListView) findViewById(R.id.listView);\n messageObjectAdapter = new MessageAdapter(this, R.layout.single_row, messageObjectList);\n messageList.setAdapter(messageObjectAdapter);\n ///////////////////////////////////////////\n }", "public List<MessageListItem> makeList(List<BMessage> list){\n return MessageListItem.makeList(mActivity, userID, list, customDateFormat);\n }", "public void getMessage() {\n\r\n\t}", "private IMessage getMesage(HashMap hmMsgData, AlertDetail alertDetail, String sLocale) throws AlertHandlerException\r\n\t{\r\n\t\tlogger.ctinfo(\"CTALT00112\");\r\n\t\tlogger.ctdebug(\"CTALT00113\", hmMsgData);\r\n\t\tlogger.ctdebug(\"CTALT00114\", sLocale);\r\n\t\t// This String buffer will contain the list of key values pairs of the data that are needed to form the alert\r\n\t\tStringBuffer sbData = null;\r\n\t\tString sUnformattedMessage = null;\r\n\t\tMessage message = new Message();\r\n\t\tmessage.setMessageId((String)hmMsgData.get(\"MESSAGE_ID\"));\r\n\t\tmessage.setAlertId(alertDetail.getAlertId());\r\n\t\tArrayList alistDataKeys = null;\r\n\t\tHashMap hmDataKeys = null;\r\n\t\tList listDataKeys = null;\r\n\t\t// This is to ensure that no null pointer exception is thrown if the map is empty\r\n\t\tif (hmMsgData == null)\r\n\t\t\thmMsgData = new HashMap();\r\n\t\t// Get the alert data keys for the given alert id from the database\r\n\t\tList listCachedDataKeys = CacheManager.getFWInstance().getDataFromCache(null, AlertConstants.ALERT_DATA_KEYS);\r\n\t\tif (listCachedDataKeys != null && listCachedDataKeys.size() > 0)\r\n\t\t{\r\n\t\t\tHashMap alertDataKeyMap = (HashMap) listCachedDataKeys.get(0);\r\n\t\t\tlogger.ctdebug(\"CTALT00115\", alertDataKeyMap);\r\n\t\t\tlistDataKeys = (List) alertDataKeyMap.get(alertDetail.getAlertId());\r\n\t\t}\r\n\t\t// If there are no data keys for an alert, listDataKeys could be null.\r\n\t\t// No need to throw an excpetion as the message could be a static message in that case\r\n\t\tif (listDataKeys != null && !listDataKeys.isEmpty())\r\n\t\t{\r\n\t\t\t// Form ArrayList of DataKeys\r\n\t\t\talistDataKeys = new ArrayList();\r\n\t\t\tfor (int i = 0; i < listDataKeys.size(); i++)\r\n\t\t\t{\r\n\t\t\t\thmDataKeys = (HashMap) listDataKeys.get(i);\r\n\t\t\t\talistDataKeys.add(hmDataKeys.get(AlertConstants.DATA_KEY));\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.ctdebug(\"CTALT00116\", alistDataKeys);\r\n\t\tif (alistDataKeys != null && !alistDataKeys.isEmpty())\r\n\t\t{\r\n\t\t\t// This condition is for unformatted Message. In an unformatted message, the detailed message contains the\r\n\t\t\t// key value pairs need to form the actual message\r\n\t\t\tsbData = new StringBuffer();\r\n\t\t\tfor (int i = 0; i < alistDataKeys.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tsbData.append(alistDataKeys.get(i));\r\n\t\t\t\tsbData.append(prptReader.retrieveProperty(\"ASSIGNMENT_KEY\"));\r\n\t\t\t\tif (hmMsgData.get(alistDataKeys.get(i)) != null)\r\n\t\t\t\t\tsbData.append(hmMsgData.get(alistDataKeys.get(i)));\r\n\t\t\t\telse\r\n\t\t\t\t\tsbData.append(\"\");\r\n\t\t\t\tif (i != (alistDataKeys.size() - 1))\r\n\t\t\t\t\tsbData.append(prptReader.retrieveProperty(\"DELIMITER_KEY\"));\r\n\t\t\t}\r\n\t\t\tif (sbData != null)\r\n\t\t\t{\r\n\t\t\t\tsUnformattedMessage = sbData.toString();\r\n\t\t\t\tmessage.setDetailedMessage(sUnformattedMessage);\r\n\t\t\t}\r\n\t\t\tmessage.setFormatted(false);\r\n\t\t} else\r\n\t\t{\r\n\t\t\t// This is for a formatted message. The short and detailed description template has the actual message to be\r\n\t\t\t// sent\r\n\r\n\t\t\tif (sLocale == null || sLocale.isEmpty())\r\n\t\t\t{\r\n\t\t\t\tsLocale = \"en_US\";\r\n\t\t\t}\r\n\t\t\tConfigurationManager confMngr = ConfigurationManager.getInstance();\r\n\t\t\tSystemPreferenceDescriptor sysDscr = confMngr.getSystemPrefDescriptor();\r\n\t\t\tPropertyReader msgPrptReader = new PropertyReader(sysDscr.getAlertTemplateFile() + \"_\" + sLocale);\r\n\r\n\t\t\tlogger.ctdebug(\"CTALT00117\", alertDetail.getAlertId(), sChannelName);\r\n\t\t\t// The key to get the short message template is formed using the Alert Id, Channel Id and the constant\r\n\t\t\t// AlertConstants.SHORT_DESCRIPTION_TEMPLATE.\r\n\t\t\tString sShortMsgTemplateKey = new StringBuffer(alertDetail.getAlertId()).append(sChannelName)\r\n\t\t\t\t\t.append(AlertConstants.SHORT_DESCRIPTION_TEMPLATE).toString();\r\n\t\t\t// The key to get the detailed message template is formed using the Alert Id, Channel Id and the constant\r\n\t\t\t// AlertConstants.DETAILED_DESCRIPTION_TEMPLATE.\r\n\t\t\tString sDetailedMsgTemplateKey = new StringBuffer(alertDetail.getAlertId()).append(sChannelName)\r\n\t\t\t\t\t.append(AlertConstants.DETAILED_DESCRIPTION_TEMPLATE).toString();\r\n\t\t\t// Get the short message\r\n\t\t\tString sShortMessage = msgPrptReader.retrieveProperty(sShortMsgTemplateKey);\r\n\t\t\t// Get the detailed Message\r\n\t\t\tString sDetailedMessage = msgPrptReader.retrieveProperty(sDetailedMsgTemplateKey);\r\n\t\t\tmessage.setShortMessage(sShortMessage);\r\n\t\t\tmessage.setDetailedMessage(sDetailedMessage);\r\n\t\t\tmessage.setFormatted(true);\r\n\t\t}\r\n\r\n\t\t// Store the enriched data values into the message always.\r\n\t\tmessage.setEnrichBankName((String) hmMsgData.get(AlertConstants.KEY_ENRICH_BANK_NAME));\r\n\t\tmessage.setEnrichBranchName((String) hmMsgData.get(AlertConstants.KEY_ENRICH_BRANCH_NAME));\r\n\t\tmessage.setEnrichCcy((String) hmMsgData.get(AlertConstants.KEY_ENRICH_CCY));\r\n\t\tmessage.setEnrichCountryName((String) hmMsgData.get(AlertConstants.KEY_ENRICH_COUNTRY_NAME));\r\n\t\tmessage.setEnrichSubProduct((String) hmMsgData.get(AlertConstants.KEY_ENRICH_SUBPROD_DESC));\r\n\r\n\t\tlogger.ctinfo(\"CTALT00120\");\r\n\t\treturn message;\r\n\t}", "@Override\n\tpublic int getCount() {\n\n\t\treturn msgList.size();\n\t}", "public abstract String getMessage();", "public static Map<Long,Message> getMessages(){\r\n\t\treturn messages;\r\n\t\t\r\n\t}", "public java.util.List<Msg> getMsgList() {\n return java.util.Collections.unmodifiableList(\n instance.getMsgList());\n }", "public java.util.List<Msg> getMsgList() {\n return java.util.Collections.unmodifiableList(\n instance.getMsgList());\n }", "public ArrayList<Message> getMessages(){\n return messages;\n }", "GetMessagesType(Message message) {\n super(message);\n }", "public ArrayList<Message> getReplyText(java.util.Date time){\n\t ArrayList<Message> M = new ArrayList<Message> ();\n\t try{\n\t\t //STEP 2: Register JDBC driver\n\t\t Class.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t //STEP 3: Open a connection\n\t\t ////System.out.println(\"Connecting to database...\");\n\t\t conn = DriverManager.getConnection(DB_URL,USER,PASS);\n\n\t\t //STEP 4: Execute a query\n\t\t ////System.out.println(\"Creating statement...\");\n\t\t stmt = conn.createStatement();\n\t\t \n\t\t \n\t\t String statement = \"SELECT * FROM `procesed_texts` INNER JOIN `conversations` ON `procesed_texts`.`conversation_id` = `conversations`.`id`\"\n\t\t \t\t +\" INNER JOIN `users` ON `users`.`id` = `conversations`.`user_id`\"\n\t\t \t\t +\" WHERE `procesed_texts`.`reply` IS NOT NULL \"\n\t\t \t\t + \"AND `procesed_texts`.`updated_at` >= '\"+new Timestamp(time.getTime())+\"'\";\n\t\t System.out.println(\"Reply Text Querry : \"+statement);\n\t\t ResultSet rs = stmt.executeQuery(statement);\n\t\t \n\t\t while(rs.next()){\n\t \t\t\t//////System.out.println(\"test III\");\n\t\t //Retrieve by column name\n\t\t //String id = rs.getString(\"facebook_user_id\");\n\t\t String text = rs.getString(\"reply\");\n\t\t String id = rs.getString(\"facebook_conversation_id\");\n\t\t //Display values\n\t\t //////System.out.println(\", Raw Data: \" + rd);\n\t\t Message temp = new Message();\n\t\t temp.setMessage(text);\n\t\t temp.setId(id);\n\t\t M.add(temp);\n\t\t }\n\t\t \n\t\t //STEP 6: Clean-up environment\n\t\t rs.close();\n\t\t stmt.close();\n\t\t conn.close();\n\t\t }catch(SQLException se){\n\t\t //Handle errors for JDBC\n\t\t se.printStackTrace();\n\t\t }catch(Exception e){\n\t\t //Handle errors for Class.forName\n\t\t e.printStackTrace();\n\t\t }finally{\n\t\t //finally block used to close resources\n\t\t try{\n\t\t if(stmt!=null)\n\t\t stmt.close();\n\t\t }catch(SQLException se2){\n\t\t }// nothing we can do\n\t\t try{\n\t\t if(conn!=null)\n\t\t conn.close();\n\t\t }catch(SQLException se){\n\t\t se.printStackTrace();\n\t\t }//end finally try\n\t\t }//end try\n\t \t ////System.out.println(\"Goodbye!\");\n\t //////System.out.println(\"Message Number :\"+Mes.size()); \t \n\t return M;\n\n }", "edu.usfca.cs.dfs.StorageMessages.ListOrBuilder getListOrBuilder();", "@Override\n\tpublic List<Message> findAll() {\n\t\tSystem.err.println(\"Vao dây\" + url);\n\t\tfor (Message massage : messRepository.findAll()) {\n\t\t\tSystem.err.println(\"massage ==>\" + massage.getUsername());\n\t\t}\n\t\treturn (List<Message>) messRepository.findAll();\n\t}", "public java.util.List<Msg> getMsgList() {\n return msg_;\n }", "public java.util.List<Msg> getMsgList() {\n return msg_;\n }", "public interface Message {\n public OptionsImpl getConfirm();\n\n public List<SystemImpl> getAddressees();\n\n}", "protected abstract String getMessage();", "public messageList()\n {\n\n }", "public int getTotalNumOfMsg(){ return allmessage.size();}", "public List<String> getMessages() {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.debug(\"Getting All Messages -> \"+messages);\n return messages;\n }" ]
[ "0.7066664", "0.7050429", "0.7050429", "0.7050429", "0.7050429", "0.7050429", "0.70194626", "0.6955849", "0.6698938", "0.66738176", "0.66247344", "0.6618678", "0.6544344", "0.6538562", "0.6538562", "0.6362535", "0.6350311", "0.63084805", "0.62721074", "0.62619144", "0.6260653", "0.62508595", "0.6237517", "0.62269753", "0.62155795", "0.61481583", "0.6115841", "0.61152756", "0.6113041", "0.6113041", "0.6113041", "0.6113041", "0.6113041", "0.6105357", "0.6063134", "0.6057822", "0.605611", "0.605611", "0.605611", "0.605611", "0.605611", "0.6037824", "0.60215026", "0.6018413", "0.60181594", "0.60152644", "0.60104823", "0.6008477", "0.6004786", "0.60003364", "0.5998399", "0.5989747", "0.5989214", "0.5984374", "0.5979299", "0.59604824", "0.594207", "0.593604", "0.59250057", "0.59250057", "0.59250057", "0.59250057", "0.59250057", "0.59212816", "0.59212816", "0.59212816", "0.59212816", "0.59212816", "0.58759385", "0.5875175", "0.5873757", "0.5858788", "0.58566517", "0.5854236", "0.58493143", "0.5847536", "0.58343", "0.5818943", "0.58161664", "0.5813904", "0.5813166", "0.58101404", "0.5795437", "0.57953984", "0.57903874", "0.57878816", "0.5782417", "0.5778318", "0.5778318", "0.57750106", "0.57721543", "0.57719254", "0.57596934", "0.57518935", "0.5739387", "0.5739387", "0.5737017", "0.5730965", "0.5724012", "0.57223874", "0.57167274" ]
0.0
-1
FILTER AND SORT METHODS
public String applyFilter() { if (!filterSelectedField.equals("-1")) { Class<?> fieldClass = getFieldType(filterSelectedField); if ((fieldClass.equals(Integer.class) && !NumberUtil.isInteger(filterCriteria)) || (fieldClass.equals(Long.class) && !NumberUtil.isLong(filterCriteria)) || (fieldClass.equals(BigInteger.class) && !NumberUtil.isBigInteger(filterCriteria))) { setWarnMessage(i18n.iValue("web.client.backingBean.abstractCrudBean.message.MustBeInteger")); filterCriteria = ""; } else { signalRead(); } paginationHelper = null; // For pagination recreation dataModel = null; // For data model recreation selectedItems = null; // For clearing selection } else { setWarnMessage(i18n.iValue("web.client.backingBean.abstractCrudBean.message.MustSelectFindOption")); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){\n\t\tSystem.out.println(\"/***Java 8 stream Implementation sorting and filtering ***/\");\n\t\tSystem.out.println(\"/*Stream Implementation sorting and filtering to List*/\");\n\t\tList<Person> streamEx = new ArrayList<Person>();\n\t\tstreamEx.add(new Person(\"Ramu\",12));\n\t\tstreamEx.add(new Person(\"Agil\",52));\n\t\tstreamEx.add(new Person(\"Murali\",17));\n\t\tstreamEx.add(new Person(\"Hari\",17));\n\t\tstreamEx.add(new Person(\"Kalai\",45));\n\t\tstreamEx.add(new Person(\"George\",78));\n\t\tList<String> sortedNames = streamEx\n\t\t.stream().filter(s -> s.getAge() > 18)\n\t\t//.sorted(PERSON_SORT_BY_NAME) // Soreted using Comparator instance already created\n\t\t.sorted((p1,p2)->p1.getAge().compareTo(p2.getAge())) // Defining the Comparator here itself\n\t\t.map(Person::getName)\n\t\t.collect(Collectors.toList());\n\t\tSystem.out.println(sortedNames);\n\t\t\n\t\t// Retriving the first person of the criteria being met\n\t\tOptional<Person> firstPerson = streamEx\n\t\t\t\t\t\t\t\t\t\t.stream()\n\t\t\t\t\t\t\t\t\t\t//.sorted(PERSON_SORT_BY_AGE.reversed()) // Reverse sorting\n\t\t\t\t\t\t\t\t\t\t.sorted(PERSON_SORT_BY_AGE)\n\t\t\t\t\t\t\t\t\t\t.findFirst();\n\t\tSystem.out.println(\"Person with Minimum Age :: \"+firstPerson.get());\n\t\t\n\t\t//Mutiple Sorting conditions\n\t\tSystem.out.println(\"/*\\n*Mutiple Sorting conditions \\n*1.Age\\n*2.Name\\n*/\");\n\t\tstreamEx\n\t\t.stream()\n\t\t.sorted(PERSON_SORT_BY_AGE.thenComparing(PERSON_SORT_BY_NAME))\n\t\t.forEach(e -> System.out.println(e));\n\t\t\n\t\tSystem.out.println(\"/*Stream Implementation sorting and filtering to Map*/\");\n\t\tMap<String,Integer> sortedMap = streamEx\n\t\t.stream()\n\t\t.collect(Collectors.toMap(Person::getName,Person::getAge));\n\t\tSystem.out.println(sortedMap);\n\t\t\n\t\t//Limiting Records\n\t\tSystem.out.println(\"/** Limiting Records **/\");\n\t\tstreamEx\n\t\t.stream()\n\t\t.sorted(PERSON_SORT_BY_NAME)\n\t\t.filter(s -> s.getAge() < 18)\n\t\t.limit(2)\n\t\t.forEach(e -> System.out.println(e));\n\t\t\n\t\tprintMethodName();\n\t\n\t}", "private void filteringAndSortingWithDataView() {\n ComboBox<Person> comboBox = new ComboBox<>(\"Persons\");\n PersonService personService = new PersonService();\n\n // We fetch the items to the memory and bind the obtained collection\n // to the combo box\n Collection<Person> persons = personService.fetchAll();\n\n ComboBoxListDataView<Person> dataView = comboBox.setItems(persons);\n\n /*\n * Providing a predicate item filter allows filtering by any field of\n * the business entity and apply a combo box's text filter independently\n */\n IntegerField personAgeFilter = new IntegerField(\n event -> dataView.setFilter(person -> event.getValue() == null\n || person.getAge() > event.getValue()));\n\n /*\n * Providing a value provider or comparator allows sorting combo box's\n * items by custom field, or combination of fields\n */\n Button sortPersons = new Button(\"Sort Persons by Name\",\n event -> dataView.setSortOrder(Person::toString,\n SortDirection.ASCENDING));\n\n personAgeFilter.setLabel(\"Filter Persons with age more than:\");\n personAgeFilter.setWidth(WIDTH_STRING);\n addCard(\"Filtering\", \"Filtering and Sorting with Data View\", comboBox,\n personAgeFilter, sortPersons);\n }", "private void filterAndSort()\n {\n filteredAndSortedElements = elements;\n\n // filter and sort, use Job if too much elements\n if ( configuration.getFilter().isFiltered() || configuration.getSorter().isSorted() )\n {\n if ( elements.length > BrowserUIPlugin.getDefault().getPreferenceStore()\n .getInt( BrowserUIConstants.PREFERENCE_SEARCHRESULTEDITOR_SORT_FILTER_LIMIT )\n && mainWidget.getViewer() != null && !mainWidget.getViewer().getTable().isDisposed() )\n {\n // deactivate fitering and sorting for large data set\n // FilterAndSortRunnable runnable = new FilterAndSortRunnable( configuration, mainWidget, elements );\n // RunnableContextRunner.execute( runnable, null, true );\n // filteredAndSortedElements = runnable.getFilteredAndSortedElements();\n }\n else if ( elements.length > 0 && mainWidget.getViewer() != null\n && !mainWidget.getViewer().getTable().isDisposed() )\n {\n filteredAndSortedElements = configuration.getFilter().filter( mainWidget.getViewer(), \"\", elements ); //$NON-NLS-1$\n configuration.getSorter().sort( mainWidget.getViewer(), filteredAndSortedElements );\n }\n }\n\n // update virtual table\n mainWidget.getViewer().setItemCount( filteredAndSortedElements.length );\n\n // update state\n String url = \"\"; //$NON-NLS-1$\n boolean enabled = true;\n \n if ( input instanceof ISearch )\n {\n ISearch search = ( ISearch ) input;\n\n if ( filteredAndSortedElements.length < elements.length )\n {\n url += filteredAndSortedElements.length + Messages.getString( \"SearchResultEditorContentProvider.Of\" ); //$NON-NLS-1$\n }\n\n if ( search.getSearchResults() == null )\n {\n url += Messages.getString( \"SearchResultEditorContentProvider.SearchNotPerformed\" ); //$NON-NLS-1$\n enabled = false;\n }\n else if ( search.getSearchResults().length == 1 )\n {\n url += search.getSearchResults().length\n + Messages.getString( \"SearchResultEditorContentProvider.Result\" ); //$NON-NLS-1$\n }\n else\n {\n url += search.getSearchResults().length\n + Messages.getString( \"SearchResultEditorContentProvider.Results\" ); //$NON-NLS-1$\n }\n\n // url += search.getURL();\n url += Messages.getString( \"SearchResultEditorContentProvider.SearchBase\" ) + search.getSearchBase().getName() + \" - \"; //$NON-NLS-1$ //$NON-NLS-2$\n url += Messages.getString( \"SearchResultEditorContentProvider.Filter\" ) + search.getFilter(); //$NON-NLS-1$\n\n boolean showDn = BrowserUIPlugin.getDefault().getPreferenceStore().getBoolean(\n BrowserUIConstants.PREFERENCE_SEARCHRESULTEDITOR_SHOW_DN )\n || search.getReturningAttributes().length == 0;\n configuration.getFilter().inputChanged( search, showDn );\n configuration.getSorter().inputChanged( search, showDn );\n }\n else\n {\n url = Messages.getString( \"SearchResultEditorContentProvider.NoSearchSelected\" ); //$NON-NLS-1$\n enabled = false;\n }\n\n if ( mainWidget.getInfoText() != null && !mainWidget.getInfoText().isDisposed() )\n {\n mainWidget.getInfoText().setText( url );\n }\n if ( mainWidget.getQuickFilterWidget() != null )\n {\n mainWidget.getQuickFilterWidget().setEnabled( enabled );\n }\n if ( mainWidget.getViewer() != null && !mainWidget.getViewer().getTable().isDisposed() )\n {\n mainWidget.getViewer().getTable().setEnabled( enabled );\n }\n\n }", "private void updateFilteringAndSorting() {\n log.debug(\"update filtering of adapter called\");\n if (lastUsedComparator != null) {\n sortWithoutNotify(lastUsedComparator, lastUsedAsc);\n }\n Filter filter = getFilter();\n if (filter instanceof UpdateableFilter){\n ((UpdateableFilter)filter).updateFiltering();\n }\n }", "protected void sortAndFilterAnnotationData() {\n SortColumn sortType = (SortColumn) sortAction.getValue(COLUMN_PROPERTY);\r\n FilterSubTypeColumn filterType = (FilterSubTypeColumn) filterTypeAction.getValue(COLUMN_PROPERTY);\r\n FilterAuthorColumn filterAuthor = (FilterAuthorColumn) filterAuthorAction.getValue(COLUMN_PROPERTY);\r\n Color filterColor = (Color) filterColorAction.getValue(COLUMN_PROPERTY);\r\n FilterVisibilityColumn filterVisibility = (FilterVisibilityColumn) filterVisibilityAction.getValue(COLUMN_PROPERTY);\r\n filterDropDownButton.setSelected(!filterAuthor.equals(FilterAuthorColumn.ALL) ||\r\n !filterType.equals(FilterSubTypeColumn.ALL) ||\r\n filterColor != null);\r\n\r\n // setup search pattern\r\n Pattern searchPattern = null;\r\n String searchTerm = searchTextField.getText();\r\n boolean caseSensitive = caseSensitiveMenutItem.isSelected();\r\n if (searchTerm != null && !searchTerm.isEmpty()) {\r\n searchPattern = Pattern.compile(caseSensitive ? searchTerm : searchTerm.toLowerCase());\r\n // todo we can add search flags at a later date, via drop down on search or checkboxes.\r\n }\r\n\r\n markupAnnotationHandlerPanel.sortAndFilterAnnotationData(\r\n searchPattern, sortType, filterType, filterAuthor, filterVisibility, filterColor,\r\n regexMenuItem.isSelected(), caseSensitive);\r\n }", "public ArrayList<Question> sortAndFilter(BankOptions temp) {\n\n /* The array being filtered */\n ArrayList<Question> newArr = new ArrayList<Question>();\n\n /* Adds all the questions into the question collection */\n for (int i = 0; i < quesCollec.size(); i++) {\n newArr.add(quesCollec.get(i));\n }\n\n /* checks to see if getDiff is actually set */\n if (temp.getDiff() != -1) {\n\n /* Calls the filter function to filter by Difficulty */\n newArr = filterByDiff(newArr, temp.getDiff());\n }\n\n /* checks to see if the subject is set */\n if (!temp.getSubj().getName().equals(\"None\")) {\n\n /* Calls the filter functions to filter by Subject */\n newArr = filterBySubj(newArr, temp.getSubj());\n }\n\n /* checks to see if the coursename is set */\n if (!temp.getCourse().getName().equals(\"None\")) {\n\n /* Calls the filter functions to filter by course */\n newArr = filterByCourse(newArr, temp.getCourse());\n }\n\n /* checks to see if the question type is set */\n if (!temp.getQuestionType().equals(\"None\")) {\n\n /* Calls the filter functions to filter by question type. */\n newArr = filterByQuestionType(newArr, temp.getQuestionType());\n }\n\n /* checks to see if the search box is set */\n if (!(temp.getSearchBox().equals(\"\") || temp.getSearchBox().equals(\"Search\"))) {\n\n /* Calls the filter functions to filter by the search box. */\n newArr = filterBySearch(newArr, temp.getSearchBox());\n }\n\n /* checks to see if the start date is null */\n if (temp.getStart() != null) {\n /* Calls the filter functions to filter by the dates. */\n newArr = filterByStart(newArr, temp.getStart());\n }\n\n /* checks to see if the end date is null. */\n if (temp.getEnd() != null) {\n newArr = filterByEnd(newArr, temp.getEnd());\n }\n\n return newArr;\n }", "@FunctionalInterface\n public interface FilterMethod<T> {\n Slice<T> load( @Nullable Filters filters, @Nullable Sort sort, int offset, int limit );\n }", "public interface FilterRestaurantsByVeganFriendlyPriceAndDistance {\n public List<Integer> filterRestaurants(int[][] restaurants, int veganFriendly, int maxPrice,\n int maxDistance);\n\n @Author(value = \"hiepit\", references = \"https://leetcode.com/problems/filter-restaurants-by-vegan-friendly-price-and-distance/discuss/491469/Java-Straight-Forward-HashMap\")\n @Submission(memory = 48.7, memoryBeatRate = 100, runtime = 10, runtimeBeatRate = 24.82, submittedDate = @DateTime(\"20200327\"), url = \"https://leetcode.com/submissions/detail/316279312/\")\n @SortAlgorithm(timeComplexity = @TimeComplexity(average = ComplexityEnum.O_N_LOG_N), spaceComplexity = ComplexityEnum.O_N)\n public static class SolutionBySort implements FilterRestaurantsByVeganFriendlyPriceAndDistance {\n /**\n * 注意要先通过rating和id一起降序排序,如果仅排rating,然后反向add id是不行的\n */\n @Override\n public List<Integer> filterRestaurants(int[][] restaurants, int veganFriendly, int maxPrice,\n int maxDistance) {\n // 0. descendant sort by rating and id\n Arrays.sort(restaurants, (a, b) -> b[1] == a[1] ? b[0] - a[0] : b[1] - a[1]);\n // 1. filter with conditions\n List<Integer> res = new ArrayList<>(restaurants.length);\n for (int[] r : restaurants) {\n if (r[2] >= veganFriendly && r[3] <= maxPrice && r[4] <= maxDistance) {\n res.add(r[0]);\n }\n }\n return res;\n }\n }\n\n public static void main(String[] args) {\n int[][] restaurants = {{1, 4, 1, 40, 10}, {2, 8, 0, 50, 5}, {3, 8, 1, 30, 4}, {4, 10, 0, 10, 3},\n {5, 1, 1, 15, 1}};\n FilterRestaurantsByVeganFriendlyPriceAndDistance p = new SolutionBySort();\n int veganFriendly = 0, maxPrice = 50, maxDistance = 10;\n p.filterRestaurants(restaurants, veganFriendly, maxPrice, maxDistance);\n }\n}", "public abstract void filter();", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "Results sortResults(FilterSpecifier.ListBy listBy, SortSpecifier sortspec) throws SearchServiceException;", "void example12() {\n\t\t\n\t\t// an example of passing data to algorithms in reverse order\n\t\t\n\t\t// make some data\n\t\t\n\t\tIndexedDataSource<SignedInt32Member> nums =\n\t\t\t\tnom.bdezonia.zorbage.storage.Storage.allocate(G.INT32.construct(), \n\t\t\t\tnew int[] {-1, 345, 1, -3044, 0, 0, 1066, -12});\n\t\t\n\t\t// sort it\n\t\t\n\t\tSort.compute(G.INT32, nums);\n\t\t\n\t\t// this is how the results look\n\t\t// nums = [-3044, -12, -1, 0, 0, 1, 345, 1066]\n\t\t\n\t\t// now wrap a reverse filter around the data\n\t\t\n\t\tIndexedDataSource<SignedInt32Member> revNums = new ReversedDataSource<>(nums);\n\n\t\t// sort using the filter\n\t\t\n\t\tSort.compute(G.INT32, revNums);\n\t\t\n\t\t// this is how the results look\n\t\t// revNums = [-3044, -12, -1, 0, 0, 1, 345, 1066]\n\t\t// nums = [1066, 345, 1, 0, 0, -1, -12, -3044]\n\t\t\n\t\t// now here is a some code showing some another way to use the filter\n\t\t\n\t\tSignedInt32Member value = G.INT32.construct();\n\t\t\n\t\tGetV.second(revNums, value);\n\t\t\n\t\t// gets the second value in the reverse list. so it gets the second to last\n\t\t// value in the original list.\n\t\t// value = -12\n\t}", "public abstract Filter<T> filter();", "private Reviews filterByFunc(FilterFunction filterFunc)\n\t{\n\t\tArrayList<Review> filteredList = new ArrayList<Review>();\n\t\tfor(Review review : list)\n\t\t\tif(filterFunc.filter(review))\n\t\t\t\tfilteredList.add(review);\n\t\treturn new Reviews(filteredList);\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tprotected void publishResults(CharSequence constraint,\n\t\t\t\tFilterResults results) {\n\t\t\tfilteredList = (ArrayList<RowItem>) results.values;\n\t\t\tCollections.sort(filteredList, convertStringToDateAndCompare);\n\t\t\tnotifyDataSetChanged();\n\t\t}", "@Override\r\n\tpublic List<ViewListeEleve> filter(HttpHeaders headers, List<Predicat> predicats, Map<String, OrderType> orders,\r\n\t\t\tSet<String> properties, Map<String, Object> hints, int firstResult, int maxResult) {\n \tList<ViewListeEleve> list = super.filter(headers, predicats, orders, properties, hints, firstResult, maxResult);\r\n \tSystem.out.println(\"ViewListeEleveRSImpl.filter() size is \"+list.size());\r\n\t\treturn list ;\r\n\t}", "ObservableList<Person> getFilteredPersonList();", "public static void main(String[] args)\n {\n Employee[] employees = {\n new Employee(\"Jason\", \"Red\", 5000, \"IT\"),\n new Employee(\"Ashley\", \"Green\", 7600, \"IT\"),\n new Employee(\"Matthew\", \"Indigo\", 3587.5, \"Sales\"),\n new Employee(\"James\", \"Indigo\", 4700.77, \"Marketing\"),\n new Employee(\"Luke\", \"Indigo\", 6200, \"IT\"),\n new Employee(\"Jason\", \"Blue\", 3200, \"Sales\"),\n new Employee(\"Wendy\", \"Brown\", 4236.4, \"Marketing\")};\n\n // get List view of the Employees\n List<Employee> list = Arrays.asList(employees);\n\n // display all Employees\n System.out.println(\"Complete Employee list:\");\n list.stream().forEach(System.out::println); // A method reference.\n \n List<Employee> list2 = Arrays.asList(employees);\n Collections.sort(list2, new myEmployeeComparator());\n\n //display all Employees\n System.out.println(\"\\nComplete Employee list Ordered:\");\n list2.stream().forEach(System.out::println); // A method reference.\n \n //Predicate (boolean-valued function) that returns true for salaries \n //in the range $4000-$6000\n Predicate<Employee> fourToSixThousand = \n e -> (e.getSalary() >= 4000 && e.getSalary() <= 6000);\n\n //Display Employees with salaries in the range $4000-$6000\n // sorted into ascending order by salary\n System.out.printf(\n \"%nEmployees earning $4000-$6000 per month sorted by salary:%n\");\n\n list.stream()\n .filter(fourToSixThousand)\n .sorted(Comparator.comparing(Employee::getSalary))\n .forEach(System.out::println);\n\n //Display first Employee with salary in the range $4000-$6000\n System.out.printf(\"%nFirst employee who earns $4000-$6000:%n%s%n\",\n list.stream()\n .filter(fourToSixThousand)\n .findFirst()\n .get());\n\n // Functions for getting first and last names from an Employee\n Function<Employee, String> byFirstName = Employee::getFirstName;\n Function<Employee, String> byLastName = Employee::getLastName;\n\n //Comparator for comparing Employees by first name then last name\n Comparator<Employee> lastThenFirst = \n Comparator.comparing(byLastName).thenComparing(byFirstName);\n\n // sort employees by last name, then first name \n System.out.printf(\n \"%nEmployees in ascending order by last name then first:%n\");\n list.stream()\n .sorted(lastThenFirst)\n .forEach(System.out::println);\n\n //sort employees in descending order by last name, then first name\n System.out.printf(\n \"%nEmployees in descending order by last name then first:%n\");\n list.stream()\n .sorted(lastThenFirst.reversed())\n .forEach(System.out::println);\n\n //display unique employee last names sorted\n System.out.printf(\"%nUnique employee last names:%n\");\n list.stream()\n .map(Employee::getLastName)\n .distinct()\n .sorted()\n .forEach(System.out::println);\n\n //display only first and last names\n System.out.printf(\n \"%nEmployee names in order by last name then first nameX:%n\"); \n list.stream()\n .sorted(lastThenFirst)\n .map(Employee::getName)\n .forEach(System.out::println);\n\n //group Employees by department\n System.out.printf(\"%nEmployees by department:%n\"); \n Map<String, List<Employee>> groupedByDepartment =\n list.stream()\n .collect(Collectors.groupingBy(Employee::getDepartment));\n\n groupedByDepartment.forEach(\n (department, employeesInDepartment) -> \n {\n System.out.println(department);\n employeesInDepartment.forEach(\n employee -> System.out.printf(\" %s%n\", employee));\n }\n );\n System.out.printf(\"%nAverage salary by department:%n\"); \n \n groupedByDepartment.forEach(\n \t (department, employeesInDepartment) -> \n \t {\n \t System.out.println(department);\n \t System.out.printf(\" %.2f%n\",employeesInDepartment.stream().mapToDouble(Employee::getSalary).average().getAsDouble());\n \t \n \t }\n \t );\n \n System.out.printf(\"%nMax salary by department:%n\"); \n \n groupedByDepartment.forEach(\n \t (department, employeesInDepartment) -> \n \t {\n \t System.out.println(department);\n \t System.out.printf(\" %.2f%n\",employeesInDepartment.stream().mapToDouble(Employee::getSalary).max().getAsDouble());\n \t \n \t }\n \t );\n\n //count number of Employees in each department\n System.out.printf(\"%nCount of Employees by department:%n\"); \n\n Map<String, Long> employeeCountByDepartment =\n list.stream()\n .collect(Collectors.groupingBy(Employee::getDepartment, \n TreeMap::new, Collectors.counting()));\n\n employeeCountByDepartment.forEach(\n (department, count) -> System.out.printf(\n \"%s has %d employee(s)%n\", department, count));\n\n/* Output looks something like :\n\n HR 4\n IT 8\n Sales 12\n*/\n\n\n // sum of Employee salaries with DoubleStream sum method\n System.out.printf(\n \"%nSum of Employees' salaries (via sum method): %.2f%n\",\n list.stream()\n .mapToDouble(Employee::getSalary)\n .sum());\n\n //calculate sum of Employee salaries with Stream reduce method\n System.out.printf(\n \"Sum of Employees' salaries (via reduce method): %.2f%n\",\n list.stream()\n .mapToDouble(Employee::getSalary)\n .reduce(0, (value1, value2) -> value1 + value2)); \n\n //average of Employee salaries with DoubleStream average method\n System.out.printf(\"Average of Employees' salaries: %.2f%n\",\n list.stream()\n .mapToDouble(Employee::getSalary)\n .average()\n .getAsDouble()); \n \n System.out.printf(\"Number of Lastnames beginning with B %d\",\n \t list.stream()\n \t .map(Employee::getLastName)\n \t .filter(e->e.charAt(0)=='b' || e.charAt(0)=='B')\n \t .count()); \n \n \n System.out.printf(\"\\nList of Employees with lastname beginning with B %s\",\n \t list.stream()\n \t .map(Employee::getLastName)\n \t .filter(e->(e.charAt(0)=='b' || e.charAt(0)=='B'))\n \t .collect(Collectors.toList()\n \t \t\t )); \n \n List<Employee> lastbyB =\n \t list.stream()\n \t .filter(s -> s.getLastName().startsWith(\"B\")||s.getLastName().startsWith(\"b\"))\n \t .collect(Collectors.toList()) ;\n \n System.out.printf(\n \t \"\\nFirst and Lastname upper case \\n\\n\");\n \n \n list.stream()\n\t .filter(s -> s.getLastName().startsWith(\"B\"))\n .map(emp ->{ \n \t return \n \t\t\t new Employee(emp.getFirstName().toUpperCase(), \n \t\t emp.getLastName().toUpperCase(),emp.getSalary(),\n \t\t emp.getDepartment());\n \t })\n .forEach(System.out::println);\n \n System.out.printf(\n \t \"\\nLastname upper case \\n\\n\");\n \n \n\nlist.stream()\n.map(x-> {\n\tif(x.getLastName().startsWith(\"B\")) {\n\treturn new Employee(x.getFirstName(), x.getLastName().toUpperCase(),x.getSalary(),x.getDepartment());\n\t}else {\n\t\treturn new Employee(x.getFirstName(), x.getLastName(),x.getSalary(),x.getDepartment());\n\n\t}\n\t})\n.forEach(System.out::println);\n\nStream<Employee> mstr=list.stream()\n.map(x-> {\n\tif(x.getLastName().startsWith(\"B\")) {\n\treturn new Employee(x.getFirstName(), x.getLastName().toUpperCase(),x.getSalary(),x.getDepartment());\n\t}else {\n\t\treturn new Employee(x.getFirstName(), x.getLastName(),x.getSalary(),x.getDepartment());\n\n\t}\n\t//return new Employee(x.getFirstName(), x.getLastName(),x.getSalary(),x.getDepartment());\n\t});\nStream<Employee> mstr1=list.stream()\n.map(x-> {\n\tif(x.getLastName().startsWith(\"B\")) {\n\treturn new Employee(x.getFirstName(), x.getLastName().toUpperCase(),x.getSalary(),x.getDepartment());\n\t}else {\n\t\treturn new Employee(x.getFirstName(), x.getLastName(),x.getSalary(),x.getDepartment());\n\n\t}\n\t//return new Employee(x.getFirstName(), x.getLastName(),x.getSalary(),x.getDepartment());\n\t});\n\n\n\n\n\nSystem.out.println(\n \"\\nJoining in Employees \\n\\n\"+\nmstr\n.map( Employee::toString)\n.collect(Collectors.joining()));\n\nSystem.out.println(\n \"\\nJoining in Employees with separator\\n\\n\"+\nmstr1\n.map( Employee::toString)\n.collect(Collectors.joining(\"---\\n---\")));\n\n\n\n\nSystem.out.printf(\n \"\\nEmploying with Last Name starting with I, sorted and without duplicate upper case \\n\\n\");\n\nlist.stream()\n.filter(s -> s.getLastName().startsWith(\"I\")||s.getLastName().startsWith(\"i\"))\n.map(e->e.getLastName())\n.sorted()\n.distinct()\n.forEach(System.out::println);\n\nSystem.out.printf(\n \"\\nAverage of Salary %.1f\\n\",\nlist.stream()\n.map(e->e.getSalary()/list.size())\n.reduce(0.0, (x,y)->x+y)\n.doubleValue());\n\nSystem.out.printf(\n \"\\nAverage of Salary %.1f\\n\",\nlist.stream()\n.mapToDouble(Employee::getSalary)\n.average().getAsDouble());\n\nSystem.out.printf(\n \"\\nAverage of Salary %.1f\\n\",\nlist.stream()\n.collect(Collectors.averagingDouble(Employee::getSalary)));\n\nSystem.out.printf(\n \"\\nTotal of Salary %.1f\\n\",\nlist.stream()\n.map(e->e.getSalary())\n.reduce(0.0, (x,y)->x+y)\n.doubleValue());\n\nSystem.out.printf(\n \"\\nFirstname of All Employees\\n\\n\");\n\nlist.stream()\n.map(e->e.getFirstName())\n.forEach(System.out::println);\n\nSystem.out.printf(\n \"\\nInfinite even numbers print the 20 first\\n\\n\");\nIntStream \n\n.iterate(0, i -> i + 2)\n.limit(20)\n.forEach(System.out::println); \n\n \t \n \n }", "public FilterResults performFiltering(CharSequence constraint) {\n FilterResults results = new FilterResults();\n if (constraint == null || constraint.length() == 0) {\n results.values = BaiHatAdapter.this.listSort;\n results.count = BaiHatAdapter.this.listSort.size();\n } else {\n ArrayList<BaiHat> lsSach = new ArrayList<>();\n Iterator it = BaiHatAdapter.this.list.iterator();\n while (it.hasNext()) {\n BaiHat p = (BaiHat) it.next();\n if (String.valueOf(p.getMaBH()).toUpperCase().startsWith(constraint.toString().toUpperCase()) ||\n String.valueOf(p.getTenBH()).toUpperCase().startsWith(constraint.toString().toUpperCase()) ||\n String.valueOf(p.getNamSangTac()).toUpperCase().startsWith(constraint.toString().toUpperCase())) {\n lsSach.add(p);\n }\n }\n results.values = lsSach;\n results.count = lsSach.size();\n }\n return results;\n }", "private Sort() { }", "Comparator<T> sortBy();", "public FilterResults performFiltering(CharSequence constraint) {\n FilterResults results = new FilterResults();\n if (constraint == null || constraint.length() == 0) {\n results.values = CaSiAdapter.this.listSort;\n results.count = CaSiAdapter.this.listSort.size();\n } else {\n ArrayList<CaSi> lsSach = new ArrayList<>();\n Iterator it = CaSiAdapter.this.list.iterator();\n while (it.hasNext()) {\n CaSi p = (CaSi) it.next();\n if (String.valueOf(p.getMaCS()).toUpperCase().contains(constraint.toString().toUpperCase()) || p.getHoTenCS().toUpperCase().contains(constraint.toString().toUpperCase())) {\n lsSach.add(p);\n }\n }\n results.values = lsSach;\n results.count = lsSach.size();\n }\n return results;\n }", "public void sort() {\n }", "@Test void filterAndSortMatches_noFilter() {\n\t\tvar matches = new DogArray<>(BowMatch::new, BowMatch::reset);\n\n\t\tmatches.resize(10);\n\t\tmatches.forIdx(( idx, m ) -> m.identification = idx);\n\t\tmatches.forIdx(( idx, m ) -> m.error = 10 - idx);\n\n\t\t// Limit is greater than the number of matches\n\t\t// All matches should be left, but the order changed\n\t\tBowUtils.filterAndSortMatches(matches, null, 20);\n\t\tassertEquals(10, matches.size);\n\t\tmatches.forIdx(( idx, m ) -> assertEquals(9 - idx, m.identification));\n\n\t\t// Limit is less than the number of matches\n\t\tmatches.forIdx(( idx, m ) -> m.identification = idx);\n\t\tmatches.forIdx(( idx, m ) -> m.error = 10 - idx);\n\t\tBowUtils.filterAndSortMatches(matches, null, 4);\n\t\tassertEquals(4, matches.size);\n\t\tmatches.forIdx(( idx, m ) -> assertEquals(9 - idx, m.identification));\n\t}", "@Test void filterAndSortMatches_Filtered() {\n\t\tvar matches = new DogArray<>(BowMatch::new, BowMatch::reset);\n\n\t\t// Limit is greater than the number of matches, before filtering\n\t\t// The filter will remove all odd ID and return half\n\t\tmatches.resize(50);\n\t\tmatches.forIdx(( idx, m ) -> m.identification = idx);\n\t\tmatches.forIdx(( idx, m ) -> m.error = 50 - idx);\n\t\tBowUtils.filterAndSortMatches(matches, ( id ) -> id%2==0, 100);\n\t\tassertEquals(25, matches.size);\n\t\tmatches.forIdx(( idx, m ) -> assertEquals(48 - idx*2, m.identification));\n\n\t\t// Limit is greater than the number of matches, after filtering\n\t\tmatches.resize(50);\n\t\tmatches.forIdx(( idx, m ) -> m.identification = idx);\n\t\tmatches.forIdx(( idx, m ) -> m.error = 50 - idx);\n\t\tBowUtils.filterAndSortMatches(matches, ( id ) -> id%2==0, 27);\n\t\tassertEquals(25, matches.size);\n\t\tmatches.forIdx(( idx, m ) -> assertEquals(48 - idx*2, m.identification));\n\n\t\t// Limit is less than the number of matches, after filtering\n\t\tfor (int limit = 5; limit < 20; limit++) {\n\t\t\tmatches.resize(50);\n\t\t\tmatches.forIdx(( idx, m ) -> m.identification = idx);\n\t\t\tmatches.forIdx(( idx, m ) -> m.error = 50 - idx);\n\t\t\tBowUtils.filterAndSortMatches(matches, ( id ) -> id%2==0, limit);\n\t\t\tassertEquals(limit, matches.size);\n\t\t\tmatches.forIdx(( idx, m ) -> assertEquals(48 - idx*2, m.identification));\n\t\t}\n\t}", "public static void main(String[] args) {\r\n\t\tList<Account> accounts = new ArrayList<Account>() {\r\n\t\t\t{\r\n\t\t\t\tadd(new Account(\"Bob\", 5000, 1001));\r\n\t\t\t\tadd(new Account(\"Jim\", 10000, 1002));\r\n\t\t\t\tadd(new Account(\"Bruce\", 5300, 1003));\r\n\t\t\t\tadd(new Account(\"Li\", 12000, 1004));\r\n\t\t\t\tadd(new Account(\"Sam\", 9000, 1005));\r\n\t\t\t\tadd(new Account(\"Rick\", 11000, 1006));\r\n\t\t\t}\r\n\t\t};\r\n\t\tBiFunction<List<Account>, Integer, List<Account>> MYLIB = (list, f) -> {\r\n\t\t\treturn list.stream().filter(e -> e.getBalance() > f).collect(Collectors.toList());\r\n\t\t};\r\n\t\tMYLIB.apply(accounts, 2000).forEach(x -> System.out.println(x.getOwnerName()));\r\n\t\tMYLIB.apply(accounts, 40000).forEach(x -> System.out.println(x.getOwnerName()));\r\n\t\taccounts.stream().filter(a -> a.getBalance() > 50000).collect(Collectors.toList());\r\n\t\tclass A {\r\n\t\t\tpublic A() {\r\n\r\n\t\t\t}\r\n\t\t\t boolean test() {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tpublic String toString(){\r\n\t\t\t\treturn test() + \"\";\r\n\t\t\t}\r\n\t\t};\r\n\r\n//\t\tA a = new A();\r\n//\t\taccounts.stream().filter(A::test).collect(Collectors.toList());\r\n\t\tStream.generate(A::new).limit(10).forEach(System.out::println);\r\n//\t\ts.forEach(System.out::println);\r\n\t\t//sorting code here\r\n\t\tSystem.out.println(\"----------------------------\");\r\n\t\tSystem.out.println(accounts);\r\n\t\tCollections.sort(accounts, Comparator.comparing(Account::getBalance).thenComparing(Account::getOwnerName).reversed());\r\n//\t\tCollections.sort(accounts, Comparator.comparing(Account::getBalance).thenComparing(Account::getOwnerName));\r\n\t\tSystem.out.println(accounts);\r\n\t\tMyF f = new MyF();\r\n\t\tList<Integer> n = Arrays.asList(1, 2, 3, 4,5, 6, 7);\r\n\t\tf.filter(n, (x) -> ((int) x) > 3).forEach(System.out::println);\r\n\t}", "public void sortBasedYearService();", "public String sortBy();", "@Override\n public Filter getFilter() {\n\n return new Filter() {\n @Override\n protected FilterResults performFiltering(CharSequence charSequence) {\n\n String charString = charSequence.toString();\n\n if (charString.isEmpty()) {\n\n mDataset = mArrayList;\n } else {\n\n ArrayList<DataObject> filteredList = new ArrayList<>();\n\n for (DataObject data : mArrayList) {\n\n if (data.getid().toLowerCase().contains(charString.toLowerCase()) || data.getname().toLowerCase().contains(charString.toLowerCase())) {\n\n filteredList.add(data);\n }\n }\n\n mDataset = filteredList;\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = mDataset;\n return filterResults;\n }\n\n @Override\n protected void publishResults(CharSequence charSequence, FilterResults filterResults) {\n mDataset = (ArrayList<DataObject>) filterResults.values;\n notifyDataSetChanged();\n }\n };\n }", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "public void filterArticles() {\n filterAgent.score(articles, filterType);\n articles = insertionSort(articles); // sorted articles list\n\n refreshTable();\n if (articles.size() > 0) {\n currentArt = (NewsArticle) articles.elementAt(0);\n }\n }", "void sort();", "void sort();", "public static void main(String[] args) {\n ArrayList<Pessoa> pessoas = new ArrayList<>();\n Scanner s = new Scanner(System.in);\n char sin;\n \n //Identifica como o filtro deve ser realizado\n System.out.println(\"Deseja filtrar por nome (1) ou idade (2)?\");\n sin = s.next().charAt(0); \n \n //Instancia e povoa a primeira pessoa\n Pessoa pessoa1 = new Pessoa();\n pessoa1.setNome(\"Carlos\");\n pessoa1.setIdade(32);\n \n //Instancia e povoa a segunda pessoa\n Pessoa pessoa2 = new Pessoa();\n pessoa2.setNome(\"Izabel\");\n pessoa2.setIdade(21);\n \n //Instancia e povoa a terceira pessoa\n Pessoa pessoa3 = new Pessoa();\n pessoa3.setNome(\"Ademir\");\n pessoa3.setIdade(34); \n \n //Adiciona objetos no ArrayList\n pessoas.add(pessoa1);\n pessoas.add(pessoa2);\n pessoas.add(pessoa3);\n \n //Compara utilizando Comparator - necessario utilizar para permitir a criaçao de dois metodos de comparaçao\n if(sin == '1'){\n Collections.sort(pessoas, comparaNome());\n }else if(sin == '2'){\n Collections.sort(pessoas, comparaIdade());\n }\n \n //Imprime as pessoas considerando a ordem do sort\n System.out.println(\"Saida do comparator: \");\n for(Pessoa p : pessoas){\n System.out.println(\"Nome: \" +p.getNome()+ \" Idade: \" + p.getIdade());\n }\n \n //Compara utilizando Comparable - somente ordenara de acordo com a implementaçao do metodo na clase de origem - somente uma implementaçao\n //O que nao permitira variar entre atributos de ordenaçao diferentes.\n System.out.println(\"\\nSaida do comparable (Filtro atual por idade): \");\n Collections.sort(pessoas);\n for(Pessoa p : pessoas){\n System.out.println(\"Nome: \" +p.getNome()+ \" Idade: \" + p.getIdade());\n }\n \n }", "List<E> findAll(Sort sort);", "private static Comparator<Person> comparator(CrudFilter filter) {\n return filter.getSortOrders().entrySet().stream()\n .map(sortClause -> {\n try {\n Comparator<Person> comparator\n = Comparator.comparing(person ->\n (Comparable) valueOf(sortClause.getKey(), person));\n\n if (sortClause.getValue() == SortDirection.DESCENDING) {\n comparator = comparator.reversed();\n }\n\n return comparator;\n } catch (Exception ex) {\n return (Comparator<Person>) (o1, o2) -> 0;\n }\n })\n .reduce(Comparator::thenComparing)\n .orElse((o1, o2) -> 0);\n }", "public interface DataFilter {\n double getPrediction(User user, Item item);\n\n /**\n * @param user\n * @param n\n * @return List of item ids\n * */\n List<ItemPredictionLink> getTopNForUser(User user, int n);\n}", "public void filterAndPrint(List<Student> students, Predicate<Student> filter, Consumer<Student> action, Comparator<Student> sort) {\n\t\t// I have filter the list and sorted it, Also forLoop print the result.\n\t\tstudents.stream().filter(filter).sorted(sort).forEach(action);\n\t}", "List<ArticleDTO> getFilteredByTwo(ArticlesFilterDTO filterDTO) throws ApiException;", "public void refreshDataFilter();", "public interface CustomerSubsetFilterStrategy {\r\n Set<Customer> applyFilter(List<Customer> customers);\r\n}", "public String askArrFilter();", "List<Receta> getAll(String filter);", "public List<StudentRecord> filter(IFilter filter) {\n\t\tList<StudentRecord> temporaryList = new ArrayList<>();\n\n\t\tfor (StudentRecord studentRecord : studentRecords) {\n\t\t\tif (filter.accepts(studentRecord)) {\n\t\t\t\ttemporaryList.add(studentRecord);\n\t\t\t}\n\t\t}\n\t\treturn temporaryList;\n\t}", "boolean isPreFiltered();", "private void applyFilters() {\n Task task = new Task() {\n @Override\n public Object call() {\n long start = System.currentTimeMillis();\n System.out.println(\"Applying filters! \" + filterList.size());\n filteredRowItemList = fullCustomerRowItemList;\n for (CustomerListFilter eachFilter : filterList) {\n eachFilter.setCustomerList(filteredRowItemList);\n filteredRowItemList = eachFilter.run();\n }\n System.out.println(\"Filtering took : \" + (System.currentTimeMillis() - start) + \" ms\");\n searchResultsTable.setItems(filteredRowItemList);\n customerCountStatus.setText(Integer.toString(filteredRowItemList.size()));\n return null;\n }\n };\n task.run();\n }", "public String doSort();", "Collection<T> doFilter(RepositoryFilterContext context);", "ObservableList<Booking> getFilteredBookingList();", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private interface FilterFunction\n\t{\n\t\tpublic Boolean filter(Review review);\n\t}", "ObservableList<Patient> getFilteredPatientList();", "public void scan()\n\t{\n\t\t// TODO \n\t\tAbstractSorter aSorter = null; \n\t\tscanTime = 0;\n\t\tswitch (sortingAlgorithm) {\n\t\tcase SelectionSort:\n\t\t\taSorter = new SelectionSorter(points);\n\t\t\tbreak;\n\t\tcase InsertionSort:\n\t\t\taSorter = new InsertionSorter(points);\n\t\t\tbreak;\n\t\tcase MergeSort:\n\t\t\taSorter = new MergeSorter(points);\n\t\t\tbreak;\n\t\tcase QuickSort:\n\t\t\taSorter = new QuickSorter(points);\n\t\t\tbreak;\n\t\t}\n\t\t// set up x\n\t\taSorter.setComparator(0);\n\t\tlong st = System.nanoTime();\n\t\taSorter.sort();\n\t\tint mx = aSorter.getMedian().getX();//median x\n\t\tscanTime = System.nanoTime() - st;\n\t\t//set up y\n\t\taSorter.setComparator(1);\n\t\tst = System.nanoTime();\n\t\taSorter.sort();\n\t\tscanTime = scanTime + (System.nanoTime() - st);\n\t\tint my = aSorter.getMedian().getY();//median y\n\t\tmedianCoordinatePoint = new Point(mx, my);\n\t\tst = System.nanoTime();\n\t\taSorter.sort();\n\t\tscanTime = scanTime + (System.nanoTime() - st);\n\t\taSorter.getPoints(points);\n\t\t// create an object to be referenced by aSorter according to sortingAlgorithm. for each of the two \n\t\t// rounds of sorting, have aSorter do the following: \n\t\t// \n\t\t// a) call setComparator() with an argument 0 or 1. \n\t\t//\n\t\t// b) call sort(). \t\t\n\t\t// \n\t\t// c) use a new Point object to store the coordinates of the Median Coordinate Point\n\t\t//\n\t\t// d) set the medianCoordinatePoint reference to the object with the correct coordinates.\n\t\t//\n\t\t// e) sum up the times spent on the two sorting rounds and set the instance variable scanTime. \n\t\t\n\t}", "private static List<StudentRecord> vratiSortiranuListuOdlikasa(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t.filter(o -> o.getOcjena() == 5)\n\t\t\t\t.sorted((o1, o2) -> o1.getOcjena().compareTo(o2.getOcjena()))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public List<Cuenta> buscarCuentasList(Map filtro);", "private void filterData(String tit, String loc, String datef, String datet, String cat, String cou){\n String t = tit;\n String l = loc;\n String df = datef;\n String dt = datet;\n String c = cat;\n String country = cou;\n filteredData.clear();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\", Locale.US);\n\n //All empty\n if(t.length() == 0 && country.length() == 0 && c.length() == 0){\n for(int i = 0; i < data.size(); i++){\n filteredData.add(data.get(i));\n }\n }\n\n //only title\n if(t.length() != 0 && country.length() == 0 && c.length() == 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getTitle().equals(t)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //only country\n if(t.length() == 0 && country.length() != 0 && c.length() == 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getCountry().equals(country)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //only category\n if(t.length() == 0 && country.length() == 0 && c.length() != 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getCategory().equals(c)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //only date\n if(t.length() == 0 && country.length() == 0 && c.length() == 0 && df.length() != 0 && dt.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title and country\n if(t.length() != 0 && country.length() != 0 && c.length() == 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getTitle().equals(t) && data.get(i).getCountry().equals(country)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title and category\n if(t.length() != 0 && country.length() == 0 && c.length() != 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getCategory().equals(c) && data.get(i).getTitle().equals(t)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title, date\n if(t.length() != 0 && country.length() == 0 && c.length() == 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getTitle().equals(t) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //country, category\n if(t.length() == 0 && country.length() != 0 && c.length() != 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getCategory().equals(c) && data.get(i).getCountry().equals(country)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //country, date\n if(t.length() == 0 && country.length() != 0 && c.length() == 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getCountry().equals(country) && data.get(i).getTitle().equals(t) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //category, date\n if(t.length() == 0 && country.length() == 0 && c.length() != 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getCategory().equals(c) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title, country, category\n if(t.length() != 0 && country.length() != 0 && c.length() != 0 && df.length() == 0){\n for(int i = 0; i < data.size(); i++){\n if(data.get(i).getTitle().equals(t) && data.get(i).getCountry().equals(country) && data.get(i).getCategory().equals(c)){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title, country, date\n if(t.length() != 0 && country.length() != 0 && c.length() == 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getTitle().equals(t) && data.get(i).getCountry().equals(country) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title, category, date\n if(t.length() != 0 && country.length() == 0 && c.length() != 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getTitle().equals(t) && data.get(i).getCategory().equals(c) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n\n //country, category, date\n if(t.length() == 0 && country.length() != 0 && c.length() != 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getCategory().equals(c) && data.get(i).getCountry().equals(country) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n\n //title, country, category and date\n if(t.length() != 0 && country.length() != 0 && c.length() != 0 && df.length() != 0){\n for(int i = 0; i < data.size(); i++){\n String dateeee = data.get(i).getDate();\n try {\n datefrom = dateFormat.parse(df);\n dateto = dateFormat.parse(dt);\n datadate = dateFormat.parse(dateeee);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(data.get(i).getTitle().equals(t) && data.get(i).getCategory().equals(c) && data.get(i).getCountry().equals(country) && datadate.compareTo(datefrom) >= 0 && datadate.compareTo(dateto) <= 0){\n filteredData.add(data.get(i));\n }\n }\n }\n }", "@Override\n protected void publishResults(CharSequence arg0, FilterResults arg1) {\n FilteredObjects = (ArrayList<Com_ItemObject>) arg1.values;\n notifyDataSetChanged();\n }", "public static void main(String[] args) {\n ArrayList<SortObjects> a = new ArrayList<SortObjects>();\n\n SortObjects o = new SortObjects(\"Latha\", 23, 26000);\n SortObjects o2= new SortObjects(\"Ramya\", 20, 11000);\n SortObjects o3= new SortObjects(\"Kalai\", 29, 30000);\n SortObjects o4= new SortObjects(\"Vidya\", 24, 25000);\n a.add(o);\n a.add(o2);\n a.add(o3);\n a.add(o4);\n SortComparator s = new SortComparator();\n a.sort(s);\n System.out.println(a);\n \n \n\n\t}", "private static List<StudentRecord> vratiSortiranuListuOdlikasa(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t\t\t.filter(s -> s.getGrade() == 5)\n\t\t\t\t\t\t.sorted(StudentRecord.BY_POINTS.reversed())\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "public static void sorting() {\n List<String> wordList = new ArrayList<>();\n for (int i = 0; i < 500000; i++)\n wordList.add(UUID.randomUUID().toString());\n\n //Sort and filter the list using compare to sequentially\n long t1s = System.nanoTime();\n List<String> a =wordList.stream()\n .filter((String s) -> s.contains(\"Z\") ? true : false)\n .sorted((s1, s2) -> s1.compareTo(s2))\n .collect(Collectors.toList());\n long t1d = System.nanoTime() - t1s;\n\n //Sort and filter the list using compare to in parallel\n long t2s = System.nanoTime();\n List<String> b = wordList.parallelStream()\n .filter((String s) -> s.contains(\"Z\") ? true : false)\n .sorted((s1, s2) -> s1.compareTo(s2))\n .collect(Collectors.toList());\n long t2d = System.nanoTime() - t2s;\n\n System.out.println(\"Filter + Sort Serial time : \" + t1d);\n System.out.println(\"Filter + Sort Parallel time : \" + t2d);\n }", "List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter, Predicate<DeviceDetails> deviceFilter2, Predicate<DeviceDetails> deviceFilter3);", "void sortV();", "public ArrayList<CustomerWithGoods> filterValued() {\n\t\tArrayList<CustomerWithGoods> richCustomers = new ArrayList<>();\n\t\t// uses method above to calculate average order price\n\t\tint averageOrderPrice = averageOrderPrice();\n\n\t\tfor (CustomerWithGoods customerWithGoods : allCustomers) {\n\t\t\tif (customerWithGoods.valueOfGoods() > averageOrderPrice) {\n\t\t\t\trichCustomers.add(customerWithGoods);\n\t\t\t}\n\t\t}\n\t\treturn richCustomers;\n\t}", "List<DeviceDetails> getDevices(Predicate<DeviceDetails> deviceFilter, Predicate<DeviceDetails> deviceFilter1);", "@VTID(28)\n boolean getSortUsingCustomLists();", "public void filter(List<String> filters){\n filteredList.clear();\n\n if(filters == null || filters.size() == 0 || filters.get(0).toLowerCase().equals(\"NONE\")){\n filteredList = new ArrayList<>(sensorList);\n }\n\n for(int i=0; i<sensorList.size(); i++) {\n for (int j = 0; j < filters.size(); j++) {\n if(!filteredList.contains(sensorList.get(i))) {\n if (sensorList.get(i).getSensor_Type().equals(filters.get(j))) {\n filteredList.add(sensorList.get(i));\n }\n if (filters.get(j).equals(\"Heartbeat=0\")) {\n if (sensorList.get(i).getSensor_Type().equals(\"HeartRate\") && sensorList.get(i).getSensor_Val() == 0) {\n filteredList.add(sensorList.get(i));\n }\n }\n if (filters.get(j).equals(\"Tripped Vibration Sensor\")) {\n if (sensorList.get(i).getSensor_Type().equals(\"Vibration\") && sensorList.get(i).getSensor_Val() > 0) {\n filteredList.add(sensorList.get(i));\n }\n }\n if (filters.get(j).equals(\"Health=Service\")) {\n if (sensorList.get(i).getSensorHealth().equals(\"Service\")) {\n filteredList.add(sensorList.get(i));\n }\n }\n if (filters.get(j).equals(\"Health=EOL\")) {\n if (sensorList.get(i).getSensorHealth().equals(\"EOL\")) {\n filteredList.add(sensorList.get(i));\n }\n }\n if (filters.get(j).equals(\"Dead Battery\")) {\n if (sensorList.get(i).getBattery() == 0) {\n filteredList.add(sensorList.get(i));\n }\n }\n }\n }\n }\n filteredListForSearch.clear();\n filteredListForSearch.addAll(filteredList);\n removeDuplicates();\n notifyDataSetChanged();\n }", "public interface CollectionFilter<T> {\n Collection<Product> filter(Collection<T> toFilter);\n}", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "void printFilteredItems();", "@Override//过滤器执行顺序,当一个请求在同一个阶段的时候,存在多个过滤器的时候,多个过滤器的执行顺序问题\r\n\tpublic int filterOrder() {\n\t\treturn 0;\r\n\t}", "private void updateFilteredData() {\n mainApp.getFilteredData().clear();\n\n for (FilmItem p : mainApp.getFilmData()) {\n if (matchesFilter(p)) {\n \tmainApp.getFilteredData().add(p);\n }\n }\n }", "public void sortCompetitors(){\n\t\t}", "@Override\n\tList<Item> findAll(Sort sort);", "@Override\n public List<HotelMinimalResponseDTO> getHotelsByFilter(HotelFilterRequestDTO hotelFilterRequest) {\n List<Hotel> hotels = hotelRepository.findByLocationIgnoreCaseAndDeletedFalse(hotelFilterRequest.getCity());\n boolean filterByRooms = !ObjectUtils.isEmpty(hotelFilterRequest.getNumberOfRoomsRequired());\n boolean filterByTravellers = !ObjectUtils.isEmpty(hotelFilterRequest.getNumberOfTravellers());\n boolean filterByRating = !ObjectUtils.isEmpty(hotelFilterRequest.getRating());\n boolean filterByFacilities = hotelFilterRequest.getFacilities() != null && hotelFilterRequest.getFacilities().size() > 0;\n List<HotelMinimalResponseDTO> hotelMinimalResponses = hotels.stream()\n .filter(hotel -> {\n boolean roomFilter = !filterByRooms || (\n hotel.getRooms() != null && hotel.getRooms().size() > 0 &&\n getTotalNumberOfRooms(hotel) >= hotelFilterRequest.getNumberOfRoomsRequired()\n );\n boolean travelFilter = !filterByTravellers || (\n hotel.getRooms() != null && hotel.getRooms().size() > 0 &&\n getTotalRoomsCapacity(hotel) >= hotelFilterRequest.getNumberOfTravellers()\n );\n boolean ratingFilter = !filterByRating || (\n hotel.getReviews() != null && hotel.getReviews().size() > 0 &&\n getAverageRating(hotel) >= hotelFilterRequest.getRating()\n );\n List<String> facilities = new ArrayList<>();\n if (filterByFacilities) {\n facilities = getCombinedFacilities(hotel);\n }\n List<String> distinctHotelFacilities = facilities.stream().distinct().collect(Collectors.toList());\n boolean facilitiesFilter = !filterByFacilities || (distinctHotelFacilities.containsAll(hotelFilterRequest.getFacilities()));\n return roomFilter && travelFilter && ratingFilter && facilitiesFilter;\n })\n .map(this::makeHotelMinimalResponseDTO)\n .collect(Collectors.toList());\n logger.info(\"Fetched hotels information by filters successfully\");\n String sortOrder = hotelFilterRequest.getSortOrder() != null ? hotelFilterRequest.getSortOrder().equalsIgnoreCase(\"DESC\") ? \"DESC\" : \"ASC\" : \"ASC\";\n if (\"COST\".equalsIgnoreCase(hotelFilterRequest.getSortBy())) {\n hotelMinimalResponses.sort((o1, o2) -> {\n if (o1.getAverageRating().equals(o2.getAverageRating())) {\n return 0;\n } else if (o1.getAverageRating() > o2.getAverageRating()) {\n return sortOrder.equals(\"DESC\") ? -1 : 1;\n } else {\n return sortOrder.equals(\"DESC\") ? 1 : -1;\n }\n });\n }\n return hotelMinimalResponses;\n }", "public static void main(String[] args) {\n ArrayList<Integer> list=new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n list.add(5);\n Util res=new Util(list).filter(new Gt(),2).filter(new Gt(),3).filter(new Gt(),4);\n res.dis();\n }", "public interface ArmorFilter {\n List<Equipment> filter(List<Equipment> equipmentList);\n}", "protected void addExampleFiltering(Criteria criteria, Map params) {\n FarmIcsConversion entity = (FarmIcsConversion) params.get(FILTER);\n if (entity != null) {\n\n criteria.createAlias(\"farmer\", \"f\");\n // criteria.createAlias(\"farm\", \"fm\");\n \n \n if (!ObjectUtil.isEmpty(entity.getFarmer()) && entity.getFarmer().getId()!=0)\n criteria.add(Restrictions.eq(\"f.id\", entity.getFarmer().getId()));\n /* \n if (!ObjectUtil.isEmpty(entity.getFarm()) && entity.getFarm().getId()!=0)\n criteria.add(Restrictions.eq(\"fm.id\", entity.getFarm().getId()));*/\n \n // sorting direction\n String dir = (String) params.get(DIR);\n // sorting column\n String sort = (String) params.get(SORT_COLUMN);\n if (dir.equals(DESCENDING)) {\n // sort descending\n criteria.addOrder(Order.desc(sort));\n } else {\n // sort ascending\n criteria.addOrder(Order.asc(sort));\n }\n }\n }", "public static void main(String[] args) {\n Main mainInstance = new Main();\n mainInstance.oldSort();\n mainInstance.lambdaSort();\n mainInstance.oldFilter();\n mainInstance.lambdaFilter();\n }", "ObservableList<Venue> getFilteredVenueList();", "List<User> getUsersSortedByNameAndAge(List<User> users);", "@NotNull\n EntityIterable asSortResult();", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "protected FilterResults performFiltering(CharSequence prefix) {\n\t\t\tFilterResults results = new FilterResults();\n\t\t\t\n\t\t\t//Every time you type something, start from scratch\n\t\t\tcountries.clear();\n\t\t\tresults.values=null;\n\t\t\tcountries.addAll(countriesBackup);\n\n\t\t\t// No prefix is sent to filter by so we're going to send back the\n\t\t\t// original array\n\t\t\tif (prefix == null || prefix.length() == 0) {\n\t\t\t\tsynchronized (mLock) {\n\t\t\t\t\tLog.d(\"sf\", \"Size of data: \" + Integer.toString(countries.size()));\n\t\t\t\t\tLog.d(\"sf\", \"Size of databackup: \" + Integer.toString(countriesBackup.size()));\n\t\t\t\t\t\n\t\t\t\t\t//reset data\n\t\t\t\t\tresults.values = countriesBackup;\n\t\t\t\t\tresults.count = countriesBackup.size();\n\t\t\t\t\t\n\t\t\t\t\t//data.addAll(dataBackup);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsynchronized (mLock) {\n\n\t\t\t\t\t// Compare lower case strings\n\t\t\t\t\tString prefixString = prefix.toString().toLowerCase();\n\t\t\t\t\tfinal ArrayList<Country> filteredItems = new ArrayList<Country>();\n\t\t\t\t\t// Local to here so we're not changing actual array\n\t\t\t\t\tfinal ArrayList<Country> localItems = new ArrayList<Country>();\n\t\t\t\t\tlocalItems.addAll(countries);\n\n\n\t\t\t\t\tfinal int count = localItems.size();\n\n\t\t\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\t\t\tfinal Country item = localItems.get(i);\n\t\t\t\t\t\tfinal String itemName = item.getName().toString()\n\t\t\t\t\t\t\t\t.toLowerCase();\n\n\t\t\t\t\t\t// First match against the whole, non-splitted value\n\t\t\t\t\t\tif (itemName.contains(prefixString)) {\n\t\t\t\t\t\t\tfilteredItems.add(item);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t} /*\n\t\t\t\t\t\t * This is option and taken from the source of\n\t\t\t\t\t\t * ArrayAdapter final String[] words =\n\t\t\t\t\t\t * itemName.split(\" \"); final int wordCount =\n\t\t\t\t\t\t * words.length;\n\t\t\t\t\t\t * \n\t\t\t\t\t\t * for (int k = 0; k < wordCount; k++) { if\n\t\t\t\t\t\t * (words[k].startsWith(prefixString)) {\n\t\t\t\t\t\t * newItems.add(item); break; } } }\n\t\t\t\t\t\t */\n\t\t\t\t\t}\n\n\t\t\t\t\t// Set and return\n\t\t\t\t\tresults.values = filteredItems;\n\t\t\t\t\tresults.count = filteredItems.size();\n\t\t\t\t}// end synchronized\n\t\t\t}\n\n\t\t\treturn results;\n\t\t}", "public abstract void updateFilter();", "ObservableList<Task> getFilteredTaskList();", "public interface iFilter {\n\n /**\n * method to add a value to datastructure.\n *\n * @param value\n */\n void add(String value);\n\n /**\n * method to check whether datastructure has value.\n *\n * @param value\n * @return boolean\n */\n boolean contains(String value);\n}", "public Collection<Object> getOrderedTestNames(Map<String,String> filter) throws\n NEDSSSystemException , InvalidSRTFilterKeysException {\n\n\n\n ArrayList<Object> returnSet = null;\n String programArea = null;\n String condition = null;\n String orderingFacility = null;\n String orderedTest = null;\n\n programArea = (String) filter.get(SRTFilterKeys.PROGRAM_AREA_CODE);\n condition = (String) filter.get(SRTFilterKeys.CONDITION_CODE);\n orderingFacility = (String) filter.get(SRTFilterKeys.REPORTING_FACILITY_ID);\n orderedTest = (String) filter.get(SRTFilterKeys.ORDERED_TEST_CODE);\n\n if (filter.size() == 1) {\n if (orderingFacility != null)\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByOrderingFacility(orderingFacility);\n else {\n throw new InvalidSRTFilterKeysException(\"Invalid Filter Key Exception\");\n\n }\n }\n else\n {\n if (programArea != null && orderingFacility != null)\n {\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByPA(programArea, orderingFacility);\n if(returnSet == null)\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByPA(programArea, \"DEFAULT\");\n }\n\n else if (condition != null && orderingFacility != null)\n {\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByCondition(condition, orderingFacility);\n if(returnSet == null)\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByCondition(condition, \"DEFAULT\");\n }\n\n else if(orderedTest != null && orderingFacility != null)\n {\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByOrderingFacilityAndTest(orderingFacility, orderedTest);\n if(returnSet == null)\n returnSet = (ArrayList<Object> ) getOrderedTestNamesByOrderingFacilityAndTest(\"DEFAULT\",orderedTest);\n }\n else\n throw new NEDSSSystemException(\"Invalid Filter Key Exception\");\n\n }\n\n if (returnSet == null)\n return getOrderedTestNamesByOrderingFacility(\"DEFAULT\");\n else\n return returnSet;\n}", "private void btnFiltrareActionPerformed(java.awt.event.ActionEvent evt) { \n List<Contact> lista = (List<Contact>) listaContacte.stream().filter(Agenda.predicate).sorted(Agenda.map.get(Agenda.criteriu)).collect(Collectors.toList());\n model.clear();\n lista.forEach((o) -> {\n model.addElement(o);\n });\n }", "public ArrayList<Stock> filter(Stock low, Stock high){\n ArrayList<Stock> result = new ArrayList<Stock>();\n ArrayList<Stock> all = this.ShowAll();\n\n//\t\tSystem.out.println(\"in filter\");\n\n for (Stock current : all) {\n StockFilter filter = new StockFilter(low, high, current);\n//\t\t\tSystem.out.println(low.getHigh()+\" \"+high.getHigh());\n//\t\t\tSystem.out.println(current.getHigh());\n\n if (filter.filt())\n result.add(current);\n }\n return result;\n }", "public void updateFilterList() {\n filteredList.clear();\n filteredList.addAll(searchList);\n filteredList.retainAll(mediaCategoryList);\n }", "private void updateFilteredData() {\n\t\tswitch (currentTabScreen) {\n\t\tcase INVENTORY:\n\t\t\tpresentationInventoryData.clear();\n\n\t\t\tfor (RecordObj record: masterInventoryData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationInventoryData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tcase INITIAL:\n\t\t\tpresentationInitialData.clear();\n\n\t\t\tfor (RecordObj record: masterInitialData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationInitialData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tcase SEARCH:\n\t\t\tpresentationSearchData.clear();\n\n\t\t\tfor (RecordObj record: masterSearchData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationSearchData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}// End switch statement\n\t}", "@Override\n protected FilterResults performFiltering(CharSequence arg0) {\n FilterResults filterResults = new FilterResults();\n if (arg0 == null || arg0.length() == 0) {\n filterResults.values = MyArrayObjects;\n filterResults.count = MyArrayObjects.size();\n } else {\n String filterString = arg0.toString().toLowerCase();\n final ArrayList<Com_ItemObject> TempList = new ArrayList<Com_ItemObject>();\n for (Com_ItemObject Sis_ItemObject : MyArrayObjects) {\n //Filters both from Name and Bottom Text\n if ((Sis_ItemObject.getName() + \" \" + Sis_ItemObject.getBottomText()).toLowerCase().contains(filterString)) {\n TempList.add(Sis_ItemObject);\n }\n }\n\n filterResults.values = TempList;\n filterResults.count = TempList.size();\n }\n\n return filterResults;\n }", "public static void main(String[] args) {\n System.out.println(\"hola la concha de tu madre\");\n Persona persona1 = new Persona(\"allan\",28,19040012);\n Persona persona2 = new Persona(\"federico\", 14,40794525);\n Persona persona3 = new Persona(\"pablito\", 66,56654456);\n\n List<Persona> personas= new ArrayList<Persona>();\n personas.add(persona1);\n personas.add(persona2);\n personas.add(persona3);\n\n System.out.println(\"--------Para imprimir la list completa--------\");\n System.out.println(String.format(\"Personas: %s\",personas));\n\n System.out.println(\"----------MAYORES A 21-------------\");\n // mayores a 21\n System.out.println(String.format(\"Mayores a 21: %s\",personas.stream()\n .filter(persona->persona.getEdad() > 21)\n .collect(Collectors.toList())));\n\n System.out.println(\"-----------MENORES A 18-------------------\");\n // menores 18\n System.out.println(String.format(\"menores 18: %s\",personas.stream()\n .filter(persona->persona.getEdad() < 18)\n .collect(Collectors.toList())));\n\n System.out.println(\"---------MAYORES A 21 + DNI >20000000 -------------------\");\n System.out.println(String.format(\"MAYORES A 21 + DNI >20000000: %s\",personas.stream()\n .filter(persona->persona.getEdad() > 21 && persona.getDni()>20000000)\n //.filter( persona->persona.getDni() >20000000) // tambien funciona con este\n .collect(Collectors.toList())));\n\n }", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "public DataSet<T> sort() {\n return toDS(this.getDataStream().sorted());\n }", "public static void main(String[] args) {\n\t\tList<Employee> list = new ArrayList<Employee>();\r\n\t\tlist.add(new Employee(\"Ashish\", new Integer(37), new Double(373727)));\r\n\t\tlist.add(new Employee(\"Ashish\", new Integer(37), new Double(373)));\r\n\t\tlist.add(new Employee(\"Rakesh\", new Integer(37), new Double(373727)));\r\n\r\n\t\tlist.add(new Employee(\"Sakal\", new Integer(25), new Double(3434737)));\r\n\t\tlist.add(new Employee(\"Manish\", new Integer(26), new Double(373727)));\r\n\t\tlist.add(new Employee(\"Manish\", new Integer(37), new Double(373727)));\r\n\r\n\t\t// In collections class one sort method is there which taking two\r\n\t\t// argument\r\n\t\t// one list one one comparator type so here\r\n\t\t// SortBasedOnNameAgeAndSalary is comparator type note: sortimg in\r\n\t\t// assending\r\n\r\n\t\tCollections.sort(list, new SortBasedOnNameAgeAndSalary());\r\n\t\tSystem.out.println(\"after Sorting\" + list);\r\n\t\t// Here i am iterating list and getting sorted result\r\n\t\tfor (Employee employee : list) {\r\n\t\t\tSystem.out.println(employee);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic ArrayList<SchoolValue> getValuesFiltered(Boolean searchByPcode, String pCode, Double radius, Boolean searchByDistrict, String district, Boolean searchByString, String search, Boolean searchByClassSize, int minSize, int maxSize) {\r\n\t\t// 3 preps here, for defensive coding (not bothering to search for something if it's null) and to fill latitude, longitude\r\n\t\t// pCode prep\r\n\t\tLatLong aLatLong = null;\r\n\t\tDouble latitude = 0.0;\r\n\t\tDouble longitude = 0.0;\r\n\t\tif (pCode != null) {\r\n\t\t\taLatLong = findLatLong(pCode);\r\n\t\t\tif (aLatLong != null) {\r\n\t\t\t\tlatitude = aLatLong.getLatitude();\r\n\t\t\t\tlongitude = aLatLong.getLongitude();\r\n\t\t\t} else {\r\n\t\t\t\tsearchByPcode = false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tsearchByPcode = false;\r\n\t\t}\r\n\t\t\r\n\t\t// district prep\r\n\t\tif (district == null)\r\n\t\t\tsearchByDistrict = false;\r\n\t\t\r\n\t\t// search prep\r\n\t\tif (search == null)\r\n\t\t\tsearchByString = false;\r\n\t\t\r\n\t\t// populate a list of districts \r\n\t\tArrayList<District> districts = BCDistricts.getInstance().getDistricts();\r\n\r\n\t\t// populate a list of schools from districts\r\n\t\tArrayList<School> schools = new ArrayList<School>();\r\n\t\tfor (int i = 0; i<districts.size();i++) {\r\n\t\t\tschools.addAll(districts.get(i).schools);\r\n\t\t}\r\n\t\t\r\n\t\t// populate a list of schoolvalues from schools, filtering\r\n\t\tArrayList<SchoolValue> schoolValues = new ArrayList<SchoolValue>();\r\n\t\t\r\n\t\tfor (int i = 0; i<schools.size();i++) {\r\n\t\t\tSchool school = schools.get(i);\r\n\t\t\t// (!searching || result) && (!searching || result) && (!searching || result)\r\n\t\t\t// T T => T, T F => F, F T => T, F F => T\r\n\t\t\t// for a filter component to pass, either we're not searching for something (ignore result)\r\n\t\t\t// or we are and result is true, thus (!searching || result) && (...) format\r\n\t\t\tif ((!searchByPcode || areWithinRange(latitude, longitude, school.getLat(), school.getLon(), radius)) && // TODO: EXTRACT TESTING METHOD\r\n\t\t\t\t(!searchByDistrict || stringMatchesTo(district, school.getDistrict().name)) &&\r\n\t\t\t\t(!searchByString || ( stringMatchesTo(search, school.getName()) ||\r\n\t\t\t\t\t\t\t\t\t\tstringMatchesTo(search, school.getLocation()) || \r\n\t\t\t\t\t\t\t\t\t\tstringMatchesTo(search, school.getDistrict().name))) &&\r\n\t\t\t\t(!searchByClassSize || ((school.getClassSize() >= minSize) && (school.getClassSize() <= maxSize)))) { \r\n\r\n\t\t\tschoolValues.add(school.getEquivSchoolValue());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// TODO: ADD SORTING\r\n\t\t}\r\n\t\t\r\n\t\treturn schoolValues;\r\n\t}" ]
[ "0.6492076", "0.6457671", "0.64271784", "0.63872993", "0.63707256", "0.6368994", "0.62234825", "0.6200468", "0.61985105", "0.6094821", "0.6085224", "0.60395366", "0.60395366", "0.6034337", "0.5996403", "0.5984711", "0.58136207", "0.5797375", "0.5763923", "0.57531625", "0.5741522", "0.572873", "0.57274055", "0.572729", "0.57243997", "0.570998", "0.5701421", "0.5690971", "0.5676782", "0.5672524", "0.56698704", "0.566633", "0.5651692", "0.5648312", "0.56394666", "0.56394666", "0.5630292", "0.56286746", "0.5618689", "0.55918103", "0.55880994", "0.55818444", "0.55813617", "0.55807644", "0.5572642", "0.556445", "0.55270886", "0.5514516", "0.5508778", "0.5506434", "0.5506082", "0.55056226", "0.5496681", "0.54889303", "0.54660296", "0.5441342", "0.5438827", "0.5428287", "0.54187226", "0.5411086", "0.54005635", "0.53867936", "0.5380206", "0.537935", "0.537543", "0.5374152", "0.53707236", "0.5364821", "0.5363106", "0.53595006", "0.5354735", "0.5349982", "0.53403425", "0.53215027", "0.53187823", "0.53174937", "0.5317216", "0.53080386", "0.53009313", "0.5297789", "0.52970076", "0.5295574", "0.52908254", "0.5287316", "0.5282673", "0.5273411", "0.52712476", "0.52691275", "0.526837", "0.5261823", "0.5258868", "0.52549505", "0.5243021", "0.52407515", "0.5237796", "0.5225779", "0.5223956", "0.52235305", "0.5214229", "0.5206147", "0.5203858" ]
0.0
-1
AUDITORY METHODS AUXILIARY GENERIC METHODS
protected Field getPrimaryKeyField() { Field returnField = null; Field[] fieds = MetaData.class.getDeclaredFields(); for (Field field : fieds) { Id annotation = field.getAnnotation(Id.class); EmbeddedId annotationEmb = field.getAnnotation(EmbeddedId.class); if (annotation != null || annotationEmb != null) { return field; } } return returnField; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void audit(String id) throws Exception {\n\t\t\n\t}", "public interface Auditable {\n Date getCreated();\n void setCreated(Date created);\n Date getLastUpdate();\n void setLastUpdate(Date lastUpdate);\n}", "@Override\n\tpublic String audit() throws Throwable {\n\t\treturn null;\n\t}", "public interface WfEventAudit extends BaseBusinessObject { //PersistenceInterface\n\n /**\n A WfEventAudit can be associated with the WfExecutionObject that triggered the\n event. Event audit items are meant to provide information on the execution history of\n workflow object even after the source object has been deleted; in this case, no source\n would be associated with the WfEventAudit.\n <p>The following operation returns the source of the event, when available; if the source is\n not available, a SourceNotAvailable exception is raised.\n */\n WfExecutionObject source () throws BaseException, SourceNotAvailable;\n\n /**\n A WfEventAudit can be associated with the WfExecutionObject that triggered the\n event. Event audit items are meant to provide information on the execution history of\n workflow object even after the source object has been deleted; in this case, no source\n would be associated with the WfEventAudit.\n <p>The following operation returns the source of the event, when available; if the source is\n not available, a SourceNotAvailable exception is raised.\n */\n WfExecutionObject source (SharkTransaction t) throws BaseException, SourceNotAvailable;\n\n /**\n Records the time the status change of the source occurred that triggered the event audit\n item to be created, using the TimeBase::UtcT data type defined by the OMG Time Service.\n */\n UtcT time_stamp () throws BaseException;\n\n /**\n Identifies the specific event type. The following is a set of pre-defined event types;\n implementations of the WfM Facility may decide to support additional audit event\n types.\n <ul>\n <li>processCreated - A WfProcess was created\n <li>processStateChanged - The state of a WfProcess was changed\n <li>processContextChanged - The context of a WfProcess was initialized or changed\n <li>activityStateChanged - The state of a WfActivity was changed\n <li>activityContextChanged - The context of a WfActivity was changed\n <li>activityResultChanged - The result of a WfActivity was set\n <li>activityAssigmentChanged - The status or the resource assignment of a\n WfAssignment was initialized or changed\n </ul>\n */\n String event_type () throws BaseException;\n\n /**\n If the event is triggered by a status change of a WfActivity, the key and the name of the\n activity is recorded with the WfEventAudit. Otherwise, the activity related attributes\n contain a NULL value.\n <p>The following operation returns the key of the WfActivity associated with the event.\n */\n String activity_key () throws BaseException;\n\n /**\n If the event is triggered by a status change of a WfActivity, the key and the name of the\n activity is recorded with the WfEventAudit. Otherwise, the activity related attributes\n contain a NULL value.\n <p>The following operation return the name of the WfActivity associated with the event.\n */\n String activity_name () throws BaseException;\n\n /**\n The key and the name of the WfProcess associated with the source of an event are\n recorded with the WfEventAudit. If the event was triggered by a WfActivity, this is the\n containing WfProcess. If it was triggered by a status change of a WfProcess, it is that\n process.\n <p>The following operation returns the key of the WfProcess associated with the event.\n */\n String process_key () throws BaseException;\n\n /**\n The key and the name of the WfProcess associated with the source of an event are\n recorded with the WfEventAudit. If the event was triggered by a WfActivity, this is the\n containing WfProcess. If it was triggered by a status change of a WfProcess, it is that\n process.\n <p>The following operation returns the name of the WfProcess associated with the event.\n */\n String process_name () throws BaseException;\n\n /**\n The WfProcessMgr associated with the workflow object that triggered the event is\n identified via its name and version. If the event was triggered by a status change of an\n activity, this is the manager of the process that contains the activity. If it was triggered\n by a status change of a process, this is the manager of that process.\n <p>The following operation returns the name of the WfProcessMgr associated with the event.\n */\n String process_mgr_name () throws BaseException;\n\n /**\n The WfProcessMgr associated with the workflow object that triggered the event is\n identified via its name and version. If the event was triggered by a status change of an\n activity, this is the manager of the process that contains the activity. If it was triggered\n by a status change of a process, this is the manager of that process.\n <p>The following operation returns the version of the WfProcessMgr associated with the event.\n */\n String process_mgr_version () throws BaseException;\n\n}", "@Override\r\n\tpublic void writeAudit(AuditWriter w) throws JSONException {\n\r\n\t}", "@Override\n\tpublic String auditBulk() throws Throwable {\n\t\treturn null;\n\t}", "public int getAuditId();", "@Override\n\tpublic void resAuditCommonChange(String caller, int id) {\n\n\t}", "public boolean isAuditable() {\n\t\treturn true;\n\t}", "public void createAuditEntry(JoinPoint jp, Exception reason) {\n Object[] args = jp.getArgs(); //getting an array of objects\n String auditEntry = jp.getSignature().getName() + \": \" + reason;//the format that it's writing in, gets the name of the method that has issue, and it's parameters\n for (Object currentArg : args) { //cycling through the objects in the array\n auditEntry += \" \" + currentArg;\n }\n try { //if there is a problem writing to the audit file\n auditDao.writeAuditEntry(auditEntry);\n } catch (VendingMachinePersistenceException e) {\n System.err.println(\n \"ERROR: Could not create audit entry in LoggingAdvice.\");\n }\n }", "@DISPID(129)\r\n\t// = 0x81. The runtime will prefer the VTID if present\r\n\t@VTID(124)\r\n\tasci.activebatch.IObjectAuditing auditing();", "public static void audit(Object arg0) {\n MDC.put(INVOCATION_ID, MDC.get(MDC_KEY_REQUEST_ID));\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n MDC.put(RESPONSE_CODE, \"0\");\n MDC.put(classNameProp, \"\");\n auditLogger.info(\"{}\", arg0);\n }", "@Override\n\tpublic void resAuditJobEmployee(int je_id, String caller) {\n\n\t}", "abstract protected void _log(TrackingActivity activity) throws Exception;", "public static void addAuditTrail(String clazz, String method, String message, @SuppressWarnings(\"rawtypes\") Class[] paramTypes, Object[] args, Object returnObject) {\n try {\n WorkflowHelper workflowHelper = (WorkflowHelper) appContext.getBean(\"workflowHelper\");\n workflowHelper.addAuditTrail(clazz, method, message, paramTypes, args, returnObject);\n } catch (Exception e) {\n LogUtil.error(WorkflowUtil.class.getName(), e, \"Error add audit trail\");\n }\n }", "abstract protected void _log(Snapshot snapshot) throws Exception;", "public interface AuditLogger<T extends AuditContent> extends AuditFormatter<T>{\n\n /**\n * Log with the givens {@code content}.\n *\n * @param content the audio content instance\n */\n public void log(T content);\n\n}", "LogAction createLogAction();", "abstract protected void _log(TrackingEvent event) throws Exception;", "private void logEvent(String operation, EntryEvent event) {\n}", "public interface Log {\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @param handler 添加handler.\n * @author admin\n */\n default void addHandler(Handler handler) {\n //\n }\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @param newLevel 设置日志级别.\n * @throws SecurityException 抛出安全异常.\n * @author admin\n */\n default void setLevel(final Level newLevel) throws SecurityException {\n //\n }\n\n /**\n * 信息日志.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @param args 日志消息格式化填充对象.\n * @author admin\n */\n void info(final String message, final Object... args);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @author admin\n */\n void info(final String message);\n\n /**\n * 详细日志.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @param args 日志消息格式化填充对象.\n * @author admin\n */\n void debug(final String message, final Object... args);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @author admin\n */\n void debug(final String message);\n\n /**\n * 较详细日志.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @param args 日志消息格式化填充对象.\n * @author admin\n */\n void trace(final String message, final Object... args);\n\n /**\n * 较详细日志.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @author admin\n */\n void trace(final String message);\n\n /**\n * 警告日志.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @param args 日志消息格式化填充对象.\n * @author admin\n */\n void warn(final String message, final Object... args);\n\n /**\n * 较详细日志.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @author admin\n */\n void warn(final String message);\n\n /**\n * 严重日志.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @param args 日志消息格式化填充对象.\n * @author admin\n */\n void error(final String message, final Object... args);\n\n /**\n * 较详细日志.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @author admin\n */\n void error(final String message);\n\n /**\n * 致命错误日志.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @param args 日志消息格式化填充对象.\n * @author admin\n */\n void fatal(final String message, final Object... args);\n\n /**\n * 致命错误日志.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @author admin\n */\n void fatal(final String message);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @param args 日志传递进来的参数.\n * @param message 日志消息.\n * @author admin\n */\n default void off(final String message, final Object... args) {\n //\n }\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @author admin\n */\n default void off(final String message) {\n //\n }\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @param args 日志传递进来的参数.\n * @param message 日志消息.\n * @author admin\n */\n default void all(final String message, final Object... args) {\n //\n }\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @author admin\n */\n default void all(final String message) {\n //\n }\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @param args 日志传递进来的参数.\n * @param message 日志消息.\n * @author admin\n */\n default void config(final String message, final Object... args) {\n //\n }\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @param message 日志消息.\n * @author admin\n */\n default void config(final String message) {\n //\n }\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @return 是否开启调试.\n * @author admin\n */\n default boolean isDebugEnabled() {\n return false;\n }\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @return 是否开启Info.\n * @author admin\n */\n default boolean isInfoEnabled() {\n return false;\n }\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @return 是否开启Warn.\n * @author admin\n */\n default boolean isWarnEnabled() {\n return false;\n }\n}", "public void audit(long oid,String _table,String undo_sql,String new_sql) throws RelationException;", "@Around(\"execution(* *(..)) && @annotation(audit)\")\n\tpublic Object audit(ProceedingJoinPoint jp, Audit audit) throws Throwable {\n\t\tObject[] args = jp.getArgs();\n\n\t\t// Step. Print execution information\n\t\tthis.printBar();\n\t\tthis.print(\"[executing] \" + (props.getInfo().toLowerCase().equals(\"short\") ? jp.getSignature().getName() : jp.getSignature() ));\n\n\t\t// Step. Print arguments if any\n\t\tswitch (audit.value()) {\n\t\tcase BEFORE:\n\t\tcase BEFORE_AND_AFTER:\n\t\t\tthis.printArgs(args);\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\t// Step. Proceed\n\t\tObject obj = jp.proceed(args);\n\n\t\t// Step. Print result if needed\n\t\tswitch (audit.value()) {\n\t\tcase AFTER:\n\t\tcase BEFORE_AND_AFTER:\n\t\t\tthis.print(\"[result] \" + obj);\n\t\tdefault:\n\t\t\tthis.printBar();\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t// Step. Return\n\t\treturn obj;\n\t}", "@DISPID(63)\r\n\t// = 0x3f. The runtime will prefer the VTID if present\r\n\t@VTID(68)\r\n\tasci.activebatch.IObjectAuditing auditing();", "public interface TransactionAuditService {\n\n\n public TransactionAuditList getTransactionAudits();\n\n}", "public interface AuditModel {\n\n\tpublic void setCreatedBy(String createdBy);\n\n\tpublic void setCreatedByName(String createdByName);\n\n\tpublic void setUpdatedBy(String updatedBy);\n\n\tpublic void setUpdatedByName(String updateByName);\n\t\n\tpublic void checkValidity();\n\n}", "public void renderAudit(CoreSession session) throws ClientException;", "public void auditInBill(HashMap<String, Object> params);", "@Override\n public void author(SinkEventAttributes attributes)\n {\n }", "public AuditInfo getAuditInfo() {\n return null;\n }", "public interface LogService {\n \n /**\n * Save a new log record\n * @param logRecord\n * @return \n */\n LogRecord saveLog(LogRecord logRecord);\n \n}", "public Date getAuditDate() {\n return auditDate;\n }", "public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}", "LogRecord saveLog(LogRecord logRecord);", "public interface LoggingAspect {\r\n\r\n\t/**\r\n\t * Log before any joinpoint execution. This is typically a class function,\r\n\t * but could be another aspect advisor as well. The implementation will provide any\r\n\t * advice.\r\n\t *\r\n\t * @param joinPoint the join point (descibed by the pointcut)\r\n\t */\r\n\tpublic void logBefore(JoinPoint joinPoint);\r\n\r\n\t/**\r\n\t * Log after joinpoint execution.\r\n\t *\r\n\t * @param joinPoint the join point (descibed by the pointcut)\r\n\t */\r\n\tpublic void logAfter(JoinPoint joinPoint);\r\n\r\n\t/**\r\n\t * Log after throwing exception joined by the Pointcut expression.\r\n\t *\r\n\t * @param joinPoint the join point\r\n\t * @param e the e\r\n\t */\r\n\tpublic void logAfterThrowing(JoinPoint joinPoint, Throwable e);\r\n\r\n\t/**\r\n\t * Log before annotation this a joinput that will log before anything anotated with \r\n\t * out pointcut annotation. This is for specific debug logging.\r\n\t *\r\n\t * @param joinPoint the join point\r\n\t */\r\n\tpublic void logBeforeAnnotation(JoinPoint joinPoint);\r\n\t\r\n}", "public JHI_ENTITY_AUDIT_EVENT() {\n this(\"jhi_entity_audit_event\", null);\n }", "@Override\n\tpublic int toAudit(int receptionID) {\n\t\treturn settlementDao.toAudit(true,receptionID);\n\t}", "private void Log(String action) {\r\n\t}", "@Override\n public void log()\n {\n }", "@Override\n @Transactional\n public List<AuditLog> logs() {\n\tCompany company = this.authHelper.getAuth().getCompany();\n\tLong companyID = company == null ? null : company.getId();\n\tList<AuditLog> logs = this.companyDAO.logs(companyID);\n\tfor (AuditLog log : logs) {\n\t log.setAuditAction(AuditAction.of(log.getAction()));\n\t}\n\treturn logs;\n }", "public IAuditID getAuditID() {\n return this.auditID;\n }", "public IEventLog getEventLog();", "public abstract void logTraceTime();", "public String getAuditXml();", "@Override\n public void onAuditResult(RPSDK.AUDIT audit, String code) {\n Log.d(TAG, \" audit:\" + audit + \" ---- code -- \" + code);\n if (audit == RPSDK.AUDIT.AUDIT_PASS) {\n // 认证通过。建议接入方调用实人认证服务端接口DescribeVerifyResult来获取最终的认证状态,并以此为准进行业务上的判断和处理\n // do something -- 去支付页面\n openActivity(OpenVIPTypeActivity.class);\n } else if (audit == RPSDK.AUDIT.AUDIT_FAIL) {\n // 认证不通过。建议接入方调用实人认证服务端接口DescribeVerifyResult来获取最终的认证状态,并以此为准进行业务上的判断和处理\n // do something\n } else if (audit == RPSDK.AUDIT.AUDIT_NOT) {\n // 未认证,具体原因可通过code来区分(code取值参见下方表格),通常是用户主动退出或者姓名身份证号实名校验不匹配等原因,导致未完成认证流程\n // do something\n }\n }", "public interface HistoService {\n\n\t/**\n\t * Trace the action of merging 2 subtitles\n\t * \n\t * @param profileOne\n\t * @param profileTwo\n\t * @param userSubConfig the user sub configuration\n\t */\n\tvoid trace(SimpleSubConfig one, SimpleSubConfig two, UserSubConfigBean userSubConfig);\n}", "public void logData(){\n }", "@Override\n public void doAudit(AuditRecord auditRecord, JsonNode inputNode, Shard shard) {\n logger.debug(\"doAudit started\");\n try {\n \t //Creating root node with vertex label\n \t\t//by appending the entity name with _Audit\n \t\tString entityType = auditRecord.getEntityType();\n \t\tif( null != entityType && !(entityType.contains(auditSuffixSeparator+auditSuffix))) {\n \t\t\tentityType = entityType+auditSuffixSeparator+auditSuffix;\n \t\t}\n \t\t\n \tJsonNode rootNode = convertAuditRecordToJson(auditRecord, entityType);\n auditToDB(rootNode, entityType, shard);\n\n } catch (AuditFailedException ae) {\n logger.error(\"Error in saving audit info: {}\", ae);\n } catch (Exception e) {\n logger.error(\"Generic error in saving audit info : {}\", e);\n }\n logger.debug(\"doAudit ends\");\n }", "@Override\n public void date(SinkEventAttributes attributes)\n {\n }", "void saveActivityHistForAddEntity(Record inputRecord);", "public interface OperationLog {\n\t/**\n\t * logTransactionStart method - This method is used log the transaction\n\t * start. The client id and request id is used by the NDC feature of log4j\n\t * to track message for the transaction.\n\t * \n\t * @param aClientId\n\t * @param aRequestId\n\t */\n\tpublic void logTransactionStart(final String aClientId,\n\t\t\tfinal String aRequestId);\n\n\t/**\n\t * logTransactionEnd method - This method is used to log the end of the\n\t * transaction\n\t */\n\tpublic void logTransactionEnd();\n\n\tpublic void info(String message);\n\n\tpublic void error(String message, Exception e);\n\n\tpublic void logMethodStart(String methodName);\n\n}", "@Test\n public void testGetAudit()\n throws SqualeRestException\n {\n ByApplication audit = httpClient.getAudit( auditId );\n assertNotNull( audit );\n }", "@Override\n public void logs() {\n \n }", "public static void audit(String message, Object... arguments) {\n if (!auditLogger.isInfoEnabled()) {\n return;\n }\n MDC.put(INVOCATION_ID, postMdcInfoForEvent(null));\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n MDC.put(RESPONSE_CODE, \"0\");\n if (arguments.length == 1 && !OnapLoggingUtils.isThrowable(arguments[0])) {\n MDC.put(classNameProp, message);\n auditLogger.info(\"{}\", arguments[0] == null ? \"\" : arguments[0].toString());\n return;\n }\n\n MDC.put(classNameProp, \"\");\n auditLogger.info(message, arguments);\n }", "public void renderAudit(CoreSession session, DocumentModel doc) throws ClientException;", "public interface LogAdapter {\n /* renamed from: a */\n String mo131984a();\n\n /* renamed from: a */\n void mo131985a(int i, String str, String str2, Throwable th);\n\n /* renamed from: a */\n void mo131986a(String str, String str2);\n}", "public void testAuditDetail_Accuracy() {\r\n assertNotNull(\"The AuditDetail instance should be created.\", auditDetail);\r\n }", "@Override\npublic void investment() {\n\t\n}", "public interface LogService {\r\n\r\n\t/** \r\n\t * saveLog:保存错误日志. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param info \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid saveExceptionLog(ExceptionLog info);\r\n\t\r\n\t/** \r\n\t * listLogInfo:根据条件获取错误日志信息. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param param\r\n\t * @return \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tList<ExceptionLog> listLogInfo(Map<String,Object> param);\r\n\t\r\n\t\r\n\t/** \r\n\t * removeLogInfo:根据时间删除之前日志信息. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param endTime \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid removeLogInfo(String endTime);\r\n\r\n\t/** \r\n\t * saveOpenInfoLog:保存开放接口日志. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param log \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid saveOpenInfoLog(OpenInfLog log);\r\n\r\n\t/** \r\n\t * saveLogInfo:保存自定义接口日志. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param log \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid saveLogInfo(LogInfo logInfo);\r\n}", "public static void addAuditTrail(String clazz, String method, String message) {\n addAuditTrail(clazz, method, message, null, null, null);\n }", "public abstract void commitSprintBacklog();", "public Date getAuditDate() {\n\t\treturn auditDate;\n\t}", "@Test\n\t@Transactional\n\tpublic void testAudit() throws Exception {\n\t\tProvider provider = providerRepository.findOne(160L);\n\t\tSystem.out.println(\"Status: \" + provider.getStatus());\n\t\tprovider.setStatus(ProviderStatoEnum.ACCREDITATO_PROVVISORIAMENTE);\n\t\tauditReportProviderService.auditAccreditamentoProvider(provider);\n\n\t}", "public void audit( String message )\n {\n _getAuditLogger().info( ILogger.EVENT_CODE.TRANSACTION, message );\n }", "protected abstract void createHistoryEvents();", "public DlyBilngCntrlAudit() {\n\t\tthis(\"DLY_BILNG_CNTRL_AUDIT\", null);\n\t}", "protected static void processEvent( SharedLevel pLevel, int pLogId, Throwable pThrowable, ResponseData pResponseData ) {\n\n // Correct the type of exception to AccessException if needed, only present with Container Managed Security\n if( pThrowable instanceof java.rmi.AccessException ) {\n\n // Correct the reason code\n pResponseData.setReasonCode( SecurityReasonCodeConstants.ACCESS_DENIED, SharedConstants.SHARED_SECURITY_APPLICATION );\n\n // Prepare for the reason code subtext\n ArrayList reasonCodeSubtext = new ArrayList();\n\n // Try to extract the EJB name and method from the error message\n try {\n String errMsg = pThrowable.getMessage();\n int l1 = errMsg.indexOf( \"ejb=\" );\n int l2 = errMsg.indexOf( \", methodInterface\", l1 );\n reasonCodeSubtext.add( errMsg.substring( l1, l2 ) );\n\n // Use generic text if not possible to find the needed information\n } catch( Exception exception ) {\n reasonCodeSubtext.add( \"this function\" );\n }\n\n // Set the reason code subtext\n pResponseData.setReasonCodeSubText( reasonCodeSubtext );\n\n }\n\n // Create additional parameters for the log record\n Object[] parameters = new Object[] { getResponseDataHolder( pResponseData ) };\n\n // Initialize a new log record\n LogRecord logRecord = getLogRecord( pLevel, pLogId );\n logRecord.setParameters( parameters );\n logRecord.setThrown( pThrowable );\n\n // Log the event\n java.util.logging.Logger.getLogger( logRecord.getSourceClassName() ).log( logRecord );\n }", "@Override\n protected void append(LoggingEvent event) {\n if (event.getMessage() instanceof WrsAccessLogEvent) {\n WrsAccessLogEvent wrsLogEvent = (WrsAccessLogEvent) event.getMessage();\n\n try {\n HttpServletRequest request = wrsLogEvent.getRequest();\n if (request != null) {\n String pageHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_PAGEHASH));\n String requestHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_REQUESTHASH));\n String sessionId = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_SESSION_ID));\n String requestUrl = request.getRequestURL().toString();\n String reqQuery = request.getQueryString();\n requestUrl += (reqQuery != null ? \"?\" + reqQuery : \"\");\n if (requestUrl.length()> 2000)\n requestUrl = requestUrl.substring(0, 2000);\n String bindingSetName = wrsLogEvent.getBindingSetName();\n if (bindingSetName != null && bindingSetName.length()> 255)\n bindingSetName = bindingSetName.substring(0, 255);\n String requestXML = wrsLogEvent.getRequestDoc()!=null ? Utils.serializeElement(wrsLogEvent.getRequestDoc()) : null;\n\n // log access\n if(AccessSqlLogger.getInstance().isEnabled()) {\n final AccessSqlLogger.LogRecord recordAccess = new AccessSqlLogger.LogRecord(\n sessionId\n , requestUrl\n , pageHash\n , requestHash\n , bindingSetName\n , requestXML\n , wrsLogEvent.getRowCount()\n , wrsLogEvent.getValueCount()\n , wrsLogEvent.getRsStartTime()\n , wrsLogEvent.getRsEndTime()\n , wrsLogEvent.getWriteDuration()\n , wrsLogEvent.getExecuteDuration()\n );\n AccessSqlLogger.getInstance().process(recordAccess);\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "@Transactional//expect both \"T\" and \"F\"\n\tpublic Object invalidTxInPublicMethod(String action) {\n\t\tuniActionLogDao.insert(\"T\");\n\t\ttry {\n\t\t\tlogInfo12();\n\t\t} catch (Exception e) {\n\t\t\t//do nothing\n\t\t\treturn \"F1\";\n\t\t}\n\t\treturn \"T1\";\n\t}", "public abstract int trace();", "public JHI_ENTITY_AUDIT_EVENT(String alias) {\n this(alias, JHI_ENTITY_AUDIT_EVENT);\n }", "@Override\n public void addAuthorizationLog(EncryptionAuthorization auth) {\n if (auth.getAuthResult() == null)\n throw new RuntimeException();\n addEncryptionAuthorizationLog(auth.getAuthBundle(),\n auth.getAuthResult(), AuthorizationProcess.DATA_SUBJECT_RULES);\n }", "public String persistAuditTrailEntity(IAuditTrailEntity obj) throws AuditTrailTrackingException\n {\n try\n {\n return getDAO().insertAuditTrailEntity(obj);\n }\n catch(Exception ex)\n { \t\n throw new AuditTrailTrackingException(\"Unexpected error in persisting AuditTrailEntity. Error: \"+ex.getMessage()+\": \"+obj, ex);\n }\n }", "public interface VLabAnsByContragentListener\n// extends+ \n\n// extends- \n{\n /**\n * Invoked just before inserting a VLabAnsByContragentBean record into the database.\n *\n * @param pObject the VLabAnsByContragentBean that is about to be inserted\n */\n public void beforeInsert(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after a VLabAnsByContragentBean record is inserted in the database.\n *\n * @param pObject the VLabAnsByContragentBean that was just inserted\n */\n public void afterInsert(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n /**\n * Invoked just before updating a VLabAnsByContragentBean record in the database.\n *\n * @param pObject the VLabAnsByContragentBean that is about to be updated\n */\n public void beforeUpdate(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after updating a VLabAnsByContragentBean record in the database.\n *\n * @param pObject the VLabAnsByContragentBean that was just updated\n */\n public void afterUpdate(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n// class+ \n\n// class- \n}", "private TypicalLogEntries() {}", "@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}", "public interface Action_Aspect extends Action, ExecutableNode_Aspect {\n}", "public void updateAuditTrailEntity(IAuditTrailEntity obj)\n {\n getDAO().update(obj);\n }", "public Date getAuditingTime() {\r\n return auditingTime;\r\n }", "@Override\n public void addAuthorizationLog(DecryptionAuthorization auth) {\n if (auth.getAuthResult() == null)\n throw new RuntimeException();\n addDecryptionAuthorizationLog(auth.getAuthBundle(),\n auth.getAuthResult(), AuthorizationProcess.DATA_SUBJECT_RULES);\n }", "abstract protected void _log(Source src, OpLevel sev, String msg, Object... args) throws Exception;", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "public static void audit(String nume_op) {\n try (FileWriter fileWriter = new FileWriter(\"audit.csv\",true)) {\r\n fileWriter.append(nume_op+\": \"+ LocalDate.now().toString()+'\\n');\r\n } catch (IOException e) {\r\n System.out.println(\"Something went wrong in writeUsingFileWriter method\");\r\n }\r\n }", "@Test(groups ={Slingshot,Regression,CsaAgent})\t\n\t\t\t\tpublic void verifyAuditTrailSearch() throws Exception {\n\t\t\t\t\tReport.createTestLogHeader(\"CSA Journey\", \"To verify the Password Reset functionality\");\n\t\t\t\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"PSABroker\");\n\t\t\t\t\t//deregisterinBgbonline(userProfile); \n\t\t\t\t\t//Register a user \n\t\t\t\t\t/*new PartnerServiceAgentAction()\n\t\t\t\t\t.navigateToPSARegistration()\n\t\t\t\t\t.clickRegisteraUser(userProfile);\n\t\t\t\t\tnew RegistrationAction()\n\t\t\t\t\t.openEncryptURL(userProfile)\n\t\t\t\t\t.fillRegistrationDetails(userProfile)\n\t\t\t\t\t.verifyThankYouPage()\n\t\t\t\t\t.clickLoginLink()\n\t\t\t\t\t.verifyAuditEntry(userProfile)\n\t\t\t\t\t.verifyEmailIdInDb(userProfile);*/\n\t\t\t\t\tnew PartnerServiceAgentAction()\n\t\t\t\t\t.navigateToPSARegistration()\n\t\t\t\t\t.verifyAuditTrail(userProfile);\n\t\t\t\t \n\t\t\t\t}", "public interface UserTrackingLogger {\n\n public long getPositiveImpressionIdForMessage(long messageId);\n\n public long getNegativeImpressionIdForMessage(long messageId);\n\n public long getImpressionIdForMessage(long messageId, String questionText);\n \n public long getTopQuestionImpressionId(long conversationId, String questionText);\n\n public long getNoneOfTheAboveImpressionIdForMessage(long messageId);\n\n public long getForumVisitImpressionIdForMessage(long messageId);\n\n /**\n * Return a list of all impressions for the given message ID that have location=HIDDEN.\n * \n * @param messageId\n * @return\n */\n public List<Long> getHiddenImpressionIdsForMessage(long messageId);\n\n /**\n * Log a user query event.\n * \n * @param timestamp The time the event occurred\n * @param user Some identifier that ideally represents a single user interacting with the system\n * @param hostname The hostname or identifier of the system\n * @param referral The ID of the click that triggered this query, or null\n * @param questionText The text of the query\n * @param mode How the query was input by the user\n * @return The event ID\n */\n public long query(Date timestamp, String user, String hostname, Long referral, String questionText, InputMode mode);\n\n /**\n * Log a user impression event\n * \n * @param timestamp The time the event occurred\n * @param user Some identifier that ideally represents a single user interacting with the system\n * @param hostname The hostname or identifier of the system\n * @param referral The ID of the query that triggered this impression, or null\n * @param prompt The impression text\n * @param classifiedClass The answer class from the classifier, or null\n * @param offset The 1-based offset of this impression relative to other impressions from the same query\n * @param action Currently not used\n * @param location The location of the impression on the screen\n * @param provenance {@see Provenance}\n * @param confidence The confidence score from the classifier, or 0\n * @return The event ID\n */\n public long impression(Date timestamp, String user, String hostname, Long referral, String prompt,\n String classifiedClass, int offset, String action, Location location, Provenance provenance, double confidence);\n\n /**\n * @param timestamp The time the event occurred\n * @param user Some identifier that ideally represents a single user interacting with the system\n * @param hostname The hostname or identifier of the system\n * @param referral The ID of the impression that was clicked\n * @return The event ID\n */\n public long click(Date timestamp, String user, String hostname, Long referral);\n\n /**\n * Unhides an impression that was previously hidden from the user.\n * The event ID of the impression is unchanged.\n * \n * @param impressionId The event ID of the impression\n * @param newLocation The location of the impression on the screen\n */\n public void unhideImpression(long impressionId, Location newLocation);\n\n /**\n * Possible impression locations on the page\n */\n public static enum Location {\n MAIN_RESULTS_AREA, RIGHT_RAIL, FOOTER, \n /**\n * This is a special location to indicate impressions that were generated from a query\n * but not initially shown to the user. When the impression is shown to the user it\n * should be unhidden via unhideImpression().\n */\n HIDDEN\n };\n\n /**\n * Where an impression came from.\n * Currently only used to distinguish between clickable and non-clickable impressions.\n */\n public static enum Provenance {\n /**\n * This impression shows an answer inline and is not clickable.\n */\n INLINE, \n /**\n * This impression is clickable to either provide feedback or submit another query.\n */\n ALGO\n };\n\n}", "int insert(BehaveLog record);", "public interface TestReporterAppender {\n\n void logMessage(String sMessage, boolean bError);\n\n void logMessage(String sMessage, Throwable t);\n\n void init();\n\n void traceExecution(CommandRequest cRequest, OpResult rResult);\n\n void traceExecution(HttpOpRequest request);\n}", "public interface ILog {\n\n /**\n * Send an information level log message, used by time-related log.\n *\n * @param tag Used to identify the source of a log message. It usually identifies\n * the class or activity where the log call occurs.\n * @param msg The message you would like logged.\n */\n void info(String tag, String msg);\n\n\n /**\n * Send an warning level log message, used by exception-related log.\n *\n * @param tag Used to identify the source of a log message. It usually identifies\n * the class or activity where the log call occurs.\n * @param msg The message you would like logged.\n */\n void warn(String tag, String msg);\n}", "private void logUser() {\n }", "@Pointcut(\"execution(* *.logEvent(..))\")\n private void allLogEventMethods() {\n }", "private void archiveTraceEventInfoHeader(String tracingID, TraceEventInfoDAO eventDAO, ArchiveHelper archiveHelper)\n throws ArchiveTrailDataException\n {\n String methodName = \"archiveTraceEventInfoHeader\";\n TraceEventInfoHeader header = getTraceEventHeader(tracingID, eventDAO);\n if(header != null)\n {\n archiveHelper.addAuditTrailEntity(header, null, archiveHelper.getArchiveZipCategory()+IArchiveConstant.CATEGORY_TRACE_EVENT_HEADER);\n deleteAuditTrailEntity(eventDAO, header);\n }\n }", "@Override\n\tpublic void decorate(Alert al) {\n\t\tsuper.al = al;\n\t}", "public Action generateAuditRecord(ProcessorNode processor, Operation operation) {\n return generateAuditRecord(processor, operation, null);\n }", "public interface SpyLogDelegator {\n /**\n * Determine if any of the jdbc or sql loggers are turned on.\n *\n * @return true if any of the jdbc or sql loggers are enabled at error level or higher.\n */\n public boolean isJdbcLoggingEnabled();\n\n /**\n * Called when a spied upon method throws an Exception.\n *\n * @param spy the Spy wrapping the class that threw an Exception.\n * @param methodCall a description of the name and call parameters of the method generated the Exception.\n * @param e the Exception that was thrown.\n * @param sql optional sql that occured just before the exception occured.\n * @param execTime optional amount of time that passed before an exception was thrown when sql was being executed.\n * caller should pass -1 if not used\n */\n public void exceptionOccured(Spy spy, String methodCall, Exception e, String sql, long execTime);\n\n /**\n * Called when spied upon method call returns.\n *\n * @param spy the Spy wrapping the class that called the method that returned.\n * @param methodCall a description of the name and call parameters of the method that returned.\n * @param returnMsg return value converted to a String for integral types, or String representation for Object\n * return types this will be null for void return types.\n */\n public void methodReturned(Spy spy, String methodCall, String returnMsg);\n\n /**\n * Called when a spied upon object is constructed.\n *\n * @param spy the Spy wrapping the class that called the method that returned.\n * @param constructionInfo information about the object construction\n */\n public void constructorReturned(Spy spy, String constructionInfo);\n\n /**\n * Special call that is called only for JDBC method calls that contain SQL.\n *\n * @param spy the Spy wrapping the class where the SQL occurred.\n * @param methodCall a description of the name and call parameters of the method that generated the SQL.\n * @param sql sql that occurred.\n */\n public void sqlOccurred(Spy spy, String methodCall, String sql);\n\n /**\n * Similar to sqlOccured, but reported after SQL executes and used to report timing stats on the SQL\n *\n * @param spy the Spy wrapping the class where the SQL occurred.\n * @param execTime how long it took the sql to run, in msec.\n * @param methodCall a description of the name and call parameters of the method that generated the SQL.\n * @param sql sql that occurred.\n */\n public void sqlTimingOccurred(Spy spy, long execTime, String methodCall, String sql);\n\n /**\n * Called whenever a new connection spy is created.\n *\n * @param spy ConnectionSpy that was created.\n * @param execTime A <code>long</code> defining the time elapsed to open the connection in ms\n * (useful information, as a connection might take some time to be opened sometimes).\n * Caller should pass -1 if not used or unknown.\n */\n public void connectionOpened(Spy spy, long execTime);\n\n /**\n * Called whenever a connection spy is closed.\n *\n * @param spy <code>ConnectionSpy</code> that was closed.\n * @param execTime A <code>long</code> defining the time elapsed to close the connection in ms\n * (useful information, as a connection might take some time to be closed sometimes).\n * Caller should pass -1 if not used or unknown.\n */\n public void connectionClosed(Spy spy, long execTime);\n\n /**\n * Called whenever a connection spy is aborted.\n *\n * @param spy <code>ConnectionSpy</code> that was aborted.\n * @param execTime A <code>long</code> defining the time elapsed to abort the connection in ms\n * (useful information, as a connection might take some time to be aborted sometimes).\n * Caller should pass -1 if not used or unknown.\n */\n public void connectionAborted(Spy spy, long execTime);\n\n /**\n * Log a Setup and/or administrative log message for log4jdbc.\n *\n * @param msg message to log.\n */\n public void debug(String msg);\n\n /**\n * Determine whether the logger is expecting results sets to be collected\n *\n * @return true if the logger is expecting results sets to be collected\n */\n public boolean isResultSetCollectionEnabled();\n\n /**\n * Determine whether the logger is expecting results sets to be collected\n * AND any unread result set values read explicitly\n *\n * @return true if the logger is expecting results sets to be collected\n */\n public boolean isResultSetCollectionEnabledWithUnreadValueFillIn();\n\n /**\n * Called whenever result set has been collected.\n *\n * This method will be actually called\n * when the <code>next()</code> method of the spied <code>ResultSet</code>\n * return <code>false</code> meaning that its end is reached.\n * It will be also called if the <code>ResultSet</code> is closed.\n *\n * @see net.disy.oss.log4jdbc.sql.jdbcapi.ResultSetSpy\n * @see net.disy.oss.log4jdbc.sql.resultsetcollector.DefaultResultSetCollector\n\n */\n public void resultSetCollected(ResultSetCollector resultSetCollector);\n\n}", "public abstract void logKenaiUsage(Object... parameters);", "public void Atender();", "public void renderAudit(CoreSession session, DocumentModel doc, boolean unrestricted) throws ClientException;", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public void setAuditDate(Date auditDate) {\n this.auditDate = auditDate;\n }" ]
[ "0.7201379", "0.66732794", "0.6540534", "0.6209892", "0.60616565", "0.6003641", "0.6001596", "0.5983627", "0.58926535", "0.58556527", "0.5846768", "0.5835375", "0.5678135", "0.5672003", "0.565324", "0.5626202", "0.5623044", "0.5606842", "0.55227405", "0.5518384", "0.550375", "0.54906046", "0.549027", "0.5489308", "0.5478577", "0.5446788", "0.54333246", "0.5415967", "0.5371059", "0.53675425", "0.53535515", "0.5344984", "0.53259116", "0.532265", "0.5320006", "0.5314727", "0.5288447", "0.52712274", "0.5271062", "0.5267471", "0.52629495", "0.525475", "0.52422744", "0.5242104", "0.52302647", "0.5225532", "0.52189374", "0.5212014", "0.5210342", "0.52082664", "0.52054834", "0.51911247", "0.51904947", "0.5189783", "0.51647687", "0.5142426", "0.5119875", "0.5117798", "0.5111541", "0.5109778", "0.5102497", "0.5089614", "0.50762784", "0.5060616", "0.5057414", "0.50529635", "0.5035729", "0.5031722", "0.5023705", "0.5010822", "0.50087893", "0.49914527", "0.49843743", "0.4983497", "0.49802247", "0.49708313", "0.4962764", "0.49547288", "0.49435204", "0.49422723", "0.49382105", "0.4930328", "0.49301523", "0.4921862", "0.49212572", "0.4915501", "0.49076977", "0.49066648", "0.49035883", "0.48978677", "0.48933092", "0.4882793", "0.4873361", "0.4871904", "0.4860489", "0.48584166", "0.48565763", "0.4843695", "0.48435265", "0.48376286", "0.48344874" ]
0.0
-1
Fake method to simulating long run actions Override it to inject fault for test
protected boolean performActions() { try { Thread.sleep(5000); } catch (InterruptedException e) { // This is simulation, so we will not handle it } return Math.rint(Math.random()) % 20 != 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean performAction(int action) {\n/* 567 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean performAction(int action, Bundle arguments) {\n/* 583 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n public void testInvokeEffectorStartFailing_Method() {\n FailingEntity entity = createFailingEntity();\n assertStartMethodFails(entity);\n }", "public Builder after(long delay) {\n/* 410 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void performCompletion() {\n/* 536 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLaunchThenKill() throws Throwable {\n\t}", "@When(\"Try to Attempt sending crafted records to DNS cache\")\npublic void tryattemptsendingcraftedrecordstodnscache(){\n}", "void mo749s() throws RemoteException;", "@Test\n public void testClickOnSolarUpdateFAB_waitingForUpdate_timeout() {\n\n SolarMonitorApp.getInstance().getSolarCustomerId().set(\"54321\");\n when(mockSolarOutputProvider.getSolarOutput(\"54321\"))\n .thenReturn(Single.create(subscriber -> subscriber.onError(new TimeoutException())));\n\n // Creates, starts, resumes activity ...\n controller.setup();\n\n activity.findViewById(R.id.solarUpdateFAB).performClick();\n\n assertEquals(activity.getText(R.string.error_please_try_again), ShadowToast.getTextOfLatestToast());\n }", "@Test\r\n\tpublic void testExecuteMachine() throws MalformedURLException {\n//\t\tassertEquals(true, MockBackLMBets.executed);\r\n//\t\tassertEquals(6000000, MockBackLMBets.marketSuspendTime);\r\n//\r\n//\t\tmachine.fireEvent(\"runner\", ctx);\r\n//\t\tassertEquals(\"backPlaced\", machine.getCurrentStateId());\r\n\r\n\t}", "void mo750t() throws RemoteException;", "@Override\n protected void doAct() {\n }", "public void recycle() {\n/* 1835 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort1() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToTechnologyAverage, link, travelTimeOnLink);\n\t}", "public boolean refresh() {\n/* 153 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected long getDelayForView(View view) {\n/* 214 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected abstract void timed() throws Throwable;", "@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedElseAbort_ShouldAbort2() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "@Test\n public void testInvokeEffectorListWithEmptyUsingUnmanagedContext() throws Exception {\n TestEntity entity = app.addChild(EntitySpec.create(TestEntity.class));\n Entities.unmanage(entity);\n try {\n Entities.invokeEffectorList(entity, ImmutableList.<StartableApplication>of(), Startable.STOP).get(Duration.THIRTY_SECONDS);\n Asserts.shouldHaveFailedPreviously();\n } catch (Exception e) {\n IllegalStateException e2 = Exceptions.getFirstThrowableOfType(e, IllegalStateException.class);\n if (e2 == null) throw e;\n Asserts.expectedFailureContains(e2, \"no longer managed\");\n }\n }", "@Test\n public void sustainMassiveDamage() {\n }", "public void mock(){\n\n }", "@Override\r\n\t\t\tpublic void onFault(Throwable fault) {\n\t\t\t\t\r\n\t\t\t}", "public static void requestLocationUpdate() {\n/* 37 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MockAction() {\n\t\tsetResultEventId(\"success\");\n\t}", "@Test\n public void repairSingleTable()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = myTableReferenceFactory.forTable(\"test\", \"table1\");\n\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n\n schedule(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS)\n .until(() -> isRepairedSince(tableReference, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verify(mockFaultReporter, never())\n .raise(any(RepairFaultReporter.FaultCode.class), anyMap());\n }", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLaunchThenResume() throws Throwable {\n\t}", "public void start() {\n/* 255 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void addAction(AccessibilityAction action) {\n/* 312 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLaunch() throws Throwable {\n\t}", "@Override\r\n\tpublic void performAction(Client client, RentUnit rentUnit) {\n\t\tSystem.err.println(\"Program was not implemented\");\r\n\t}", "@Test\n public void shouldThrowExceptionIfWalkInterrupted() throws IOException, InterruptedException {\n\n final ExecutorService executorService = Executors.newCachedThreadPool();\n\n expect(configuration.createPDU(PDU.GETBULK)).andReturn(new PDU());\n expect(target.getVersion()).andReturn(SnmpConstants.version2c);\n expect(configuration.getWalkTimeout()).andReturn(900000).anyTimes();\n expect(configuration.getMaxRepetitions()).andReturn(1);\n expectToGetBulkAndGenerateInterrupt(executorService, DUMMY_OID1);\n\n replayAll();\n\n final WalkResponse response = session.walkDevice(variableHandler, oidList);\n assertFalse(response.isSuccess());\n assertTrue(response.toString().contains(\"fail\"));\n assertNotNull(response.getThrowable());\n\n verifyAll();\n executorService.shutdown();\n executorService.awaitTermination(1, TimeUnit.SECONDS);\n }", "public void testLongRunningTraverser() {\n runWithSchedules(getSchedules(MockInstantiator.TRAVERSER_NAME_LONG_RUNNING),\n createMockInstantiator());\n }", "@Override\n public void testPeriodic()\n {\n \n }", "@Test(expected = ExecutionException.class)\n public void callServiceMethodInWrongOrderTest() throws ExecutionException, InterruptedException {\n List<Chunk> chunkList = new ArrayList<>();\n //generate chunks\n int numOfChunksToUpload = 5;\n while (numOfChunksToUpload > 0) {\n chunkList.add(generateChunk(10));\n numOfChunksToUpload--;\n }\n\n //Start a bad producer thread\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n BadProducerThread producerThread = new BadProducerThread(\"Producer1\", chunkList, 20, new ApplicationService());\n Future<String> producerResult = executorService.submit(producerThread);\n while (true) {\n if (producerResult.isDone())\n break;\n }\n log.debug(\"Result : \" + producerResult.get());\n executorService.shutdown();\n\n\n }", "@Override\r\n\tpublic Response invoke() {\n\t\treturn null;\r\n\t}", "@Override\n protected void run(Result result) throws Throwable {\n }", "@Test\n public void testStopSendingEditsWhenOutOfSync() throws Exception {\n Mockito.doThrow(new IOException(\"injected error\"))\n .when(mockProxy).journal(\n Mockito.<RequestInfo>any(),\n Mockito.eq(1L), Mockito.eq(1L),\n Mockito.eq(1), Mockito.same(FAKE_DATA));\n\n try {\n ch.sendEdits(1L, 1L, 1, FAKE_DATA).get();\n fail(\"Injected JOOSE did not cause sendEdits() to throw\");\n } catch (ExecutionException ee) {\n GenericTestUtils.assertExceptionContains(\"injected\", ee);\n }\n Mockito.verify(mockProxy).journal(\n Mockito.<RequestInfo>any(),\n Mockito.eq(1L), Mockito.eq(1L),\n Mockito.eq(1), Mockito.same(FAKE_DATA));\n\n assertTrue(ch.isOutOfSync());\n \n try {\n ch.sendEdits(1L, 2L, 1, FAKE_DATA).get();\n fail(\"sendEdits() should throw until next roll\");\n } catch (ExecutionException ee) {\n GenericTestUtils.assertExceptionContains(\"disabled until next roll\",\n ee.getCause());\n }\n \n // It should have failed without even sending the edits, since it was not sync.\n Mockito.verify(mockProxy, Mockito.never()).journal(\n Mockito.<RequestInfo>any(),\n Mockito.eq(1L), Mockito.eq(2L),\n Mockito.eq(1), Mockito.same(FAKE_DATA));\n // It should have sent a heartbeat instead.\n Mockito.verify(mockProxy).heartbeat(\n Mockito.<RequestInfo>any());\n \n // After a roll, sending new edits should not fail.\n ch.startLogSegment(3L, NameNodeLayoutVersion.CURRENT_LAYOUT_VERSION).get();\n assertFalse(ch.isOutOfSync());\n\n ch.sendEdits(3L, 3L, 1, FAKE_DATA).get();\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n public void testPeriodic() {\n }", "@Test\n public void refresh() throws Exception {\n }", "void mo753w() throws RemoteException;", "@Test\n public void actionsFail() throws Exception {\n Language english = (Language)new English();\n Issue issue1 = this.githubIssue(\"amihaiemil\", \"@charlesmike index\");\n Issue issue2 = this.githubIssue(\"jeff\", \"@charlesmike index\");\n \n Comments comments = Mockito.mock(Comments.class);\n Comment com = Mockito.mock(Comment.class);\n Mockito.when(com.json()).thenThrow(new IOException(\"expected IOException...\"));\n Mockito.when(comments.iterate()).thenReturn(Arrays.asList(com));\n \n Issue mockedIssue1 = Mockito.mock(Issue.class);\n Mockito.when(mockedIssue1.comments())\n .thenReturn(comments)\n .thenReturn(issue1.comments());\n\n Issue mockedIssue2 = Mockito.mock(Issue.class);\n Mockito.when(mockedIssue2.comments())\n .thenReturn(comments)\n .thenReturn(issue2.comments());\n \n final Action ac1 = new Action(mockedIssue1);\n final Action ac2 = new Action(mockedIssue2);\n \n final ExecutorService executorService = Executors.newFixedThreadPool(5);\n List<Future> futures = new ArrayList<Future>();\n futures.add(executorService.submit(new Runnable() {\n @Override\n public void run() {\n ac1.perform();;\n }\n }));\n futures.add(executorService.submit(new Runnable() {\n @Override\n public void run() {\n ac2.perform();\n }\n }));\n\n for(Future f : futures) {\n assertTrue(f.get()==null);\n }\n \n List<Comment> commentsWithReply1 = Lists.newArrayList(issue1.comments().iterate());\n List<Comment> commentsWithReply2 = Lists.newArrayList(issue2.comments().iterate());\n\n String expectedStartsWith = \"There was an error when processing your command. [Here](/\";\n assertTrue(commentsWithReply1.get(1).json().getString(\"body\")\n .startsWith(expectedStartsWith)); //there should be only 2 comments - the command and the reply.\n \n assertTrue(commentsWithReply2.get(1).json().getString(\"body\")\n .startsWith(expectedStartsWith)); //there should be only 2 comments - the command and the reply.\n \n }", "public void test1194() throws Exception {\n invokeAsync(createDispatchForNonAnonymousWithWSDLWithoutAddressing(),\n MESSAGES.getNonAnonymousReplyToMessage(),\n S11_NS,\n getNonAnonymousEndpointAddress(),\n clientAddress,\n ECHO_IN_ACTION,\n \"fault-test1194\");\n //Lets see we get a response in 60 s\n SOAPMessage m = respMsgExchanger.exchange(null, TestConstants.CLIENT_MAX_TIMEOUT, TimeUnit.SECONDS);\n// System.out.println(\"****************************\");\n// m.writeTo(System.out);\n// System.out.println(\"\\n****************************\");\n SOAPFault f = m.getSOAPBody().getFault();\n assertNotNull(f);\n assertEquals(USER_FAULT_CODE, f.getFaultCodeAsQName());\n\n }", "@When(\"^I execute my test case$\")\n public void iExecuteMyTestCase() throws Throwable {\n throw new PendingException();\n }", "@Override\n public void testPeriodic() {\n }", "@Override\n\t\tpublic void worked(int arg0) {\n\n\t\t}", "@Test\n public void updateDecline() throws Exception {\n }", "@Test(timeout = 500)\n\tpublic void testGetModuloOne() {\n\t\tAssert.fail();\n\t}", "public long getStartDelay() {\n/* 201 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void method_200() {}", "void mo730c(int i) throws RemoteException;", "public void testInterruptibleTraverser() {\n runWithSchedules(getSchedules(MockInstantiator.TRAVERSER_NAME_INTERRUPTIBLE),\n createMockInstantiator());\n }", "public void testIntercept() throws Exception {\r\n instance.setLogger(\"test\");\r\n // Remember the start time\r\n long start = new Date().getTime();\r\n for (int i = 0; i < RUN_TIMES; i++) {\r\n assertEquals(\"Failed to call the intercept method.\", \"stress_result\",\r\n instance.intercept(new StressActionInvocation()));\r\n }\r\n endCall(\"intercept\", start);\r\n }", "public abstract void reportRelaunch(IBinder token, PendingTransactionActions pendingActions);", "void mo747q() throws RemoteException;", "public void testPeriodic() {\n \n }", "public void testPeriodic() {\n \n }", "public void testPeriodic() {\n \n }", "@Test\n public void simulateHeavyLoad(TestContext context) {\n Async async = context.async();\n try {\n init();\n\n // loading mixed data\n loadSimulatedHeavyData();\n\n put(\"myapi1/v1/test\").then().assertThat().statusCode(503);\n put(\"myapi2/v1/test\").then().assertThat().statusCode(503);\n\n qosHandler.getQosRules().stream().filter(rule -> \"myapi1/v1/test\".matches(rule.getUrlPattern().pattern())).forEach(rule -> {\n context.assertTrue(rule.getActions().contains(QoSHandler.WARN_ACTION));\n context.assertTrue(rule.getActions().contains(QoSHandler.REJECT_ACTION));\n });\n\n // load normal Data\n loadSimulatedNormalData();\n TestUtils.waitSomeTime(6);\n\n put(\"myapi1/v1/test\").then().assertThat().statusCode(200);\n put(\"myapi2/v1/test\").then().assertThat().statusCode(200);\n\n for (QoSRule rule : qosHandler.getQosRules()) {\n context.assertFalse(rule.performAction());\n }\n } catch (Exception failed) {\n context.fail(\"Exception: \" + failed.getMessage());\n }\n\n System.out.println(\"Done\");\n\n async.complete();\n }", "@Test(expected=RuntimeException.class)\n\tpublic void testWarm_DetailedThenTechnologyAverageElseAbort_ShouldAbort() {\n\t\tEmissionModule emissionModule = setUpScenario(EmissionsConfigGroup.DetailedVsAverageLookupBehavior.onlyTryDetailedElseAbort);\n\n\t\tdouble travelTimeOnLink = 21; //sec. approx freeSpeed of link12 is : (200 m) / (9.72.. m/s) approx 20.57 s\n\t\temissionModule.getWarmEmissionAnalysisModule().checkVehicleInfoAndCalculateWarmEmissions(vehicleFallbackToAverageTable, link, travelTimeOnLink);\n\t}", "@Override\n\tpublic void testPeriodic() {}", "public abstract void actionReal(HttpResponseCallback callback);", "public void doTheFaultyThing();", "@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}", "@Test\n public void resetCallsScheduledOperations() throws Exception {\n so.inject(vector(1.0, 1.0, 1.0));\n query.reset();\n checkVector(so.getSource(), 0.0, 0.0, 0.0);\n }", "zzafe mo29840Y() throws RemoteException;", "public void cancel() {\n/* 170 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void thrash();", "@Test\n public void testInvokeEffectorStartFailing_MethodInDynamicTask() {\n Task<Void> task = app.getExecutionContext().submit(Tasks.<Void>builder().dynamic(true).body(new Callable<Void>() {\n @Override public Void call() throws Exception {\n testInvokeEffectorStartFailing_Method();\n return null;\n }\n }).build());\n \n assertTaskSucceeds(task);\n assertTaskHasFailedChild(task);\n }", "@Ignore\n public void testDisapproveReason() throws Exception {\n\n }", "public void testPeriodic() {\r\n }", "public void sendTestFutureNotification() {\n\n }", "@Test\n public void abandonFight() {\n }", "void doHandle()\n\t{\n\t\t// should be at least on arg\n\t\tif (!hasMoreTokens())\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"argumentRequired\")); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\t// poor man's fix for supporting 'all' option\n\t\t\tString faultName = nextToken();\n\t\t\tObject[] names = new Object[] { faultName };\n\n\t\t\t// replace the single name with all of them\n\t\t\tif (faultName.equalsIgnoreCase(\"all\")) //$NON-NLS-1$\n\t\t\t\tnames = m_faultTable.names();\n\n\t\t\t// make sure we know about at least one\n\t\t if (!m_faultTable.exists((String)names[0]))\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"unrecognizedFault\")); //$NON-NLS-1$\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (!hasMoreTokens())\n\t\t\t\t\tlistFault((String)names[0]);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString action = null;\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\twhile(hasMoreTokens())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taction = nextToken();\n\t\t\t\t\t\t\tfor(int i=0; i<names.length; i++)\n\t\t\t\t\t\t\t\tm_faultTable.action((String)names[i], action);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(IllegalArgumentException iae)\n\t\t\t\t\t{\n\t\t\t\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\t\t\t\targs.put(\"action\", action); //$NON-NLS-1$\n\t\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"unrecognizedAction\", args)); //$NON-NLS-1$\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void request() throws Exception {\n\n\n }", "protected abstract void after();", "@Override\n\tpublic void testPeriodic() {\n\t}", "@Override\n\tpublic void testPeriodic() {\n\t}", "@Then(\"Assert the success of Attempt sending crafted records to DNS cache\")\npublic void assattemptsendingcraftedrecordstodnscache(){\n}", "public void menuJobTest() throws Exception;", "void mo13025a() throws RemoteException;", "void mo748r() throws RemoteException;", "@Test\n\tpublic void testUpdatePoStatusErrorListenerFaultTest() {\n\t\ttry{\n\t\t\t //Is used in soap request preparation because value is used in reply soap header.\n\t\t\t final String callbackRefMockUri = mockOsbBusinessService(\n\t\t\t\t\t PATH_UPDATE_STATUS_CALLBACK,\n\t\t\t\t\t updatePoStatusCallbackPortMock);\t\n\t\t\t \n\t\t\t mockOsbBusinessService(\n\t\t\t\t\t PATH_ORDER_TRANSACTION_MONITORING,\n\t\t\t\t\t orderTransactionServiceFaultMock);\n\t\t\t \n\t\t\t mockOsbBusinessService(\n\t\t\t\t\t PATH_RESPONSE_RETRY_WRAPPER,\n\t\t\t\t\t responseRetryWrapperMock);\n\t\n\t\t\tfinal String requestString = new ParameterReplacer(readClasspathFile(\"Request_UpdatePOStatusErrorListener.xml\"))\n\t\t\t\t\t.replace(REPLACE_PARAM_CORRELATION_ID, randomCorrelationId)\n\t\t\t\t\t.replace(REPLACE_PARAM_PURCHASE_ORDER_NUMBER, randomPoNumber)\n\t\t\t\t\t.replace(REPLACE_PARAM_COMBOX_ID, randomCoboxId)\n\t\t\t\t\t.replace(REPLY_TO, callbackRefMockUri)\n\t\t\t\t\t.replace(MESSAGE_ID, randomMessageId).build();\n\t\t\t\t\t\n\t\t\tLOGGER.info(\"+++ request \" + requestString);\n\t\n\t\t\tinvokeOsbProxyService(PATH_SERVICE, requestString);\n\n\t\t\tassertThat(\"updatePoStatusCallbackPortMock is not invocked!\",!updatePoStatusCallbackPortMock.hasBeenInvoked());\n\t\t\t//This should be invoked\n\t\t\tassertThat(\"responseRetryWrapperMock is invocked!\",responseRetryWrapperMock.hasBeenInvoked());\n\t\t\t\n\t\t\t//Get message from process as it is\n\t\t\tString responseRetryWrapperMockMsg = responseRetryWrapperMock.getLastReceivedRequest();\n\t\t\tLOGGER.info(\"+++ responseRetryWrapperMockMsg \" + responseRetryWrapperMockMsg);\n\t\t\t\n\n\t\t\tassertXpathEvaluatesTo(\"/soapenv:Envelope/soapenv:Body/rrmess:onErrorInResponseQueueRequest/rrmess:requestHeader/mht:CorrelationID/text()\",\n\t\t\t\t\trandomCorrelationId,\n\t\t\t\t\tresponseRetryWrapperMockMsg);\n\n\t\t\tassertXpathEvaluatesTo(\"/soapenv:Envelope/soapenv:Body/rrmess:onErrorInResponseQueueRequest/rrmess:exception/exc:context/exc:transactionId/text()\",\n\t\t\t\t\trandomCorrelationId,\n\t\t\t\t\tresponseRetryWrapperMockMsg);\n\t\t\t\n\t\t\tassertXpathEvaluatesTo(\"/soapenv:Envelope/soapenv:Body/rrmess:onErrorInResponseQueueRequest/rrmess:exception/exc:category/text()\",\n\t\t\t\t\t\"TechnicalFault\",\n\t\t\t\t\tresponseRetryWrapperMockMsg);\n\t\t\t\n\t\t\tassertXpathEvaluatesTo(\"/soapenv:Envelope/soapenv:Body/rrmess:onErrorInResponseQueueRequest/rrmess:exception/exc:context/exc:payload/\"\n\t\t\t\t\t+ \"exc:exception/exc:context/exc:payload/navpom:updatePurchaseOrderStatus/navpom:header/mht:CorrelationID/text()\",\n\t\t\t\t\trandomCorrelationId,\n\t\t\t\t\tresponseRetryWrapperMockMsg);\n\n\t\t\tassertXpathEvaluatesTo(\"/soapenv:Envelope/soapenv:Body/rrmess:onErrorInResponseQueueRequest/rrmess:jmsDestination/text()\",\n\t\t\t\t\t\"h24jms.ERR_UpdatePOStatus_Q\",\n\t\t\t\t\tresponseRetryWrapperMockMsg);\n\t\t\t\n\t\t\tassertXpathEvaluatesTo(\"/soapenv:Envelope/soapenv:Body/rrmess:onErrorInResponseQueueRequest/rrmess:jmsFactory/text()\",\n\t\t\t\t\t\"h24jms.PurchaseOrder\",\n\t\t\t\t\tresponseRetryWrapperMockMsg);\n\t\t\t\n\t\t} catch(ServiceException e) {\n\t\t\tfail();\t\t\t\n\t\t}\n\n\t}", "@Test\n public void roundTrip() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // Disable the UDFPS mode.\n mHbmController.disable(mOnDisabled);\n\n // Should unset the refresh rate and notify the caller.\n verify(mOnDisabled).run();\n verify(mDisplayCallback).onHbmDisabled(eq(DISPLAY_ID));\n }", "public void doAction(){}", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}", "@Test\n public void repairSingleTable()\n {\n long startTime = System.currentTimeMillis();\n\n TableReference tableReference = new TableReference(\"ks\", \"tb\");\n\n createKeyspace(tableReference.getKeyspace(), 3);\n injectRepairHistory(tableReference, System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2));\n createTable(tableReference);\n\n await().pollInterval(1, TimeUnit.SECONDS).atMost(90, TimeUnit.SECONDS).until(() -> isRepairedSince(tableReference, startTime));\n\n verifyTableRepairedSince(tableReference, startTime);\n verify(myFaultReporter, never()).raise(any(RepairFaultReporter.FaultCode.class), anyMapOf(String.class, Object.class));\n }", "public void performRecovery();", "@Test\n public void reentrantCallSelf() {\n byte[] txDataMethodArguments = ABIUtil.encodeMethodArguments(\"putStorage\");\n AvmRule.ResultWrapper resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n\n byte[] data = ABIUtil.encodeMethodArguments(\"resetStorage\");\n txDataMethodArguments = ABIUtil.encodeMethodArguments(\"reentrantCall\", dappAddr, data, new byte[0]);\n resultWrapper = avmRule.call(from, dappAddr, BigInteger.ZERO, txDataMethodArguments, energyLimit, energyPrice);\n Assert.assertTrue(resultWrapper.getReceiptStatus().isSuccess());\n // cost before the refund is processed\n long executionCost = 61934 + 29 * 5 +\n 5 * RuntimeMethodFeeSchedule.BlockchainRuntime_avm_resetStorage;\n Assert.assertEquals(executionCost - executionCost / 2, energyLimit - resultWrapper.getTransactionResult().getEnergyRemaining());\n }", "@Override\n\tpublic void testPeriodic() {\n\n\t}", "int mo200h() throws RemoteException;", "public void emergencyStopIssued()\n {\n // Default implementation does nothing\n }" ]
[ "0.6412009", "0.6165806", "0.5849298", "0.5759238", "0.5759131", "0.57271546", "0.5665051", "0.56471705", "0.56343037", "0.56174505", "0.5608504", "0.5589253", "0.55847865", "0.55753887", "0.5572795", "0.557197", "0.5542835", "0.55343926", "0.5518593", "0.549836", "0.54822826", "0.5478613", "0.54753906", "0.5466986", "0.5454966", "0.5412986", "0.5412398", "0.540332", "0.5398831", "0.53954834", "0.53764194", "0.5369827", "0.5367707", "0.53535295", "0.53513676", "0.5348465", "0.53466016", "0.5345413", "0.5344393", "0.5344393", "0.5344393", "0.5344393", "0.5344393", "0.5344393", "0.5344393", "0.5344393", "0.5344393", "0.5344393", "0.5341145", "0.53280103", "0.53216416", "0.5320214", "0.5279099", "0.52763057", "0.5272847", "0.5272002", "0.5269797", "0.5266273", "0.52635616", "0.52619493", "0.52579993", "0.52550197", "0.5253131", "0.52498925", "0.52492", "0.52492", "0.52492", "0.5246844", "0.5244531", "0.5235362", "0.52344394", "0.52313864", "0.52296376", "0.52255297", "0.5219962", "0.521802", "0.5213993", "0.5213296", "0.5212008", "0.5208833", "0.5208676", "0.5206271", "0.5203404", "0.5198574", "0.51971024", "0.51903373", "0.51903373", "0.5190085", "0.51823956", "0.5182241", "0.51795363", "0.5177183", "0.5174446", "0.5172043", "0.5168536", "0.5167954", "0.51631474", "0.51562965", "0.5152735", "0.5150545", "0.5141662" ]
0.0
-1
/ Preparing our Dialog View
@NonNull @Override public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); LayoutInflater inflater = getActivity().getLayoutInflater(); View view = inflater.inflate(R.layout.fragment_dialog, null); builder.setView(view); dialog = builder.create(); dialog.setCanceledOnTouchOutside(false); taskEditText = view.findViewById(R.id.task_edit_text); cancelButton = view.findViewById(R.id.cancel_button); saveButton = view.findViewById(R.id.save_button); viewModel = new ViewModelProvider(requireActivity()).get(TaskViewModel.class); /* * If we get no arguments from activity it means we have to add new task * otherwise we have to update the task and in that case argument!=null */ if (getArguments() == null) { saveButton.setText("Save"); } else { saveButton.setText("Update"); taskEditText.setText(getArguments().getString(MainActivity.TASK_TAG)); } // Cancel Button in Dialog cancelButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { dialog.dismiss(); } }); // Save button in dialog saveButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (getArguments() == null) { if (!TextUtils.isEmpty(taskEditText.getText().toString())) saveTask(taskEditText.getText().toString()); else Toast.makeText(getActivity(), "Enter some task", Toast.LENGTH_SHORT).show(); } else { int id = getArguments().getInt(MainActivity.TASK_ID); boolean isDone = getArguments().getBoolean(MainActivity.TASK_DONE_TAG); if (!TextUtils.isEmpty(taskEditText.getText().toString())) updateTask(taskEditText.getText().toString(), id, isDone); else Toast.makeText(getActivity(), "Enter some task", Toast.LENGTH_SHORT).show(); } } }); return dialog; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initDialog() {\n }", "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public abstract void initDialog();", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }", "private void initDialogView(View dialogView) {\n btnTidak = (Button) dialogView.findViewById(R.id.btnTidak);\n btnYa = (Button) dialogView.findViewById(R.id.btnYa);\n imgClosePopup = (ImageView) dialogView.findViewById(R.id.imgClosePopup);\n txtTitle = (TextView) dialogView.findViewById(R.id.txtTitle);\n iconTitle = (ImageView) dialogView.findViewById(R.id.iconTitle);\n }", "public ReorganizeDialog() { }", "@Override\n public void prepareView() {\n }", "private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }", "public void initDialogBoxViews(View mView) {\n trailName = (EditText) mView.findViewById(R.id.TrailNametxt);\n trailCode = (EditText) mView.findViewById(R.id.TrailCodetxt);\n module = (EditText) mView.findViewById(R.id.Moduletxt);\n trailDate = (EditText) mView.findViewById(R.id.datetxt);\n addtrailBtn = (Button) mView.findViewById(R.id.CreateBtn);\n }", "private void setViews() {\n lv.setAdapter(adapter);\n\n dialog2 = new MiddleDialog2(INSTANCE, getResources().getString(R.string.title), getResources().getString(R.string.value), new MiddleDialog2.onBottonListener() {\n @Override\n public void onOk() {\n\n finish();\n }\n },R.style.registDialog);\n }", "private Dialogs () {\r\n\t}", "public void prepareBroadcast() {\r\n\t\ttheDialog.show();\r\n\t\ttry {\r\n\t\t\tthePres= new SimplePres( new QTFile( theDialog.getDirectory() + theDialog.getFile()), theCanvas );\r\n\t\t\tsetTitle(theDialog.getFile());\r\n\t\t\ttheCanvas.setClient( thePres.pDrawer, true );\r\n\r\n\t\t\tif (drawer == null)\r\n\t\t\t{\r\n\t\t\t\tdrawer = new StatDrawer(thePres);\t// draws the rate and time information\r\n\t\t\t\tdrawer.timeLabel = currTimeLabel;\r\n\t\t\t\tdrawer.rateLabel = currRateLabel;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tdrawer.setPres(thePres);\r\n\t\t}\r\n\t\tcatch (QTException qte) {\r\n\t\t\tqte.printStackTrace();\r\n\t\t} \r\n\t}", "public BaseDialog create()\n {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final BaseDialog dialog = new BaseDialog(context, R.style.Dialog);\n\n View layout = inflater.inflate(R.layout.view_shared_basedialog, null);\n\n //set the dialog's image\n this.icon = (ImageView) layout.findViewById(R.id.view_shared_basedialog_icon);\n\n if (this.imageResource > 0 || this.imageUrl != null)\n {\n this.icon.setVisibility(View.VISIBLE);\n if (this.imageResource > 0)\n {\n this.icon.setBackgroundResource(this.imageResource);\n }\n else\n {\n// TextureRender.getInstance().setBitmap(this.imageUrl, this.icon, R.drawable.no_data_error_image);\n }\n }\n else\n {\n this.icon.setVisibility(View.GONE);\n }\n\n // set check box's text and default value\n this.checkLayout = layout.findViewById(R.id.view_shared_basedialog_checkbox_layout);\n this.checkBox = (CheckBox) layout.findViewById(R.id.view_shared_basedialog_checkbox);\n this.checkBoxTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_checkbox_text);\n\n if (!TextUtils.isEmpty(this.checkBoxText))\n {\n this.checkLayout.setVisibility(View.VISIBLE);\n this.checkBoxTextView.setText(this.checkBoxText);\n this.checkBox.setChecked(checkBoxDefaultState);\n }\n else\n {\n this.checkLayout.setVisibility(View.GONE);\n }\n\n // set the dialog main title and sub title\n this.maintitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_maintitle_textview);\n this.subtitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_subtitle_textview);\n this.titleDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_titledivide_textview);\n if (!TextUtils.isEmpty(title1))\n {\n this.maintitleTextView.setText(title1);\n if (this.title1BoldAndBig)\n {\n this.maintitleTextView.setTypeface(null, Typeface.BOLD);\n this.maintitleTextView.setTextSize(17);\n }\n\n this.maintitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.maintitleTextView.setVisibility(View.GONE);\n }\n\n if (!TextUtils.isEmpty(title2))\n {\n this.subtitleTextView.setText(title2);\n this.subtitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.subtitleTextView.setVisibility(View.GONE);\n }\n this.titleDivideTextView.setVisibility(View.GONE);\n\n // set the confirm button\n this.positiveButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_positivebutton));\n if (!TextUtils.isEmpty(positiveButtonText))\n {\n this.positiveButton.setText(positiveButtonText);\n this.positiveButton.setVisibility(View.VISIBLE);\n if (positiveButtonClickListener != null)\n {\n this.positiveButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n positiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n if (checkBox.isChecked()&&onCheckBoxListener!=null)\n {\n onCheckBoxListener.checkedOperation();\n }\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.positiveButton.setVisibility(View.GONE);\n }\n\n // set the cancel button\n this.negativeButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_negativebutton));\n if (!TextUtils.isEmpty(negativeButtonText))\n {\n this.negativeButton.setText(negativeButtonText);\n this.negativeButton.setVisibility(View.VISIBLE);\n if (negativeButtonClickListener != null)\n {\n this.negativeButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n negativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.negativeButton.setVisibility(View.GONE);\n }\n\n // set button's background\n this.buttonDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_buttondivide_textview);\n if (!TextUtils.isEmpty(negativeButtonText) && !TextUtils.isEmpty(negativeButtonText))\n {\n this.buttonDivideTextView.setVisibility(View.VISIBLE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_rightbottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_leftbottom);\n }\n else\n {\n this.buttonDivideTextView.setVisibility(View.GONE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n }\n\n // set the content message\n this.contentLayout = layout.findViewById(R.id.view_shared_basedialog_content_layout);\n if (!TextUtils.isEmpty(message))\n {\n this.contentTextView = ((TextView) layout.findViewById(R.id.view_shared_basedialog_content_textview));\n this.contentTextView.setText(message);\n this.contentTextView.setMovementMethod(ScrollingMovementMethod.getInstance());\n }\n else if (contentView != null)\n {\n // if no message set\n // add the contentView to the dialog body\n ((ViewGroup) this.contentLayout).removeAllViews();\n ((ViewGroup) this.contentLayout).addView(contentView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n }\n else\n {\n this.contentLayout.setVisibility(View.GONE);\n }\n\n int[] params = Utils.getLayoutParamsForHeroImage();\n dialog.setContentView(layout, new ViewGroup.LayoutParams(params[0]*4/5, ViewGroup.LayoutParams.MATCH_PARENT));\n return dialog;\n }", "public void setup() {\n self.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n // make dialog background unselectable\n self.setCanceledOnTouchOutside(false);\n }", "private void initViews() {\n\t\t\r\n\t\tTypeface face = Typeface.createFromAsset(getAssets(), \"Teko_Light.ttf\");\r\n\r\n\t\tet_pin = (EditText) findViewById(R.id.et_pin);\r\n\t\tet_pin.setTypeface(face);\r\n\t\tbtn_admin_login = (Button) findViewById(R.id.btn_admin_login);\r\n\t\tbtn_admin_login.setTypeface(face);\r\n\r\n\t\td = new DialogView();\r\n\t}", "public StandardDialog() {\n super();\n init();\n }", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n }", "public abstract void prepare(View view);", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "private void prepareView(){\n mAvatar = (ImageButton)findViewById(R.id.btnAvatar);\n mAvatar.setOnClickListener(this);\n\n mName = (TextView)findViewById(R.id.tvName);\n mEmail = (TextView)findViewById(R.id.tvEmail);\n mWelcome = (TextView)findViewById(R.id.tvSelectionTitle);\n\n mDesigner = (ImageButton)findViewById(R.id.btnDesigner);\n mDesigner.setOnClickListener(this);\n\n mDeveloper = (ImageButton)findViewById(R.id.btnDeveloper);\n mDeveloper.setOnClickListener(this);\n }", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }", "private void initView() {\n\n }", "@Override\n\tprotected void initView()\n\t{\n\n\t}", "public abstract View getMainDialogContainer();", "@Override\n\tpublic void InitView() {\n\t\t\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n //return super.onCreateDialog(savedInstanceState); // TODO: should we call it?\n final String title = getArguments().getString(\"TITLE\");\n final String msg = getArguments().getString(\"MESSAGE\");\n final String pos = getArguments().getString(\"POS\");\n final String neg = getArguments().getString(\"NEG\");\n final String neu = getArguments().getString(\"NEU\");\n // TODO - this is just an int... what about other ... Parcelable\n final int idx = getArguments().getInt(\"IDX\");\n final int iconid = getArguments().getInt(\"ICON_ID\");\n final float textsize = getArguments().getFloat(\"MSGSIZE\");\n\n if (savedInstanceState != null) {\n tag = savedInstanceState.getString(\"TAG\");\n }\n\n final DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialogInterface, int clickedButton) {\n ConfirmListener act = (ConfirmListener) getActivity();\n act.processConfirmation(clickedButton, tag, idx);\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(title)\n .setMessage(msg);\n if (iconid != 0 && getResources().getResourceTypeName(iconid).equals(\"drawable\")) {\n // this must be a R.drawable.id, otherwise crash!\n // android.content.res.Resources$NotFoundException:\n builder.setIcon(iconid);\n }\n if (pos != null) {\n builder.setPositiveButton(pos, listener);\n }\n if (neg != null) {\n builder.setNegativeButton(neg, listener);\n }\n if (neu != null) {\n builder.setNeutralButton(neu, listener);\n }\n\n dialog = builder.create();\n if (textsize != 0) {\n dialog.show(); // need to call this to be able to get the TextView as non-null pointer\n TextView tv = (TextView) dialog.findViewById(android.R.id.message);\n if (tv != null) {\n tv.setTextSize(textsize);\n }\n }\n return dialog;\n }", "@Override\r\n\tpublic void initView() {\n\t\tsuper.initView();\r\n\t\tdialog = new BufferDialog(this);\r\n\t\tswitchAntiLost = (Switch) findViewById(R.id.switch_antilost);\r\n\t}", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "private void initPopupViewControls(){\n // Get layout inflater object.\n LayoutInflater layoutInflater = LayoutInflater.from(getActivity());\n\n // Inflate the popup dialog from a layout xml file.\n popupInputDialogView = layoutInflater.inflate(R.layout.custom_popup_add_new_communication_record, null);\n\n // Get user input edittext and button ui controls in the popup dialog.\n _interactionTypeSpinner = popupInputDialogView.findViewById(R.id.inteructionTypeSpinner);\n _details = popupInputDialogView.findViewById(R.id.details);\n _specialNote = popupInputDialogView.findViewById(R.id.specialNote);\n _nextActionTypeSpinner = popupInputDialogView.findViewById(R.id.nextActionTypeSpinner);\n _nextActionDate = popupInputDialogView.findViewById(R.id.nextActionDate);\n _nextMeetingLocation = popupInputDialogView.findViewById(R.id.nextMeetingLocation);\n\n _saveFamilyMember = popupInputDialogView.findViewById(R.id.button_save_user_data);\n _cancelInput = popupInputDialogView.findViewById(R.id.button_cancel_user_data);\n\n\n }", "private void initView() {\n un = findViewById(R.id.un);\n deux = findViewById(R.id.deux);\n trois = findViewById(R.id.trois);\n quatre = findViewById(R.id.quatre);\n cinq = findViewById(R.id.cinq);\n six = findViewById(R.id.six);\n sept = findViewById(R.id.sept);\n huit = findViewById(R.id.huit);\n neuf = findViewById(R.id.neuf);\n zero = findViewById(R.id.zero);\n etoile = findViewById(R.id.etoile);\n diaize = findViewById(R.id.diaize);\n call_btn = findViewById(R.id.appeler);\n tableView = findViewById(R.id.ecran);\n edit_search = findViewById(R.id.edit_search);\n efface = findViewById(R.id.effacer);\n setComposer = findViewById(R.id.set_composer);\n paletteComposition = findViewById(R.id.palette_de_composition);\n\n if (is_search) {\n setComposer.setVisibility(View.GONE);\n paletteComposition.setVisibility(View.GONE);\n edit_search.setFocusable(true);\n }\n }", "@Override\n public void initView() {\n }", "public Dialog() {\n\t}", "@Override\n\tpublic void initView() {\n\t\t\n\t}", "protected abstract void initView();", "@Override\n public void initView() {\n\n }", "@Override\r\n\t protected void onPrepareDialog(int id, Dialog dialog) {\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t \tdialog.setTitle(\"Job Details\");\r\n\t \tButton myButton = new Button(this);\r\n\t \tmyButton.setText(\"Cancel\");\r\n\t \tmyButton.setBackgroundColor(Color.parseColor(\"#ff4c67\"));\r\n\t \tmyButton.setTextColor(Color.parseColor(\"#ffffff\"));\r\n\t \tRelativeLayout datlis = (RelativeLayout)screenDialog.findViewById(R.id.datalist01);\r\n\t \tLayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\r\n\t \tlp.addRule(RelativeLayout.BELOW, list.getId());\r\n\t \tdatlis.addView(myButton, lp);\r\n\t \tmyButton.setOnClickListener(dismissscreen);\r\n\t \t\r\n\t break;\r\n\t }\r\n\t }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Add Participant...\");\n builder.setMessage(\"Participant address:\");\n\n final EditText input = new EditText(getActivity());\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input.setLayoutParams(lp);\n builder.setView(input); // uncomment this line\n\n\n builder.setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mListener.onAddUserDialogAdd(input.getText().toString());\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mListener.onAddUserDialogCancel();\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "@Override\n protected void onPrepareDialog(int id, Dialog dialog) {\n \tToast.makeText(this, dialog.toString(), Toast.LENGTH_SHORT).show();\n }", "@Override\n public void Create() {\n\n initView();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ctx = getActivity();\n View view = inflater.inflate(getLayoutID(),null);\n mPreenter = createPresenter();\n loading = new MyProgressLoading(ctx, R.style.DialogStyle);\n sp = ctx.getSharedPreferences(SpUtiles.SP_Mode,Context.MODE_PRIVATE);\n HideUtil.init(getActivity());\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n initListener();\n return view;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle state) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n // Set the title\n builder.setTitle(R.string.new_location_title);\n\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n // Pass null as the parent view because its going in the dialog layout\n view = inflater.inflate(R.layout.fire_report, null);\n builder.setView(view);\n\n populate();\n\n // Add a cancel button\n builder.setNegativeButton(R.string.close, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n Boolean checked = ((CheckBox) view.findViewById(R.id.checkExtinguished)).isChecked();\n if (fire.isExtinguished() != checked) {\n fire.setExtinguished(checked);\n if (!new Cloud(view.getContext()).updateExtinguishedToCloud(fire)) {\n fire.setExtinguished(!checked);\n view.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(view.getContext(), R.string.extinguished_failed, Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n }\n }).start();\n }\n });\n\n dlg = builder.create();\n\n return dlg;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflator = getActivity().getLayoutInflater();\n View view = inflator.inflate(R.layout.informationdialog, datePicker);\n builder.setView(view);\n init(view);\n Dialog dialog = builder.create();\n\n //Dialog will not close automatically until user click on cancle button.\n setCancelable(false);\n return dialog;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n View view = inflater.inflate(R.layout.layout_answer_support, container, false);\n// getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n\n\n mAnswer = (TextView) view.findViewById(R.id.answer_textview);\n mOk = (Button) view.findViewById(R.id.answer_support_btn_ok);\n\n mOk.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n getDialog().dismiss();\n }\n });\n\n Bundle mArgs = getArguments();\n String test = mArgs.getString(\"answer\");\n mAnswer.setText(test);\n\n\n return view;\n }", "private void setup(){\n\t\t\n\t\t//set the dialog title\n\t\tsetText(LocaleText.get(\"createSPSSFileDialog\"));\n\t\t//create the status text\n\t\tstatusLabel = new Label();\n\t\t\n\t\t//create the buttons\n\t\tButton btnCancel = new Button(LocaleText.get(\"close\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcancel();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnCreate = new Button(LocaleText.get(\"createSPSSFileDialog\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcreateSPSSFile();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnSave = new Button(LocaleText.get(\"save\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tsave();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\t\t\n\t\t\n\t\t//update the languages in the form.\n\t\tFormHandler.updateLanguage(Context.getLocale(), Context.getLocale(), form);\n\t\t//add the languages to the language drop down\n\t\tfor(Locale l : form.getLocales())\n\t\t{\n\t\t\tlistBoxLanguages.addItem(l.getName());\n\t\t}\n\t\t\n\t\t//setup the text area\n\t\tspssText.setCharacterWidth(30);\n\t\tspssText.setPixelSize(300, 300);\n\t\t\n\t\t\n\t\tFlexCellFormatter formatter = table.getFlexCellFormatter();\n\t\t\n\t\t//now add stuff to the UI\n\t\tint row = 0;\n\t\ttable.setWidget(row, 0, new Label(LocaleText.get(\"language\")));\n\t\ttable.setWidget(row, 1, listBoxLanguages);\n\t\trow++;\n\t\ttable.setWidget(row, 0, spssText);\n\t\tformatter.setColSpan(row, 0, 2);\n\t\tformatter.setHeight(row, 0, \"300px\");\n\t\tformatter.setWidth(row, 0, \"300px\");\n\t\trow++;\n\t\ttable.setWidget(row, 0, statusLabel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnCreate);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnSave);\n\t\ttable.setWidget(row, 1, btnCancel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, appletHtml);\n\t\t\n\t\t\t\t\t\t\n\t\t//some random UI stuff to make everything nice and neat\n\t\tVerticalPanel panel = new VerticalPanel();\n\t\tFormUtil.maximizeWidget(panel);\n\t\tpanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tpanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\n\t\tpanel.add(table);\n\t\t\n\t\tsetWidget(panel);\n\t\t\n\t\tsetWidth(\"200px\");\t\t\n\t}", "public void initView(){}", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\n\t\tIntent intent = getIntent();\n\t\tfinal DatabaseUtil mDatabaseUtil = new DatabaseUtil(this); \n\t\tfinal UiManager mUiManager = new UiManager(this);\n\t\t\n\t\tCustomDialog mCustomDialog = new CustomDialog(this);\n final CustomDialog customDialog = mCustomDialog;\n mCustomDialog = null;\n \n final ViewInfo viewInfo = new ViewInfo();\n\t\tviewInfo.panelNum = intent.getStringExtra(\"panelNum\");\n\t\tviewInfo.cellNum = intent.getStringExtra(\"cellNum\");\n\t\tviewInfo.viewId = \"shortcut\" + viewInfo.cellNum;\n\t\t\n customDialog.show();\n customDialog.setOnDismissListener(new OnDismissListener(){\n\n\t\t\tpublic void onDismiss(DialogInterface arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tTempActivity.this.finish();\n\t\t\t}\n });\n \n\t\tcustomDialog.setItemBackground(getResources().getDrawable(R.drawable.btn_default_normal_disable_focused));\n\t\t\n\t\tcustomDialog.loadingAllApp();\n\t\t\n\t\tcustomDialog.setOnSelectedItemsListener(new OnSelectedItemsListener(){\n\t\t\tpublic void onSelectedItems(Map<String,Integer> selectedMapPo) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\tpublic void onSelectedItem(int position) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tviewInfo.intentUri = customDialog.mAppList.get(position).intentUri;\n\t\t\t\t\n\t\t\t\tviewInfo.icon = customDialog.mAppList.get(position).icon;\n\t\t\t\tviewInfo.label = customDialog.mAppList.get(position).label;\n\t\t\t\t\n\t\t\t\tmUiManager.addItemToPanel(null\n\t\t\t\t,viewInfo\n\t\t\t\t,mDatabaseUtil);\n\t\t\t}\n\t\t});\n\t}", "private AlertDialog cargando() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n LayoutInflater inflater = getLayoutInflater();\n\n @SuppressLint(\"InflateParams\") View v = inflater.inflate(R.layout.loading, null);\n\n\n builder.setView(v);\n builder.setCancelable(false);\n\n return builder.create();\n\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tif (getArguments() != null) {\n\t\t\tBundle bundle = getArguments();\n\t\t\tDialogExchangeModel ctripDialogExchangeModel = ((DialogExchangeModel.DialogExchangeModelBuilder) bundle\n\t\t\t\t\t.getSerializable(TAG)).creat();\n\t\t\tif (ctripDialogExchangeModel != null) {\n\t\t\t\tmDialogTag = ctripDialogExchangeModel.getTag();\n\t\t\t\tmSingleBtnTxt = ctripDialogExchangeModel.getSingleText();\n\t\t\t\tmContentTxt = ctripDialogExchangeModel.getDialogContext();\n\t\t\t\tgravity = ctripDialogExchangeModel.getGravity();\n\t\t\t}\n\t\t}\n\t}", "protected abstract void initializeView();", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tprogress = UserCenterDialog.onCreateDialog(this);\r\n\t\tcontext = this;\r\n\t\tshellRW = new RWSharedPreferences(context, \"addInfo\");\r\n\t\tinitDialog(NoticeActivityGroup.LOTNO);\r\n\t}", "private void viewInit() {\n }", "protected void createDialogSize ()\n {\n }", "private void initDialogLayout(){\r\n\t\tsetContentView(R.layout.media);\r\n\t\tsetTitle(\"Media Option...\");\r\n\r\n\t\t//Assign the controls\r\n\t\tbtn_txt = (Button)findViewById(R.id.btn_txt);\r\n\t\t//Set text\r\n\t\tbtn_image = (Button)findViewById(R.id.btn_image);\r\n\r\n\t\tbtn_audio = (Button)findViewById(R.id.btn_audio);\r\n\t\t//btn_vedio = (Button)findViewById(R.id.btn_video);\r\n\t\tbtn_cancel = (Button)findViewById(R.id.btn_cancel);\r\n\r\n\t\tbtn_txt.setOnClickListener(this);\r\n\t\tbtn_image.setOnClickListener(this);\r\n\t\tbtn_audio.setOnClickListener(this);\r\n\t\t//btn_vedio.setOnClickListener(this);\r\n\t\tbtn_cancel.setOnClickListener(this);\r\n\t\t \r\n\t\t}", "@Override\r\n\tprotected void initView() {\n\t\tsuper.initView();\r\n\t\tsetTitle(\"还款\");\r\n\t\tshowBack();\r\n\r\n\t\tjuhua = new ProcessDialogUtil(HuanKuan.this);\r\n\r\n\t\t//账户总览\r\n\t\tbenjin = (TextView) findViewById(R.id.hk_benjin);\r\n\t\tlixi = (TextView) findViewById(R.id.hk_lixi);\r\n\t\tguanlifei = (TextView) findViewById(R.id.hk_guanlifei);\r\n\t\t\r\n\t\tyuqifeiyong = (TextView) findViewById(R.id.hk_yuqi);\r\n\t\thuankuanzonge = (TextView) findViewById(R.id.hk_zonge);\r\n\t\tzhanghuyue = (TextView) findViewById(R.id.hk_yue);\r\n\t\tchongzhi = (TextView) findViewById(R.id.hk_chongzhi);\r\n\r\n\t\thuankuan = (Button) findViewById(R.id.hk_huankuan);\r\n\t\t\r\n\t\t// 调用接口 获取充值信息,然后加载页面\r\n\t\tloadHttp();\r\n\t}", "public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }", "public void popUpDialogBox(View passedView, int code) {\n mBuilder = new AlertDialog.Builder(TrailActivity.this);\n if(code == 0) {\n Date editedTrailDt = null;\n editedView = passedView;\n editedTrailName = (EditText) editedView.findViewById(R.id.TrailNametxt);\n editedTrailModule = (EditText) editedView.findViewById(R.id.Moduletxt);\n editedTrailCode = (EditText) editedView.findViewById(R.id.TrailCodetxt);\n editedTrailDate = (EditText) editedView.findViewById(R.id.datetxt);\n try { editedTrailDt = new SimpleDateFormat(\"dd-MM-yyyy\", Locale.ENGLISH).parse(editedTrailDate.getText().toString().trim()); }\n catch (ParseException e) { e.printStackTrace(); }\n editedTrailId = geTrailId(editedTrailCode.getText().toString(), editedTrailDt);\n }\n else editedView = null;\n initDialogBoxViews(passedView);\n setDateClickListener();\n setTrailDateClickListener();\n setAddtrailBtnClickListener();\n mBuilder.setView(passedView);\n dialog = mBuilder.create();\n dialog.show();\n }", "private void setupViews() {\n ivBack.setVisibility(View.VISIBLE);\n if (isCreateDeal) {\n tvTitle.setText(getString(R.string.create_deal));\n btnDone.setVisibility(View.VISIBLE);\n btnDone.setText(R.string.done);\n etEndTime.setText(appUtils.parseToTimeAndDate(pickUpTime));\n\n } else {\n tvTitle.setText(getString(R.string.deactivated_deal));\n btnDone.setVisibility(View.VISIBLE);\n btnDone.setText(R.string.activate);\n\n if (dealData != null) {\n etTitle.setText(dealData.getDealTitle());\n etTitle.setSelection(etTitle.getText().length());\n etDescription.setText(dealData.getDealDescription());\n etTotalItems.setText(dealData.getTotalItems());\n etOriginalPrice.setText(dealData.getOriginalPrice());\n tvNewPrice.setText(dealData.getNewPrice());\n double discount = (Double.parseDouble(dealData.getOriginalPrice()) -\n Double.parseDouble(dealData.getNewPrice())) / Double.parseDouble(dealData.getOriginalPrice()) * 100;\n String perc = discount + getString(R.string.percent_symbol);\n tvDiscountPerc.setText(perc);\n seekbarNewprice.setProgress((int) discount / 5);\n etBeginTime.setText(appUtils.parseToTimeAndDate(dealData.getStartTime()));\n etEndTime.setText(appUtils.parseToTimeAndDate(dealData.getEndTime()));\n }\n }\n }", "private void initView() {\n \t textDate = (TextView) findViewById(R.id.nextInspectionDate);\n \t textTime = (TextView) findViewById(R.id.nextInspectionTime);\n \t textAddress = (TextView) findViewById(R.id.textAddressInspection);\n \t textPermitType = (TextView) findViewById(R.id.textPermitType);\n \t buttonScheduleInspection = (Button) findViewById(R.id.buttonScheduleInspection);\n \t buttonViewInspections = (Button) findViewById(R.id.buttonViewInspections);\n \t loadingProgress = (ProgressBar) findViewById(R.id.spinnerInpsection);\n \t LinearLayout landingNextInspectionId = (LinearLayout) findViewById(R.id.landingNextInspectionId);\n \t landingNextInspectionId.setOnClickListener(new View.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(projectsLoader.getNextInspection()!=null){\n\t\t\t\t\tString recordId = projectsLoader.getNextInspection().getRecordId_id();\n\t\t\t\t\tif(recordId==null)\n\t\t\t\t\t\treturn;\n\t\t\t\t\tActivityUtils.startScheduleInspectionActivity(LandingPageActivity.this, projectsLoader.getParentProject(recordId).getProjectId(), recordId, projectsLoader.getNextInspection(), AppConstants.CANCEL_INSPECTION_SOURCE_OTHER);\n\t\t\t\t}\n\t\t\t}\t\n\t\t});\n\t}", "@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}", "public abstract void initView();", "protected abstract JDialog createDialog();", "void generar_dialog_preguntas();", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {\n\n final View contentView = inflater.inflate(R.layout.dialog_add_worklog, container, false);\n\n ButterKnife.bind(this, contentView);\n\n saveButton.setOnClickListener((v -> {\n String shortDescText = shortDesc.getText().toString();\n String longDescText = longDesc.getText().toString();\n\n ((TicketDetails)getActivity()).addWorkLogRemote(shortDescText,longDescText);\n\n shortDesc.setText(null);\n longDesc.setText(null);\n dismiss();\n }));\n\n cancelButton.setOnClickListener((view -> {\n dismiss();\n }));\n\n title.setText(getString(R.string.dialogWorkLog_title));\n return contentView;\n }", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}", "private void init() {\n LayoutInflater inflater = getActivity().getLayoutInflater();\n layout = inflater.inflate(R.layout.approvalaction_popup, null);\n showButton();\n bindButtonClick();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n setRetainInstance(true);\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n View view = inflater.inflate(R.layout.void_reason_dialog, null);\n\n final TextView voidSummaryText = (TextView) view.findViewById(R.id.void_summary);\n\n if(voidOrder)\n voidSummaryText.setText(getString(R.string.void_order));\n else\n voidSummaryText.setText(getString(R.string.void_summary, noItems));\n\n voidReason = (EditText) view.findViewById(R.id.reason_text);\n\n builder.setTitle(R.string.void_title);\n builder.setView(view)\n // Add action buttons\n .setPositiveButton(R.string.void_item, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n //Nothing on purpose to avoid closing the dialog when the reason is not filled out\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n VoidReasonDialogFragment.this.getDialog().cancel();\n }\n });\n\n Dialog dialog = builder.create();\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n return dialog;\n }", "@Override\n protected void initViewSetup() {\n }", "@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\r\n\t\tAlertDialog.Builder builder = new Builder(this.getActivity());\r\n\t\tView view = LayoutInflater.from(getActivity()).inflate(\r\n\t\t\t\tR.layout.load_dialog, null);\r\n\r\n\t\tbuilder.setView(view);\r\n\t\tbuilder.setCancelable(false);\r\n\t\tdialog=builder.create();\r\n\t\treturn dialog;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n sharedPreferences = getActivity().getSharedPreferences(\"VALUES\", Context.MODE_PRIVATE);\n currentTheme = sharedPreferences.getInt(\"THEME\", 0);\n\n //inflate theme_dialog.xml\n view = inflater.inflate(R.layout.theme_dialog, container);\n\n // remove title (already defined in theme_dialog.xml)\n getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE);\n\n // Declare buttons and onClick methods\n dialogButtons();\n\n setUltimoThemeBooton(currentTheme);\n\n return view;\n }", "private void setupView() {\n //TODO Enter animation\n\n //setup button\n recordButtonToggle(true);\n resetButtonToggle(false);\n playButtonToggle(false);\n submitButtonToggle(false);\n\n tvChronometer.setText(getString(R.string.dummy_00_00));\n\n tvEmptyHistory.setVisibility(View.VISIBLE);\n item_one.setVisibility(View.INVISIBLE);\n item_two.setVisibility(View.INVISIBLE);\n\n pbCircle.setSmoothPercent(0.0f);\n\n //setup TextView\n Bundle bundle = this.getArguments();\n if (bundle != null) {\n\n String surahName = bundle.getString(Constants.AYAT_SURAHNAME);\n String subAyat = bundle.getString(Constants.AYAT_SUBAYAT);\n String ayatId = bundle.getString(Constants.AYAT_ID);\n\n if (!TextUtils.isEmpty(surahName) && !TextUtils.isEmpty(subAyat) &&!TextUtils.isEmpty(ayatId)) {\n //Set surah name\n tvSurahName.setText(surahName);\n\n //Set surah ayat\n tvVerse.setText(subAyat);\n\n //Save id in model\n presenter.setSurahId(ayatId);\n\n //Save sub ayat in model\n presenter.setAyat(subAyat);\n } else {\n activity.onBackPressed();\n }\n\n //Save surahName for output recording location\n String outputFileName = utils.trimSurahNameToFileName(tvSurahName.getText().toString());\n presenter.setAudioFileName(outputFileName);\n presenter.setSurahName(tvSurahName.getText().toString());\n\n presenter.initializedRecorder();\n\n //Get recite time from server\n presenter.processGetReciteTime(ayatId);\n } else {\n activity.onBackPressed();\n }\n\n //Setup folder for recording\n //TODO Ask for permission!\n boolean folder = new FileManager().createdReciteFolder();\n if (!folder) {\n //Unsuccessful create folder\n utils.getToast(activity, getString(R.string.error_create_folder));\n //disable record button\n recordButtonToggle(false);\n }\n }", "private void setUpView()\n {\n view = new DefaultDrawingView();\n DrawingEditorProxy editor = new DrawingEditorProxy();\n editor.setTarget(new DefaultDrawingEditor());\n view.addNotify(editor);\n for (Handle h : handles)\n h.setView(view);\n }", "@Override\r\n\tprotected void initViews(Bundle savedInstanceState) {\n\t\t\r\n\t}", "@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\treturn mDialog;\n\t\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\r\n\t\tView view = (View) inflater.inflate(R.layout.customprogress, null);\r\n//\t\tButton buttonPositive = (Button) view.findViewById(R.id.dialog_button_positive);\r\n//\t\tButton buttonNegative = (Button) view.findViewById(R.id.dialog_button_negative);\r\n\t\tmProgressBar = (ProgressBar) view.findViewById(R.id.progress_bar);\r\n\t\tmProgressTextView = (TextView) view.findViewById(R.id.progress_txt);\r\n\t\tmProgressBarfile = (ProgressBar) view.findViewById(R.id.progress_bar2);\r\n\t\tmProgressTextViewFile = (TextView) view.findViewById(R.id.progress_txt2);\r\n\r\n//\t\tbuttonNegative.setOnClickListener(this);\r\n//\t\tbuttonPositive.setEnabled(false);\r\n//\t\tbuttonPositive.setOnClickListener(this);\r\n\t\tgetDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);\r\n\t\treturn view;\r\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View rootView = inflater.inflate(R.layout.filter_dialog, null);\n\n\n\n /* Inflate and set the layout for the dialog */\n /* Pass null as the parent view because its going in the dialog layout*/\n builder.setView(rootView)\n /* Add action buttons */\n .setPositiveButton(R.string.filter, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n addShoppingList();\n }\n });\n\n return builder.create();\n }", "private void initViews() {\n\n }", "private void prepareViews() {\n mTextViewHeader = (TextView) mHeaderView.findViewById(R.id.tv_text_header_enhanced_listview);\n mTextViewFooter = (TextView) mFooterView.findViewById(R.id.tv_text_footer_enhanced_listview);\n mTextViewTime = (TextView) mHeaderView.findViewById(R.id.tv_time_update_header);\n\n mArrowHeader = mHeaderView.findViewById(R.id.arrow_header);\n mArrowFooter = mFooterView.findViewById(R.id.arrow_footer);\n\n mPbHeader = mHeaderView.findViewById(R.id.pb_header_enhanced_listview);\n mPbFooter = mFooterView.findViewById(R.id.pb_footer_enhanced_listview);\n\n }", "private void createView() {\n\t\tif (txtButtonCaption == null) {\n\t\t\tView v = LayoutInflater.from(getContext()).inflate(R.layout.ijoomer_voice_button, null);\n\n\t\t\tlnrPlayVoice = (LinearLayout) v.findViewById(R.id.lnrPlayVoice);\n\t\t\tlnrReportVoice = (LinearLayout) v.findViewById(R.id.lnrReportVoice);\n\n\t\t\ttxtButtonCaption = (IjoomerTextView) v.findViewById(R.id.txtButtonCaption);\n\t\t\timgPlay = (ImageView) v.findViewById(R.id.imgPlay);\n\t\t\tgifVoiceLoader = (IjoomerGifView) v.findViewById(R.id.gifVoiceLoader);\n\n\t\t\timgReport = (ImageView) v.findViewById(R.id.imgReport);\n\t\t\ttxtReportCaption = (IjoomerTextView) v.findViewById(R.id.txtReportCaption);\n\n\t\t\tpbrLoading = (ProgressBar) v.findViewById(R.id.pbrLoading);\n\n\t\t\taddView(v, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT));\n\t\t\tupdateView();\n\t\t\tsetActionListener();\n\t\t}\n\t}", "private void initViews() {\n\n\t}", "@Override\r\n protected void initView() {\n mTitleTV = (TextView) findViewById(R.id.sub_header_bar_tv);\r\n mBackIBtn = (ImageButton) findViewById(R.id.sub_header_bar_left_ibtn);\r\n mChooseVehicleTypeLL = (LinearLayout) findViewById(R.id.choose_vehicle_type_ll);\r\n mVehicleTypeTV = (TextView) findViewById(R.id.vehicle_type_tv);\r\n mVehicleCodeTV = (TextView) findViewById(R.id.car_plate_districe_coding_tv);\r\n mVehiclePlateNumET = (EditText) findViewById(R.id.vehicle_plate_num_et);\r\n mChooseCityLL = (LinearLayout) findViewById(R.id.choose_city_ll);\r\n mQueryCityTV = (TextView) findViewById(R.id.choose_city_tv);\r\n mVehicleFrameNumET = (EditText) findViewById(R.id.vehicle_frame_num_et);\r\n mVehicleEngineNumET = (EditText) findViewById(R.id.vehicle_engine_num_et);\r\n mVehicleFrameHelpIV = (ImageView) findViewById(R.id.vehicle_frame_info_iv);\r\n mVehicleEngineHelpIV = (ImageView) findViewById(R.id.vehicle_engine_info_iv);\r\n mQueryBtn = (Button) findViewById(R.id.illegal_query_btn);\r\n mVehicleFrameNumLL = (LinearLayout) findViewById(R.id.vehicle_frame_num_ll);\r\n mVehicleEngineNumLL = (LinearLayout) findViewById(R.id.vhicle_engine_num_ll);\r\n }", "public View() {\n initComponents();\n Paypal.setVisible(false);\n MasterCard.setVisible(false);\n Visa.setVisible(false);\n setLocationRelativeTo(null);\n setResizable(false);\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n generarFacturaBoton.setVisible(false);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }", "private void initView() {\n\t\tbtnCancel = (Button) findViewById(R.id.btn_cancel);\n\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_dialog_add_hole, container, false);\n butOk = root.findViewById(R.id.butOk);\n butCancelar = root.findViewById(R.id.butCancelar);\n latLng = root.findViewById(R.id.lntLng);\n address = root.findViewById(R.id.ads);\n latLng.setText(latlng);\n address.setText(ad);\n\n butOk.setOnClickListener(this);\n butCancelar.setOnClickListener(this);\n\n return root;\n }", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "@Override\n public void Create() {\n initView();\n initData();\n }", "@Override\n protected void onPreExecute()\n {\n dialog.show();\n super.onPreExecute();\n }", "void initView();", "private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }", "private void initializeUI() {\r\n this.parentFrame = game.getFrame();\r\n parentFrame.setEnabled(false); // Disable main game UI during the ending dialog.\r\n createResultPopup();\r\n }" ]
[ "0.7291449", "0.7247376", "0.7065539", "0.70014375", "0.68703413", "0.6806301", "0.67885405", "0.66801375", "0.6663293", "0.65758467", "0.65478927", "0.64909637", "0.6490818", "0.6487391", "0.64851034", "0.6481731", "0.6477016", "0.6477016", "0.64734775", "0.64672804", "0.64672804", "0.64542997", "0.6431586", "0.6431586", "0.64251786", "0.63991684", "0.6380316", "0.63742447", "0.6372123", "0.6363225", "0.63582027", "0.6344359", "0.63361496", "0.63361496", "0.6328283", "0.63190657", "0.63118345", "0.6302666", "0.63019353", "0.62781924", "0.6255246", "0.6241823", "0.6209892", "0.61848193", "0.6181468", "0.6180806", "0.6168415", "0.6167199", "0.6147468", "0.61465156", "0.61438376", "0.61435366", "0.6142542", "0.6126402", "0.61222035", "0.61120105", "0.6111555", "0.6110845", "0.610482", "0.6086191", "0.60787284", "0.60717154", "0.6065793", "0.60621804", "0.6058715", "0.6050703", "0.60473126", "0.6043257", "0.603106", "0.6030444", "0.6027885", "0.60246074", "0.6013155", "0.6010217", "0.60066754", "0.6002489", "0.6000452", "0.5993495", "0.5991407", "0.5983365", "0.5976138", "0.5967734", "0.59673077", "0.5966975", "0.5965495", "0.59610075", "0.5960183", "0.59563494", "0.59530514", "0.59507775", "0.59501934", "0.5947809", "0.59471166", "0.5945607", "0.593836", "0.5935274", "0.5934776", "0.5931687", "0.59232956", "0.59188145", "0.59129673" ]
0.0
-1
================================================= Helper functions =================================================
public boolean isIpAccessible(String url) { URL img = null; try { img = new URL(url); InputStream s = img.openStream(); byte[] b = new byte[256]; s.read(b); String str = new String(b); System.out.println(str); s.close(); return true; } catch (java.io.IOException e) { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean func_70814_o() { return true; }", "private Util() { }", "private void strin() {\n\n\t}", "private FormatUtilities() {}", "public void method_4270() {}", "Compatibility compatibility();", "private stendhal() {\n\t}", "private AsciiUtils() {\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract String mo41079d();", "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "static int size_of_xri(String passed){\n\t\treturn 2;\n\t}", "java.lang.String getHowToUse();", "java.lang.String getHowToUse();", "@Override\n public void func_104112_b() {\n \n }", "abstract String mo1748c();", "private void kk12() {\n\n\t}", "public abstract String mo13682d();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract String mo9239aw();", "public interface CommonUtils {\n\tpublic static String getPrintStackTrace(Exception e){\n\t\t//StringWriter writes upon the string\n\t\tStringWriter sw = new StringWriter();\n\t\t//PrintWriter integrates with StringWriter\n\t\tPrintWriter pw = new PrintWriter(sw);\n\t\t//This line used to write in catch block then it will writes in the console prints upon the console\n\t\t//Basically prints the data upon the console\n\t\te.printStackTrace(pw);\n\t\t//it will converts to tostring method into some meaningful data\n\t\treturn sw.toString();\n\t}\n}", "public abstract String mo118046b();", "private String m16127b(String str) {\n BufferedReader bufferedReader;\n BufferedReader bufferedReader2 = null;\n try {\n bufferedReader = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec(\"getprop \" + str).getInputStream()), OguryChoiceManager.TcfV2.Purpose.DEVELOP_AND_IMPROVE_PRODUCTS);\n try {\n String readLine = bufferedReader.readLine();\n bufferedReader.close();\n C4647b.m16104a((Closeable) bufferedReader);\n return readLine;\n } catch (IOException unused) {\n C4647b.m16104a((Closeable) bufferedReader);\n return null;\n } catch (Throwable th) {\n th = th;\n bufferedReader2 = bufferedReader;\n C4647b.m16104a((Closeable) bufferedReader2);\n throw th;\n }\n } catch (IOException unused2) {\n bufferedReader = null;\n C4647b.m16104a((Closeable) bufferedReader);\n return null;\n } catch (Throwable th2) {\n th = th2;\n C4647b.m16104a((Closeable) bufferedReader2);\n throw th;\n }\n }", "private ProcessorUtils() { }", "private JacobUtils() {}", "private BuilderUtils() {}", "public abstract String mo8770a();", "protected boolean func_70041_e_() { return false; }", "String dibujar();", "private boolean isInternal(String name) {\n return name.startsWith(\"java.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"com.sun.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"oracle.\");\n }", "private MetallicityUtils() {\n\t\t\n\t}", "String processing();", "abstract protected String getWrapperFileNameBase();", "@Test\r\n public void testGetStringRepresentation() {\r\n }", "private static void cajas() {\n\t\t\n\t}", "public abstract String mo11611b();", "public static String getInfo() {\n/* 327 */ return \"\";\n/* */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "@Override\n\tpublic void initUtils() {\n\n\t}", "private static Object Stringbuilder() {\n\t\treturn null;\n\t}", "public abstract String mo24851a(String str);", "abstract String mo1747a(String str);", "java.lang.String getSystem();", "public abstract void mo56925d();", "protected String compString() {\n\t\treturn null;\n\t}", "zzafe mo29840Y() throws RemoteException;", "private NamespaceHelper() {}", "static int size_of_xra(String passed){\n\t\treturn 1;\n\t}", "public abstract String mo41086i();", "private StringUtilities() {\n // nothing to do\n }", "static int size_of_rc(String passed){\n\t\treturn 1;\n\t}", "public abstract String mo9751p();", "private OMUtil() { }", "static int size_of_ora(String passed){\n\t\treturn 1;\n\t}", "private void m50366E() {\n }", "static int size_of_rz(String passed){\n\t\treturn 1;\n\t}", "private StringUtil() {\n\t\tsuper();\n\t}", "private WebStringUtils() {}", "private static String m23463a() {\n return \"\";\n }", "public abstract String mo9238av();", "@Test\r\n public void testToId() {\r\n System.out.println(\"toId\");\r\n String path = \"c:/Dojo Workshop\\\\test.txt\";\r\n String expResult = \"c_58__47_Dojo_32_Workshop_47_test_46_txt\";\r\n String result = FileRestHelper.toId(path);\r\n assertEquals(expResult, result);\r\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "public abstract int mo9754s();", "public abstract void mo70713b();", "private HeaderUtil() {}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "zzang mo29839S() throws RemoteException;", "public abstract String mo9752q();", "private static String null2unknown(String in) {\r\n\t\tif (in == null || in.length() == 0) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\treturn in;\r\n\t\t}\r\n\t}", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "private void poetries() {\n\n\t}", "private CreateDateUtils()\r\n\t{\r\n\t}", "private RdfFormatUtils() {\n }", "static int size_of_rpo(String passed){\n\t\treturn 1;\n\t}", "private C3P0Helper() { }", "private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }", "static int size_of_inx(String passed){\n\t\treturn 1;\n\t}", "long getUnknown72();", "private ArraySetHelper() {\n\t\t// nothing\n\t}", "String getBegin();", "private void getStatus() {\n\t\t\n\t}", "public String getContents()\r\n/* 40: */ {\r\n/* 41:104 */ return \"\";\r\n/* 42: */ }", "public int getExtendedID()\r\n/* 12: */ {\r\n/* 13:17 */ return 10;\r\n/* 14: */ }", "private StringUtil() {}", "private StringUtil() {}", "String mo1152b();", "static int type_of_xri(String passed){\n\t\treturn 1;\n\t}", "static int size_of_sbb(String passed){\n\t\treturn 1;\n\t}", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "private static String getProperty(String paramString) {\n/* 394 */ String str = null;\n/* */ try {\n/* 396 */ str = System.getProperty(paramString);\n/* 397 */ } catch (SecurityException securityException) {\n/* 398 */ securityException.printStackTrace();\n/* 399 */ return str;\n/* 400 */ } catch (NullPointerException nullPointerException) {\n/* 401 */ nullPointerException.printStackTrace();\n/* 402 */ return str;\n/* 403 */ } catch (IllegalArgumentException illegalArgumentException) {\n/* 404 */ illegalArgumentException.printStackTrace();\n/* 405 */ return str;\n/* */ } \n/* 407 */ return str;\n/* */ }", "private XhtmlUtils()\n\t{\n\t}", "void mo57277b();", "@Test\n public void testShorten247() { // FlairImage: 247\n assertEquals(\"From: FlairImage line: 248\", \"\", shorten(\"asd.asd\",7)); \n assertEquals(\"From: FlairImage line: 249\", \"C:/Users/\", shorten(\"C:/Users/asd.asd\",7)); \n }", "public abstract String use();", "@Test\r\n public void testToPath() {\r\n System.out.println(\"toPath\");\r\n String id = \"c_58__47_Dojo_32_Workshop_47_test_46_txt\";\r\n String expResult = \"c:/Dojo Workshop/test.txt\";\r\n String result = FileRestHelper.toPath(id);\r\n assertEquals(expResult, result);\r\n }", "protected String getTildered(String wrappedUri) {\r\n\t\treturn wrappedUri.replaceAll(\"~\", \"~0\").replaceAll(\"/\", \"~1\");\r\n\t}" ]
[ "0.5342146", "0.52641", "0.52439773", "0.5167008", "0.5120976", "0.5072847", "0.5039364", "0.497238", "0.49549946", "0.49549946", "0.4946316", "0.49234262", "0.4918403", "0.4918403", "0.4918403", "0.4918403", "0.49137953", "0.49112824", "0.49112824", "0.4890153", "0.48844203", "0.48805663", "0.4867546", "0.48618403", "0.48601505", "0.48584542", "0.4843652", "0.48196933", "0.4819021", "0.4814173", "0.4805005", "0.48049015", "0.47975612", "0.47910872", "0.4788777", "0.47862968", "0.47803184", "0.4765893", "0.47617903", "0.47367847", "0.47360146", "0.4734813", "0.4734173", "0.47328594", "0.47171867", "0.47147784", "0.47145206", "0.47090757", "0.47007242", "0.46899125", "0.46892577", "0.46876726", "0.4686891", "0.4683361", "0.46771562", "0.4664537", "0.4662821", "0.46589625", "0.46547416", "0.4649765", "0.46426594", "0.46404764", "0.46374074", "0.46317166", "0.46276808", "0.46164846", "0.4614406", "0.4613573", "0.46119696", "0.46096188", "0.46088234", "0.4602854", "0.4602156", "0.45943007", "0.45933655", "0.45915997", "0.45910662", "0.45884472", "0.45859516", "0.45849416", "0.45662925", "0.45662108", "0.45660713", "0.45632356", "0.45622963", "0.456065", "0.45603648", "0.45603096", "0.45596093", "0.45596093", "0.45582366", "0.45577422", "0.45561397", "0.45538315", "0.45513946", "0.45500863", "0.45452583", "0.45439473", "0.4543314", "0.4540542", "0.45390016" ]
0.0
-1
Created duke on 2018/7/8
@Mapper public interface BlogArticleExtendMapper { /** * 根据用户id查找 * * @param userId 用户id * @param tag 标签 * @param type 类别 * @return List<BlogArticleList> */ List<BlogArticleList> selectByUserId(@Param("userId") String userId, @Param("tag") String tag, @Param("type") String type); /** * 访问次数加一 * * @param id 主键 * @param articleViews 访问次数 */ void updateArticleViewsById(@Param("id") String id, @Param("articleViews") int articleViews); /** * 最新文章推荐 * * @param userId 当前用户id * @return List<BlogArticleList> */ List<BlogArticleList> latestRecommendedArticles(@Param("userId") String userId); /** * 文章归档查询 * * @param userId 当前用户id * @return List<BlogArticleList> */ List<BlogArticleList> archiveQuery(@Param("userId") String userId); /** * 查询当前文章创建时间之前的文章 * * @param createTime 当前时间 * @return List<BlogArticleDetail> */ List<BlogArticleDetail> selectPreviousArticles(@Param("createTime") String createTime); /** * 查询当前文章创建时间之后的文章 * * @param createTime 当前时间 * @return List<BlogArticleDetail> */ List<BlogArticleDetail> selectNextArticles(@Param("createTime") String createTime); /** * 根据id查找 * * @param id 主键 * @return BlogArticleDetail */ List<BlogArticleDetail> selectById(@Param("id") String id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private void poetries() {\n\n\t}", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "private void m50366E() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void getExras() {\n }", "public void mo6081a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\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 entrenar() {\n\t\t\n\t}", "public void mo12628c() {\n }", "protected void mo6255a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo21877s() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void memoria() {\n \n }", "private void strin() {\n\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo9848a() {\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public void skystonePos6() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo91715d() {\n }", "private Rekenhulp()\n\t{\n\t}", "public void skystonePos4() {\n }", "public void baocun() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "static void feladat4() {\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "private void getStatus() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "public static void listing5_14() {\n }", "static void feladat6() {\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract void mo70713b();", "public abstract void mo56925d();", "public void mo21779D() {\n }", "private void level7() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "private void m50367F() {\n }", "static void feladat7() {\n\t}", "public void method_4270() {}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void verliesLeven() {\r\n\t\t\r\n\t}", "static void feladat9() {\n\t}", "private Singletion3() {}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public void mo3749d() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private void remplirFabricantData() {\n\t}", "public void mo21794S() {\n }", "public void skystonePos5() {\n }", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo1531a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21825b() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}" ]
[ "0.6093624", "0.5939952", "0.58097476", "0.5788523", "0.57612616", "0.57570136", "0.57068855", "0.5663334", "0.5663334", "0.56573445", "0.5622766", "0.5617879", "0.56053543", "0.55907744", "0.5587536", "0.5576542", "0.5537449", "0.55252033", "0.5513745", "0.55008787", "0.54949105", "0.54949105", "0.54842335", "0.54719883", "0.5435555", "0.54183036", "0.5389904", "0.5383538", "0.5371999", "0.5371999", "0.5371999", "0.5371999", "0.5371999", "0.5371999", "0.5371999", "0.53715384", "0.53698033", "0.5356551", "0.5344762", "0.5340071", "0.53399533", "0.53371096", "0.533324", "0.53307533", "0.53188986", "0.53176147", "0.5314204", "0.5279719", "0.5276963", "0.5271129", "0.52708876", "0.5259562", "0.5247128", "0.5235997", "0.5228628", "0.5227767", "0.5227588", "0.5224818", "0.52193546", "0.52182704", "0.5214086", "0.5209356", "0.52061975", "0.5201096", "0.519591", "0.51949906", "0.518811", "0.5187049", "0.518397", "0.51776576", "0.5173336", "0.5172958", "0.51727664", "0.51708686", "0.51701117", "0.516471", "0.5160568", "0.5158192", "0.5157511", "0.5153294", "0.51259166", "0.51252466", "0.5124146", "0.5123481", "0.51195335", "0.5118862", "0.5117064", "0.51108", "0.5106685", "0.5100485", "0.5096205", "0.5090455", "0.5089074", "0.50886154", "0.5080105", "0.5067308", "0.5066105", "0.50651026", "0.50631756", "0.5062848", "0.5058929" ]
0.0
-1
Creates a new Magnifier object which will look for changes in the specified source component for mouse/graphics changes.
public MagnifyingGlass( Component source ){ this.source = source; this.magnifier = this; try { robot = new Robot(); source.addMouseMotionListener( this ); } catch (AWTException awte) { System.err.println( "Can't get a Robot" ); awte.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void recomputeCoordinatesToSource(MouseEvent oldEvent, Object newSource) {\n/*\n Point3D newCoordinates = InputEventUtils.recomputeCoordinates(pickResult, newSource);\n x = newCoordinates.getX();\n y = newCoordinates.getY();\n z = newCoordinates.getZ();\n*/\n Point2D newCoordinates = InputEventUtils.recomputeCoordinates(pickResult, newSource);\n x = newCoordinates.x;\n y = newCoordinates.y;\n\n }", "@Override\n\tpublic void onModified(LttlComponent source)\n\t{\n\t\tif (!isEnabled() || !isAutoUpdating()) return;\n\t\tupdateMesh();\n\t}", "public MTInputEvent(Object source, IMTComponent3D targetComponent) {\n\t\tsuper(source);\n\t\tthis.targetComponent = targetComponent;\n\t}", "public void addSourceChanger(Component component, Class sourceClass)\n {\n component.addAttribute(GlobalAttributes.Value, sourceClass.getCanonicalName().replace(\".\", \"/\"));\n component.setID(sourceClass.getSimpleName() + \"_source\");\n getSourceChanges().put(component, sourceClass);\n }", "@Override\n public MouseEvent copyFor(Object newSource, EventTarget newTarget) {\n MouseEvent e = (MouseEvent) super.copyFor(newSource, newTarget);\n e.recomputeCoordinatesToSource(this, newSource);\n return e;\n }", "public FigureChangeEvent(Figure source) {\n super(source);\n rect = emptyRect;\n }", "public interface DragSource\n{\n\t/*********************************************************************************************************************\n <b>Description</b>: Gets the components to register drag events on.\n\n <br><b>Notes</b>:<br>\n\t - The vector must only contain java.awt.Component objects\n\t - This method is called only once when the drag source is added via DragAndDropSupport\n\n <br>\n @return Vector of java.awt.Component objects to register as sources\n\t*********************************************************************************************************************/\n public Vector getSourceComponents();\n\n\t/*********************************************************************************************************************\n <b>Description</b>: Determines if the sub-components of the source components (java.awt.Container objects only)\n returned from the getSourceComponents() method should be registered for drag events. This is\n a convenience method to allow returning a single java.awt.Container object that contains all of\n the java.awt.Component objects that should receive drag events.\n\n <br><b>Notes</b>:<br>\n\t - This method is called only once when the drag source is added via DragAndDropSupport\n\n <br>\n @return True if the sub-components of the source components should be registered for drag events, false if not\n\t*********************************************************************************************************************/\n public boolean dragFromSubComponents();\n\n\t/*********************************************************************************************************************\n <b>Description</b>: Retrieves the data object to be dragged. This method should return the actual instance of the\n data object to be drop on a drop target, or a custom java.awt.datatransfer.Transferable object.\n\n <br><b>Notes</b>:<br>\n\t - This method is called once at the begining of each drag operation\n\t - The data flavor is determined directly from the returned data object (if not a Transferable)\n\t - The data object returned DOES NOT have to be, but usually is, the same class type between drags\n\t - If a Transferable object is returned, this object is used (along with its defined data flavors)\n\t instead of constructing a ObjectTransferable object\n\n <br>\n @param componentAt Component the drag operation is on\n @param location Current location of the mouse pointer\n @return Data object instance to be dragged, or a java.awt.datatransfer.Transferable object\n\t*********************************************************************************************************************/\n public Object getData(Component componentAt, Point location);\n \n\t/*********************************************************************************************************************\n <b>Description</b>: Called when the drag and drop operation has ended.\n\n <br>\n @param success True if the drag and drop operation completed successfully, false if not\n\t*********************************************************************************************************************/\n public void dragDropEnd(boolean success);\n\n// \tpublic void dragDropEnd(DragSourceDropEvent e)\n// \tpublic void dragEnter(DragSourceDragEvent e) ???\n// \tpublic void dragOver(DragSourceDragEvent e)\n// \tpublic void dragExit(DragSourceEvent e)\n// \tpublic void dropActionChanged (DragSourceDragEvent e) ???\n\n// public void showAsActive(boolean active);\n\n// public Cursor getDragCursor() ???\n\n /* Eliminates right mouse clicks as valid actions - useful especially\n * if you implement a JPopupMenu for the JTree\n */\n// dgr.setSourceActions(dgr.getSourceActions() & ~InputEvent.BUTTON3_MASK); ???\n}", "void setHoveredComponent(GComponent component)\n {\n if (!this.components.contains(component))\n throw new IllegalArgumentException(String.format(\"The component %s is not part of this context\",component));\n \n this.hoveredComponent = component;\n \n // TODO: Fire events on the old and new object\n }", "GUISource(GUI source) {\n _source = source;\n }", "public ChangeSupport(Object source) {\n this.source = source;\n }", "@Override\n \tpublic void onMouseMove(MouseMoveEvent event) {\n \t\t// Forward to manipulator\n \t\tICommandFactory commandFactory = SvgrealApp.getApp().getCommandFactorySelector().getActiveFactory();\n \t\tif (commandFactory instanceof MouseMoveProcessor) {\n \t\t\tif (((MouseMoveProcessor)commandFactory).processMouseMove(event)) {\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \n \t\t// Highlighting\n \t\tif (highlightingMode) {\n \t\t\tSVGElementModel model = convert(event.getNativeEvent().getEventTarget().<SVGElement>cast());\n \t\t\thighlightModel(model);\n \t\t} \n \t}", "public ResizeEvent(Component source) {\r\n\t\t\tsuper(source);\r\n\t\t}", "public MoveEvent(Component source) {\r\n\t\t\tsuper(source);\r\n\t\t}", "public void setSourceChanges(Map<Component, Class> sourceChanges)\n {\n this.sourceChanges = sourceChanges;\n }", "public void setMagnifierComponent( Component magnifier ) {\n\t\tthis.magnifier = magnifier;\n\t}", "protected ChangeListener createChangeListener(JComponent paramJComponent) {\n/* 66 */ return new MotifChangeHandler((JMenu)paramJComponent, this);\n/* */ }", "@Override\n void createRetained() {\n this.retained = new ImageComponent3DRetained();\n this.retained.setSource(this);\n }", "public GraphChangeSupport(Graph<N, ET> sourceObject)\n\t{\n\t\tsuper();\n\t\tif (sourceObject == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"Source for GraphChangeSupport cannot be null\");\n\t\t}\n\t\tsource = sourceObject;\n\t\tlistenerList = new EventListenerList();\n\t}", "public FigureChangeEvent(Figure source, Rectangle r) {\n super(source);\n rect = r;\n }", "public Vector getSourceComponents();", "public void create() {\n \n EventHandler filter2 = \n new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n /*sim.updateCanvasMouseCoordinates(event.getX(), event.getY());\n sim.screenMouseX = event.getScreenX();\n sim.screenMouseY = event.getScreenY();\n sim.sceneMouseX = event.getSceneX();\n sim.sceneMouseY = event.getSceneY();*/\n //System.out.println(\"H: \" + spCanvasContainer.getHvalue() + \" Y:\" + spCanvasContainer.getVvalue());\n //System.out.println(\"Hm: \" + spCanvasContainer.getHmax() + \" Ym:\" + spCanvasContainer.getVmax());\n //System.out.println(\"Move: \" + canvasMouseX + \" Y:\" + canvasMouseY);\n }\n };\n this.addEventFilter(MouseEvent.ANY, filter2);\n\n this.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //onMouseClick(event.getX(), event.getY());\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftClick(event.getX(), event.getY());\n //scenario.leftClick(event.getX(), event.getY());\n //event.consume();\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightClick(event.getX(), event.getY());\n //scenario.rightClick(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMousePressed(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftPressed(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightPressed(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseDragged(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftDragged(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightDragged(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseReleased(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //draggingWell = null;\n //onMouseDragged(event.getX(), event.getY());\n /*if (event.isPrimaryButtonDown()) {\n // scenario.onMouseDrag(event.getX(), event.getY());\n event.consume();\n }\n else if (event.isSecondaryButtonDown()) {\n }*/\n }\n });\n\n this.setOnMouseMoved(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n onMouseMove(event.getX(), event.getY());\n }\n });\n }", "public void mousePressed(MouseEvent me, int x_p, int y_p, double mag) {\n \t\tint x_pd = x_p;\n \t\tint y_pd = y_p;\n \t\tif (!this.at.isIdentity()) {\n \t\t\tfinal Point2D.Double po = inverseTransformPoint(x_p, y_p);\n \t\t\tx_p = (int)po.x;\n \t\t\ty_p = (int)po.y;\n \t\t}\n \n \t\tfinal int tool = ProjectToolbar.getToolId();\n \n \t\tfinal Display display = ((DisplayCanvas)me.getSource()).getDisplay();\n \t\tfinal long layer_id = display.getLayer().getId();\n \n \t\tindex = findPoint(x_p, y_p, layer_id, mag);\n \n \t\tif (ProjectToolbar.PENCIL == tool && n_points > 0 && -1 == index && !me.isShiftDown() && !Utils.isControlDown(me)) {\n \t\t\t// Use Mark Longair's tracing: from the clicked point to the last one\n \t\t\tfinal double scale = layer_set.getVirtualizationScale();\n \t\t\t// Ok now with all found images, create a virtual stack that provides access to them all, with caching.\n \t\t\tfinal Worker[] worker = new Worker[2];\n \n \t\t\tTraceParameters tr_ = tr_map.get(layer_set);\n \t\t\tfinal TraceParameters tr = null == tr_ ? new TraceParameters() : tr_;\n \t\t\tif (null == tr_) {\n \t\t\t\tsynchronized (tr_map) {\n \t\t\t\t\ttr_map.put(layer_set, tr);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (tr.update) {\n \t\t\t\tworker[0] = new Worker(\"Preparing Hessian...\") { public void run() {\n \t\t\t\t\tstartedWorking();\n \t\t\t\t\ttry {\n \t\t\t\tUtils.log(\"Push ESCAPE key to cancel autotrace anytime.\");\n \t\t\t\tImagePlus virtual = new LayerStack(layer_set, scale, ImagePlus.GRAY8, Patch.class, display.getDisplayChannelAlphas()).getImagePlus();\n \t\t\t\t//virtual.show();\n \t\t\t\tCalibration cal = virtual.getCalibration();\n \t\t\t\tdouble minimumSeparation = 1;\n \t\t\t\tif (cal != null) minimumSeparation = Math.min(cal.pixelWidth,\n \t\t\t\t\t\t\t\t\t Math.min(cal.pixelHeight,\n \t\t\t\t\t\t\t\t\t\t cal.pixelDepth));\n \t\t\t\tComputeCurvatures hessian = new ComputeCurvatures(virtual, minimumSeparation, null, cal != null);\n \t\t\t\thessian.run();\n \n \t\t\t\ttr.virtual = virtual;\n \t\t\t\ttr.scale = scale;\n \t\t\t\ttr.hessian = hessian;\n \t\t\t\ttr.update = false;\n \n \t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\tIJError.print(e);\n \t\t\t\t\t}\n \t\t\t\t\tfinishedWorking();\n \t\t\t\t}};\n \t\t\t\tBureaucrat.createAndStart(worker[0], project);\n \t\t\t}\n \n \t\t\tPoint2D.Double po = transformPoint(p[0][n_points-1], p[1][n_points-1]);\n \t\t\tfinal int start_x = (int)po.x;\n \t\t\tfinal int start_y = (int)po.y;\n \t\t\tfinal int start_z = layer_set.indexOf(layer_set.getLayer(p_layer[n_points-1])); // 0-based\n \t\t\tfinal int goal_x = (int)(x_pd * scale); // must transform into virtual space\n \t\t\tfinal int goal_y = (int)(y_pd * scale);\n \t\t\tfinal int goal_z = layer_set.indexOf(display.getLayer());\n \n \t\t\t/*\n \t\t\tUtils.log2(\"x_pd, y_pd : \" + x_pd + \", \" + y_pd);\n \t\t\tUtils.log2(\"scale: \" + scale);\n \t\t\tUtils.log2(\"start: \" + start_x + \",\" + start_y + \", \" + start_z);\n \t\t\tUtils.log2(\"goal: \" + goal_x + \",\" + goal_y + \", \" + goal_z);\n \t\t\tUtils.log2(\"virtual: \" + tr.virtual);\n \t\t\t*/\n \n \n \t\t\tfinal boolean simplify = me.isAltDown();\n \n \t\t\tworker[1] = new Worker(\"Tracer - waiting on hessian\") { public void run() {\n \t\t\t\tstartedWorking();\n \t\t\t\ttry {\n \t\t\t\tif (null != worker[0]) {\n \t\t\t\t\t// Wait until hessian is ready\n \t\t\t\t\tworker[0].join();\n \t\t\t\t}\n \t\t\t\tsetTaskName(\"Tracing path\");\n \t\t\t\tfinal int reportEveryMilliseconds = 2000;\n \t\t\t\ttr.tracer = new TracerThread(tr.virtual, 0, 255,\n \t\t\t\t\t\t 120, // timeout seconds\n \t\t\t\t\t\t\t\t reportEveryMilliseconds,\n \t\t\t\t\t\t\t\t start_x, start_y, start_z,\n \t\t\t\t\t\t\t\t goal_x, goal_y, goal_z,\n \t\t\t\t\t\t\t\t true, // reciproal pix values at start and goal\n \t\t\t\t\t\t\t\t tr.virtual.getStackSize() == 1,\n \t\t\t\t\t\t\t\t tr.hessian,\n \t\t\t\t\t\t\t\t null == tr.hessian ? 1 : 4,\n \t\t\t\t\t\t\t\t null,\n \t\t\t\t\t\t\t\t null != tr.hessian);\n \t\t\t\ttr.tracer.addProgressListener(new SearchProgressCallback() {\n \t\t\t\t\tpublic void pointsInSearch(SearchThread source, int inOpen, int inClosed) {\n \t\t\t\t\t\tworker[1].setTaskName(\"Tracing path: open=\" + inOpen + \" closed=\" + inClosed);\n \t\t\t\t\t}\n \t\t\t\t\tpublic void finished(SearchThread source, boolean success) {\n \t\t\t\t\t\tif (!success) {\n \t\t\t\t\t\t\tUtils.logAll(\"Could NOT trace a path\");\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tpublic void threadStatus(SearchThread source, int currentStatus) {\n \t\t\t\t\t\t// This method gets called every reportEveryMilliseconds\n \t\t\t\t\t\tif (worker[1].hasQuitted()) {\n \t\t\t\t\t\t\tsource.requestStop();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t\t\ttr.tracer.run();\n \n \t\t\t\tfinal Path result = tr.tracer.getResult();\n \n \t\t\t\ttr.tracer = null;\n \n \t\t\t\tif (null == result) {\n \t\t\t\t\tUtils.log(\"Finding a path failed\"); //: \"+ \n \t\t\t\t\t\t// not public //SearchThread.exitReasonStrings[tracer.getExitReason()]);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \n \t\t\t\t// TODO: precise_x_positions etc are likely to be broken (calibrated or something)\n \n \n \t\t\t\t// Remove bogus points: those at the end with 0,0 coords\n \t\t\t\tint len = result.points;\n \t\t\t\tfinal double[][] pos = result.getXYZUnscaled();\n \t\t\t\tfor (int i=len-1; i>-1; i--) {\n \t\t\t\t\tif (0 == pos[0][i] && 0 == pos[1][i]) {\n \t\t\t\t\t\tlen--;\n \t\t\t\t\t} else break;\n \t\t\t\t}\n \t\t\t\t// Transform points: undo scale, and bring to this Polyline AffineTransform:\n \t\t\t\tfinal AffineTransform aff = new AffineTransform();\n \t\t\t\t/* Inverse order: */\n \t\t\t\t/* 2 */ aff.concatenate(Polyline.this.at.createInverse());\n \t\t\t\t/* 1 */ aff.scale(1/scale, 1/scale);\n \t\t\t\tfinal double[] po = new double[len * 2];\n \t\t\t\tfor (int i=0, j=0; i<len; i++, j+=2) {\n \t\t\t\t\tpo[j] = pos[0][i];\n \t\t\t\t\tpo[j+1] = pos[1][i];\n \t\t\t\t}\n \t\t\t\tfinal double[] po2 = new double[len * 2];\n \t\t\t\taff.transform(po, 0, po2, 0, len); // what a stupid format: consecutive x,y pairs\n \n \t\t\t\tlong[] p_layer_ids = new long[len];\n \t\t\t\tdouble[] pox = new double[len];\n \t\t\t\tdouble[] poy = new double[len];\n \t\t\t\tfor (int i=0, j=0; i<len; i++, j+=2) {\n \t\t\t\t\tp_layer_ids[i] = layer_set.getNearestLayer(pos[2][i]).getId(); // z_positions in 0-(N-1), not in 0-N like slices!\n \t\t\t\t\tpox[i] = po2[j];\n \t\t\t\t\tpoy[i] = po2[j+1];\n \t\t\t\t}\n \n \t\t\t\t// Simplify path: to steps of 5 calibration units, or 5 pixels when not calibrated.\n \t\t\t\tif (simplify) {\n \t\t\t\t\tObject[] ob = Polyline.simplify(pox, poy, p_layer_ids, 10000, layer_set);\n \t\t\t\t\tpox = (double[])ob[0];\n \t\t\t\t\tpoy = (double[])ob[1];\n \t\t\t\t\tp_layer_ids = (long[])ob[2];\n \t\t\t\t\tlen = pox.length;\n \t\t\t\t}\n \n \t\t\t\t// Record the first newly-added autotraced point index:\n \t\t\t\tlast_autotrace_start = Polyline.this.n_points;\n \t\t\t\tPolyline.this.appendPoints(pox, poy, p_layer_ids, len);\n \n \t\t\t\tPolyline.this.repaint(true);\n \t\t\t\tUtils.logAll(\"Added \" + len + \" new points.\");\n \n \t\t\t\t} catch (Exception e) { IJError.print(e); }\n \t\t\t\tfinishedWorking();\n \t\t\t}};\n \t\t\tBureaucrat.createAndStart(worker[1], project);\n \n \t\t\tindex = -1;\n \t\t\treturn;\n \n \t\t}\n \n \t\tif (ProjectToolbar.PEN == tool || ProjectToolbar.PENCIL == tool) {\n \n \t\t\tif (Utils.isControlDown(me) && me.isShiftDown()) {\n \t\t\t\tfinal long lid = Display.getFrontLayer(this.project).getId();\n \t\t\t\tif (-1 == index || lid != p_layer[index]) {\n \t\t\t\t\tindex = findNearestPoint(x_p, y_p, layer_id);\n \t\t\t\t}\n \t\t\t\tif (-1 != index) {\n \t\t\t\t\t//delete point\n \t\t\t\t\tremovePoint(index);\n \t\t\t\t\tindex = -1;\n \t\t\t\t\trepaint(false);\n \t\t\t\t}\n \n \t\t\t\t// In any case, terminate\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t\tif (-1 != index && layer_id != p_layer[index]) index = -1; // disable!\n \n \t\t\t//if no conditions are met, attempt to add point\n \t\t\telse if (-1 == index && !me.isShiftDown() && !me.isAltDown()) {\n \t\t\t\t//add a new point\n \t\t\t\tindex = addPoint(x_p, y_p, layer_id, mag);\n \t\t\t\tis_new_point = true;\n \t\t\t\trepaint(false);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t}", "@Override\r\npublic void componentMoved(ComponentEvent arg0) {\n\t\r\n}", "public void handleModified(ModifiedEvent source) {}", "public void mouseDragged(MouseEvent e){\n if(e.getSource() == cmUI) {\n // finish the creation\n cmModel.stopCreating();\n\n // if we are sampling the model\n // move the sample color to pass it to another color\n if (cmModel.sample != null) {\n cmModel.sample.setPos(e.getPoint());\n if (cmModel.sampledItem != null) {\n // when the sample enters/ leave the sampled item\n // set the different display mode\n if (cmModel.sampledItem.isSampling() && !cmModel.sampledItem.contains(cmModel.sample)) {\n cmModel.sampledItem.setSample(false, null);\n repaint(cmModel.sampledItem, cmModel.sample);\n } else if (!cmModel.sampledItem.isSampling() && cmModel.sampledItem.contains(cmModel.sample)) {\n cmModel.sampledItem.setSample(true, null);\n repaint(cmModel.sampledItem, cmModel.sample);\n } else if (cmModel.sampledItem.isSampling()) {\n repaint(cmModel.sampledItem, cmModel.sample);\n } else {\n repaint(cmModel.sample);\n }\n }\n }\n\n // save the trace points\n if(isTracing){\n mouseTrace.lineTo(e.getX(),e.getY());\n }\n }\n \n //click event comes from the color picker\n else if(e.getSource() == cpUI) {\n\t\t\tmouseClickedPoint = mouseDraggedPoint;\n\t\t\tmouseDraggedPoint = e.getPoint();\n\t\t\t\n\t\t\t//if mouse is clicked in the white handle change the hue\n\t\t\tif(mouseClickedInCircle) {\n\t\t\t\t//Hue changes faster with left click\n\t\t\t\tif(SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\tcalculateHue(1);\n\t\t\t\t}\n\t\t\t\t//Hue changes slowly with right click\n\t\t\t\telse if(SwingUtilities.isRightMouseButton(e)){\n\t\t\t\t\tcalculateHue(2);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if mouse is clicked anywhere except the handle\n\t\t\t//and the circles surrounding the main color picker\n\t\t\t//change saturation and brightness\n\t\t\telse if(mouseClickedInSwipePanel) {\n\t\t\t\t//Saturation and Brightness change faster with left click\n\t\t\t\tif(SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\tcalculateSandB(1);\n\t\t\t\t}\n\t\t\t\t//Saturation and Brightness change slowly with right click\n\t\t\t\telse if(SwingUtilities.isRightMouseButton(e)) {\n\t\t\t\t\tcalculateSandB(2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Add a trail circle (circles that follow the mosue when you press it)\n\t\t\t\t//every five times this action listener is called\n\t\t\t\tif(count % 5 == 0) {\n\t\t\t\t\tcpUI.getCircleTrail().add(mouseDraggedPoint);\n\t\t\t\t\tif(cpUI.getCircleTrail().size() == 10) {\n\t\t\t\t\t\tcpUI.getCircleTrail().remove(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t\tcpUI.repaint();\n\t\t}\n\n }", "@Override\n\t\tpublic void EnergySourceChanged(EnergyProducerOrConsumer changedSource) {\n\t\t\t\n\t\t}", "private void initSourcePanel() {\n sourcePreview.setEditable(false);\n sourcePreview.setFont(new Font(\"Monospaced\", Font.PLAIN, Globals.prefs.getInt(JabRefPreferences.FONT_SIZE)));\n JScrollPane paneScrollPane = new JScrollPane(sourcePreview);\n paneScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n paneScrollPane.setPreferredSize(new Dimension(500, 255));\n paneScrollPane.setMinimumSize(new Dimension(10, 10));\n\n sourcePanel.setLayout(new BorderLayout());\n sourcePanel.add(paneScrollPane, BorderLayout.CENTER);\n }", "public void mouseMoved( MouseEvent mouseEvent ) {\r\n Object source = mouseEvent.getSource();\r\n\r\n if ( source instanceof ViewJComponentLUT ) {\r\n if ( colorChooser != null && colorChooser.isVisible() == true ) {\r\n return;\r\n }\r\n\r\n LUTIndex = 255 - mouseEvent.getY();\r\n\r\n updateLUTPositionString(\r\n String.valueOf( LUTIndex ) + \": (\" + MipavUtil.makeFloatString( lut.getFloat( 0, LUTIndex ), 2 )\r\n + \", \" + Math.round( lut.getFloat( 1, LUTIndex ) ) + \", \"\r\n + Math.round( lut.getFloat( 2, LUTIndex ) ) + \", \" + Math.round( lut.getFloat( 3, LUTIndex ) ) + \")\" );\r\n } else if ( source instanceof ViewJComponentHLUTBase ) {\r\n float x = mouseEvent.getX();\r\n float y = mouseEvent.getY();\r\n\r\n componentHistogram.checkProximityToTransferFunction( x, y, mouseEvent.isShiftDown() );\r\n }\r\n }", "public MouseSensor(GameObject gameObject) {\n super(gameObject);\n }", "public void setSource(Mat source) {\n this.source = source;\n }", "public void setSource(float xx, float yy);", "public MotionViewer(Chip2DMotion chip){\n motionData=chip.getEmptyMotionData();\n try {\n UIManager.setLookAndFeel(new WindowsLookAndFeel());\n } catch (Exception e) {\n log.warning(e.getMessage());\n }\n setName(\"MotionViewer\");\n log.setLevel(Level.INFO);\n initComponents();\n \n setChip(chip);\n makeCanvas();\n statisticsLabel=new DynamicFontSizeJLabel();\n statisticsLabel.setToolTipText(\"Time slice/Absolute time, NumEvents/NumFiltered, events/sec, Frame rate acheived/desired, Time expansion X contraction /, delay after frame, color scale\");\n statisticsPanel.add(statisticsLabel);\n\n loggingButton.setAction(toggleLoggingAction);\n loggingMenuItem.setAction(toggleLoggingAction);\n \n int n=menuBar.getMenuCount();\n for(int i=0;i<n;i++){\n JMenu m=menuBar.getMenu(i);\n m.getPopupMenu().setLightWeightPopupEnabled(false);\n }\n \n String lastFilePath=prefs.get(\"MotionViewer.lastFile\",\"\");\n lastFile=new File(lastFilePath);\n \n // recent files tracks recently used files *and* folders. recentFiles adds the anonymous listener\n // built here to open the selected file\n recentFiles=new RecentFiles(prefs, fileMenu, new ActionListener(){\n public void actionPerformed(ActionEvent evt){\n File f=new File(evt.getActionCommand());\n log.info(\"opening \"+evt.getActionCommand());\n try{\n if(f!=null && f.isFile()){\n getPlayer().startPlayback(f);\n recentFiles.addFile(f);\n }else if(f!=null && f.isDirectory()){\n prefs.put(\"MotionViewer.lastFile\",f.getCanonicalPath());\n getPlayer().openInputFileDialog();\n recentFiles.addFile(f);\n }\n }catch(Exception fnf){\n fnf.printStackTrace();\n// exceptionOccurred(fnf,this);\n recentFiles.removeFile(f);\n }\n }\n });\n \n playerControlPanel.setVisible(false);\n \n pack();\n \n Runtime.getRuntime().addShutdownHook(new Thread(){\n public void run(){\n if(hardware!=null && hardware.isOpen()){\n hardware.close();\n }\n }\n });\n \n setFocusable(true);\n requestFocus();\n viewLoop=new ViewLoop();\n viewLoop.start();\n dropTarget=new DropTarget(imagePanel,this);\n \n fixLoggingControls();\n \n // init menu items that are checkboxes to correct initial state\n loggingPlaybackImmediatelyCheckBoxMenuItem.setSelected(isLoggingPlaybackImmediatelyEnabled());\n pauseRenderingCheckBoxMenuItem.setSelected(isPaused());\n \n }", "public ShipDesigner(ShipDef shipDef, ExtAssetManager assetManager, ShipDesignerStyle style,\n BiConsumer<List<ComponentDef>, List<ComponentDef>> selectionChanged) {\n super(assetManager, style.selection, style.noComponent);\n //ShipDef that contains all ComponentDefs\n this.selectionChanged = selectionChanged;\n this.designerHelper = shipDef.getShipDesignerHelper();\n this.style = style;\n clipboard = Gdx.app.getClipboard();\n\n //capture touch events\n addCaptureListener(new InputListener() {\n @Override\n public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n if (button == Input.Buttons.LEFT) {\n if (UIUtils.shift()) {\n ComponentDef def = getComponentAt(x, y);\n if (def != null) {\n toggleSelectedComponent(getComponentAt(x, y));\n }\n } else {\n ComponentDef def = getComponentAt(x, y);\n if (def != null && !selectedComponents.contains(def)) {\n clearSelectedComponents();\n addSelectedComponent(def);\n } else if (def == null) {\n clearSelectedComponents();\n }\n }\n getStage().setKeyboardFocus(ShipDesigner.this);\n return true;\n } else if (button == Input.Buttons.RIGHT && draggingPointer == -1) {\n System.out.println(\"x: \" + x + \", y: \" + y);\n selectionStart = new Vector2(x, y);\n selectionEnd.set(x, y);\n draggingPointer = pointer;\n return true;\n } else {\n return false;\n }\n }\n\n @Override\n public void touchDragged(InputEvent event, float x, float y, int pointer) {\n if (pointer == draggingPointer) {\n selectionEnd.set(x, y);\n } else {\n super.touchDragged(event, x, y, pointer);\n }\n }\n\n @Override\n public void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n if (pointer == draggingPointer) {\n draggingPointer = -1;\n int xStart = calculateXIndex(Math.min(selectionStart.x, selectionEnd.x));\n int xEnd = calculateXIndex(Math.max(selectionStart.x, selectionEnd.x));\n int yStart = calculateYIndex(Math.min(selectionStart.y, selectionEnd.y));\n int yEnd = calculateYIndex(Math.max(selectionStart.y, selectionEnd.y));\n updateSelectedComponents(designerHelper.getComponents().stream()\n .filter(c -> c.getX() > xStart && c.getX() + c.getRealWidth() <= xEnd\n && c.getY() > yStart && c.getY() + c.getRealHeight() <= yEnd)\n .collect(Collectors.toList()));\n }\n }\n });\n\n addListener(new InputListener() {\n @Override\n public boolean keyDown(InputEvent event, int keycode) {\n return ShipDesigner.this.keyDown(keycode);\n }\n });\n\n\n }", "public PropertyChangeEvent(Object source, String propertyName,\n Object oldVal, Object newVal)\n {\n super(source);\n this.propertyName = propertyName;\n oldValue = oldVal;\n newValue = newVal;\n }", "private static void injectMotionEvent(InputManager im, Method method, int inputSource, int action,\n\t\t\tlong when, float x, float y, float pressure)\n\t\t\tthrows InvocationTargetException, IllegalAccessException\n\t{\t\n\t\tMotionEvent event = MotionEvent.obtain(when, when, action, x, y, pressure, 1.0f, 0, 1.0f, 1.0f, 0, 0);\n\t\tevent.setSource(inputSource);\n\t\tmethod.invoke(method, im, new Object[]{event, Integer.valueOf(0)});\n\t}", "@Override\r\n\tpublic void componentMoved(ComponentEvent arg0) {\n\r\n\t}", "public MTInputEvent(Object source) {\n\t\tsuper(source);\n\t\t\n\t}", "public Mat getSource() {\n return this.source;\n }", "public PaintPanel()\r\n {\r\n // handle frame mouse motion event\r\n addMouseMotionListener(\r\n new MouseMotionAdapter()\r\n {\r\n // store drag points and repaint\r\n @Override\r\n public void mouseDragged(MouseEvent event)\r\n {\r\n points.add(event.getPoint());\r\n repaint(); // repaint JFrame\r\n }\r\n }\r\n );\r\n }", "private PropertyChangeListener createListener() {\n return new PropertyChangeListener() {\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n String propertyName = evt.getPropertyName();\n if (Filter.PROPERTY_PATTERN.equals(propertyName)) {\n DocumentViewPanel.RP.post(new Runnable() {\n @Override\n public void run() {\n refreshKeys();\n }\n });\n }\n }\n };\n }", "@Override\n public void customEventOccurred(CustomEvent event)\n {\n Source source = (Source)event.getSource();\n Cloner cloner = new Cloner();\n final Source clonedSource = cloner.deepClone(source);\n \n // Create wrapper for source clone:\n final TagsSource sourceLogic = new TagsSource(clonedSource);\n \n // Create and render progress information dialog:\n sourceLogic.off(SourceEvent.THREAD_PROGRESS);\n final ProgressInformationDialog progressInformationDialog =\n new ProgressInformationDialog(sourceLogic, SourceEvent.THREAD_PROGRESS);\n progressInformationDialog.render(\"Progress information\", Main.mainForm);\n \n sourceLogic.off(SourceEvent.THREAD_ERROR);\n sourceLogic.on(SourceEvent.THREAD_ERROR, new ThreadErrorEventHandler());\n \n // Subscribe on model's source initialization event:\n sourceLogic.off(SourceEvent.SOURCE_INITIALIZED);\n sourceLogic.on(SourceEvent.SOURCE_INITIALIZED, new CustomEventListener()\n {\n @Override\n public void customEventOccurred(CustomEvent evt)\n {\n progressInformationDialog.close();\n \n if (clonedSource.getTypeId() == SourcesTypes.INTOOLS_EXPORT_DOCUMENT.ID)\n DialogsFactory.produceIntoolsExportDataSourceDialog(sourceLogic, true, \"Edit selected Intools export data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ALARM_AND_TRIP_SCHEDULE.ID)\n DialogsFactory.produceDocumentDataSourceDialog(sourceLogic, true, \"Edit selected document data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.DCS_VARIABLE_TABLE.ID)\n DialogsFactory.produceDcsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected DCS Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.ESD_VARIABLE_TABLE.ID)\n DialogsFactory.produceEsdVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected ESD Variable Table data source\");\n \n if (clonedSource.getTypeId() == SourcesTypes.FGS_VARIABLE_TABLE.ID)\n DialogsFactory.produceFgsVariableTableDataSourceDialog(sourceLogic, true, \"Edit selected FGS Variable Table data source\");\n }// customEventOccurred\n });// on\n \n // Execute initialization thread:\n sourceLogic.initialize();\n }", "private Camera() {\n viewport = new Rectangle();\n dirtyAreas = new ArrayList<Rectangle>();\n renderedAreas = new ArrayList<Rectangle>();\n fullUpdate = false;\n dirtyAreaCounter = 0;\n }", "protected abstract void sourceChanged(Change<? extends F> c);", "@Override\n public void componentMoved(ComponentEvent e)\n {\n \n }", "@Override\n\t\t\t\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "public void addLightSource(Item lightSource) {\n/* 5374 */ if (lightSource.getTemplateId() == 1243)\n/* */ return; \n/* 5376 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 5380 */ if (lightSource.getColor() != -1)\n/* */ {\n/* 5382 */ int lightStrength = Math.max(WurmColor.getColorRed(lightSource.getColor()), \n/* 5383 */ WurmColor.getColorGreen(lightSource.getColor()));\n/* 5384 */ lightStrength = Math.max(lightStrength, WurmColor.getColorBlue(lightSource.getColor()));\n/* 5385 */ if (lightStrength == 0)\n/* 5386 */ lightStrength = 1; \n/* 5387 */ byte r = (byte)(WurmColor.getColorRed(lightSource.getColor()) * 128 / lightStrength);\n/* 5388 */ byte g = (byte)(WurmColor.getColorGreen(lightSource.getColor()) * 128 / lightStrength);\n/* 5389 */ byte b = (byte)(WurmColor.getColorBlue(lightSource.getColor()) * 128 / lightStrength);\n/* */ \n/* 5391 */ vz.sendAttachItemEffect(lightSource.getWurmId(), (byte)4, r, g, b, lightSource\n/* 5392 */ .getRadius());\n/* */ \n/* */ \n/* */ }\n/* 5396 */ else if (lightSource.isLightBright())\n/* */ {\n/* 5398 */ int lightStrength = (int)(80.0F + lightSource.getCurrentQualityLevel() / 100.0F * 40.0F);\n/* 5399 */ vz.sendAttachItemEffect(lightSource.getWurmId(), (byte)4, \n/* 5400 */ Item.getRLight(lightStrength), Item.getGLight(lightStrength), Item.getBLight(lightStrength), lightSource\n/* 5401 */ .getRadius());\n/* */ }\n/* */ else\n/* */ {\n/* 5405 */ vz.sendAttachItemEffect(lightSource.getWurmId(), (byte)4, (byte)80, (byte)80, (byte)80, lightSource\n/* 5406 */ .getRadius());\n/* */ }\n/* */ \n/* */ }\n/* 5410 */ catch (Exception e) {\n/* */ \n/* 5412 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }", "public void mouseMoved(MouseEvent e) {}", "public WindowListChangeEvent(Object eventSource) {\n super(eventSource); \n }", "@Override\n\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\n\t}", "public void mouseDragged (MouseEvent e) {}", "public Map<Component, Class> getSourceChanges()\n {\n if (sourceChanges == null)\n {\n sourceChanges = new HashMap<>();\n }\n return sourceChanges;\n }", "@Test\n public void testSetDragMultiplier() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.DRAG_MULTIPLIER, 1.678f);\n }", "@Override\r\n public void mouseDragged(final MouseEvent e) {\n if (startPoint != null) {\r\n // Fetch Graphics from Graph\r\n Graphics g = GraphComponent.this.getGraphics();\r\n // Reset Remembered Port\r\n PortView newPort = getTargetPortAt(e.getPoint());\r\n // Do not flicker (repaint only on real changes)\r\n if (newPort == null || newPort != port) {\r\n // Xor-Paint the old Connector (Hide old Connector)\r\n paintConnector(Color.black, GraphComponent.this.getBackground(), g);\r\n // If Port was found then Point to Port Location\r\n port = newPort;\r\n if (port != null) {\r\n current = GraphComponent.this.toScreen(port.getLocation());\r\n } else {\r\n current = GraphComponent.this.snap(e.getPoint());\r\n }\r\n // Xor-Paint the new Connector\r\n paintConnector(GraphComponent.this.getBackground(), Color.black, g);\r\n }\r\n }\r\n super.mouseDragged(e);\r\n }", "public MultipleToolTipManager(JComponent c)\n {\n\taddEventSource(c);\n }", "@Override\n\tpublic void mouseReleased(MouseEvent e)\n\t{\n\t\tif (!potentialDrag) return;\n\n\t\tswappedComponent = null;\n\t\tswappedComponentPreviousLocation = null;\n\t\tsource.removeMouseMotionListener( this );\n\t\tpotentialDrag = false;\n\n\t\tif (changeCursor)\n\t\t\tsource.setCursor( originalCursor );\n\n\t\tif (destination instanceof JComponent)\n\t\t{\n\t\t\t((JComponent)destination).setAutoscrolls( autoscrolls );\n\t\t}\n\n\t\t// Layout the components on the parent container\n\n\t\tif (autoLayout)\n\t\t{\n\t\t\tif (destination instanceof JComponent)\n\t\t\t{\n\t\t\t\t((JComponent)destination).revalidate();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tdestination.validate();\n\t\t\t}\n\t\t}\n\t}", "public void mouseDragged(MouseEvent event) { }", "public RenderedImage create(ParameterBlock args,\n RenderingHints renderHints) {\n \n // Get the source image and the data type parameter.\n RenderedImage src = args.getRenderedSource(0);\n Integer datatype = (Integer)args.getObjectParameter(0);\n int type = datatype.intValue();\n\n // Get ImageLayout from renderHints if any.\n ImageLayout layout = RIFUtil.getImageLayoutHint(renderHints);\n\n // If there is no change return the source image directly.\n if(layout == null && type == src.getSampleModel().getDataType()) {\n return src;\n }\n\n // Create or clone the ImageLayout.\n if(layout == null) {\n layout = new ImageLayout(src);\n } else {\n layout = (ImageLayout)layout.clone();\n }\n\n\tboolean isDataTypeChange = false;\n\n // Get prospective destination SampleModel.\n SampleModel sampleModel = layout.getSampleModel(src);\n\n // Create a new SampleModel if the type is not as desired.\n if (sampleModel.getDataType() != type) {\n int tileWidth = layout.getTileWidth(src);\n int tileHeight = layout.getTileHeight(src);\n int numBands = src.getSampleModel().getNumBands();\n\n SampleModel csm =\n RasterFactory.createComponentSampleModel(sampleModel,\n type,\n tileWidth,\n tileHeight,\n numBands);\n\n layout.setSampleModel(csm);\n\t isDataTypeChange = true;\n }\n\n\n // Check ColorModel.\n ColorModel colorModel = layout.getColorModel(null);\n if(colorModel != null &&\n !JDKWorkarounds.areCompatibleDataModels(layout.getSampleModel(src),\n colorModel)) {\n // Clear the mask bit if incompatible.\n layout.unsetValid(ImageLayout.COLOR_MODEL_MASK);\n }\n\n // Check whether anything but the ColorModel is changing.\n if (layout.getSampleModel(src) == src.getSampleModel() &&\n layout.getMinX(src) == src.getMinX() &&\n layout.getMinY(src) == src.getMinY() &&\n layout.getWidth(src) == src.getWidth() &&\n layout.getHeight(src) == src.getHeight() &&\n layout.getTileWidth(src) == src.getTileWidth() &&\n layout.getTileHeight(src) == src.getTileHeight() &&\n layout.getTileGridXOffset(src) == src.getTileGridXOffset() &&\n layout.getTileGridYOffset(src) == src.getTileGridYOffset()) {\n\n if(layout.getColorModel(src) == src.getColorModel()) {\n // Nothing changed: return the source directly.\n return src;\n } else {\n // Remove TileCache hint from RenderingHints if present.\n RenderingHints hints = renderHints;\n if(hints != null && hints.containsKey(JAI.KEY_TILE_CACHE)) {\n hints = new RenderingHints((Map)renderHints);\n hints.remove(JAI.KEY_TILE_CACHE);\n }\n\n // Only the ColorModel is changing.\n return new NullOpImage(src, layout, hints,\n OpImage.OP_IO_BOUND);\n }\n }\n\n\tif (isDataTypeChange == true) {\n\n\t // Add JAI.KEY_REPLACE_INDEX_COLOR_MODEL hint to renderHints\n\t if (renderHints == null) {\n\t\trenderHints = \n\t\t new RenderingHints(JAI.KEY_REPLACE_INDEX_COLOR_MODEL,\n\t\t\t\t Boolean.TRUE);\n\t\t\n\t } else if (!renderHints.containsKey(\n\t\t\t\t\tJAI.KEY_REPLACE_INDEX_COLOR_MODEL)) {\n\t\t// If the user specified a value for this hint, we don't\n\t\t// want to change that\n\t\trenderHints.put(JAI.KEY_REPLACE_INDEX_COLOR_MODEL, \n\t\t\t\tBoolean.TRUE);\n\t }\n\t}\n\n return new CopyOpImage(src, renderHints, layout);\n }", "@Override\r\n\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\r\n\t}", "public void mouseEntered (MouseEvent m) { }", "@Override\r\n public void mouseEntered(MouseEvent arg0)\r\n {\n\r\n }", "public void mouseMoved (MouseEvent me) { mouse_x = me.getX(); mouse_y = me.getY(); repaint(); }", "@Override\n \t\t\tpublic void inputChanged(Viewer viewer, Object oldInput, Object newInput) {\n \n \t\t\t}", "@Override\n public void mouseEntered(MouseEvent e) {\n if (GlobalVariable.draggingUnit != null) {\n // if you are dragging a unit into WorkPanel from the unitPanel\n Point point = e.getPoint();\n Component newCom = EventUtil.copyUnitFrom(GlobalVariable.draggingUnit, false);\n newCom.setLocation(point);\n GlobalVariable.workPanel.add(newCom);\n GlobalVariable.workPanel.updateUI();\n // Store the unitOfWorkPanel for future handle(Add listener if release at workPanel, or remove if not)\n GlobalVariable.newUnitForWork= (BaseUnitUI) newCom;\n // Clear the draggingUnit.\n GlobalVariable.draggingUnit = null;\n }\n }", "@Override\r\n\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\n public void componentMoved(ComponentEvent arg0) {\n }", "@Override\n public void mouseMoved(MouseEvent e) {}", "public void mouseDragged(MouseEvent e) {}", "void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;", "public void mouseMoved(MouseEvent e) {}", "public void mouseMoved(MouseEvent e) {}", "@Override\r\n\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n\n }", "protected abstract Vector4d startSourceDrag(Node source,\n Vector3d pos, Vector4d copy);", "public void mouseEntered (MouseEvent me) { }", "ISModifyComponent createISModifyComponent();", "@Override\n\tpublic void componentMoved(ComponentEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void componentMoved(ComponentEvent e) {\n\t\t\n\t}", "public void update() {\n\t\t\n\t\tVector size = new Vector(Main.frame.getContentPane().getWidth() + 64, 64 + 64);\n\t\tposition = new Vector(0, Main.frame.getContentPane().getHeight() - 40);\n\t\t\n\t\tRectangle rect = new Rectangle(position, size);\n\t\t\n\t\tif (rect.contains(Mouse.getVector())) {\n\t\t\troom.isMouseOverGUI = true;\n\t\t}\n\t}", "@Override\r\n public void componentMoved(ComponentEvent e) {\n }", "public ComponentMover() {\n\t}", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n Vec3d relativepos = Vec3d.substraction(sourcePosition, playerPosition);\r\n\r\n //Calculate and set the new volume\r\n source.setVolume(getVolumeFromDistance(relativepos.length(), source.getCurrentAudio().getBaseVolume()));\r\n }", "protected IFigure createDragSourceFeedbackFigure() {\n\t\tIFigure figure = createFigure((GraphicalEditPart) getHost(), null);\n\n\t\tfigure.setBounds(getInitialFeedbackBounds());\n\t\taddFeedback(figure);\n\t\treturn figure;\n\t}", "public void mouseDragged(MouseEvent e){}", "public void mouseMoved(MouseEvent event) {\n }", "@Test\r\n\tpublic void testChangesNotification() throws Exception {\r\n\t\tfinal AdvancedExampleComponent component = new AdvancedExampleComponent();\r\n\t\tfinal XMLBasedPropertyContainer container = new XMLBasedPropertyContainer(XMLBasedPropertyProvider\r\n\t\t\t\t.getInstance().getMetaPropertiesSet(component.getClass()), component);\r\n\r\n\t\tIChangesNotifierMonitor monitorMock = createMock(IChangesNotifierMonitor.class);\r\n\r\n\t\tmonitorMock.objectChanged(same(container), isA(ObjectChangedEvent.class));\r\n\t\texpectLastCall().once();\r\n\r\n\t\treplay(monitorMock);\r\n\r\n\t\tcontainer.addMonitor(monitorMock);\r\n\t\t// Won't work, because \"intProperty\" is served by XMLSetterGetterProperty which doesn't support monitoring.\r\n\t\t// container.getProperty(\"intProperty\").setValue(3);\r\n\t\t// Works, because \"floatProperty\" is served by XMLFieldProperty which support monitoring.\r\n\t\tcontainer.getProperty(\"floatProperty\").setValue(3);\r\n\t\tverify(monitorMock);\r\n\r\n\t}", "public void\tmouseMoved(int oldx, int oldy, int newx, int newy) \n {\n mouseX = newx;\n mouseY = newy;\n }", "public interface PropertyManager extends Manager {\n\t/**\n\t * The attribute \"attr\" has been added (instantiated for the first time).\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param newValue\n\t * . The new value of that attribute.\n\t */\n\tpublic void attributeAdded(Component component, String attr, String newValue);\n\n\t/**\n\t * The attribute \"attr\" has been modified.\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param newValue\n\t * . The new value of that attribute.\n\t * @param oldValue\n\t * . The previous value of that attribute.\n\t */\n\tpublic void attributeChanged(Component component, String attr, String newValue, String oldValue);\n\n\t/**\n\t * The attribute \"attr\" has been removed.\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param oldValue\n\t * . The previous value of that attribute.\n\t */\n\tpublic void attributeRemoved(Component component, String attr, String oldValue);\n}", "public InteractionSource getSource ();", "public SimpleTrackMouse()\n { \n // Set background color and arrange for the panel to listen for mouse events.\n setBackground(Color.WHITE);\n MouseHandler listener = new MouseHandler();\n addMouseListener(listener); // Register mouse listener.\n addMouseMotionListener(listener); // Register mouse motion listener.\n }", "public void mouseMoved(MouseEvent evt) { }", "@Override\n public void mouseDragged(MouseEvent e) {\n\n }", "public abstract Object getSource();", "public BarcodeScannerInputEvent(BarcodeScannerJTextField source){\n this.source = source;\n }", "public void mouseMoved(MouseEvent e){}", "protected TransformationList(ObservableList<? extends F> source) {\n if (source == null) {\n throw new NullPointerException();\n }\n this.source = source;\n source.addListener(new WeakListChangeListener<>(getListener()));\n }", "@Override\r\n public void mouseEntered(MouseEvent e) {\n\r\n }", "@Override\n public void componentMoved(ComponentEvent e) {\n }", "@Override\n\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\n\n\t\t}" ]
[ "0.56978726", "0.54422617", "0.5309248", "0.5291753", "0.5241688", "0.5196536", "0.5169899", "0.51400286", "0.5133978", "0.5126825", "0.50447404", "0.5031661", "0.50296205", "0.50219333", "0.50063694", "0.50011486", "0.49891698", "0.49532425", "0.49364257", "0.48979402", "0.48895845", "0.48889855", "0.48866117", "0.4855998", "0.4781518", "0.47570953", "0.47513577", "0.47498283", "0.4704167", "0.46865937", "0.46603623", "0.46598786", "0.46312004", "0.46281525", "0.46243346", "0.4606787", "0.46064964", "0.45977396", "0.45930678", "0.45917705", "0.45916387", "0.45871466", "0.4583401", "0.45777717", "0.45734534", "0.45734534", "0.4566252", "0.45523852", "0.45420158", "0.45389864", "0.4532463", "0.45310518", "0.45301047", "0.45272115", "0.4526127", "0.45244953", "0.45201826", "0.45093194", "0.45039886", "0.449726", "0.44972238", "0.4494141", "0.44930705", "0.44870028", "0.44858906", "0.44842607", "0.44826385", "0.44820127", "0.44780704", "0.44772455", "0.44772455", "0.4474719", "0.447419", "0.44734508", "0.44715658", "0.44699067", "0.44650012", "0.44617996", "0.44617996", "0.44601834", "0.44599283", "0.44595665", "0.44577774", "0.44545257", "0.4448749", "0.44476414", "0.44393334", "0.44391352", "0.44378713", "0.44350308", "0.44341105", "0.44325387", "0.44320837", "0.44308624", "0.44302508", "0.44294354", "0.4428957", "0.44230682", "0.44223464", "0.44171774" ]
0.72840464
0
width, height are size of this comp / zoom
private Rectangle computeGrabRect() { int grabWidth = (int) ((double) magnifierSize.width / zoom); int grabHeight = (int) ((double) magnifierSize.height / zoom); // upper left corner is current point return new Rectangle(point.x-grabWidth/2, point.y-grabHeight/2, grabWidth, grabHeight); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\twidthAttitude=e.getComponent().getSize().getWidth()/Width;\n\t\theightAttitude=e.getComponent().getSize().getHeight()/Height;\n\t}", "private void updateSize() {\n double width = pane.getWidth();\n double height = pane.getHeight();\n\n if(oldWidth == 0) {\n oldWidth = width;\n }\n if(oldHeight == 0) {\n oldHeight = height;\n }\n\n double oldHvalue = pane.getHvalue();\n double oldVvalue = pane.getVvalue();\n if(Double.isNaN(oldVvalue)) {\n oldVvalue = 0;\n }\n if(Double.isNaN(oldHvalue)) {\n oldHvalue = 0;\n }\n\n pane.setVmax(height);\n pane.setHmax(width);\n\n if(grow) {\n renderMapGrow(width, height, curZoom);\n } else {\n renderMap(width, height, curZoom);\n }\n\n pane.setVvalue((height/oldHeight)*oldVvalue);\n pane.setHvalue((width/oldWidth)*oldHvalue);\n\n oldWidth = width;\n oldHeight = height;\n }", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "public Dimension getSize() { return new Dimension(width,height); }", "public double getWidth() {\n return this.size * 2.0; \n }", "private void basicSize(){\n setSize(375,400);\n }", "double getSize();", "public ViewerComponent() {\n int images = layout_threads.size();\n int comp_w = 4*w, comp_h = (h*images)/4; if ((images%4) != 0) comp_h += h;\n Dimension dimension = new Dimension(comp_w, comp_h); setPreferredSize(dimension); setMinimumSize(dimension);\n addMouseListener(this); addMouseMotionListener(this);\n }", "Dimension getSize();", "Dimension getSize();", "@Override\r\n public Dimension getPreferredSize() {\n \r\n return new Dimension((int) (this.getHeight() * 0.8), this.getHeight());\r\n }", "protected void isotrop()\r\n {\r\n Dimension d = getSize();\r\n int maxX = d.width - 1, maxY = d.height - 1;\r\n\tpSize = Math.max(width / maxX, height / maxY);\r\n\tcX = maxX / 2;\r\n\tcY = maxY / 2;\r\n\r\n\t// Since pixel size is max of width/height over their device sizes, one of these\r\n\t// values will actually be larger. This should be used to use all of the canvas\r\n\tactualWidth = maxX * pSize;\r\n\tactualHeight = maxY * pSize;\r\n }", "public void setSize();", "public XYPoint getMapSize();", "public Dimension getPreferredSize()\n{ \n Dimension d=new Dimension(gRectangle.width+2*GC_CANVAS_HORIZ_GAP,\n gRectangle.height+2*GC_CANVAS_VERT_GAP);\n return d;\n}", "void previewSized();", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(640, 600);\n\t}", "public abstract Dimension getSize();", "int getTileSize();", "public void settings() { size(1200, 800); }", "public Dimension getSize()\n {\n return new Dimension(300, 150);\n }", "public float getSizeX(){return sx;}", "protected abstract void setSize();", "public void setSize(float width, float height);", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "private void updateViewBounds() \r\n {\r\n assert !sim.getMap().isEmpty() : \"Visualiser needs simulator whose a map has at least one node\"; \r\n \r\n \r\n viewMinX = minX * zoomFactor;\r\n viewMinY = minY * zoomFactor;\r\n \r\n viewMaxX = maxX * zoomFactor;\r\n viewMaxY = maxY * zoomFactor;\r\n \r\n \r\n double marginLength = zoomFactor * maxCommRange;\r\n \r\n \r\n // Set the size of the component\r\n int prefWidth = (int)Math.ceil( (viewMaxX - viewMinX) + (marginLength * 2) );\r\n int prefHeight = (int)Math.ceil( (viewMaxY - viewMinY) + (marginLength * 2) );\r\n setPreferredSize( new Dimension( prefWidth, prefHeight ) );\r\n \r\n \r\n // Adjust for margin lengths \r\n viewMinX -= marginLength;\r\n viewMinY -= marginLength;\r\n \r\n viewMaxX += marginLength;\r\n viewMaxY += marginLength;\r\n }", "@Override\n public Dimension getPreferredSize()\n {\n return new Dimension(this.bufferedImage.getWidth(), \n this.bufferedImage.getHeight());\n }", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(800, 600);\n\t}", "int getHorizontalResolution();", "@Override\r\npublic void componentResized(ComponentEvent arg0) {\n\tsetSizeBackgr(getSize());\r\n\tsetSizeHat (getSize());\r\n\tsetSizeGift(getSize());\r\n}", "public Size(double width, double height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n }", "@Override\r\n\tpublic double getArea() {\r\n\t\treturn width * height;\r\n\t}", "@Override\r\n\tpublic double getArea() {\r\n\t\treturn width * height;\r\n\t}", "public void setSize(double width, double height){\r\n double topLaneHeight=height/100*myInformation.upperToDownPercent;\r\n double bottomLaneHeight=height-topLaneHeight;\r\n double leftSideWidth=width/100*myInformation.leftToRightPercent;\r\n double rightSideWidth=width-leftSideWidth-1;\r\n\r\n double buttonLeftHeight=(height-topLaneHeight)/100*myInformation.leftButtonsPercent;\r\n int countLeftButtons=0;\r\n double labelTopWidth=rightSideWidth/100*myInformation.upperButtonsPercent;\r\n int countTopLabels=0;\r\n //Regions\r\n leftVBox.setMinSize(leftSideWidth,height);\r\n leftVBox.setMaxSize(leftSideWidth,height);\r\n\r\n upperHBox.setMinSize(width,topLaneHeight);\r\n upperHBox.setMaxSize(width,topLaneHeight);\r\n\r\n canvas.setWidth(width);\r\n canvas.setHeight(bottomLaneHeight);\r\n\r\n pane.setMinSize(width,bottomLaneHeight);\r\n pane.setMaxSize(width,bottomLaneHeight);\r\n\r\n stackPane.setMinSize(width, height);\r\n stackPane.setMaxSize(width, height);\r\n\r\n mainVBox.setMinSize(width, height);\r\n mainVBox.setMaxSize(width, height);\r\n\r\n canvasStackPane.setMinSize(width,bottomLaneHeight);\r\n canvasStackPane.setMaxSize(width,bottomLaneHeight);\r\n\r\n listViewVBox.setMinSize(width, height);\r\n listViewVBox.setMaxSize(width, height);\r\n //Objects\r\n upperLeftButton.setMinSize(leftSideWidth,topLaneHeight);\r\n upperLeftButton.setMaxSize(leftSideWidth,topLaneHeight);\r\n //Left Side\r\n left1HintButton.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left1HintButton.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left2Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left2Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left3Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left3Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left4Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left4Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n left5Button.setMinSize(leftSideWidth,buttonLeftHeight);\r\n left5Button.setMaxSize(leftSideWidth,buttonLeftHeight);\r\n countLeftButtons++;\r\n\r\n double restHeight=height-(buttonLeftHeight*countLeftButtons+topLaneHeight);\r\n leftRestLabel.setMinSize(leftSideWidth,restHeight);\r\n leftRestLabel.setMaxSize(leftSideWidth,restHeight);\r\n\r\n //Top\r\n upper1Label.setMinSize(labelTopWidth,topLaneHeight);\r\n upper1Label.setMaxSize(labelTopWidth,topLaneHeight);\r\n countTopLabels++;\r\n\r\n upper2Label.setMinSize(labelTopWidth,topLaneHeight);\r\n upper2Label.setMaxSize(labelTopWidth,topLaneHeight);\r\n countTopLabels++;\r\n\r\n upper3Label.setMinSize(labelTopWidth,topLaneHeight);\r\n upper3Label.setMaxSize(labelTopWidth,topLaneHeight);\r\n countTopLabels++;\r\n\r\n double restwidth=width-upperLeftButton.getWidth()-(labelTopWidth*countTopLabels);\r\n upperRestLabel.setMinSize(restwidth,topLaneHeight);\r\n upperRestLabel.setMaxSize(restwidth,topLaneHeight);\r\n //New Gamemode stuff\r\n newGamemodeHBox.setMinSize(width,height);\r\n newGamemodeHBox.setMaxSize(width,height);\r\n double nBWidth=width/100*myInformation.newGamemodeButtonsPercent.width;\r\n double nBHeight=height/100*myInformation.newGamemodeButtonsPercent.height;\r\n\r\n newGamemodebutton1.setMinSize(nBWidth,nBHeight);\r\n newGamemodebutton1.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGamemodebutton2.setMinSize(nBWidth,nBHeight);\r\n newGamemodebutton2.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGamemodebutton3.setMinSize(nBWidth,nBHeight);\r\n newGamemodebutton3.setMaxSize(nBWidth,nBHeight);\r\n\r\n //BackButton\r\n backPane.setMinSize(width, height);\r\n backPane.setMaxSize(width, height);\r\n double backWidth=width/100*myInformation.backButtonPercent.width;\r\n double backHeight=height/100*myInformation.backButtonPercent.height;\r\n backButton.setMinSize(backWidth,backHeight);\r\n backButton.setMaxSize(backWidth,backHeight);\r\n //New Graphmode\r\n newGraphModeHBox.setMinSize(width,height);\r\n newGraphModeHBox.setMaxSize(width,height);\r\n\r\n newGraphModebutton1.setMinSize(nBWidth,nBHeight);\r\n newGraphModebutton1.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGraphModebutton2.setMinSize(nBWidth,nBHeight);\r\n newGraphModebutton2.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGraphModebutton3.setMinSize(nBWidth,nBHeight);\r\n newGraphModebutton3.setMaxSize(nBWidth,nBHeight);\r\n\r\n sMBHBox.setMinSize(width,height);\r\n sMBHBox.setMaxSize(width,height);\r\n smallButton.setMinSize(nBWidth,nBHeight);\r\n smallButton.setMaxSize(nBWidth,nBHeight);\r\n middleButton.setMinSize(nBWidth,nBHeight);\r\n middleButton.setMaxSize(nBWidth,nBHeight);\r\n bigButton.setMinSize(nBWidth,nBHeight);\r\n bigButton.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameEndButton.setMinSize(nBWidth,nBHeight);\r\n gameEndButton.setMaxSize(nBWidth,nBHeight);\r\n gameEndTop.setMinSize(width/2,height/5);\r\n gameEndTop.setMaxSize(width/2,height/5);\r\n\r\n\r\n listView.setMinSize(width/8,height/2);\r\n listView.setMaxSize(width/8,height/2);\r\n submit2.setMinSize(width/8,height/10);\r\n submit2.setMaxSize(width/8,height/10);\r\n\r\n textFieldHBox.setMinSize(width,height);\r\n textFieldHBox.setMaxSize(width,height);\r\n textFieldVertices.setMinSize(nBWidth,nBHeight);\r\n textFieldVertices.setMaxSize(nBWidth,nBHeight);\r\n textFieldEdges.setMinSize(nBWidth,nBHeight);\r\n textFieldEdges.setMaxSize(nBWidth,nBHeight);\r\n\r\n buttonTextfield.setMinSize(nBWidth/2,nBHeight);\r\n buttonTextfield.setMaxSize(nBWidth/2,nBHeight);\r\n\r\n //New Graph\r\n newGraphHBox.setMinSize(width,height);\r\n newGraphHBox.setMaxSize(width,height);\r\n\r\n newGraphButtonYes.setMinSize(nBWidth,nBHeight);\r\n newGraphButtonYes.setMaxSize(nBWidth,nBHeight);\r\n\r\n newGraphButtonNo.setMinSize(nBWidth,nBHeight);\r\n newGraphButtonNo.setMaxSize(nBWidth,nBHeight);\r\n\r\n hintButton1.setMinSize(nBWidth,nBHeight);\r\n hintButton1.setMaxSize(nBWidth,nBHeight);\r\n hintButton2.setMinSize(nBWidth,nBHeight);\r\n hintButton2.setMaxSize(nBWidth,nBHeight);\r\n hintButton3.setMinSize(nBWidth,nBHeight);\r\n hintButton3.setMaxSize(nBWidth,nBHeight);\r\n hintButton4.setMinSize(nBWidth,nBHeight);\r\n hintButton4.setMaxSize(nBWidth,nBHeight);\r\n hintButton5.setMinSize(nBWidth,nBHeight);\r\n hintButton5.setMaxSize(nBWidth,nBHeight);\r\n hintButton6.setMinSize(nBWidth,nBHeight);\r\n hintButton6.setMaxSize(nBWidth,nBHeight);\r\n hintButton7.setMinSize(nBWidth,nBHeight);\r\n hintButton7.setMaxSize(nBWidth,nBHeight);\r\n hintButton8.setMinSize(nBWidth,nBHeight);\r\n hintButton8.setMaxSize(nBWidth,nBHeight);\r\n hintButton9.setMinSize(nBWidth,nBHeight);\r\n hintButton9.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameWinStackPane.setMinSize(width, height);\r\n gameWinStackPane.setMaxSize(width, height);\r\n\r\n gameWinButton1.setMinSize(nBWidth,nBHeight);\r\n gameWinButton1.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameWinButton2.setMinSize(nBWidth,nBHeight);\r\n gameWinButton2.setMaxSize(nBWidth,nBHeight);\r\n\r\n gameWinHBox.setMinSize(width,height/4);\r\n gameWinHBox.setMaxSize(width,height/4);\r\n\r\n hintMenuStack.setMinSize(width, height);\r\n hintMenuStack.setMaxSize(width, height);\r\n\r\n hintMenu.setSpacing(width/30);\r\n vBoxHint.setSpacing(height/20);\r\n vBoxHint2.setSpacing(height/20);\r\n vBoxHint3.setSpacing(height/20);\r\n\r\n abstand.setMinSize(width,height/3);\r\n }", "@Override\r\n public void getSize(final SizeReadyCallback cb) {\n super.getSize(new SizeReadyCallback() {\r\n @Override\r\n public void onSizeReady(int width, int height) {\r\n cb.onSizeReady(displayWidth / 2, displayHeight / 2);\r\n }\r\n });\r\n }", "public int getWidth() { return width; }", "public int getWidth() { return width; }", "@Override\n\tpublic Dimension getPreferredSize() {\n\t\treturn new Dimension(800,600);\n\t}", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "@Override\n public Position getSize() {\n return new Position(this.w, this.h);\n }", "public int getFrameSize();", "private void renderMapGrow(double width, double height, double curZoom) {\n if(curMap != null) { // if it can be obtained, set the width and height using the aspect ratio\n double aspectRatio = curMap.getMap().getWidth()/curMap.getMap().getHeight();\n double scaledW, scaledH;\n // keep the aspect ratio\n scaledH = (1 / ((1 / (width)) * aspectRatio));\n scaledW = ((height)*aspectRatio);\n if(scaledH <= pane.getHeight()) {\n canvas.setHeight(height*curZoom);\n canvas.setWidth(scaledW*curZoom);\n if(curZoom <= 1) { // If we aren't zoomed, translate the image to the center of the screen\n canvas.setTranslateX(((width - scaledW) / 2));\n canvas.setTranslateY(0);\n } else {\n canvas.setTranslateX(0);\n }\n }\n\n if(scaledW <= pane.getWidth()) {\n canvas.setHeight(scaledH*curZoom);\n canvas.setWidth(width*curZoom);\n if(curZoom <= 1) { // If we aren't zoomed, translate the image to the center of the screen\n canvas.setTranslateY(((height - scaledH) / 2));\n canvas.setTranslateX(0);\n } else {\n canvas.setTranslateY(0);\n }\n }\n } else {\n canvas.setHeight(height*curZoom);\n canvas.setWidth(width*curZoom);\n }\n render();\n }", "public void size(final int theWidth, final int theHeight);", "@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(320, 204);\r\n\t}", "public ScrollZoomDisplayCanvas() {\n\t\tsuper();\n\t\tdisp = new DisplayCanvas();\n\t\tsp = new ScrollPane();\n\t\tsp.add(disp);\n\t\texactZoom = new TextField(disp.getScale() + \"\");\n\t\texactZoom.addActionListener(this);\n\t\tzoom = new Button(\"Zoom\");\n\t\tzoom.addActionListener(this);\n\t\tunzoom = new Button(\"UnZoom\");\n\t\tunzoom.addActionListener(this);\n\t\tPanel P = new Panel(new FlowLayout());\n\t\tP.add(zoom);\n\t\tP.add(unzoom);\n\t\tP.add(exactZoom);\n\t\tsetLayout(new BorderLayout());\n\t\tadd(\"North\", P);\n\t\tadd(\"Center\", sp);\n\t}", "@Override\n public int getWidth() {\n return graphicsEnvironmentImpl.getWidth(canvas);\n }", "int getAreaSize();", "@Override\n\tpublic float getRenderSizeModifier() {\n\t\treturn getScale();\n\t}", "private void calcContentSize() {\n }", "public float getSizeY(){return sy;}", "Dimension getCanvasDimension();", "@Override\n\tpublic Dimension getPreferredSize(){\n\t\treturn new Dimension(640, 480);\n\t}", "public Integer getWidth(){return this.width;}", "public Point2D.Float getSize() {\r\n\t\treturn size;\r\n\t}", "public Dimension getPreferredSize();", "@Override\n\tpublic void resize(float width, float height) {\n\t}", "public float getEqualizationScale() {\n return Gdx.graphics.getWidth() / WE.getCurrentConfig().getRenderResolutionWidth();\n }", "@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }", "int getWidth() {return width;}", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 270);\n\t}", "public int getWidth() {\n return mySize.getWidth();\n }", "long getWidth();", "@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(450, 300);\r\n\t}", "public abstract int getYSize();", "public abstract int getWidth();", "private void refreshDimensions() {\n //tamano del canvas\n targetWidth = canvasWidth;\n targetHeight = canvasHeight;\n//de las imagenes\n sourceWidth = bitmap.getWidth();\n sourceHeight = bitmap.getHeight();\n\n double targetRatio = (double) targetWidth / (double) targetHeight;\n double sourceRatio = (double) sourceWidth / (double) sourceHeight;\n\n targetOffsetX = 0;\n targetOffsetY = 0;\n\n if(sourceRatio > targetRatio)\n {\n int newTargetHeight = (int) (targetWidth / sourceRatio);\n int delta = targetHeight - newTargetHeight;\n targetOffsetY = delta / 2;\n targetHeight = newTargetHeight;\n }\n else if(sourceRatio < targetRatio)\n {\n int newTargetWidth = (int) (targetHeight * sourceRatio);\n int delta = targetWidth - newTargetWidth;\n targetOffsetX = delta / 2;\n targetWidth = newTargetWidth;\n }\n\n puzzleWidth = slidePuzzle.getWidth();\n puzzleHeight = slidePuzzle.getHeight();\n\n targetColumnWidth = targetWidth / puzzleWidth;\n targetRowHeight = targetHeight / puzzleHeight;\n sourceColumnWidth = sourceWidth / puzzleWidth;\n sourceRowHeight = sourceHeight / puzzleHeight;\n }", "public Dimension getPreferredSizeRO();", "@Override\n public Dimension getPreferredSize()\n {\n return new Dimension( width, height );\n }", "public float sizeMultiplier();", "public double getSize() \n {\n return size;\n }", "public int getWidth() {\r\n\treturn this.width;\r\n}", "public double getWidth();", "public double getWidth();", "public int getWidth(){\n return width;\n }", "public int getWidth();", "public int getWidth();", "public int getWidth();", "private void updateImageScale() {\r\n\t\t//Check which dimension is larger and store it in this variable.\r\n\t\tint numHexLargestDimension = this.numHexRow;\r\n\t\tif (this.totalHexWidth > this.totalHexHeight) {\r\n\t\t\tnumHexLargestDimension = this.numHexCol;\r\n\t\t}\r\n\t\t\r\n\t\tif (numHexLargestDimension < 35) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 16.5) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 7){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 70) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 22.2) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() \r\n\t\t\t\t\t* (this.numHexCol / 2) > 14.5){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 105) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 32.6) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 21){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 44.4) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 28){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(600, 500);\n\t}", "@Override\n\tpublic double getArea() {\n\t\treturn height * width;\n\t}", "public Dimension getCanvasSize() {\n return transformManager.getCanvasSize();\n }", "public int getWidth() {\r\n return Display.getWidth();\r\n }", "@Override\n\tpublic Dimension getSize() \n\t{\n\t\treturn panel.getSize();\n\t}", "public Point getSize();", "public Dimension getSize ( )\r\n\t{\r\n\t\treturn new Dimension ( BORDER_X*2 + SQUARE_SIZE*size, BORDER_Y*2 + SQUARE_SIZE*size );\r\n\t}", "void rootViewSizeChange()\n {\n int rootW = (int) Math.ceil(_rootView.getWidth());\n int rootH = (int) Math.ceil(_rootView.getHeight());\n _canvas.setWidth(rootW*_scale); _canvas.setHeight(rootH*_scale);\n }", "int getCurrentSize();", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 300);\n\t}", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 300);\n\t}", "@Override\n\tpublic double getSize() {\n\t\treturn Math.sqrt(getMySize())/2;\n\t}", "public Dimension3d getSize() {\n return size;\n }", "public void componentResized(ComponentEvent e) {\n System.out.println(\"componentResized\");\n container.setPreferredSize(new Dimension(getWidth(), getHeight()));\n \t\tcontainer.imageContainer.setBounds(0, 30, container.getPreferredSize().width, container.getPreferredSize().height);\n \t\tcontainer.toolbar.setSize(container.getPreferredSize().width-16, 25);\n \t\tSystem.out.println(container.imageContainer.getPreferredSize());\n \t\trepaint();\n }", "public int winSize() { return winSize; }", "@Override\r\n\tpublic void resize() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() \n\t{\n\t\tthis.m_view.setCenter(new Vector2f(1024f,1024f));\n\t\t// initilisation de m_centerSought\n\t\tthis.m_centerSought = this.m_view.getCenter();\n\t\t// zoom\n\t\tthis.m_zoom = this.m_zoomSought = 1f;\t\t\n\t\t// size\n\t\tthis.m_sizeNormal = m_size = m_sizeSought = m_sizeBackup = m_sizeInit = this.getView().getSize();\n\t\tthis.m_sizeDown = Vector2f.mul(this.m_sizeNormal, 0.8f);\n\t\tthis.m_sizeUp = Vector2f.mul(m_sizeNormal, 1.2f);\n\t\t\n\t\t// cadre\n\t\tm_cadre = new IntRect(m_spaceScrolling,m_spaceScrolling,(int)this.getView().getSize().x - m_spaceScrolling * 2,(int) this.getView().getSize().y - m_spaceScrolling * 2);\n\t\t\n\t}", "public int getZoom() {\n return P_SCALE;\n }", "@Override\n\tpublic Dimension getPreferredSize() {\n\t\treturn new Dimension(400,400);\n\t}", "@Override\n protected Point getInitialSize() {\n return new Point(930, 614);\n }", "@Override\n public double getArea() {\n return width * width;\n }", "protected Point getInitialSize() {\n\t\t return new Point(700, 500);\n\t }" ]
[ "0.6820923", "0.66620463", "0.65868914", "0.6569152", "0.65087026", "0.6500107", "0.64577305", "0.6452996", "0.6432901", "0.64099103", "0.64099103", "0.64006716", "0.6385712", "0.63121516", "0.62608397", "0.6260694", "0.62516105", "0.62446886", "0.622437", "0.620083", "0.6198813", "0.61970377", "0.61824244", "0.61779076", "0.6177435", "0.617137", "0.6165091", "0.61431694", "0.6119983", "0.6078824", "0.6078063", "0.6074613", "0.6073956", "0.6073956", "0.60655755", "0.60618114", "0.60593706", "0.60593706", "0.60539347", "0.6047693", "0.6045857", "0.60423005", "0.60422105", "0.6041611", "0.6029138", "0.6008462", "0.59974575", "0.599715", "0.59884673", "0.598094", "0.59781957", "0.5974941", "0.597362", "0.5953141", "0.5952971", "0.59514123", "0.59513044", "0.5947583", "0.59462464", "0.5944992", "0.59418297", "0.5940353", "0.59369934", "0.5936842", "0.5932602", "0.5927592", "0.5926434", "0.59254164", "0.59229743", "0.5919573", "0.59136397", "0.5912351", "0.59069765", "0.59069765", "0.59036005", "0.58966476", "0.58966476", "0.58966476", "0.5895223", "0.5893352", "0.5893136", "0.5888021", "0.5887911", "0.5887614", "0.588395", "0.5881034", "0.58808154", "0.5876067", "0.5874688", "0.5874688", "0.58725417", "0.5870573", "0.58694345", "0.58628845", "0.5858591", "0.5856669", "0.5856644", "0.58516186", "0.5844862", "0.5840632", "0.58400685" ]
0.0
-1
Sets the zoom factor
public void setZoom( double zoom ) { this.zoom = zoom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setZoom(float zoom){\r\n zoom = zoom * 100;\r\n zoom = Math.round(zoom);\r\n this.zoom = Math.max(zoom / 100, 0.01f);\r\n }", "public void setZoomFactor( double inZoomFactor )\r\n {\r\n if( inZoomFactor <= 0 )\r\n throw new RuntimeException( \"Zoom factor \" + inZoomFactor + \" is not > 0\" );\r\n \r\n \r\n // Set zoom factor and update view bounds \r\n zoomFactor = inZoomFactor;\r\n updateViewBounds();\r\n \r\n // Propagate the fact that the size has changed up the container hierarchy\r\n revalidate();\r\n \r\n // Repaint the visualisation now that the size and zoom factor have changed\r\n repaint();\r\n }", "public void setZoom(float zoom) {\n this.zoom = zoom;\n }", "private void adjustZoomFactor(){\n switch(zoomLevel){\n case 0:zoomFactor = 39; break;\n case 1:zoomFactor = 37; break;\n case 2:zoomFactor = 35; break;\n case 3:zoomFactor = 33; break;\n case 4:zoomFactor = 31; break;\n case 5:zoomFactor = 29; break;\n case 6:zoomFactor = 27; break;\n case 7:zoomFactor = 25; break;\n case 8:zoomFactor = 23; break;\n case 9:zoomFactor = 21; break;\n case 10:zoomFactor = 20; break;\n case 11:zoomFactor = 18; break;\n case 12:zoomFactor = 16; break;\n case 13:zoomFactor = 14; break;\n case 14:zoomFactor = 12; break;\n case 15:zoomFactor = 10; break;\n case 16:zoomFactor = 8; break;\n case 17:zoomFactor = 6; break;\n case 18:zoomFactor = 4; break;\n case 19:zoomFactor = 2; break;\n case 20:zoomFactor = 0; break;\n }\n }", "public void setZoom(){\n\t\tactive.setZoom();\n\t}", "@Override\n public void setZoom(double zoom)\n {\n super.setZoom(zoom);\n delayedRepainting.requestRepaint(ZOOM_REPAINT);\n }", "public void setZoom(float zoom) {\r\n\t\tif (zoom < 0.1f)\r\n\t\t\treturn;\r\n\t\tthis.zoomFactor = zoom;\r\n\t}", "public synchronized void setZoom(float zoom)\r\n {\r\n this.zoom = Utils.clampFloat(zoom, .4f, 1.5f);\r\n }", "private void setZoomLevel() {\n final float oldMaxScale = photoView.getMaximumScale();\n photoView.setMaximumScale(oldMaxScale *2);\n photoView.setMediumScale(oldMaxScale);\n }", "public void setZoom(float zoom) {\n\t\tthis.zoom = zoom;\n\t\trevalidate();\n\t\trepaint();\n\t}", "public void setFacteurZoom(double fac)\n\t{\n \tthis.facteurZoom = this.facteurZoom * fac ;\n \tif (this.facteurZoom == 0)\n \t{\n \t\tthis.facteurZoom = 0.01;\n \t}\n }", "public void setZoom(float zoomValue) {\n pos.zoom = zoomValue;\n invalidate();\n }", "public void setZoom(double zoom) {\n if (zoom > 0) {\n this.zoom = zoom;\n this.rescale();\n }\n }", "public void zoom(double factor) {\n //Check whether we zooming in or out for adjusting the zoomLvl field\n //Scale the graphic and pan accordingly\n if(factor>1 && zoomLevel!=20) {\n transform.preConcatenate(AffineTransform.getScaleInstance(factor, factor));\n pan(getWidth() * (1 - factor) / 2, getHeight() * (1 - factor) / 2);\n checkForZoomIn();\n }else if(zoomLevel!=0 && factor<1){\n transform.preConcatenate(AffineTransform.getScaleInstance(factor, factor));\n pan(getWidth() * (1 - factor) / 2, getHeight() * (1 - factor) / 2);\n checkForZoomOut();\n }\n }", "public void updateZoom() {\n camera.zoom = zoomLevel;\n }", "protected void primSetZoom(double zoom) {\n\tPoint p1 = getViewport().getClientArea().getCenter();\n\tPoint p2 = p1.getCopy();\n\tPoint p = getViewport().getViewLocation();\n\tdouble prevZoom = this.zoom;\n\tthis.zoom = zoom;\n\tpane.setScale(zoom);\n\tfireZoomChanged();\n\tgetViewport().validate();\n\t\n\tp2.scale(zoom / prevZoom);\n\tDimension dif = p2.getDifference(p1);\n\tp.x += dif.width;\n\tp.y += dif.height;\n\tsetViewLocation(p);\t\n}", "public void zoom() {\n\t\tdisp.zoom();\n\t\texactZoom.setText(disp.getScale() + \"\");\n\t\tresize();\n\t\trepaint();\n\t}", "public void setZoom(double zoom) {\n if(zoom != mZoom) {\n mZoom = zoom;\n setChanged();\n }\n }", "@Override\n\tpublic void setZoom(int zoom) {\n\t\t\n\t}", "public void zoom(final double factor) {\n\t\tdouble oldScale = scene.getScalingFactor();\n\t\tdouble newScale = oldScale * (1 + factor);\n\t\tscene.setScalingFactor(newScale);\n\t\tif (orientation == Orientation.VERTICAL) {\n\t\t\tdouble before = -offset.getY() / oldScale + getSize().getHeight() / 2 / oldScale;\n\t\t\tdouble after = -offset.getY() / newScale + getSize().getHeight() / 2 / newScale;\n\t\t\toffset.translate(0, (int) Math.round((after - before) * newScale));\n\t\t} else {\n\t\t\tdouble before = -offset.getX() / oldScale + getSize().getWidth() / 2 / oldScale;\n\t\t\tdouble after = -offset.getX() / newScale + getSize().getWidth() / 2 / newScale;\n\t\t\toffset.translate((int) Math.round((after - before) * newScale), 0);\n\t\t}\n\t\trepaint();\n\t}", "public void zoomToFactor(double d) {\n\t\t\n\t}", "public void zoomCam(float zoom){\n\t\tthis.camera.setZoom(zoom);\n\t}", "public void setZoom(Integer zoom) {\n this.zoom = zoom;\n }", "public void setZoom(Integer zoom) {\n this.zoom = zoom;\n }", "public void setZoom(double zoom) {\n\tzoom = Math.min(getMaxZoom(), zoom);\n\tzoom = Math.max(getMinZoom(), zoom);\n\tif (this.zoom != zoom)\n\t\tprimSetZoom(zoom);\n}", "public void zoom(int s) {\r\n\t\tzoom += s * ZOOM_FACTOR;\r\n\t}", "public void setZoom(int ps) {\n P_SCALE = ps;\n //EMBOSS = P_SCALE*8;\n }", "@Override\n public void Zoom(double zoomNo, boolean setZoom) {\n\t \n }", "public void setleZoom( double valeur) {\n\t\tzoomMonde = valeur;\n\t}", "public final void setZoom(final int zoom) {\r\n\r\n if (logger.isDebugEnabled()) {\r\n logger.debug(\"new zoom: \" + zoom + \" (old zoom: \" + this.zoom + \")\");\r\n }\r\n\r\n //\r\n // size and visible rectangle before zooming\r\n\r\n final Dimension oldImageCanvasContainerSize = imageCanvas.getSize();\r\n final Rectangle oldImageCanvasContainerVisibleRect = imageCanvas.getVisibleRect();\r\n\r\n //\r\n // calculate the center of the visible rectangle\r\n\r\n final int oldImageCanvasContainerVisibleRectCenterX = oldImageCanvasContainerVisibleRect.x + oldImageCanvasContainerVisibleRect.width / 2;\r\n final int oldImageCanvasContainerVisibleRectCenterY = oldImageCanvasContainerVisibleRect.y + oldImageCanvasContainerVisibleRect.height / 2;\r\n\r\n //\r\n // zoom ( set the new zoom value and update image )\r\n\r\n this.zoom = zoom;\r\n updateImage();\r\n\r\n //\r\n // zoomed size\r\n\r\n final Dimension zoomedImageCanvasContainerSize = imageCanvas.getSize();\r\n\r\n //\r\n // now we can calculate the ratio (new size vs old size)\r\n\r\n final double xRatio = zoomedImageCanvasContainerSize.getWidth() / oldImageCanvasContainerSize.getWidth();\r\n final double yRatio = zoomedImageCanvasContainerSize.getHeight() / oldImageCanvasContainerSize.getHeight();\r\n\r\n //\r\n // apply the ratio to the old center\r\n\r\n int newImageCanvasContainerVisibleRectCenterX = (int) (oldImageCanvasContainerVisibleRectCenterX * xRatio);\r\n int newImageCanvasContainerVisibleRectCenterY = (int) (oldImageCanvasContainerVisibleRectCenterY * yRatio);\r\n\r\n //\r\n // calculate the new visible rectangle (using the translated center)\r\n\r\n Rectangle newImageCanvasContainerVisibleRect = new Rectangle(oldImageCanvasContainerVisibleRect.getSize());\r\n newImageCanvasContainerVisibleRect.x = newImageCanvasContainerVisibleRectCenterX - oldImageCanvasContainerVisibleRect.width / 2;\r\n newImageCanvasContainerVisibleRect.y = newImageCanvasContainerVisibleRectCenterY - oldImageCanvasContainerVisibleRect.height / 2;\r\n\r\n //\r\n // scroll to make visible the new rectangle\r\n\r\n imageCanvas.scrollRectToVisible(newImageCanvasContainerVisibleRect);\r\n }", "public void setScaleFactor(float scaleFactor) {\n\t\ttrueCoreRadius *= scaleFactor;\n\t\ttruePetalRadius *= scaleFactor;\n\t\tcoreRadius = (int) trueCoreRadius;\n\t\tpetalRadius = (int) truePetalRadius;\n\t\tthis.scaleFactor *= scaleFactor;\n\t}", "public void setScaleFactor(float scale){\n scaleFactor = scale;\n }", "public double getZoomFactor()\r\n {\r\n return zoomFactor;\r\n }", "@Test\n public void testSetZoomMultiplier() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MULTIPLIER, 1.678f);\n }", "void multitouchZoom(int new_zoom);", "public void zoom(float zoom) { \n if (zoom <=0) {\n throw new IllegalArgumentException();\n }\n\n workTransform.setTransform(null);\n workTransform.mScale(zoom);\n workTransform.mMultiply(userTransform);\n doc.setTransform(workTransform);\n swapTransforms();\n }", "private void applyZoomRatio(float ratio) {\n\t\tzoom = zoom * ratio;\n\t}", "public final void setRealSize() {\r\n setZoom(ZOOM_REAL_SIZE);\r\n }", "public static void changeCameraZoom(boolean zoomIn){\r\n\t\tif(zoomIn && zoomLevel > 0){\r\n\t\t\tzoomLevel -= 2;\r\n\t\t}else if(!zoomIn){\r\n\t\t\tzoomLevel += 2;\r\n\t\t}\r\n\t}", "@Override\n public void Zoom(double zoomNo) {\n\t \n }", "public void zoomIn() {\n\tsetZoom(getNextZoomLevel());\n}", "private static void initZoomOptions() {\n\t\tfloat zoom = 0;\n\t\twhile (zoom < DiagramaFigura.MAX_ZOOM) {\n\t\t\tzoom += DiagramaFigura.DELTA_ZOOM;\n\t\t\tif (zoom >= DiagramaFigura.MIN_ZOOM) {\n\t\t\t\tString key = Integer.toString((int) (zoom * 100));\n\t\t\t\tzoomOptions.put(key + \"%\", zoom);\n\t\t\t}\n\t\t}\n\t}", "protected void zoomToScale(float scale) {\n \t\tif (tweening) {\n \t\t\tscaleIntegrator.target(scale);\n \t\t} else {\n \t\t\tmapDisplay.sc = scale;\n \t\t\t// Also update Integrator to support correct tweening after switch\n \t\t\tscaleIntegrator.target(scale);\n \t\t\tscaleIntegrator.set(scale);\n \t\t}\n \t}", "public void zoomIn() {\n if (scale < 0.8) {\n double scaleFactor = (scale + 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2;\n scale += 0.03;\n\n selectionChanged = true;\n gameChanged = true;\n }\n\n }", "@SuppressWarnings(\"unused\")\n private void setZoom(JSONArray args, CallbackContext callbackContext) throws JSONException {\n Long zoom;\n zoom = args.getLong(1);\n\n this.myMoveCamera(CameraUpdateFactory.zoomTo(zoom), callbackContext);\n }", "public void zoomScaleIn() {\n \t\tzoomScale(SCALE_DELTA_IN);\n \t}", "public void zoomScale(double scaleDelta) {\n \t\tzoomToScale((float) (mapDisplay.sc * scaleDelta));\n \t}", "public void zoomIn() { zoomIn(1); }", "@JavascriptInterface\n public void setZoom(final int zoom) {\n getHandler().post(new Runnable() {\n @Override\n public void run() {\n if (mWebViewFragment.getMapSettings()\n .getZoom() != zoom) {\n if (BuildConfig.DEBUG) {\n Log.d(TAG,\n \"setZoom \" + zoom);\n }\n\n final MapSettings mapSettings = mWebViewFragment.getMapSettings();\n mapSettings.setZoom(zoom);\n mWebViewFragment.setMapSettings(mapSettings);\n }\n }\n });\n }", "public synchronized void addZoom(float zoom)\r\n {\r\n this.setZoom(zoom + this.getZoom());\r\n }", "public void zoom(double factor, Point mouseLocation) {\n Point2D.Double viewOffset = viewCoords_.getViewOffset();\n Point2D.Double sourceDataSize = viewCoords_.getFullResSourceDataSize();\n Point2D.Double zoomCenter;\n //compute centroid of the zoom in full res coordinates\n if (mouseLocation == null) {\n //if mouse not over image zoom to center\n zoomCenter = new Point2D.Double(viewOffset.x + sourceDataSize.y / 2,\n viewOffset.y + sourceDataSize.y / 2);\n } else {\n zoomCenter = new Point2D.Double(\n (long) viewOffset.x + mouseLocation.x\n / viewCoords_.getMagnificationFromResLevel()\n * viewCoords_.getDownsampleFactor(),\n (long) viewOffset.y + mouseLocation.y\n / viewCoords_.getMagnificationFromResLevel()\n * viewCoords_.getDownsampleFactor());\n }\n\n //Do zooming--update size of source data\n double newSourceDataWidth = sourceDataSize.x * factor;\n double newSourceDataHeight = sourceDataSize.y * factor;\n if (newSourceDataWidth < 5 || newSourceDataHeight < 5) {\n return; //constrain maximum zoom\n }\n if (data_.getBounds() != null) {\n //don't let either of these go bigger than the actual data\n double overzoomXFactor = newSourceDataWidth / (viewCoords_.xMax_ - viewCoords_.xMin_);\n double overzoomYFactor = newSourceDataHeight / (viewCoords_.yMax_ - viewCoords_.yMin_);\n if (overzoomXFactor > 1 || overzoomYFactor > 1) {\n newSourceDataWidth = newSourceDataWidth / Math.max(overzoomXFactor, overzoomYFactor);\n newSourceDataHeight = newSourceDataHeight / Math.max(overzoomXFactor, overzoomYFactor);\n }\n }\n viewCoords_.setFullResSourceDataSize(newSourceDataWidth, newSourceDataHeight);\n\n double xOffset = (zoomCenter.x - (zoomCenter.x - viewOffset.x)\n * newSourceDataWidth / sourceDataSize.x);\n double yOffset = (zoomCenter.y - (zoomCenter.y - viewOffset.y)\n * newSourceDataHeight / sourceDataSize.y);\n //make sure view doesn't go outside image bounds\n if (data_.getBounds() != null) {\n viewCoords_.setViewOffset(\n Math.max(viewCoords_.xMin_, Math.min(xOffset,\n viewCoords_.xMax_ - viewCoords_.getFullResSourceDataSize().x)),\n Math.max(viewCoords_.yMin_, Math.min(yOffset,\n viewCoords_.yMax_ - viewCoords_.getFullResSourceDataSize().y)));\n } else {\n viewCoords_.setViewOffset(xOffset, yOffset);\n }\n }", "public void zoomIn()\n {\n zoomIn(1, width >> 1, height >> 1);\n }", "public void zoomOnAddress(){\n adjustZoomLvl(16000);\n adjustZoomFactor();\n }", "@Override\n public void setCameraZoom(int zoomLevel) {\n mMap.moveCamera(CameraUpdateFactory.zoomTo(zoomLevel));\n }", "public void setScale(float scale);", "public void zoomIn() {\r\n \t\tgraph.setScale(graph.getScale() * 1.25);\r\n \t}", "public void zoomIn() {\n\t\tif (this.zoom + DELTA_ZOOM <= MAX_ZOOM)\n\t\t\tthis.setZoom(this.zoom + DELTA_ZOOM);\n\t}", "public void zoomIn() {\n \t\tzoom(1);\n \t}", "@JSProperty(\"maxZoom\")\n void setMaxZoom(double value);", "public final void zoomIn(final int zoomStep) {\r\n\r\n final BufferedImage image = imageCanvas.getImage();\r\n\r\n //\r\n // no image, no zoom\r\n\r\n if (image == null) {\r\n return;\r\n }\r\n\r\n int zoomTmp = this.zoom;\r\n\r\n //\r\n // if zoom is best fit\r\n // calculate the zoom based on container size\r\n\r\n if (zoomTmp == ZOOM_BEST_FIT) {\r\n zoomTmp = ImageUtils.calculateSizeToFit(image, imageCanvas.getSize()).width * ZOOM_REAL_SIZE / image.getWidth();\r\n }\r\n\r\n //\r\n // calculate new zoom based on the step parameter\r\n\r\n int newZoom = (int) (Math.floor(((double) zoomTmp) / ((double) zoomStep)) + 1) * zoomStep;\r\n\r\n// if (newZoom == zoomTmp) {\r\n newZoom = newZoom + zoomStep;\r\n// }\r\n\r\n setZoom(newZoom);\r\n }", "public native final void setMaxZoom(double maxZoom)/*-{\n this.maxZoom = maxZoom;\n }-*/;", "public void setScale(double d) {\n\t\tdisp.setScale(d);\n\t\texactZoom.setText(disp.getScale() + \"\");\n\t\tresize();\n\t\trepaint();\n\t}", "public View zoom(Integer zoom) {\n setZoom(zoom);\n return this;\n }", "public void zoomIn() {\n if (zoom > 0) {\n zoom--;\n spielPanel.setZoom(zoom);\n }\n }", "private void ZoomCircle(double zoom, double circle_speed){\n final double COEFFICIENT=490;\n circle.setRadius(COEFFICIENT / (zoom + circle_speed));\n }", "public float getZoom() {\n return zoom;\n }", "public void setScale() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n scaleAffine();\n Scalebar.putZoomLevelDistances();\n\n //Set up the JFrame using the monitors resolution.\n setSize(screenSize); //screenSize\n setPreferredSize(new Dimension(800, 600)); //screenSize\n setExtendedState(Frame.NORMAL); //Frame.MAXIMIZED_BOTH\n }", "private void unsafeSetInitialZoom() {\n if (hic.isInPearsonsMode()) {\n initialZoom = hic.getMatrix().getFirstPearsonZoomData(HiC.Unit.BP).getZoom();\n } else if (HiCFileTools.isAllChromosome(hic.getXContext().getChromosome())) {\n mainViewPanel.getResolutionSlider().setEnabled(false);\n initialZoom = hic.getMatrix().getFirstZoomData(HiC.Unit.BP).getZoom();\n } else {\n mainViewPanel.getResolutionSlider().setEnabled(true);\n\n HiC.Unit currentUnit = hic.getZoom().getUnit();\n\n List<HiCZoom> zooms = (currentUnit == HiC.Unit.BP ? hic.getDataset().getBpZooms() :\n hic.getDataset().getFragZooms());\n\n\n// Find right zoom level\n\n int pixels = mainViewPanel.getHeatmapPanel().getMinimumDimension();\n int len;\n if (currentUnit == HiC.Unit.BP) {\n len = (Math.max(hic.getXContext().getChrLength(), hic.getYContext().getChrLength()));\n } else {\n len = Math.max(hic.getDataset().getFragmentCounts().get(hic.getXContext().getChromosome().getName()),\n hic.getDataset().getFragmentCounts().get(hic.getYContext().getChromosome().getName()));\n }\n\n int maxNBins = pixels / HiCGlobals.BIN_PIXEL_WIDTH;\n int bp_bin = len / maxNBins;\n initialZoom = zooms.get(zooms.size() - 1);\n for (int z = 1; z < zooms.size(); z++) {\n if (zooms.get(z).getBinSize() < bp_bin) {\n initialZoom = zooms.get(z - 1);\n break;\n }\n }\n\n }\n hic.unsafeActuallySetZoomAndLocation(\"\", \"\", initialZoom, 0, 0, -1, true, HiC.ZoomCallType.INITIAL, true);\n }", "public void adjustZoomLvl(double scale){\n zoomLevel = ZoomCalculator.calculateZoom(scale);\n scale = ZoomCalculator.setScale(zoomLevel);\n transform.setToScale(scale, -scale);\n }", "public void setFactor(double factor) {\r\n\t\tx_factor = z_factor = factor;\r\n\t}", "public final void setBestFit() {\r\n setZoom(ZOOM_BEST_FIT);\r\n }", "public void setMaxzoom(Integer maxzoom) {\n this.maxzoom = maxzoom;\n }", "public void zoomToLevel(int level) {\n \t\tfloat scale = getScaleFromZoom(level);\n \t\tzoomToScale(scale);\n \t}", "@Override\n public void onPinchZoom(PinchZoomDetector pPinchZoomDetector,\n TouchEvent pTouchEvent, float pZoomFactor) {\n\n\t\t/* On every sub-sequent touch event (after the initial touch) we offset\n\t\t * the initial camera zoom factor by the zoom factor calculated by\n\t\t * pinch-zooming */\n final float newZoomFactor = mInitialTouchZoomFactor * pZoomFactor;\n\n // If the camera is within zooming bounds\n if (newZoomFactor < MAX_ZOOM_FACTOR && newZoomFactor > MIN_ZOOM_FACTOR) {\n // Set the new zoom factor\n mCamera.setZoomFactor(newZoomFactor);\n }\n }", "protected abstract void onScalePercentChange(int zoom);", "public void zoom(Coord crd, int zoom) {\n if(internalNative != null) {\n internalNative.setZoom(crd.getLatitude(), crd.getLongitude(), zoom);\n } else {\n if(internalLightweightCmp != null) {\n internalLightweightCmp.zoomTo(crd, zoom);\n } else {\n // TODO: Browser component \n }\n }\n }", "public void zoomToFit() { zoomToFit(null); }", "public void setZoomLevel(int index) {\n if (index >= 0 && index < zoomLevels.length) {\n this.zoomLevel = index;\n this.setZoom(zoomLevels[index]);\n }\n }", "public float getZoom() {\n return zoom;\n }", "public void setScale(double value) {\n this.scale = value;\n }", "public int getZoom() {\n return P_SCALE;\n }", "public static void setSpeedScalingFactor(double speedFactor)\n\t{\n\t\tspeedScalingFactor = speedFactor;\n\t//\telse speedScalingFactor = SpeedBasedDetection.DEF_SCALING_FACTOR;\n\t\t//\t\tSystem.out.println(\"speedScalingFactor: \"+speedScalingFactor);\n\t\t//Prefs.speedScalingFactor = speedScalingFactor;\n\t}", "@Test\n public void testSetZoomMin() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MIN, 1.1f);\n }", "public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}", "public void setFactor(Double factor);", "public synchronized float getZoom()\r\n {\r\n return zoom;\r\n }", "int getZoomPref();", "public void zoomIn(double i) {\n Rectangle2D r = getExtents();\n double exp = Math.pow(1.5,i); double cx = r.getX() + r.getWidth()/2, cy = r.getY() + r.getHeight()/2;\n setExtents(new Rectangle2D.Double(cx - r.getWidth()/(exp*2), cy - r.getHeight()/(exp*2), r.getWidth()/exp, r.getHeight()/exp));\n }", "@Override\n public void setScale(float scale) {\n this.scale = scale;\n }", "@Test\n public void testSetZoomMax() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MAX, 10.0f);\n }", "void scale(double factor);", "public double getZoom() {\n return this.zoom;\n }", "private void clampZoom()\n\t{\n\t\tif (zoom < ZOOM_MINIMUM)\n\t\t{\n\t\t\tzoom = ZOOM_MINIMUM;\n\t\t}\n\t\telse if (zoom > ZOOM_MAXIMUM)\n\t\t{\n\t\t\tzoom = ZOOM_MAXIMUM;\n\t\t}\n\t}", "public void setZoomAsText(String zoomString) {\n\tif (zoomString.equalsIgnoreCase(FIT_HEIGHT)) {\n\t\tprimSetZoom(getFitHeightZoomLevel());\n\t\tviewport.getUpdateManager().performUpdate();\n\t\tviewport.setViewLocation(viewport.getHorizontalRangeModel().getValue(), \n\t\t\t\tviewport.getVerticalRangeModel().getMinimum());\n\t} else if (zoomString.equalsIgnoreCase(FIT_ALL)) {\n\t\tprimSetZoom(getFitPageZoomLevel());\n\t\tviewport.getUpdateManager().performUpdate();\n\t\tviewport.setViewLocation(viewport.getHorizontalRangeModel().getMinimum(), \n\t\t\t\tviewport.getVerticalRangeModel().getMinimum());\n\t} else if (zoomString.equalsIgnoreCase(FIT_WIDTH)) {\n\t\tprimSetZoom(getFitWidthZoomLevel());\n\t\tviewport.getUpdateManager().performUpdate();\n\t\tviewport.setViewLocation(viewport.getHorizontalRangeModel().getMinimum(),\n\t\t\t\tviewport.getVerticalRangeModel().getValue());\n\t} else {\n\t\ttry {\n\t\t\t//Trim off the '%'\n\t\t\tif (zoomString.charAt(zoomString.length() - 1) == '%')\n\t\t\t\tzoomString = zoomString.substring(0, zoomString.length() - 1);\n\t\t\tdouble newZoom = NumberFormat.getInstance().parse(zoomString).doubleValue() /100; \n\t\t\tsetZoom(newZoom / multiplier);\n\t\t} catch (Exception e) {\n\t\t\tDisplay.getCurrent().beep();\n\t\t}\n\t}\n}", "private void toggleZoom(float x, float y) {\n if (getZoomFactor() == MAX_ZOOM_FACTOR) {\n setZoomFactor(MIN_ZOOM_FACTOR);\n }\n else {\n setZoomFactor(MAX_ZOOM_FACTOR);\n }\n moveCameraToPosWithinBoardBounds(x, y);\n }", "public double getZoom() {\n return mZoom;\n }", "public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }", "public void setScale(float scale) {\n \t\tthis.scale = scale;\n \t\tupdateTransform();\n \t\tfireEvent(new ScalingEvent(scale));\n \t}", "public int zoom() {\n double sizex = scale * getWidth();\n double sizey = scale * getHeight();\n for (int zoom = 0; zoom <= 32; zoom++, sizex *= 2, sizey *= 2)\n if (sizex > world.east() || sizey > world.north())\n return zoom;\n return 32;\n }", "@Override\n public void onPinchZoomFinished(PinchZoomDetector pPinchZoomDetector,\n TouchEvent pTouchEvent, float pZoomFactor) {\n\n // Set the zoom factor one last time upon ending the pinch-to-zoom functionality\n final float newZoomFactor = mInitialTouchZoomFactor * pZoomFactor;\n\n // If the camera is within zooming bounds\n if (newZoomFactor < MAX_ZOOM_FACTOR && newZoomFactor > MIN_ZOOM_FACTOR) {\n // Set the new zoom factor\n mCamera.setZoomFactor(newZoomFactor);\n }\n }" ]
[ "0.82209474", "0.8122921", "0.80625165", "0.8054414", "0.80429643", "0.8029586", "0.80137765", "0.79669267", "0.7789179", "0.776139", "0.7758881", "0.7753996", "0.77426255", "0.7720532", "0.77013546", "0.76736367", "0.7670115", "0.764905", "0.76428956", "0.7603198", "0.7568141", "0.7521756", "0.7516447", "0.7516447", "0.75078475", "0.7399292", "0.73947364", "0.73818916", "0.7365657", "0.7292684", "0.72744286", "0.7250558", "0.7205354", "0.7164531", "0.714958", "0.7110052", "0.71039534", "0.70814764", "0.70614123", "0.70143217", "0.6976573", "0.696029", "0.695967", "0.69324625", "0.6923642", "0.69223255", "0.6890753", "0.6889369", "0.6872031", "0.6862977", "0.68517435", "0.6799761", "0.6795201", "0.67531234", "0.6736022", "0.6719731", "0.6698924", "0.6657501", "0.66414267", "0.66027194", "0.66006595", "0.65957165", "0.6581859", "0.6572285", "0.65696967", "0.65610456", "0.6556656", "0.65549916", "0.6550554", "0.65450203", "0.65360564", "0.6533728", "0.6512055", "0.6500988", "0.6494985", "0.6461236", "0.646099", "0.64578325", "0.6454711", "0.6454465", "0.6447825", "0.64450806", "0.6439394", "0.64149535", "0.63986593", "0.6382476", "0.6378662", "0.637203", "0.63557726", "0.6354109", "0.6330472", "0.633019", "0.6324997", "0.63213575", "0.63178027", "0.6301648", "0.62709284", "0.6269717", "0.6255019", "0.6250624" ]
0.7628953
19
Sets the component to draw the magnifier graphics onto
public void setMagnifierComponent( Component magnifier ) { this.magnifier = magnifier; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JPanel getJPanelMag() {\r\n\t\tif (jPanelMag == null) {\r\n\t\t\tjPanelMag = new JPanel();\r\n\t\t\tjPanelMag.setBorder(new EmptyBorder(0, 0, 0, 0));\r\n\t\t\tjPanelMag.setLayout(new BorderLayout());\r\n\t\t\tjLabelMag = new JLabel(\"Magnification: \");\r\n\t\t\tjLabelMag.setToolTipText(\"Magnification for output image\");\r\n\t\t\tjLabelMag.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\t\tSpinnerModel sModel = new SpinnerNumberModel(100, 1, Integer.MAX_VALUE, 1); // init, min, max, step\r\n\t\t\tjSpinnerMag = new JSpinner(sModel);\r\n\t\t\tjSpinnerMag.addChangeListener(this);\r\n\t\t\tJSpinner.DefaultEditor defEditor = (JSpinner.DefaultEditor) jSpinnerMag.getEditor();\r\n\t\t\tJFormattedTextField ftf = defEditor.getTextField();\r\n\t\t\tftf.setColumns(4);\r\n\t\t\tInternationalFormatter intFormatter = (InternationalFormatter) ftf.getFormatter();\r\n\t\t\tDecimalFormat decimalFormat = (DecimalFormat) intFormatter.getFormat();\r\n\t\t\tdecimalFormat.applyPattern(\"#\"); // decimalFormat.applyPattern(\"#,##0.0\");\r\n\t\t\tjPanelMag.add(jLabelMag, BorderLayout.WEST);\r\n\t\t\tjPanelMag.add(jSpinnerMag, BorderLayout.CENTER);\t\t\r\n\t\t}\r\n\t\treturn jPanelMag;\r\n\t}", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "public DrawPanel()\n {\n initComponents();\n penManager = new PenManager(this);\n penManager.pen.addListener(this);\n }", "public void paintComponent(Graphics g){\n Dimension tam = this.getSize();\n g.drawImage(this.image, 0, 0, tam.width, tam.height, null);\n super.paintComponent(g);\n }", "public void paintComponent(Graphics g){\n Dimension tam = this.getSize();\n g.drawImage(this.image, 0, 0, tam.width, tam.height, null);\n super.paintComponent(g);\n }", "public Affectation() {\r\n initComponents();\r\n Toolkit toolkit=getToolkit();\r\n Dimension size=toolkit.getScreenSize();\r\n setLocation(size.width/2-getWidth()/2,size.height/2-getHeight()/2);\r\n }", "@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\tthis.mapImage.resizeImage(this.getWidth() - 15, this.getHeight() - 60);\n\t\t// make the thread \"go to sleep\" to avoid smearing the screen\n\t\ttry {\n\t\t\tThread.sleep(20);\n\t\t} catch (InterruptedException e0) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te0.printStackTrace();\n\t\t}\n\t\tdrawAll();\n\t}", "public void renderInputImageManager()\n {\n background(background);\n if(resized != null)\n {\n imageMode(CENTER);\n image(resized,(width-150)/2+140,height/2);\n imageMode(CORNERS);\n }\n }", "public synchronized void setGameDrawingComponent(Component comp) {\n this.gameDrawingComponent = comp;\n }", "@Override\n public void componentResized(ComponentEvent e) {\n setShape(new Ellipse2D.Double(0,0,FRAME_WIDTH,FRAME_WIDTH));\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Graphics2D g2 = (Graphics2D) g;\n g2.scale(2, 2);\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setColor(Color.WHITE);\n\n Application.grid.draw(g2);\n ui.draw(g2);\n }", "private void createUIComponents() {\n Fond = new JLabel(new ImageIcon(\"maxresdefault.jpg\"));\r\n Fond.setIcon(new ImageIcon(\"maxresdefault.jpg\"));\r\n }", "void rescaleIndicators(float magnification) {\n // if cellSize is 1\n boolean regenerate = scaleInterval((float) canvas.getMagnification());\n // System.out.println(\"regenerate = \" + regenerate);\n if (regenerate) {\n if (orient != null && anisotropy != null) {\n generateAreasAndIndicators();\n }\n }\n lastMagnification = magnification;\n }", "@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tImageIcon img = new ImageIcon(this.getClass().getResource(\"After-Noon.png\"));\r\n\t\tg.drawImage(img.getImage(), 0, 0, this.getWidth(), this.getHeight(), null);\r\n\t}", "@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\twidthAttitude=e.getComponent().getSize().getWidth()/Width;\n\t\theightAttitude=e.getComponent().getSize().getHeight()/Height;\n\t}", "public Lent() {\n\t\tinitComponents();\n\t\tthis.setBounds(150, 50, 1050, 650);\n\t\t//设置背景\n\t\tsetBackgroudImage();\n\t\t//窗体大小不可变\n\t\tthis.setResizable(false);\n\t\t//设置窗体图标\n\t\tToolkit tool = this.getToolkit(); //得到一个Toolkit对象\n\t\tImage myimage = tool.getImage(\"img/4.png\"); //由tool获取图像\n\t\tthis.setIconImage(myimage);\n\t}", "@Override\n protected final void setGraphics() {\n super.setGraphics();\n Graphics g = toDraw.getGraphics();\n g.setColor(Color.BLACK); \n \n for (int i = 0; i < choices.size(); i++) { \n g.drawString(choices.get(i).getValue(), wGap, (i + 1) * hItemBox);\n }\n }", "@Override\r\npublic void componentResized(ComponentEvent arg0) {\n\tsetSizeBackgr(getSize());\r\n\tsetSizeHat (getSize());\r\n\tsetSizeGift(getSize());\r\n}", "public TextureDisplay() {\n initComponents();\n\n setPreferredSize(new Dimension(size, size));\n\n backImg = createBackImg();\n }", "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponents(g);\n\t\tg.drawImage(img, 0, 0, sizeX, sizeY, this);\n\t}", "public void paintComponent(Graphics page) {\r\n super.paintComponent(page);\r\n IMAGE.paintIcon(this, page, x, y);\r\n }", "public void paintComponent(Graphics myGraphic) \n\t{\n\t\tsuper.paintComponent(myGraphic);\t\n\t}", "public JImageEditor() {\n initComponents();\n \n m_Img = null;\n m_maxsize = null;\n m_icon = new ZoomIcon();\n m_jImage.setIcon(m_icon);\n m_jPercent.setText(m_percentformat.format(m_icon.getZoom()));\n privateSetEnabled(isEnabled());\n }", "private void drawPanelComponentResized(java.awt.event.ComponentEvent evt) {\n \n ((DrawPanel)drawPanel).updateEllipse();\n }", "void setGraphicsCreator(Graphics g, Object creator);", "@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2 = (Graphics2D) theGraphics;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n g2.setStroke(STROKE);\n\n // draw city map\n\n drawMap(g2);\n\n // draw vehicles\n for (final Vehicle v : myVehicles) {\n final String imageFilename = \"icons//\" + v.getImageFileName();\n //final String imageFilename = v.getImageFileName();\n ImageIcon imgIcon = new ImageIcon(imageFilename);\n\n if (imgIcon.getImageLoadStatus() != MediaTracker.COMPLETE) {\n imgIcon = new ImageIcon(getClass().getResource(imageFilename));\n }\n\n final Image img = imgIcon.getImage();\n g2.drawImage(img, v.getX() * SQUARE_SIZE, v.getY() * SQUARE_SIZE,\n SQUARE_SIZE, SQUARE_SIZE, this);\n\n if (myDebugFlag) {\n drawDebugInfo(g2, v);\n }\n }\n\n if (myDebugFlag) {\n g2.setColor(Color.WHITE);\n g2.drawString(\"Update # \" + myTimestep, DEBUG_OFFSET / 2,\n FONT.getSize() + DEBUG_OFFSET / 2);\n }\n }", "@Override\r\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\t\tthis.draw(g);\r\n\t\t\r\n\t\r\n\t}", "public DonorForm() {\n initComponents();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n setVisible(true);\n ImageIcon image = new ImageIcon(\"bg4.jpg\");\n Image im = image.getImage();\n Image myImg = im.getScaledInstance(label.getWidth(), label.getHeight(),Image.SCALE_SMOOTH);\n ImageIcon newImage = new ImageIcon(myImg);\n label.setIcon(newImage);\n }", "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }", "public void componentResized(ComponentEvent e) {\n myReshape(getSize().width, getSize().height);\n display();\n repaint();\n }", "public void componentResized(ComponentEvent e) {\n myReshape(getSize().width, getSize().height);\n display();\n repaint();\n }", "public ImageDisplay()\n\t{\n initComponents();\n }", "public MagnifyingGlass( Component source ){\n\t\tthis.source = source;\n\t\tthis.magnifier = this;\n\t\ttry {\n\t\t\trobot = new Robot();\n\t\t\tsource.addMouseMotionListener( this );\n\t\t} catch (AWTException awte) {\n\t\t\tSystem.err.println( \"Can't get a Robot\" );\n\t\t\tawte.printStackTrace();\n\t\t}\n\t}", "public void paintComponent(Graphics g);", "public MagicalGirlFrame(String title){\n\t\tsuper(title);\n\t\tpanel.setMinimumSize(new Dimension(900, 500));\n\t\tpane.add(panel, null, -1);\n\t\tpane.add(scrolltextbox, null, -1);\n\t\tthis.add(pane);\n\t\tBufferedImage img = null;\n\t\ttry {\n\t\t\timg = ImageIO.read(new File(\"C:\\\\Users\\\\Chrissy\\\\Google Drive ([email protected])\\\\Code\\\\Java\\\\MagicalRPG\\\\src\\\\RPGDemo\\\\01.png\"));\n\t\t}\n\t\tcatch (IOException i) {\n\t\t\tSystem.out.println(\"Image did not load.\");\n\t\t};\n\t\tpanel.add(new JLabel(new ImageIcon(img)));\n\t\tthis.setSize(900, 700);\n\t\t//DEBUGGING: setting up overlaylayout for layering sprites over background\n\t\t//img = SeraSpriteImg.seraAngry();\n\t\t//paneloverlay.addLayoutComponent(new JLabel(new ImageIcon(img)), null);\n\t\t\n\t\tthis.addWindowListener(new WindowAdapter(){\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }\n });\n\t}", "protected void paint(Graphics g) {\n mymidlet.paint(g);\n }", "public void paintComponent(Graphics g)\r\n\t{\r\n\t\t// Set a base background color\r\n\t\tg.setColor(new Color(0,0, 150));\r\n\t\tg.fillRect(0,0, this.getWidth(), this.getHeight());\r\n\t\t\r\n\t\t// Load the background image if its not already \r\n\t\tif(background == null){\r\n\t\t\tbackground = loadImage(\"HaloBackground.jpg\");\r\n\t\t}\r\n\t\t\r\n\t\t// Draw the background image to the screen at a third of the scroll rate\r\n\t\tg.drawImage(background,(int)(0 - model.mario.x)/3, -400, null);\r\n\t\tg.drawImage(background, (int)(0 - model.mario.x)/3, -400, -background.getWidth(), background.getHeight(), null);\r\n\r\n\t\t\r\n\t\t// Load the ground image if its not already\r\n\t\tif(ground == null){\r\n\t\t\tground = loadImage(\"Metal_Ground.png\");\r\n\t\t}\r\n\t\t\r\n\t\t// Count variable to indicate how many bricks are printed to the screen\r\n\t\tint count = 0;\r\n\t\tg.drawImage(ground, 0 - model.mario.x, this.getHeight() - 50, 50, 50, null);\r\n\t\t\r\n\t\t// Draw the middle set of bricks\r\n\t\tfor(int i = 0; i < (model.mario.x + this.getWidth())/50; i++){\r\n\t\t\tcount++;\r\n\t\t\t// Adjust the printing position to scroll with the characters\r\n\t\t\tg.drawImage(ground, 50 * i - model.mario.x, this.getHeight() - 50, 50, 50, null);\r\n\t\t}\r\n\t\t\r\n\t\t// Draw the last brick adjusted to the scroll position\r\n\t\t//int remainingSpace = (model.mario.x + this.getWidth()) % 100;\r\n\t\tg.drawImage(ground, count * 50 - model.mario.x, this.getHeight() - 50, 50, 50, null);\r\n\t\t\r\n\t\t// Draw all the sprites\r\n\t\tfor(int i = 0; i < model.sprites.size(); i++){\r\n\t\t\tmodel.sprites.get(i).draw(g);\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tsuper.paintComponent(g);\n\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\t\t\tint w = getWidth();\n\t\t\t\tint h = getHeight();\n//\t\t\t\tColor color1 = new Color(30, 255, 90);\n//\t\t\t\tColor color2 = new Color(45, 110, 35);\n\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, marsColor1, 0, h, marsColor2);\n\t\t\t\tg2d.setPaint(gp);\n\t\t\t\tg2d.fillRect(0, 0, w, h);\n\t\t\t}", "public void paintComponent(Graphics g) {\n super.paintComponent(g);\n drawImage(g);\n }", "public void addNotify()\n {\n super.addNotify();\n\t\n ib = createImage(width,height);\n ig = ib.getGraphics(); \n }", "protected void setPic() {\n }", "public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }", "protected ImagePanel() {\n pictureBox = new AWTPictureBox(getWidth(), getHeight());\n //add(pictureBox);\n }", "public void render () {\n image (img, xC, yC, xLength * getPixelSize(), yLength * getPixelSize());\n }", "public void renderOutputImageManager()\n {\n if(input != null)\n {\n if(toRerender)\n {\n background(background);\n mosaic.newCanvas();\n mosaic.setPreviewCanvas();\n mosaic.drawImage();\n renderPreview();\n renderHover();\n image(infoGraphics,10,270);\n toRerender = false;\n }\n }\n else\n {\n background(background);\n image(infoGraphics,40,270);\n }\n }", "private void createdComponent() {\r\n\r\n\t\tloadImage();\r\n\t\tresizeImage();\r\n\t\ttry {\r\n\t\t\tif (customFont == null) {\r\n\t\t\t\tcustomFont = FontLoader.getInstance().getXenipa();\r\n\t\t\t\tif (customFont == null) {\r\n\t\t\t\t\tcustomFont = new FontLoader().importFont();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FontFormatException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.init();\r\n\t\tthis.createpanel1();\r\n\t\tthis.createpanel2();\r\n\t\tthis.createpanel3();\r\n\t\tthis.createpanel4();\r\n\t\tthis.revalidate();\r\n\t}", "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tg.drawImage(image, 310, 40, 200, 150, this);\n\t}", "public void updateImage() {\n Graphics2D g = img.createGraphics();\n for (Circle gene : genes) {\n gene.paint(g);\n }\n g.dispose();\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(img, 0, 0, null);\n }", "public SpectrumPanel() {\n super() ;\n super.setDoubleBuffered( true ) ;\n super.setBackground( Color.RED ) ;\n super.setPreferredSize( new Dimension( 1, 7 ) ) ;\n }", "protected MancalaBoardRenderer(){\n pieceRenderer_ = MancalaBinRenderer.getRenderer();\n }", "public MondrianPanel()\n {\n setPreferredSize(new Dimension(size, size));\n }", "public AerithPanelPainter() {\n super();\n setUseCache(false);\n setAntialiasing(RenderingHints.VALUE_ANTIALIAS_ON);\n }", "@Override\r\n\tpublic void paintComponent(Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\t//parent.log(\"Height = \" + getHeight());\r\n\t\tpaintGrid((Graphics2D) g);\r\n\t\tpaintMap((Graphics2D) g);\r\n\t\tif (parent.showMesh) paintMesh((Graphics2D) g);\r\n\t\tpaintParticles((Graphics2D) g);\r\n\t\tpaintRobot((Graphics2D) g);\r\n\t\tpaintTarget((Graphics2D) g);\r\n\t\tpaintPath((Graphics2D) g);\r\n\t\tpaintMoves((Graphics2D) g);\r\n\t\tpaintFeatures((Graphics2D) g);\r\n\t\tpaintWaypoints((Graphics2D) g);\r\n\t}", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n render(g);\n }", "public void med2() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Med. 2\");\n win.setLocation(600, 10);\n //This is as far as I could get in the 30 minutes\n //I had after work. I usually do all the work for \n //this class on the weekend.\n }", "@Override\r\n\tprotected void paintComponent(Graphics g) \r\n\t{\n\t\tsuper.paintComponent(g);\r\n\t\t\r\n\t\t// passes Graphics g into flappy\r\n\t\tflappy.flappybox.repaint(g); /// passes Graphics g into flappy\r\n\t}", "public void affiche() {\n\t\tcontroller.image.repaint();\n\t}", "private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }", "@Override\n public void setRenderer(Object arg0)\n {\n \n }", "public void init(){\n\t\tsetSize (800,600);\n\t\t//el primer parametro del rectangulo en el ancho\n\t\t//y el alto\n\t\trectangulo = new GRect(120,80);\n\t\t\n\t}", "@Override\r\n\tpublic void paintComponent(Graphics g)\r\n\t{\r\n\t\t// Get the width and height of the component window\r\n\t\twidth = getWidth();\r\n\t\theight = getHeight();\t\t\t\t\r\n\t\t\r\n\t\tGraphics2D g2 = (Graphics2D) g;\r\n\t\tgenerateCircles();\r\n\t\tdrawCircles(g2);\r\n\t}", "public void renderTileManager()\n {\n background(background);\n tiles[activeTile].drawGrid();\n tiles[activeTile].drawCellHover();\n createPreview(tiles[activeTile]);\n drawPreviewHover();\n drawPreviews();\n }", "@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(new Color(255, 0, 0));\r\n\t\tg.drawOval(mp1.getX(), mp1.getY(), 3*length, 3*length);\r\n\t\tg.setColor(new Color(0,0,255));\r\n\t\tg.drawOval(enenmy.getX(), enenmy.getY(), 3, 3);\r\n\t}", "private void showImage() {\n this.animalKind = (String) imageCbox.getSelectedItem();\n try {\n ImageIcon imageIcon = new ImageIcon(getClass().getResource(\"/\" + animalKind + \"E.png\")); // load the image to a imageIcon\n Image image = imageIcon.getImage(); // transform it\n Image newImg = image.getScaledInstance(120, 120, Image.SCALE_SMOOTH); // scale it the smooth way\n imageIcon = new ImageIcon(newImg);// transform it back\n imgLabel.setIcon(imageIcon);\n this.add(imgLabel, gbc);\n\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n repaint();\n }", "@Override\n public void paintComponent(Graphics g) \n {\n super.paintComponent(g);\n doDrawing(g);\n }", "private void setGeometry() {\n this.setCullHint(Spatial.CullHint.Dynamic);\n this.setLocalTranslation(realPosition);\n //attach geometry to this object\n // mat.setColor(\"Color\", colors[r.nextInt(colors.length)]);\n if (!companyTextures.containsKey(this.company)) {\n mat.setTexture(\"ColorMap\", Colors.get(r.nextInt(Colors.size())));\n } else {\n mat.setTexture(\"ColorMap\", companyTextures.get(this.company));\n }\n geom.setMaterial(mat);\n this.attachChild(geom.clone());\n }", "void paintComponent(Graphics g);", "JImageDisplay(int imWid,int imHei)\n {\n image = new BufferedImage(imWid,imHei,BufferedImage.TYPE_INT_RGB);\n super.setPreferredSize(new java.awt.Dimension(imWid,imHei));\n }", "@Override\r\n\tpublic void paintComponent(Graphics g) {\r\n\r\n\t\t// Gets the image\r\n\t\tBufferedImage image = null;\r\n\t\ttry {\r\n\t\t\timage = ImageIO.read(new File(logoFileName));\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif (image == null)\r\n\t\t\treturn;\r\n\r\n\t\t// Draws the image with auto-scaling\r\n\t\tg.drawImage(image, imageXCordinate, imageYCordinate, imageX2Cordinate,\r\n\t\t\t\timageY2Cordinage, 0, 0, image.getWidth(), image.getHeight(),\r\n\t\t\t\tnull);\r\n\t}", "public Ventana() {\n initComponents();\n \n ImageIcon imagen = new ImageIcon(Toolkit.getDefaultToolkit().getImage(\"logo.png\"));\n Image img = imagen.getImage().getScaledInstance(logo.getWidth(), logo.getHeight(), Image.SCALE_SMOOTH);\n \n logo.setIcon(new ImageIcon(img));\n \n //Image img = imagen.getImage().getScaledInstance(labelImg.getWidth(), labelImg.getHeight(), Image.SCALE_SMOOTH);\n }", "public void paintComponent(Graphics g)\r\n\t{\r\n\t\t//Sets the size and locations.\r\n\t\tsuper.paintComponent(g);\r\n\t\tsetSize(205,95);\r\n\t\tsetLocation(445,380);\r\n\r\n\t\t//Draws the outer rectangle of the slider.\r\n\t\tg.setColor(Color.black);\r\n\t\tg.drawRect(0, 20, 200, 30);\r\n\r\n\t\t//Draws the button that is moved when controlling the system.\r\n\t\tg.fillRect(border, 22, 25, 25);\r\n\t\tg.setColor(Color.red);\r\n\r\n\t\t//Sets the middle line, indicating the current value.\r\n\t\tg.drawLine((int)getCurrentValue(), 22, (int)getCurrentValue(), 46);\r\n\r\n\t\t//Markers for the inside of the Controller\r\n\t\tg.setColor(Color.GRAY);\r\n\t\tg.drawLine(100, 25, 100, 50); //Med\r\n\r\n\t\tfor (int i = 0; i<20; i++)\r\n\t\t\tg.drawLine(14+i*9, 28, 14+i*9, 42);\r\n\r\n\t\t//Draws the OFF, MED and MAX markers for the controller.\r\n\t\tg.setColor(Color.black);\r\n\t\tg.drawString(\"O\", 10, 65);\r\n\t\tg.drawString(\"F\", 10, 78);\r\n\t\tg.drawString(\"F\", 10, 91);\r\n\t\tg.drawString(\"M\", 96, 65);\r\n\t\tg.drawString(\"E\", 96, 78);\r\n\t\tg.drawString(\"D\", 96, 91);\r\n\t\tg.drawString(\"M\", 181, 65);\r\n\t\tg.drawString(\"A\", 181, 78);\r\n\t\tg.drawString(\"X\", 181, 91);\r\n\r\n\t\tg.drawString(\"System Controller\", 50, 15);\r\n\r\n\t}", "private void customize() {\r\n panel.setSize(new Dimension(width, height));\r\n panel.setLayout(new BorderLayout());\r\n }", "public void paintComponent(Graphics g){\n\t\tg.drawImage(bf, 0, 0, this);\n\t}", "protected synchronized void paintComponent (Graphics g)\n {\n super.paintComponent(g); \n JPanel Phil = new JPanel(); \n int width = getWidth();\n int height = getHeight();\n double x;\n double y;\n int phil_length;\n int phil_height;\n if(_panel_num==1)\n {\n phil_length = width/10;\n phil_height = height/3;\n x = width/3*1.35;\n y = height/3*1.2;\n if(_eats_status_array[0]==true)\n g.fillOval((int)x,(int)y,phil_length,phil_height);\n else\n g.fillRect((int)x,(int)y,phil_length,phil_height);\n }\n else if(_panel_num==2)\n {\n phil_length = width/3;\n phil_height = height/10;\n x = width/3;\n y = height/3*1.2;\n if(_eats_status_array[1]==true)\n g.fillOval((int)x,(int)y,phil_length,phil_height);\n else\n g.fillRect((int)x,(int)y,phil_length,phil_height);\n }\n else if(_panel_num==3)\n {\n phil_length = width/10;\n phil_height = height/3;\n x = width/6*3.42;\n y = height/4;\n if(_eats_status_array[2]==true)\n g.fillOval((int)x,(int)y,phil_length,phil_height);\n else\n g.fillRect((int)x,(int)y,phil_length,phil_height); \n x = width/6*1.92;\n y = height/4;\n if(_eats_status_array[3]==true)\n g.fillOval((int)x,(int)y,phil_length,phil_height);\n else\n g.fillRect((int)x,(int)y,phil_length,phil_height);\n }\n else \n {\n phil_length = width/3;\n phil_height = height/10;\n x = width/3;\n y = height/3*1.2;\n if(_eats_status_array[4]==true)\n g.fillOval((int)x,(int)y,phil_length,phil_height);\n else\n g.fillRect((int)x,(int)y,phil_length,phil_height);\n } \n }", "private void controlResized() {\n disposeBackBuffer();\n initializeBackBuffer();\n\n redraw();\n }", "public void draw(){\n\t\tif(selected){\n\t\t\timg.draw(xpos,ypos,scale,Color.blue);\n\t\t}else{\n\t\t\timg.draw(xpos, ypos, scale);\n\t\t}\n\t}", "@Override\n\t\tprotected void paintComponent(Graphics g) {\n\t\t\tint width = getWidth();\n\t\t\tint height = getHeight();\n\t\t\tint x = (width - icon.getIconWidth()) / 2;\n\t\t\tint y = icon.getIconHeight() / 2;\n\t\t\tg.setColor(Color.darkGray);\n\t\t\tg.fillRect(0, 0, width, height);\n\t\t\ticon.paintIcon(this, g, x, y);\n\t\t}", "@Override\n public void paintComponent() {\n Graphics2D graphics = gameInstance.getGameGraphics();\n graphics.setColor(Color.ORANGE);\n\n final int diff = (PacmanGame.GRID_SIZE/2) - pointCircleRadius;\n graphics.fill(new Ellipse2D.Double(this.x + diff, this.y + diff, pointCircleRadius*2, pointCircleRadius*2));\n }", "public void paintComponent(Graphics g)\r\n\t{\n\t}", "protected void paintComponent(Graphics g)\n\t{\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}", "protected\tvoid\t\trender(MiRenderer renderer)\n\t\t{\n\t\t// Draw background, valueDisplay and label\n\t\tsuper.render(renderer);\n\n\t\tMiBounds innerBounds = getInnerBounds(tmpBounds);\n\n\t\t// Move Strip over\n\t\trenderer.moveImageArea(innerBounds, scroll.x, scroll.y);\n\t\tscroll.zeroOut();\n\n\t\t// Draw ticks:\n\t\tfor (int i = 0; i < ticksToDrawX.size(); ++i)\n\t\t\t{\n\t\t\tticks.setCenterX(ticksToDrawX.elementAt(i));\n\t\t\tticks.setYmin(innerBounds.ymin);\n\t\t\tticks.setYmax(innerBounds.ymin + ticksToDrawHeight.elementAt(i));\n\t\t\tticks.render(renderer);\n\t\t\t}\n\t\tticksToDrawX.removeAllElements();\n\t\tticksToDrawHeight.removeAllElements();\n\t\t}", "public void update(){\n infoBar = new GreenfootImage (960, 50);\n infoBar.setFont(textFont);\n infoBar.setColor(textColor);\n String output = (\"Trees: \" + numTrees + \" Bushes: \" + numBushes + \" Prey: \" + numPrey + \" Predators: \" + numPredators);\n\n //centres the output on the bar.\n int centre = (960/2) - ((output.length() * 14)/2);\n\n infoBar.drawString(output, centre, 22); //draw the bar.\n this.setImage(infoBar);\n }", "public void setup() {\n\t\tthis.image = new BufferedImage(maxXPos, maxYPos, BufferedImage.TYPE_4BYTE_ABGR);\n\t\tthis.graphics = getImage().createGraphics();\n\t}", "@Override\n protected void paintComponent(final Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, this);\n }", "public visualizar_camas() {\n initComponents();\n }", "public void paintComponent(Graphics pen) \r\n\t{\r\n\t\t/*\r\n\t\t * Draws a white dark grey rectangle to represent the total space that will be \r\n\t\t * taken up by the maze panel. This will be the background that the maze panel \r\n\t\t * will be drawn over.\r\n\t\t */\r\n\t\tDimension dim = getSize();\r\n\t\tpen.setColor( Color.LIGHT_GRAY );\r\n\t\tpen.fillRect( 0, 0, dim.width, dim.height );\r\n\t\tpen.setColor( Color.BLACK );\r\n\t\t/*\r\n\t\t * Draws a white rectangle to represent the total space that will be \r\n\t\t * taken up by the maze. This will be the background that the maze \r\n\t\t * will be drawn over.\r\n\t\t */\r\n\t\tpen.setColor( Color.WHITE );\r\n\t\tpen.fillRect( BORDER_X, BORDER_Y, SQUARE_SIZE * size , SQUARE_SIZE * size );\r\n\t\tpen.setColor( Color.BLACK );\r\n\t\t\r\n\t\t/** Draws the maze as a number of equal-sized squares. **/\r\n\t\tfor ( int row = 0; row < size; row++ )\r\n\t\t\tfor ( int col = 0; col < size; col++ )\r\n\t\t\t\tmaze [ row ] [ col ].draw ( BORDER_X + SQUARE_SIZE * col,\r\n\t\t\t\t\t\tBORDER_Y + SQUARE_SIZE * row, pen);\r\n\t}", "void paintComponent();", "public void setMagicalProtectScaling(double magicalProtectScaling)\r\n {\r\n this.mMagicalProtectScaling = magicalProtectScaling;\r\n }", "public void componentResized(ComponentEvent e) {\n System.out.println(\"componentResized\");\n container.setPreferredSize(new Dimension(getWidth(), getHeight()));\n \t\tcontainer.imageContainer.setBounds(0, 30, container.getPreferredSize().width, container.getPreferredSize().height);\n \t\tcontainer.toolbar.setSize(container.getPreferredSize().width-16, 25);\n \t\tSystem.out.println(container.imageContainer.getPreferredSize());\n \t\trepaint();\n }", "public void paintComponent(Graphics g){\n\t\t\tsuper.paintComponent(g);\n\t\t\tg.drawImage(instructions, 0, 0, getWidth(), 540, null);\n\t\t}", "public ShapePanel() {\n super();\n shapes = new ArrayList<>();\n this.setPreferredSize(new Dimension(1000, 1000));\n }", "public void render(){\r\n if(getLives() >= 10){\r\n StdDraw.picture(super.xCoord,super.yCoord,\"EnemyPurple.png\",super.radius*2,super.radius*2);\r\n }\r\n if(getLives() < 10){\r\n StdDraw.picture(super.xCoord,super.yCoord,\"EnemyPink.png\",super.radius*2,super.radius*2);\r\n }\r\n }", "@Override\n public void componentResized(ComponentEvent arg0) {\n width = jframe.getSize().getWidth();\n height = jframe.getSize().getHeight();\n baseBallCard.setLocation(0, (int) height - 175);\n gearbutton.setLocation((int) width - 79, (int) height - 99);\n settingspanel.setSize(new Dimension((int) (.6 * width), (int) (.6 * height)));\n settingspanel.setLocation((int) (.2 * width), (int) (.15 * height));\n int sx = (int) (.6 * width);\n int sy = (int) (.6 * height);\n storyPanel.setSize(new Dimension((int) (.6 * width), (int) (.6 * height)));\n storyPanel.setLocation((int) (.2 * width), (int) (.15 * height));\n storyPanel.setBackground(new Color(.8f, .8f, 1f, .75f));\n story.setSize(new Dimension(storyPanel.getWidth()-50, storyPanel.getHeight()-50));\n story.setBackground(new Color(.8f, .8f, 1f, .75f));\n story.setLocation(25,25);\n sphereSize.setSize((int) (.3 * sx), 20);\n bgColor.setSize((int) (.3 * sx), 20);\n sphereSize.setLocation((int) (.1 * sx), (int) (.25 * sy));\n bgColor.setLocation((int) (.1 * sx), (int) (.35 * sy));\n bgtext.setLocation((int) (.5 * sx), (int) (.35 * sy));\n sphsi.setLocation((int) (.5 * sx), (int) (.25 * sy));\n showall.setLocation((int) (.5 * sx), (int) (.8 * sy));\n points.setLocation((int) (.175 * sx), (int) (.7 * sy));\n debug.setLocation((int) (.175 * sx), (int) (.8 * sy));\n wireframe.setLocation((int) (.175 * sx), (int) (.9 * sy));\n close.setLocation(sx - 30, sy - (sy - 10));\n aboutpanel.setSize(new Dimension(461, 347));\n aboutpanel.setLocation((int) (.3 * width), (int) (.3 * height));\n aboutpanel.add(aboutclose);\n aboutclose.setLocation(440, 10);\n resetrestrictions.setLocation((int) (.025 * sx), 25);\n glcanvas.requestFocusInWindow();\n }", "public void draw() {\n\t\tsuper.repaint();\n\t}", "public void setComponentBounds(){\n spelerIDLabel.setBounds(40,10,100,40);\n typeLabel.setBounds(40,60,100,40);\n codeLabel.setBounds(40,110,200,40);\n heeftBetaaldLabel.setBounds(40, 160, 200, 40);\n\n spelerIDField.setBounds(250, 10, 100, 40);\n typeField.setBounds(250, 60, 100, 40);\n codeField.setBounds(250, 110, 100, 40);\n heeftBetaaldField.setBounds(250, 160, 100, 40);\n\n terugButton.setBounds(300,260,75,40);\n klaarButton.setBounds(200,260,100,40);\n\n\n\n\n }", "public Magasin() {\n initComponents();\n }", "public void updateAmmo(){\n if(shots >= 9999)\n shots = 9999;\n ammo.setText(\"x\" + String.format(\"%04d\", shots));\n }", "public DrawGraphics() {\r\n box = new BouncingBox(200, 50, Color.RED);\r\n\tbox.setMovementVector(1,1);\r\n\r\n\tboxes = new ArrayList<BouncingBox>();\r\n\tboxes.add(new BouncingBox(35,40, Color.BLUE));\r\n\tboxes.get(0).setMovementVector(2,-1);\r\n\tboxes.add(new BouncingBox(120,80, Color.GREEN));\r\n\tboxes.get(1).setMovementVector(-1,2);\r\n\tboxes.add(new BouncingBox(500,80, Color.PINK));\r\n\tboxes.get(2).setMovementVector(-2,-2);\r\n }" ]
[ "0.6087736", "0.5986878", "0.5890067", "0.5879599", "0.5879599", "0.5875454", "0.5836692", "0.5820215", "0.58000654", "0.57402784", "0.5734832", "0.5716801", "0.5675721", "0.5672296", "0.56677157", "0.56518346", "0.5641191", "0.563784", "0.56253153", "0.5619525", "0.5618068", "0.5614204", "0.55920804", "0.5568583", "0.5553302", "0.55405873", "0.55334115", "0.552862", "0.55216175", "0.5518847", "0.5518847", "0.55066776", "0.5496817", "0.5494244", "0.5481719", "0.5480877", "0.5480358", "0.54761976", "0.54697615", "0.54584646", "0.5458226", "0.5450055", "0.5441341", "0.5438149", "0.5433055", "0.5427335", "0.54273206", "0.5424917", "0.5423687", "0.5415603", "0.5412771", "0.54030055", "0.5398653", "0.5395026", "0.53846896", "0.5384198", "0.53836197", "0.5383404", "0.53718257", "0.537182", "0.5367027", "0.53468186", "0.5342373", "0.53423154", "0.5330392", "0.532506", "0.5324737", "0.53227115", "0.5320994", "0.531885", "0.5318154", "0.53089225", "0.53050905", "0.52962244", "0.5294764", "0.5293763", "0.5290549", "0.52874595", "0.528719", "0.5286716", "0.5283399", "0.5281657", "0.52724355", "0.5269348", "0.52659565", "0.5265422", "0.5265033", "0.5263494", "0.52559865", "0.52523273", "0.5242979", "0.5240244", "0.5238515", "0.523724", "0.5230577", "0.5230132", "0.5227957", "0.52277356", "0.5226488", "0.5225145" ]
0.7449795
0
Create the collection of futures.
private Future<String> processHosts(List<String> input) { List<Future<String>> futures = input.stream() .map(str -> supplyAsync(() -> callApi(str))) .collect(toList()); // Restructure as varargs because that's what CompletableFuture.allOf requires. CompletableFuture<?>[] futuresAsVarArgs = futures .toArray(new CompletableFuture[futures.size()]); // Create a new future that completes once once all of the previous futures complete. CompletableFuture<Void> jobsDone = CompletableFuture.allOf(futuresAsVarArgs); CompletableFuture<String> output = new CompletableFuture<>(); // Once all of the futures have completed, build out the result string from results. jobsDone.thenAccept(ignored -> { StringBuilder stringBuilder = new StringBuilder(); futures.forEach(f -> { try { stringBuilder.append(f.get()); } catch (Exception e) { output.completeExceptionally(e); } }); output.complete(stringBuilder.toString()); }); return output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FutureEventList() {\n q = new PriorityQueue<Event>(10, new EventComperator());\n }", "public ExecutorService createExecutor() {\n return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName,\n 1, 5);\n }", "public Collection<Service> createServices();", "public static void main(String[] args) throws ExecutionException, InterruptedException {\n ExecutorService executorService=Executors.newScheduledThreadPool(5);\n try{\n for (int i = 0; i < 10; i++) {\n Future<String> futures = executorService.submit(new TestCallable());\n System.out.println(\"result---------------------\"+futures.get());\n }\n }catch (Exception e){\n e.printStackTrace();\n }finally {\n executorService.shutdown();\n }\n }", "protected void completeFuturesForFauxInstances() {\n }", "public static void main(String[] args)\r\n\t{\r\n\t\tExecutorService executorService = Executors.newFixedThreadPool(1);\r\n\t\tList<Future<String>> futureList = new ArrayList<>();\r\n\t\t\r\n\t\tCallable<String> callable = new Thread1();\r\n\t\tCallable<String> callable2 = new Thread1();\r\n\t\tCallable<String> callable3 = new Thread1();\r\n\t\t\r\n\t\t// Future:\r\n\t\t/** A Future represents the result of an asynchronous computation. Methods are provided to check if the computation is complete, \r\n\t\t* to wait for its completion, and to retrieve the result of the computation. The result can only be retrieved using method get \r\n\t\t* when the computation has completed, blocking if necessary until it is ready. Cancellation is performed by the cancel method. \r\n\t\t* Additional methods are provided to determine if the task completed normally or was cancelled. Once a computation has completed, \r\n\t\t* the computation cannot be cancelled. If you would like to use a Future for the sake of cancellability but not provide a usable \r\n\t\t* result, you can declare types of the form Future<?> and return null as a result of the underlying task. **/\r\n\t\t\r\n\t\t// submit():\r\n\t\t/** Submits a value-returning task for execution and returns a Future representing the pending results of the task. \r\n\t\t* The Future's get method will return the task's result upon successful completion. \r\n\t\t* If you would like to immediately block waiting for a task, you can use constructions of the form result = exec.submit(aCallable).get(); **/ \r\n\t\tFuture<String> future = executorService.submit(callable);\r\n\t\tfutureList.add(future);\r\n\t\t\r\n\t\tFuture<String> future2 = executorService.submit(callable2);\r\n\t\tfutureList.add(future2);\r\n\t\t\r\n\t\tFuture<String> future3 = executorService.submit(callable3);\r\n\t\tfutureList.add(future3);\r\n\t\t\r\n\t\tSystem.out.println(\"futureList.size(): \"+futureList.size()); \r\n\t\t\r\n\t\tfor(Future<String> fut : futureList)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t// cancel(true)\r\n\t\t\t\t/** Attempts to cancel execution of this task. This attempt will fail if the task has already completed, has already been cancelled, \r\n\t\t\t\t* or could not be cancelled for some other reason. If successful, and this task has not started when cancel is called, this task should never run. \r\n\t\t\t\t* If the task has already started, then the mayInterruptIfRunning parameter determines whether the thread executing this task should be \r\n\t\t\t\t* interrupted in an attempt to stop the task. After this method returns, subsequent calls to isDone will always return true. \r\n\t\t\t\t* Subsequent calls to isCancelled will always return true if this method returned true. **/\r\n\t\t\t\t// System.out.println(fut.cancel(true));\r\n\t\t\t\t\r\n\t\t\t\t// get():\r\n\t\t\t\t// Waits if necessary for the computation to complete, and then retrieves its result.\r\n\t\t\t\tSystem.out.println(fut.get());\r\n\t\t\t\t\r\n\t\t\t\t// get(1000, TimeUnit.MILLISECONDS):\r\n\t\t\t\t/** Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.\r\n\t\t\t\t* Here, we can specify the time to wait for the result, itís useful to avoid current thread getting blocked for longer time. **/ \r\n\t\t\t\t// System.out.println(fut.get(1000, TimeUnit.MILLISECONDS));\r\n\t\t\t\t\r\n\t\t\t\t// isDone():\r\n\t\t\t\t/** Returns true if this task completed. \r\n\t\t\t\t* Completion may be due to normal termination, an exception, or cancellation -- in all of these cases, this method will return true **/\r\n\t\t\t\t// System.out.println(fut.isDone());\r\n\t\r\n\t\t\t\t// isCancelled(): \r\n\t\t\t\t/** Returns true if this task was cancelled before it completed normally. **/\r\n\t\t\t\t// System.out.println(fut.isCancelled());\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex)\r\n\t\t\t{\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\texecutorService.shutdown();\r\n\t}", "private void completionService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n ExecutorCompletionService<String> completionService = new ExecutorCompletionService<String>(executor);\n for (final String printRequest : printRequests) {\n// ListenableFuture<String> printer = completionService.submit(new Printer(printRequest));\n completionService.submit(new Printer(printRequest));\n }\n try {\n for (int t = 0, n = printRequests.size(); t < n; t++) {\n Future<String> f = completionService.take();\n System.out.print(f.get());\n }\n } catch (InterruptedException | ExecutionException e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n\n }", "public TaskList() {\n tasks = new ArrayList<>();\n cachedTasks = new Stack<>();\n }", "TaskList() {\r\n tasks = new ArrayList<>();\r\n }", "public static <U> void main(String[] args) {\n\t\t\n\t\tExecutorService service = Executors.newFixedThreadPool(10);\n\t\t//String orderValue = \"\";\n\t\tFuture<String> order1 = service.submit(()->{return \"GetOrders111\";});\n\t\ttry {\n\t\t\tString orders = order1.get();\n\t\t\t//orderValue = orders;\n\t\t\tFuture<String> orderEnrich = service.submit(()->{return \"enrichingOrders : \"+orders;});\n\t\t\tFuture<String> orderReconciliation = service.submit(()->{return \"orderReconciliation : \"+orders;});\n\t\t\tFuture<String> orderAutoCreate = service.submit(()->{return \"orderAutoCreate : \"+orders;});\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//In above code if too many heavy loaded tasks are there then its a big problem, for ex. get order is fetching millions of records and other services need to wait above code is going to fail.\n\t\t\n\t\tProcessOrder p = (String s)->{System.out.println(\"S \"+s); return 0;};\n\t\t//Solution\n\t\tCompletableFuture<String> cfuture = new CompletableFuture<>();\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tcfuture.supplyAsync(()->{return \"GetOrders111\";})\n\t\t\t\t\t\t.thenApply((x)->{return \"enrichingOrders\";})\n\t\t\t\t\t\t.thenApply((x)->{return \"orderReconciliation\";})\n\t\t\t\t\t\t.thenAccept((x)->{System.out.println(\"orderAutoCreate\");});\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tList<Future<String>> futureList = new ArrayList<Future<String>>();\r\n\r\n\t\t//collection of multiple tasks which we are supposed to give to thread pool to perform\r\n\t\tList<CallableDemo> taskList = new ArrayList<CallableDemo>();\r\n\t\t//adding multiple tasks to collection (tasks are created using 'Callable' Interface.\r\n\t\ttaskList.add(new CallableDemo(\"first\"));\r\n\t\ttaskList.add(new CallableDemo(\"second\"));\r\n\t\ttaskList.add(new CallableDemo(\"third\"));\r\n\t\ttaskList.add(new CallableDemo(\"fourth\"));\r\n\t\ttaskList.add(new CallableDemo(\"fifth\"));\r\n\t\ttaskList.add(new CallableDemo(\"sixth\"));\r\n\t\ttaskList.add(new CallableDemo(\"seventh\"));\r\n\r\n\t\t//creating a thread pool of size four\r\n\t\tExecutorService threadPool = Executors.newFixedThreadPool(4);\r\n\t\t\r\n\t\tfor (CallableDemo task : taskList) {\r\n\t\t\tfutureList.add(threadPool.submit(task));\r\n\t\t}\r\n threadPool.shutdown();\r\n\t\tfor (Future<String> future : futureList) {\r\n\t\t\ttry {\r\n//\t\t\t\t System.out.println(future.get());\r\n\t\t\t\tSystem.out.println(future.get(1L, TimeUnit.SECONDS));\r\n\t\t\t} catch (InterruptedException | ExecutionException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}catch (TimeoutException e) {\r\n\t\t\t\tSystem.out.println(\"Sorry already waited for result for 1 second , can't wait anymore...\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public TaskList() {\n tasks = new ArrayList<>();\n }", "public TaskList() {\n tasks = new ArrayList<>();\n }", "public TaskList() {\n tasks = new ArrayList<>();\n }", "private static Task[] createTaskList() {\n\t\t\n\t Task evalTask = new EvaluationTask();\n\t Task tamperTask = new TamperTask();\n\t Task newDocTask = new NewDocumentTask();\n\t Task reportTask = new AssignmentReportTask();\n\n\t Task[] taskList = {evalTask, tamperTask, newDocTask, reportTask};\n\n\t return taskList;\n\t}", "public List<E> results() throws Exception {\n List<E> result = new ArrayList<>(futures.size());\n for (CompletionStage<E> f : futures) {\n result.add(f.toCompletableFuture().get());\n }\n return result;\n }", "public static <T> ImmutableList<T> waitForAll(Iterable<ListenableFuture<T>> futures) {\n try {\n return ImmutableList.copyOf(Futures.allAsList(futures).get());\n } catch (InterruptedException | ExecutionException e) {\n throw new CommandExecutionException(\"A concurrent operation failed.\", e);\n }\n }", "public void start() {\r\n\t\tLOGGER.info(\"Create result collection queue customers, customer count : [ \" + customerCount + \" ].\");\r\n\t\tthreadPool = Executors.newFixedThreadPool(customerCount);\r\n\t\tfor (int i = 0; i < customerCount; i++) {\r\n\t\t\tRunnable resultCollectorRunner = new ResultCollectorThread(ResultQueue.getInstance().getResultQueue(), \r\n\t\t\t\t\tnew ResultCollector(), new TaskReloader());\r\n\t\t\tthreadPool.submit(new Thread(resultCollectorRunner, \"ResultCollector-\" + i));\r\n\t\t}\r\n\t\tthreadPool.shutdown();\r\n\t}", "protected abstract void createTasks();", "void submitAndWaitForAll(Iterable<Runnable> tasks);", "public TaskList(){}", "private void retrieveNewMetadata() {\n\n Runnable loadProviders = new Runnable() {\n @Override\n public void run() {\n getAvailableDataProviders();\n }\n };\n\n Runnable loadDataSets = new Runnable() {\n @Override\n public void run() {\n getAvailableDataSets();\n }\n };\n\n Runnable loadParameters = new Runnable() {\n @Override\n public void run() {\n getAvailableParameters();\n }\n };\n\n Runnable loadLevels = new Runnable() {\n @Override\n public void run() {\n getAvailableLevels();\n }\n };\n\n Runnable[] runnables = new Runnable[] { loadProviders, loadDataSets,\n loadParameters, loadLevels };\n FutureTask<?>[] tasks = new FutureTask[runnables.length];\n ExecutorService executor = Executors\n .newFixedThreadPool(runnables.length);\n for (int i = 0; i < runnables.length; i++) {\n FutureTask<Void> task = new FutureTask<Void>(runnables[i], null);\n tasks[i] = task;\n executor.submit(task);\n }\n\n for (FutureTask<?> task : tasks) {\n try {\n task.get();\n } catch (Exception e) {\n statusHandler.handle(Priority.WARN, \"Unable to load metadata\",\n e);\n }\n }\n }", "public void await() {\n for (final Future<Void> future : futures) {\n try {\n future.get();\n } catch (final Throwable e) {\n LOGGER.error(\"Scheduled blob storage job threw an exception.\", e);\n }\n }\n futures.clear();\n }", "@Override\n protected void init() {\n if (!initialized) {\n \n ExecutorService executor = Executors.newFixedThreadPool(10);\n \n \n \n \n // ThreadGroup group = new ThreadGroup(this.toString());\n\n ArrayList<ParallelHelper> threadlist = new ArrayList<ParallelHelper>();\n\n for (QueryIterator qi : iterators) {\n\n ParallelHelper h = new ParallelHelper(qi);\n /* Thread t = new Thread(group, h);\n t.start(); */\n threadlist.add(h);\n \n executor.submit(h);\n \n\n }\n executor.shutdown();\n \n while (!executor.isTerminated()) {\n try {\n executor.awaitTermination(3600, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n throw new ARQInternalErrorException(e);\n }\n }\n\n/* try {\n join(group);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n*/\n boolean error = false;\n\n for (ParallelHelper h : threadlist) {\n if (h.isError()) {\n error = true;\n throw new QueryExecException(\"Error: \"+h.getException().getMessage());\n }\n }\n \n \n if (!error) {\n for (ParallelHelper h : threadlist) {\n\n try {\n super.add(h.getResultIterator());\n } catch (Exception e) {\n throw new QueryExecException(e);\n }\n }\n super.init();\n }\n initialized = true;\n }\n }", "private void normalExecutorService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n try {\n Set<Future<String>> printTaskFutures = new HashSet<Future<String>>();\n for (final String printRequest : printRequests) {\n// Future<String> printer = executor.submit(new Printer(printRequest));\n ListenableFuture<String> printer = executor.submit(new Printer(printRequest));\n printTaskFutures.add(printer);\n// Futures.addCallback(printer, new FutureCallback<String>() {\n// // we want this handler to run immediately after we push the big red button!\n// public void onSuccess(String explosion) {\n//// walkAwayFrom(explosion);\n// }\n//\n// public void onFailure(Throwable thrown) {\n//// battleArchNemesis(); // escaped the explosion!\n// }\n// });\n }\n for (Future<String> future : printTaskFutures) {\n System.out.print(future.get());\n\n }\n } catch (Exception e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n }", "private void initExecService() {\n try {\n executorService = Executors.newFixedThreadPool(NO_OF_THREADS);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }", "public static void main(String args[]) {\n ExecutorService executor = Executors.newFixedThreadPool(5);\n //create a list to hold the Future object associated with Callable\n Map<Integer, Future<String>> map = new HashMap<Integer, Future<String>>();\n //Create MyCallable instance\n for (int i = 0; i < 10; i++) {\n Callable<String> callable = new MyCallable(\"\" + i);\n //submit Callable tasks to be executed by thread pool\n Future<String> future = executor.submit(callable);\n\n //add Future to the list, we can get return value using Future\n map.put(i, future);\n }\n System.out.println(\"Assigned\");\n map.forEach(MyCallable::handleResult);\n// for (Future<String> fut : list) {\n// try {\n// //print the return value of Future, notice the output delay in console\n// // because Future.get() waits for task to get completed\n// System.out.println(new Date() + \"::\" + fut.get());\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// } catch (ExecutionException e) {\n// System.out.println(\"Handled in main thread - Crash\");\n// }\n// }\n System.out.println(\"About to shutdown\");\n //shut down the executor service now\n executor.shutdown();\n System.out.println(\"Shutdown\");\n }", "private List<Pair<SettableFuture<Object>, Collection<SolrInputDocument>>> getDocs() throws InterruptedException\n {\n List<Pair<SettableFuture<Object>, Collection<SolrInputDocument>>> tasks = new ArrayList<>(batchSize);\n int collectedDocs = 0;\n\n lock.lock();\n try\n {\n //Wait on the queue not being empty for up to 250 milliseconds\n long waitRemaining = TimeUnit.MILLISECONDS.toNanos(250);\n while (waitRemaining > 0 & taskQueue.isEmpty() & keepRunning)\n {\n waitRemaining = queueNotEmpty.awaitNanos(waitRemaining);\n }\n\n //Timed out polling so block on needing more runners\n //Rather then add another loop and indentation return an empty list\n //to restart the loop\n if (waitRemaining <= 0 & keepRunning)\n {\n runners--;\n needMoreRunner.await();\n runners++;\n return tasks;\n }\n\n //Pull stuff out of the queue until there are batchSize docs\n //Tracks # of docs collected as well as the weight impact on the queue\n while (collectedDocs < batchSize & !taskQueue.isEmpty())\n {\n Pair<SettableFuture<Object>, Collection<SolrInputDocument>> p = taskQueue.poll();\n int size = p.right.size();\n collectedDocs += size;\n queueWeight -= size;\n tasks.add(p);\n }\n\n //If we didn't drain the queue, then signal the next waiter on the queue\n if (!taskQueue.isEmpty())\n {\n queueNotEmpty.signal();\n }\n\n //If the queue is no longer full wake up anyone waiting to offer\n if (queueWeight < maxQueueWeight)\n {\n queueNotFull.signal();\n }\n }\n finally\n {\n lock.unlock();\n }\n return tasks;\n }", "public TaskManager() {\n\t\tcompletedTasks = new ArrayList<Tasks>();\n\t}", "private CameraExecutors() {\n }", "@PostConstruct\n public void setUpTasks() {\n final Iterable<Task> findAll = taskService.findAll();\n if (findAll != null) {\n findAll.forEach(task -> {\n\n final RunnableTask runnableTask = new RunnableTask(task.getId(), runTaskService);\n\n if (task.getCronExpression() != null) {\n log.info(\"Adding cron schedule for {} : {}\", task.getId(), task.getCronExpression());\n threadPoolTaskScheduler.schedule(runnableTask, new CronTrigger(task.getCronExpression()));\n }\n else if (task.getDelayPeriod() > 0) {\n log.info(\"Adding periodic schedule for {} : {}\", task.getId(), task.getDelayPeriod());\n threadPoolTaskScheduler.schedule(runnableTask, new PeriodicTrigger(task.getDelayPeriod()));\n }\n else {\n log.error(\"Invalid task {}\", task.getId());\n }\n\n });\n }\n }", "private void createTargetCollection() throws Exception {\n List<String> nodeNames = this.startServers(shardCount * replicationFactor);\n this.collectionToNodeNames.put(TARGET_COLLECTION, nodeNames);\n this.createCollection(TARGET_COLLECTION);\n this.waitForRecoveriesToFinish(TARGET_COLLECTION, true);\n this.updateMappingsFromZk(TARGET_COLLECTION);\n }", "public void move_creation_to_other_thread() {\n ExecutorService executor = Executors.newCachedThreadPool();\n\n CompletableFuture<Void> start = new CompletableFuture<>();\n CompletableFuture<List<Long>> readIds = start.thenCompose(nil -> getUserIds());\n readIds.thenRun(() -> System.out.println(\"ids read\"));\n readIds.thenCompose(this::getUsersFromDb).thenCompose(this::sendEmails);\n\n start.completeAsync(() -> null, executor);\n executor.shutdown();\n }", "public void collectAsync() throws IOException {\n rmiAcceptor = new RMIAcceptor(rmiPort);\n socketAcceptor = new SocketAcceptor(socketPort);\n // We prepare the task to get our first Future, it will then be overwritten once we get the promised result\n currentRMITask = threadPool.submit(rmiAcceptor);\n currentSocketTask = threadPool.submit(socketAcceptor);\n\n threadPool.execute(this::scheduledTask);\n }", "TaskList(List<Task> tasks) {\n this.tasks = tasks;\n }", "public static <T> void getAllDone(final Iterator<Future<T>> futures, final Collection<T> results) {\n while (futures.hasNext()) {\n final Future<T> future = futures.next();\n if (future.isDone()) {\n try {\n final T t = future.get();\n results.add(t);\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n catch (ExecutionException e) {\n e.printStackTrace();\n }\n }\n }\n }", "private void setupConsumerPipeline() throws Exception {\n if (consumerList != null && consumerList.size() > 0) {\n nonThreadedCasConsumerProcessingUnit = new NonThreadedProcessingUnit(this);\n // Assign initial status to all Cas Processors in the processing pipeline\n for (int i = 0; i < consumerList.size(); i++) {\n ((ProcessingContainer) consumerList.get(i)).setStatus(Constants.CAS_PROCESSOR_RUNNING);\n }\n nonThreadedCasConsumerProcessingUnit.setContainers(consumerList);\n nonThreadedCasConsumerProcessingUnit.setCasPool(casPool);\n nonThreadedCasConsumerProcessingUnit.setReleaseCASFlag(false);\n\n // Add Callback Listeners\n for (int j = 0; j < statusCbL.size(); j++) {\n BaseStatusCallbackListener statCL = (BaseStatusCallbackListener) statusCbL.get(j);\n if (statCL != null) {\n nonThreadedCasConsumerProcessingUnit.addStatusCallbackListener(statCL);\n }\n }\n // Notify Callback Listeners when done processing entity\n nonThreadedCasConsumerProcessingUnit.setNotifyListeners(false);\n // Add custom timer\n try {\n nonThreadedCasConsumerProcessingUnit.setUimaTimer(getTimer());\n } catch (Exception e) {\n // Use default Timer\n nonThreadedCasConsumerProcessingUnit.setUimaTimer(new JavaTimer());\n }\n }\n }", "Collection<Auction> getFutureAuctions();", "B withTasks(Collection<T> tasks);", "public void waitForFinish() {\n for(Future future : futures){\n try {\n future.get();\n } catch (InterruptedException | ExecutionException e) {\n LOGGER.error(\"ERROR\",e);\n }\n }\n }", "public void initialize() {\n service = Executors.newCachedThreadPool();\n }", "private void ejecutorDeServicio(){\r\n dbExeccutor = Executors.newFixedThreadPool(\r\n 1, \r\n new databaseThreadFactory()\r\n ); \r\n }", "public void testExecuteInParallel_Collection_ThreadPoolExecutor() throws Exception\n {\n System.out.println( \"executeInParallel\" );\n Collection<Callable<Double>> tasks = createTasks( 10 );\n Collection<Double> result = ParallelUtil.executeInParallel( tasks, ParallelUtil.createThreadPool( 1 ) );\n assertEquals( result.size(), tasks.size() );\n }", "public Operations() {\n history = new LinkedList<>();\n future = new LinkedList<>();\n }", "private List<Callable<Map<String, S3ObjectSummary>>> createFetchContextTasks(@NonNull ConfigQuery query) {\n return interpolateVarStrings(getPaths(), query).stream()\n .flatMap(this::restrictS3Path)\n .distinct()\n .map(s3Url -> (Callable<Map<String, S3ObjectSummary>>) () -> fetchSummary(s3Url))\n .collect(Collectors.toList());\n }", "@Singleton\n\t@Provides\n\tExecutorService provideExecutorService() {\n\t\tThreadFactory threadFactory = new ThreadFactory() {\n\t\t\tprivate final AtomicInteger threadNumber = new AtomicInteger(1);\n\n\t\t\t@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\t// Two-digit counter, used in load test.\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}\n\t\t};\n\t\treturn threadCount >= 0\n\t\t\t\t? Executors.newFixedThreadPool(threadCount, threadFactory)\n\t\t\t\t: Executors.newCachedThreadPool(threadFactory);\n\t}", "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 }", "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 Server(){\n this.tasks = new LinkedBlockingQueue<Task>();\n this.waitingPeriod = new AtomicInteger();\n }", "public static <T> ImmutableList<T> waitForAll(Iterable<ListenableFuture<T>> futures) {\n // Note that all futures are already completed due to the Futures#successfulAsList(), however\n // it means that some futures might fail, and we want to propagate a failure down the line. The\n // reason that we don't use Futures#allAsList() directly is it will fail-fast and will cause the\n // other existing futures to continue running until they fail (e.g. if they depend on the\n // temporary file which gets deleted then it will produce NoFileFound exception).\n try {\n return ImmutableList.copyOf(waitFor(Futures.allAsList(futures)));\n } catch (RuntimeException e) {\n try {\n waitFor(Futures.whenAllComplete(futures).call(() -> null, directExecutor()));\n } catch (RuntimeException ignoredException) {\n // Silently ignored - only report the very first Exception encountered.\n }\n throw e;\n }\n }", "public FetcherThreads(\n\t\t\tfinal BlockingFetchQueues< Callable< ? > > queue,\n\t\t\tfinal int numFetcherThreads,\n\t\t\tfinal IntFunction< String > threadIndexToName )\n\t{\n\t\tfetchers = new ArrayList<>( numFetcherThreads );\n\t\tfor ( int i = 0; i < numFetcherThreads; ++i )\n\t\t{\n\t\t\tfinal Fetcher f = new Fetcher( queue );\n\t\t\tf.setDaemon( true );\n\t\t\tf.setName( threadIndexToName.apply( i ) );\n\t\t\tfetchers.add( f );\n\t\t\tf.start();\n\t\t}\n\t}", "private TaskSeriesCollection createCollection3() {\n Task sub1 = new Task(\"Sub1\", new Date(11), new Date(111));\n Task sub2 = new Task(\"Sub2\", new Date(22), new Date(222));\n Task sub3 = new Task(\"Sub3\", new Date(33), new Date(333));\n Task sub4 = new Task(\"Sub4\", new Date(44), new Date(444));\n Task sub5 = new Task(\"Sub5\", new Date(55), new Date(555));\n Task sub6 = new Task(\"Sub6\", new Date(66), new Date(666));\n sub1.setPercentComplete(0.111);\n sub2.setPercentComplete(0.222);\n sub3.setPercentComplete(0.333);\n sub4.setPercentComplete(0.444);\n sub5.setPercentComplete(0.555);\n sub6.setPercentComplete(0.666);\n TaskSeries seriesA = new TaskSeries(\"Series A\");\n Task taskA1 = new Task(\"Task 1\", new SimpleTimePeriod(new Date(100), new Date(200)));\n taskA1.setPercentComplete(0.1);\n taskA1.addSubtask(sub1);\n Task taskA2 = new Task(\"Task 2\", new SimpleTimePeriod(new Date(220), new Date(350)));\n taskA2.setPercentComplete(0.2);\n taskA2.addSubtask(sub2);\n taskA2.addSubtask(sub3);\n seriesA.add(taskA1);\n seriesA.add(taskA2);\n TaskSeries seriesB = new TaskSeries(\"Series B\");\n Task taskB2 = new Task(\"Task 2\", new SimpleTimePeriod(new Date(2220), new Date(3350)));\n taskB2.setPercentComplete(0.3);\n taskB2.addSubtask(sub4);\n taskB2.addSubtask(sub5);\n taskB2.addSubtask(sub6);\n seriesB.add(taskB2);\n TaskSeriesCollection tsc = new TaskSeriesCollection();\n tsc.add(seriesA);\n tsc.add(seriesB);\n return tsc;\n }", "public static void main(String args[]) {\n\t\tExecutorService executor = Executors.newFixedThreadPool(5);\n\t\t\n\t\t// Create a list to hold the Future object associated with Callable\n\t\tList<Future<String>> futureList = new ArrayList<Future<String>>();\n\n\t\t/**\n\t\t * Create MyCallable instance using Lambda expression which return\n\t\t * the thread name executing this callable task\n\t\t */\n\t\tCallable<String> callable = () -> {\n\t\t\tThread.sleep(2000);\n\t\t\treturn Thread.currentThread().getName();\n\t\t};\n\t\t\n\t\t/**\n\t\t * Submit Callable tasks to be executed by thread pool\n\t\t * Add Future to the list, we can get return value using Future\n\t\t **/\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tFuture<String> future = executor.submit(callable);\n\t\t\tfutureList.add(future);\n\t\t}\n\t\t\n\t\t/**\n\t\t * Print the return value of Future, notice the output delay\n\t\t * in console because Future.get() waits for task to get completed\n\t\t **/\n\t\tfor (Future<String> future : futureList) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(new Date() + \" | \" + future.get());\n\t\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// shut down the executor service.\n\t\texecutor.shutdown();\n\t}", "private void initThreadPool(int numOfThreadsInPool, int[][] resultMat, Observer listener) {\n for(int i=0;i<numOfThreadsInPool; i++){\r\n PoolThread newPoolThread = new PoolThread(m_TaskQueue, resultMat);\r\n newPoolThread.AddResultMatListener(listener);\r\n m_Threads.add(newPoolThread);\r\n }\r\n // Start all Threads:\r\n for(PoolThread currThread: m_Threads){\r\n currThread.start();\r\n }\r\n }", "public static <T> CompletionStage<List<T>> all(List<CompletionStage<T>> futures) {\n return CompletableFuture\n .allOf(futures\n .stream()\n .map(CompletionStage::toCompletableFuture)\n .collect(Collectors.toList())\n .toArray(new CompletableFuture[0]))\n .thenApply(done -> futures.stream()\n .map(CompletionStage::toCompletableFuture)\n .map(f -> {\n try {\n return (T) f.get();\n } catch (Exception e) {\n return null;\n }\n })\n .filter(Objects::nonNull)\n .collect(Collectors.toList()));\n }", "private <T> Future<T> newFuture(final T response) {\n FutureTask<T> t = new FutureTask<T>(new Callable<T>() {\n @Override\n public T call() {\n return response;\n }\n });\n t.run();\n return t;\n }", "public void doAllTasks() throws Exception {\n final GenericInitializer<E,T> initializer = config.getInitializer();\n final TaskFactory<E,T,GenericInitializer<E,T>> initTaskFac = config.getInitFactory();\n final ObjectCache<GenericInitializer<E,T>> initCache = new ObjectCache<>(2*threads,initializer);\n \n final long sT = System.currentTimeMillis();\n List<Task<T>> initTasks = comm.getInitialTasks(maxTasks,myID);\n final long mT = System.currentTimeMillis();\n initFetchTimeMS += mT-sT;\n initChunksGotten++;\n \n do{\n noInits = initTasks.size();\n if(noInits == 0){\n // nothing to be done, kinda weird.\n System.out.println(\"WARNING: No tasks gotten for threading backend \" + myID + \" continuing but wondering...\");\n break;\n }\n // kind of subptimal but we need to get the ID offset\n currIDStart = (int) initTasks.get(0).getDummyAnswer(myID).getResult().getID();\n \n if(DEBUG){System.out.println(\"DEBUG: Starting with ID \" + currIDStart + \" we have \" + initTasks.size() + \" tasks to init.\");}\n\n final long tOff = System.currentTimeMillis();\n doXXX(threads, initTaskFac, initCache, initTasks);\n final long tMid = System.currentTimeMillis();\n initWorkTimeMS += (tMid-tOff);\n \n final boolean doneYet = synchronizePools(true);\n if(!doneYet){\n initTasks = comm.getInitialTasks(maxTasks,myID);\n initChunksGotten++;\n } else {\n initTasks.clear(); // not strictly necessary, I think\n }\n final long tEnd = System.currentTimeMillis();\n initFetchTimeMS += (tEnd-tMid);\n \n } while(!initTasks.isEmpty());\n \n // merge pools, technically this should have happened before already. However, this does not hurt and synchronizes even further.\n synchronizePools(false);\n \n ISINIT = false;\n \n // then do globopt tasks (setup task factory and cachers)\n final GenericGlobalOptimization<E,T> globopt = config.getGlobalOptimization();\n final ObjectCache<GenericGlobalOptimization<E,T>> globCache = new ObjectCache<>(2*threads,globopt);\n TaskFactory<E,T,GenericGlobalOptimization<E,T>> globTasks = new GlobTaskFactory<>();\n\n while(!comm.isEverythingDone()){\n \n final long tOff = System.currentTimeMillis();\n doXXX(threads, globTasks, globCache, (int) currIDStart, (int) tasksGotten);\n final long tMid = System.currentTimeMillis();\n optWorkTimeMS += (tMid-tOff);\n \n final boolean done = synchronizePools(false);\n final long tEnd = System.currentTimeMillis();\n optFetchTimeMS += (tEnd-tMid);\n \n if(done) {break;}\n }\n }", "public static void main(String[] args)throws InterruptedException, ExecutionException {\n\t\tList<String> l1=new ArrayList<>(),l2=new ArrayList<>(),l3=new ArrayList<>();\n\t\tl1.add(\"Eng\");\n\t\tl2.add(\"Doc\");\n\t\tPerson p1=new Person(1,LocalDate.now(),l1);\n\t\tPerson p2=new Person(2,LocalDate.now(),l2);\n\t\tl3.add(\"Arts\");\n\t\tPerson p3=new Person(3,LocalDate.now(),l3);\n\t\tPerson p4=new Person(4,LocalDate.now().minusDays(2),l2);\n\t\tList<Person> lp=new ArrayList<>();\n\t\tlp.add(p1);\n\t\tlp.add(p2);\n\t\t\n\t\t\n\t\tExecutorService service = Executors.newFixedThreadPool(10);\n\t\tSemaphore semaphore = new Semaphore(10);\n\t\tFutureTask<List<Person>> future=new FutureTask<List<Person>>(new Test(lp,semaphore));\n\t\tFutureTask<String> futurew1=new FutureTask<String>(new TestWrite(lp,p3,semaphore));\n\t\tFutureTask<String> futurew2=new FutureTask<String>(new TestWrite(lp,p4,semaphore));\n\t\t\n\t\tservice.execute(future);\n\t\tfor(Person p:future.get())\n\t\t{\n\t\t\tSystem.out.println(\"The result after seraching is \"+p.toString());\n\t\t}//future.wait();\n\t\tservice.execute(futurew1);\n\t\tSystem.out.println(futurew1.get());\n\t\t\n\t\t//if(futurew1.isDone())\n\t\t\n\t\t{\n\t\t\tservice.execute(future);\n\t\t\tfor(Person p:future.get())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"The result after seraching is \"+p.toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\t//service.execute(futurew2);\n\t\t//System.out.println(futurew2.get());\n\t\t//if(future1.isDone())\n//\t\t{\n//\t\t\tservice.execute(future);\n//\t\t\tSystem.out.println();System.out.println();\n//\t\t\tfor(Person p:future.get())\n//\t\t\t{\n//\t\t\t\tSystem.out.println(\"The result after seraching is \"+p.toString());\n//\t\t\t}\n//\t\t}\n\t\tservice.shutdown();\n\t}", "public TaskIterator createTaskIterator() {\n\t\treturn new TaskIterator(new FCMCluster(context, clusterManager));\n\t}", "public WaitList(){\n\t}", "protected HttpJsonTasksStub(\n TasksStubSettings settings,\n ClientContext clientContext,\n HttpJsonStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n\n HttpJsonCallSettings<GetTaskRequest, Task> getTaskTransportSettings =\n HttpJsonCallSettings.<GetTaskRequest, Task>newBuilder()\n .setMethodDescriptor(getTaskMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListTasksRequest, ListTasksResponse> listTasksTransportSettings =\n HttpJsonCallSettings.<ListTasksRequest, ListTasksResponse>newBuilder()\n .setMethodDescriptor(listTasksMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n\n this.getTaskCallable =\n callableFactory.createUnaryCallable(\n getTaskTransportSettings, settings.getTaskSettings(), clientContext);\n this.listTasksCallable =\n callableFactory.createUnaryCallable(\n listTasksTransportSettings, settings.listTasksSettings(), clientContext);\n this.listTasksPagedCallable =\n callableFactory.createPagedCallable(\n listTasksTransportSettings, settings.listTasksSettings(), clientContext);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "public interface ChefService {\n\n ListenableFuture<ResponseChefsEvent> requestChefs(final RequestChefsEvent event);\n\n ListenableFuture<ResponseChefEvent> createChef(final CreateChefEvent event);\n\n ListenableFuture<ResponseChefEvent> registerChef(final RegisterChefEvent event);\n\n ListenableFuture<ResponseChefEvent> requestChef(final RequestChefEvent event);\n\n ListenableFuture<ResponseChefEvent> updateChef(final UpdateChefEvent event);\n\n ListenableFuture<ResponseChefEvent> deleteChef(final DeleteChefEvent event);\n}", "public List<String> runParallelCharacters() throws InterruptedException, ExecutionException {\n ExecutorService executor = Executors.newFixedThreadPool(10);\r\n\r\n // create a list to hold the Future object associated with Callable\r\n List<Future<String>> list = new ArrayList<>();\r\n list.add(executor.submit(new FetchResourceCallable(\"https://dueinator.dk/jwtbackend/api/car/all\")));\r\n executor.shutdown();\r\n List<String> urlStr = new ArrayList<>();\r\n for (Future<String> future : list) {\r\n urlStr.add(future.get());\r\n }\r\n return urlStr;\r\n }", "private void PrepareAll(TweetPreprocessor tweetPreprocessor, String Datasetpath) throws IOException\n\t{\n\t\tCSVParser parser = new CSVParser(new FileReader(Datasetpath),CSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tExecutorService threadpool = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());\n\t\tfinal ConcurrentHashMap<String, String> txtHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> featHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> compHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> lexHashMap = new ConcurrentHashMap<>();\n\n\t\tint count = 0;\n\t\tfor (CSVRecord record : parser.getRecords())\n\t\t{\n\t\t\tSystem.out.println(\"Adding Task = \" + count);\n\t\t\tint finalCount = count;\n\n\t\t\tif (count == 17000)\n\t\t\t\tbreak;\n\t\t\tthreadpool.execute(() ->\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Current Executing task : \" + finalCount);\n\t\t\t\tInstance tweet = new Instance(record.get(\"event\"),record.get(\"target\"),null,null);\n\t\t\t\tInstance[] preparedinstances = tweetPreprocessor.startProc(tweet);\n\n\t\t\t\ttxtHashMap.put(preparedinstances[0].getData().toString(), record.get(\"target\"));\n\t\t\t\tfeatHashMap.put(preparedinstances[1].getData().toString(), record.get(\"target\"));\n\t\t\t\tcompHashMap.put(preparedinstances[2].getData().toString(), record.get(\"target\"));\n\t\t\t\tlexHashMap.put(preparedinstances[3].getData().toString(), record.get(\"target\"));\n\t\t\t});\n\t\t\tcount++;\n\t\t}\n\t\t//Initiates an orderly shutdown in which previously submitted tasks are executed,\n //but no new tasks will be accepted\n\t\tthreadpool.shutdown();\n\n\t\twhile (!threadpool.isTerminated());\n\t\tSystem.out.println(\"ThreadPool is shutdown ..\");\n\n\t\ttry (BufferedWriter writer1 = new BufferedWriter(new FileWriter(Dataset + \"data_text.csv\"));\n\t\t\t BufferedWriter writer2 = new BufferedWriter(new FileWriter(Dataset + \"data_feature.csv\"));\n\t\t\t BufferedWriter writer3 = new BufferedWriter(new FileWriter(Dataset + \"data_complex.csv\"));\n\t\t\t BufferedWriter writer4 = new BufferedWriter(new FileWriter(Dataset + \"data_lexicon.csv\")))\n\t\t{\n\t\t\tfor (String tweet : txtHashMap.keySet())\n\t\t\t\twriter1.write(txtHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : compHashMap.keySet())\n\t\t\t\twriter3.write(compHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : lexHashMap.keySet())\n\t\t\t\twriter4.write(lexHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : featHashMap.keySet())\n\t\t\t\twriter2.write(featHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private TaskSeriesCollection createCollection1() {\n TaskSeriesCollection result = new TaskSeriesCollection();\n TaskSeries s1 = new TaskSeries(\"S1\");\n s1.add(new Task(\"Task 1\", new Date(1), new Date(2)));\n s1.add(new Task(\"Task 2\", new Date(3), new Date(4)));\n result.add(s1);\n TaskSeries s2 = new TaskSeries(\"S2\");\n s2.add(new Task(\"Task 3\", new Date(5), new Date(6)));\n result.add(s2);\n return result;\n }", "@Test\n public void testBootstrapDataGrid() throws Exception {\n List<CompletableFuture<Atomix>> futures = new ArrayList<>(3);\n futures.add(startAtomix(1, Arrays.asList(2), Profile.dataGrid()));\n futures.add(startAtomix(2, Arrays.asList(1), Profile.dataGrid()));\n futures.add(startAtomix(3, Arrays.asList(1), Profile.dataGrid()));\n CompletableFuture.allOf(futures.toArray(new CompletableFuture[futures.size()])).get(30, TimeUnit.SECONDS);\n }", "public static void main(String[] args) throws Exception {\n Service1 service1 = new Service1();\n ExecutorService service = Executors.newFixedThreadPool(10);\n Future<String> f1 = service.submit(service1);\n\n\n }", "private static void threadPoolInit() {\n ExecutorService service = Executors.newCachedThreadPool();\n try {\n for (int i = 1; i <= 10; i++) {\n service.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" 办理业务...\");\n });\n try {\n TimeUnit.MILLISECONDS.sleep(1L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n service.shutdown();\n }\n }", "public ListenableFuture<ResourceSet<T>> async() {\n return async(Twilio.getRestClient());\n }", "@Setup\n public void setup() {\n\n f = x -> {\n Blackhole.consumeCPU(1000 * busyFactor);\n return x * x;\n };\n set = new HashSet<>();\n {\n Random random = new Random();\n for (int i = 0; i < dataSize; i++) {\n set.add(random.nextInt(dataSize));\n }\n }\n list = new ArrayList<>();\n {\n Random random = new Random();\n for (int i = 0; i < dataSize; i++) {\n list.add(random.nextInt(dataSize));\n }\n }\n executor1 = Executors.newFixedThreadPool(4);\n executor2 = Executors.newFixedThreadPool(8);\n executor3 = Executors.newFixedThreadPool(16);\n forkJoinPool = new ForkJoinPool();\n\n }", "public static void main(String[] args) throws InterruptedException, ExecutionException {\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n\n System.out.println(\"submitted callable task to calculate factorial of 10\");\n Future<Long> result10 = executorService.submit(new FactorialCalculator(10));\n\n System.out.println(\"submitted callable task to calculate factorial of 15\");\n Future<Long> result15 = executorService.submit(new FactorialCalculator(15));\n\n System.out.println(\"submitted callable task to calculate factorial of 20\");\n Future<Long> result20 = executorService.submit(new FactorialCalculator(20));\n\n System.out.println(\"Calling get method of FutureUsage to fetch result of factorial 10\");\n long factorialOf10 = result10.get();\n System.out.println(\"factorial of 10 is : \" + factorialOf10);\n\n System.out.println(\"Calling get method of FutureUsage to get result of factorial 15\");\n long factorialOf15 = result15.get();\n System.out.println(\"factorial of 15 is : \" + factorialOf15);\n\n System.out.println(\"Calling get method of FutureUsage to get result of factorial 20\");\n long factorialOf20 = result20.get();\n System.out.println(\"factorial of 20 is : \" + factorialOf20);\n }", "private TransferDispatcher() {\n taskList=new Vector();\n }", "@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 initialize() {\n\n\t\t// Initialize taskList\n\t\tthis.taskList = new LinkedList<Task>();\n\n\t\t// create a new thread for total size of pool\n\t\tfor (int i = 0; i < this.poolSize; ++i) {\n\t\t\tthreadPool.add(new WorkerThread(this));\n\t\t}\n\n\t\t// Start each thread in thread pool\n\t\tfor (WorkerThread t : threadPool) {\n\t\t\tnew Thread(t).start();\n\t\t}\n\n\t}", "void getTasks( AsyncCallback<java.util.List<org.openxdata.server.admin.model.TaskDef>> callback );", "public static void main(String[] args) {\n\t\tBlockingQueue queue = new LinkedBlockingQueue(4);\n\n\t\t// Thread factory below is used to create new threads\n\t\tThreadFactory thFactory = Executors.defaultThreadFactory();\n\n\t\t// Rejection handler in case the task get rejected\n\t\tRejectTaskHandler rth = new RejectTaskHandler();\n\t\t// ThreadPoolExecutor constructor to create its instance\n\t\t// public ThreadPoolExecutor(int corePoolSize,int maximumPoolSize,long\n\t\t// keepAliveTime,\n\t\t// TimeUnit unit,BlockingQueue workQueue ,ThreadFactory\n\t\t// threadFactory,RejectedExecutionHandler handler) ;\n\t\tThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 2, 10L, TimeUnit.MILLISECONDS, queue,\n\t\t\t\tthFactory, rth);\n\n\t\tfor (int i = 1; i <= 10; i++) {\n\t\t\tDataFileReader df = new DataFileReader(\"File \" + i);\n\t\t\tSystem.out.println(\"A new file has been added to read : \" + df.getFileName());\n\t\t\t// Submitting task to executor\n\t\t\tthreadPoolExecutor.execute(df);\n\t\t}\n\t\tthreadPoolExecutor.shutdown();\n\t}", "private static <T> Stream<T> doWithServers(Collection<Neo4jServer> Servers, Function<Neo4jServer, T> fn) {\n\n\t\tint N = Servers.size();\n\t\tExecutorService executor = Executors.newFixedThreadPool(N);\n\n\t\ttry {\n\n\t\t\tList<CompletableFuture<T>> futures = Servers.stream()\n\t\t\t\t.map(server -> CompletableFuture.supplyAsync(() -> fn.apply(server), executor))\n\t\t\t\t.collect(Collectors.toList());\n\n\t\t\ttry {\n\t\t\t\tCompletableFuture.allOf(futures.toArray(new CompletableFuture[N]))\n\t\t\t\t\t.get(NEO4J_CONTAINER_STOP_TIMEOUT.getSeconds() * N, TimeUnit.SECONDS);\n\t\t\t} catch (InterruptedException | ExecutionException | TimeoutException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\n\t\t\treturn futures.stream().map(CompletableFuture::join);\n\n\t\t} finally {\n\t\t\texecutor.shutdownNow();\n\t\t}\n\t}", "public TaskBookBuilder addUnfinishedFloatingTasks() {\n final List<FloatingTask> taskList = (new TypicalFloatingTasks()).getFloatingTasks();\n final List<FloatingTask> toAdd = new ArrayList<FloatingTask>();\n final TaskUnfinishedPredicate predicate = new TaskUnfinishedPredicate(referenceDateTime);\n for (FloatingTask floatingTask : taskList) {\n if (predicate.test(floatingTask)) {\n toAdd.add(floatingTask);\n }\n }\n return addFloatingTasks(toAdd);\n }", "void addTasks(List<Task> tasks);", "public static <T> void getAll(final Iterable<Future<T>> futures, final List<T> results, long timeout, TimeUnit timeunit)\n {\n final Iterator<Future<T>> itr = futures.iterator();\n\n // Compute the system time when we will be out of time.\n final long timeoutExpired = System.nanoTime() / 1000 + timeunit.toMillis(timeout);\n long now = System.nanoTime() / 1000;\n\n // Fetch as long as the timeout is valid.\n while (now < timeoutExpired && itr.hasNext()) {\n try {\n final Future<T> future = itr.next();\n final T t = future.get(timeoutExpired - now, TimeUnit.MILLISECONDS);\n results.add(t);\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n catch (ExecutionException e) {\n e.printStackTrace();\n }\n catch (TimeoutException e) {\n e.printStackTrace();\n }\n }\n\n // If we are here, if there are any futures left, get them ONLY if they are complete.\n getAllDone(itr, results);\n }", "public TaskList() {\n }", "public static <T> void getAllDone(final Iterable<Future<T>> futures, final Collection<T> results) {\n getAllDone(futures.iterator(), results);\n }", "public void startThread() \n { \n ExecutorService taskList = \n Executors.newFixedThreadPool(2); \n for (int i = 0; i < 5; i++) \n { \n // Makes tasks available for execution. \n // At the appropriate time, calls run \n // method of runnable interface \n taskList.execute(new Counter(this, i + 1, \n \"task \" + (i + 1))); \n } \n \n // Shuts the thread that's watching to see if \n // you have added new tasks. \n taskList.shutdown(); \n }", "public void testExecuteInParallel_Collection() throws Exception\n {\n System.out.println( \"executeInParallel\" );\n Collection<Callable<Double>> tasks = createTasks( 10 );\n Collection<Double> result = ParallelUtil.executeInParallel( tasks );\n assertEquals( result.size(), tasks.size() );\n }", "public int createMultipleRequests(Set _requests) throws RequestManagerException, PersistenceResourceAccessException;", "private IOHandler(){\n download_queue = new ArrayList<>(); \n initialize();\n }", "protected synchronized ExecutorService getService() {\r\n if(service == null) {\r\n //System.out.println(\"creating an executor service with a threadpool of size \" + threadPoolSize);\r\n service = Executors.newFixedThreadPool(threadPoolSize, new ThreadFactory() {\r\n private int count = 0;\r\n \r\n public Thread newThread(Runnable r) {\r\n Thread t = new Thread(r, \"tile-pool-\" + count++);\r\n t.setPriority(Thread.MIN_PRIORITY);\r\n t.setDaemon(true);\r\n return t;\r\n }\r\n });\r\n }\r\n return service;\r\n }", "public CompletionStage<E> add(CompletionStage<E> future) throws InterruptedException {\n checkNotNull(future, \"future can't be null\");\n this.thread = Thread.currentThread();\n\n down();\n futures.add(future);\n future.whenCompleteAsync((response, t) -> up(), CALLER_RUNS);\n return future;\n }", "protected GrpcGrafeasStub(\n GrafeasStubSettings settings,\n ClientContext clientContext,\n GrpcStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);\n\n GrpcCallSettings<GetOccurrenceRequest, Occurrence> getOccurrenceTransportSettings =\n GrpcCallSettings.<GetOccurrenceRequest, Occurrence>newBuilder()\n .setMethodDescriptor(getOccurrenceMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<ListOccurrencesRequest, ListOccurrencesResponse>\n listOccurrencesTransportSettings =\n GrpcCallSettings.<ListOccurrencesRequest, ListOccurrencesResponse>newBuilder()\n .setMethodDescriptor(listOccurrencesMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<DeleteOccurrenceRequest, Empty> deleteOccurrenceTransportSettings =\n GrpcCallSettings.<DeleteOccurrenceRequest, Empty>newBuilder()\n .setMethodDescriptor(deleteOccurrenceMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CreateOccurrenceRequest, Occurrence> createOccurrenceTransportSettings =\n GrpcCallSettings.<CreateOccurrenceRequest, Occurrence>newBuilder()\n .setMethodDescriptor(createOccurrenceMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<BatchCreateOccurrencesRequest, BatchCreateOccurrencesResponse>\n batchCreateOccurrencesTransportSettings =\n GrpcCallSettings\n .<BatchCreateOccurrencesRequest, BatchCreateOccurrencesResponse>newBuilder()\n .setMethodDescriptor(batchCreateOccurrencesMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<UpdateOccurrenceRequest, Occurrence> updateOccurrenceTransportSettings =\n GrpcCallSettings.<UpdateOccurrenceRequest, Occurrence>newBuilder()\n .setMethodDescriptor(updateOccurrenceMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<GetOccurrenceNoteRequest, Note> getOccurrenceNoteTransportSettings =\n GrpcCallSettings.<GetOccurrenceNoteRequest, Note>newBuilder()\n .setMethodDescriptor(getOccurrenceNoteMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<GetNoteRequest, Note> getNoteTransportSettings =\n GrpcCallSettings.<GetNoteRequest, Note>newBuilder()\n .setMethodDescriptor(getNoteMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<ListNotesRequest, ListNotesResponse> listNotesTransportSettings =\n GrpcCallSettings.<ListNotesRequest, ListNotesResponse>newBuilder()\n .setMethodDescriptor(listNotesMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<DeleteNoteRequest, Empty> deleteNoteTransportSettings =\n GrpcCallSettings.<DeleteNoteRequest, Empty>newBuilder()\n .setMethodDescriptor(deleteNoteMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<CreateNoteRequest, Note> createNoteTransportSettings =\n GrpcCallSettings.<CreateNoteRequest, Note>newBuilder()\n .setMethodDescriptor(createNoteMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<BatchCreateNotesRequest, BatchCreateNotesResponse>\n batchCreateNotesTransportSettings =\n GrpcCallSettings.<BatchCreateNotesRequest, BatchCreateNotesResponse>newBuilder()\n .setMethodDescriptor(batchCreateNotesMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<UpdateNoteRequest, Note> updateNoteTransportSettings =\n GrpcCallSettings.<UpdateNoteRequest, Note>newBuilder()\n .setMethodDescriptor(updateNoteMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n GrpcCallSettings<ListNoteOccurrencesRequest, ListNoteOccurrencesResponse>\n listNoteOccurrencesTransportSettings =\n GrpcCallSettings.<ListNoteOccurrencesRequest, ListNoteOccurrencesResponse>newBuilder()\n .setMethodDescriptor(listNoteOccurrencesMethodDescriptor)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n\n this.getOccurrenceCallable =\n callableFactory.createUnaryCallable(\n getOccurrenceTransportSettings, settings.getOccurrenceSettings(), clientContext);\n this.listOccurrencesCallable =\n callableFactory.createUnaryCallable(\n listOccurrencesTransportSettings, settings.listOccurrencesSettings(), clientContext);\n this.listOccurrencesPagedCallable =\n callableFactory.createPagedCallable(\n listOccurrencesTransportSettings, settings.listOccurrencesSettings(), clientContext);\n this.deleteOccurrenceCallable =\n callableFactory.createUnaryCallable(\n deleteOccurrenceTransportSettings, settings.deleteOccurrenceSettings(), clientContext);\n this.createOccurrenceCallable =\n callableFactory.createUnaryCallable(\n createOccurrenceTransportSettings, settings.createOccurrenceSettings(), clientContext);\n this.batchCreateOccurrencesCallable =\n callableFactory.createUnaryCallable(\n batchCreateOccurrencesTransportSettings,\n settings.batchCreateOccurrencesSettings(),\n clientContext);\n this.updateOccurrenceCallable =\n callableFactory.createUnaryCallable(\n updateOccurrenceTransportSettings, settings.updateOccurrenceSettings(), clientContext);\n this.getOccurrenceNoteCallable =\n callableFactory.createUnaryCallable(\n getOccurrenceNoteTransportSettings,\n settings.getOccurrenceNoteSettings(),\n clientContext);\n this.getNoteCallable =\n callableFactory.createUnaryCallable(\n getNoteTransportSettings, settings.getNoteSettings(), clientContext);\n this.listNotesCallable =\n callableFactory.createUnaryCallable(\n listNotesTransportSettings, settings.listNotesSettings(), clientContext);\n this.listNotesPagedCallable =\n callableFactory.createPagedCallable(\n listNotesTransportSettings, settings.listNotesSettings(), clientContext);\n this.deleteNoteCallable =\n callableFactory.createUnaryCallable(\n deleteNoteTransportSettings, settings.deleteNoteSettings(), clientContext);\n this.createNoteCallable =\n callableFactory.createUnaryCallable(\n createNoteTransportSettings, settings.createNoteSettings(), clientContext);\n this.batchCreateNotesCallable =\n callableFactory.createUnaryCallable(\n batchCreateNotesTransportSettings, settings.batchCreateNotesSettings(), clientContext);\n this.updateNoteCallable =\n callableFactory.createUnaryCallable(\n updateNoteTransportSettings, settings.updateNoteSettings(), clientContext);\n this.listNoteOccurrencesCallable =\n callableFactory.createUnaryCallable(\n listNoteOccurrencesTransportSettings,\n settings.listNoteOccurrencesSettings(),\n clientContext);\n this.listNoteOccurrencesPagedCallable =\n callableFactory.createPagedCallable(\n listNoteOccurrencesTransportSettings,\n settings.listNoteOccurrencesSettings(),\n clientContext);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "@PostConstruct\n\tprotected void startScheduling() {\n\t\texecutorService.scheduleWithFixedDelay(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tlog.info(\"Start refresh Cache\");\n\t\t\t\t\trefreshCache(false);\n\t\t\t\t\tlog.info(\"Start refresh thumbnails\");\n\t\t\t\t\tfinal Collection<Album> albums = new ArrayList<Album>(loadAlbums(true).values());\n\t\t\t\t\tfinal Semaphore thumbnailSemaphore = new Semaphore(10);\n\t\t\t\t\tfor (final Album album : albums) {\n\t\t\t\t\t\tfor (final AlbumImage image : album.listImages().values()) {\n\t\t\t\t\t\t\tthumbnailSemaphore.acquire();\n\t\t\t\t\t\t\texecutorService.submit(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\timage.getThumbnail(ThumbnailSize.BIG);\n\t\t\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\t\t\tthumbnailSemaphore.release();\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\t// wait for all threads\n\t\t\t\t\tthumbnailSemaphore.acquire(10);\n\t\t\t\t\tlog.info(\"Finidhed refreshing thumbnails\");\n\t\t\t\t} catch (final Throwable t) {\n\t\t\t\t\tlog.warn(\"Exception while refreshing thumbnails\", t);\n\t\t\t\t}\n\t\t\t}\n\t\t}, 1, 15, TimeUnit.MINUTES);\n\t}", "public TaskList (ArrayList<Task> tasks){ this.tasks = tasks;}", "default <R> EagerFutureStream<R> fromListCompletableFuture(\n\t\t\tList<CompletableFuture<R>> list) {\n\n\t\treturn (EagerFutureStream) FutureStream.super\n\t\t\t\t.fromListCompletableFuture(list);\n\t}", "public Tasks() {\n }", "public Collection getThreads();", "private static <T> CompletableFuture<List<T>> flatten(List<CompletableFuture<T>> futures) {\n return CompletableFuture\n .allOf(futures.toArray(new CompletableFuture[futures.size()]))\n .thenApply(value -> futures.stream()\n .map(CompletableFuture::join)\n .collect(Collectors.toList()));\n }", "public void run() {\n\t\tfor (ConConsumer consumer : _consumers) {\n\t\t\tconsumer.register();\n\t\t}\n\t\t// commit the channels <\n\t\t// wait for the tasks finish >\n\t\t_monitor.checkFinish();\n\t\t// wait for the tasks finish <\n\t\t_threadPool.shutdown();\n\t}", "private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}", "protected abstract Collection createCollection();", "@Override\n public void addTasksToRun() {\n //gets the tasks that are ready for execution from the list with new tasks\n List<Task> collect = tasks.stream().filter((task) -> (task.getDate() == TIME))\n .collect(Collectors.toList());\n //sort the tasks inserted. The sort is based in \"priority\" value for all the tasks.\n collect.sort(new Comparator<Task>() {\n @Override\n public int compare(Task o1, Task o2) {\n return o1.getPriority() - o2.getPriority();\n }\n });\n //Change the status of tasks for READY\n collect.stream().forEach((task) -> {\n task.setStatus(Task.STATUS_READY);\n });\n //Adds the tasks to the queue of execution\n tasksScheduler.addAll(collect);\n\n //Removes it from list of new tasks\n tasks.removeAll(collect);\n }", "public static void main(String [] args) {\n\t\tExecutorService executor= Executors.newFixedThreadPool(2);\n\t\t\n\t\t//add the tasks that the threadpook executor should run\n\t\tfor(int i=0;i<5;i++) {\n\t\t\texecutor.submit(new Processor(i));\n\t\t}\n\t\t\n\t\t//shutdown after all have started\n\t\texecutor.shutdown();\n\t\t\n\t\tSystem.out.println(\"all submitted\");\n\t\t\n\t\t//wait 1 day till al the threads are finished \n\t\ttry {\n\t\t\texecutor.awaitTermination(1, TimeUnit.DAYS);\n\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"all completed\");\n\t\t\n\t}", "public TaskList(ArrayList<Task> tasks) {\n this.tasks = tasks;\n }" ]
[ "0.60031646", "0.57103735", "0.5701393", "0.56721246", "0.5662557", "0.5606505", "0.55338806", "0.5490541", "0.5422867", "0.5344248", "0.53221655", "0.530769", "0.530769", "0.530769", "0.5302536", "0.5301003", "0.52969414", "0.5294215", "0.52750206", "0.5249637", "0.52148145", "0.517945", "0.5145486", "0.5120054", "0.5117739", "0.5110512", "0.50968623", "0.50715756", "0.5067009", "0.50584954", "0.5038106", "0.50278974", "0.50075155", "0.5004968", "0.50046986", "0.49944028", "0.49872094", "0.49837336", "0.4974318", "0.4971326", "0.49657112", "0.49654275", "0.4948824", "0.49420655", "0.49410692", "0.4941028", "0.4940799", "0.49406785", "0.4919061", "0.4914564", "0.49110377", "0.48952043", "0.4891835", "0.48916027", "0.48892868", "0.48812807", "0.48634088", "0.4857507", "0.4851781", "0.48495373", "0.48453692", "0.48354763", "0.48333558", "0.48254436", "0.48250657", "0.48182636", "0.48177016", "0.47996515", "0.47987124", "0.47913092", "0.47797933", "0.47763988", "0.4773963", "0.47728357", "0.47723445", "0.47705686", "0.4757823", "0.4751836", "0.47505254", "0.4746493", "0.47429165", "0.47410625", "0.4740544", "0.47368366", "0.47364032", "0.47264263", "0.47246376", "0.47236964", "0.4721348", "0.47068304", "0.4692528", "0.46846917", "0.46842566", "0.46832213", "0.46819723", "0.46765977", "0.4672051", "0.46624368", "0.4662206", "0.4660294", "0.46523365" ]
0.0
-1
Examen examen = new Examen(); Act do whatever the Profesor wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
public void act() { mueve(); //tocaJugador(); //bala(); disparaExamen(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public void act() \n {\n // Add your action code here.\n MyWorld world = (MyWorld) getWorld();\n jefe = world.comprobarJefe();\n \n \n explotar();\n \n if(jefe)\n {\n girarHaciaEnemigo();\n movimientoPegadoAJefe();\n }\n }", "public void activar(){\n\n }", "public static void start() {\n \t\tMainGame.display.disp(\"What type of monster do you want to fight?:\");\r\n \t\t//Display the buttons for the choice of monster\r\n \t\tMainGame.display.Enable(MainGame.display.warriorM, MainGame.display.fighterM);\r\n \t}", "public static void main(String[] args) {\n Engine ry = new Engine();\n ry.interactWithKeyboard();\n // ry.interactWithKeyboard();\n\n }", "void emi(){\n\t\tSystem.out.println(\"This is HomeLoan EMi\");\n\t}", "void activate();", "void activate();", "public void launch(){\n try{\n System.out.println(\"Main: Creando agentes\");\n \tmap = visualizer.getMapToLoad();\n \tsatelite = new Satelite(id_satelite, map, visualizer);\n \tdrone = new Drone(new AgentID(\"Drone\"), map.getWidth(), map.getHeigh(), id_satelite);\n \tSystem.out.println(\"MAIN : Iniciando agentes...\");\n \tvisualizer.setSatelite(satelite);\n satelite.start();\n drone.start();\n }catch(Exception e){\n \tSystem.err.println(\"Main: Error al crear los agentes\");\n System.exit(-1);\n }\n\t}", "public static void main(String[] args) {\n\n\n Editor e = new Editor();\n e.launch(Editor.class);\n\n }", "public void act() \n {\n if (canGiveTestimony()) {\n giveTestimony();\n }\n }", "public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}", "public void activate();", "public void act() \r\n {\r\n key();\r\n win();\r\n fall();\r\n lunch();\r\n }", "public static void main(String[] args) {\n Elvis elvis = Elvis.getInstance();\n elvis.leaveTheBuilding();\n }", "public static void main(String[] args) {\n new DisplayManager(new AppointmentMgr()).StartProg(true);\n //AppointmentMgr.makeAppt = new makeAppt(AppointmentMgr);\n //myMgr.screen2 = new Screen2(myMgr);\n\n //new MakeAppoinment().setVisible(true);\n //upldMedRec.setVisible(true);\n //makeAppt.setVisible(true);\n //showScreen1();\n //jButton2ActionPerformed(java.awt.event.ActionEvent evt)\n \n //makeAppt.jButton2ActionPerformed();\n\n \n \n }", "public void activate()\n {\n }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "public static void exec() {\n Elvis ELVIS = Elvis.getInstance();\n\n //pattern 3\n ElvisEnum ELVIS2 = ElvisEnum.INSTANCE;\n\n ELVIS.doSomething();\n ELVIS2.doSomething();\n }", "public void maze_editor() {\n mazeEditor = new MazeEditor();\n not_testing();\n}", "public void activate(){\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tJFrame frame=new JFrame();\n\t\tStart start=new Start();\n\t\tframe.add(start);\n\t\tframe.setSize(WIDTH, HEIGHT);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.addKeyListener(start.kl);\n\t\tframe.setVisible(true);\n\t\tstart.mos.add(start.sky);\n\t\tstart.mos.add(start.hero);\n\t\tstart.action();\n\n\t}", "public void eat(){\n\t\tSystem.out.println(\"I am the eat methods\");\t\t\t\t\r\n\t}", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if (key != null)\n {\n handleKeyPress(key);\n } \n\n // handle mouse events\n if (startGameButton.wasClicked())\n {\n handleStartGame();\n }\n }", "public void act() \n {\n checkCollision();\n KeyMovements(); \n attackWeapon();\n //stopGame();\n \n }", "public void intialRun() {\n }", "public void runProgram() {\n\n\t\tSystem.out.println(\"\\n Time to start the machine... \\n\");\n\n\t\tpress.pressOlive(myOlives);\n\n\t\tSystem.out.println(\"Total amount of oil \" + press.getTotalOil());\n\t}", "@Override\n\tpublic void activity() {\n\t\tSystem.out.println(\"studying\");\n\t}", "public void activated() \r\n\t{\r\n\t\t\r\n\t}", "public static void main( String[] args)\n {\n LCD.drawString(\" Reg Test\", 0, 0);\n Button.waitForPress();\n LCD.clear();\n new RegulateTest().go();\n }", "public void activate() {\n // PROGRAM 1: Student must complete this method\n if (control == 0) { // run and()\n \t\tand();\n \t} else if (control == 1) { //run or()\n \t\tor();\n \t} else if (control == 2) { //run add()\n \t\tadd();\n \t} else if (control == 6) { //run sub()\n \t\tsub();\n \t} else if (control == 7) { //run passB()\n \t\tpassB();\n \t} else {\n \t\tthrow new RuntimeException(\"invalid control\"); //otherwise, there was an invalid control\n \t}\n }", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void actionPerformed(ActionEvent e){\n\t\t\tstartGame();\n\t\t}", "public static void main(String[] args) {\n\t\tExam a = new Exam(); //객체 인스턴트 생성\n\t\n\t\ta.Ex1(); \t\t\t\t//부모클래스의 메소드를 활용\n\n\t}", "public void act() \n {\n moveEnemy();\n checkHealth();\n attacked();\n }", "private void entryAction() {\n\t}", "public void act() {\n\t}", "public static void main(String[] args) {\n\t\tPersonalAssistant mate = new PersonalAssistant(\"Siri\");\n\t\tSystem.out.println(\"Power: \"+mate.getPower()+\" Position: \"+mate.getPosition());\n\t\tmate.turnOn();\n\t\tSystem.out.println(\"Power: \"+mate.getPower()+\" Position: \"+mate.getPosition());\n\t\tmate.makeSchedule();\n\t\tmate.start();\n\t\tSystem.out.println(\"Power: \"+mate.getPower()+\" Position: \"+mate.getPosition());\n\t\tmate.makeSchedule();\n\n\t}", "public static void main(String args[]) \n {\n\n \n \n \tNewFrame.introDialog();\n EvolutionGame game = new EvolutionGame();\n \n \n while(true)\n\n {\n Area nextArea = ioUtils.enterCommand(character);\n\n if(!character.fighting)\n {\n if(nextArea != character.currentArea)\n\n {\n\n character.moveToArea(nextArea);\n NewFrame.setAreaDescription();\n NewFrame.addCharacters();\n\n }\n }\n else\n {\n\n }\n \n\n }\n\n }", "public void act() \n {\n canSeeAlex();\n }", "public static Activity pestControl() {\n Position veteranBoat = new Position(2638, 2653);\n BooleanSupplier isOnIsland = Game.getClient()::isInInstancedScene;\n\n Function<Position, Activity> moveTo = position -> Activity.newBuilder()\n .withName(\"Moving to position: \" + position)\n .addPreReq(() -> Movement.isWalkable(position))\n .addPreReq(() -> position.distance(Players.getLocal()) > 5)\n .addSubActivity(Activities.toggleRun())\n .addSubActivity(() -> Movement.walkTo(position))\n .thenPauseFor(Duration.ofSeconds(4))\n .maximumDuration(Duration.ofSeconds(20))\n .untilPreconditionsFail()\n .build();\n\n Activity boardShip = Activity.newBuilder()\n .withName(\"Boarding ship to start game\")\n .addPreReq(() -> SceneObjects.getNearest(\"Gangplank\") != null)\n .addPreReq(() -> !isOnIsland.getAsBoolean())\n .addPreReq(() -> Players.getLocal().getX() >= 2638)\n .tick()\n .addSubActivity(Activities.moveTo(veteranBoat))\n .addSubActivity(() -> SceneObjects.getNearest(\"Gangplank\").interact(\"Cross\"))\n .thenPauseFor(Duration.ofSeconds(3))\n .build();\n\n Activity waitForGameToStart = Activity.newBuilder()\n .withName(\"Waiting for game to start\")\n .addPreReq(() -> !isOnIsland.getAsBoolean())\n .addPreReq(() -> Players.getLocal().getX() < 2638)\n .addSubActivity(() -> Time.sleepUntil(isOnIsland, 1000 * 60 * 10))\n .build();\n\n Activity goToSpawnSpot = Activity.newBuilder()\n .withName(\"Going to my fav spot\")\n .addPreReq(isOnIsland)\n .addSubActivity(() -> moveTo.apply(Players.getLocal().getPosition().translate(0, -31)).run())\n .build();\n\n Activity killStuff = Activity.newBuilder()\n .withName(\"killing stuff\")\n .addPreReq(isOnIsland)\n .addPreReq(() -> Npcs.getNearest(npc -> true) != null)\n .addPreReq(() -> Npcs.getNearest(npc -> true).containsAction(\"Attack\"))\n .addSubActivity(() -> Npcs.getNearest(npc -> true).interact(\"Attack\"))\n .thenSleepUntil(() -> Players.getLocal().getTarget() == null)\n .build();\n\n return Activity.newBuilder()\n // TODO(dmattia): Check for world 344\n .withName(\"Pest Control\")\n .addSubActivity(boardShip)\n .addSubActivity(waitForGameToStart)\n .addSubActivity(goToSpawnSpot)\n .addSubActivity(killStuff)\n .build();\n }", "public static void main(String[] args) {\r\n Examen examen = new Examen();\r\n\r\n /* creamos dos objetos Fecha y Hora respectivamente */\r\n Fecha fecha = new Fecha(14, 9, 2021);\r\n Hora hora = new Hora(8, 30);\r\n\r\n /* establecemos con los métodos set() los valores de asignatura y el Grupo */\r\n examen.setAsignatura(\"Programación de Computadores II: Relacion de Composicion en Java\");\r\n examen.setAula(\"02\");\r\n\r\n /* Actualizamos la información del objeto Examen */\r\n examen = new Examen((examen.getAsignatura()), (examen.getAula()),\r\n fecha, hora);\r\n\r\n /* devuelve la información del objeto Examen creado */\r\n System.out.println(examen.toString());\r\n }", "public void startProgram()\r\n\t{\r\n\t\tview.displayPlayerNames();\r\n\t\tview.loadGameData();\r\n\t\tview.displayGame();\r\n\t}", "public static void main(String[] argv) {\r\n\t\tDemo15 demo = new Demo15();\r\n\t\tdemo.start();\r\n\t}", "public static void main(String []args) {\r\n SpaceInvaders invaders = new SpaceInvaders(\"Java Invaders\");\r\n }", "static void startJavaTrainer() {\n initializeMap();\n promptUser();\n startProgram();\n }", "public static void main(String[] args) throws Exception {\n\n ActionField af = new ActionField();\n af.runTheGame();\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void activateExamBoard(Intent intent){\r\n\r\n setContentView(R.layout.exam);\r\n \r\n try {\r\n //Timer\r\n ExamTimer ExamTimer = new ExamTimer();\r\n ExamTimer.showTimeElapsed((TextView)findViewById(R.id.test_timer));\r\n \r\n //get exam type and category id if type is 2\r\n int examType = intent.getIntExtra(\"EXAM_TYPE\", 1);\r\n int examCatId = intent.getIntExtra(\"TICKET_CAT_ID\", 0);\r\n\r\n //Exam part\r\n ExamManager = new ExamManager(this, examType, examCatId);\r\n \r\n //Set custom title bar\r\n CustomTitleBar.setCustomTitleBar(this, getString(R.string.exam_name));\r\n }\r\n catch (Exception e){\r\n //alert exception\r\n MyAlert.alertWin(this, \"\" + e);\r\n }\r\n }", "public void actionPerformed ( ActionEvent e ) {\n // Abgeben Button gedrueckt\n if ( e.getSource() == Main.getFenster().getHandler().getTrainer().getTestscreen().getAbgeben() ) {\n startEvaluator();\n }\n }", "void bye();", "public static void main(String[] args) {\n\t\tnew Actions();\r\n\t\t//call constructor\r\n\t}", "public void eat(){\n System.out.println(\"Bat Eatz\");\n }", "private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\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 }", "public static void main(String args[]) throws IOException {\r\n\t\tSmppObject.setDebug(debug);\r\n\t\tSmppObject.setEvent(event);\r\n\t\tdebug.activate();\r\n\t\tevent.activate();\r\n\t\tdebug.deactivate(SmppObject.DRXTXD2);\r\n\t\tdebug.deactivate(SmppObject.DPDUD);\r\n\t\tdebug.deactivate(SmppObject.DCOMD);\r\n\t\tdebug.deactivate(DSIMD2);\r\n\t\tSimulator menu = new Simulator();\r\n\t\tmenu.menu();\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tnew CutomerMonyReception();\n\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tRun();\n\t}", "public static void main(Demo args[])\n\t{\n\t\tEmployee1 employee=new Manager();\n\t\temployee.display();\n\t}", "public void act();", "public static void main(String[] args) {\r\n\t\tHero hero = new Hero(\"Nighthawk\");\r\n\t\thero.show();\r\n\t\thero.fight();\r\n\t}", "public static void main(String[] args) {\n // Interact\n System.out.println(\"Welcome to my terrain checker:\");\n loadPgm(); actionPrompt();\n System.out.println(\"Bye.\");\n }", "public void interact() {\r\n\t\t\r\n\t}", "public void launchExplorer() {\n SimulatedEnvironment env = new SimulatedEnvironment(this.domain, this.initialState);\n VisualExplorer exp = new VisualExplorer(this.domain, env, this.v, 800, 800);\n exp.addKeyAction(\"w\", GridWorldDomain.ACTION_NORTH, \"\");\n exp.addKeyAction(\"s\", GridWorldDomain.ACTION_SOUTH, \"\");\n exp.addKeyAction(\"d\", GridWorldDomain.ACTION_EAST, \"\");\n exp.addKeyAction(\"a\", GridWorldDomain.ACTION_WEST, \"\");\n\n //exp.enableEpisodeRecording(\"r\", \"f\", \"irlDemo\");\n\n exp.initGUI();\n }", "public static void main(String[] args) {\n\t\t//thread to allow exit at any time;\n \t(new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\tint buttonPressed=Button.waitForAnyPress();\n\t\t\t\twhile (buttonPressed != Button.ID_ESCAPE){\n\t\t\t\t\tbuttonPressed=Button.waitForAnyPress();\n\t\t\t\t}\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}).start();\n \t\n\t\ttestClaw();\t\n\t}", "public AMMSMIDlet() {\n\tdisplay = Display.getDisplay(this);\n\tcanvas = new MansionCanvas(display);\n\tcanvas.addCommand(exitCommand);\n\tcanvas.addCommand(toggleCommand);\n\tcanvas.addCommand(helpCommand);\n\tcanvas.addCommand(aboutCommand);\n\tcanvas.setCommandListener(this);\n }", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "public void execute(){\r\n\t\tapplicationController.about();\r\n\t}", "public void startEngine(){\r\n isEngineRunning = true;\r\n System.out.println(\"[i] Engine is running.\");\r\n }", "public static void main(String[] args) {\n ExhibitionCenter ec = DefaultInstantiator.createExhibitionCenter();\n\n Organizer o = new Organizer(new User(\"Daniel\", \"daniell\", \"email@dd23\", \"password\", new ArrayList<>(), \"\"));\n List<Organizer> lo = new ArrayList<>();\n lo.add(o);\n\n Exhibition e1 = new Exhibition();\n e1.setState(new ExhibitionCreatedState(e1));\n e1.setOrganizersList(new OrganizersList(lo));\n\n Exhibition e2 = new Exhibition();\n e2.setState(new ExhibitionCreatedState(e2));\n e2.setOrganizersList(new OrganizersList(lo));\n\n List<Exhibition> le = new ArrayList<>();\n le.add(e1);\n le.add(e2);\n\n ec.setExhibitionsRegister(new ExhibitionsRegister(le));\n\n new CreateDemonstrationUI(ec, o);\n }", "@Override\r\n public void run() {\r\n Example ex = new Example();//Creates a new object of this example type\r\n ex.setVisible(true);//Sets the visibility of the created ex object to true\r\n }", "public void act() \n {\n if (Greenfoot.mouseClicked(this))\n {\n Peter.lb=2; \n Greenfoot.playSound(\"click.mp3\");\n Greenfoot.setWorld(new StartEngleza());\n };\n }", "public void act()\r\n {\r\n // back button\r\n if (Greenfoot.isKeyDown(\"escape\") || Greenfoot.mouseClicked(backButton)) {\r\n Greenfoot.setWorld(new Title(gameSettings));\r\n }\r\n }", "public void main(String[] args) {\n this.addKeyListener(this);\n }", "public void actionPerformed(ActionEvent e) \n\t{\n\t\tif(e.getSource() == startSim)\n\t\t{\n\t\t\tif(!hasRun)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < promptNum; i++)\n\t\t\t\t{\n\t\t\t\t\tthis.promptFields[i].setEditable(false);\n\t\t\t\t}\n\t\t\t\tfor(int i = 0; i < Integer.parseInt(promptFields[4].getText()); i++)\n\t\t\t\t{\n\t\t\t\t\teatLabels[i].setText(\"Eatery \" + (i + 1) + \": \");\n\t\t\t\t\teatValues[i].setText(\"0\");\n\t\t\t\t}\n\t\t\t\tthis.simulation = new Sim(Integer.parseInt(promptFields[0].getText()),\n\t\t\t\t\t\t\t\tInteger.parseInt(promptFields[1].getText()), \n\t\t\t\t\t\t\t\tInteger.parseInt(promptFields[2].getText()),\n\t\t\t\t\t\t\t\tInteger.parseInt(promptFields[3].getText()),\n\t\t\t\t\t\t\t\tInteger.parseInt(promptFields[4].getText()),\n\t\t\t\t\t\t\t\tInteger.parseInt(promptFields[5].getText()));\n\t\t\t\thasRun = true;\n\t\t\t}\n\t\t\t\n\t\t\tisRunning = true;\n\n\t\t}\n\t\tif(e.getSource() == pauseSim)\n\t\t{\n\t\t\tisRunning = false;\n\t\t}\n\t\t\n\t\tif(e.getSource() == addEat)\n\t\t{\n\t\t\tboolean temp = isRunning;\n\t\t\tint newEatNum = Integer.parseInt(promptFields[4].getText()) + 1;\n\t\t\tisRunning = false;\n\t\t\tsimulation.addEatery();\n\t\t\tisRunning = temp;\n\t\t\tpromptFields[4].setText(Integer.toString(newEatNum));\n\t\t\teatLabels[newEatNum - 1].setText(\"Eatery \" + newEatNum + \": \");\n\t\t\teatValues[newEatNum - 1].setText(\"0\");\n\t\t\t\n\t\t\tif(Integer.parseInt(promptFields[4].getText()) == 9)\n\t\t\t{\n\t\t\t\taddEat.setEnabled(false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsubEat.setEnabled(true);\n\t\t\t}\n\t\t}\n\t\tif(e.getSource() == subEat)\n\t\t{\n\t\t\tboolean temp = isRunning;\n\t\t\tint newEatNum = Integer.parseInt(promptFields[4].getText()) - 1;\n\t\t\tisRunning = false;\n\t\t\tsimulation.subEatery();\n\t\t\tisRunning = temp;\n\t\t\t\n\t\t\tpromptFields[4].setText(Integer.toString((newEatNum)));\n\t\t\teatValues[newEatNum].setText(\"\");\n\t\t\teatLabels[newEatNum].setText(\"\");\n\t\t\t\n\t\t\tif(Integer.parseInt(promptFields[4].getText()) == 1)\n\t\t\t{\n\t\t\t\tsubEat.setEnabled(false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\taddEat.setEnabled(true);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(e.getSource() == addCash)\n\t\t{\n\t\t\tboolean temp = isRunning;\n\t\t\tisRunning = false;\n\t\t\tsimulation.addCashier();\n\t\t\tisRunning = temp;\n\t\t\tpromptFields[5].setText(Integer.toString(Integer.parseInt(promptFields[5].getText()) + 1));\n\t\t\t\n\t\t\tif(Integer.parseInt(promptFields[5].getText()) == 9)\n\t\t\t{\n\t\t\t\taddCash.setEnabled(false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsubCash.setEnabled(true);\n\t\t\t}\n\t\t}\n\t\tif(e.getSource() == subCash)\n\t\t{\n\t\t\tboolean temp = isRunning;\n\t\t\tisRunning = false;\n\t\t\tsimulation.subCashier();\n\t\t\tisRunning = temp;\n\t\t\tpromptFields[5].setText(Integer.toString(Integer.parseInt(promptFields[5].getText()) - 1));\n\t\t\t\n\t\t\tif(Integer.parseInt(promptFields[5].getText()) == 1)\n\t\t\t{\n\t\t\t\tsubCash.setEnabled(false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\taddCash.setEnabled(true);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n \t Robot r;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tr = new Robot();\r\n\t\t\t\t int keyCode = KeyEvent.VK_ENTER; // the A key\r\n\t\t\t\t r.keyPress(keyCode);\t\t\t\t \r\n\t\t\t\t} catch (AWTException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "public EnigmaMachine()\n\t{\n\t\t//Instantiating a plugboard inside the enigma\n\t\tplugboard = new Plugboard();\n\t\t//Instantiating the three rotors of the enigma\n\t\trotors = new BasicRotor[3];\n\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\t\tmode = InputMode.ACCESS;\r\n\t\t\tinstr.setText(\"Click an element to access it. It will change to red.\");\r\n\t\t\tdefaultVar(canvas);\r\n\t\t}", "private void newGame()\r\n {\r\n //close the current screen\r\n screen.dispose();\r\n //start back at the set up menu\r\n SetupView screen = new SetupView();\r\n SetupController controller = new SetupController(screen);\r\n screen.registerObserver(controller);\r\n }", "public static void main(String[] args) {\n\t\tEASE application = new EASE();\n\t}", "public static void launch() {\r\n\t\tint choice = EXIT;\r\n\t\tdo {\r\n\t\t\tchoice = displayMenu();\r\n\t\t\texecuteMenuItem(choice);\r\n\t\t} while (choice != EXIT);\r\n\t}", "void admin() {\n\t\tSystem.out.println(\"i am from admin\");\n\t}", "public void startPoemGenerator(){\n PoemWindow win = new PoemWindow();\n System.out.println(\"\\nYou found a Secret Poem Generator.\");\n System.out.println(\"Welcome, Friend!\");\n System.out.println(\"\\n **************************************\");\n System.out.println();\n readPoemFiles();\n askPoets();\n try{\n fetchVerseLines();\n }catch(Exception e){\n System.out.println(\"Invalid input. Please, try again!\");\n }\n }", "public abstract void activate();", "public abstract void activate();", "public void act() \n {\n if(getY()>=30 && !cambia)\n {\n direccion = -1;\n }\n else\n {\n cambia = true;\n }\n if(getY() <= getWorld().getHeight()-30 && cambia)\n {\n direccion = 1;\n }\n else\n {\n cambia = false;\n }\n \n setLocation(getX(),getY()+(velocidad*direccion));\n reglas();\n ataque();\n \n \n \n }", "@Override\n\tpublic void Examinar() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec ao ser examinada\\n\");\t\n\t}", "public static void main(String[] args) {\n Aba attempt = new Aba();\n attempt.showTransitionDialog();\n }", "void launch();", "void launch();", "void launch();", "public void act() \n {\n movegas();\n \n atingido2(); \n \n }", "public void turnOn(){\n Logger.getGlobal().log(Level.INFO,\" Turning On..\");\n vendingMachine = new VendingMachine();\n inventoryPopulation();\n idle();\n }", "public void act()\n {\n \n //move();\n //if(canSee(Worm.class))\n //{\n // eat(Worm.class);\n //}\n //else if( atWorldEdge() )\n //{\n // turn(15);\n //}\n\n }", "public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }", "public void actionPerformed(ActionEvent ea)\n\t{\n\t\tString action = ea.getActionCommand();\n\t\t\n\t\t//System.out.println(action);\n\t\t\tif(action.equals(\"Exit\")){\n\t\t\t\texit();\n\t\t\t}\n\t\t\telse if(action.equals(\"About\")){\n\t\t\t\tabout();\n\t\t\t}\n\t\t\telse if(action.equals(\"Enter Database Credentials\")){\n\t\t\t\tpromptDBCreds();\n\t\t\t}\n\t\t\telse if(action.equals(\"Enter API Keys\")){\n\t\t\t\tpromptAPIkeys();\n\t\t\t}\n\t\t\telse if(action.equals(\"Start Scraper\")){\n\t\t\t\tstart();\n\t\t\t}\n\t\t\telse if(action.equals(\"Stop Scraper\")){\n\t\t\t\tstop();\n\t\t\t}\n\t\t\telse if(action.equals(\"Clear Log\"))\n\t\t\t{\n\t\t\t\tclear();\n\t\t\t}\t\t\n\t}" ]
[ "0.62075114", "0.61679137", "0.61540055", "0.614689", "0.61322945", "0.603556", "0.59980255", "0.59980255", "0.5995103", "0.59741485", "0.5956023", "0.59451485", "0.59377867", "0.59372264", "0.5914165", "0.5902123", "0.5900726", "0.5863821", "0.58495873", "0.5848576", "0.58431715", "0.58342487", "0.58271736", "0.5811701", "0.57817364", "0.5780066", "0.5762593", "0.5741478", "0.5734406", "0.5723926", "0.57135046", "0.57124436", "0.571166", "0.57016385", "0.5700058", "0.568628", "0.56752586", "0.5669061", "0.5658609", "0.565556", "0.5639422", "0.5631043", "0.5623353", "0.5618743", "0.56146544", "0.5612108", "0.56090605", "0.56027085", "0.56010306", "0.55824745", "0.55824745", "0.55824745", "0.55819255", "0.558109", "0.557637", "0.5563486", "0.55620277", "0.5560179", "0.55514807", "0.55407757", "0.5533437", "0.5530255", "0.5527704", "0.55264187", "0.55211335", "0.55084825", "0.55028033", "0.55022323", "0.5502004", "0.54961187", "0.5482611", "0.54808", "0.54786265", "0.54739696", "0.54714143", "0.5462166", "0.5459164", "0.5455379", "0.5454864", "0.5453439", "0.5452038", "0.54513216", "0.54456335", "0.54357177", "0.54354614", "0.54323816", "0.54219186", "0.541986", "0.541986", "0.5417922", "0.5412923", "0.5412531", "0.54109955", "0.54109955", "0.54109955", "0.54087126", "0.54082793", "0.54070103", "0.540284", "0.5398205" ]
0.70452654
0
Created by az on 050617.
public interface PeopleListView { void showSpinner(); void hideSpinner(); void onPeoplePageLoaded(List<Person> person); void onPersonSelected(int personId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo38117a() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\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 public void init() {\n }", "private void m50366E() {\n }", "private static void cajas() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {}", "@Override\n void init() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "public void mo4359a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void anular() {\n\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}", "public void mo6081a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override public int describeContents() { return 0; }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "protected void mo6255a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo55254a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void method_4270() {}", "private void poetries() {\n\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo21877s() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "public void m23075a() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "private void init() {\n\n\n\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}" ]
[ "0.5717231", "0.57156324", "0.5681588", "0.5604532", "0.5586142", "0.5531733", "0.5502886", "0.549792", "0.54818994", "0.5441056", "0.5435029", "0.54170346", "0.54170346", "0.54170346", "0.54170346", "0.54170346", "0.5404721", "0.5404721", "0.5395476", "0.5395267", "0.53905976", "0.5384339", "0.53839904", "0.53839904", "0.5383494", "0.5378504", "0.53777456", "0.53776234", "0.5372453", "0.5372453", "0.5372453", "0.5372453", "0.5372453", "0.5372453", "0.53722125", "0.5367656", "0.5367026", "0.5367026", "0.5367026", "0.5367026", "0.5367026", "0.5367026", "0.5367026", "0.5349386", "0.5349028", "0.53196937", "0.53176624", "0.531023", "0.53024423", "0.52821964", "0.5281643", "0.5281363", "0.5281363", "0.5281363", "0.5278765", "0.5276766", "0.5275063", "0.52740914", "0.52740914", "0.52740914", "0.52695835", "0.52560884", "0.52536154", "0.52536154", "0.5249763", "0.5249763", "0.5249763", "0.52493906", "0.5248401", "0.5242158", "0.52280575", "0.5226639", "0.5226195", "0.5215559", "0.52070975", "0.52069736", "0.5206467", "0.5202942", "0.5202806", "0.51966614", "0.5195731", "0.5191276", "0.5190023", "0.5190023", "0.51844215", "0.51785266", "0.51733375", "0.51733375", "0.51733375", "0.5172136", "0.51705694", "0.51663095", "0.5162967", "0.51608104", "0.5159311", "0.51536995", "0.51502657", "0.5143864", "0.51399875", "0.51333547", "0.5128517" ]
0.0
-1
/ Getters and setters
public KeyPair getKeyPair() { return keyPair; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void get() {}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "protected abstract Set method_1559();", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void setAge(int age) { this.age = age; }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "public void setdat()\n {\n }", "public int getAge() {return age;}", "String setValue();", "@Override\npublic void setAttributes() {\n\t\n}", "@Override\n protected void updateProperties() {\n }", "@Override\n String get();", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "public void get() {\n }", "@Override\n protected void getExras() {\n }", "private ReadProperty()\r\n {\r\n\r\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n void init() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void setData() {\n\n\t}", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "public void setNombre(String nombre) {this.nombre = nombre;}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public int getAge(){\n return age;\n }", "private Values(){}", "public void setName(String name){this.name=name;}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n\tpublic void initializeValues() {\n\n\t}", "@Override\n public void saveValues() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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}", "@Override\n public void init() {\n\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "private void assignment() {\n\n\t\t\t}", "public void setPrice(double price){this.price=price;}", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "String getName(){return this.name;}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "public int getlife(){\r\n return life;\r\n}", "public String getName(){return this.name;}", "public contrustor(){\r\n\t}", "@Override\n public void init() {\n }", "private void setData() {\n\n }", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "private Value() {\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "public String getAuthor(){return author;}", "public int getArmadura(){return armadura;}", "@Override\n public String getName(){\n return Name; \n }", "public String getName () { return this.name; }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "public int getAge()\r\n {\r\n return age;\r\n }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "public abstract String get();", "public Student getStudent() { return student; }", "@Override\n protected void initialize() {\n\n \n }", "public void setName(String name){this.name = name;}", "public String get();", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "protected List getProperties() {\n return null;\n }", "public void setupProperties() {\n // left empty for subclass to override\n }", "@Override\n public void load() {\n }", "public Book getBook() \t\t{ return this.myBook; }", "public String getName(){\n return name;\n}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "public Age getAge() {\n return age;\n }", "public String getID(){return ID;}", "@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}", "public Change() {\n // Required for WebServices to work. Comment added to please Sonar.\n }", "@Override\n //Method for getting output from String declaration\n //First set of accessor/mutator that returns value as String\n public String toString(){\n return \"[\"+name+\",\"+type+\",\"+value+\"]\";\n }", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public int getAge()\n {\n return age;\n }" ]
[ "0.646901", "0.6434069", "0.6405327", "0.6374714", "0.61492217", "0.6088488", "0.6079561", "0.6056365", "0.6019692", "0.5977231", "0.597154", "0.5964837", "0.59290606", "0.5922731", "0.5914227", "0.59035057", "0.5893521", "0.5888251", "0.5875859", "0.58580583", "0.5830215", "0.5827275", "0.5824403", "0.5820902", "0.58208585", "0.5807714", "0.5800705", "0.57974756", "0.57952166", "0.5794785", "0.5794785", "0.5794785", "0.5794785", "0.5794785", "0.5794785", "0.5792742", "0.5788811", "0.57887536", "0.57800704", "0.57790333", "0.57781756", "0.57772374", "0.57772374", "0.5771011", "0.5769647", "0.5761639", "0.5759463", "0.5757683", "0.5755948", "0.574896", "0.574609", "0.5745651", "0.57442653", "0.57442653", "0.5737871", "0.5735995", "0.5726821", "0.5726169", "0.5725901", "0.5725429", "0.57244664", "0.57235384", "0.57235384", "0.5719321", "0.5715986", "0.5710476", "0.5704866", "0.57029426", "0.5696965", "0.5695224", "0.5690133", "0.5690133", "0.5685251", "0.5680433", "0.56759083", "0.5671932", "0.56713784", "0.5670901", "0.56690645", "0.56687117", "0.5665604", "0.56637645", "0.56529874", "0.56476474", "0.564028", "0.564028", "0.564028", "0.564028", "0.564028", "0.564028", "0.5639556", "0.5636491", "0.56308156", "0.5628333", "0.5627892", "0.5625825", "0.5625401", "0.5625401", "0.5625401", "0.5625401", "0.56224173" ]
0.0
-1