query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
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_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(); //noinspection SimplifiableIfStatement 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 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 // 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 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 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 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 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 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\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\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 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.7904975", "0.78056985", "0.77671826", "0.77275974", "0.7632173", "0.7622138", "0.75856143", "0.7531176", "0.7488386", "0.74576557", "0.74576557", "0.74391466", "0.7422802", "0.7403698", "0.7392229", "0.73873955", "0.73796785", "0.737091", "0.73627585", "0.7356357", "0.73460615", "0.73415256", "0.73305213", "0.7329754", "0.7326127", "0.731949", "0.73171073", "0.7314056", "0.7304481", "0.7304481", "0.73022866", "0.72986156", "0.7293808", "0.7287263", "0.72836643", "0.72815806", "0.72789687", "0.72602886", "0.72602886", "0.72602886", "0.7259816", "0.7259814", "0.72502047", "0.7225156", "0.7219905", "0.7217096", "0.72046524", "0.72012514", "0.7201042", "0.71939653", "0.71857035", "0.71786326", "0.7169012", "0.7167622", "0.7154164", "0.71538347", "0.7136608", "0.7135137", "0.7135137", "0.7129952", "0.7129347", "0.71241516", "0.7123588", "0.7123425", "0.71223265", "0.71175927", "0.71175927", "0.71175927", "0.71175927", "0.71171945", "0.71171755", "0.71165764", "0.7114952", "0.71124375", "0.7109778", "0.7109144", "0.7105842", "0.71002746", "0.70984215", "0.7096018", "0.709392", "0.709392", "0.70864546", "0.7083677", "0.708144", "0.70804363", "0.70738995", "0.7068429", "0.7061805", "0.7060801", "0.7060423", "0.7051581", "0.7037953", "0.7037953", "0.70359737", "0.7035605", "0.7035605", "0.7033388", "0.70312315", "0.7029681", "0.70192695" ]
0.0
-1
Method for move activity with Intent
public void moveActivity(Class<?> kelas){ context.startActivity(new Intent(context,kelas)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveActivity(Class<?> kelas, Bundle bundle){\n Intent i = new Intent(context,kelas);\n i.putExtras(bundle);\n context.startActivity(i);\n }", "@Override\n public void onClick(View v) {\n startActivity(new Intent(StartPage.this,SafeMove.class));\n }", "public void moveActivityToSunting() {\n Intent intent = new Intent(MainActivity.this, SuntingProfilActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "void intentPass(Activity activity, Class classname) {\n Intent i = new Intent(activity, classname);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n enterAnimation();\n }", "void startNewActivity(Intent intent);", "public static void moveNextActivity(Activity source, Class<?> destinationClass, boolean removeSource) {\n Intent intent = new Intent(source, destinationClass);\n\n if (removeSource) {\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n }\n\n source.startActivity(intent);\n\n if (removeSource) {\n source.finish();\n }\n\n source.overridePendingTransition(R.anim.anim_in, R.anim.anim_out);\n }", "private void viewMove(Move move) {\n Intent intent = new Intent(this, MoveInfoActivity.class);\n intent.putExtra(getString(R.string.moveKey), move);\n startActivity(intent);\n }", "Activity getMoveElementActivity();", "private void startActivity(Class destination)\n {\n Intent intent = new Intent(MainActivity.this, destination);\n startActivity(intent);\n }", "public void transferActivity() {\n Intent intent = new Intent(this, AddInfoActivity.class);\n this.startActivity(intent);\n }", "private void moveToMainActivity(){\r\n Intent goToMainActivity = new Intent(workoutActivity.this, BodyGroups.class);\r\n startActivity(goToMainActivity);;\r\n }", "public void switchActivity(Class<?> destinationActivity) {\n startActivity(new Intent(this, destinationActivity));\n }", "public void switchActivity(Class<?> destinationActivity, int requestCode) {\n Intent intent = new Intent(this, destinationActivity);\n startActivityForResult(intent, requestCode);\n }", "@Override\n\tpublic void startActivity(Intent intent) {\n\t\tsuper.startActivity(intent);\n\t\toverridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);\n\t}", "public void openMoving() {\n myActivity.setContentView(R.layout.moving);\n Button movingButtonToGame = myActivity.findViewById(R.id.button10);\n\n movingButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingRulesScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n });\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(NowPlaying.this, classDestination);\n // starting new activity\n startActivity(intent);\n }", "@Override\n public void startActivity(Intent intent) {\n startActivity(intent, null);\n }", "public void moveActivityToLogin() {\n Intent intent = new Intent(MainActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "@Override\n\tpublic void startActivity(Intent intent) {\n\t\tsuper.startActivity(intent);\n\t\toverridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);\n\t}", "public static void sendToNextActivity(Context context, Class aClass) {\n\n Intent intent = new Intent(context, aClass);\n context.startActivity(intent);\n ((Activity) context).overridePendingTransition(R.anim.activity_open_translate, R.anim.activity_close_scale);\n\n }", "@Override\n public void moveToActivity(ShenFenBean.DataBean dataBean) {\n }", "@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)\n public static void goToIntent(Context ctx, Class<?> clazz) {\n Intent intent = new Intent(ctx, clazz);\n ctx.startActivity(intent);\n ((Activity) ctx).setResult(Activity.RESULT_CANCELED);\n ((Activity) ctx).finishAffinity();\n }", "public void switchActivity(Class<?> destinationActivity, Bundle bundle, int requestCode) {\n Intent intent = new Intent(this, destinationActivity);\n if (bundle != null)\n intent.putExtras(bundle);\n startActivityForResult(intent, requestCode);\n }", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "public void switchActivity(Class<?> destinationActivity, Bundle bundle) {\n Intent intent = new Intent(this, destinationActivity);\n if (bundle != null)\n intent.putExtras(bundle);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }", "private static void redirectActivity(Activity activity, Class aClass) {\n Intent intent = new Intent(activity, aClass);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n activity.startActivity(intent);\n }", "private static Activity moveInDirection(int x, int y) {\n return Activity.newBuilder()\n .addSubActivity(() -> {\n Position pos = Players.getLocal().getPosition();\n while(pos.isPositionWalkable()) {\n pos = pos.translate(x, y);\n }\n pos = pos.translate(-x, -y);\n while(!Movement.setWalkFlagWithConfirm(pos)) {\n pos = pos.translate(-x, -y);\n }\n Time.sleepUntil(() -> !Movement.isDestinationSet(), 1000 * 10);\n })\n .build();\n }", "private void commitIntentToActivityAndFinish(Class to)\r\n {\r\n Intent intent = new Intent(this, to);\r\n startActivity(intent);\r\n finish();\r\n }", "public void gotoActivity(Context context, Class<?> cla, Bundle bundle) {\n Intent intent = new Intent(context, cla);\n intent.putExtras(bundle);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_left, R.anim.push_left_out);\n }", "@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\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}", "@Override\n public void onClick(View v) {\n intent.putExtra(\"locationMailBox\", markerOptions);\n intent.putExtra(\"location\", getIntent().getParcelableArrayListExtra(\"location\"));\n\n //Save timer values\n dt.beforeChange(editorTimers, \"TimeLeft\", \"TimerRunning\", \"EndTime\");\n\n //New activity without transition\n startActivity(intent);\n overridePendingTransition(0, 0);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch(id) {\n case R.id.action_settings: {\n Intent myIntent = new Intent(Activity_Main.this, Activity_Settings.class);\n Activity_Main.this.startActivity(myIntent);\n return true;\n }\n case R.id.action_moveicons: {\n if (TESTING)\n Toast.makeText(this, \"move icons clicked\", Toast.LENGTH_SHORT).show();\n return true;\n }\n }\n\n return super.onOptionsItemSelected(item);\n }", "private void switchView(Class destination, int intentType) {\r\n\t Intent intent = new Intent(this, destination);\r\n intent.setFlags(intentType);\r\n startActivity(intent);\r\n\t}", "@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }", "void ChangeActivity(){\n\n Intent intent = new Intent(this, MainActivity.class);\n\n intent.putExtra(NUMBER, number_of_players);\n\n startActivity(intent);\n finish();\n\n }", "void mo21580A(Intent intent);", "public void switchToSlidingTile() {\n Intent slidingTile = new Intent(this, SlidingTileGameActivity.class);\n startActivity(slidingTile);\n }", "public void nextIntent(){\n \t\n \tIntent y=new Intent();\n \ty.setClass(MainActivity.this, Dashboard.class);\n \t\n \tstartActivity(y);\n \t\n \t\n}", "private void refreshScreen(){\n Intent thisIntent = getIntent();\n finish();\n startActivity(thisIntent);\n }", "public void returnToMoveList(View view) {\n //open MoveListActivity\n final Intent intent = new Intent(DebugActivity.this, MoveListActivity.class);\n intent.putExtra(DebugActivity.EXTRAS_DEVICE_NAME, mDeviceName);\n intent.putExtra(DebugActivity.EXTRAS_DEVICE_ADDRESS, mDeviceAddress);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n StopMediaPlayer();\n Intent intent = new Intent(ResultActivity.this, ArenaActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n transitionTo(intent);\n }", "private void mystartActivity(Class c){\n Intent intent = new Intent(this,c);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "public void onClick(View v) {\n\n\n\n startActivity(myIntent);\n }", "public void iniciarActivity() {\n\n Intent intent = new Intent(ActivityA.this, ActivityB.class);\n startActivity(intent);\n }", "private static Intent getIntent(Context context, Class<?> cls) {\n Intent intent = new Intent(context, cls);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n return intent;\n }", "public Intent putIntentToNext(){\n Intent myTobaccoIntent = new Intent(getApplicationContext(), LoginActivity.class);\n myTobaccoIntent.putExtra(AppSettingUtils.EXTRAS_DEVICE_ADDRESS, deviceAddress);\n myTobaccoIntent.putExtra(AppSettingUtils.EXTRAS_SERVER_IP, ipAddress);\n return myTobaccoIntent;\n }", "public void gotoActivity(Context context, Class<?> cla) {\n\t\tIntent intent = new Intent(context, cla);\n\t\tstartActivity(intent);\n\t\toverridePendingTransition(android.R.anim.slide_in_left, R.anim.slide_out_right);\n\t}", "public void drawerClickAndGo(int position)\n {\n Context a= MainActivity.this;\n Class b = Agenda.class ;//just init so there is no error\n\n\n if (position==0)\n //current position\n return;\n\n if (position==1)\n b = Agenda.class;\n\n\n Intent intent= new Intent(a,b);\n startActivity(intent);\n }", "public Intent intentForPosition(int position) {\r\n if (null == mList) {\r\n return null;\r\n } // End of intentForPosition\r\n\r\n DisplayResolveInfo dri = mList.get(position);\r\n \r\n Intent intent = new Intent(dri.origIntent != null\r\n ? dri.origIntent : mIntent);\r\n intent.addFlags(Intent.FLAG_ACTIVITY_FORWARD_RESULT\r\n |Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP);\r\n ActivityInfo ai = dri.ri.activityInfo;\r\n intent.setComponent(new ComponentName(\r\n ai.applicationInfo.packageName, ai.name));\r\n return intent;\r\n }", "public void navigateWithIntent(Intent intent) {\n mIntent = intent;\n if (mIntent != null) {\n Bundle args = mIntent.getExtras();\n if (args != null) {\n int menuId = args.getInt(NAVIGATE_ID);\n navigate(menuId);\n }\n }\n }", "@Override\n public void onClick(View view, int position) {\n Intent abrirPregunta = new Intent(this, ActivityWikipetsInfo.class);\n abrirPregunta.putExtra(\"pregunta\", position);\n startActivity(abrirPregunta);\n }", "protected void start(Context fromScreen,Class<?> toScreen, Boolean kill){\n Intent intent = new Intent(fromScreen, toScreen);\n startActivity(intent);\n if(kill){\n finish();\n }\n }", "public void toGameEndActivity(int x){\n /* record socre*/\n System.out.println(\"yes\"+x);\n Intent intent=new Intent();\n intent.putExtra(\"score\",String.valueOf(x));\n /* move from this activity to new activity*/\n intent.setClass(MainActivity.this,EndActivity.class);\n MainActivity.this.startActivity(intent);\n MainActivity.this.finish();\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setClass(MainPage.this, AddPage.class);\n\t\t\tstartActivityForResult(intent,0);\n\t\t\toverridePendingTransition(R.anim.push_up_in, R.anim.push_up_out);\n\t\t}", "public void gotoAMazeActivity(View view) {\n\t\tIntent intent = new Intent(this, AMazeActivity.class);\n\t\tstartActivity(intent);\n\t\tLog.v(\"MainActivity\", \"Created the intent to move to AMazeActivity\");\n\t}", "protected Intent getStravaActivityIntent()\n {\n return new Intent(this, MainActivity.class);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n Intent intent = new Intent(MainActivity.this, ChampionProfileActivity.class);\n\n //Using bundle to pass variable to the next activity\n Bundle bundle = new Bundle();\n bundle.putInt(\"position\", position);\n\n intent.putExtras(bundle);\n\n startActivity(intent);\n }", "protected abstract Intent getIntent();", "private void goToNextActivity() {\n startActivity(new Intent(this,NextActivity.class));\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 }", "private void onMoveClicked() {\r\n\t\tWindow.MoveInfo moveInfo = Window.showMoveDialog();\r\n\t\t\r\n\t\tif (moveInfo != null) {\r\n\t\t\tif(!chart.moveStudentToEmptySeat(moveInfo.name, moveInfo.emptySeatRow, moveInfo.emptySeatCol)) {\r\n\t\t\t\tWindow.msg(\"Unable to move student. Either there is no student with this name or the other seat is not empty.\");\r\n\t\t\t}\r\n\t\t\tupdate();\r\n\t\t}\r\n\t}", "public void changeWindowTo(Class activity){\n Intent guestActivity = new Intent(this,activity);\n startActivity(guestActivity);\n }", "protected void empezar(String op){\n Intent llamada = new Intent(this, MainActivity.class);\n llamada.putExtra(TYPE_GAME,op);\n startActivity(llamada);\n }", "public void gotoActivity(Context context, Class<?> cla, Bundle bundle) {\n\t\tIntent intent = new Intent(context, cla);\n\t\tintent.putExtras(bundle);\n\t\tstartActivity(intent);\n\t\toverridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n\t}", "@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.example.thirdapp.LocationActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"4\");\n\t\t\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, CardapioActivity.class);\n startActivity(intent);\n }", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }", "public static void navigate(AppCompatActivity activity, View transitionImage, Friend obj, String snippet, String uid, String displayName) {\r\n Intent intent = new Intent(activity, ActivityChatDetails.class);\r\n intent.putExtra(KEY_FRIEND, obj);\r\n intent.putExtra(KEY_SNIPPET, snippet);\r\n ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(activity, transitionImage, KEY_FRIEND);\r\n ActivityCompat.startActivity(activity, intent, options.toBundle());\r\n }", "@Override\n public void onClick(View view) {\n Intent sleepIntent = new Intent(MainActivity.this, Sleep_Playlist.class);\n // Start the new activity\n startActivity(sleepIntent);\n }", "public Intent intent( String inAction ) {\r\n\t\treturn new Intent( kMessagePlayer ).putExtra( \"action\" , inAction );\r\n\t}", "@Override\r\n public void onClick(View view) {\n Intent intent=new Intent(MainActivity.this, CameraActivity.class);\r\n startActivity(intent);\r\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(ActivityIndex.this, ActivityTrialMessage.class);\n intent.putExtra(\"fromIndex\", true);\n startActivity(intent);\n }", "public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\n }", "@Override\n public void onClick(View view) {\n Intent i = new Intent(MainActivity.this, EditActivity.class);\n i.putExtra(\"currentShop\", currentShop);\n i.putExtra(\"position\", shopList.indexOf(currentShop));\n startActivityForResult(i, 2);\n }", "@Override\n public void onClick(View view) {\n Intent workoutIntent = new Intent(MainActivity.this, Workout_Playlist.class);\n // Start the new activity\n startActivity(workoutIntent);\n }", "@Override\n public void run() {\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLatLng srclatlng = getIntent().getParcelableExtra(\"currentlatlng\");\n\t\t\t\tLatLng destlatlng = getIntent().getParcelableExtra(\"latlng\");\n\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(\"http://maps.google.com/maps?saddr=\" + srclatlng.latitude + \",\"\n\t\t\t\t\t\t+ srclatlng.longitude + \"&daddr=\" + destlatlng.latitude + \",\" + destlatlng.longitude));\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onClick(View v) {\n startActivity(new Intent(\n HomeScreen.this, AddPoi.class));\n\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 }", "protected void changeActivity() {\n\t\tIntent intent = new Intent();\r\n\t\tintent.setClass(this,MainActivity.class);\r\n\t\t//intent.putExtra(\"padapter\", MainActivity.selectedLevel);\r\n\t\t\r\n\t\tstartActivity(intent);\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnext.startAnimation(animAlpha);\r\n\t\t\t\tIntent i = new Intent(Train.this, Truck.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\toverridePendingTransition(R.anim.right_in,R.anim.left_out);\r\n\t\t\t\tfinish();\r\n\t\t\t}", "public synchronized void startActivity(final Activity activity) {\r\n\t// FIXME: temp hack for Slide curtains\r\n\tif (activity.getName().equals(\"Curtains\")) {\r\n\t\ttry {\r\n\t\t\tString response = Request.Post(\"https://\" + slideHost + \"/rpc/Slide.SetPos\").bodyString(\"{\\\"pos\\\": 1}\", ContentType.APPLICATION_JSON).execute().returnContent().asString();\r\n\t\t\tSystem.out.println(\"Slide response: \" + response);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n if (this.isActive(activity)) {\r\n throw new IllegalStateException(\"Activity already active\");\r\n }\r\n if (this.activeActivity != null) {\r\n // Another activity is currently active, so stop that one first.\r\n // TODO: Don't turn off / turn on overlapping devices, but only change channels where needed.\r\n this.stopActivity(this.activeActivity);\r\n }\r\n final PyhActivity oldValue = this.createPyhActivity(activity);\r\n this.activeActivity = activity;\r\n if (activity.getModules().getPhilipsHue() != null) {\r\n this.taskExecutor.execute(() -> this.activateHueModule(activity.getModules().getPhilipsHue()));\r\n }\r\n if (activity.getModules().getInfraRed() != null) {\r\n this.taskExecutor.execute(() -> this.activateIrModule(activity.getModules().getInfraRed()));\r\n }\r\n final PyhActivity newValue = this.createPyhActivity(activity);\r\n this.eventPublisher.publishEvent(new ActivityChangedEvent(oldValue, newValue));\r\n }", "private void gotoOtherActivity() {\n finish();\n }", "@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, ATM_Activity.class);\n myIntent.putExtra(\"Latitude\", latitude);\n myIntent.putExtra(\"Longitude\", longitude);\n startActivity(myIntent);\n }", "@Override\n public void onClick(View view) {\n Intent drakeIntent = new Intent(MainActivity.this, DrakeActivity.class);\n startActivity(drakeIntent);\n }", "public void toBeam(){\n Intent intent = new Intent(this, Beam.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 }", "public void move(String direction) {\n \n }", "@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.SamePlacesCommunity.Main.FeedServiceActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}", "public void sendToTrivia() {\n Intent intent = new Intent(getApplicationContext(), TriviaActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }", "@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(MainActivity.this, WC_Activity.class);\n myIntent.putExtra(\"Latitude\", latitude);\n myIntent.putExtra(\"Longitude\", longitude);\n startActivity(myIntent);\n }", "private void switchToActivity(Class c) {\n Intent tmp = new Intent(this, c);\n tempSaveToFile();\n if (c == PersonalScoreBoardActivity.class || c == ScoreBoardActivity.class) {\n tmp.putExtra(\"highToLow\", false);\n tmp.putExtra(\"currentGame\", TWENTYFORTYEIGHT);\n } else if(c == LoadActivity.class) {\n tmp.putExtra(\"currentGame\",TWENTYFORTYEIGHT);\n }\n startActivity(tmp);\n }", "private void startChildActivity(Intent intent) {\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tString id = intent.getComponent().getClassName();\n\t\tWindow window = getLocalActivityManager().startActivity(id, intent);\n\t\tsetContentView(window.getDecorView());\n\t}", "@Override\n public void onClick(View view) {\n Intent wannaGuess = new Intent(mContext, WannaGuessActivity.class);\n mContext.startActivity(wannaGuess);\n\n// Intent detailIntent = Game.starter(mContext, mCurrentSport.getTitle(),\n// mCurrentSport.getImageResource());\n\n\n //Start the detail activity\n// mContext.startActivity(detailIntent);\n\n //anoter ver\n\n // @Override\n// protected void onCreate(Bundle savedInstanceState) {\n// super.onCreate(savedInstanceState);\n// setContentView(R.layout.activity_main);\n//\n// //Find the view that shows the catch me category\n//// TextView catchMe = (TextView) findViewById(R.id.catch_me);\n//// catchMe.setOnClickListener(new View.OnClickListener() {\n//// @Override\n//// public void onClick(View v) {\n//// Intent catchMeIntent = new Intent(MainActivity.this, CatchMe.class);\n//// startActivity(catchMeIntent);\n//// }\n//// });\n//\n// }\n }", "public void mo1401a(Intent intent) {\n }", "private void openMainActivity(int pos) {\n Intent i = new Intent(Launcher.this, MainActivity.class);\n i.putExtra(\"division\", pos);\n startActivity(i);\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n NavUtils.navigateUpFromSameTask(EditActivity.this);\n }", "public void onClickBack(View view){\n cam = mMap.getCameraPosition();//saves camara position\r\n Intent intent = new Intent(this,MainWindow.class);//needed to send the user to another screen\r\n startActivity(intent);\r\n }" ]
[ "0.73907644", "0.70009375", "0.6932872", "0.6835294", "0.6684677", "0.66437477", "0.6638063", "0.66059566", "0.65932816", "0.6570239", "0.6474376", "0.64682364", "0.64664716", "0.64555275", "0.64298296", "0.6415103", "0.64018226", "0.63767064", "0.63485044", "0.62605757", "0.6253115", "0.62478626", "0.6231273", "0.61709285", "0.6153233", "0.61454433", "0.61214316", "0.61159116", "0.611519", "0.61015797", "0.60775876", "0.6076982", "0.6075635", "0.6074777", "0.60703695", "0.60685414", "0.6068054", "0.60430366", "0.6041585", "0.601813", "0.6016704", "0.5990449", "0.5983686", "0.5959933", "0.5955627", "0.59398514", "0.5939147", "0.59383917", "0.59260446", "0.5925604", "0.58955175", "0.58875704", "0.58711874", "0.58657265", "0.58606976", "0.5859954", "0.5859825", "0.58409834", "0.58390015", "0.58321184", "0.5811061", "0.57930386", "0.57923967", "0.57871574", "0.57845163", "0.5783838", "0.5781118", "0.57798", "0.57739", "0.5762461", "0.5760403", "0.575685", "0.57457215", "0.5745621", "0.57415634", "0.5729582", "0.5719999", "0.5716997", "0.5707855", "0.56979537", "0.5697527", "0.5690728", "0.568817", "0.5684303", "0.56760746", "0.5673322", "0.5670228", "0.56687486", "0.56676775", "0.5658639", "0.5657391", "0.5651031", "0.5647168", "0.56463397", "0.56408644", "0.5628284", "0.56239754", "0.56223863", "0.56192917", "0.56184226" ]
0.7355048
1
Method for move activity and store data to destination activity
public void moveActivity(Class<?> kelas, Bundle bundle){ Intent i = new Intent(context,kelas); i.putExtras(bundle); context.startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void moveToActivity(ShenFenBean.DataBean dataBean) {\n }", "public void transferActivity() {\n Intent intent = new Intent(this, AddInfoActivity.class);\n this.startActivity(intent);\n }", "public static void moveNextActivity(Activity source, Class<?> destinationClass, boolean removeSource) {\n Intent intent = new Intent(source, destinationClass);\n\n if (removeSource) {\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n }\n\n source.startActivity(intent);\n\n if (removeSource) {\n source.finish();\n }\n\n source.overridePendingTransition(R.anim.anim_in, R.anim.anim_out);\n }", "public void switchActivity(Class<?> destinationActivity) {\n startActivity(new Intent(this, destinationActivity));\n }", "public void moveActivityToSunting() {\n Intent intent = new Intent(MainActivity.this, SuntingProfilActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "Activity getMoveElementActivity();", "public void switchActivity(Class<?> destinationActivity, int requestCode) {\n Intent intent = new Intent(this, destinationActivity);\n startActivityForResult(intent, requestCode);\n }", "public void moveActivity(Class<?> kelas){\n context.startActivity(new Intent(context,kelas));\n }", "@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 onArriveDestination() {\n\n }", "public void switchActivity(Class<?> destinationActivity, Bundle bundle) {\n Intent intent = new Intent(this, destinationActivity);\n if (bundle != null)\n intent.putExtras(bundle);\n startActivity(intent);\n }", "void saveItemMove(int fromPosition, int toPosition) {\n int fromItemPos = mItems.get(toPosition).getPosition();\n int toItemPos;\n\n if (fromPosition < toPosition) {\n // moved down\n toItemPos = mItems.get(toPosition - 1).getPosition();\n } else {\n // moved up\n toItemPos = mItems.get(toPosition + 1).getPosition();\n }\n\n mDisposable.add(mViewModel.movePositions(fromItemPos, toItemPos)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe());\n }", "@Override\n\tpublic Activity updateActivity(Activity activity) {\n\t\treturn activity;\n\t\t\n\t}", "private void setToOtherActivity(){\n\n util.setArrayListToOtherActivity(intent, solicitudEnviadaDAO.getSolEnviadaDTO(), Constantes.PARCEL_LISTA_SOL_ENVIADA);\n util.setArrayListToOtherActivity(intent, solicitudRecibidaDAO.getSolRecibidaDTO(), Constantes.PARCEL_LISTA_SOL_RECIBIDA);\n util.setArrayListToOtherActivity(intent, solicitudContestadaDAO.getSolContestadaDTO(), Constantes.PARCEL_LISTA_SOL_CONTESTADA);\n util.setArrayListToOtherActivity(intent, preguntaEnviadaDAO.getListaPreguntaEnviadaDTO(), Constantes.PARCEL_LISTA_PREG_ENVIADA);\n util.setArrayListToOtherActivity(intent, preguntaRecibidaDAO.getListaPreguntaRecibidaDTO(), Constantes.PARCEL_LISTA_PREG_RECIBIDA);\n util.setArrayListToOtherActivity(intent, preguntaContestadaDAO.getListaPreguntasContestadasDTO(), Constantes.PARCEL_LISTA_PREG_CONTESTADA);\n util.setArrayListToOtherActivity(intent, puntuacionRecibidaDAO.getListaPuntuacionRecibidasDTO(), Constantes.PARCEL_LISTA_PUNT_RECIBIDA);\n\n }", "public void switchActivity(Class<?> destinationActivity, Bundle bundle, int requestCode) {\n Intent intent = new Intent(this, destinationActivity);\n if (bundle != null)\n intent.putExtras(bundle);\n startActivityForResult(intent, requestCode);\n }", "private void startActivity(Class destination)\n {\n Intent intent = new Intent(MainActivity.this, destination);\n startActivity(intent);\n }", "public void insertActivityDetails(Activity ac){\n //Get the Data Repository in write mode\n SQLiteDatabase db = this.getWritableDatabase();\n //Create a new map of values, where column names are the keys\n ContentValues cValues = new ContentValues();\n cValues.put(KEY_ACT_NO, ac.getAct_no());\n cValues.put(KEY_USERNAME, ac.getUsername());\n cValues.put(KEY_ACT_NAME, ac.getAct_name());\n cValues.put(KEY_TIME_SET, ac.getTime_set());\n cValues.put(KEY_ACT_DESC, ac.getAct_desc());\n cValues.put(KEY_ACT_STATE, ac.isAct_complete());\n // Insert the new row, returning the primary key value of the new row\n long newRowId = db.insert(TABLE_Activitys,null, cValues);\n db.close();\n }", "public void moveToEvent(ControllerContext cc, Planet dest) {\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}", "private void commitIntentToActivityAndFinish(Class to)\r\n {\r\n Intent intent = new Intent(this, to);\r\n startActivity(intent);\r\n finish();\r\n }", "public void moveToDestination(Move move) {\r\n\t\tx = move.getToX();\r\n\t\ty = move.getToY();\r\n\r\n\t}", "@Override\n\tpublic void onArriveDestination() {\n\n\t}", "private void leave(ExecutionEntity execution, ProcessDefinitionImpl processDefinition, ActivityImpl desactiviti) {\n\t\tActivityImpl newactivity= cloneBeforeSign(desactiviti,processDefinition);\n\t\tif(newactivity != null){\n\t\t\tlog.info(\"clone activiti:{}\",newactivity.toString());\n\t\t\texecution.setActivity(newactivity);\n\t\t\t//this taskentity refter to destination activity\n\t\t\texecution.setVariable(ActivityManagerUtil.getDestinationActivityIdName(newactivity.getId()), desactiviti.getId());\n\t\t\t//this taskentity refter to current activity\n\t\t\texecution.setVariable(ActivityManagerUtil.getCurrentActivityIdName(newactivity.getId()), newactivity.getId());\n\t\t\t//this para store activiti`s assigen\n\t\t\texecution.setVariable(ActivityManagerUtil.getCurrentActivityAssigneeName(newactivity.getId()), this.assignee);\n\t\t\texecution.performOperation(PvmAtomicOperation.ACTIVITY_START);\n\t\t}\n\t}", "private static void redirectActivity(Activity activity, Class aClass) {\n Intent intent = new Intent(activity, aClass);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n activity.startActivity(intent);\n }", "private void saveMove(){\n\t\tpreviousTile=monster.currentTile;\r\n\t}", "protected void moveToDestination(){\n\t\tqueue.clear();\n\t\twhile (destination[0] < 0){\n\t\t\tqueue.add(\"MOVE S\");\n\t\t\tdestination[0] += 1;\n\t\t}\n\t\twhile (destination[0] > 0){\n\t\t\tqueue.add(\"MOVE N\");\n\t\t\tdestination[0] -= 1;\n\t\t}\n\t\twhile (destination[1] < 0){\n\t\t\tqueue.add(\"MOVE E\");\n\t\t\tdestination[1] += 1;\n\t\t}\n\t\twhile (destination[1] > 0){\n\t\t\tqueue.add(\"MOVE W\");\n\t\t\tdestination[1] -= 1;\n\t\t}\n\t\tdestination = null;\n\t}", "public void push(Object activity);", "private static Activity moveInDirection(int x, int y) {\n return Activity.newBuilder()\n .addSubActivity(() -> {\n Position pos = Players.getLocal().getPosition();\n while(pos.isPositionWalkable()) {\n pos = pos.translate(x, y);\n }\n pos = pos.translate(-x, -y);\n while(!Movement.setWalkFlagWithConfirm(pos)) {\n pos = pos.translate(-x, -y);\n }\n Time.sleepUntil(() -> !Movement.isDestinationSet(), 1000 * 10);\n })\n .build();\n }", "public void updateActivity(ExoSocialActivity existingActivity) throws ActivityStorageException;", "@Override\n public void onReceive(Context context, Intent intent) {\n String taskName = intent.getStringExtra(\"taskName\");\n int order = intent.getIntExtra(\"order\",-1);\n Toast.makeText(work.this,taskName +\" \" ,Toast.LENGTH_SHORT).show();\n\n if(taskName != null)\n {\n Cursor data = myDB.getListContents();\n\n if(data.getCount() > 0)\n {\n if(order == 2)\n myDB.deleteTask(taskName);\n else if(order == 0)\n {\n myDB.updateTask(taskName,taskName,\"\",1,\"WORK\",\"ordinary\",\"Done\");\n }\n else\n {\n Intent transferIntent = new Intent(getBaseContext(), AddActivity.class );\n // whichActivity = \"WEEKEND\";\n\n //we need to transfer the task we want to edit now and change add Bt to save changes\n // transferIntent.putExtra(\"taskName\",taskName);\n\n while (data.moveToNext()) {\n if (data.getString(3).equals(whichActivity) && data.getString(1).equals(taskName)) {\n transferIntent.putExtra(\"taskName\",taskName);\n transferIntent.putExtra(\"description\",data.getString(2));\n transferIntent.putExtra(\"date\",data.getString(4));\n }\n }\n // transferIntent.putExtra(\"taskName\",taskName);\n startActivity(transferIntent);\n }\n\n\n loadData();\n }\n }\n }", "void intentPass(Activity activity, Class classname) {\n Intent i = new Intent(activity, classname);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n enterAnimation();\n }", "private void moveToDestination() throws IOException {\n\t\tfloat x = dataInputStream.readFloat();\n\t\tfloat z = dataInputStream.readFloat();\n\t\t\n\t\tLCD.drawString(\"x: \"+x, 0, onLCDPositionY++);\n\t\tLCD.refresh();\n\t\tLCD.drawString(\"z: \"+z, 0, onLCDPositionY++);\n\t\tLCD.refresh();\n\t\t\n\t\tpose = poseProvider.getPose();\n\t\tPoint destination = new Point(x,z);\n\t\tfloat angle = pose.angleTo(destination);\n\t\t\n\t\t\n\t\tLCD.drawInt((int) pose.getHeading(), 0, onLCDPositionY++);\n\t\t\n\t\t\n\t\tclassPilot.rotate(angle - pose.getHeading());\n\t\tclassPilot.travel(pose.distanceTo(destination));\n\t}", "public void moveActivityToLogin() {\n Intent intent = new Intent(MainActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "private static void moveToAttack(MapLocation destination) throws GameActionException {\n BulletInfo[] bullets = rc.senseNearbyBullets();\n RobotInfo[] enemies = rc.senseNearbyRobots(-1, them);\n\n if (enemies.length != 0) {\n int index = priority(enemies);\n if (index != -1) {\n target = enemies[priority(enemies)];\n attack(target);\n }\n }\n else {\n move(bullets, enemies, destination);\n }\n }", "public void pushActivity(Activity activity) {\n synchronized (activityList){\n if (!activityList.contains(activity)) {\n activityList.add(activity);\n }\n }\n }", "public Intent putIntentToNext(){\n Intent myTobaccoIntent = new Intent(getApplicationContext(), LoginActivity.class);\n myTobaccoIntent.putExtra(AppSettingUtils.EXTRAS_DEVICE_ADDRESS, deviceAddress);\n myTobaccoIntent.putExtra(AppSettingUtils.EXTRAS_SERVER_IP, ipAddress);\n return myTobaccoIntent;\n }", "private void sendMoveRequestToAgent(AID agentAID, Location destinationContainer){\n MobileAgentDescription mobileAgentDescription = new MobileAgentDescription();\n mobileAgentDescription.setName(agentAID);\n mobileAgentDescription.setDestination(destinationContainer);\n MoveAction moveAction = new MoveAction();\n moveAction.setMobileAgentDescription(mobileAgentDescription);\n sendRequest(new Action(agentAID, moveAction));\n }", "public void toMoving() {\n notifyStartMoving(this.getCurrentTurn().getCurrentPlayer().getNickname());\n if (getCurrentTurn().getCurrentPlayer().isHasSpecialMove()) {\n notifyAskForEffect(currentTurn.getCurrentPlayer().getNickname());\n } else {\n notifyChooseWorker(this.getCurrentTurn().getCurrentPlayer().getNickname(), board);\n }\n }", "Destination save(Destination destination);", "public void updateDestination(){\r\n\t\tdestination.update_pc_arrivalFlows(flows);\r\n\t}", "@Override\n public void addNewActivity(Activity activity) throws SQLException {\n\n String sql = \"INSERT INTO ACTIVITY (routeId, userId, point, duration, distance) VALUES (?, ?, ?, ?, ?)\";\n\n try (Connection connection = dataSource.getConnection()) {\n statement = connection.prepareStatement(sql);\n if (activity.getRouteId() != -1 ) {\n statement.setInt(1, activity.getRouteId());\n }\n else {\n statement.setNull(1, Types.INTEGER);\n }\n statement.setInt(2, activity.getUserId());\n statement.setInt(3, activity.getPoint());\n statement.setLong(4, activity.getDuration());\n statement.setFloat(5, activity.getDistance());\n statement.executeUpdate();\n } catch (SQLException exception) {\n throw exception;\n } finally {\n close(statement, null);\n }\n insertSegments(activity);\n }", "private Intent setIntentDataForActivities(int activity)\n {\n\t\tIntent i=new Intent();\n\t\tfor(int j=0;j<Name.length;j++)\n\t\t{\n\t\t Log.d(\"Data sent from DashBoard\", \"depName= \"+Designation[j]+ \" \"+\"realNumber= \"+extension[j]+\" \"+\"username= \"+Name[j]+\" \");\n\t\t}\n\t\tif(activity==0)\n\t\t{\n\t\t i = new Intent(this, EXT_Board.class);\n\t\t i.putExtra(\"Name\", Name);\n\t i.putExtra(\"Designation\", Designation);\n\t i.putExtra(\"Extension\",extension);\n\t \n\t\t}\n\t\telse if(activity==1)\n\t\t{\n\t\t\t i = new Intent(this, Dialer_main.class);\n\t\t\t i.putExtra(\"Name\", Name);\n\t\t i.putExtra(\"Designation\", Designation);\n\t\t i.putExtra(\"Extension\",extension);\n\t\t \n\t\t}\n\t\telse if(activity==2)\n\t\t{\n\t\t\t i = new Intent(this, Settings_Password.class);\n\t\t\t i.putExtra(\"Name\", Name);\n\t\t i.putExtra(\"Designation\", Designation);\n\t\t i.putExtra(\"Extension\",extension);\n\t\t \n\t\t}\n\t\telse if(activity==3)\n\t\t{\n\t\t\t i = new Intent(this, Settings_Call_Routingg.class);\n\t\t\t i.putExtra(\"Name\", Name);\n\t\t i.putExtra(\"Designation\", Designation);\n\t\t i.putExtra(\"Extension\",extension);\n\t\t\n\t\t}\n\t\treturn i;\n }", "public void returnToMoveList(View view) {\n //open MoveListActivity\n final Intent intent = new Intent(DebugActivity.this, MoveListActivity.class);\n intent.putExtra(DebugActivity.EXTRAS_DEVICE_NAME, mDeviceName);\n intent.putExtra(DebugActivity.EXTRAS_DEVICE_ADDRESS, mDeviceAddress);\n startActivity(intent);\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(northEastLatitude);\n\t\tdest.writeString(northEastLongitude);\n\t\tdest.writeString(southWestLatitude);\n\t\tdest.writeString(southWestLongitude);\n\t\tdest.writeString(arrivalTimeText);\n\t\tdest.writeString(arrivalTimeZone);\n\t\tdest.writeString(arrivalTimeValue);\n\t\tdest.writeString(departureTimeText);\n\t\tdest.writeString(departureTimeZone);\n\t\tdest.writeString(departureTimeValue);\n\t\tdest.writeString(distanceText);\n\t\tdest.writeString(distanceValue);\n\t\tdest.writeString(durationText);\n\t\tdest.writeString(durationValue);\n\t\tdest.writeString(arrivalAddress);\n\t\tdest.writeString(arrivalLatidute);\n\t\tdest.writeString(arrivalLongitude);\n\t\tdest.writeParcelableArray(stepsInfo.toArray(new RouteVO[stepsInfo.size()]), 0);\n\t}", "private void viewMove(Move move) {\n Intent intent = new Intent(this, MoveInfoActivity.class);\n intent.putExtra(getString(R.string.moveKey), move);\n startActivity(intent);\n }", "public void m10301a(ActivityDTO activityDTO) {\n if (activityDTO != null) {\n this.f8976d = activityDTO;\n }\n this.f8974b.getAsyncTaskQueue().m13740a(new C19901(this), new String[0]);\n }", "void onIdentityMove(int fromPosition, int toPosition);", "public void moveToArchive(FlowNode archiveFlowNode, String instanceId) {\n\t\tinstanceOf.clear();\n\t\taddAsInstanceOf(archiveFlowNode, instanceId);\n\t}", "@Override\n\tpublic void setActivity(Activity pAcitivity) {\n\n\t}", "public void setActivity(Activity addnew) {\n\tthis.addActivity(addnew);\n\t\t\n\t}", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeString(this.title);\n\t\tdest.writeString(this.time);\n\t\tdest.writeString(this.subTitle);\n\t\tdest.writeString(this.type);\n\t\tdest.writeString(this.id);\n\t\tdest.writeString(this.operateId);\n\t\tdest.writeString(this.activityId);\n\t\tdest.writeString(this.flowInstanceId);\n\t\tdest.writeString(this.flowDetailId);\n\t\tdest.writeString(this.workItemId);\n\t\tdest.writeString(this.proxy);\n\t\tdest.writeString(this.proxyActorName);\n\t}", "public int moveTranscation(long rowId, long srcAccountId, long dstAccountId){\n\t\tLog.i(TAG, \"Moving transaction ID \" + rowId + \" splits from \" + srcAccountId + \" to account \" + dstAccountId);\n\t\tString srcAccountUID = getAccountUID(srcAccountId);\n String dstAccountUID = getAccountUID(dstAccountId);\n\n\t\tList<Split> splits = mSplitsDbAdapter.getSplitsForTransactionInAccount(getUID(rowId), srcAccountUID);\n for (Split split : splits) {\n split.setAccountUID(dstAccountUID);\n mSplitsDbAdapter.addSplit(split);\n }\n return splits.size();\n\t}", "public static void sendToNextActivity(Context context, Class aClass) {\n\n Intent intent = new Intent(context, aClass);\n context.startActivity(intent);\n ((Activity) context).overridePendingTransition(R.anim.activity_open_translate, R.anim.activity_close_scale);\n\n }", "public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\n }", "public static Intent createIntent(Activity activity, final MovieData movieData) {\n Intent i = new Intent(activity, DetailActivity.class);\n i.putExtra(DetailActivity.MOVIE_DATA_KEY, movieData);\n return i;\n }", "public void step(){\n if (this.jobs.contains(this.currentFloor)){ //we arrived at our destination\n this.openDoor();\n this.leavePeople();\n this.deleteJob(this.currentFloor);\n } else {\n this.closeDoor();\n this.changeState();\n this.move();\n }\n }", "@Override\n public void onClick(View v) {\n intent.putExtra(\"locationMailBox\", markerOptions);\n intent.putExtra(\"location\", getIntent().getParcelableArrayListExtra(\"location\"));\n\n //Save timer values\n dt.beforeChange(editorTimers, \"TimeLeft\", \"TimerRunning\", \"EndTime\");\n\n //New activity without transition\n startActivity(intent);\n overridePendingTransition(0, 0);\n }", "private void getIntentData() {\n if (getIntent() != null) {\n destinationLat = getIntent().getDoubleExtra(\"destinationLat\", 48.893478);\n destinationLng = getIntent().getDoubleExtra(\"destinationLng\", 2.334595);\n }\n }", "@Override\n\t\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeInt(history.size());\n\n\t\t// Save each chat message\n\t\tfor (ChatMessage cm : history) {\n\t\t\tdest.writeInt(cm.getIdx());\n\t\t\tdest.writeString(cm.getUser().toString());\n\t\t\tdest.writeString(cm.getMessage().toString());\n\t\t\tdest.writeLong(cm.getTimestamp());\n\t\t}\n\t}", "public void takeTransition(TransitionImpl transition) {\n if (transition.id!=null || activity.activityType.saveTransitionsTaken()) {\n addTransitionTaken(transition.id);\n }\n ActivityInstanceImpl toActivityInstance = null;\n ActivityImpl to = transition.to;\n if (to!=null) {\n end();\n if (log.isDebugEnabled()) {\n log.debug(\"Taking transition to \"+to);\n }\n toActivityInstance = parent.createActivityInstance(to);\n } else {\n log.debug(\"Dangling transition. Propagating to parent.\");\n end();\n propagateToParent();\n }\n workflow.workflowEngine.notifyTransitionTaken(this, transition, toActivityInstance);\n }", "private void moveToMainActivity(){\r\n Intent goToMainActivity = new Intent(workoutActivity.this, BodyGroups.class);\r\n startActivity(goToMainActivity);;\r\n }", "private void toGoogleDriveActivity(){\n Intent toExportGoogle = new Intent(this, GoogleDriveActivity.class);\n toExportGoogle.putExtra(intentMessage, message);\n startActivity(toExportGoogle);\n }", "void onItemMove(int fromPosition, int toPosition) {\n Collections.swap(mItems, fromPosition, toPosition);\n notifyItemMoved(fromPosition, toPosition);\n }", "private void nextActivity(String id)\n\t{\n\t\tIntent intent=new Intent(kanto_Map, PropertyList.class);\n\t\tintent.putExtra(\"Id\", id);\n\t\tkanto_Map.startActivity(intent);\n\t}", "public synchronized void startActivity(final Activity activity) {\r\n\t// FIXME: temp hack for Slide curtains\r\n\tif (activity.getName().equals(\"Curtains\")) {\r\n\t\ttry {\r\n\t\t\tString response = Request.Post(\"https://\" + slideHost + \"/rpc/Slide.SetPos\").bodyString(\"{\\\"pos\\\": 1}\", ContentType.APPLICATION_JSON).execute().returnContent().asString();\r\n\t\t\tSystem.out.println(\"Slide response: \" + response);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n if (this.isActive(activity)) {\r\n throw new IllegalStateException(\"Activity already active\");\r\n }\r\n if (this.activeActivity != null) {\r\n // Another activity is currently active, so stop that one first.\r\n // TODO: Don't turn off / turn on overlapping devices, but only change channels where needed.\r\n this.stopActivity(this.activeActivity);\r\n }\r\n final PyhActivity oldValue = this.createPyhActivity(activity);\r\n this.activeActivity = activity;\r\n if (activity.getModules().getPhilipsHue() != null) {\r\n this.taskExecutor.execute(() -> this.activateHueModule(activity.getModules().getPhilipsHue()));\r\n }\r\n if (activity.getModules().getInfraRed() != null) {\r\n this.taskExecutor.execute(() -> this.activateIrModule(activity.getModules().getInfraRed()));\r\n }\r\n final PyhActivity newValue = this.createPyhActivity(activity);\r\n this.eventPublisher.publishEvent(new ActivityChangedEvent(oldValue, newValue));\r\n }", "private void switchToActivity(Class c) {\n Intent tmp = new Intent(this, c);\n tempSaveToFile();\n if (c == PersonalScoreBoardActivity.class || c == ScoreBoardActivity.class) {\n tmp.putExtra(\"highToLow\", false);\n tmp.putExtra(\"currentGame\", TWENTYFORTYEIGHT);\n } else if(c == LoadActivity.class) {\n tmp.putExtra(\"currentGame\",TWENTYFORTYEIGHT);\n }\n startActivity(tmp);\n }", "Activity getSynchronizeForwardActivity();", "Activity getTransformForwardActivity();", "private void toInputActivity() {\n Intent intent = new Intent(this, InputActivity.class);\n this.startActivity(intent);\n }", "private ActivityRecord setActivityRecord() {\r\n ActivityRecord actv = new ActivityRecord();\r\n actv.setActivity(sportActivity);\r\n actv.setDistance(5);\r\n actv.setTime(45L);\r\n actv.setBurnedCalories(240);\r\n actv.setUser(user);\r\n return actv;\r\n }", "public void sendDataToActivity(Song chosenSong) {\r\n Intent intent = new Intent(this, PlaySongActivity.class);\r\n //.class is the machine-readable form of a java class.\r\n\r\n //2. Store the song information into the Intent object to be sent over to the\r\n //destination screen\r\n intent.putExtra(\"id\", chosenSong.getSong_ID());\r\n intent.putExtra(\"title\", chosenSong.getSong_Title());\r\n intent.putExtra(\"artist\", chosenSong.getSong_Artist());\r\n intent.putExtra(\"fileLink\", chosenSong.getFileLink());\r\n intent.putExtra(\"length\", chosenSong.getSong_Length());\r\n intent.putExtra(\"coverArt\", chosenSong.getCoverArt());\r\n intent.putExtra(\"languageTitle\", genre);\r\n\r\n //3. Launch the destination screen/activity\r\n startActivity(intent);\r\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\n\t}", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\n\t}", "public void createActivity(Activity activity) {\n\t\t\n\t}", "public void writeToParcel(android.os.Parcel param0, int param1) {\n if (wrapper) {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.location.ActivityConversionRequest) this.getHInstance()).writeToParcel(param0, param1)\");\n ((com.huawei.hms.location.ActivityConversionRequest) this.getHInstance()).writeToParcel(param0, param1);\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.location.ActivityTransitionRequest) this.getGInstance()).writeToParcel(param0, param1)\");\n ((com.google.android.gms.location.ActivityTransitionRequest) this.getGInstance()).writeToParcel(param0, param1);\n }\n } else {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((HImpl) ((com.huawei.hms.location.ActivityConversionRequest) this.getHInstance())).writeToParcelCallSuper(param0, param1)\");\n ((HImpl) ((com.huawei.hms.location.ActivityConversionRequest) this.getHInstance())).writeToParcelCallSuper(param0, param1);\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((GImpl) ((com.google.android.gms.location.ActivityTransitionRequest) this.getGInstance())).writeToParcelCallSuper(param0, param1)\");\n ((GImpl) ((com.google.android.gms.location.ActivityTransitionRequest) this.getGInstance())).writeToParcelCallSuper(param0, param1);\n }\n }\n }", "private void getIncomingIntent()\n {\n if(getIntent().hasExtra(\"Title\")\n && getIntent().hasExtra(\"Time\")\n && getIntent().hasExtra(\"Date\")\n && getIntent().hasExtra(\"Duration\")\n && getIntent().hasExtra(\"Location\")\n && getIntent().hasExtra(\"EventDetails\"))\n {\n Title = getIntent().getStringExtra(\"Title\");\n Time = getIntent().getStringExtra(\"Time\");\n Date = getIntent().getStringExtra(\"Date\");\n Duration = getIntent().getStringExtra(\"Duration\");\n Location = getIntent().getStringExtra(\"Location\");\n EventDetails = getIntent().getStringExtra(\"EventDetails\");\n\n setData(Title,Time,Date,Duration,Location,EventDetails);\n }\n }", "boolean addUserActivityToDB(UserActivity userActivity);", "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() {\n process(2);\n }", "private boolean moveTo(AntArea.Cell dest) throws AntArtException {\n if (dest.isAntPresent()) {\n return false;\n }\n\n getCurrentCell().leave(this);\n dest.move(this);\n\n //Update the ant location\n Pair<Integer, Integer> newLoc = dest.getLocation();\n location = new Pair<>(newLoc.getKey(), newLoc.getValue());\n\n return true;\n }", "public void m10305b(ActivityDTO activityDTO) {\n boolean z = true;\n if (activityDTO != null) {\n if (TextUtils.isEmpty(this.f8995w)) {\n this.f8995w = activityDTO.getActivityIdentifier();\n }\n String e = this.f8973a.mo3321e();\n String f = this.f8973a.mo3323f();\n C1957a c1957a = this.f8973a;\n if (activityDTO.getIsPrivate() != 1) {\n z = false;\n }\n c1957a.mo3312a(z);\n activityDTO.setTotalDistance(activityDTO.getTotalDistance() / 1000.0d);\n activityDTO.setRepairDistance(activityDTO.getRepairDistance() / 1000.0d);\n activityDTO.setNickname(f);\n activityDTO.setAvatarUrl(e);\n if (TextUtils.isEmpty(activityDTO.getTitle()) || activityDTO.getTitle().equals(\"null\") || TextUtils.isEmpty(activityDTO.getTitle().trim())) {\n activityDTO.setTitle(C2408a.m12216a(activityDTO.getStartTime()));\n }\n if ((activityDTO.getVelocity() <= 0.0d || Double.isNaN(activityDTO.getVelocity())) && activityDTO.getElapsedTime() != 0.0d) {\n activityDTO.setVelocity((activityDTO.getTotalDistance() / activityDTO.getElapsedTime()) * 3600.0d);\n }\n if (!C1849a.m9645b(this.f8974b)) {\n activityDTO.setTotalDistance(C1849a.m9638a(activityDTO.getTotalDistance()));\n activityDTO.setVelocity(C1849a.m9648d(activityDTO.getVelocity()));\n activityDTO.setMaxVelocity(C1849a.m9648d(activityDTO.getMaxVelocity()));\n activityDTO.setRiseTotal(C1849a.m9646c(activityDTO.getRiseTotal()));\n activityDTO.setMaxAltitude(C1849a.m9646c(activityDTO.getMaxAltitude()));\n activityDTO.setUphillDistance(C1849a.m9646c(activityDTO.getUphillDistance()));\n activityDTO.setRepairDistance(C1849a.m9638a(activityDTO.getRepairDistance()));\n }\n }\n }", "public void exportDbFileToDownloadFoler(final Activity curr_activity){\n buttonImportExportDB.setOnClickListener(\n new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n try {\n app_utils.copyAppDbToDownloadFolder(curr_activity, getApplicationContext(), app_db.getDatabaseName());\n Toast.makeText(MainActivity.this, \"DB File copied to Download folder\", Toast.LENGTH_LONG).show();\n return;\n } catch (IOException e) {\n Toast.makeText(MainActivity.this, \"Error exporting to Download folder\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n }\n );\n }", "public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}", "@Override public void writeToParcel(Parcel dest, int flags) { }", "private PlayerAction moveStep(Node node, Hero hero, Room room) {\n\t\treturn null;\n\t}", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n\n }", "@Override\r\n\tpublic void move(String from, String to) {\n\t\t\r\n\t}", "private void navigateActivity(int activityID) {\n if(activityID == COLOUR_REQUEST_CODE) {\n Intent intent = new Intent(this, SelectColour.class);\n Bundle bundle = new Bundle();\n bundle.putInt(\"colour\", model.getBrushColour());\n intent.putExtras(bundle);\n\n this.startActivityForResult(intent, COLOUR_REQUEST_CODE);\n }\n else if(activityID == BRUSH_REQUEST_CODE) {\n Intent intent = new Intent(this, SelectBrush.class);\n Bundle bundle = new Bundle();\n bundle.putInt(\"width\", model.getBrushWidth());\n bundle.putString(\"cap\", model.getBrushCap() == Paint.Cap.ROUND ? \"round\" : \"square\");\n intent.putExtras(bundle);\n\n this.startActivityForResult(intent, BRUSH_REQUEST_CODE);\n }\n }", "public void onFinish() {\n Intent intent = getIntent();\n String name = intent.getStringExtra(\"name\");\n String Uname = intent.getStringExtra(\"Uname\");\n String vehicle = intent.getStringExtra(\"vehicle\");\n int points = intent.getIntExtra(\"points\", 0);\n Intent intent2 = new Intent(MatchedActivity.this, UserAreaActivity.class);\n intent2.putExtra(\"name\", name);\n intent2.putExtra(\"vehicle\", vehicle);\n intent2.putExtra(\"Uname\", Uname);\n intent2.putExtra(\"points\", points);\n\n MatchedActivity.this.startActivity(intent2);\n }", "void doneMoving();", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == Activity.RESULT_OK) {\n try {\n if(requestCode == CREATE_WAYPOINT_REQUEST) {\n Bundle extras = data.getExtras();\n String descText = data.getStringExtra(\"DESC_TEXT\");\n String[] images = data.getStringArrayExtra(\"IMAGES_LIST\");\n\n Waypoint waypoint = new Waypoint(currentRoute.getId());\n waypoint.setDescription(descText);\n waypoint.setPhoto(images);\n waypoint.setTimestamp(System.currentTimeMillis());\n waypoint.setLat(this.lat);\n waypoint.setLng(this.lng);\n /*\n GPS CODE - OR getLastKnownPosition()\n */\n\n\n DatabaseHandler bhhandle = new DatabaseHandler(this.getApplicationContext());\n bhhandle.addWaypoint(waypoint);\n\n\n //Toast.makeText(this.getApplicationContext(),descText,1000);\n //STORE IN DATABASE\n //SEND TO SERVER\n //SUMMON CTHULHU\n } else if (requestCode == CREATE_WALK_REQUEST) {\n\t /*Handle the new route*/\n\t Bundle extras = data.getExtras();\n\t\n\t String shortDes = data.getStringExtra(\"SHORT_STRING\");\n\t String longDes = data.getStringExtra(\"LONG_STRING\");\n\t String title = data.getStringExtra(\"TITLE_STRING\");\n\t\n\t this.currentRoute = new Route(title,shortDes,longDes);\n\t\n\t DatabaseHandler db = new DatabaseHandler(this.getApplicationContext());\n\t currentRoute.setId(db.addRoute(currentRoute));\n\t TextView label = (TextView) findViewById(R.id.txtTourRunning);\n\t label.setText(\"Current Tour: \" + currentRoute.getTitle());\n\t\n\t if(currentRoute.getId() <= 0) {\n\t Toast.makeText(MainActivity.this,\"Database Write Failure\", Toast.LENGTH_LONG).show();\n } else {\n \t\n \t}\n \t}\n \t} catch (NullPointerException e) {\n Toast.makeText(MainActivity.this, \"Something bad happened\", Toast.LENGTH_LONG).show();\n }\n }\n }", "private void insertData(String[] line) throws Exception {\r\n Activity newActivity = getActivity(line);\r\n if (importInputForm.getTaskBox().isSelected()) {\r\n panel.getMainTable().importActivity(newActivity);\r\n panel.getMainTable().insertRow(newActivity);\r\n } else if (importInputForm.getSubtaskBox().isSelected() && panel.getMainTable().getModel().getRowCount() != 0) {\r\n newActivity.setParentId(panel.getMainTable().getActivityIdFromSelectedRow());\r\n panel.getSubTable().importActivity(newActivity);\r\n panel.getSubTable().insertRow(newActivity);\r\n // adjust the parent task\r\n panel.getMainTable().addPomsToSelectedRow(newActivity);\r\n }\r\n }", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\t\n\t}", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "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}", "@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 }", "public static void doMoveitems ( RunData data)\n\t{\n\t\tParameterParser params = data.getParameters ();\n\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\tList items = (List) state.getAttribute(STATE_MOVED_IDS);\n\n\t\tString collectionId = params.getString (\"collectionId\");\n\n\t\tIterator itemIter = items.iterator();\n\t\twhile (itemIter.hasNext())\n\t\t{\n\t\t\t// get the copied item to be pasted\n\t\t\tString itemId = (String) itemIter.next();\n\n\t\t\tString originalDisplayName = NULL_STRING;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (itemId);\n\t\t\t\toriginalDisplayName = properties.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\n\t\t\t\t// copy, cut and paste not operated on collections\n\t\t\t\tif (properties.getProperty (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t\t\t{\n\t\t\t\t\tString alert = (String) state.getAttribute(STATE_MESSAGE);\n\t\t\t\t\tif (alert == null || ((alert != null) && (alert.indexOf(RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING) == -1)))\n\t\t\t\t\t{\n\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t*/\n\t\t\t\t{\n\t\t\t\t\tContentHostingService.moveIntoFolder(itemId, collectionId);\n\t\t\t\t}\t// if-else\n\t\t\t}\n\t\t\tcatch (PermissionException e)\n\t\t\t{\n\t\t\t\taddAlert(state, rb.getString(\"notpermis8\") + \" \" + originalDisplayName + \". \");\n\t\t\t}\n\t\t\tcatch (IdUnusedException e)\n\t\t\t{\n\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t}\n\t\t\tcatch (InUseException e)\n\t\t\t{\n\t\t\t\taddAlert(state, rb.getString(\"someone\") + \" \" + originalDisplayName);\n\t\t\t}\n\t\t\tcatch (TypeException e)\n\t\t\t{\n\t\t\t\taddAlert(state, rb.getString(\"pasteitem\") + \" \" + originalDisplayName + \" \" + rb.getString(\"mismatch\"));\n\t\t\t}\n\t\t\tcatch (InconsistentException e)\n\t\t\t{\n\t\t\t\taddAlert(state, rb.getString(\"recursive\") + \" \" + itemId);\n\t\t\t}\n\t\t\tcatch(IdUsedException e)\n\t\t\t{\n\t\t\t\taddAlert(state, rb.getString(\"toomany\"));\n\t\t\t}\n\t\t\tcatch(ServerOverloadException e)\n\t\t\t{\n\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t}\n\t\t\tcatch (OverQuotaException e)\n\t\t\t{\n\t\t\t\taddAlert(state, rb.getString(\"overquota\"));\n\t\t\t}\t// try-catch\n\t\t\tcatch(RuntimeException e)\n\t\t\t{\n\t\t\t\tlogger.debug(\"ResourcesAction.doMoveitems ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t}\n\n\t\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t\t{\n\t\t\t\t// delete sucessful\n\t\t\t\tString mode = (String) state.getAttribute(STATE_MODE);\n\t\t\t\tif(MODE_HELPER.equals(mode))\n\t\t\t\t{\n\t\t\t\t\tstate.setAttribute(STATE_RESOURCES_HELPER_MODE, MODE_ATTACHMENT_SELECT);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\t\t\t\t}\n\n\t\t\t\t// try to expand the collection\n\t\t\t\tSortedSet expandedCollections = (SortedSet) state.getAttribute(STATE_EXPANDED_COLLECTIONS);\n\t\t\t\tif(! expandedCollections.contains(collectionId))\n\t\t\t\t{\n\t\t\t\t\texpandedCollections.add(collectionId);\n\t\t\t\t}\n\n\t\t\t\t// reset the copy flag\n\t\t\t\tif (((String)state.getAttribute (STATE_MOVE_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t\t{\n\t\t\t\t\tstate.setAttribute (STATE_MOVE_FLAG, Boolean.FALSE.toString());\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "private void startASpaceCopyProcess(final RemoteDBConnectDialogLight sourceRCD, final String sourceTitle,\n final int sourceUrlIndex) {\n Thread performer = new Thread(new Runnable() {\n public void run() {\n // first disable/enable the relevant buttons\n copyToASpaceButton.setEnabled(false);\n //errorLogButton.setEnabled(false);\n stopButton.setEnabled(true);\n\n // clear text area and show progress bar\n saveConsoleText(consoleTextArea);\n consoleTextArea.setText(\"\");\n copyProgressBar.setStringPainted(true);\n copyProgressBar.setString(\"Copying Records ...\");\n copyProgressBar.setIndeterminate(true);\n\n try {\n // print the connection message\n consoleTextArea.append(sourceRCD.getConnectionMessage());\n\n String host = hostTextField.getText().trim();\n String admin = adminTextField.getText();\n String adminPassword = adminPasswordTextField.getText();\n\n boolean simulateRESTCalls = simulateCheckBox.isSelected();\n boolean extentPortionInParts = byuExtentRadioButton.isSelected();\n boolean ignoreUnlinkedNames = ignoreUnlinkedNamesCheckBox.isSelected();\n boolean ignoreUnlinkedSubjects = ignoreUnlinkedSubjectsCheckBox.isSelected();\n\n // create the hash map use to see if a certain record should be exported automatically\n HashMap<String, Boolean> publishMap = new HashMap<String, Boolean>();\n publishMap.put(\"names\", publishNamesCheckBox.isSelected());\n publishMap.put(\"subjects\", publishSubjectsCheckBox.isSelected());\n publishMap.put(\"accessions\", publishAccessionsCheckBox.isSelected());\n publishMap.put(\"digitalObjects\", publishDigitalObjectsCheckBox.isSelected());\n publishMap.put(\"resources\", publishResourcesCheckBox.isSelected());\n publishMap.put(\"repositories\", publishReposCheckBox.isSelected());\n\n ascopy = new ASpaceCopyUtil(sourceRCD, host, admin, adminPassword);\n ascopy.setPublishHashMap(publishMap);\n ascopy.setRepositoryMismatchMap(repositoryMismatchMap);\n ascopy.setSimulateRESTCalls(simulateRESTCalls);\n ascopy.setExtentPortionInParts(extentPortionInParts);\n ascopy.setIgnoreUnlinkedRecords(ignoreUnlinkedNames, ignoreUnlinkedSubjects);\n\n // load the mapper script if specified\n if (svd != null && useScriptCheckBox.isSelected()) {\n String script = svd.getCurrentScript();\n ascopy.setMapperScript(script);\n } else if (cvd != null && useScriptCheckBox.isSelected()) {\n String script = cvd.getCurrentScript();\n ascopy.setMapperScript(script);\n }\n\n // set the reset password, and output console and progress bar\n ascopy.setResetPassword(resetPasswordTextField.getText().trim());\n ascopy.setOutputConsole(consoleTextArea);\n ascopy.setProgressIndicators(copyProgressBar, errorCountLabel);\n ascopy.setCopying(true);\n\n // try getting the session and only continue if a valid session is return;\n if (!ascopy.getSession()) {\n consoleTextArea.append(\"No session, nothing to do ...\\n\");\n reEnableCopyButtons();\n return;\n } else {\n consoleTextArea.append(\"Administrator authenticated ...\\n\");\n }\n\n // check the current aspace version to make sure\n String aspaceVersion = ascopy.getASpaceVersion();\n double aspaceVersionDouble = new Double(aspaceVersion.replaceAll(\"[^0-9.]\", \"\"));\n\n //Check if working\n System.out.println(\"Version: \" + aspaceVersion);\n\n if (aspaceVersion.isEmpty()) ascopy.setCopyAssessments();\n if (!aspaceVersion.isEmpty() && aspaceVersionDouble < 2.1) {\n String message = \"Unsupported Archivesspace Version\\nSupport Versions: v2.1 and higher ...\\n\";\n\n consoleTextArea.append(message);\n reEnableCopyButtons();\n return;\n }\n\n // process special options here. This could be done better but its the\n // quickest way to do it for now\n String ids = resourcesToCopyTextField.getText().trim();\n ArrayList<String> resourcesIDsList = new ArrayList<String>();\n\n if (!ids.isEmpty()) {\n String[] sa = ids.split(\"\\\\s*,\\\\s*\");\n for (String id : sa) {\n // check to see if we are dealing with a special command\n // or an id to copy\n if (id.startsWith(\"-\")) {\n processSpecialOption(ascopy, id);\n } else {\n resourcesIDsList.add(id);\n }\n }\n }\n\n\n\n if (continueMigration && ascopy.uriMapFileExist()) {\n ascopy.loadURIMaps();\n } else {\n // first load the notes etc types and resource from the destination database if not using saved ones\n if (!copyStopped) ascopy.loadRepositories();\n }\n\n // set the progress bar from doing it's thing since the ascopy class is going to take over\n copyProgressBar.setIndeterminate(false);\n\n if (!copyStopped) ascopy.copyLookupList();\n if (!copyStopped) ascopy.copyRepositoryRecords();\n if (!copyStopped) ascopy.mapRepositoryGroups();\n if (!copyStopped) ascopy.copyLocationRecords();\n if (!copyStopped) ascopy.addAdminUser(admin, \"Administrator User\", adminPassword);\n if (!copyStopped) ascopy.copyUserRecords();\n if (!copyStopped) ascopy.copySubjectRecords();\n if (!copyStopped) ascopy.copyNameRecords();\n if (!copyStopped) ascopy.copyAccessionRecords();\n if (!copyStopped) ascopy.copyDigitalObjectRecords();\n\n // get the number of resources to copy here to allow it to be reset while the migration\n // has been started, but migration of resources has not yet started\n int resourcesToCopy = 1000000;\n int threads = 1;\n\n try {\n boolean useBatchImport = batchImportCheckBox.isSelected();\n ascopy.setUseBatchImport(useBatchImport);\n\n // get the number of threads to run the copy process in\n threads = Integer.parseInt(threadsTextField.getText());\n\n // get the number of resource to copy\n if (resourcesIDsList.isEmpty()) {\n resourcesToCopy = Integer.parseInt(numResourceToCopyTextField.getText());\n } else {\n resourcesToCopy = resourcesIDsList.size();\n }\n } catch (NumberFormatException nfe) {}\n\n // check to make sure we didn't stop the copy process or resource to copy is\n // not set to zero. Setting resources to copy to zero is a convenient way\n // to generate a URI map which contains no resource records for testing purposes\n if (!copyStopped && resourcesToCopy != 0) {\n ascopy.setResourcesToCopyList(resourcesIDsList);\n ascopy.copyResourceRecords(resourcesToCopy, threads);\n }\n\n if (!copyStopped) ascopy.addAssessments();\n\n ascopy.cleanUp();\n\n // set the number of errors and message now\n String errorCount = \"\" + ascopy.getASpaceErrorCount();\n errorCountLabel.setText(errorCount);\n migrationErrors = ascopy.getSaveErrorMessages() + \"\\n\\nTotal errors/warnings: \" + errorCount;\n } catch (IntentionalExitException e) {\n saveConsoleText(consoleTextArea);\n consoleTextArea.setText(e.getMessage());\n consoleTextArea.append(\"\\nWill attempt to save URI maps ...\");\n if (ascopy != null) ascopy.saveURIMaps();\n else consoleTextArea.append(\"\\nCould not save URI maps ...\\nMigration will need to be restarted ...\");\n } catch (Exception e) {\n saveConsoleText(consoleTextArea);\n consoleTextArea.setText(\"Unrecoverable exception, migration stopped ...\\n\\n\");\n\n if(ascopy != null) {\n ascopy.saveURIMaps();\n consoleTextArea.append(ascopy.getCurrentRecordInfo() + \"\\n\\n\");\n } else {\n consoleTextArea.append(\"Could not save URI maps ...\\nMigration will need to be restarted ...\");\n }\n\n consoleTextArea.append(getStackTrace(e));\n\n } finally {\n sourceRCD.closeSession();\n }\n\n reEnableCopyButtons();\n }\n });\n\n performer.start();\n }", "public void setActivity(Activity activity) {\n lastNeuron().setActivity(activity);\n }" ]
[ "0.6555605", "0.6531616", "0.6115225", "0.61043096", "0.5912301", "0.5895115", "0.57996696", "0.5717232", "0.5678976", "0.5651664", "0.5649727", "0.5633641", "0.5601695", "0.557831", "0.55229646", "0.5513582", "0.5511453", "0.55071414", "0.5491255", "0.5444305", "0.5443947", "0.5426223", "0.54262084", "0.5421581", "0.5414781", "0.5382528", "0.534872", "0.5329697", "0.531192", "0.528089", "0.52751595", "0.5274719", "0.52645063", "0.52355283", "0.5228938", "0.52110523", "0.5200609", "0.5185515", "0.5182266", "0.5177664", "0.51767015", "0.51513565", "0.5148505", "0.5133355", "0.5127012", "0.51241374", "0.51140714", "0.5105581", "0.5105428", "0.5103629", "0.51022273", "0.50969774", "0.5096662", "0.5084455", "0.507201", "0.50682986", "0.5064559", "0.5053812", "0.5047979", "0.50442404", "0.5039289", "0.5039106", "0.5028638", "0.5019305", "0.5016284", "0.4988408", "0.4987727", "0.49752927", "0.49631372", "0.4962488", "0.49606925", "0.49584234", "0.49561307", "0.49561307", "0.495529", "0.4947482", "0.49468702", "0.49445975", "0.49420798", "0.49413326", "0.4940752", "0.49288946", "0.49195623", "0.49181905", "0.4916685", "0.49142236", "0.49123034", "0.49114645", "0.4908669", "0.49063933", "0.48997074", "0.48985296", "0.48871452", "0.48862207", "0.4864115", "0.48569095", "0.48566118", "0.48552126", "0.4849616", "0.48479453" ]
0.599201
4
Method for switch or replace fragment from activity
public void switchFragment(@NonNull FragmentManager fragmentManager, @IdRes int containerViewId, @NonNull Fragment fragment, @NonNull String fragmentTag, @Nullable String backStackStateName) { fragmentManager .beginTransaction() .replace(containerViewId, fragment, fragmentTag) .addToBackStack(backStackStateName) .commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "void switchToFragment(Fragment newFrag) {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment, newFrag)\n .addToBackStack(null)\n .commit();\n }", "public void switchToAddFragment() {\n FragmentManager manager = getSupportFragmentManager();\n manager.beginTransaction().replace(R.id.fragment_container, new AddActivity()).commit();\n }", "private void switchFragment(Fragment fragment, Bundle arguments) {\n // replace the current showed fragment\n Fragment current = getSupportFragmentManager().findFragmentByTag(CURRENT_FRAGMENT);\n if (current != fragment) {\n fragment.setArguments(arguments);\n getSupportFragmentManager().beginTransaction().\n replace(R.id.frame_layout, fragment, CURRENT_FRAGMENT).commit();\n }\n }", "@Override\r\n public void changeFragment() {\r\n fm.beginTransaction()\r\n .replace(R.id.fragmentContainer, new ListWonderFragment())\r\n .commit();\r\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 }", "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 switchToFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(binding.frame.getId(), fragment);\n fragmentTransaction.commit();\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 }", "void switchFragment(@IdRes int itemId) {\n Intent intent = getIntent();\n // passing intent's extra to the fragment\n Bundle extras = intent.getExtras();\n Bundle arguments = (extras != null ? new Bundle(extras) : new Bundle());\n switch (itemId) {\n case R.id.nav_journal:\n arguments.putString(TITLE, getString(R.string.Journal));\n switchFragment(journalFragment, arguments);\n break;\n case R.id.nav_black_list:\n arguments.putString(TITLE, getString(R.string.Black_list));\n arguments.putInt(CONTACT_TYPE, Contact.TYPE_BLACK_LIST);\n switchFragment(blackListFragment, arguments);\n break;\n case R.id.nav_white_list:\n arguments.putString(TITLE, getString(R.string.White_list));\n arguments.putInt(CONTACT_TYPE, Contact.TYPE_WHITE_LIST);\n switchFragment(whiteListFragment, arguments);\n break;\n case R.id.nav_sms:\n arguments.putString(TITLE, getString(R.string.Messaging));\n switchFragment(smsFragment, arguments);\n break;\n case R.id.nav_settings:\n arguments.putString(TITLE, getString(R.string.Settings));\n switchFragment(settingsFragment, arguments);\n break;\n default:\n arguments.putString(TITLE, getString(R.string.Information));\n switchFragment(informationFragment, arguments);\n break;\n }\n\n // remove used extras\n intent.removeExtra(LIST_POSITION);\n }", "protected void switchContent(Fragment to) {\n if (mFragment != to) {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.activity_my_movie_content,to).commitAllowingStateLoss();\n mFragment = to;\n }\n }", "@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 }", "private void changeFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.flContainer, fragment);\n fragmentTransaction.commit();\n closeDrawer();\n }", "public void onClick(View v) {\n switchFragmentTo(2);\n }", "public void onClick(View v) {\n switchFragmentTo(2);\n }", "public void onClick(View v) {\n switchFragmentTo(1);\n }", "@Override \n public void onClick(View v) \n {\n \tShowFragmentXXH2 demoFragment = new ShowFragmentXXH2();\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction transaction =fragmentManager.beginTransaction();\n transaction.replace(R.id.fragment_container, demoFragment);\n transaction.commit();\n \n }", "public void onClick(View v) {\n switchFragmentTo(4);\n }", "public void onClick(View v) {\n switchFragmentTo(4);\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 }", "public void onClick(View v) {\n switchFragmentTo(3);\n }", "public void onClick(View v) {\n switchFragmentTo(3);\n }", "@Override\n public void onClick(View v) {\n Fragment fragmento = null;\n\n switch (v.getId()){\n case R.id.fragment1_button:\n fragmento = new Fragment1();\n break;\n case R.id.fragment2_button:\n fragmento = new Fragment2();\n break;\n }\n\n if(fragmento != null){\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n ft.replace(R.id.place_holder, fragmento);\n ft.commit();\n }\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tFragmentHelper.replaceFragment(R.id.fl_fragment_holder, getFragmentManager(), ShareFansFragment.class);\n\t\t\t}", "@Override\n public void onClick(View view) {\n if (uuidString == null) {\n SignupFragment fragment = new SignupFragment();\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment_container, fragment,\"findThisFragment\")\n .addToBackStack(null)\n .commit();\n } else {\n Intent intent = new Intent(getActivity(), DashboardActivity.class);\n startActivity(intent);\n }\n }", "public void onClick(View v) {\n switchFragmentTo(5);\n }", "protected void replaceLoginFragment() {\n\n\n }", "@Override \n public void onClick(View v) \n {\n \tShowFragmentXXH1 demoFragment = new ShowFragmentXXH1();\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction transaction =fragmentManager.beginTransaction();\n transaction.replace(R.id.fragment_container, demoFragment);\n transaction.commit();\n \n }", "@Override\n public void onClick(View v) {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n Fragment fragment = new FavoriteFragment();\n ft.replace(R.id.layout_fragment, fragment, \"FavoriteFragment\");\n ft.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 }", "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 }", "public void onClick(View v) {\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new MyContactFragment()).commit();\n\n // Replace\n Toast.makeText( getActivity(),\"Emergency contact\", Toast.LENGTH_SHORT).show();\n }", "private void switchFragment(int pos) {\n Fragment fragment=bottomBarList.get(pos);\n String backStateName = fragment.getClass().getName();\n String fragmentTag = backStateName;\n\n FragmentManager manager = getSupportFragmentManager();\n boolean fragmentPopped = manager.popBackStackImmediate (backStateName, 0);\n\n if (!fragmentPopped && manager.findFragmentByTag(fragmentTag) == null){ //fragment not in back stack, create it.\n FragmentTransaction ft = manager.beginTransaction();\n ft.replace(R.id.bottomNavFrameLayout, fragment, fragmentTag);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n ft.addToBackStack(backStateName);\n ft.commit();\n }\n\n\n }", "@Override\n public void onViewSelected (int wordPosition) {\n // replace the fragment\n replaceFragment(wordPosition);\n }", "@Override\n public void onEstadoCambiado() {\n fragment = new ListadoPeticionesRecibidasVista();\n getFragmentManager().beginTransaction().replace(R.id.content_main, fragment ).commit();\n\n }", "@Override\n public void onClick(View v) {\n 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 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 }", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tft.replace(R.id.fragment_container, fragment);\n\n\t}", "private void setViewFragment(Fragment fragment) {\n currentFragment = fragment;\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.replace(R.id.container, fragment);\n transaction.commit();\n }", "public void goToPortfolioFragment(){\n Fragment fragment = new PortfolioFragment();\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n transaction.replace(R.id.contentFragment, fragment);\n transaction.commit();\n }", "@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 }", "@Override\n public void onClick(View view) {\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new EditContactFragment()).commit();\n }", "private ScreenShotable replaceFragment(ScreenShotable screenShotable, String name) {\n switch (name) {\n case ContentFragment.GAMES:\n logger.logEvent(\"Games Menu\");\n Log.v(LOG_TAG, \"Games Menu\");\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, GamesFragment.newInstance()).setCustomAnimations(R.anim.abc_slide_in_bottom, R.anim.abc_slide_out_bottom).addToBackStack(\"Games\").commit();\n getSupportActionBar().setTitle(\"Games\");\n break;\n case ContentFragment.GROUPS:\n logger.logEvent(\"Groups Menu\");\n Log.v(LOG_TAG, \"Groups Menu\");\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, GroupsFragment.newInstance()).setCustomAnimations(R.anim.abc_slide_in_bottom, R.anim.abc_slide_out_bottom).commit();\n getSupportActionBar().setTitle(\"Groups\");\n break;\n case ContentFragment.FRIENDS:\n logger.logEvent(\"Friends Menu\");\n Log.v(LOG_TAG, \"Friends Menu\");\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, FriendStatus.newInstance()).setCustomAnimations(R.anim.abc_slide_in_bottom, R.anim.abc_slide_out_bottom).commit();\n getSupportActionBar().setTitle(\"Friends\");\n break;\n case ContentFragment.SETTINGS:\n logger.logEvent(\"Settings Menu\");\n Log.v(LOG_TAG, \"Settings Menu\");\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, SettingsFragment.newInstance()).setCustomAnimations(R.anim.abc_slide_in_bottom, R.anim.abc_slide_out_bottom).commit();\n getSupportActionBar().setTitle(\"Settings\");\n break;\n }\n return contentFragment;\n }", "private void goToFragment(View v, Fragment fragment) {\n v.setEnabled(false);\n\n getFragmentManager().beginTransaction()\n .replace(R.id.fragment_container, fragment)\n .addToBackStack(null)\n .commit();\n }", "@Override\n public void onClick(View v){\n SignUpFragment fragment = new SignUpFragment();\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.fragmentHolder,fragment,\"Sign Up\").commit();\n }", "@Override\n public void onClick(View view) {\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, new CadastrarFragments())\n .commitNow();\n }", "public void replaceFragmentWithoutBack(Fragment mFragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.tabswitch, mFragment)\n .commit();\n }", "public void changeFragment(Fragment nextFragment) {\n actualFragment = nextFragment;\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.mainActivityFrameLayout, nextFragment, nextFragment.getClass()\n .getSimpleName());\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void gofavouritepage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new FavouriteFragment()).addToBackStack(\"Homepage\").commit();\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n Fragment selectedFragment = new CuisineFragment();\n\n switch (item.getItemId()) {\n case R.id.cuisine:\n selectedFragment = new CuisineFragment();\n break;\n\n case R.id.dishes:\n selectedFragment = new DishesFragment();\n break;\n\n case R.id.cart:\n startActivity(new Intent(MainActivity.this,CartActivity.class));\n break;\n\n case R.id.languge:\n selectedFragment = new LanguageFragment();\n break;\n }\n\n getSupportFragmentManager().beginTransaction().replace(R.id.nav_host_fragment,selectedFragment).commit();\n return true;\n }", "private void loadFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(com.limkee1.R.id.flContent, fragment);\n fragmentTransaction.commit();\n\n }", "@Override\n public void gonearbypage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new NearbyFragment()).addToBackStack(\"Homepage\").commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_home, null);\n scheduleButton = (Button) view.findViewById(R.id.scheduleButton);\n postButton = (Button) view.findViewById(R.id.postButton);\n advertisementButton = (Button) view.findViewById(R.id.advertisementButton);\n\n scheduleButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n\n // ((MainActivity) getActivity()).replaceFragment(Plan.newInstance());\n\n }\n });\n\n postButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n\n // ((MainActivity) getActivity()).replaceFragment(CourseFragment.newInstance());\n }\n });\n\n// advertisementButton.setOnClickListener(new View.OnClickListener(){\n//\n// @Override\n// public void onClick(View view) {\n//\n// ((MainActivity)getActivity()).replaceFragment(NewFragment.newInstance());\n// }\n// });\n\n\n return view;\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.containerView,new SentFragment()).commit();\n //Intent i = new Intent(getApplicationContext(), Task_Process.class);\n //startActivity(i);\n //finish();\n }", "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 }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n Fragment fragment = null;\n switch (tab.getPosition()) {\n case 0:\n fragment = new FirstFragment();\n break;\n case 1:\n fragment = new SecondFragment();\n //flipCard();\n break;\n case 2:\n fragment = new ThirdFragment();\n break;\n }\n\n flipCard(fragment);\n //FragmentManager fm = getSupportFragmentManager();\n //FragmentTransaction ft = fm.beginTransaction();\n //ft.replace(R.id.simpleFrameLayout, fragment);\n //ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n //ft.commit();\n }", "public void switchFragment(String fragment) {\n switch (fragment){\n case \"Login\":\n loginState=true;\n ui.switchFragment(loginFragment,\"loginFragment\",false,false);\n break;\n case \"Register\":\n loginState=false;\n ui.switchFragment(signUpFragment,\"signUpFragment\",true,false);\n break;\n }\n }", "@Override\n public void onClick(View v){\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.frame_layout,new final_confirmation());\n transaction.commit();\n }", "@Override\n public void onSwap(String FragmentName, Bundle bundle) {\n\n Fragment fragmentToSwap = null;\n FragmentTransaction fragmentTransaction = FM.beginTransaction();\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n\n getSupportActionBar().setTitle(\"\");\n try {\n switch (FragmentName) {\n case \"Popular\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"TopRated\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"Upcoming\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"Detail\":\n fragmentToSwap = new DetailMovieFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n fragmentTransaction.addToBackStack(\"MoviesListFragment\");\n\n break;\n }\n fragmentTransaction.commit();\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.main_frame, fragment);\n// fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }", "private void showHome(){\n fragment = new HomeFragment();\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.mainLayout, fragment, fragment.getTag()).commit();\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, fragment);\n fragmentTransaction.commit();\n\n }", "public void replaceFragmentWithBack(Fragment mFragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.tabswitch, mFragment).addToBackStack(null)\n .commit();\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tgetActivity().setContentView(R.layout.fragment);\n\n\t\tFragmentTransaction tx = getActivity().getSupportFragmentManager()\n\t\t\t\t.beginTransaction();\n\t\tswitch (v.getId()) {\n\n\t\tcase R.id.item1: {\n\t\t\ttx.replace(R.id.content_frame,\n\t\t\t\t\tFragment.instantiate(getActivity(), tab_array[0]));\n\t\t\ttx.commit();\n\t\t\tbreak;\n\t\t}\n\t\tcase R.id.item2: {\n\t\t\ttx.replace(R.id.content_frame,\n\t\t\t\t\tFragment.instantiate(getActivity(), tab_array[1]));\n\t\t\ttx.commit();\n\t\t\tbreak;\n\t\t}\n\t\tcase R.id.item3: {\n\t\t\ttx.replace(R.id.content_frame,\n\t\t\t\t\tFragment.instantiate(getActivity(), tab_array[2]));\n\t\t\ttx.commit();\n\t\t\tbreak;\n\t\t}\n\t\tcase R.id.item4: {\n\t\t\ttx.replace(R.id.content_frame,\n\t\t\t\t\tFragment.instantiate(getActivity(), tab_array[3]));\n\t\t\ttx.commit();\n\t\t\tbreak;\n\t\t}\n\n\t\t}\n\t}", "private void showFragment(Fragment fragment) {\n Log.d(TAG, \"showFragment: Run selected fragment\");\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.content_frame, fragment)\n .commit();\n }", "public void goToFriends() {\n\t\tFragmentManager manager = getActivity().getSupportFragmentManager();\n\t\tFragmentTransaction transaction = manager.beginTransaction();\n\t\ttransaction.replace(R.id.container_fragment_main,new FragmentFriends());\n\t\ttransaction.commit();\n\t}", "@Override\n public void onClick(View v) {\n FragmentTransaction FT = getSupportFragmentManager().beginTransaction();\n FT.replace(R.id.Frame_Fragments, new simplefragment());\n FT.commit();\n\n button2.setVisibility(View.GONE);\n button.setVisibility(View.VISIBLE);\n }", "@Override\n public void refreshFragment() {\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\r\n public void onNavigationDrawerItemSelected(int position) {\n FragmentManager fragmentManager = getFragmentManager();\r\n fragmentManager.beginTransaction()\r\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\r\n .commit();\r\n// switch (position) {\r\n// case 0:\r\n// Intent maineIntent = new Intent(Main3Activity.this, Calendar.class);\r\n// maineIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n// startActivity(maineIntent);\r\n// case 1:\r\n//\r\n// case 2:\r\n//\r\n// }\r\n\r\n }", "@Override\n public void onClick(View v) {\n if (v == backclick){\n getFragmentManager().popBackStack();\n\n }\n\nelse if(v == improvelisting){\n\n\n Fragment fr = new Improvelisting();\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n }\n\n /*else if (v == thingstodoattractionavailable)\n {\n Toast.makeText(getActivity(),\"things\",Toast.LENGTH_SHORT).show();\n\n }*/\n /* else if (v == peoplewviewd){\n\n getFragmentManager().popBackStack();\n }*/\n\n\n\n\n\n }", "public void selectItem(int position) {\n Fragment fragment=null;\n\n if( position == FRAGMENT_ONE ) {\n fragment = new MainFragment_1();\n fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.main_fragment_place, fragment).commit();\n }else if( position == FRAGMENT_TWO ){\n fragment = new MainFragment_2();\n fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.main_fragment_place, fragment).commit();\n }\n }", "@Override\n public void onClick(View v) {\n\n if (v == thigsfrag1){\n\n thingstodonear = Sessiondata.getInstance().getThingsfrontdatanear();\n thingstodonear.get(0).setCtm(newtrip);\n Sessiondata.getInstance().setSnocreatenewtrip(thingstodonear.get(0).getSno());\n Sessiondata.getInstance().setUpdateresult(0);\n Sessiondata.getInstance().setFtplistval(7);\n\n Fragment fr = new NewUiView_itemInfo_Fragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(EXTRATRIPINFO, thingstodonear.get(0));\n fr.setArguments(bundle);\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n\n }\n\n else if (v == foodsfrag1){\n\n\n foodnear = Sessiondata.getInstance().getFoodfrontdatanear();\n foodnear.get(0).setCtm(newtrip);\n Sessiondata.getInstance().setSnocreatenewtrip(foodnear.get(0).getSno());\n Sessiondata.getInstance().setUpdateresult(0);\n Sessiondata.getInstance().setFtplistval(7);\n\n Fragment fr = new NewUiView_itemInfo_Fragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(EXTRATRIPINFO, foodnear.get(0));\n fr.setArguments(bundle);\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n }\nelse if (v == prayerfirst) {\n\n\n prayernear = Sessiondata.getInstance().getPrayerfrontdatanear();\n prayernear.get(0).setCtm(newtrip);\n Sessiondata.getInstance().setSnocreatenewtrip(prayernear.get(0).getSno());\n Sessiondata.getInstance().setUpdateresult(0);\n Sessiondata.getInstance().setFtplistval(7);\n\n Fragment fr = new NewUiView_itemInfo_Fragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(EXTRATRIPINFO, prayernear.get(0));\n fr.setArguments(bundle);\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n }\n\n\n else if(v == thingstodo){\n\n NearByelementsModel n = (NearByelementsModel) v.getTag();\n CreatedTripModel cc = C.getCtm();\n cc.setCategoryID(\"3\");\n cc.setCategorytype(\"Things to do info\");\n cc.setN(n);\n showguideFragment(cc);\n }\n\n }", "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 }", "protected void replaceLoginFragment() {\n\n// fragmentManager\n// .beginTransaction()\n// .setCustomAnimations(R.anim.left_enter, R.anim.right_out)\n// .replace(R.id.frameContainer, new Login_Fragment(),\n// Utils.Login_Fragment).commit();\n }", "@Override\n public void onClick(View v) {\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.activity_fragment);\n Utils.replaceFragment(LoginActivity.this, new ResetPswFragment(),\n R.id.fragment_container, false);\n }", "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 }", "private void switchToProgress() {\n FragmentManager fm = getFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n exerciseProgressFragment.setCurrentExercise(currentExercise);\n transaction.replace(R.id.exerciseFragmentLayout, exerciseProgressFragment);\n transaction.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 }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n Fragment fragment = null;\n switch (id) {\n case R.id.action_resultados:\n //replaceFragment(fragment);\n break;\n case R.id.action_creditos:\n if(session.isLoggedIn()){\n fragment = new CreditosFragment();\n callPagoDialog();\n }else{\n fragment = new AuthFragment();\n }\n\n break;\n case R.id.action_ganadores:\n //replaceFragment(fragment);\n break;\n\n }\n replaceFragment(fragment);\n return super.onOptionsItemSelected(item);\n }", "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 }", "private void setFragmentMovie(Fragment fragmentMovie){\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.frame_fav, fragmentMovie)\n .addToBackStack(null)\n .commit();\n }", "public void onClick(View v) {\n android.support.v4.app.FragmentManager fm = getFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ProductFragment itemListFragment = ((MainActivity)getActivity()).getItemListFragment();\n ft.replace(R.id.container, itemListFragment, \"List\");\n ft.commit();\n }", "void OpenFragmentInteraction();", "@Override\n public void onItemSelectedListner(int position, int code) {\n /*Toast.makeText(this, \"Called By Fragment A: position - \"+ position, Toast.LENGTH_SHORT).show();*/\n Bundle args = new Bundle();\n args.putInt(\"position\", position);\n args.putInt(\"code\", code);\n ButtonsFragment buttonsFragment = new ButtonsFragment();\n buttonsFragment.setArguments(args);\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frameLayout, buttonsFragment);\n fragmentTransaction.commit();\n }", "public void loadFragment(Fragment fragment) { Animation connectingAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.slide_up);\n//\n FragmentTransaction transaction = getActivity().getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.nowShowingFrame, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }", "@Override\n public void onItemSelected(int position) {\n Toast.makeText(getBaseContext(), \"SecondActivity.onItemSelected()\", Toast.LENGTH_SHORT).show();\n\n if (landscape) {\n // If the device is in the landscape mode updates detail fragment's content.\n DetailedFragment detailFragment = (DetailedFragment) getFragmentManager().findFragmentById(R.id.detail_view);\n detailFragment.updateContent(position);\n } else {\n // If the device is in the portrait mode sets detail fragment's content and replaces master fragment with detail fragment in a fragment transaction.\n DetailedFragment detailFragment = new DetailedFragment();\n detailFragment.setContent(position);\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n ft.replace(R.id.master_view, detailFragment, \"Detail_Fragment_2\");\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n ft.addToBackStack(null);\n ft.commit();\n }\n }", "@Override\n public void onListFragmentInteraction(Game game) {\n changeFragment(game);\n }", "private boolean loadFragment(Fragment fragment) {\n //switching fragment\n if (fragment != null) {\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.fragment_container, fragment)\n .commit();\n return true;\n }\n return false;\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 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 void navigateToFragment(int type) {\n\t\tif (type == mCurrentFragmentType) {\n\t\t\t// Don't duplicate\n\t\t\treturn;\n\t\t}\n\t\tif (type == NavigationElement.TYPE_CHANGE) {\n\t\t\tif (Util.checkDrawOverlayPermission(this,REQUEST_CODE))\n\t\t\tDialogs.getChangePasswordDialog(this).show();\n\t\t\t// Don't change current fragment type\n\t\t\treturn;\n\t\t}\n\n\t\tswitch (type) {\n\t\tcase NavigationElement.TYPE_APPS:\n\t\t\tmCurrentFragment = new AppsFragment();\n\t\t\tbreak;\n\n\t\tcase NavigationElement.TYPE_STATISTICS:\n\t\t\tmCurrentFragment = new StatisticsFragment();\n\t\t\tbreak;\n\t\tcase NavigationElement.TYPE_PHOTO:\n\t\t\tif (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n\t\t\t\tActivityCompat.requestPermissions(this,\n\t\t\t\t\t\tnew String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n\t\t\t\t\t\t111);\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\tmCurrentFragment = new PhotoFragment();\n\t\t\tbreak;\n\t\tcase NavigationElement.TYPE_VIDEO:\n\t\t\tif (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n\t\t\t\tActivityCompat.requestPermissions(this,\n\t\t\t\t\t\tnew String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n\t\t\t\t\t\t112);\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\tmCurrentFragment = new VideoFragment();\n\t\t\tbreak;\n\t\tcase NavigationElement.TYPE_THEMES:\n//\t\t\tmCurrentFragment = new ThemesFragment();\n\t\t\tToast.makeText(getApplicationContext(), \"Coming Soon\", Toast.LENGTH_SHORT).show();\n\t\t\tbreak;\n\n\t\t}\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\tfm.beginTransaction().replace(R.id.container, mCurrentFragment).commit();\n\t\tmCurrentFragmentType = type;\n\t}", "private void loadFragment(String name) {\n FragmentTransaction fragmentTransaction = MainActivity.fm.beginTransaction();\n // replace the FrameLayout with the new Fragment\n fragmentTransaction.replace(R.id.mainFrameLayout, MainActivity.currentFragment);\n fragmentTransaction.addToBackStack(name);\n fragmentTransaction.commit();\n }", "@Override\n public void onNavigationDrawerItemSelected(int position) {\n FragmentManager fragmentManager = getFragmentManager();\n switch (position){\n case 0:\n fragmentManager.beginTransaction()\n .replace(R.id.container, new LineFragment())\n .commit();\n break;\n case 1:\n fragmentManager.beginTransaction()\n .replace(R.id.container, new BarFragment())\n .commit();\n break;\n case 2:\n fragmentManager.beginTransaction()\n .replace(R.id.container, new ClockPieFragment())\n .commit();\n break;\n }\n }", "private void openTeacherCheck() {\n FragmentTransaction fr1 = getFragmentManager().beginTransaction().addToBackStack(\"Tag\");\n fr1.replace(R.id.fragment_container, new Fragment_View_In_Out());\n fr1.commit();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n getSupportFragmentManager().beginTransaction().\n replace(R.id.container, PlaceholderFragment.newInstance(id)).commit();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onNavigationDrawerItemSelected(int position) {\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n }", "@Override\n public void onNavigationDrawerItemSelected(int position) {\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\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 }", "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 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 }" ]
[ "0.7797709", "0.75660974", "0.7544844", "0.7506351", "0.7496252", "0.74201924", "0.7405932", "0.7370361", "0.7282019", "0.72651756", "0.72621375", "0.7246042", "0.71788585", "0.71479625", "0.71479625", "0.7126492", "0.70144284", "0.70045656", "0.70045656", "0.7000446", "0.6982512", "0.6982512", "0.697818", "0.6955514", "0.69455504", "0.6932897", "0.6926034", "0.6923538", "0.6920179", "0.6918436", "0.69044834", "0.68985003", "0.6894594", "0.68862396", "0.6886023", "0.68840986", "0.6862926", "0.6860881", "0.6838266", "0.68025666", "0.6780941", "0.67795014", "0.6772223", "0.67507315", "0.674922", "0.67465574", "0.67457634", "0.673746", "0.67102814", "0.670793", "0.67036134", "0.66912687", "0.6690767", "0.668704", "0.66659325", "0.66541517", "0.66524357", "0.66499", "0.6640741", "0.6632716", "0.6632265", "0.6619396", "0.6617266", "0.66141707", "0.6602256", "0.6594482", "0.6594337", "0.6590315", "0.6579583", "0.65771025", "0.65758985", "0.6574707", "0.65579677", "0.6555287", "0.65342486", "0.65237355", "0.6518125", "0.6509404", "0.6508116", "0.65074474", "0.65063304", "0.65054154", "0.64937973", "0.6493656", "0.64907676", "0.6486216", "0.6484226", "0.64737093", "0.6472649", "0.6470706", "0.64674073", "0.64651376", "0.6461925", "0.6458881", "0.64515495", "0.6442527", "0.64298064", "0.64298064", "0.64243174", "0.64214313", "0.6421121" ]
0.0
-1
precondition: m > 0 && gcd(a, m) = 1
public static long modInverse(long a, long m) { a = mod(a, m); return a == 0 ? 0 : mod((1 - modInverse(m % a, a) * m) / a, m); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int gcd(int m, int n) {\n if (n == 0)\n return m;\n else\n return gcd(n, m % n);\n }", "private static int gcd(int m, int n)\n {\n int mx = Math.max(m, n);\n int mn = Math.min(m, n);\n int remainder = 1;\n while (remainder != 0)\n {\n remainder = mx % mn;\n mx = mn;\n mn = remainder;\n }\n return mx;\n }", "private static int gcd(int m, int n) {\r\n\t\tif (m % n == 0)\r\n\t\t\treturn n; // Base case\r\n\t\telse // Recursive call\r\n\t\t\treturn gcd(n, m % n);\r\n\t}", "private int gcd(int m, int n) {\n\t\tint r;\n\t\twhile(n != 0) {\n\t\t\tr = m % n;\n\t\t\tm = n;\n\t\t\tn = r;\n\t\t}\n\t\treturn m;\n\t}", "public static int gcd(int m, int n) {\n\t\tif(n==0) return m;\r\n\t\telse{\r\n\t\t\treturn gcd(n,m%n);\r\n\t\t}\r\n\t}", "public static int gcd(int m,int n) {\n\t\tint p=m,q=n;\n\t\twhile(p%q!=0) {\n\t\t\tint r=p%q;\n\t\t\tp=q;\n\t\t\tq=r;\n\t\t}\n\t\treturn q;\n\t}", "private static int gcd (int a, int b) {\n int m = Math.max (Math.abs (a), Math.abs (b));\n if (m == 0) throw new ArithmeticException (\" zero in gcd \");\n int n = Math.min (Math.abs (a), Math.abs (b));\n while (n > 0) {\n a = m % n;\n m = n;\n n = a;\n }\n return m;\n }", "static int gcd2(int m, int n) {\n if (m==0) return n;\n else return gcd2(n%m,m);\n }", "private static int gcd(int a, int b) {\n\t\tif(a==0){\n\t\t\treturn b;\n\t\t}\n\t\treturn gcd(b%a,a);\n\t}", "private static boolean gcd(int a, int b) {\n while (b > 0) {\n int temp = b;\n b = a % b;\n a = temp;\n }\n return a == 1;\n }", "public static long g (int n, int m)\n\t{\n\t\tif (n == m)\n\t\t\treturn 1;\n\t\telse if (m == n-1)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn Multinomials.multinomial((n-m), m) * h(n-m); \n\t}", "private int gcd(int a, int b){\r\n int r, temp;\r\n if( a<b ){ temp = a; a = b; b = temp; }\r\n while( b!=0 ){ r = a%b; a = b; b = r; }\r\n return a;\r\n }", "static int gcd(int a, int b) {\r\n\t\tif (b == 0)\r\n\t\t\treturn a;\r\n\t\treturn gcd(b, a % b);\r\n\t}", "private static int gcd(int a, int b)\r\n\t{\r\n\t\tint remainder = a % b;\r\n\t\tif(remainder == 0)\r\n\t\t{\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn gcd(b, remainder);\r\n\t}", "public static int greatestCommonFactor(int m, int n)\n\t{\n\t\tif(n == 0)\n\t\t{\n\t\t\treturn m;\n\t\t}\n\t\t\n\t\treturn greatestCommonFactor(n, m%n);\n\t\t\n\t}", "private int getGCD(int[] a) {\r\n\r\n int gcd = a[0];\r\n\r\n for (int i = 1; i < a.length; i++) {\r\n gcd = getGCD(gcd, a[i]);\r\n }\r\n return gcd;\r\n }", "public int gcd(int a, int b) {\n // write your code here\n if (b != 0) {\n return gcd(b, a % b);\n }\n else\n return a;\n }", "public static int gcd(int a, int b){\n int tmp = a;\r\n a = Math.max(a,b);\r\n b = Math.min(tmp,b);\r\n \r\n //write GCD\r\n int remainder;\r\n do{\r\n remainder = a%b;\r\n a = b;\r\n b = remainder;\r\n } while(remainder !=0);\r\n \r\n return a;\r\n }", "int gcd(int a, int b) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t int x,y,r=1;\r\n\t\t if(a<b)\r\n\t\t {\r\n\t\t\t x = b;\r\n\t\t\t y = a;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t x = a;\r\n\t\t\t y = b;\r\n\t\t }\r\n\t\t while(r!=0)\r\n\t\t {\r\n\t\t r = x%y;\r\n\t\t if(r==0)\r\n\t\t\t break;\r\n\t\t x = y;\r\n\t\t y = r;\r\n\t\t }\r\n\t\t// System.out.println(\"====\"+y);\r\n\t\treturn y;\r\n\t}", "public int gcd(){\n\tint min;\n\tint max;\n\tint stor;\n\tif ((numerator == 0) || (denominator == 0)){\n\t return 0;\n\t}\n\telse {\n\t if ( numerator >= denominator ) {\n\t\tmax = numerator;\n\t\tmin = denominator;\n\t }\n\t else {\n\t\tmax = denominator;\n\t\tmin = numerator;\n\t }\n\t while (min != 0){\n\t stor = min;\n\t\tmin = max % min;\n\t\tmax = stor;\n\t }\n\t return max;\n\t}\n }", "private static long gcd(long n, long d) {\n\t long n1 = Math.abs(n);\n\t long n2 = Math.abs(d);\n\t int gcd = 1;\n\t \n\t for (int k = 1; k <= n1 && k <= n2; k++) {\n\t if (n1 % k == 0 && n2 % k == 0) \n\t gcd = k;\n\t }\n\n\t return gcd;\n\t }", "public static void modgcd (int a[], int b[], int gcd[]) {\n\t\tif (isZero(a)) { assign (gcd, a); return; }\n\t\tif (isZero(b)) { assign (gcd, b); return; }\n\t\t\n\t\t// align a and b to have same number of digits and work on copies\n\t\ta = copy(normalize(a, b.length));\n\t\tb = copy(normalize(b, a.length));\n\t\t\n\t\t// ensure that a is greater than b. Also return trivial gcd.\n\t\tint rc = compareTo(a,b);\n\t\tif (rc == 0) { assign (gcd, a); return; }\n\t\tif (rc < 0) {\n\t\t\tint t[] = b;\n\t\t\tb = a;\n\t\t\ta = t;\n\t\t}\n\t\t\n\t\tint quot[] = new int[a.length];\n\t\tint remainder[] = new int[a.length];\n\t\twhile (!isZero(b)) {\n\t\t\tint t[] = copy (b);\n\t\t\tdivide (a, b, quot, remainder);\n\t\t\tassign (b, remainder);\t\t\t\n\t\t\tassign (a, t);\n\t\t}\n\n\t\t// value held in a is the computed gcd of (a,b).\n\t\tassign (gcd, a);\n\t}", "public static int gcd(int a, int b) {\r\n\t\twhile(b > 0) {\r\n\t\t\tint temp = b;\r\n\t\t\tb = a % b;\r\n\t\t\ta = temp;\r\n\t\t}\r\n\t\t\r\n\t\treturn a;\r\n\t}", "private int gcd(int a, int b) {\n // Note that the loop below, as-is, will time out on negative inputs.\n // The gcd should always be a positive number.\n // Add code here to pre-process the inputs so this doesn't happen.\n if ( a < 0 ) {\n a = - a;\n }\n if ( b < 0 ) {\n b = - b;\n }\n\n \twhile (a != b)\n \t if (a > b)\n \t\t a = a - b;\n \t else\n \t\t b = b - a;\n \treturn a;\n }", "static long gcd(long a, long b) {\n\t\ta = Math.abs(a); b = Math.abs(b);\n\t\tif(a < b) return gcd(b,a);\n\t\tif(b == 0) return a;\n\t\treturn gcd(a%b, b);\n\t}", "private static int primitiveRoot(int m) {\n if (m == 2)\n return 1;\n if (m == 167772161)\n return 3;\n if (m == 469762049)\n return 3;\n if (m == 754974721)\n return 11;\n if (m == 998244353)\n return 3;\n\n int[] divs = new int[20];\n divs[0] = 2;\n int cnt = 1;\n int x = (m - 1) / 2;\n while (x % 2 == 0)\n x /= 2;\n for (int i = 3; (long) (i) * i <= x; i += 2) {\n if (x % i == 0) {\n divs[cnt++] = i;\n while (x % i == 0) {\n x /= i;\n }\n }\n }\n if (x > 1) {\n divs[cnt++] = x;\n }\n for (int g = 2;; g++) {\n boolean ok = true;\n for (int i = 0; i < cnt; i++) {\n if (pow(g, (m - 1) / divs[i], m) == 1) {\n ok = false;\n break;\n }\n }\n if (ok)\n return g;\n }\n }", "static int modInverse(int a, int m) \n\t{ \n\t\tint m0 = m; \n\t\tint y = 0, x = 1; \n\t\tif (m == 1) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (a > 1) \n\t\t{ \n\n\t\t\t// q is quotient \n\t\t\tint q = a / m; \n\t\t\tint t = m; \n\n\t\t\t// m is remainder now, process \n\t\t\t// same as Euclid's algo \n\t\t\tm = a % m; \n\t\t\ta = t; \n\t\t\tt = y; \n\n\t\t\t// Update y and x \n\t\t\ty = x - q * y; \n\t\t\tx = t; \n\t\t} \n\n\t\t// Make x positive \n\t\tif (x < 0) \n\t\t{ \n\t\t\tx += m0; \n\t\t} \n\n\t\treturn x; \n\t}", "private static int gcd(int n1,int n2){\n int a = n1>n2?n1:n2;\r\n int b = n1>n2?n2:n1;\r\n int r = a%b;\r\n while(r!=0){\r\n a = b;\r\n b = r;\r\n r = a%b;\r\n }\r\n return b;\r\n }", "public static void gcd (int a[], int b[], int gcd[]) {\n\t\tif (isZero(a)) { assign (gcd, a); return; }\n\t\tif (isZero(b)) { assign (gcd, b); return; }\n\t\t\n\t\ta = copy (a); // Make copies to ensure\n\t\tb = copy (b); // that a and b are not modified.\n\t\t\n\t\twhile (!isZero(b)) {\n\t\t\t// last argument to subtract represents sign of result which\n\t\t\t// we can ignore since we only subtract smaller from larger.\n\t\t\t// Note compareTo (a, b) is positive if a > b.\n\t\t\tif (compareTo(a, b) > 0) {\n\t\t\t\tsubtract (a, b, gcd, new int[1]);\n\t\t\t\tassign (a, gcd);\n\t\t\t} else {\n\t\t\t\tsubtract (b, a, gcd, new int[1]);\n\t\t\t\tassign (b, gcd);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// value held in a is the computed gcd of original (a,b).\n\t\tassign (gcd, a);\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int gcd = 1, lcm = 1;\n int temp = a;\n int temp2 = b;\n // int fact = 1;\n if (a > b) {\n\n for (int i = a; i < a * b;i+=a) {\n if ( i % b == 0) {\n lcm = i;\n break;\n // System.out.println(lcm);\n } \n }\n } else {\n for (int i = b; i < a * b; i+=b) {\n if ( i%a == 0) {\n lcm = i;\n break;\n // System.out.println(lcm);\n } \n }\n\n }\n gcd = (a * b) / lcm;\n System.out.println(gcd);\n System.out.println(lcm);\n }", "public int gcd(int a, int b) {\n\t\tint result;\n\t\tif (a > 0) {\n\t\t\tresult = gcd(b % a, a);\n\t\t} else {\n\t\t\tresult = b;\n\t\t}\n\n\t\treturn result;\n\t}", "public static int gcd(int a, int b) {\n\t\t// take absolute values\n\t\tif (a < 0) {\n\t\t\ta *= -1;\n\t\t}\n\t\tif (b < 0) {\n\t\t\tb *= -1;\n\t\t}\n\n\t\t// ensure a > b\n\t\tif (a < b) {\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\t// a = b * (a / b) + (a % b)\n\t\t// then b = (a % b) * ((a % b) / b) + (a % b) % b\n\t\t// by the division algorithm. Execute until some\n\t\t// such product has no remainder, the remainder of\n\t\t// the previous equation is GCD(a, b).\n\t\twhile (b > 0) {\n\t\t\tint temp = b;\n\t\t\tb = a % b;\n\t\t\ta = temp;\n\t\t}\n\t\treturn a;\n\t}", "public static int gcd(int a, int b) {\n int t = 0;\n while (b != 0) {\n t = b;\n b = a % b;\n a = t;\n }\n return Math.abs(a);\n }", "public static int gcd(int a, int b){\r\n return a>b ? lnko_ordered(a,b) : lnko_ordered(b,a);\r\n }", "long modInverse(long a, long m) \r\n { \r\n\t\t long m0 = m; \r\n long y = 0, x = 1; \r\n \r\n if (m == 1) \r\n return 0; \r\n \r\n while (a > 1) \r\n { \r\n // q is quotient \r\n \tlong q = a / m; \r\n \r\n \tlong t = m; \r\n \r\n // m is remainder now, process \r\n // same as Euclid's algo \r\n m = a % m; \r\n a = t; \r\n t = y; \r\n \r\n // Update x and y \r\n y = x - q * y; \r\n x = t; \r\n } \r\n \r\n // Make x positive \r\n if (x < 0) \r\n x += m0; \r\n \r\n return x; \r\n }", "public static int GCD(int a, int b){\r\n if (b == 0){\r\n return a;\r\n }\r\n return GCD(b,a%b);\r\n }", "private int gcd(int x, int y) {\n if (y == 0) {\n return x;\n }\n return gcd(y, x % y);\n }", "private BigInteger gcd(BigInteger n, BigInteger d)\n\t\t{\n\t\t\t// Returns the absolute values of the BigInteger\n\t\t\tBigInteger n1 = n.abs();\n\t\t\tBigInteger n2 = d.abs();\n\t\t\t\n\t\t\t// If n2 equals 0 return n1\n\t\t\tif(n2.equals(BigInteger.ZERO)){\n\t\t\t\treturn n1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t// else recursively return the gcd of n2 and n1%n2\n\t\t\t\treturn gcd(n2,n1.mod(n2));\n\t\t\t}\n\t\t}", "public static int GCD(int a, int b){\n\t\tif(b == 0) return a;\n\t\treturn GCD(b, a%b);\n\t}", "private int getGCD(int a, int b) {\r\n if ( b == 0 ) {\r\n return a;\r\n } else {\r\n return getGCD(b, a % b);\r\n }\r\n }", "private int A(int n, int m) {\n int res = 1;\n for (int i = 0; i < m; n++)\n res *= n;\n return res;\n }", "public static Integer gcd(Integer p, Integer q) {\n\t\tif (q == 0) {\n\t\t return p;\n\t\t}\n\t\treturn gcd(q, p % q);\n\t}", "public int gcd(int e, int phi) {\r\n if(e == 0)\r\n return phi; \r\n else\r\n return gcd(phi % e, e);\r\n }", "@Test\n public void testReduceToGCD_0_0() {\n NaturalNumber n = new NaturalNumber2(0);\n NaturalNumber m = new NaturalNumber2(0);\n CryptoUtilities.reduceToGCD(n, m);\n assertEquals(\"0\", n.toString());\n assertEquals(\"0\", m.toString());\n }", "private int getGCD(int a, int b) {\n \n /** This ensures the larger of the two numbers is in a */\n if(a < b){\n /** Temp variable used for swapping two variables */\n int temp = a;\n a = b;\n b = temp;\n }\n\n /** The remainder needs to be stored to recursively find the gcd */\n int remainder;\n if((remainder = a % b) == 0) {\n return b;\n } else {\n return getGCD(b, remainder);\n }\n }", "public void reduce(){\r\n int num = numerator;\r\n int denom = denominator;\r\n int greatest;\r\n \r\n // Find the greater of numerator and denominator\r\n if(numerator < 0){\r\n num = -numerator;\r\n }\r\n if(num > denom){\r\n greatest = num;\r\n }\r\n else\r\n greatest = denom;\r\n \r\n // Find the GCD\r\n int gcd = 0;\r\n // starting from the largest\r\n for(int i = greatest; i > 1; i--){\r\n if((numerator % i == 0) && (denominator % i == 0)){\r\n gcd = i;\r\n break;\r\n }\r\n }\r\n // factor out the gcd in both the numerator and denominator\r\n if(gcd != 0){\r\n numerator /= gcd;\r\n denominator /= gcd;\r\n }\r\n }", "public static int LCM(int a, int b){\r\n int lowest = a * b / GCD(a,b);\r\n //System.out.print(lowest);\r\n return lowest;\r\n }", "private static int calculateLCM(int a, int b){\n\t\tint gcd = calculateGCD(a, b);\n\t\tint lcm = (a/gcd)*b; //same as a*b/gcd but a*b could be very large number so avoiding that\n\t\treturn lcm;\n\t}", "Proof divides(int n, int m) {\n return introduceExists(divisionRelation(intToLit(n), intToLit(m)), mulDistr(n, m / n));\n }", "static long lcm(long a, long b) \n\t\t{ \n\t\t\treturn (a*b)/gcd(a, b); \n\t\t}", "public static void launchEuclidAlgorithmForGCD(int a, int b) {\n int number = Math.max(a, b);\n int divisor = Math.min(a, b);\n int quot = number / divisor;\n int rem = number - (divisor * quot);\n while (rem != 0) {\n System.out.println(number+\" = \"+divisor+\"(\"+quot+\") + \"+rem);\n number = divisor;\n divisor = rem;\n quot = number / divisor;\n rem = number - (divisor * quot);\n }\n System.out.println(number+\" = \"+divisor+\"(\"+quot+\") + \"+rem);\n System.out.println(\" \\u2234 gcd(\"+a+\", \"+b+\") = \"+divisor);\n }", "private static int findGcd(int a, int b) {\n\n\t\tint low = a < b ? a : b;\n\t\tint high = a < b ? b : a;\n\n\t\tif (high % low == 0) {\n\t\t\treturn low;\n\t\t} else {\n\t\t\treturn findGcd(high, high % low);\n\t\t}\n\t}", "private static int findLCM(int a, int b) {\n return a * (b / findGCD(a, b));\n }", "private static long f(long m) {\n\t\tlong k = 1;\r\n\t\tfor (long i=1; i<=m; i++){\r\n\t\t\tk *= i;\r\n\t\t}\r\n\t\treturn k;\r\n\t}", "@Test\n\tpublic void gcdOfFiboNumsTest() {\n\n\t\tAssert.assertTrue(ifn.gcdOfFiboNums(3, 12) == 2);\n\t}", "private static double G1Prime(double x, double M) {\n double G1PrimeVal = 0.0;\n if (x >= 0 && x <= 1) {\n double denom = ((Math.PI / M) * Math.cos((Math.PI / M))) - Math.sin((Math.PI / M));\n double num = -((Math.PI / M) * Math.cos((Math.PI / M))) + ((Math.PI / M) * Math.cos((Math.PI / M) - ((2.0 * Math.PI / M) * x)));\n G1PrimeVal = num / denom;\n }\n return G1PrimeVal;\n }", "private static int greatestCommonDivisor(int alpha, int beta){\n\n\t\talpha = Math.abs(alpha); // take absolute values of operands\n\t\tbeta = Math.abs(beta);\n\t\n\t\tif (beta == 0) // base case\n\t \treturn alpha;\n\t\telse{ // induction step\n\t\t\tint remainder = alpha % beta;\n\t\t\n\t\t\treturn greatestCommonDivisor(beta, remainder);\n\t }\n }", "Proof notDivides(int n, int m) {\n return introduceNotExists(var(\"z\"), notDivides(n, m, var(\"z\")));\n }", "private void reduce() {\n /** The fraction is equal to 0. The numerator is 0 in this case */\n if(this.numerator == 0)\n this.denominator = 1;\n /** The numerator and denominator are not equal */\n else if (this.numerator != this.denominator) {\n\n /** The greatest common divisor of the numerator and denominator of this fraction */\n int gcd = getGCD(Math.abs(this.numerator), Math.abs(this.denominator));\n\n /** There is a greatest common divisor greater than 1 */\n if (gcd > 1) {\n this.numerator /= gcd;\n this.denominator /= gcd;\n }\n } \n /** The fraction is equal to 1 */\n else {\n this.numerator = 1;\n this.denominator = 1;\n }\n }", "long perm(int n, int m, long mod) {\n long result = 1;\n for (int i = n - m + 1; i <= n; ++i) {\n result = result * i % mod;\n }\n return result;\n }", "private RunGreatestCommonDivisor() {\r\n\t}", "private int mad(K k, int m) {\n Random rand = new Random();\n /* Select the next prime number greater than m */\n int p = nextPrime(m);\n /* Choose two numbers between 1 and m - 1 */\n int a = rand.nextInt(m) + 1;\n int b = rand.nextInt(m) + 1;\n int index = ((a * k.hashCode() + b) % p) % m;\n return index;\n }", "int gcd(int x,int y)\n\t{\n\t\tif(x>0 && y>0)\n\t\t{\n\t\t\twhile(x!=y)\n\t\t\t{\n\t\t\t\tif(x>y) //If number1>number2\n\t\t\t\t\treturn(gcd(x-y,y)); \n\t\t\t\telse //If number2>number1 \n\t\t\t\t\treturn(gcd(y-x,x));\n\t\t\t}\n\t\t\treturn x; //Return final calculated GCD\n\t\t}\n\t\telse\n\t\t\treturn -1; //If user input is a negative number\n\t}", "public static int gcf(int num, int denom) {\n \tint number=1;\t//declare num to equal 1\t\r\n\t\tif(denom<0) { //if denom is negative, multiply by -1 to get a positive denom\r\n\t\t\tdenom *= -1;\r\n\t\t}\r\n\t\tif(num<0) {\t//if the num is negative multiply it by -1 to make it positive\r\n\t\t\tnum *= -1;\r\n\t\t}\r\n\t\tfor(int i = 1; i <= num && i <= denom; i++) {\t//make a for loop that will test to see if i <=x&y (iterate to lowest # possible) to find the gcd\r\n\t\t\tif (isDivisibleBy(num,i) == true && isDivisibleBy(denom,i)==true) { \t// add 1 to i each loop; uses the method to check if i is factor of both integers\r\n\t\t\t\tnumber = i;\t//make num equal to i\r\n\t\t\t}\t\r\n\t\t}\r\n\t\treturn number; //return the number\r\n\t}", "public static int gcd(int a, int b) {\n return BigInteger.valueOf(a).gcd(BigInteger.valueOf(b)).intValue();\n }", "public static int findGCF(int a, int b) {\r\n\t\tint GCF = 1;\r\n\t\tfor (int i = 1; i <= Math.abs(a); i++) {\r\n\t\t\t// loop to find greatest common factor\r\n\t\t\tif (((a % i) == 0) && ((b % i) == 0)) {\r\n\t\t\t\tGCF = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn GCF;\r\n\t}", "public static long findNum(long m) {\n if (m > 0 && m < Long.MAX_VALUE) {\n /**\n * Algo:\n *\n * (1 pow 3) = 1 ---> this will be the case, if input \"m\" is 1 (then result \"n\" = 1)\n * (2 pow 3) + (1 pow 3) = 9 ---> if input \"m\" is 9 (then result \"n\" = 2)\n * (3 pow 3) + (2 pow 3) + (1 pow 3) = 36 ---> if input \"m\" is 36 (then result \"n\" = 3)\n * (4 pow 3) + (3 pow 3) + (2 pow 3) + (1 pow 3) = 100 ---> if input \"m\" is 100 (then result \"n\" = 4)\n *\n *\n * Let's start with counter i = 1;\n * calculate m - (i pow 3), then if result is 0 then n = i\n *\n * Example, consider m = 9,\n * store m in some variable ---> result = 9\n * calculate result - (1 pow 3) = 8, then return i if result = 0, if not increment i\n * calculate result - (2 pow 3) = 0, then return i if result = 0, if not increment i\n *\n * continue this loop until result = 0, in any step if result < 0, then exit from loop and return -1\n */\n\n long result = m;\n for (int i = 1; i < Integer.MAX_VALUE; i++) {\n result = result - ((long) Math.pow(i, 3));\n if (result < 0) {\n break;\n } else if (result == 0) {\n return i;\n }\n }\n\n }\n return -1;\n }", "public static void main(String[] args){\n int[] testNumbers = {12, 4, 12, 5, -16, 14, 0}; \n for(int i = 1; i < testNumbers.length; i++)\n System.out.println(gcdRecursive(testNumbers[i-1], testNumbers[i]));\n for(int i = 1; i < testNumbers.length; i++)\n System.out.println(gcdLoop(testNumbers[i-1], testNumbers[i])); \n \n }", "private static BigInteger comprime(BigInteger input) {\n \t\n \t//krenemo od dva\n BigInteger candidate = BigInteger.valueOf(2);\n while (true) {\n \t\n \t//kada nadjemo odgovarajuci vratimo ga\n if (input.gcd(candidate).equals(BigInteger.ONE)) {\n return candidate;\n }\n candidate = candidate.add(BigInteger.ONE);\n }\n }", "private void reduce() {\n int gcd = gcd(this.numerator, this.denominator);\n this.numerator = this.numerator / gcd;\n this.denominator = this.denominator / gcd;\n }", "public int R_M(){\n\t\tBigInteger nminus1=n.subtract(BigInteger.ONE);\n\t\tdo{\n\t\t\tif(nminus1.mod(two.pow(a)).equals(BigInteger.ZERO)){\n\t\t\t\ttable.add(a);\n\t\t\t}\n\t\t\titerator++;\n\t\t\ta++;\n\t\t}while(!(two.pow(a).compareTo(n)>0));\n\t\t\n\t\ta=table.get(table.size()-1);\n\t\tBigInteger m=nminus1.divide(two.pow(a));\n\t\tint wlen=n.bitLength();\n\t\tBigInteger b;\n\t\tBigInteger z;\n\t\tfor(int i=0;i<iterations;i++){\n\t\t\tint straznik=0;\n\t\t\tint straznik1=0;\n\t\t\tdo{\n\t\t\t b=new BigInteger(wlen,new Random());\n\t\t\t}while(!(b.compareTo(BigInteger.ONE)>0) && !(b.compareTo(nminus1)<0));\n\t\t\tz=b.modPow(m, n);\n\t\t\tif(z.equals(BigInteger.ONE) || z.equals(nminus1)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int j=0;j<a-1;j++){\n\t\t\t\t\tz=z.pow(2).mod(n);\n\t\t\t\t\tif(z.equals(nminus1)){\n\t\t\t\t\t\tstraznik++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(z.equals(BigInteger.ONE)){\n\t\t\t\t\t\tstraznik1++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(straznik==1){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(straznik1==1){\n\t\t\t\t\tgetComposite();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\tgetComposite();\n\t\t\treturn 0;\n\t\t}\n\t\tgetProbablyPrime();\n\t\treturn 1;\n\t\t}", "long select(int n, int m, long mod) {\n long[][] dp = new long[n + 1][m + 1];\n for (int i = 1; i <= n; ++i) {\n dp[i][0] = 1;\n if (i <= m) {\n dp[i][i] = 1;\n }\n for (int j = 1; j < i && j <= m; ++j) {\n dp[i][j] = (dp[i - 1][j] + dp[i - 1][j - 1]) % mod;\n }\n }\n return dp[n][m];\n }", "private int findGCD(int n1, int n2) {\n //n1 and n2 must always be positive for this GCD algorithm\n n1 = Math.abs(n1);\n n2 = Math.abs(n2);\n\n //continue through the loop if n2 is greater than 0\n while (n2 > 0) {\n int remainder = n1 % n2;\n //n1 will keep track of the GCD value\n n1 = n2;\n //n2 will keep track of the remainder\n n2 = remainder;\n }\n //setting n1 is the gcd value\n return n1;\n }", "static long getGCD(long x, long y) {\n long a = Math.max(x, y);\n long b = Math.min(x, y);\n\n while (b != 0) {\n long r = a % b;\n a = b;\n b = r;\n }\n\n return a;\n }", "private static double gammq(double a, double x) {\r\n double gamser, gammcf;\r\n \r\n //cout <<\"a \" << a<< \" x \"<<x<<endl;\r\n if(x < 0.0 || a <= 0.0){\r\n // nerror(\"Invalid arguments in routine gammq\");\r\n }\r\n if( x < (a + 1.0)){\t//use the series representation\r\n gamser = gser(a, x);\r\n return 1.0 - gamser;\t\t//and take its complement\r\n } else {\r\n gammcf = gcf(a, x); //use the continued fraction representation\r\n return gammcf;\r\n }\r\n }", "public void reduce() {\n\tint g = this.gcd();\n\tif ( g != 0 ) {\n\t numerator /= g;\n\t denominator /= g;\n\t}\n }", "public int gcd(int x, int y) {\n if (x < y) return gcd(y, x);\n return y == 0 ? x : gcd(y, x % y);\n }", "public static int mcm(int a, int b, int c) {\r\n\t\tint num1,i;\r\n\t\tnum1 = a; \r\n\t if ( b > num1) {\r\n\t num1 = b;\r\n\t \t}\r\n\t if ( c > num1 ) {\r\n\t num1 = c;\r\n\t }\r\n\t i = num1;\r\n\t while ((i % a != 0) || (i % b != 0) || (i % c != 0))\r\n\t i++;\r\n\t\tSystem.out.println(\"--------- Ana, Bernardo y Carlos se reencontraran en la universidad en: \"+i+\" dias. -------------\");\r\n\t\treturn a;\r\n\t}", "public static int lcm(int a, int b) {\r\n\t\treturn a * (b / gcd(a, b));\r\n\t}", "static int countWaysUtil(int n, int m) \n\t { \n\t int res[] = new int[n]; \n\t res[0] = 1; res[1] = 1; \n\t for (int i=2; i<n; i++) \n\t { \n\t res[i] = 0; \n\t for (int j=1; j<=m && j<=i; j++) \n\t res[i] += res[i-j]; \n\t } \n\t return res[n-1]; \n\t }", "public static int GCD(int A, int B) {\n while (B != 0) {\n int remainder = A % B;\n A = B;\n B = remainder;\n }\n\n return A;\n }", "private static double gcf(double a, double x) {\r\n double gammcf;\r\n double gln;\r\n int i;\r\n double an, b, c, d, del, h;\r\n \r\n gln = gammln(a);\r\n b = x + 1.0 - a;\r\n c = 1.0/FPMIN;\r\n d = 1.0/b;\r\n h = d;\r\n \r\n for(i = 1; i <= ITMAX; i++) //iterate to convergence\r\n {\r\n an = -i*(i - a);\r\n b += 2.0; //Set up for evaluating continued\r\n d = an*d + b; //fraction by modified Lentz's method with b_0 = 0.\r\n if(Math.abs(d) < FPMIN) {\r\n d = FPMIN;\r\n }\r\n c = b + an/c;\r\n if(Math.abs(c) < FPMIN) {\r\n c = FPMIN;\r\n }\r\n d = 1.0/d;\r\n del = d*c;\r\n h *= del;\r\n \r\n if(Math.abs(del - 1.0) < EPS) {\r\n break;\r\n }\r\n }\r\n if (i > ITMAX){\r\n // nerror(\"a too large, ITMAX too small in continued fraction gamma function\");\r\n }\r\n return gammcf = Math.exp(-x + a*Math.log(x) - (gln))*h; //Put factors in front\r\n \r\n }", "static int modPow(int b, int p, int m) {\n b = b % m;\n int res = 1;\n\n while (p > 0) {\n if (p % 2 == 1)\n res = (res * b) % m;\n p /= 2;\n b = b * b % m;\n }\n return res;\n }", "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "private static double G1(double x, double M) {\n double G1Val = 0.0;\n if (x >= 0 && x <= 1) {\n double denom = ((Math.PI / M) * Math.cos((Math.PI / M))) - Math.sin((Math.PI / M));\n double num = (0.5 * (((2.0 * Math.PI / M) * Math.cos((Math.PI / M))) - Math.sin((Math.PI / M))))\n - ((Math.PI / M) * Math.cos((Math.PI / M)) * x) - (0.5 * Math.sin((Math.PI / M) - ((2.0 * Math.PI / M) * x)));\n G1Val = num / denom;\n }\n return G1Val;\n }", "static int lcm(int num1, int num2, int hcf){\n return (num1*num2)/hcf;\n }", "public static void main (String[] args){\n Scanner in=new Scanner(System.in);\n int n1=in.nextInt();\n int n2=in.nextInt();\n int n3=in.nextInt();\n int ans=gcd(n1,n2,n3);\n System.out.println(ans);\n }", "public int[] findAnyPairIndexesWhileGCDMaximized() {\n if (seq.length < 2) {\n return null;\n }\n\n int g = -1;\n for (int i = m; i >= 1; i--) {\n if (cntOfMultiple[i] >= 2) {\n g = i;\n break;\n }\n }\n\n IntegerArrayList ans = new IntegerArrayList(2);\n for (int i = 0; i < seq.length && ans.size() < 2; i++) {\n if (seq[i] % g == 0) {\n ans.add(i);\n }\n }\n return ans.toArray();\n }", "private int countPermuation(int n, int m){\n\t\tint res = 1;\n\t\tfor(int i = n - m + 1; i <= n; i++){\n\t\t\tres *= i;\n\t\t}\n\t\treturn res;\n\t}", "private void simplify(){\n\n\t\tint gcd;\n\t\twhile(true){ \n\t \tgcd = greatestCommonDivisor(myNumerator, myDenominator);\n\t \tif (gcd ==1) return;\n\t \tmyNumerator = myNumerator / gcd;\n\t \tmyDenominator = myDenominator / gcd;\n\t\t}\n }", "Rational add(Rational p)\n {\n //get gcd then multiply gcd by the denominator of both then just add both numerator\n //https://www.mathsisfun.com/fractions_addition.html formulae for fraction\n\n Rational firstarg =new Rational();\n //firstargument being used to store the instance variable so i can call lowest form it's just the most convienet way that i'm aware of of being able to call the method on the insatnce variables\n firstarg.numerator=numerator;\n firstarg.denominator=denominator;\n\n firstarg=firstarg.lowestform();\n p=p.lowestform();\n //need to get it in it's lowest form before you can work with it\n int tempgcd=gcd(firstarg.denominator,p.denominator);\n if(firstarg.denominator==p.denominator)\n {\n // if both denominators are the same just gott add the numerator\n p.numerator=p.numerator+firstarg.numerator;\n return p;\n }\n else if(tempgcd==1)\n {\n int tempdenominator=p.denominator;\n\n p.denominator=firstarg.denominator*p.denominator;\n p.numerator=p.numerator*firstarg.denominator;\n\n //calculate the second fraction\n firstarg.numerator=firstarg.numerator*tempdenominator;\n firstarg.denominator=firstarg.denominator*tempdenominator;\n\n //now just add the numerators\n p.numerator=p.numerator+firstarg.numerator;\n\n return p;\n }\n else if(tempgcd>1)\n {\n\n p.denominator=tempgcd*p.denominator;\n p.numerator=p.numerator*tempgcd;\n //calculate the second fraction by getting the gcd and multiplying it by the top and bottom of bot fractions\n firstarg.numerator=firstarg.numerator*tempgcd;\n firstarg.denominator=firstarg.denominator*tempgcd;\n //now just add the numerators\n p.numerator=p.numerator+firstarg.numerator;\n\n return p;\n }\n return null;\n }", "int solve() {\n dp[0][0] = 1;\n IntStream.rangeClosed(1, m).forEach(i ->\n IntStream.rangeClosed(0, n).forEach(j ->\n dp[i][j] = j - i >= 0 ?\n (dp[i - 1][j] + dp[i][j - i]) % M :\n dp[i - 1][j]));\n return dp[m][n];\n }", "private static int findGCD(int number1, int number2) {\r\n\t\t// base case\r\n\t\tif (number2 == 0) {\r\n\t\t\treturn number1;\r\n\t\t}\r\n\t\treturn findGCD(number2, number1 % number2);\r\n\t}", "private Proof notDividesInductionStep(int n, int m, Expression z) {\n if (n <= m) {\n return notDividesStepLessEq(n, m, z);\n } else {\n return notDividesStepGreater(n, m, z);\n }\n }", "private static int pair_GCF(int a, int b) {\n int t;\n while (b != 0) {\n t = a;\n a = b;\n b = t % b;\n }\n return a;\n }", "public String solve(long n, long a, long b, long c, long d, long x0, long y0, long m)\n {\n long[] count = new long[9];\n long x = x0;\n long y = y0;\n for (long t = 0; t < n; t++)\n {\n// System.out.println(x + \", \" + y);\n int i = (int) (x % 3) * 3 + (int) (y % 3);\n count[i]++;\n x = (a * x + b) % m;\n y = (c * y + d) % m;\n }\n\n long totalCount = 0;\n for (int i1 = 0; i1 < 9; i1++)\n {\n long count1 = count[i1];\n if (count1 == 0)\n {\n continue;\n }\n count[i1]--;\n for (int i2 = i1; i2 < 9; i2++)\n {\n long count2 = count[i2];\n if (count2 == 0)\n {\n continue;\n }\n count[i2]--;\n int x1 = i1 / 3;\n int y1 = i1 % 3;\n int x2 = i2 / 3;\n int y2 = i2 % 3;\n int x3 = (3 - (x1 + x2) % 3) % 3;\n int y3 = (3 - (y1 + y2) % 3) % 3;\n int i3 = (x3 % 3) * 3 + (y3 % 3);\n long count3 = count[i3];\n if (i3 >= i2 && count3 > 0)\n {\n // either i1==i2==i3 OR i1!=i2!=i3; you can never have only two i's the same.\n if (i1 == i2 && i2 == i3)\n {\n totalCount += calcCombinations(count1);//the first count value is the genuine count for that x,y coordinate.\n }\n else\n {\n totalCount += count1 * count2 * count3;\n }\n }\n count[i2]++;\n }\n count[i1]++;\n }\n\n return String.valueOf(totalCount);\n }", "public static void main(String[] args) {\n\t\tint a = Integer.parseInt(args[0]);\n\t\tint c = Integer.parseInt(args[1]);\n\t\tint m = Integer.parseInt(args[2]);\n\t\tint x0 = Integer.parseInt(args[3]);\n\t\tint n = Integer.parseInt(args[4]);\n\n\t\t// conditions 1, 2, and 3 as defined in header comment\n\t\tboolean condition1 = (a > 0 && c > 0);\n\t\tboolean condition2 = (a < m && c < m && x0 < m);\n\t\tboolean condition3 = gcd(c, m) == 1;\n\n\t\t// with conditions checked, and since x % y = x % (-y)\n\t\t// under java's modulus operator, we will take the\n\t\t// absolute value of m to prevent any possible\n\t\t// exceptions resulting from negative values for m\n\t\tif (m < 0) {\n\t\t\tm *= -1;\n\t\t}\n\n\t\t// create 10 buckets to tally the LCF's distribution\n\t\t// each bucket is initialized to 0\n\t\tint[] distribution = new int[10];\n\n\t\t// find distribution\n\t\tint x = x0; // function initial value\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tx = (a * x + c) % m; // x has value x_i\n\n\t\t\t// since we want outputs from 0 to m-1\n\t\t\t// inclusive, and since java's modulus\n\t\t\t// operator produces negative output only\n\t\t\t// when the dividend is negative, and since\n\t\t\t// negative values for x_0 are acceptable;\n\t\t\t// we must perform negative checks on x\n\t\t\tif (x < 0) { // -m < x < 0\n\t\t\t\tx += m; // 0 < x < m\n\t\t\t}\n\n\t\t\t// find bucket for this x\n\t\t\tint bucket = 9;\n\n\t\t\t// since x < m, 10x < 10m\n\t\t\t// in this way, each bucket has a range\n\t\t\t// differing by at most 1 from each other\n\t\t\t// bucket\n\t\t\twhile (10 * x < bucket * m) {\n\t\t\t\tbucket--;\n\t\t\t}\n\t\t\t// increment count for the bucket of this x\n\t\t\tdistribution[bucket]++;\n\t\t}\n\n\t\t// calculate V as defined in header comment\n\t\tdouble v = pearsonChiSquare(distribution, n);\n\n\t\t// assemble output\n\t\tString output = \"\";\n\n\t\t// report condition check results\n\t\tif (condition1 && condition2 && condition3) {\n\t\t\toutput += \"Conditions satisfied\";\n\t\t} else { // at least one condition not satisfied\n\t\t\tif (!condition1) {\n\t\t\t\toutput += \"Condition 1 not satisfied\";\n\t\t\t}\n\n\t\t\tif (!condition2) {\n\t\t\t\t// check if line break needed\n\t\t\t\tif (!condition1) {\n\t\t\t\t\toutput += \"\\n\";\n\t\t\t\t}\n\n\t\t\t\toutput += \"Condition 2 not satisfied\";\n\t\t\t}\n\n\t\t\tif (!condition3) {\n\t\t\t\t// check if line break needed\n\t\t\t\tif (!(condition1 && condition2)) {\n\t\t\t\t\toutput += \"\\n\";\n\t\t\t\t}\n\n\t\t\t\toutput+= \"Condition 3 not satisfied\";\n\t\t\t}\n\t\t}\n\n\n\t\t// report V and decide function suitability\n\n\t\t// format V\n\t\tDecimalFormat fourPlaces = new DecimalFormat(\"0.0000\");\n\t\toutput += \"\\nV = \" + fourPlaces.format(v) + \"; \";\n\n\t\t// report conclusion\n\t\toutput += \"this function is \";\n\t\tif (v >= 3.325 && v <= 16.92) {\n\t\t\toutput += \"ok\";\n\t\t} else if (v >= 2.088 && v <= 21.67) {\n\t\t\toutput += \"suspicious\";\n\t\t} else {\n\t\t\toutput += \"rejected\";\n\t\t}\n\n\t\t// print report to standard output\n\t\tSystem.out.println(output);\n\t}", "private Proof notDivides(int n, int m, Expression expression) {\n Expression litMPrev = intToLit(m - 1); //[m - 1]\n if (n == 0) {\n return notDividesBase(expression, litMPrev); //|- 0 * z = [m - 1]\n }\n Variable x = var(\"x\");\n Expression litN = intToLit(n); //[n]\n Proof noDivi0 = notMulZero(litN, litMPrev); //![n] * 0 = [m]\n Expression litM = intToLit(m); //[m]\n Expression not = not(equal(multi(litN, x), litM)); //![n] * x = [m]\n Proof nextStep = notDividesInductionStep(n, m, x); //![n] * x' = [m]\n Proof imWeak = implLeftWeakness(not, nextStep); //![n] * x = [m] -> ![n] * x' = [m]\n return inductConclusion(x, expression, noDivi0, imWeak); //![n] * 0 = [m] & @z(![n] * x = [m] -> ![n] * x' = [m]) -> !([n] * x = [m])\n }", "public int getGreatestCommonDivisor(int first, int second) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tint GCD = 0;\n\t\tboolean found = false;\n\t\tArrayList<Integer> firstDivisor = new ArrayList<Integer>();\n\t\tArrayList<Integer> secondDivisor = new ArrayList<Integer>();\n\t\tif(first < 10 || second < 10) {\n\t\t\tGCD = -1;\n\t\t}\n\t\telse {\n\t\t\tfor(int i = 1; i <= first; i++) {\n\t\t\t\tif(first % i == 0) {\n\t\t\t\t\tfirstDivisor.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 1; i <= second; i++) {\n\t\t\t\tif(second % i ==0) {\n\t\t\t\t\tsecondDivisor.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tfor(Integer i: firstDivisor) {\n//\t\t\t\tSystem.out.println(i);\n//\t\t\t}\n//\t\t\tfor(Integer i: secondDivisor) {\n//\t\t\t\tSystem.out.println(i);\n//\t\t\t}\n\t\t\t\n\t\t\tif(firstDivisor.size() >= secondDivisor.size()) {\n\t\t\t\tGCD = firstDivisor.get(0);\n\t\t\t\tfor(int i =0; i < firstDivisor.size(); i++) {\n\t\t\t\t\tfor(int j =0; j < secondDivisor.size(); j++) {\n\t\t\t\t\t\tif(secondDivisor.get(j)==firstDivisor.get(i)) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(found == true) {\n\t\t\t\t\t\tif(firstDivisor.get(i) >= GCD) {\n\t\t\t\t\t\t\tGCD = firstDivisor.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfound = false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(secondDivisor.size() >= firstDivisor.size()) {\n\t\t\t\tGCD = secondDivisor.get(0);\n\t\t\t\tfor(int i =0; i < secondDivisor.size(); i++) {\n\t\t\t\t\tfor(int j =0; j < firstDivisor.size(); j++) {\n\t\t\t\t\t\tif(firstDivisor.get(j)==secondDivisor.get(i)) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(found == true) {\n\t\t\t\t\t\tif(secondDivisor.get(i) >= GCD) {\n\t\t\t\t\t\t\tGCD = secondDivisor.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfound = false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t//System.out.println(GCD);\n\t\treturn GCD;\n\t}", "public int[] findAnyPairIndexesWhileLCMMinimized() {\n if (seq.length < 2) {\n return null;\n }\n int size = 0;\n for (int i = 1; i <= m; i++) {\n size += m / i;\n }\n\n IntegerMultiWayDeque deque = new IntegerMultiWayDeque(m + 1, size);\n for (int i = 1; i <= m; i++) {\n for (int j = i; j <= m; j += i) {\n if (!indexesOfSeq.isEmpty(j)) {\n deque.addLast(i, j / i);\n }\n }\n }\n\n long lcm = INF;\n int v1 = 0;\n int v2 = 0;\n\n for (int i = 1; i <= m; i++) {\n if (!indexesOfSeq.isEmpty(i) && indexesOfSeq.peekFirst(i) != indexesOfSeq.peekLast(i)) {\n lcm = v1 = v2 = i;\n break;\n }\n }\n\n IntegerVersionArray iva = new IntegerVersionArray(m + 1);\n IntegerDequeImpl stack = new IntegerDequeImpl(m);\n for (int i = 1; i <= m; i++) {\n iva.clear();\n stack.clear();\n while (!deque.isEmpty(i)) {\n int last = deque.removeFirst(i);\n factorize(last);\n int total = ie(iva, allFactors.size() - 1, 1, 0);\n if (total > 0) {\n int pop = 0;\n while (total > 0) {\n pop = stack.removeLast();\n if (GCDs.gcd(pop, last) == 1) {\n total--;\n }\n add(iva, pop, -1);\n }\n long l = LCMs.lcm(last, pop) * i;\n if (l < lcm) {\n lcm = l;\n v1 = last * i;\n v2 = pop * i;\n }\n }\n add(iva, last, 1);\n stack.addLast(last);\n }\n }\n\n return new int[]{indexesOfSeq.peekFirst(v1), indexesOfSeq.peekLast(v2)};\n }", "public static BigInteger lcm(String a, String b) \n\t\t{\n\t\t\tBigInteger s = new BigInteger(a); \n\t\t\tBigInteger s1 = new BigInteger(b); \n\n\t\t\t// calculate multiplication of two bigintegers \n\t\t\tBigInteger mul = s.multiply(s1); \n\n\t\t\t// calculate gcd of two bigintegers \n\t\t\tBigInteger gcd = s.gcd(s1); \n\n\t\t\t// calculate lcm using formula: lcm * gcd = x * y \n\t\t\tBigInteger lcm = mul.divide(gcd); \n\t\t\treturn lcm; \n\t\t}" ]
[ "0.7717711", "0.76580197", "0.75578433", "0.7540945", "0.73892605", "0.72917897", "0.721865", "0.7160687", "0.6791751", "0.67709833", "0.6647628", "0.66226494", "0.6606749", "0.66059357", "0.64897835", "0.64283854", "0.64011943", "0.6376706", "0.63547117", "0.62892634", "0.62457126", "0.6178241", "0.6171844", "0.61613536", "0.61594415", "0.61544", "0.6110486", "0.60806954", "0.60755694", "0.6025549", "0.6006623", "0.5998554", "0.5995645", "0.59761053", "0.59625703", "0.5959269", "0.5943544", "0.59278023", "0.5861674", "0.58574224", "0.5845394", "0.5844286", "0.57543766", "0.574987", "0.57354796", "0.56900585", "0.566905", "0.5632821", "0.5623221", "0.56124973", "0.56014675", "0.5574098", "0.55531275", "0.5510353", "0.55040735", "0.54975384", "0.5456886", "0.5433692", "0.54276067", "0.5426604", "0.54232013", "0.5419018", "0.53649205", "0.536158", "0.5359386", "0.5323022", "0.53140754", "0.53099215", "0.5308548", "0.5294724", "0.52916676", "0.5280911", "0.5280883", "0.5265716", "0.52631843", "0.5241517", "0.52301705", "0.52215755", "0.51977676", "0.51900184", "0.51807165", "0.5179216", "0.5175174", "0.5174398", "0.5173886", "0.5168134", "0.51657856", "0.5157678", "0.5146316", "0.51400477", "0.5134055", "0.51328725", "0.5123407", "0.5119976", "0.5116205", "0.51015466", "0.5086897", "0.508609", "0.50858897", "0.5084987", "0.5077084" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onResume() { super.onResume(); }
{ "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
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
public static DataTransferConfig get(String name, Output<String> id, @Nullable DataTransferConfigState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DataTransferConfig(name, id, state, options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @Transactional\n public State getState(long id) {\n Optional<State> result = stateRepository.findById(id);\n State state = null;\n if (result.isPresent()) {\n state = result.get();\n }\n else {\n throw new NotFoundException(\"Did not find state id: \" + id);\n }\n return state;\n }", "@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(\"/api/{id}/state\")\n \tpublic HttpEntity<String> getState(@PathVariable Long id, @RequestParam String ip, @RequestParam String name) {\n \t\tagentManagerService.requestShareAgentSystemDataModel(id);\n \t\treturn toJsonHttpEntity(agentManagerService.getAgentSystemDataModel(ip, name));\n \t}", "State getState(Long stateId);", "IDeviceState getDeviceState(UUID id) throws SiteWhereException;", "public UsState findByPrimaryKey(int id) throws UsStateDaoException;", "State findByPrimaryKey( int nIdState );", "Host getHostById(long aId) throws DaoException;", "State findByResource( int nIdResource, String strResourceType, int nIdWorkflow );", "@Override\n\tpublic Health getHealthInfo(String id) {\n\t\t RestTemplate restTemplate = new RestTemplate();\n\t\t \n\t\t Health healthInfo = restTemplate.getForObject(BASE_URL + HEALTH_STATUS_URL, Health.class, id);\n\t\t logger.debug(\"Employee Info :\" + healthInfo);\n\t\treturn healthInfo;\n\t}", "public State getStateWithID(final int id) {\n\t\tfinal Iterator<State> it = states.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tfinal State state = it.next();\n\t\t\tif (state.getID() == id) {\n\t\t\t\treturn state;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static EdgeCacheService get(String name, Output<String> id, @Nullable EdgeCacheServiceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new EdgeCacheService(name, id, state, options);\n }", "@GetMapping(\"/operational-heads/{id}\")\n @Timed\n public ResponseEntity<OperationalHeadDTO> getOperationalHead(@PathVariable Long id) {\n log.debug(\"REST request to get OperationalHead : {}\", id);\n Optional<OperationalHeadDTO> operationalHeadDTO = operationalHeadService.findOne(id);\n return ResponseUtil.wrapOrNotFound(operationalHeadDTO);\n }", "@Override\n public Workload get(@NotNull UUID id) throws InstanceNotFoundException {\n return workloadRepository.findById(id)\n .orElseThrow(new PersistentExceptionSupplier(new InstanceNotFoundException(id)));\n }", "@Transactional(readOnly = true) \n public CountryState findOne(Long id) {\n log.debug(\"Request to get CountryState : {}\", id);\n CountryState countryState = countryStateRepository.findOne(id);\n return countryState;\n }", "Object getProperty(Long id, String name) throws RemoteException;", "E find(final ID identifier) throws ResourceNotFoundException;", "public Resource getResource(long id) throws ResourceManagementException {\r\n ArgumentChecker.checkLongPositive(id, \"The id of resource to be retrieved\");\r\n Resource resource = this.port.getResource(id);\r\n //Each time when client receives a Resource from server, synchronize the properties map\r\n CopiedResource.syncProperties(resource);\r\n return resource;\r\n }", "Long getStateId(String stateName);", "@GetMapping(\"/hlds/{id}\")\n @Timed\n public ResponseEntity<Hld> getHld(@PathVariable Long id) {\n log.debug(\"REST request to get Hld : {}\", id);\n Optional<Hld> hld = hldRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(hld);\n }", "public IState getState(int id) {\n\t\treturn this.states.get(id);\n\t}", "public AbstractResource resource()\r\n {\r\n\t return this.resource_state;\r\n }", "private NodeState getNodeState(String nodeStateId) {\n \t\tNodeState result = null;\n\n \t\tif (nodeStateId != null) {\n \t\t\t// if NodeState doesn't exist, create it\n \t\t\tif (!nodeStates.containsKey(nodeStateId)) {\n \t\t\t\tresult = new NodeState();\n \t\t\t\tresult.setNodeStateId(nodeStateId);\n \t\t\t\tnodeStates.put(nodeStateId, result);\n \t\t\t} else {\n \t\t\t\tresult = nodeStates.get(nodeStateId);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}", "abstract State refinePseudoState (String kind, String name, String id);", "public UsState findByPrimaryKey(UsStatePk pk) throws UsStateDaoException;", "@GET\n @Consumes(MediaType.WILDCARD)\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"/{id}/state\")\n @ApiOperation(\n value = \"Gets the state for a RemoteProcessGroup\",\n response = ComponentStateEntity.class,\n authorizations = {\n @Authorization(value = \"Write - /remote-process-groups/{uuid}\")\n }\n )\n @ApiResponses(\n value = {\n @ApiResponse(code = 400, message = \"NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.\"),\n @ApiResponse(code = 401, message = \"Client could not be authenticated.\"),\n @ApiResponse(code = 403, message = \"Client is not authorized to make this request.\"),\n @ApiResponse(code = 404, message = \"The specified resource could not be found.\"),\n @ApiResponse(code = 409, message = \"The request was valid but NiFi was not in the appropriate state to process it. Retrying the same request later may be successful.\")\n }\n )\n public Response getState(\n @ApiParam(\n value = \"The processor id.\",\n required = true\n )\n @PathParam(\"id\") final String id) throws InterruptedException {\n\n if (isReplicateRequest()) {\n return replicate(HttpMethod.GET);\n }\n\n // authorize access\n serviceFacade.authorizeAccess(lookup -> {\n final Authorizable authorizable = lookup.getRemoteProcessGroup(id);\n authorizable.authorize(authorizer, RequestAction.WRITE, NiFiUserUtils.getNiFiUser());\n });\n\n // get the component state\n final ComponentStateDTO state = serviceFacade.getRemoteProcessGroupState(id);\n\n // generate the response entity\n final ComponentStateEntity entity = new ComponentStateEntity();\n entity.setComponentState(state);\n\n // generate the response\n return generateOkResponse(entity).build();\n }", "public Object lookup(String id) {\n return null;\n }", "@Override\n\tpublic ProductState getProductStateById(String id, String status) {\n\t\tlogger.info(\"productStateServiceMong get productState by Id : \" + id);\n\t\treturn productStateDAO.getProductStateById(id, status);\n\t}", "public HDict onReadById(HRef id)\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n if (LOG.isTraceOn())\r\n LOG.trace(\"onReadById \" + id);\r\n\r\n try\r\n {\r\n BComponent comp = tagMgr.lookupComponent(id);\r\n return (comp == null) ? null : tagMgr.createTags(comp);\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }", "@Override\n public State getState(String key) {\n\n CompositeKey ledgerKey = this.ctx.getStub().createCompositeKey(this.name, State.splitKey(key));\n\n byte[] data = this.ctx.getStub().getState(ledgerKey.toString());\n if (data != null) {\n State state = this.deserializer.deserialize(data);\n return state;\n } else {\n return null;\n }\n }", "protected StateVariable findRelatedStateVariable(String declaredName, String argumentName, String methodName) throws LocalServiceBindingException {\n/* 263 */ StateVariable relatedStateVariable = null;\n/* */ \n/* 265 */ if (declaredName != null && declaredName.length() > 0) {\n/* 266 */ relatedStateVariable = getStateVariable(declaredName);\n/* */ }\n/* */ \n/* 269 */ if (relatedStateVariable == null && argumentName != null && argumentName.length() > 0) {\n/* 270 */ String actualName = AnnotationLocalServiceBinder.toUpnpStateVariableName(argumentName);\n/* 271 */ log.finer(\"Finding related state variable with argument name (converted to UPnP name): \" + actualName);\n/* 272 */ relatedStateVariable = getStateVariable(argumentName);\n/* */ } \n/* */ \n/* 275 */ if (relatedStateVariable == null && argumentName != null && argumentName.length() > 0) {\n/* */ \n/* 277 */ String actualName = AnnotationLocalServiceBinder.toUpnpStateVariableName(argumentName);\n/* 278 */ actualName = \"A_ARG_TYPE_\" + actualName;\n/* 279 */ log.finer(\"Finding related state variable with prefixed argument name (converted to UPnP name): \" + actualName);\n/* 280 */ relatedStateVariable = getStateVariable(actualName);\n/* */ } \n/* */ \n/* 283 */ if (relatedStateVariable == null && methodName != null && methodName.length() > 0) {\n/* */ \n/* 285 */ String methodPropertyName = Reflections.getMethodPropertyName(methodName);\n/* 286 */ if (methodPropertyName != null) {\n/* 287 */ log.finer(\"Finding related state variable with method property name: \" + methodPropertyName);\n/* */ \n/* 289 */ relatedStateVariable = getStateVariable(\n/* 290 */ AnnotationLocalServiceBinder.toUpnpStateVariableName(methodPropertyName));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 295 */ return relatedStateVariable;\n/* */ }", "@Override\n\tpublic ProductState getProductStateByName(String name, String status) {\n\t\tlogger.info(\"productStateServiceMong get productState by name : \" + name);\n\t\treturn productStateDAO.getProductStateByName(name, status);\n\t}", "public String idToState(int id);", "@Override\n\tpublic Facility_Host fetchByhostId(long hostId) throws SystemException {\n\t\treturn fetchByhostId(hostId, true);\n\t}", "public State selectByPrimaryKey(Long id_state) {\n State key = new State();\n key.setId_state(id_state);\n State record = (State) getSqlMapClientTemplate().queryForObject(\"lgk_state.abatorgenerated_selectByPrimaryKey\", key);\n return record;\n }", "public FrontDoorResourceState resourceState() {\n return this.innerProperties() == null ? null : this.innerProperties().resourceState();\n }", "IDeviceState getDeviceStateByDeviceAssignment(UUID assignmentId) throws SiteWhereException;", "public HeritageRegionNameDTO findOne(Long id);", "DNSState getState()\n {\n return state;\n }", "@Override\n\tpublic EquipmentT queryById(String epId) {\n\t\treturn electricalCheckMapper.queryById(epId);\n\t}", "Persistent getResolved(Map id) {\n return resolved.get(id);\n }", "public Country getById(Integer id) throws Exception;", "public Event getEventById(int id) {\n Optional<Event> optionalEvent = eventRepository.findById(id);\n if (optionalEvent.isPresent()) {\n LOGGER.info(\"Returning event with id {}\", id);\n return optionalEvent.get();\n }\n else {\n LOGGER.error(\"event with id {} has not been found\", id);\n throw new ResourceNotFoundException(\"Event not found\");\n }\n }", "DcsResourceDO findResourceForUpdate(String resourceId);", "@Override\n public String findState(String name) {\n int hash = getHash(name); // Calculate the hash for the input value \n String message;\n int pos = 1;\n Node temp = hashTable[hash]; // Go to the first node in the appropriate linked list\n\n // Traverse the linked list until the value is found or the end of the list is reached\n while (temp != null && name.compareTo(temp.getState().getName()) != 0) {\n temp = temp.getNext();\n pos++;\n }\n if (temp == null) { // Was the end of the list reached\n message = String.format(\"%s was not found\", name);\n } else {\n message = String.format(\"%s is located at Hash: %d Position: %d\", name, hash, pos);\n }\n return message;\n }", "public abstract Object get(String entityName, Serializable id);", "SerializableState getTile(Long id, int x, int y) throws RemoteException;", "AirlineEntity findByName(String name);", "public UsState[] findWhereIdEquals(int id) throws UsStateDaoException;", "public Airplane find(int id);", "public java.lang.String getEquipmentState() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"equipmentState\")));\n }", "protected Object localLookup( final Name name )\n throws NamingException\n {\n final Object value = doLocalLookup( name );\n\n // Call getObjectInstance for using any object factories\n try\n {\n final Name atom = name.getPrefix( 1 );\n return m_namespace.getObjectInstance( value, atom, this, getRawEnvironment() );\n }\n catch ( final Exception e )\n {\n final NamingException ne = new NamingException( \"getObjectInstance failed\" );\n ne.setRootCause( e );\n throw ne;\n }\n }", "RiceCooker getByName(String name);", "public interface AccountCache {\n /**\n * Returns an {@code AccountState} instance for the given account ID. If not cached yet the\n * account is loaded. Returns {@link Optional#empty()} if the account is missing.\n *\n * @param accountId ID of the account that should be retrieved\n * @return {@code AccountState} instance for the given account ID, if no account with this ID\n * exists {@link Optional#empty()} is returned\n */\n Optional<AccountState> get(Account.Id accountId);\n\n /**\n * Returns a {@code Map} of {@code Account.Id} to {@code AccountState} for the given account IDs.\n * If not cached yet the accounts are loaded. If an account can't be loaded (e.g. because it is\n * missing), the entry will be missing from the result.\n *\n * <p>Loads accounts in parallel if applicable.\n *\n * @param accountIds IDs of the account that should be retrieved\n * @return {@code Map} of {@code Account.Id} to {@code AccountState} instances for the given\n * account IDs, if an account can't be loaded (e.g. because it is missing), the entry will be\n * missing from the result\n */\n Map<Account.Id, AccountState> get(Set<Account.Id> accountIds);\n\n /**\n * Returns an {@code AccountState} instance for the given account ID. If not cached yet the\n * account is loaded. Returns an empty {@code AccountState} instance to represent a missing\n * account.\n *\n * <p>This method should only be used in exceptional cases where it is required to get an account\n * state even if the account is missing. Callers should leave a comment with the method invocation\n * explaining why this method is used. Most callers of {@link AccountCache} should use {@link\n * #get(Account.Id)} instead and handle the missing account case explicitly.\n *\n * @param accountId ID of the account that should be retrieved\n * @return {@code AccountState} instance for the given account ID, if no account with this ID\n * exists an empty {@code AccountState} instance is returned to represent the missing account\n */\n AccountState getEvenIfMissing(Account.Id accountId);\n\n /**\n * Returns an {@code AccountState} instance for the given username.\n *\n * <p>This method first loads the external ID for the username and then uses the account ID of the\n * external ID to lookup the account from the cache.\n *\n * @param username username of the account that should be retrieved\n * @return {@code AccountState} instance for the given username, if no account with this username\n * exists or if loading the external ID fails {@link Optional#empty()} is returned\n */\n Optional<AccountState> getByUsername(String username);\n\n /**\n * Returns an {@code AccountState} instance for the given account ID at the given {@code metaId}\n * of {@link com.google.gerrit.entities.RefNames#refsUsers} ref.\n *\n * <p>The caller is responsible to ensure the presence of {@code metaId} and the corresponding\n * meta ref. The method does not populate {@link AccountState#defaultPreferences}.\n *\n * @param accountId ID of the account that should be retrieved.\n * @param metaId the sha1 of commit in {@link com.google.gerrit.entities.RefNames#refsUsers} ref.\n * @return {@code AccountState} instance for the given account ID at specific sha1 {@code metaId}.\n */\n @UsedAt(Project.GOOGLE)\n AccountState getFromMetaId(Account.Id accountId, ObjectId metaId);\n}", "@Override\r\n\tpublic Resource findResource(int resourceid) {\n\t\tConnection conn=this.getConnection();\r\n\t\tResource d=new Resource();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps=conn.prepareStatement(\"select * from resource where resource_id=?\");\r\n\t\t\tps.setInt(1,resourceid);\r\n\t\t\tResultSet rs=ps.executeQuery();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\td.setResourceid(rs.getInt(1));\r\n\t\t\t\td.setStyleid(rs.getInt(2));\r\n\t\t\t\td.setTitle(rs.getString(3));\r\n\t\t\t\td.setSize(rs.getString(4));\r\n\t\t\t\td.setLanguage(rs.getString(5));\r\n\t\t\t\td.setBanben(rs.getString(6));\r\n\t\t\t\td.setText(rs.getString(7));\r\n\t\t\t\td.setPoint(rs.getInt(8));\r\n\t\t\t\td.setInputtime(rs.getTimestamp(9));\r\n\t\t\t\td.setResadd(rs.getString(10));\r\n\t\t\t\td.setImageadd(rs.getString(11));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException 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\treturn d;\r\n\t}", "public void lookup(String id){\t\n\t\t\n\t\tif (id == null) return;\n\t\tif (id.length() == 0) return;\n\t\tid = id.trim();\n\t\t\n\t\tUtil.debug(\"is a product ID? [\" + id + \"] length: \" + id.length(), this);\n\n\t\tif (id.length() == 1 ){\n\t\t\tif(id.equals(LIGHTS)){\t\t\n\t\t\t\tstate.set(State.values.lightport, getPortName());\n\t\t\t\tUtil.debug(\"found lights on comm port: \" + getPortName(), this);\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn;\n\t\t} \n\t\t\t\n\t\tif(id.startsWith(\"id\")){\t\n\t\t\t\n\t\t\tid = id.substring(2, id.length());\n\t\t\t\t\n\t\t\tUtil.debug(\"found product id[\" + id + \"] on comm port: \" + getPortName(), this);\n\n\t\t\tif (id.equalsIgnoreCase(OCULUS_DC)) {\n\n\t\t\t\tstate.set(State.values.serialport, getPortName());\n\t\t\t\tstate.set(State.values.firmware, OCULUS_DC);\n\t\t\t\t\n\t\t\t} else if (id.equalsIgnoreCase(OCULUS_SONAR)) {\n\n\t\t\t\tstate.set(State.values.serialport, getPortName());\n\t\t\t\tstate.set(State.values.firmware, OCULUS_SONAR);\t\n\t\t\t\n\t\t\t} else if (id.equalsIgnoreCase(OCULUS_TILT)) {\n\n\t\t\t\tstate.set(State.values.serialport, getPortName());\n\t\t\t\tstate.set(State.values.firmware, OCULUS_TILT);\n\t\t\t\t\n\t\t\t} else if (id.equalsIgnoreCase(ARDUINO_MOTOR_SHIELD)) {\n\n\t\t\t\tstate.set(State.values.serialport, getPortName());\n\t\t\t\tstate.set(State.values.firmware, ARDUINO_MOTOR_SHIELD);\n\t\t\t\t\n\t\t\t}\n\n\t\t\t//TODO: other devices here if grows\n\t\t\t\n\t\t}\n\t}", "public interface State {\n\n\t/**\n\t * The internal ID of the state. Is not dictated by any external/official\n\t * nomenclature, although it may match one for the sake of readability.\n\t * \n\t * Example: The ID of Massachusetts, USA might be \"ma\".\n\t * \n\t * @return The internal ID. Should never be null or empty.\n\t */\n\tString getId();\n\n\t/**\n\t * The common name of the state.\n\t * \n\t * Example: The name of Massachusetts, USA would be \"Massachusetts\", not the\n\t * official \"The Commonwealth of Massachusetts\".\n\t * \n\t * @return The common name of the state. Should never be null or empty.\n\t */\n\tString getName();\n\n\t/**\n\t * The public abbreviation of the state. Should match the official\n\t * nomenclature, typically defined by postal services.\n\t * \n\t * Example: The abbreviation of Massachusetts, USA would be \"MA\".\n\t * \n\t * @return The public abbreviation of the state. Should never be null or\n\t * empty.\n\t */\n\tString getAbbr();\n\n\t/**\n\t * The country of which this state is a part.\n\t * \n\t * Example: The country of Massachusetts, USA would be ISOCountry.USA\n\t * \n\t * @return The Country object for this state's nation. Should never be null\n\t * or empty.\n\t */\n\tCountry getCountry();\n\n}", "public RegionState getRegionForState(String state);", "public abstract int getState() throws RcsServiceException;", "@Override\n public SystemResourcePojo getByName(String name) throws DataNotFoundException {\n SystemResource entity = systemResourceRepository.findByName(name);\n if (entity == null){\n throw new DataNotFoundException(\"System resource is not found by name\");\n }\n\n return this.entityToPojo(entity);\n }", "public static Instance get(String name, Output<String> id, @Nullable InstanceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new Instance(name, id, state, options);\n }", "@Programmatic\n public ObjectSpecification lookupBySpecId(ObjectSpecId objectSpecId) {\n if(!cache.isInitialized()) {\n throw new IllegalStateException(\"Internal cache not yet initialized\");\n }\n final ObjectSpecification objectSpecification = cache.getByObjectType(objectSpecId);\n if(objectSpecification == null) {\n // fallback\n return loadSpecification(objectSpecId.asString(), IntrospectionState.TYPE_AND_MEMBERS_INTROSPECTED);\n }\n return objectSpecification;\n }", "public ObjectId findAttributeEntityState(String name, ObjectId classEntityState, Commit c) {\r\n if (classEntityState == null) {\r\n return null;\r\n }\r\n Query<CodeEntityState> attributeStates = datastore.find(CodeEntityState.class);\r\n\r\n if (c.getCodeEntityStates() != null && c.getCodeEntityStates().size() > 0) {\r\n attributeStates.and(\r\n attributeStates.criteria(\"_id\").in(c.getCodeEntityStates()),\r\n attributeStates.criteria(\"ce_type\").equal(\"attribute\"),\r\n attributeStates.criteria(\"ce_parent_id\").equal(classEntityState),\r\n attributeStates.criteria(\"long_name\").startsWith(name.replace(\"#\", \".\"))\r\n\r\n );\r\n } else {\r\n attributeStates.and(\r\n attributeStates.criteria(\"commit_id\").equal(c.getId()),\r\n attributeStates.criteria(\"ce_type\").equal(\"attribute\"),\r\n attributeStates.criteria(\"ce_parent_id\").equal(classEntityState),\r\n attributeStates.criteria(\"long_name\").startsWith(name.replace(\"#\", \".\"))\r\n\r\n );\r\n }\r\n final List<CodeEntityState> attributes = attributeStates.asList();\r\n\r\n if (attributes.size() == 1) {\r\n return attributes.get(0).getId();\r\n } else {\r\n logger.debug(\"Could not find ces for attribute: \" + name + \" in commit \" + c.getRevisionHash());\r\n return null;\r\n }\r\n }", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/ingresses/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Ingress> readIngressStatus(\n @Path(\"name\") String name, \n @QueryMap ReadIngressStatus queryParameters);", "public VisualState getVisualState(String name) {\r\n\t\tVisualState visualState = null;\r\n\t\tfor (int i=0; i<visualStates.size(); i++) {\r\n\t\t\tif (visualStates.get(i).getStateName().equals(name)) {\r\n\t\t\t\tvisualState = visualStates.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn visualState;\r\n\t}", "@Cacheable(value = \"planet\", key = \"#id\", unless = \"#result == null\")\n public Planet findById(String id){\n try{\n Optional<Planet> planetOptional = planetRepository.findById(id);\n return planetOptional.orElse(null);\n }\n catch (Exception ex){\n throw ex;\n }\n }", "public Nhosts gethostdetail(HttpSession session, Integer id) {\r\n\t\tString urlReq = \"https://localhost/Demo/clientAPI/dc_hosts/_id/\"+id;\r\n\t\tNhosts[] hosts = HttpClient.doGetServer_withclass(session, urlReq, Nhosts[].class);\r\n\t\treturn hosts[0];\r\n\t\t\r\n\t}", "public static FirewallRule get(String name, Output<String> id, @Nullable FirewallRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new FirewallRule(name, id, state, options);\n }", "public final @NotNull Resource resource(@NotNull Resource resource, @NotNull String name, @NotNull Object @NotNull ... properties) {\n return resource(resource, name, MapUtil.toMap(properties));\n }", "@Override\n\tpublic Facility_Host fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tFacility_Host facility_Host = (Facility_Host)EntityCacheUtil.getResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tFacility_HostImpl.class, primaryKey);\n\n\t\tif (facility_Host == _nullFacility_Host) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (facility_Host == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tfacility_Host = (Facility_Host)session.get(Facility_HostImpl.class,\n\t\t\t\t\t\tprimaryKey);\n\n\t\t\t\tif (facility_Host != null) {\n\t\t\t\t\tcacheResult(facility_Host);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tEntityCacheUtil.putResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tFacility_HostImpl.class, primaryKey, _nullFacility_Host);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tEntityCacheUtil.removeResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\tFacility_HostImpl.class, primaryKey);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn facility_Host;\n\t}", "@Override\r\n\tpublic List<HouseState> queryAllHState() {\n\t\treturn adi.queryAllHState();\r\n\t}", "List<Address> findByState(String state);", "RiceCooker getById(long id);", "@Override\r\n\tpublic StateWorkArea getByStateWorkArea(Integer id) {\r\n\t\t\r\n\t\treturn stateWorkAreaDAO.getByStateWorkArea(id);\r\n\t}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/dnses/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<DNS> readDNSStatus(\n @Path(\"name\") String name, \n @QueryMap ReadDNSStatus queryParameters);", "public static EipAddress get(String name, Output<String> id, @Nullable EipAddressState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new EipAddress(name, id, state, options);\n }", "@Override\n @LogMethod\n public T get(long id) throws InventoryException {\n \tInventoryHelper.checkPositive(id, \"id\");\n T entity = repository.getByKey(id);\n InventoryHelper.checkEntityExist(entity, id);\n return entity;\n }", "@Override\n\tpublic List<State> getState(String id) {\n\t\t\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// create a query ... sort by last name\n\t\tQuery<State> theQuery = \n\t\t\t\tcurrentSession.createQuery(\"from State order where countryid=:c\",\n\t\t\t\t\t\t\t\t\t\t\tState.class);\n\t\ttheQuery.setParameter(\"c\", id);\n\t\t// execute query and get result list\n\t\tList<State> customers = theQuery.getResultList();\n\t\t\t\t\n\t\t// return the results\t\t\n\t\treturn customers;\n\t\t\n\t\t\n\t}", "protected abstract Object doLocalLookup( Name name )\n throws NamingException;", "@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}", "starnamed.x.escrow.v1beta1.Types.EscrowState getState();", "public List<HealthCheck> getChecksByState(String state);", "public ServiceInstance queryInstanceByName(String serviceName, ServiceInstanceQuery query);", "javax.management.ObjectName getStateManager();", "boolean existsByNameAndId(String name, int id);", "@Override\n public HotelResponseDTO getHotelDetails(String hotelId) {\n Optional<Hotel> optionalHotel = hotelRepository.findByHotelId(hotelId);\n Hotel hotel = optionalHotel.orElseThrow(() -> {\n logger.error(\"Hotel information not found | hotelId:{}\", hotelId);\n return new BookingServiceException(\"Hotel information not found | hotelId:\" + hotelId);\n });\n if (hotel.isDeleted()) {\n logger.info(\"Hotel is inactive | hotelId:{}\", hotelId);\n throw new BookingServiceException(\"Hotel is inactive | hotelId:\" + hotelId);\n }\n logger.info(\"Fetched hotel information successfully | hotelId:{}\", hotelId);\n return makeHotelResponseDTO(hotel);\n }", "public synchronized RegionState createRegionState(final HRegionInfo hri) {\n String regionName = hri.getEncodedName();\n RegionState regionState = regionStates.get(regionName);\n if (regionState != null) {\n LOG.warn(\"Tried to create a state of a region already in RegionStates \"\n + hri + \", used existing state: \" + regionState\n + \", ignored new state: state=OFFLINE, server=null\");\n } else {\n regionState = new RegionState(hri, State.OFFLINE);\n regionStates.put(regionName, regionState);\n }\n return regionState;\n }", "public static EntityType get(String name, Output<String> id, @Nullable EntityTypeState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new EntityType(name, id, state, options);\n }", "public static ComputeInstance get(String name, Output<String> id, @Nullable ComputeInstanceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new ComputeInstance(name, id, state, options);\n }", "@Override\r\n public HarvestResponseDto getHarvest(Long id) {\r\n return harvestMapper.mapToDto(harvestRepository.findById(id).orElseThrow(() -> new HarvestNotFoundException(\"Couldn't find harvest with id: \" + id)));\r\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<CartStateDTO> findOne(Long id) {\n log.debug(\"Request to get CartState : {}\", id);\n return cartStateRepository.findById(id)\n .map(cartStateMapper::toDto);\n }", "public EmployeeResponse getById(int id) throws EmployeeNotFoundException {\n\n Optional<Employee> result=employeeRepository.findById(id);\n if (result.isPresent()){\n EmployeeResponse response=new EmployeeResponse();\n response.setId(result.get().getId());\n response.setName(result.get().getName());\n return response;\n }\n\n throw new EmployeeNotFoundException(\"Employee not found id=\"+id);\n// return response;\n }", "@Override\n public Shelf getShelfById(String id) {\n if(id == null)\n throw new NullPointerException();\n return shelves.stream().filter(x-> x.getId().equalsIgnoreCase(id)).findFirst().orElseThrow(()->\n new NoSuchElementException(\"There is no shelf with ID \" + id));\n }", "UploadStateRegDTO selectByPrimaryKey(Integer id);", "@Override\n public Tournament tournamentStatus(String id) {\n return Optional.ofNullable(tournamentCache.get(id))\n .orElseThrow(TournamentNotFoundException::new);\n }", "public Service consult(int id){\t\r\n \tService service =(Service) session.load(Service.class, id) ; \r\n return service;\r\n }", "@Repository\npublic interface StateRepository extends JpaRepository<State, Long> {\n\n Optional<State> findByName(String name);\n\n Optional<State> findByNameContaining(String name);\n\n}", "@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/featuregates/{name}/status\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<FeatureGate> readFeatureGateStatus(\n @Path(\"name\") String name, \n @QueryMap ReadFeatureGateStatus queryParameters);", "Heaver findByName(String name);", "@Override\r\n\tpublic Resources getById(Integer id) {\n\t\treturn null;\r\n\t}", "public Employee findEmployee(String id)\n\t{\t\t\n\t\tHRProtocol envelop = null;\n\t\tenvelop = new HRProtocol(HRPROTOCOL_FIND_EMPLOYEE_REQUEST, id, null);\n\t\tsendEnvelop(envelop);\n\t\tenvelop = receiveEnvelop();\n\t\tif(envelop.getPassingCode() == HRPROTOCOL_FIND_EMPLOYEE_RESPONSE)\n\t\t{ \n\t\t\tint eid = ((Employee)envelop.getPassingObject()).getEmployeeId();\n\t\t\tString lastName = ((Employee)envelop.getPassingObject()).getLastName();\n\t\t\tString firstName = ((Employee)envelop.getPassingObject()).getFirstName();\n\t\t\tint DepNo = ((Employee)envelop.getPassingObject()).getDepartmentId();\n\n\t\t\tEmployee emp = new Employee(firstName, lastName, eid, DepNo);\n\t\t\treturn emp;\n\t\t\t\n\t\t}else\n\t\t{\n\t\t\t//Error in transition. or other error codes.\n\t\t\treturn null;\n\t\t}\n\t}", "Object getState();" ]
[ "0.55552137", "0.5303236", "0.5266404", "0.52128243", "0.51690173", "0.5071365", "0.50659233", "0.5059869", "0.5013853", "0.49337783", "0.48819798", "0.48624894", "0.47853798", "0.47695345", "0.47502232", "0.47008017", "0.4657893", "0.45889813", "0.4565367", "0.45538706", "0.45495698", "0.45393723", "0.44958663", "0.44949445", "0.4472689", "0.44634786", "0.44519198", "0.44434407", "0.44331655", "0.43903244", "0.4388121", "0.43826237", "0.4378368", "0.437476", "0.43562517", "0.435618", "0.43460613", "0.4345169", "0.43443894", "0.43404847", "0.4325227", "0.4324125", "0.43188334", "0.43176872", "0.43107137", "0.4309652", "0.4304444", "0.43034738", "0.42945597", "0.42798167", "0.4272606", "0.4271076", "0.42690292", "0.4267345", "0.42596477", "0.42514086", "0.42483783", "0.42467564", "0.42465237", "0.4246171", "0.42447826", "0.42415562", "0.42367753", "0.42358935", "0.4234569", "0.4225833", "0.42247608", "0.42210233", "0.42159614", "0.42140436", "0.4211242", "0.4199892", "0.418338", "0.41821834", "0.4180913", "0.41805506", "0.4169303", "0.41688806", "0.41624412", "0.41599727", "0.4155857", "0.41518417", "0.41494396", "0.41446576", "0.41446555", "0.414339", "0.41424826", "0.41423678", "0.4133275", "0.41270667", "0.41208336", "0.4119158", "0.41182247", "0.41134536", "0.4103347", "0.40998295", "0.40909138", "0.40822455", "0.40760604", "0.40756184", "0.40755007" ]
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void run() { Log.i("-------->localVersion", localVersion + ""); try { // String str = share.getString(getApplicationContext(), // "version_code", null); // localVersion = Double.parseDouble(str); localVersion = getPackageManager().getPackageInfo( getPackageName(), 0).versionCode; Httptool http = new Httptool(); List<NameValuePair> params = new ArrayList<NameValuePair>(); JSONObject obj = new JSONObject(http.httppost( Urllist.sender_check_version, params)); if (obj.getString("success").equals("true")) { JSONObject jsonObject = obj.getJSONObject("obj"); serverVersion = jsonObject.getDouble("version_num"); String version_code = jsonObject.getString("version_code"); // Log.i("--------->app_version", version_code + ""); share.saveString(getApplicationContext(), "version_code", version_code); } else { } Log.i("-------->localVersion", localVersion + ""); Log.i("-------->serverVersion", serverVersion + ""); if (localVersion == serverVersion) { Log.i("--------->", "版本号相同无需升级"); // LoginMain(); } else { // Log.i(TAG,"版本号不同 ,提示用户升级 "); Message msg = new Message(); msg.what = UPDATA_CLIENT; handler.sendMessage(msg); } } catch (Exception e) { // 待处理 Message msg = new Message(); msg.what = GET_UNDATAINFO_ERROR; handler.sendMessage(msg); e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub LoginMain();
public void onClick(DialogInterface dialog, int which) { System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void Login() \r\n\t{\n\t\t\r\n\t}", "Login() { \n }", "public Login() {\r\n\t\tinitialize();\r\n\t}", "public static void main(String[] args) {\n\t\tLogin ms=new Login();\n\t\t\n\t\t\t\t\t\t\n\t}", "protected void login() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tLogin lc = new Login();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tnew Login();\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n\t\tnew login();\n\t}", "public void LogIn() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "private LogIn() {}", "public login() {\r\n\t\tsuper();\r\n\t}", "public Login() {\n initComponents();\n KiemTraKN();\n }", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "public Login() {\n\t\tsuper();\n\t}", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "public void StartLogIn(){\n\t}", "public static void main(String[] args) {\n\t\tLogin_C lc = new Login_C();\n\t\tlc.display();\n\t}", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tTestCase3.login();\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tLoginForm lform = new LoginForm();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tLoginFrame ref_login_ob = null;\r\n\t\t\r\n\t\tref_login_ob = new LoginFrame();\r\n\r\n\t}", "public login() {\n initComponents();\n \n \n }", "public static void main(String[] args) {\r\n\t\tLogin frame = new Login();\r\n\t\tframe.setVisible(true);\r\n\t\tframe.setTitle(\"Login Screen\");\r\n\t\t/*Login lg=new Login();*/\r\n\t}", "public LoginJudge() {\n\t\tsuper();\n\t}", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "public static void main(String[] args) {\n Login l = new Login();\n if(l.checkLogin(\"admin\", \"12345\")){\n List<Login> ll = Login.UserLogin(\"admin\", \"12345\");\n System.out.println(\"เข้าสู่ระบบสำเร็จ\");\n System.out.println(ll);\n }\n else{\n System.out.println(\"พาสเวิร์ดหรือชื่อผู้ใช้ผิด\");\n }\n }", "public static void main(String[] args) {\n \n RoadAccident r=new RoadAccident();\n Login l=new Login();\n l.setVisible(true);\n }", "public static void main(String[] args) throws NoLoginException, IOException {\n }", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\n\t\tnew loginWindow(\"Login\");\n\t}", "public void LoginButton() {\n\t\t\r\n\t}", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public static void main(String[] args) {\n\t\tnew Login().setVisible(true);\n\t}", "public Login() {\n initComponents();\n \n }", "public Login() {\n }", "private void login(String username,String password){\n\n }", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "public static void main(String[] args) {\n UserObjects user = new UserObjects();\n System.out.printf(\" ------------ Login ------------ \\n\");\n System.out.println(\"Enter library number:\");\n String libraryNumberInput = Utililty.readConsoleInput();\n System.out.println(\"\\nEnter password:\");\n String passwordInput = Utililty.readConsoleInput();\n Boolean successLogin = user.login(libraryNumberInput,passwordInput);\n\n if(successLogin){\n Biblioteca biblioteca = new Biblioteca();\n String firstGreeting = biblioteca.welcomeMessage();\n System.out.println(firstGreeting);\n\n Menu menu = new Menu(biblioteca, user);\n menu.readInputOption();\n }else{\n System.out.println(\"Incorrect login\");\n }\n\n }", "public static void main(String args[]) {\n\t\tUserLogin user = new UserLogin();\n\t\tuser.main(args);\n\t\t//UserHomepage user = new UserHomepage(\"kidus\");\n\t\t//user.setTitle(\"Welcome \");\n\t //user.setVisible(true);\n\t}", "public void testLogin() {\n login(datum.junit);\n\t}", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "public static void main(String[] args) {\n \r\n TelaLogin inicio = new TelaLogin();\r\n inicio.setVisible(true);\r\n }", "public Login() {\n\n }", "public login_1_argument() {\n }", "@Test\r\n\tpublic void login() {\n\t\tUser loginExit = userMapper.login(\"wangxin\", \"123456\");\r\n\t\tif (loginExit == null) {\r\n\t\t\tSystem.out.println(\"用户不存在\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(loginExit);\r\n\t\t\tSystem.out.println(\"登录成功!\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Initial main = new Initial();\n main.login = login.getInstance();\n main.login.setMain(main);\n }", "public static void main(String[] args) {\n\t\t\ttry {\n\t\t\t\tloginFunctionality();\n\t\t\t}\n\t\t\tcatch(Exception exp) {\n\t\t\t\tSystem.out.println(exp.getCause());\n\t\t\t\tSystem.out.println(exp.getMessage());\n\t\t\t\texp.printStackTrace();\n\t\t\t\t\n\t\t\t}\n\n\t}", "public Login() {\n inicializarUsuarios();\n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n LoginRegister.main(args);\n }", "private void loadLogin(){\n }", "public static void login() {\n\t\trender();\n\t}", "public static void main(String[] args) {\n\t\tValidate v=()->System.out.println(\"login valifate\");\n\t\tv.validatelogin();\n\t\t\n\t\t\n\t}", "public login() {\n initComponents();\n }", "@Override \n public void commandLogin(String userName, String password)\n {\n }", "public Login()\r\n\t{\r\n\t\t//Initialize the GUI\r\n\t\tthis.initializeGUI();\r\n\r\n\t\t//Setup the JFrame\r\n\t\tthis.setTitle(Application.NAME);\r\n\t\tthis.setSize(600, 400);\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setIconImage(Application.LOGO.getImage());\r\n\r\n\t\tthis.setVisible(true);\r\n\t}", "public static void main(String[] args){\n ViewLogin viewLogin = new ViewLogin();\n OuvinteViewLogin ouvinte = new OuvinteViewLogin(viewLogin);\n viewLogin.setLocationRelativeTo(null);\n viewLogin.setVisible(true);\n \n JogadorDAO ddao = new JogadorDAO();\n ddao.listar();\n }", "public MainView() {\r\n LoginOverlay login = new LoginOverlay();\r\n login.setOpened(true);\r\n LoginI18n i18n = LoginI18n.createDefault();\r\n i18n.setHeader(new LoginI18n.Header());\r\n i18n.getHeader().setTitle(\"Webvision\");\r\n i18n.getHeader().setDescription(\"Please login, if you don't have an account you will be redirected to finish registration.\");\r\n i18n.getForm().setUsername(\"Email\");\r\n i18n.getForm().setPassword(\"Password\");\r\n login.setI18n(i18n);\r\n login.addLoginListener(event -> {\r\n String email = event.getUsername();\r\n User user = userService.findByEmail(email);\r\n if (user == null) {\r\n login.close();\r\n UI.getCurrent().navigate(RegistrationView.ROUTE);\r\n } else {\r\n String password = event.getPassword();\r\n boolean isAuthenticated = password.equals(user.getPassword());\r\n if (isAuthenticated) {\r\n CurrentUser.setCurrentUser(user);\r\n login.close();\r\n UI.getCurrent().navigate(HomeView.ROUTE);\r\n }\r\n login.setError(true);\r\n }\r\n });\r\n add(login);\r\n }", "public Login() {\n initComponents();\n hideregister ();\n }", "public int login() {\n\t\t\n\t\tString inId;\n\t\tint loginResult = -1;\n\t\tString inName;\n\t\tScanner scan = new Scanner(new FilterInputStream(System.in) {\n\t\t\t@Override\n\t\t\tpublic void close() {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tSystem.out.println(\"Welcome\\n\");\n\t\t\n\t\twhile (true) {\n\t\t\tSystem.out.println(\"Please sign in\");\n\t\t\tSystem.out.print(\"ID\t: \");\t\t\n\t\t\tinId = scan.next();\n\t\t\t\n\t\t\tSystem.out.print(\"Name\t: \");\n\t\t\tinName = scan.next();\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tloginResult = dbc.login(inId, inName);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\tif (loginResult == 1 || loginResult == 2) {\n\t\t\t\tid = inId;\n\t\t\t\tname = inName;\n\t\t\t\tbreak;\n\t\t\t}\t\t\n\t\t\telse if (loginResult == -1) {\n\t\t\t\tSystem.out.println(\"Error in login query\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\telse if (loginResult == 0) {\n\t\t\t\tSystem.out.println(\"Wrong authentication\");\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tscan.close();\n\t\t\n\t\treturn loginResult;\n\t}", "static User Login() {\r\n\t\tUser loginUser = new User();\r\n\t\tScanner scan = new Scanner(System.in);\r\n\r\n\t\tSystem.out.print(\"Username: \");\r\n\t\tString inUName = scan.next();\r\n\t\tSystem.out.print(\"Password: \");\r\n\t\tscan.nextLine();\r\n\t\tString inPass = scan.nextLine();\r\n\t\t\t/**\r\n\t\t\t*\tIn case of correct credentials return true for further actions in the main method.\r\n\t\t\t*\tIn case of incorrect credentials, return false\r\n\t\t\t*/\r\n\t\tloginUser.validateLogin(inUName, inPass);\r\n\t\treturn loginUser;\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tConfigurationLoader.getConfig();\r\n\t\tLenguageLoader.getLenguageConfig();\r\n\t\tpantallaLogin pC = new pantallaLogin();\r\n\t\tpC.setVisible(true);\r\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "@Test(priority = 1)\n\tpublic void login() {\n\t\tlp.loginToApp();\n\t}", "public ControleurVueLogin() {\n\n\t}", "public Main() {\n initComponents();\n LogIn.setVisible(true);\n LogIn.setVisible(true);\n LogIn.setLocationRelativeTo(null);\n }", "public void premutoLogin()\n\t{\n\t\tnew _FINITO_funzione_loginGUI();\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tusername1 = JOptionPane.showInputDialog(\"Enter Username\");\r\n\t\tpassword1 = JOptionPane.showInputDialog(\"Enter Password\");\r\n\t\t\r\n\t\t\r\n\t\tAuthentication.check(username1, password1);\r\n\t\t\r\n\r\n\t}", "public LogIn() {\n \n }", "public Login() {\n initComponents();\n \n }", "public abstract boolean showLogin();", "public void login() {\n\t\tloggedIn = true;\n\t}", "public Login(Main pai) {\n this.pai = pai;\n initComponents();\n senhaBox.setEchoChar('*');\n \n loginBox.setText(\"[email protected]\");\n senhaBox.setText(\"eymar\");\n }", "void loginDone();", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "@Test(dependsOnMethods=\"startapp\")\r\n\tpublic void loginapp() {\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/div[1]/input\")).sendKeys(\"[email protected]\");\r\n\t\t//((WebElement) driver.findElements(By.xpath(\"//*[@id=\\\"idSIButton9\\\"]\"))).click();\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/div[2]/input\")).sendKeys(\"Liverpool1\");\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"root\\\"]/div/div/div/form/button\")).click();\r\n\t\tdriver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\r\n\t}", "void login(String user, String password);", "public boolean loginUser();", "public static void main (String args []){\nEventQueue.invokeLater(new Main (new LoginPage()));\n }", "public static void main(String[] args) {\n LoginService loginService = new LoginService();\n //loginService.register(\"hakunamatata\",\"123456\");\n //loginService.login(\"hakunamatata\",\"123456\");\n\n //new interface for QQ login\n LoginService qqLoginService = new LoginServiceForQQ();\n qqLoginService.login(\"hakunamatata\",\"123456\");\n\n\n //new interface for wechat login\n LoginServiceForWechat loginServiceForWechat = new LoginServiceForWechat();\n loginServiceForWechat.login(\"hakunamatata\",\"123456\");\n\n\n\n\n }", "protected Response login() {\n return login(\"\");\n }", "@Test\n\tpublic void loginTest() {\n\t\tSystem.out.println(\"Login Page Test\");\n\t}", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "public void clciklogin() {\n\t driver.findElement(loginBtn).click();\r\n\t \r\n\t //Print the web page heading\r\n\t System.out.println(\"The page title is : \" +driver.findElement(By.xpath(\"//*[@id=\\\"app\\\"]//div[@class=\\\"main-header\\\"]\")).getText());\r\n\t \r\n\t //Click on Logout button\r\n\t// driver.findElement(By.id(\"submit\")).click();\r\n\t }", "@Test\r\n\tpublic void testLogin5() {\r\n\t\tassertFalse(t1.login(\"userrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr\", \"passssssssssssssssssssssssssssssssssssssssss\"));\r\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public Login() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "@Override\r\n\tpublic void MemberLogin() {\n\r\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "@Test(priority=0)\n \n public void test_Login(){\n \tobjLogin = new PilrLogin(driver);\n \n \t//Verify login page title\n \tString loginPageTitle = objLogin.getPageSource();\n \tAssert.assertTrue(loginPageTitle.toLowerCase().contains(\"sign in\"));\n\n \n \t//login to application\n \tobjLogin.loginToPilr(objtestvars.getUserName(), \n \t\t\tobjtestvars.getPassWrd());\n \n \t// go the next page\n \tobjHomePage = new PilrHomePage(driver);\n \n \t//Verify home page\n \tAssert.assertTrue(objHomePage.getHomePageWelcome().toLowerCase().contains(\n \t\t\t\"welcome back, bikerjohn!\"));\n \tSystem.out.println(\"[Test Case]Home Page Verified\");\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "@Test(priority = 0, groups = \"test\")\r\n\tpublic void TestLogin()\r\n\t{\r\n\t\t// Step-1] Login using adminX credentials.\r\n\t login.AdminXLogin();\r\n\t extent.log(LogStatus.INFO, \"LoggedIn successfully.\");\r\n\t wait.until(ExpectedConditions.elementToBeClickable(By.linkText(\"PRODUCT\")));\r\n\t // Step-2] Open Add scheme page.\r\n\t Ops.OpenAddScheme();\r\n\t \r\n\t}", "@Test\r\n\tpublic void testLogin8() {\r\n\t\tassertTrue(t1.login(\"user\", \"pass\"));\r\n\t}", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }", "public Login() {\n initComponents();\n }" ]
[ "0.8010081", "0.77184755", "0.7523762", "0.7512945", "0.7455683", "0.74342096", "0.7420837", "0.7349375", "0.73163277", "0.72870654", "0.71739966", "0.7157629", "0.70785713", "0.7033152", "0.7022623", "0.7003637", "0.698385", "0.69800526", "0.69641304", "0.6956959", "0.69380534", "0.69289434", "0.6889707", "0.6861547", "0.68563026", "0.68405014", "0.68270254", "0.68261033", "0.681445", "0.6808051", "0.6802659", "0.67998004", "0.6792916", "0.67694545", "0.6757952", "0.67479056", "0.6744154", "0.6741463", "0.6734795", "0.6733803", "0.6728426", "0.6711446", "0.6709935", "0.6707254", "0.66993743", "0.66971713", "0.6668592", "0.6667618", "0.66612464", "0.66592187", "0.66568524", "0.6654584", "0.6648155", "0.6642523", "0.66293275", "0.66237646", "0.6617097", "0.6603505", "0.6590246", "0.6589862", "0.65853924", "0.65742505", "0.6527077", "0.6517539", "0.6489247", "0.64885515", "0.64843833", "0.6459236", "0.64574844", "0.6446271", "0.64423585", "0.64357847", "0.6435682", "0.64313734", "0.6430582", "0.6427943", "0.6427653", "0.64150727", "0.64144045", "0.6414171", "0.6413668", "0.6402252", "0.64001", "0.6388001", "0.63764673", "0.6366987", "0.6366135", "0.63594794", "0.63555354", "0.63491184", "0.6346342", "0.6343071", "0.63414127", "0.63357085", "0.63291645", "0.6328153", "0.6328153", "0.6328153", "0.6328153", "0.6328153", "0.6328153" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onResume() { super.onResume(); MobclickAgent.onResume(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onPause() { super.onPause(); MobclickAgent.onPause(this); }
{ "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
The container for the robot. Contains subsystems, OI devices, and commands.
public RobotContainer() { // Create OI devices: gameController = new XboxController(OIConstants.xboxControllerPort); leftStick = new Joystick(OIConstants.leftJoystickPort); rightStick = new Joystick(OIConstants.rightJoystickPort); // Create subsystems: driveTrain = new DriveTrain(); shooter = new Shooter(gameController); turret = new Turret(gameController); intake = new Intake(); indexer = new Indexer(); climber = new Climber(gameController); // Create camera: limelightCamera = LimelightCamera.getInstance(); // Configure default commands: driveTrain.setDefaultCommand(new DriveWithJoysticks(driveTrain, leftStick, rightStick)); turret.setDefaultCommand(new RunTurretWithGameController(turret, gameController)); climber.setDefaultCommand(new RunClimberWithGameController(climber, gameController)); // Configure the button bindings configureButtonBindings(); initSmartDashboard(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RobotContainer() {\n \n camServer = CameraServer.getInstance();\n driveCam = camServer.startAutomaticCapture(\"Driver View\", 0);\n driveCam.setResolution(160, 120);\n driveCam.setFPS(15);\n driveCam.setBrightness(50);\n // cameraThreader.start();\n\n leftJoy = new Joystick(LEFT_JOY_PORT);\n rightJoy = new Joystick(RIGHT_JOY_PORT);\n xbox = new XboxController(XBOX_PORT);\n\n //Set default drivetrain command to DriveWithJoysticks or xbox\n drivetrain.setDefaultCommand(xboxCommand);\n \n //For testing purposes, this will control simple one- or two-motor subsystems.\n genericSubsystem.setDefaultCommand(genericJoysticksCommand);\n \n //shooter.setDefaultCommand(shootCommand);\n //shooter.setDefaultCommand(turretCommand);\n\n\n // Configure the button bindings\n configureButtonBindings();\n }", "public RobotContainer() { \n // Configure the button bindings\n configureButtonBindings();\n\n rDrive.setDefaultCommand(manualDrive);\n lift.setDefaultCommand(moveArm);\n }", "public RobotContainer() {\n drivetrain.setDefaultCommand(new DrivetrainDriveCommand(drivetrain, driver));\n\n // Configure the button bindings\n configureButtonBindings();\n }", "public RobotContainer()\n {\n SmartDashboard.putData(new InstantCommand(\n () -> flywheelSubsystem.hoodEncoder.setPosition(0)\n ));\n // Configure the button bindings\n configureButtonBindings();\n }", "public RobotContainer() \n {\n /* Bind commands to joystick buttons. */\n m_OI.configureButtonBindings();\n\n /* Initialize various systems on robotInit. */\n this.initializeStartup();\n\n /* Initialize autonomous command chooser and display on the SmartDashboard. */\n this.initializeAutoChooser();\n\n /* Initialize PID tuning for use on the SmartDashboard. */\n this.initializePIDValues();\n\n // this.testColorSensing();\n }", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n configureDefaultCommands();\n }", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n setDefaultCommands();\n }", "public RobotContainer() {\n\nleftJoystick = new Joystick(0);\nrightJoystick = new Joystick(1);\n\ndriveBase = new DriveBase();\ndriveWithJoystick = new DriveWithJoystick();\nCommandScheduler.getInstance().setDefaultCommand(driveBase, driveWithJoystick);\n\n\n // Configure the button bindings\n configureButtonBindings();\n }", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n\n drivetrain.setDefaultCommand(new RunCommand(\n () -> drivetrain.setTank(Math.pow(-joystick1.getY(), 3), Math.pow(joystick2.getY(), 3)), drivetrain));\n\n }", "public RobotContainer() {\n m_pathChooser = new SendableChooser<String>();\n m_pathChooser.addOption(\"Drive 10\", \"drive_ten_\");\n // Setup the Shuffleboard Tab for testing\n m_ProfileTab = Shuffleboard.getTab(\"ProfileTest\");\n\n \n \n // Set the default commands for the subsystems\n m_drive_train.setDefaultCommand(new DefaultDriveTrainCommand(m_drive_train, m_driver_controller));\n\n // Configure the button bindings\n // NOTE -- This should not be called until all the subsystems have been instantiated and the \n // default commands for them have been set.\n configureButtonBindings();\n\n // Setup Shuffleboard layouts\n setupShuffleboardComponents();\n }", "public OI() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n xBoxOne = new Joystick(0);\n \n autoRight = new JoystickButton(xBoxOne, 10);\n autoRight.whenPressed(new AutoRight());\n autoLeft = new JoystickButton(xBoxOne, 9);\n autoLeft.whenPressed(new AutoLeft());\n vision = new JoystickButton(xBoxOne, 7);\n vision.whenPressed(new SeekAndDriveTo());\n cameraSwitch = new JoystickButton(xBoxOne, 2);\n cameraSwitch.whenPressed(new CameraSwitch());\n latchCloseManual = new JoystickButton(xBoxOne, 6);\n latchCloseManual.whileHeld(new latchCloseManual());\n latchOpenManual = new JoystickButton(xBoxOne, 5);\n latchOpenManual.whileHeld(new latchOpenManual());\n toggleDirection = new JoystickButton(xBoxOne, 3);\n toggleDirection.whenPressed(new SwitchDirection());\n follow = new JoystickButton(xBoxOne, 8);\n follow.whenPressed(new follow());\n driveBackToDistance = new JoystickButton(xBoxOne, 1);\n driveBackToDistance.whenPressed(new AutoReverse());\n driveToDistance = new JoystickButton(xBoxOne, 4);\n driveToDistance.whenPressed(new AutoDrop());\n\n\n // SmartDashboard Buttons\n SmartDashboard.putData(\"Autonomous Command\", new AutonomousCommand());\n SmartDashboard.putData(\"DriveWithJoystick\", new DriveWithJoystick());\n SmartDashboard.putData(\"driveToDistance\", new driveToDistance());\n SmartDashboard.putData(\"HDriveJoystick\", new HDriveJoystick());\n SmartDashboard.putData(\"driveBackToDistance\", new driveBackToDistance());\n SmartDashboard.putData(\"follow\", new follow());\n SmartDashboard.putData(\"Climb\", new Climb());\n SmartDashboard.putData(\"SwitchDirection\", new SwitchDirection());\n SmartDashboard.putData(\"latchClose\", new latchClose());\n SmartDashboard.putData(\"latchOpen\", new latchOpen());\n SmartDashboard.putData(\"AutoDrop\", new AutoDrop());\n SmartDashboard.putData(\"AutoReverse\", new AutoReverse());\n SmartDashboard.putData(\"latchOpenManual\", new latchOpenManual());\n SmartDashboard.putData(\"latchCloseManual\", new latchCloseManual());\n SmartDashboard.putData(\"autoForwardBack\", new autoForwardBack());\n SmartDashboard.putData(\"kickForward\", new kickForward());\n SmartDashboard.putData(\"CameraSwitch\", new CameraSwitch());\n SmartDashboard.putData(\"Vision\", new Vision());\n SmartDashboard.putData(\"SeekAndDriveTo\", new SeekAndDriveTo());\n SmartDashboard.putData(\"turnRightTimed\", new turnRightTimed());\n SmartDashboard.putData(\"turnLeftTimed\", new turnLeftTimed());\n SmartDashboard.putData(\"driveForwardTimed\", new driveForwardTimed());\n SmartDashboard.putData(\"AutoRight\", new AutoRight());\n SmartDashboard.putData(\"AutoLeft\", new AutoLeft());\n SmartDashboard.putData(\"AutoMiddle\", new AutoMiddle());\n SmartDashboard.putData(\"SeekAndDriveSim\", new SeekAndDriveSim());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n }", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n }", "public DriveSubsystem() {\n\t\tJaguar frontLeftCIM = new Jaguar(RobotMap.D_FRONT_LEFT_CIM);\n\t\tJaguar rearLeftCIM = new Jaguar(RobotMap.D_REAR_LEFT_CIM);\n\t\tJaguar frontRightCIM = new Jaguar(RobotMap.D_FRONT_RIGHT_CIM);\n\t\tJaguar rearRightCIM = new Jaguar(RobotMap.D_REAR_RIGHT_CIM);\n\t\t\n\t\tdrive = new RobotDrive(frontLeftCIM, rearLeftCIM, frontRightCIM, rearRightCIM);\n\t}", "public RobotEngine (){\r\n\t\tthis.fuel = 100;\r\n\t\tthis.recycledMaterial = 0;\r\n\t\tthis.container = new ItemContainer ();\r\n\t\tthis.direction = Direction.NORTH;\r\n\t\tthis.navega = new NavigationModule();\r\n\t}", "public void robotInit() {\n\t\t//Get preferences from robot flash memory\n\t\tprefs = Preferences.getInstance();\n\t\tarmCalMinPosition = prefs.getDouble(\"armCalMinPosition\", 0);\n\t\tarmCal90DegPosition = prefs.getDouble(\"armCal90DegPosition\", 0);\n\t\tif (armCalMinPosition==0 || armCal90DegPosition==0) {\n\t\t\tDriverStation.reportError(\"Error: Preferences missing from RoboRio for Shooter Arm position calibration. Shooter arm disabled.\", true);\n\t\t\tshooterArmEnabled = false;\n\t\t} else {\n\t\t\tshooterArmEnabled = true;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tdebugStream = new FileWriter(\"/home/lvuser/debug.log\", true);\n\t\t\tdebugStream.write(\"Robot program started\\n\");\n\t\t\tdebugStream.flush();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not open debug file: \" + e);\n\t\t}\n\n\t\t//Instantiates the subsystems\n\t\tdriveTrain = new DriveTrain();\n\t\tshifter = new Shifter();\n\t\tshooterArm = new ShooterArm();\n\t\tshooter = new Shooter();\n\t\tintake = new Intake();\n\t\tvision = new Vision();\n\t\tpanel = new PowerDistributionPanel();\n\t\tarmPiston = new ArmPiston();\n\n\t\t// OI must be constructed after subsystems. If the OI creates Commands\n\t\t// (which it very likely will), subsystems are not guaranteed to be\n\t\t// constructed yet. Thus, their requires() statements may grab null\n\t\t// pointers. Bad news. Don't move it.\n\t\toi = new OI();\n\n intake.motorCurrentTrigger.whenActive(new IntakeMotorStop());\n\n timerLEDs.start();\n timerTilt.start();\n timerRumble.start();\n \n // instantiate the command used for the autonomous period\n\t\t//autonomousCommand = new AutonomousCommandGroup();\n\t\traiseArm90 = new ShooterArmMoveToSetLocation(90);\n\t\t\n\t\t// Display active commands and subsystem status on SmartDashboard\n\t\tSmartDashboard.putData(Scheduler.getInstance());\n\t\tSmartDashboard.putData(driveTrain);\n\t\tSmartDashboard.putData(shifter);\n\t\tSmartDashboard.putData(shooterArm);\n\t\tSmartDashboard.putData(shooter);\n\t\tSmartDashboard.putData(intake);\n\t\tSmartDashboard.putData(vision);\n\t\tSmartDashboard.putData(armPiston);\n\t}", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n\n CameraServer.getInstance().startAutomaticCapture().setResolution(320, 240);\n }", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n\n }", "@Override\n public void robotInit() {\n\t\t// set up logging\n\t\tlogger = EventLogging.getLogger(Robot.class, Level.INFO);\n\n // set up hardware\n RobotMap.init();\n\n // set up subsystems\n //initalized drive subsystem, which control motors to move robot\n driveSubsystem = new DriveSubsystem();\n\t\tbuttonSubstyem = new ButtonSubsystem();\n servoSubsystem = new ServoSubsystem();\n wingSubsystem = new WingSubsystem();\n flagSpinnerSubsystem = new FlagSpinnerSubsystem();\n // OI must be constructed after subsystems. If the OI creates Commands\n //(which it very likely will), subsystems are not guaranteed to be\n // constructed yet. Thus, their requires() statements may grab null\n // pointers. Bad news. Don't move it.\n oi = new OI();\n\n // Add commands to Autonomous Sendable Chooser\n chooser.addDefault(\"Autonomous Command\", new AutonomousCommand());\n SmartDashboard.putData(\"Auto mode\", chooser);\n }", "public void robotInit() \n {\n RobotMap.init();\n\n driveTrain = new DriveTrain();\n gripper = new Gripper();\n verticalLift = new VerticalLift();\n\n // OI must be constructed after subsystems. If the OI creates Commands \n //(which it very likely will), subsystems are not guaranteed to be \n // constructed yet. Thus, their requires() statements may grab null \n // pointers. Bad news. Don't move it.\n\n oi = new OI();\n\n autonomousChooser = new SendableChooser();\n autonomousChooser.addDefault( \"Auto: Do Nothing\" , new DoNothing () );\n autonomousChooser.addObject ( \"Auto: Drive To Auto Zone\" , new DriveToAutoZone () );\n autonomousChooser.addObject ( \"Auto: Drive To Auto Zone (Bump)\" , new DriveToAutoZoneBump () );\n //autonomousChooser.addObject ( \"Auto: Get One (Long)\" , new GetOneLong () );\n //autonomousChooser.addObject ( \"Auto: Get One (Short)\" , new GetOneShort () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Bump)\" , new GetOneRecycleBin () );\n autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Side)\" , new GetRecycleBinSide () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Backwards)\" , new GetOneRecycleBinBackwards () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Backwards, Bump)\", new GetOneRecycleBinBackwardsBump() );\n //autonomousChooser.addObject ( \"Auto: Get Two (Short)\" , new GetTwoShort () );\n //autonomousChooser.addObject ( \"Auto: Get Two Short (Special)\" , new GetTwoShortSpecial () );\n //autonomousChooser.addObject ( \"Auto: Get Two (Long, From left)\" , new TwoLongFromLeft () );\n //autonomousChooser.addObject ( \"Auto: Get Two (Long, From right)\" , new TwoLongFromRight () );\n autonomousChooser.addObject ( \"Auto: Get One Tote and Recycle Bin\" , new OneRecycleBinAndTote () );\n autonomousChooser.addObject ( \"Auto: Get One Tote and Recycle Bin (Bump)\" , new OneRecycleBinAndToteBump () );\n SmartDashboard.putData( \"Autonomous\", autonomousChooser );\n\n // instantiate the command used for the autonomous period\n //autonomousCommand = new RunAutonomousCommand();\n\n m_USBVCommand = new UpdateSBValuesCommand();\n m_USBVCommand.start();\n \n frame = NIVision.imaqCreateImage(NIVision.ImageType.IMAGE_RGB, 0);\n /*\n // the camera name (ex \"cam0\") can be found through the roborio web interface\n session = NIVision.IMAQdxOpenCamera(\"cam1\",\n NIVision.IMAQdxCameraControlMode.CameraControlModeController);\n NIVision.IMAQdxConfigureGrab(session);\n \n NIVision.IMAQdxStartAcquisition(session);\n */\n /*\n camServer = CameraServer.getInstance();//.startAutomaticCapture(\"cam1\");\n camServer.setQuality(30);\n \n cam = new USBCamera(\"cam1\");\n cam.openCamera();\n cam.setFPS(60);\n \n cam.setSize(320, 240);\n cam.updateSettings();\n */\n }", "public void robotInit() {\n RobotMap.init();\n initDashboardInput();\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n driveTrain = new DriveTrain();\n power = new Power();\n arm = new Arm();\n sensors = new Sensors();\n ballGrabberSubsystem = new BallGrabberSubsystem();\n winch = new Winch();\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n // OI must be constructed after subsystems. If the OI creates Commands\n //(which it very likely will), subsystems are not guaranteed to be\n // constructed yet. Thus, their requires() statements may grab null\n // pointers. Bad news. Don't move it.\n oi = new OI();\n\n // instantiate the command used for the autonomous period\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n\n arcadeDrive = new ArcadeDrive();\n\n readPreferences();\n }", "@Override\n public void robotInit() {\n SmartDashboard.putBoolean(\"CLIMB\", false);\n SmartDashboard.putNumber(\"servo\", 0);\n // Instantiate our RobotContainer. This will perform all our button bindings, and put our\n // autonomous chooser on the dashboard.\n m_robotContainer = new RobotContainer();\n //coast.\n if (RobotMap.DRIVE_TRAIN_DRAGON_FLY_IS_AVAILABLE)\n getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(false, RobotMap.DRIVE_TRAIN_MIDDLE_WHEEL_PORT);\n\n getRobotContainer().configureButtonBindings();\n getRobotContainer().getTecbotSensors().initializeAllSensors();\n getRobotContainer().getTecbotSensors().getTecbotGyro().reset();\n\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_MIDDLE_WHEEL_PORT);\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_LEFT_CHASSIS_PORTS);\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_RIGHT_CHASSIS_PORTS);\n\n UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();\n camera.setResolution(640, 480);\n\n m_chooser.addOption(\"Move 3 m\", new SpeedReductionStraight(3, .75, 0));\n m_chooser.addOption(\"Rotate 90 degrees\", new SpeedReductionTurn(90, .5));\n m_chooser.setDefaultOption(\"El chido\", new DR01D3K4());\n m_chooser.addOption(\"Collect, go back and shoot\", new CollectPowerCellsGoBackShoot());\n m_chooser.addOption(\"Transport\", new SequentialCommandGroup(new FrontIntakeSetRaw(.75),\n new TransportationSystemSetRaw(.5)));\n m_chooser.addOption(\"Shoot 3PCs n' Move\", new SHOOT_3_PCs_N_MOVE());\n SmartDashboard.putData(\"Auto Mode\", m_chooser);\n\n //camera.setExposureManual(79);\n\n\n }", "@Override\n\tpublic void robotInit() {\n\t\tSmartDashboard.putData(new TestLIDARCommand());\n\n\t\tdriveSubsystem = new DriveSubsystem();\n\t\tshooterSubsystem = new ShooterSubsystem();\n\t\tfeederSubsystem = new FeederSubsystem();\n\t\tintakeSubsystem = new IntakeSubsystem();\n\t\tgearSubsystem = new GearSubsystem();\n\t\tclimberSubsystem = new ClimberSubsystem();\n\t\tcameraSubsystem = new CameraSubsystem();\n\n\t\tnavigator = new Navigator();\n\t\toi = new OI();\n\n\t\tm_chooser = new SendableChooser<>();\n\t\tm_chooser.addDefault(\"Do Nothing\", new PistonReleaseCommand());\n\t\t//m_chooser.addObject(\"Boiler Auto (side hopper)\", new SelectBoilerAutoCommand());\n\t\tm_chooser.addObject(\"Boiler Auto (front hopper)\", new SelectBoilerAutoFrontCommand());\n\t\tm_chooser.addObject(\"Test drive straight\", new MeasureDistanceCommand(1500, 100000));\n\t\tm_chooser.addObject(\"Test max speed\", new TimedDriveCommand(5.0, 1.00));\n\t\tm_chooser.addObject(\"Gear Auto (boiler)\", new SelectGearBoilerCommand());\n\t\tm_chooser.addObject(\"Gear Auto (feeder)\", new SelectGearFeederCommand());\n\t\tm_chooser.addObject(\"Gear Auto (middle)\", new SelectGearMiddleAutoCommand());\n\t\tSmartDashboard.putData(\"Auto mode\", m_chooser);\n\n\t\tRobot.navigator.startMeasuringDistance();\n\t}", "public DriveWithJoystick() {\n // Use requires() here to declare subsystem dependencies\n // eg. requires(chassis);\n requires(drive);\n \n }", "@Override\r\n public void robotInit() {\r\n // Instantiate our RobotContainer. This will perform all our button bindings\r\n robotContainer = new RobotContainer();\r\n }", "public OI() {\n // Xbox Controller 0 Buttons\n \tButtonMap.xbox0_Y.whileHeld(new TransmissionAscend());\n \tButtonMap.xbox0_A.whileHeld(new TransmissionDescend());\n \tButtonMap.xbox0_R1.whenPressed(new ClawClose());\n \tButtonMap.xbox0_L1.whenPressed(new ClawOpen());\n \t\n \t// Drive Commands\n \tButtonMap.xbox0_B.whileHeld(new DriveFullSpeedWithJoystick());\n ButtonMap.xbox0_B.whenReleased(new ArcadeTriggerDriveWithJoystick());\n \t\n \t// Xbox Controller 1 Buttons\n \tButtonMap.xbox1_R1.whenPressed(new ClawClose());\n \tButtonMap.xbox1_L1.whenPressed(new ClawOpen()); \n \tButtonMap.xbox1_Y.whileHeld(new TransmissionAscend()); \n \tButtonMap.xbox1_A.whileHeld(new TransmissionDescend()); \n }", "public SubsystemDrive(){\n \t\n \t//Master Talons\n \tleft1 = new CANTalon(Constants.LEFT_MOTOR);\n \tright1 = new CANTalon(Constants.RIGHT_MOTOR);\n \t\n \t//Slave Talons\n \tleft2 = new CANTalon(Constants.OTHER_LEFT_MOTOR);\n \tright2 = new CANTalon(Constants.OTHER_RIGHT_MOTOR);\n \t\n \t//VOLTAGE\n \tvoltage(left1); \t\n \tvoltage(left2); \t\n \tvoltage(right1); \t\n \tvoltage(right2); \t\n\n \t//Train the Masters\n \tleft1.setFeedbackDevice(CANTalon.FeedbackDevice.CtreMagEncoder_Relative);\n \tright1.setFeedbackDevice(CANTalon.FeedbackDevice.CtreMagEncoder_Relative);\n \tleft1.setEncPosition(0);\n \tright1.setEncPosition(0);\n \tleft1.reverseSensor(false);\n \tright1.reverseSensor(false);\n \t\n \t//Train the Slaves\n \tleft2.changeControlMode(CANTalon.TalonControlMode.Follower);\n \tright2.changeControlMode(CANTalon.TalonControlMode.Follower);\n \tleft2.set(left1.getDeviceID());\n \tright2.set(right1.getDeviceID());\n \t\n \tpid = new TalonPID(new CANTalon[]{left1, right1}, \"MOTORS\");\n }", "public void robotInit() {\n RobotMap.init();\n driveWithJoystick = new DriveTrain();\n \n oi = new OI();\n }", "public BasicRobot getRobot() {\n\t\treturn robot;\n\t}", "public OI() {\n\t\t//Create Driver Button Triggers\n//\t\ttoggleFieldOriented.whenPressed(new ToggleFieldOriented());\n\t\ttoggleGyro.whenPressed(new ToggleGyro());\n\t\tturnTo270.whenPressed(new SetHeading(270.0));\n\t\tturnTo180.whenPressed(new SetHeading(180.0));\n\t\tturnto90.whenPressed(new SetHeading(90.0));\n\t\tturnTo0.whenPressed(new SetHeading(0.0));\n\t\tgyroReset.whenPressed(new ResetGyro());\n\t\tgather.whileHeld(new Gather(false));\n\t\tdriveFast.whileHeld(new DriveFast());\n\t\tdeploy.whileHeld(new ReverseGatherer());\n\t\topenArms.toggleWhenPressed(new OpenArms());\n\t\t\n\t\t//Create Manipulator Button Triggers\n\t\tlowerStack.whenPressed(new SetStackHeight(Constants.STACKER_LOW));\n\t\traiseStack.whenPressed(new G_SnugNRaise());\n\t\traiseFingers.whileHeld(new RaiseFingersBASS());\n\t\tsecureStack.whenPressed(new SetStackHeight(Constants.STACKER_TOTE_SECURE));\n\t\tbinStack.whenPressed(new SetStackHeight(Constants.STACKER_BIN_GATHER));\n\t\tdeployBASS.toggleWhenPressed(new ExtendArmsBASS());\n\t\tgatherStack.whileHeld(new Gather(true));\n\t\tmanipDeploy.whileHeld(new G_DeployTote());\n\t\tdisableStacker.toggleWhenPressed(new DisableStacker());\n\t\t\n\t\t//Create Trigger Triggers\n\t\ttoteDetected.whenActive(new G_StoreTote());\n\t\tstackerStalled.whileActive(new StopStacker());\n\t\t\n\t}", "@Override\n public void robotInit() {\n // Instantiate our RobotContainer. This will perform all our button bindings, and put our\n // autonomous chooser on the dashboard.\n m_robotContainer = new RobotContainer();\n \n left_motor_1= new CANSparkMax(2,MotorType.kBrushless);\n left_motor_2=new CANSparkMax(3,MotorType.kBrushless);\n right_motor_1=new CANSparkMax(5,MotorType.kBrushless);\n right_motor_2=new CANSparkMax(6,MotorType.kBrushless);\n ball_collection_motor=new CANSparkMax(4,MotorType.kBrushless);\n left_high_eject=new CANSparkMax(1, MotorType.kBrushless);\n right_high_eject=new CANSparkMax(7,MotorType.kBrushless);\n left_belt=new TalonSRX(9);\n right_belt=new TalonSRX(11);\n left_low_eject=new TalonSRX(8);\n right_low_eject=new TalonSRX(12);\n double_solenoid_1=new DoubleSolenoid(0,1);\n joystick=new Joystick(1);\n servo=new Servo(0);\n if_correted=false;\n xbox_controller=new XboxController(0);\n servo_angle=1;\n eject_speed=0;\n go_speed=0;\n turn_speed=0;\n high_eject_run=false;\n clockwise=false;\n left_motor_1.restoreFactoryDefaults();\n left_motor_2.restoreFactoryDefaults();\n right_motor_1.restoreFactoryDefaults();\n right_motor_2.restoreFactoryDefaults();\n \n left_motor_2.follow(left_motor_1);\n right_motor_1.follow(right_motor_2);\n servo.set(0);\n currentServoAngle = 0;\n factor = 0.01;\n pushed = false;\n //right_high_eject.follow(left_high_eject);\n //right_low_eject.follow(left_low_eject);\n\n }", "public JoystickDriveCommand() {\n\t\trequires(Robot.chassisSubsystem);\n\t}", "@Override\n public void robotInit() {\n m_robotContainer = new RobotContainer();\n // Initiate the limelight network table\n NetworkTable table = NetworkTableInstance.getDefault().getTable(\"limelight\");\n tx = table.getEntry(\"tx\");\n ty = table.getEntry(\"ty\");\n ta = table.getEntry(\"ta\");\n RobotContainer.turretSub.tsrxTurret.setSelectedSensorPosition(0);\n }", "public OI(){\n driveStick = new Joystick(RobotMap.DRIVE_STICK);\n armStick = new Joystick(RobotMap.ARM_STICK);\n assoc(); \n }", "public AllSystemsClimbCenter() {\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=PARAMETERS\n // Add Commands here:\n // e.g. addSequential(new Command1());\n // addSequential(new Command2());\n // these will run in order.\n\n // To run multiple commands at the same time,\n // use addParallel()\n // e.g. addParallel(new Command1());\n // addSequential(new Command2());\n // Command1 and Command2 will run in parallel.\n\n // A command group will require all of the subsystems that each member\n // would require.\n // e.g. if Command1 requires chassis, and Command2 requires arm,\n // a CommandGroup containing them would require both the chassis and the\n // arm.\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS\n\n // if (!Robot.getKillClimber()) constantly checks if climber was killed by driver\n\n // if (!Robot.getKillClimber())\n // {\n // // set drive direction to correct orientation for climbing (front of robot direction)\n // Robot.chassis.setDriveDirection(-1);\n // }\n\n // if (!Robot.getKillClimber())\n // {\n // // ensure robot intake is in start position\n // addParallel(new ShooterAngleRotate(Constants.ALL_CENTER_SHOOTER_CLIMB_START_POSITION));\n // // ensure robot is against platform\n // addSequential(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_INITIAL_POWER, \n // Constants.ALL_CENTER_CHASSIS_INITIAL_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // }\n \n // extends front and back climber at the same time\n if (!Robot.getKillClimber())\n {\n addParallel(new ClimberFrontSetPosition(Constants.ALL_CENTER_FRONT_CLIMBER_EXTEND_POSITION));\n addParallel(new ClimberBackSetPosition(Constants.ALL_CENTER_BACK_CLIMBER_EXTEND_POSITION));\n // delay only 2 seconds in order to rotate shooter angle to pull in position faster\n addSequential(new Delay(2));\n }\n\n // // rotate shooter angle in order to pull robot onto platform\n // if (!Robot.getKillClimber())\n // {\n // addParallel(new ShooterAngleRotate(Constants.ALL_CENTER_SHOOTER_PULL_IN_POSITION));\n // addSequential(new Delay(2));\n // }\n \n // if (!Robot.getKillClimber())\n // {\n // // start shooter climber wheels in order to pull in\n // addParallel(new SetShooterSpeedStraight(Constants.ALL_CENTER_SHOOTER_PULL_IN_RPM));\n // // drive forward onto the platform\n // addSequential(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_PLATFORM_POWER, \n // Constants.ALL_CENTER_CHASSIS_PLATFORM_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // }\n\n // // bring up back climber\n // if (!Robot.getKillClimber())\n // {\n // addParallel(new ClimberBackSetPosition(Constants.ALL_CENTER_BACK_CLIMBER_RETRACT_POSITION));\n // addSequential(new Delay(2));\n // }\n\n // // drive forward onto the platform\n // if (!Robot.getKillClimber())\n // {\n // addSequential(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_PLATFORM_POWER, \n // Constants.ALL_CENTER_CHASSIS_PLATFORM_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // }\n\n // if (!Robot.getKillClimber())\n // {\n // // bring up front climber\n // addParallel(new ClimberFrontSetPosition(Constants.ALL_CENTER_FRONT_CLIMBER_RETRACT_POSITION));\n // addSequential(new Delay(2));\n // }\n // if (!Robot.getKillClimber())\n // {\n // // drive forward onto the platform\n // addParallel(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_PLATFORM_POWER, \n // Constants.ALL_CENTER_CHASSIS_PLATFORM_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // // bring shooter angle rotate to home position so it doesn't hit driver station\n // addSequential(new ShooterAngleRotate(Constants.ALL_CENTER_SHOOTER_HOME_POSITION));\n // }\n }", "public interface RobotConveyor {\n\n Robot createRobot();\n}", "public void robotInit() {\n\t\toi = new OI();\n\t\t\n\t\tteleopCommand = new TeleopCommand();\n }", "public static void init() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n driveTrainSubsystemleftFront = new Jaguar(1, 1);\r\n\tLiveWindow.addActuator(\"DriveTrainSubsystem\", \"leftFront\", (Jaguar) driveTrainSubsystemleftFront);\r\n \r\n driveTrainSubsystemleftRear = new Jaguar(1, 5);\r\n\tLiveWindow.addActuator(\"DriveTrainSubsystem\", \"leftRear\", (Jaguar) driveTrainSubsystemleftRear);\r\n \r\n driveTrainSubsystemrightFront = new Jaguar(1, 6);\r\n\tLiveWindow.addActuator(\"DriveTrainSubsystem\", \"rightFront\", (Jaguar) driveTrainSubsystemrightFront);\r\n \r\n driveTrainSubsystemrightRear = new Jaguar(1, 7);\r\n\tLiveWindow.addActuator(\"DriveTrainSubsystem\", \"rightRear\", (Jaguar) driveTrainSubsystemrightRear);\r\n \r\n driveTrainSubsystemRobotDrive = new RobotDrive(driveTrainSubsystemleftFront, driveTrainSubsystemleftRear,\r\n driveTrainSubsystemrightFront, driveTrainSubsystemrightRear);\r\n\t\r\n driveTrainSubsystemRobotDrive.setSafetyEnabled(true);\r\n driveTrainSubsystemRobotDrive.setExpiration(0.1);\r\n driveTrainSubsystemRobotDrive.setSensitivity(0.5);\r\n driveTrainSubsystemRobotDrive.setMaxOutput(1.0);\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n }", "public void robotInit() {\n\t\toi = OI.getInstance();\r\n\t\t\r\n\t\t// instantiate the command used for the autonomous and teleop period\r\n\t\treadings = new D_SensorReadings();\r\n\t\t// Start pushing values to the SD.\r\n\t\treadings.start();\r\n\t\t//Gets the single instances of driver and operator, from OI. \r\n\t\tdriver = oi.getDriver();\r\n\t\toperator = oi.getOperator();\r\n\r\n\t\t//Sets our default auto to NoAuto, if the remainder of our code doesn't seem to work. \r\n\t\tauto = new G_NoAuto();\r\n\t\t\r\n\t\t//Sets our teleop commandGroup to T_TeleopGroup, which contains Kaj,ELevator, Intake, and Crossbow Commands. \r\n\t\tteleop = new T_TeleopGroup();\r\n\t\t\r\n\t}", "public void robotInit() {\n\t\toi = new OI();\n // instantiate the command used for the autonomous period\n }", "public DriveTrain(){\r\n super(\"Drive Train\");\r\n Log = new MetaCommandLog(\"DriveTrain\", \"Gyro\" , \"Left Jaguars,Right Jaguars\");\r\n gyro1 = new Gyro(RobotMap.AnalogSideCar , RobotMap.DriveTrainGyroInput);\r\n lfJag = new Jaguar(RobotMap.frontLeftMotor);\r\n lfRearJag = new Jaguar(RobotMap.rearLeftMotor);\r\n rtJag = new Jaguar(RobotMap.frontRightMotor);\r\n rtRearJag = new Jaguar(RobotMap.rearRightMotor);\r\n drive = new RobotDrive(lfJag, lfRearJag, rtJag, rtRearJag);\r\n \r\n //lfFrontJag = new Jaguar (3);\r\n //rtFrontJag = new Jaguar (4);\r\n \r\n //joystick2 = new Joystick(2);\r\n //sensor1 = new DigitalInput(1);\r\n //sensor2 = new DigitalInput (2);\r\n\r\n }", "@Override\n public void robotInit() {\n\toi = new OI();\n\tgameData = new GameData();\n\tcubeVision.start();\n\n\tinitializeDashboard();\n }", "public void agregarRobot(Robot robot);", "public DriveSubsystem() {\n leftFrontMotor = new TalonSRX(RobotMap.leftFrontMotor);\n rightFrontMotor = new TalonSRX(RobotMap.rightFrontMotor);\n leftBackMotor = new TalonSRX(RobotMap.leftBackMotor);\n rightBackMotor = new TalonSRX(RobotMap.rightBackMotor);\n // rightMotor.setInverted(true); \n direction = 0.75;\n SmartDashboard.putString(\"Direction\", \"Shooter side\");\n }", "public ChassisSubsystem() {\n \tleftMotor.setInverted(RobotMap.leftMotorInverted);\n \trightMotor.setInverted(RobotMap.rightMotorInverted);\n \tleftMiniCIM.setInverted(RobotMap.leftMiniCIMInverted);\n \trightMiniCIM.setInverted(RobotMap.rightMiniCIMInverted);\n }", "@Override\n\tpublic void robotInit() {\n\t\tdrive = new Drive();\n\t\tintake = new Intake();\n\t\tshooter = new Shooter();\n\t\taimShooter = new AimShooter();\n\t\tvision = new Vision();\n\t\tintakeRoller = new IntakeRoller();\n\t\taManipulators = new AManipulators();\n\t\tshooterLock = new ShooterLock();\n\n\t\t// autochooser\n\t\t// autoChooser = new SendableChooser();\n\n\t\toi = new OI();\n\t\t// instantiate the command used for the autonomous period\n\t\tlowGearCommand = new LowGear();\n\n\t\t// auto chooser commands\n\t\t// autoChooser.addDefault(\"FarLeftAuto\", new FarLeftAuto());\n\t\t// autoChooser.addObject(\"MidLeftAuto\", new MidLeftAuto());\n\t\t// autoChooser.addObject(\"MidAuto\", new MidAuto());\n\t\t// autoChooser.addObject(\"MidRightAuto\", new MidRightAuto());\n\t\t// autoChooser.addObject(\"FarRightAuto\", new FarRightAuto());\n\t\t// autoChooser.addObject(\"Uber Auto\", new UberAuto());\n\t\t// autoChooser.addObject(\"Paper Weight\", new PaperWeightAuto());\n\t\t//\n\t\t// SmartDashboard.putData(\"Autonomous\", autoChooser);\n\n\t\t// autonomousCommand = (Command) autoChooser.getSelected();\n\t\tautonomousCommand = new FarLeftAuto();\n\t\t// autonomousCommand = new MidAuto();\n\t\t// CameraServer.getInstance().startAutomaticCapture(\"cam3\");\n\t\t// autonomousCommand = new FarLeftAuto\n\n\t\tpovUpTrigger.whenActive(new MoveActuatorsUp());\n\t\tpovDownTrigger.whenActive(new MoveActuatorsDown());\n\t}", "public DriveSubsystem() {\n }", "public void robotInit() {\n RobotMap.init();\n driveTrain = new DriveTrain();\n oi = new OI();\n flippy = new Flipper();\n flappy = new Flapper();\n autonomousCommand = new AutoFlip();\n \n OI.init();\n CommandBase.init();\n autoChooser = new SendableChooser();\n autoChooser.addDefault(\"Flap Left\", new AutoFlip());\n SmartDashboard.putData(\"Autonomous_Mode\", autoChooser); \n }", "public DriveSubsystem() {\n m_leftSpark1 = new CANSparkMax(DriveConstants.kLeftMotor1Port, MotorType.kBrushless);\n m_leftSpark2 = new CANSparkMax(DriveConstants.kLeftMotor2Port, MotorType.kBrushless);\n m_rightSpark1 = new CANSparkMax(DriveConstants.kRightMotor1Port, MotorType.kBrushless);\n m_rightSpark2 = new CANSparkMax(DriveConstants.kRightMotor2Port, MotorType.kBrushless);\n\n initSparkMax(m_leftSpark1);\n initSparkMax(m_leftSpark2);\n initSparkMax(m_rightSpark1);\n initSparkMax(m_rightSpark2);\n\n m_leftSpark2.follow(m_leftSpark1);\n m_rightSpark2.follow(m_rightSpark2);\n\n m_leftEncoder = m_leftSpark1.getEncoder();\n m_rightEncoder = m_rightSpark1.getEncoder();\n\n m_drive = new DifferentialDrive(m_leftSpark1, m_rightSpark1);\n }", "public static void init() {\n driveLeft = new VictorSP(1);\r\n LiveWindow.addActuator(\"Drive\", \"Left\", (VictorSP) driveLeft);\r\n \r\n driveRight = new VictorSP(0);\r\n LiveWindow.addActuator(\"Drive\", \"Right\", (VictorSP) driveRight);\r\n \r\n driveMotors = new RobotDrive(driveLeft, driveRight);\r\n \r\n driveMotors.setSafetyEnabled(false);\r\n driveMotors.setExpiration(0.1);\r\n driveMotors.setSensitivity(0.5);\r\n driveMotors.setMaxOutput(1.0);\r\n\r\n driveEncoderLeft = new Encoder(0, 1, true, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderLeft\", driveEncoderLeft);\r\n driveEncoderLeft.setDistancePerPulse(0.053855829);\r\n driveEncoderLeft.setPIDSourceType(PIDSourceType.kRate);\r\n driveEncoderRight = new Encoder(2, 3, false, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderRight\", driveEncoderRight);\r\n driveEncoderRight.setDistancePerPulse(0.053855829);\r\n driveEncoderRight.setPIDSourceType(PIDSourceType.kRate);\r\n driveFrontSonar = new Ultrasonic(4, 5);\r\n LiveWindow.addSensor(\"Drive\", \"FrontSonar\", driveFrontSonar);\r\n \r\n shooterMotor = new VictorSP(3);\r\n LiveWindow.addActuator(\"Shooter\", \"Motor\", (VictorSP) shooterMotor);\r\n \r\n climberMotor = new Spark(2);\r\n LiveWindow.addActuator(\"Climber\", \"Motor\", (Spark) climberMotor);\r\n \r\n gearGrabReleaseSolonoid = new DoubleSolenoid(0, 0, 1);\r\n LiveWindow.addActuator(\"Gear\", \"GrabReleaseSolonoid\", gearGrabReleaseSolonoid);\r\n \r\n powerPanel = new PowerDistributionPanel(0);\r\n LiveWindow.addSensor(\"Power\", \"Panel\", powerPanel);\r\n \r\n cameraMountpan = new Servo(4);\r\n LiveWindow.addActuator(\"CameraMount\", \"pan\", cameraMountpan);\r\n \r\n cameraMounttilt = new Servo(5);\r\n LiveWindow.addActuator(\"CameraMount\", \"tilt\", cameraMounttilt);\r\n \r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n\t\tdriveSonarFront = new SonarMB1010(0);\r\n\t\tLiveWindow.addSensor(\"Drive\", \"SonarFront\", driveSonarFront);\r\n\r\n\t\t//driveGyro = new GyroADXRS453();\r\n\t\tdriveGyro = new ADXRS450_Gyro();\r\n\t\tLiveWindow.addSensor(\"Drive\", \"Gyro\", driveGyro);\r\n\t\tdriveGyro.calibrate();\r\n\t}", "public void robotInit() {\n \tboardSubsystem = new BoardSubsystem();\n }", "public RobotInfo() {\n }", "@Override\n public void robotInit()\n {\n System.out.println(\"RoboRIO initializing...\");\n\n // initialize cameras\n camFront = CameraServer.getInstance().startAutomaticCapture(0);\n camBack = CameraServer.getInstance().startAutomaticCapture(1);\n camServForward = CameraServer.getInstance().getServer();\n camServReverse = CameraServer.getInstance().getServer();\n\n camServForward.setSource(camFront);\n //camServReverse.setSource(camBack);\n\n // init joysticks\n Joystick[] joysticks = getControllers();\n\n driveTrain = new DriveTrain();\n hatchArm = new HatchArm();\n cargoArm = new CargoArm();\n ramp = new Ramp();\n\n driver1 = new Buttons(joysticks[0]);\n driver2 = new Buttons(joysticks[1]);\n\n // init gyro\n // try\n // {\n // gyro = new AHRS(I2C.Port.kOnboard);\n // }\n // catch (RuntimeException ex)\n // {\n // // DriverStation.reportError(\"Error instantiating navX-MXP: \" + ex.getMessage(),\n // // true);\n // System.out.println(\"Error initializing gyro!\");\n // }\n\n // // update gyro info on smart dashboard\n // SmartDashboard.putNumber(\"X angle\", gyro.getYaw() + 180);\n // SmartDashboard.putNumber(\"Y angle\", gyro.getPitch() + 180);\n // SmartDashboard.putNumber(\"Z angle\", gyro.getRoll() + 180);\n \n // SmartDashboard.putNumber(\"X vel\", gyro.getVelocityX());\n // SmartDashboard.putNumber(\"Y vel\", gyro.getVelocityY());\n // SmartDashboard.putNumber(\"Z vel\", gyro.getVelocityZ());\n\n // SmartDashboard.putData(gyro);\n updateVars();\n updateShuffleboard();\n\n System.out.println(\"RoboRIO initialization complete.\");\n }", "public DriveSubsystem() {\n leftDrive = new Spark(0);\n rightDrive = new Spark(1);\n\n leftEncoder = new Encoder(0, 1);\n rightEncoder = new Encoder(2, 3);\n\n leftEncoder.setDistancePerPulse((Math.PI * WHEEL_DIAMETER) / PPR);\n rightEncoder.setDistancePerPulse((Math.PI * WHEEL_DIAMETER) / PPR);\n \n drive = new DifferentialDrive(leftDrive, rightDrive);\n\n }", "public Atendiendo(Robot robot){\n this.robot = robot;\n }", "private static void setSubsystems()\n {\n //Components\n //Talons\n frontLeftTalon.setName(\"DrivetrainSubsystem\", \"FrontLeftDriveTalon\");\n frontRightTalon.setName(\"DrivetrainSubsystem\", \"FrontRightDriveTalon\");\n rearLeftTalon.setName(\"DrivetrainSubsystem\", \"RearLeftDriveTalon\");\n rearRightTalon.setName(\"DrivetrainSubsystem\", \"RearRightDriveTalon\");\n //Sensors\n //navX.setName(\"SensorSubsystem\", \"NavX\");\n System.out.print(pigeon.getAbsoluteCompassHeading());\n \n //Subsystems\n drivetrainSubsystem.setName(\"DrivetrainSubsystem\", \"DrivetrainSubsystem\");\n sensorSubsystem.setName(\"SensorSubsystem\", \"SensorSubsystem\");\n }", "@Override\n\tpublic void robotInit() {\n\t\t\n\t\t//CameraServer.getInstance().startAutomaticCapture(); //Minimum required for camera\n\t\t\n\t\t//new Thread(() -> {\n UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();\n camera.setResolution(640, 480);\n camera.setWhiteBalanceAuto();\n camera.setFPS(20);\n \n //CvSink cvSink = CameraServer.getInstance().getVideo();\n //CvSource outputStream = CameraServer.getInstance().putVideo(\"Blur\", 640, 480);\n /* \n Mat source = new Mat();\n Mat output = new Mat();\n \n while(!Thread.interrupted()) {\n cvSink.grabFrame(source);\n Imgproc.cvtColor(source, output, Imgproc.COLOR_BGR2GRAY);\n outputStream.putFrame(output);\n }*/\n //}).start();\n\t\t\n\t\t\n\t\t\n\t\t/**\n\t\t * 7780 long run\n\t\t */\n\t\t\n\t\tdriverStation = DriverStation.getInstance();\n\t\t// Initialize all subsystems\n\t\tm_drivetrain = new DriveTrain();\n\t\tm_pneumatics = new Pneumatics();\n\t\t\n\t\tm_pneumatics.createSolenoid(RobotMap.PNEUMATICS.GEARSHIFT_SOLENOID, \n\n\t\t\t\tRobotMap.PNEUMATICS.SOLENOID_ID_1, \n\n\t\t\t\tRobotMap.PNEUMATICS.SOLENOID_ID_2);\n\t\t\n\t\tm_pneumatics.createSolenoid(RobotMap.PNEUMATICS.FORKLIFT_SOLENOID, RobotMap.PNEUMATICS.SOLENOID_ID_3, RobotMap.PNEUMATICS.SOLENOID_ID_4);\n\t\t\n\t\tm_forklift = new ForkLift();\n\t\tm_intake = new Intake();\n\t\tm_oi = new OI();\n\n\t\t// instantiate the command used for the autonomous period\n\t\tm_autonomousCommand = new Autonomous();\n\t\tdriverXbox = m_oi.getDriverXboxControl();\n\t\toperatorXbox = m_oi.getDriverXboxControl();\n\t\tsetupAutoCommands();\n\t\t\n\t\t//chooser.addDefault(\"Left Long\",new LeftLong());\n\t\t\n\t\t//SmartDashboard.putData(\"Auto\",chooser);\n\n\t\t// Show what command your subsystem is running on the SmartDashboard\n\t\tSmartDashboard.putData(m_drivetrain);\n\t\tSmartDashboard.putData(m_forklift);\n\t\t\n\t}", "public void robotInit()\n\t{\n\t\toi = new OI();\n\t\t// instantiate the command used for the autonomous period\n\t\t// autonomousCommand = new Driver();\n\t}", "@Override\n\tpublic void robotInit() {\n\t\tfr = new Spark(HardwareMap.PWM.DRIVE_FR);\n\t\tfl = new Spark(HardwareMap.PWM.DRIVE_FL);\n\t\tbr = new Spark(HardwareMap.PWM.DRIVE_BR);\n\t\tbl = new Spark(HardwareMap.PWM.DRIVE_BL);\n\t\t\n\t\t// Create the side modules\n\t\tleftGroup = new SpeedControllerGroup(bl, fl);\n\t\trightGroup = new SpeedControllerGroup(br, fr);\n\n\t\t// Init the the drive train\n\t\tdrive = new DifferentialDrive(leftGroup, rightGroup);\n\t\t\n\t\t//Init the gyro\n\t\tgyro.calibrate();\n\t\tSmartDashboard.putData(\"Gyro\", gyro);\n\t\t\n\t\tdrive.setSafetyEnabled(false);\n\t\tthis.setName(Subsystems.DRIVE);\n\t}", "public ConfigureRobot()\n {\n Scheduler.getInstance().removeAll(); //remove all running commands\n addSequential(new BrakeOpen(),2);\n addSequential(new WaitCommand(1));\n addSequential(new LiftToBottom(),3);\n }", "public void robotInit() {\n\t\tmyRobot = new RobotDrive(0,1);\n\t\tteleop = new Teleop(myRobot);\n\t\tauto = new AutonomousDrive(myRobot);\n\t}", "@Basic\r\n\tpublic Robot getRobot()\r\n\t{\r\n\t\treturn this.robot;\r\n\t}", "public Driver()\n {\n // instantiate joysticks & controllers here.\n\n // bind button objects to physical buttons here.\n\n // bind buttons to commands here.\n\n }", "public void robotInit() {\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", defaultAuto);\n chooser.addObject(\"My Auto\", customAuto);\n SmartDashboard.putData(\"Auto choices\", chooser);\n \n // camera stuff\n robotCamera = CameraServer.getInstance();\n robotCamera.setQuality(50);\n robotCamera.startAutomaticCapture(\"cam0\");\n\n //our robot stuff\n // myChassis\t= new RobotDrive(0,1);\n leftSide\t= new VictorSP(1);\n rightSide\t= new VictorSP(0);\n spinWheels\t= new TalonSRX(2);\n armLifty\t= new TalonSRX(3);\n drivePad\t= new Joystick(0);\n statesPad\t= new Joystick(1);\n LiveWindow.addActuator(\"stud\", \"talonsrx\", armLifty);\n \n //arm position stuff\n armPosition\t\t= new AnalogInput(0);\n armPortSwitch\t= new DigitalInput(0);\n \n //solenoid stuff\n //solenoidThing = new Solenoid(1);\n \n //init button states\n lBPX\t\t\t= false;\n bIPX\t\t\t= false;\n \n //driver buttons\n ballSpitButton\t= 4;\n ballSuckButton\t= 2;\n \n //state machine variables\n defaultState\t\t= 0;\n portState\t\t\t= 1;\n chevellState\t\t= 2;\n ballGrabState\t\t= 10;\n driveState\t\t\t= 11;\n lowBarState\t\t\t= 8;\n rockState\t\t\t= driveState;\n roughState\t\t\t= driveState;\n moatState\t\t\t= driveState;\n rampartState\t\t= driveState;\n drawState\t\t\t= driveState;\n sallyState\t\t\t= driveState;\n liftOverride\t\t= 0.09;\n terrainStates\t\t= 0;\n autoLiftSpeed\t\t= 1.0;\n armLiftBuffer\t\t= 0.01;\n //port state variables\n portPosition1\t\t= 1.7;\n portPosition2\t\t= 0.9;\n portSwitch\t\t\t= 0;\n //chevell state variables\n chevellPosition1\t= 1.135;\n chevellPosition2\t= 2.0;\n chevellSwitch \t\t= 0;\n chevellWheelSpeed\t= 0.3;\n //ball grab state variables\n ballGrabPosition1\t= 1.35;\n ballGrabSwitch\t\t= 0;\n ballGrabWheelSpeed\t= -0.635;\n ballSpitWheelSpeed\t= 1.0;\n //lowbar state variables\n lowBarPosition\t\t= 1.6;\n lowBarSwitch\t\t= 0;\n //drive state variables\n driveSwitch\t\t\t= 1;\n \n }", "@Override\n public void robotInit() {\n m_driveTrain = new DriveTrain();\n m_oi = new OI(); \n encoder = new Encoder();\n JoystickDrive = new JoystickDrive();\n RoboticArm = new RoboticArm();\n Science = new Science();\n pid = new PID();\n inverse = new Inverse();\n\n // workingSerialCom = new serialComWorking();\n\n\n // while(true){\n // // ros_string = workingSerialCom.read();\n // // System.out.println(ros_string);\n // LeftFront = Robot.m_driveTrain.dr+iveTrainLeftFrontMotor.getSelectedSensorVelocity()*(10/4096);\n // RightFront = Robot.m_driveTrain.driveTrainRightFrontMotor.getSelectedSensorVelocity()*(10/4096);\n // LeftFront_ros = workingSerialCom.floattosString(LeftFront);\n // RigthFront_ros = workingSerialCom.floattosString(RightFront);\n\n // ros_string = workingSerialCom.read();\n // gulce = workingSerialCom.StringConverter(ros_string, 1);\n // System.out.println(gulce);\n // workingSerialCom.write(LeftFront_ros+RigthFront_ros+\"\\n\");\n // }\n // workingSerialCom.write(\"Yavuz\\n\");\n // // RoboticArm.run();\n // // m_driveTrain.run();\n // // workingSerialCom.StringConverter(ros_string, 3);\n }", "protected void setup() {\n /**\n * Content manager manages the content languages and ontologies \"known\" by a given agent.\n * We register new languages that is required that our agent knows.\n * SLCodec is the codec class for the FIPA-SLn languages.\n * MobilityOntology is the class that represents the ontology used for JADE mobility.\n */\n getContentManager().registerLanguage(new SLCodec());\n getContentManager().registerOntology(MobilityOntology.getInstance());\n\n /**\n * Create containers. ProfileImpl allows us to set boot-parameters for the new containers.\n */\n homeContainer = getContainerController(); //retrieve the containercontroller that this agent lives in\n createdContainers = new AgentContainer[3]; //we require 3 containers for this scenario\n ProfileImpl curatorContainer1 = new ProfileImpl();\n curatorContainer1.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-1\");\n ProfileImpl curatorContainer2 = new ProfileImpl();\n curatorContainer2.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-2\");\n ProfileImpl artistManagerContainer = new ProfileImpl();\n artistManagerContainer.setParameter(ProfileImpl.CONTAINER_NAME, \"Artistmanager-Container\");\n createdContainers[0] = runtime.createAgentContainer(curatorContainer1);\n createdContainers[1] = runtime.createAgentContainer(curatorContainer2);\n createdContainers[2] = runtime.createAgentContainer(artistManagerContainer);\n doWait(2000); //wait while containers initializes\n\n /**\n * Request a list of all containers on the platform from AMS\n */\n getAllContainers();\n\n /**\n * Initialize gui\n */\n\n myGui = new ControllerAgentGUI(this, (String[]) containersOnPlatform.keySet().toArray(new String[containersOnPlatform.keySet().size()]));\n myGui.setVisible(true);\n }", "public LSystemBuilderImpl() {\n\t\tthis.commands = new Dictionary();\n\t\tthis.productions = new Dictionary();\n\t\tunitLength = 0.1;\n\t\tunitLengthDegreeScaler = 1;\n\t\torigin = new Vector2D(0, 0);\n\t\tangle = 0;\n\t\taxiom = \"\";\n\t}", "public Robot getRobot() {\n\t\treturn this.robot;\n\t}", "private OI() {\n\t\t\n\t\tJoystickButton intakeIn = new JoystickButton(//gunner, \n\t\t\t\tdriver, JOYSTICK_INTAKE);\n\t\tJoystickButton intakeOut = new JoystickButton(//gunner, \n\t\t\t\tdriver, JOYSTICK_REVERSE_INTAKE);\n\t\tJoystickButton pivotOut = new JoystickButton(//gunner,\t\t\t\tThese create officially each button on the driver remote\n\t\t\t\tdriver, JOYSTICK_PIVOT_OUT);\n\t\tJoystickButton pivotIn = new JoystickButton(//gunner,\t\t\t\tusing the button numbers created above\n\t\t\t\tdriver, JOYSTICK_PIVOT_IN);\n\t\tJoystickButton climbRelease = new JoystickButton(//gunner,\n\t\t\t\tdriver, JOYSTICK_ClIMB_RELEASE);\n\t\tJoystickButton climbUp = new JoystickButton(//gunner,\n\t\t\t\tdriver, JOYSTICK_CLIMB_UP);\n\t\tJoystickButton climbBrake = new JoystickButton(\n\t\t\t\tdriver, JOYSTICK_BRAKE);\n\t\tJoystickButton climbUndoBrake = new JoystickButton(\n\t\t\t\tdriver, JOYSTICK_UNDO_BRAKE);\n\t\t\n\t\t/*\n\t\t * JoystickButton intakeIn = new JoystickButton(//left, \n\t\t\t\tright, JOYSTICK_INTAKE);\n\t\t * JoystickButton intakeOut = new JoystickButton(//left, \n\t\t\t\tright, JOYSTICK_REVERSE_INTAKE);\n\t\t * JoystickButton pivotOut = new JoystickButton(//left,\t\t\t\tThese create officially each button on the driver remote\n\t\t\t\tright, JOYSTICK_PIVOT_OUT);\n\t\t * JoystickButton pivotIn = new JoystickButton(//left,\t\t\t\tusing the button numbers created above\n\t\t\t\tright, JOYSTICK_PIVOT_IN);\n\t\t * JoystickButton climbRelease = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_ClIMB_RELEASE);\n\t\t * JoystickButton climbUp = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_CLIMB_UP);\n\t\t * JoystickButton climbBrake = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_BRAKE);\n\t\t * JoystickButton climbUndoBrake = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_UNDO_BRAKE);\n\t\t */\n\t\t\n\t\t\n\t\tintakeIn.whileHeld(new IntakeIn());\t\t\t//Executes intakeIn WHILE the button is pressed\n\t\tintakeIn.whenReleased(new IntakeStop());\t//executes intakestop WHEN the button is let go\n\t\t\n\t\tintakeOut.whileHeld(new IntakeOut());\t\n\t\tintakeOut.whenReleased(new IntakeStop());\n\t\t\n\t\tpivotIn.whileHeld(new PivotIn());\n\t\tpivotIn.whenReleased(new PivotStop());\t\t\t\t\t\t\t//These bind the buttons to a specific command\n\t\t\n\t\tpivotOut.whileHeld(new PivotOut());\n\t\tpivotOut.whenReleased(new PivotStop());\n\t\t\n\t\tclimbRelease.whileHeld(new ClimbRelease());\n\t\tclimbRelease.whenReleased(new ClimbStop());\n\t\t\n\t\tclimbUp.whileHeld(new ClimbUp());\n\t\tclimbUp.whenReleased(new ClimbStop());\n\t\t\n\t\tclimbBrake.whileHeld(new ClimbBrake());\n\t\tclimbBrake.whenReleased(new BrakeStop());\n\t\t\n\t\tclimbUndoBrake.whileHeld(new ClimbBrakeUndo());\n\t\tclimbUndoBrake.whenReleased(new BrakeStop());\n\t}", "public Subsystem1() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\nspeedController1 = new PWMVictorSPX(0);\naddChild(\"Speed Controller 1\",speedController1);\nspeedController1.setInverted(false);\n \nspeedController2 = new PWMVictorSPX(1);\naddChild(\"Speed Controller 2\",speedController2);\nspeedController2.setInverted(false);\n \nspeedController3 = new PWMVictorSPX(2);\naddChild(\"Speed Controller 3\",speedController3);\nspeedController3.setInverted(false);\n \nspeedController4 = new PWMVictorSPX(3);\naddChild(\"Speed Controller 4\",speedController4);\nspeedController4.setInverted(false);\n \nmecanumDrive1 = new MecanumDrive(speedController1, speedController2,\nspeedController3, speedController4);\naddChild(\"Mecanum Drive 1\",mecanumDrive1);\nmecanumDrive1.setSafetyEnabled(true);\nmecanumDrive1.setExpiration(0.1);\nmecanumDrive1.setMaxOutput(1.0);\n\n \n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public RobotID getRobot() {\n return robot;\n }", "public void robotInit() {\r\n CommandBase.init();\r\n OI.init();\r\n System.out.println(\"ROBOT READY!\");\r\n }", "public RoboticonCustomisation getRoboticon(){\r\n\t\treturn roboticon;\r\n\t}", "public interface OsSystemCycle extends EcucContainer {\n}", "public void robotInit()\r\n {\r\n // Initialize all subsystems\r\n CommandBase.init();\r\n // instantiate the command used for the autonomous period\r\n //Initializes triggers\r\n mecanumDriveTrigger = new MechanumDriveTrigger();\r\n tankDriveTrigger = new TankDriveTrigger();\r\n resetGyro = new ResetGyro();\r\n }", "@Override\n\tpublic void robotInit() {\n\t\toi = new OI();\n\t\tdrivebase.calibrateGyro();\n\t\tSmartDashboard.putData(\"Zero Gyro\", new ZeroGyro());\n\t\tSmartDashboard.putData(\"Calibrate Gyro - WHILE ROBOT NOT MOVING\", new CalibrateGyro());\n\t\tchooser.addDefault(\"Default Prepare Gear Auto\", new PrepareGearManipulator());\n\t\t//shooterModeChooser.addDefault(\"Shooter at Nominal Preset when Pressed\", object);\n\t\t/*chooser.addObject(\"Left Gear Auto\", new LeftGearGroup());\n\t\tchooser.addObject(\"Center Gear Auto\", new CenterGearGroup());*/\n\t//\tchooser.addObject(\"Test Vision Auto\", new TurnTillPerpVision(true));\n\t//\tchooser.addObject(\"Testing turn gyro\", new RotateToGyroAngle(90,4));\n\t\t//chooser.addObject(\"DriveStraightTest\", new GoAndReturn());\n\t\t //UNNECESSARY AUTOS FOR TESTING ^\n\t\tchooser.addObject(\"Center Gear Encoder Auto (place)\", new DriveStraightCenter());\n\t\tchooser.addObject(\"Vision center TESTING!!!\", new TurnTillPerpVision());\n\t\tchooser.addObject(\"Boiler Auto RED\", new BoilerAuto(true));\n\t\tchooser.addObject(\"Boiler Auto BLUE\", new BoilerAuto(false));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t//\tchooser.addObject(\"Center Gear Encoder Auto (do not place )\", new DriveToFace(false, false, false));\n\t\tchooser.addObject(\"Baseline\", new DriveToLeftRightFace(false,false,false,false));\n\t\tchooser.addObject(\"TEST DRIVETANK AUTO\", new DriveTimedTank(0.7,0.7,5));\n\t\tchooser.addObject(\"Side Gear Auto RIGHT (manual straight lineup)(place)(TURN AFTER AND START CYCLE)\", new DriveStraightSide(true,false));\n\n\t\tchooser.addObject(\"Side Gear Auto LEFT (manual straight lineup)(place)(TURN AFTER AND START CYCLE)\", new DriveStraightSide(true,true));\n\t\t//chooser.addObject(\"Side Gear Auto (place)\", new DriveToLeftRightFace(true,false,false,false));\n\t\t//chooser.addObject(\"Test DriveStraight Auto\", new DriveStraightPosition(10,5));\n\t\t//chooser.addObject(\"Center Gear Encoder Auto (place)\", new DriveStraightCenter());\n\t\t/*InterpreterGroup interp = new InterpreterGroup();\n\t\t(interp.init()){\n\t\t\tchooser.addObject(\"Interpreter\",interp);\n\t\t}*/\n\t\t// chooser.addObject(\"My Auto\", new MyAutoCommand());\n\t\tSmartDashboard.putData(\"Auto Chooser\", chooser);\n\n\t\tRobot.drivebase.leftDrive1.setPosition(0);\n \tRobot.drivebase.rightDrive1.setPosition(0);\n \t\n\t\t\n \tRobot.leds.initializei2cBus();\n \tbyte mode = 0;\n \tRobot.leds.setMode(mode);\n \tgearcamera = CameraServer.getInstance();\n\t\t\n \tUsbCamera gearUsb = gearcamera.startAutomaticCapture();\n \tgearUsb.setFPS(25);\n \tgearUsb.setResolution(256, 144);\n\n\t\t//NetworkTable.setClientMode();\n \t//NetworkTable.setIPAddress(\"raspberrypi.local\");\n\t\t\n\t\t\n\t\t/*\n\t\t * new Thread(() -> { UsbCamera goalcamera =\n\t\t * CameraServer.getInstance().startAutomaticCapture();\n\t\t * goalcamera.setResolution(320, 240); goalcamera.setFPS(30);\n\t\t * goalcamera.setBrightness(1); goalcamera.setExposureManual(1);\n\t\t * \n\t\t * CvSink goalCvSink = CameraServer.getInstance().getVideo();\n\t\t * \n\t\t * Mat source = new Mat();\n\t\t * \n\t\t * while(!Thread.interrupted()) { goalCvSink.grabFrame(source);\n\t\t * goaloutputmat = source; } }).start();\n\t\t * goalPipeline.process(goaloutputmat);\n\t\t * \n\t\t * new Thread(() -> { UsbCamera gearcamera =\n\t\t * CameraServer.getInstance().startAutomaticCapture();\n\t\t * gearcamera.setResolution(320, 240); gearcamera.setFPS(30);\n\t\t * gearcamera.setBrightness(1); gearcamera.setExposureManual(1);\n\t\t * \n\t\t * CvSink gearCvSink = CameraServer.getInstance().getVideo();\n\t\t * \n\t\t * Mat source = new Mat();\n\t\t * \n\t\t * while(!Thread.interrupted()) { gearCvSink.grabFrame(source);\n\t\t * gearoutputmat = source; } }).start();\n\t\t * gearPipeline.process(gearoutputmat);\n\t\t */\n\t}", "public modGenRoomControl() {\r\n //construct MbModule\r\n super();\r\n roomObjects = new HashMap(32);\r\n gui = new GUI();\r\n //we depend on the RemoteControl-module\r\n addDependency(\"RemoteControl\");\r\n //we depend on the ARNE-module\r\n addDependency(\"ARNE\");\r\n //register our packet data handler\r\n setPacketDataHandler(new PacketDataHandler());\r\n //we have a html-interface, so lets register it\r\n setHTMLInterface(new HTMLInterface());\r\n }", "public RobotInit() {\n initComponents();\n }", "public Drive() {\r\n leftFrontDrive = new Talon(Constants.DRIVE_LEFT_FRONT);\r\n leftRearDrive = new Talon(Constants.DRIVE_LEFT_REAR);\r\n rightFrontDrive = new Talon(Constants.DRIVE_RIGHT_FRONT);\r\n rightRearDrive = new Talon(Constants.DRIVE_RIGHT_REAR);\r\n \r\n robotDrive = new RobotDrive(\r\n leftFrontDrive,\r\n leftRearDrive, \r\n rightFrontDrive, \r\n rightRearDrive);\r\n \r\n driveDirection = 1.0;\r\n \r\n arcadeYRamp = new CarbonRamp();\r\n arcadeXRamp = new CarbonRamp();\r\n tankLeftRamp = new CarbonRamp();\r\n tankRightRamp = new CarbonRamp();\r\n \r\n ui = CarbonUI.getUI();\r\n }", "@Override\n public void robotInit() {\n }", "@Override\n public void robotInit() {\n }", "@Override\n public void robotInit() {\n }", "@Override\n public void robotInit() {\n\n // Motor controllers\n leftMotor = new CANSparkMax(1, MotorType.kBrushless);\n leftMotor.setInverted(false);\n leftMotor.setIdleMode(IdleMode.kBrake);\n\n CANSparkMax leftSlave1 = new CANSparkMax(2, MotorType.kBrushless);\n leftSlave1.setInverted(false);\n leftSlave1.setIdleMode(IdleMode.kBrake);\n leftSlave1.follow(leftMotor);\n\n CANSparkMax leftSlave2 = new CANSparkMax(3, MotorType.kBrushless);\n leftSlave2.setInverted(false);\n leftSlave2.setIdleMode(IdleMode.kBrake);\n leftSlave2.follow(leftMotor);\n\n rightMotor = new CANSparkMax(4, MotorType.kBrushless);\n rightMotor.setInverted(false);\n rightMotor.setIdleMode(IdleMode.kBrake);\n\n CANSparkMax rightSlave1 = new CANSparkMax(5, MotorType.kBrushless);\n rightSlave1.setInverted(false);\n rightSlave1.setIdleMode(IdleMode.kBrake);\n rightSlave1.follow(leftMotor);\n\n CANSparkMax rightSlave2 = new CANSparkMax(6, MotorType.kBrushless);\n rightSlave2.setInverted(false);\n rightSlave2.setIdleMode(IdleMode.kBrake);\n rightSlave2.follow(leftMotor);\n\n // Encoders\n leftEncoder = leftMotor.getEncoder();\n rightEncoder = rightMotor.getEncoder();\n\n // Gyro\n gyro = new ADXRS450_Gyro();\n\n }", "public DriveWithJoystick(DriveSystem subsystem) {\n // Adds DriveSystem as a requirement subsystem, allowing methods from the subsystem to be called\n drive = subsystem;\n addRequirements(subsystem);\n\n // Instantiation of RobotContainer instance used for joystick input\n robotcontainer = RobotContainer.getInstance();\n\n }", "public void robotInit() {\n\n }", "public void robotInit() {\n\n }", "public Component() {\n\t\tlocation = new Point(0, 0);\n\t\tsize = new Dimension(100, 80);\n\t\tproperties = new LinkedHashMap<>();\n\t\tsubJobContainer= new LinkedHashMap<>();\n\t\tleftPortCount = 0;\n\t\trightPortCount = 0;\n\t\tbottomPortCount = 0;\n\t\tinputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\n\t\tinputLinks = new ArrayList<Link>();\n\t\toutputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\t\toutputLinks = new ArrayList<Link>();\n\t\tinputportTerminals = new ArrayList<String>();\n\t\toutputPortTerminals = new ArrayList<String>();\n\t\twatcherTerminals = new HashMap();\n\t\tnewInstance = true;\n\t\tvalidityStatus = ValidityStatus.WARN.name();\n\t\tcomponentName = DynamicClassProcessor.INSTANCE.getClazzName(this\n\t\t\t\t.getClass());\n\n\t\tcomponentLabel = new ComponentLabel(componentName);\n\t\tcomponentLabelMargin = 16;\n\n\t\tprefix = XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\t\n\t\tdefaultPrefix=XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\tinitPortSettings();\n\t\ttoolTipErrorMessages = new LinkedHashMap<>();\n\t\tstatus = ComponentExecutionStatus.BLANK;\n\t}", "@Override\n\tprotected ArrayList<ModulePosition> buildRobot() {\n\t\tArrayList<ModulePosition> mPos = new ArrayList<ModulePosition>();\n\t\tmPos.add(new ModulePosition(\"custom 0\", new VectorDescription(0*ATRON.UNIT, -5*ATRON.UNIT, 0*ATRON.UNIT), new RotationDescription(0, 0, -eigth)));\n\t\tmPos.add(new ModulePosition(\"custom 1\", new VectorDescription(1*ATRON.UNIT, -5*ATRON.UNIT, 1*ATRON.UNIT), ATRON.ROTATION_EW));\n\t\tmPos.add(new ModulePosition(\"custom 2\", new VectorDescription(1*ATRON.UNIT, -5*ATRON.UNIT, -1*ATRON.UNIT), ATRON.ROTATION_EW));\n\t\tmPos.add(new ModulePosition(\"custom 3\", new VectorDescription(2*ATRON.UNIT, -5*ATRON.UNIT, 0*ATRON.UNIT), new RotationDescription(0, 0, -eigth)));\n\t\tmPos.add(new ModulePosition(\"custom 4\", new VectorDescription(3*ATRON.UNIT, -5*ATRON.UNIT, 1*ATRON.UNIT), ATRON.ROTATION_EW));\n\t\tmPos.add(new ModulePosition(\"custom 5\", new VectorDescription(3*ATRON.UNIT, -5*ATRON.UNIT, -1*ATRON.UNIT), ATRON.ROTATION_EW));\n\t\tmPos.add(new ModulePosition(\"custom 6\", new VectorDescription(4*ATRON.UNIT, -5*ATRON.UNIT, 0*ATRON.UNIT), new RotationDescription(0, 0, -eigth)));\n\t\treturn mPos;\t\n\n\t\t\n\t\t/*\n\t\tArrayList<ModulePosition> mPos = new ArrayList<ModulePosition>();\n\t\tdouble x0 = 1;\n\t\tdouble y0 = 0;\n\t\tdouble z0 = 0;\n\t\tdouble angle = Math.PI/2 + Math.PI;\n\t\tVector3f moduleOrientationVector = new Vector3f(0, 0, 1);\n\t\tDouble moduleOrientationAngle = 0d;\n\t\tQuaternion moduleOrientationQuaternion = new Quaternion( (float)(moduleOrientationVector.x*Math.sin((moduleOrientationAngle)/2)), (float)(moduleOrientationVector.y*Math.sin((moduleOrientationAngle)/2)), (float)(moduleOrientationVector.z*Math.sin((moduleOrientationAngle)/2)), (float)(Math.cos((moduleOrientationAngle)/2)));\n\t\t//System.out.println(moduleOrientation.x + \" \" + moduleOrientation.y + \" \" + moduleOrientation.z);\n\t\tQuaternion rotation = new Quaternion( (float)(x0*Math.sin((angle)/2)), (float)(y0*Math.sin((angle)/2)), (float)(z0*Math.sin((angle)/2)), (float)(Math.cos((angle)/2)));\n\t\t//Vector3f newModuleOrientation = rotation.mult(moduleOrientation);\n\t\t//System.out.println(newModuleOrientation.x + \" \" + newModuleOrientation.y + \" \" + newModuleOrientation.z);\n\t\t//mPos.add(new ModulePosition(\"custom 0\", new VectorDescription(0*ATRON.UNIT, 0*ATRON.UNIT, 0*ATRON.UNIT), new RotationDescription(rotation)));\n\t\tmPos.add(new ModulePosition(\"custom 0\", new VectorDescription(0*ATRON.UNIT, 0*ATRON.UNIT, 0*ATRON.UNIT), new RotationDescription(new Quaternion( (float)(0), (float)(0), (float)(0), (float)(1)))));\n\t\t//x0 = 1; y0 = 0; z0 = 0; angle = 0;\n\t\t//mPos.add(new ModulePosition(\"custom 1\", new VectorDescription(1*ATRON.UNIT, 1*ATRON.UNIT, 0*ATRON.UNIT), new RotationDescription(new Quaternion( (float)(x0*Math.sin(angle/2)), (float)(y0*Math.sin(angle/2)), (float)(z0*Math.sin(angle/2)), (float)(Math.cos(angle/2))))));\n\t\treturn mPos;\n*/\n\t}", "public static void init() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n driveTrainmotor_leftFront = new Talon(1);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_leftFront\", (Talon) driveTrainmotor_leftFront);\n \n driveTrainmotor_leftRear = new Talon(2);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_leftRear\", (Talon) driveTrainmotor_leftRear);\n \n driveTrainmotor_rightFront = new Talon(3);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_rightFront\", (Talon) driveTrainmotor_rightFront);\n \n driveTrainmotor_rightRear = new Talon(4);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_rightRear\", (Talon) driveTrainmotor_rightRear);\n \n driveTrainRobotDrive = new RobotDrive(driveTrainmotor_leftFront, driveTrainmotor_leftRear,\n driveTrainmotor_rightFront, driveTrainmotor_rightRear);\n \n driveTrainRobotDrive.setSafetyEnabled(true);\n driveTrainRobotDrive.setExpiration(0.1);\n driveTrainRobotDrive.setSensitivity(0.5);\n driveTrainRobotDrive.setMaxOutput(1.0);\n\n liftmotor_Lift = new Talon(0);\n LiveWindow.addActuator(\"Lift\", \"motor_Lift\", (Talon) liftmotor_Lift);\n \n liftencoderLiftHeight = new Encoder(1, 2, true, EncodingType.k4X);\n LiveWindow.addSensor(\"Lift\", \"encoder LiftHeight\", liftencoderLiftHeight);\n liftencoderLiftHeight.setDistancePerPulse(1.0);\n liftencoderLiftHeight.setPIDSourceParameter(PIDSourceParameter.kRate);\n liftlimitBottom = new DigitalInput(0);\n LiveWindow.addSensor(\"Lift\", \"limitBottom\", liftlimitBottom);\n \n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public void robotInit() {\r\n\t\t// Create and start the compressor. It will control pressure automagically\r\n\t\tCompressor comp = new Compressor(RobotMap.pneumaticPreasureSwitch, RobotMap.compresserRelay);\r\n\t\tcomp.start();\r\n\r\n\t\t// instantiate the command used for the autonomous period\r\n\t\tautonomousCommand = new Autonomous();\r\n\r\n\t\t// Initialize all subsystems\r\n\t\tCommandBase.init();\r\n\t}", "@Override\n\tpublic void robotInit() {\n\t\tdt = new DriveTrain();\n\t\t//Initialize drive Talons\n\t\tRobotMap.vspLeft = new WPI_TalonSRX(RobotMap.dtLeft);\n\t\tRobotMap.vspRight = new WPI_TalonSRX(RobotMap.dtRight);\n\t\t//Initialize drive slave Victors\n\t\t//RobotMap.slaveLeft = new WPI_VictorSPX(RobotMap.slaveDriveLeft);\n\t\t//RobotMap.slaveRight = new WPI_VictorSPX(RobotMap.slaveDriveRight);\n\t\t//Set drive slaves to follower mode\n\t\t//RobotMap.slaveLeft.follow(RobotMap.vspLeft);\n\t\t//RobotMap.slaveRight.follow(RobotMap.vspRight);\n\t\t//Initialize drive train\n\t\tRobotMap.rd = new DifferentialDrive(RobotMap.vspLeft, RobotMap.vspRight);\n\t\t//Initialize drive joystick\n\t\tRobotMap.stick = new Joystick(RobotMap.joystickPort);\n\t\t//Disabled drive safety\n\t\tRobotMap.vspLeft.setSafetyEnabled(false);\n\t\tRobotMap.vspRight.setSafetyEnabled(false);\n\t\tRobotMap.rd.setSafetyEnabled(false);\n\t\t//Initialize lift Talon\n\t\tRobotMap.liftTalon = new WPI_TalonSRX(5);\n\t\t//Initialize operator controller\n\t\tRobotMap.controller = new Joystick(RobotMap.controllerPort);\n\t\t//Initialize intake Victors\n\t\tRobotMap.intakeVictorLeft = new WPI_VictorSPX(RobotMap.intakeMaster);\n\t\tRobotMap.intakeVictorRight = new WPI_VictorSPX(RobotMap.intakeSlave);\n\t\t//Set right intake Victor to follow left intake Victor\n\t\tRobotMap.intakeVictorRight.follow(RobotMap.intakeVictorLeft);\n\t\t\n\t\tRobotMap.climberVictorLeft = new WPI_VictorSPX(RobotMap.climberLeftAddress);\n\t\tRobotMap.climberVictorRight = new WPI_VictorSPX(RobotMap.climberRightAddress);\n\t\t\n\t\tRobotMap.climberVictorRight.follow(RobotMap.climberVictorLeft);\n\t\t\n\t\tRobotMap.piston = new DoubleSolenoid(RobotMap.inChannel, RobotMap.outChannel);\n\t\t\n\t\tRobotMap.intakeLifter = new WPI_VictorSPX(2);\n\t\t\n\t\tRobotMap.liftTalon = new WPI_TalonSRX(RobotMap.liftTalonAddress);\n\t\t\n\t\tautoChooser = new SendableChooser();\n\t\tautoChooser.addDefault(\"Drive to baseline\" , new DriveToBaseline());\n\t\tautoChooser.addObject(\"Null auto\", new NullAuto());\n\t\tautoChooser.addObject(\"Switch from right\", new SwitchFromRight());\n\t\tautoChooser.addObject(\"Switch from left\", new SwitchFromLeft());\n\t\tautoChooser.addObject(\"PID from left\", new PIDfromLeft());\n\t\tautoChooser.addObject(\"PID from right\", new PIDfromRight());\n\t\tautoChooser.addObject(\"Scale from right\", new ScaleAutoRight());\n\t\tautoChooser.addObject(\"Scale from left\", new ScaleAutoLeft());\n\t\tautoChooser.addObject(\"PID tester\", new PIDTESTER());\n\t\tautoChooser.addObject(\"Joe use this one\", new leftOnly());\n\t\tSmartDashboard.putData(\"Autonomous mode chooser\", autoChooser);\n\t\t\n\t\t//RobotMap.liftVictor.follow(RobotMap.climberTalon);\n\t\t\n\t\tRobotMap.vspLeft.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n\t\tRobotMap.vspRight.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n\t\t\n\t\tRobotMap.intakeLifted = new DigitalInput(1);\n\t\tRobotMap.isAtTop = new DigitalInput(2);\n\t\tRobotMap.isAtBottom = new DigitalInput(0);\n\t\t\n\t\tRobotMap.vspLeft.configVelocityMeasurementPeriod(VelocityMeasPeriod.Period_100Ms, 1);\n\t\tRobotMap.vspRight.configVelocityMeasurementWindow(64, 1); \n\t\t\n\t\toi = new OI();\n\t}", "public void robotInit() {\n ;\n System.out.println(\"robot_init\");\n liftJoystick = new Joystick(2);\n armJoystick = new Joystick(4);\n setEncoder(new Encoder(2, 3));\n getEncoder().setDistancePerPulse(8.0 * 3.14 / 360.0 / 2);\n compressor = new Compressor(1, 1);\n compressor.start();\n // cameraMount = new CameraMount(10,9);\n //File file = new File (\"WALT_output.txt\");\n displayIndex = 1;\n driverScreen = DriverStationLCD.getInstance();\n\n //sensor wiring was switche so I fixed it programming wise\n setLeft(new DigitalInput(12));\n if (getLeft() == null) {\n printToScreen(\"LEFT SENSOR [DigitalInput(12)] IS NULL!!\");\n } else {\n printToScreen(\"LEFT SENSOR [DigitalInput(12)] is initialized\");\n }\n\n middle = new DigitalInput(13);\n if (getMiddle() == null) {\n printToScreen(\"MIDDLE SENSOR [DigitalInput(13)] IS NULL!!\");\n } else {\n printToScreen(\"MIDDLE SENSOR [DigitalInput(13)] is initialized\");\n }\n\n right = new DigitalInput(14);\n if (getRight() == null) {\n printToScreen(\"RIGHT SENSOR [DigitalInput(14)] IS NULL!!\");\n } else {\n printToScreen(\"RIGHT SENSOR [DigitalInput(14)] INITIALIZED\");\n }\n\n demoMode = false;\n myDog = Watchdog.getInstance();\n myDog.setEnabled(true);\n myDog.setExpiration(1);\n joysticks = new TankControls(1, 3);//All channel values arbitrary at this point and may need to be changed.\n // xboxController = new XboxControls(3);//channel value\n //initializes pneumatics\n //int[] solenoidChannels=(4,5);\n int spikeChannel = 1;\n int pressureSwitch = 2;\n //pneumatics=new pneumaticSystem(solenoidChannels,spikeChannel,pressureSwitch, 120);\n\n //Arm constructor\n //currently the arm is controlling the drive motors- arm channels are 3,4\n int liftChannel = 3;\n int armChannel = 4;\n int solenoidChannelWrist = 1;\n int clawSolenoid = 2;\n int armGyroChannel = 2;\n arm = new Arm(liftChannel, armChannel, solenoidChannelWrist,\n clawSolenoid, armGyroChannel);\n //channel for gyro\n int gyroChannel = 1;\n\n //channels for camera initiation\n boolean usingCamera = true;\n int panMotorCamChannel = 9;\n int tiltCamChannel = 8;\n\n //channels for accelerators- may want multiple for multiple directions\n int accSlot = -1;\n\n setSensors(new SensorSet(gyroChannel, accSlot, usingCamera,\n tiltCamChannel, panMotorCamChannel));\n\n setRobotDrive(new TwoMotorDrive(1, 2, demoMode));\n getRobotDrive().setInvertedSide(true);//boolean is true to invert right, false for left\n\n //so that it doesn't return nulls- should not be started before re-creating Why do we initialize it here then?\n driveTask = new WaltLineTrack(false, false, this);\n armTask = arm.getNewGoToHeightInstance(2);\n armTask2 = arm.getNewGoToAngleInstance(135);\n }", "@Override\n\tpublic void robotInit() //starts once when the code is started\n\t{\n\t\tm_oi = new OI(); //further definition of OI\n\t\t\n\t\t// chooser.addObject(\"My Auto\", new MyAutoCommand());\n\t\t//SmartDashboard.putData(\"Auto mode\", m_chooser);\n\t\t\n\t\tnew Thread(() -> {\n\t\t\tUsbCamera camera1 = CameraServer.getInstance().startAutomaticCapture();\n\t\t\tcamera1.setResolution(640, 480);\n\t\t\tcamera1.setFPS(30);\n\t\t\tcamera1.setExposureAuto();\n\t\t\t\n\t\t\tCvSink cvSink = CameraServer.getInstance().getVideo();\n\t\t\tCvSource outputStream = CameraServer.getInstance().putVideo(\"Camera1\", 640, 480); \n\t\t\t//set up a new camera with this name in SmartDashboard (Veiw->Add->CameraServer Stream Viewer)\n\t\t\t\n\t\t\tMat source = new Mat();\n\t\t\tMat output = new Mat();\n\t\t\t\n\t\t\twhile(!Thread.interrupted())\n\t\t\t{\n\t\t\t\tcvSink.grabFrame(source);\n\t\t\t\tImgproc.cvtColor(source, output, Imgproc.COLOR_BGR2RGB);//this will show the video in black and white \n\t\t\t\toutputStream.putFrame(output);\n\t\t\t}\t\t\t\t\t\n\t\t}).start();//definition of camera, runs even when disabled\n\t\t\n\t\tdriveStick = new Joystick(0); //further definition of joystick\n\t\tgyroRotate.gyroInit(); //initializing the gyro - in Rotate_Subsystem\n\t\tultrasonic = new Ultrasonic_Sensor(); //further definition of ultrasonic\n\t\tRobotMap.encoderLeft.reset();\n\t\tRobotMap.encoderRight.reset();\n\t\tdriveToDistance.controllerInit();\n\t}", "public interface RobotMap {\n\n /* COMPETITION BOT */\n\n // CAN Talon SRX\n int LEFT_TALON = 7;\n int RIGHT_TALON = 9;\n int LIFT_TALON = 8;\n int CLIMB_TALON = 10;\n\n // CAN Victor SPX\n int LEFT_DRIVE_VICTOR = 1;\n int RIGHT_DRIVE_VICTOR = 3;\n\n // Victor SP PWM ports\n int INTAKE_VICTOR = 0;\n int CLIMB_VICTOR = 1;\n\n // Double Solenoid PCM IDs\n int FORWARD_CHANNEL = 6;\n int REVERSE_CHANNEL = 7;\n\n // Digital Input ports\n int HALL_SENSOR = 0;\n int LIMIT_SWITCH = 1;\n\n // Pneumatics Control Module CAN ID\n int PCM = 0;\n\n\n /* PRACTICE BOT */\n\n /*\n\n // CAN Talon SRX\n int LEFT_TALON = 6;\n int RIGHT_TALON = 1;\n int LIFT_TALON = 2;\n int CLIMB_TALON = 5;\n\n // CAN Victor SPX\n int LEFT_DRIVE_VICTOR = 6;\n int RIGHT_DRIVE_VICTOR = 2;\n\n // Victor SP PWM ports\n int INTAKE_VICTOR = 0;\n int CLIMB_VICTOR = 1;\n\n // Double Solenoid PCM IDs\n int FORWARD_CHANNEL = 6;\n int REVERSE_CHANNEL = 7;\n\n // Digital Input ports\n int HALL_SENSOR = 0;\n int LIMIT_SWITCH = 1;\n\n // Pneumatics Control Module CAN ID\n int PCM = 0;\n\n */\n\n}", "@Override\n public void robotInit() {\n\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n drive = new Drive();\n pDP = new PDP();\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n // OI must be constructed after subsystems. If the OI creates Commands\n //(which it very likely will), subsystems are not guaranteed to be\n // constructed yet. Thus, their requires() statements may grab null\n // pointers. Bad news. Don't move it.\n oi = new OI();\n camera1 = CameraServer.getInstance().startAutomaticCapture(0);\n camera2 = CameraServer.getInstance().startAutomaticCapture(1);\n camera1.setConnectionStrategy(VideoSource.ConnectionStrategy.kKeepOpen);\n camera2.setConnectionStrategy(VideoSource.ConnectionStrategy.kKeepOpen);\n server = CameraServer.getInstance().getServer();\n flipped = true;\n server.setSource(camera1);\n vexGyro = new AnalogGyro(0);\n vexGyro.setSensitivity(.00175);\n //rightEncoder = new Encoder(0, 1, false);\n //leftEncoder = new Encoder(2, 3, true);\n // Add commands to Autonomous Sendable Chooser\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n\n chooser.setDefaultOption(\"Autonomous Command\", new AutonomousCommand());\n PixyCamBlock centerBlock = PixyCam2.GetCentermostBlock();\n if(centerBlock == null)\n {\n SmartDashboard.putString(\"target good? \", \"no, is null\");\n }\n else{\n String out = \"Center Block, X: \"+centerBlock.xCenter + \" Y: \"+centerBlock.yCenter;\n SmartDashboard.putString(\"center block data \", out);\n if (centerBlock.yCenter < 200){\n SmartDashboard.putString(\"target good?\", \"YES!!! ycenter less than 200\");\n }\n }\n \n \n\n\n \n \n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n SmartDashboard.putData(\"Auto mode\", chooser);\n SmartDashboard.putBoolean(\"isFlipped\", flipped);\n SmartDashboard.putNumber(\"right encoder\", drive.getRightEncoder());\n SmartDashboard.putNumber(\"left encoder\", drive.getLeftEncoder());\n }", "public String toString() {\n return \"Robot motors\";\n }", "public void robotInit() {\n\t\toi = new OI();\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", new ExampleCommand());\n// chooser.addObject(\"My Auto\", new MyfAutoCommand());\n SmartDashboard.putData(\"Auto mode\", chooser);\n \n //Drive\n //this.DriveTrain = new DriveTrain();\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickLeft);\n \n //Buttons\n // oi.button1.whenPressed(new SetMaxMotorOutput());\n \n //Ultrasonic\n sonic1 = new Ultrasonic(0,1);\n sonic1.setAutomaticMode(true);\n \n }", "public Systems() {\r\n\t\t__initializeSystems = new ArrayList<InitializeSystem>();\r\n\t\t__executeSystems = new ArrayList<ExecuteSystem>();\r\n\t\t__renderSystems = new ArrayList<RenderSystem>();\r\n\t\t__tearDownSystems = new ArrayList<TearDownSystem>();\r\n\t}", "public Computer() {\n\t\tparts = new ComputerPart[] { new Mouse(), new Keyboard(), new Monitor() };\n\t}", "public void robotInit() {\n // Initialize all subsystems\n CommandBase.init();\n \n SmartDashboard.putNumber(RobotMap.Autonomous.MODE_KEY, 0);\n \n //temperary method to test door closing speeds\n SmartDashboard.putNumber(RobotMap.Force.DOOR_FORCE_KEY, 50);\n }" ]
[ "0.7370769", "0.7274102", "0.72612125", "0.71421796", "0.7111673", "0.69013107", "0.68398744", "0.68231887", "0.6773327", "0.6603871", "0.65173554", "0.65022916", "0.65022916", "0.645273", "0.6354744", "0.6346953", "0.6323018", "0.6300003", "0.62191594", "0.6199752", "0.61974055", "0.5962976", "0.59422153", "0.5922251", "0.5920926", "0.5911902", "0.5893073", "0.58848166", "0.5832627", "0.5831929", "0.5798077", "0.57697755", "0.5762397", "0.57622033", "0.57347023", "0.5731075", "0.57038325", "0.5685482", "0.5675457", "0.5671394", "0.5653085", "0.5642635", "0.56375146", "0.56306803", "0.5624488", "0.5605572", "0.55857337", "0.5584158", "0.5579879", "0.5567557", "0.55580765", "0.5544233", "0.5540382", "0.5536772", "0.55364245", "0.5527801", "0.55193925", "0.5518494", "0.551695", "0.55164146", "0.55112076", "0.5509692", "0.55073833", "0.5492379", "0.547795", "0.5459338", "0.5448647", "0.5444907", "0.54281497", "0.5420831", "0.5397667", "0.5395397", "0.5389744", "0.5387562", "0.53833014", "0.5382998", "0.53706664", "0.5361749", "0.5352106", "0.53507644", "0.53507644", "0.53507644", "0.53441435", "0.5340282", "0.5328955", "0.5328955", "0.5323017", "0.5319766", "0.53193307", "0.5283976", "0.5275714", "0.5264288", "0.52596396", "0.52588314", "0.524631", "0.5240544", "0.52359253", "0.523515", "0.5234102", "0.52327347" ]
0.81112903
0
Tests that if the data object return all the data for an IP city the listener properly populates the tags.
@Test public void testThatIfAllDataIsProvidedAllGeoIpTagsAreSet() { final SettingValue settings = context.mock(SettingValue.class); context.checking(new Expectations() { { allowing(settings).getBooleanValue(); will(returnValue(Boolean.TRUE)); } }); SettingsReader settingsReader = new CachedSettingsReaderImpl() { @Override public SettingValue getSettingValue(final String path) { if ("COMMERCE/SYSTEM/GEOIP/enable".equals(path)) { return settings; } return null; } }; listener = new GeoIpTagger(); listener.setSettingsReader(settingsReader); geoIpService = new GeoIpService() { public GeoIpLocation resolveIpAddress(final String ipAddress) { GeoIpLocation geoIpLocation = new GeoIpLocationImpl(); geoIpLocation.setZipCode(ZIP_OR_POST_CODE); geoIpLocation.setCountryCode(COUNTRY_CODE); geoIpLocation.setState(STATE_OR_PROVINCE); geoIpLocation.setConnectionType(CONNECTION_TYPE); geoIpLocation.setIpRoutingType(ROUTING_TYPE); geoIpLocation.setCity(CITY); geoIpLocation.setTopLevelDomain(FIRST_LEVEL_DOMAIN); geoIpLocation.setSecondLevelDomain(SECOND_LEVEL_DOMAIN); geoIpLocation.setGmtTimeZone(GMT_TIME_ZONE); geoIpLocation.setContinent(CONTINENT); return geoIpLocation; } public void setProvider(final GeoIpProvider provider) { // Does nothing. } }; listener.setGeoProviderService(geoIpService); context.checking(new Expectations() { { allowing(session).getCustomerTagSet(); will(returnValue(tagSet)); } }); listener.execute(session, requestFacade); assertTag(ZIP_OR_POST_CODE, GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet); assertTag(COUNTRY_CODE, GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet); assertTag(STATE_OR_PROVINCE, GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet); assertTag(CONNECTION_TYPE, GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet); assertTag(ROUTING_TYPE, GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet); assertTag(CITY, GeoIpTagger.GEOIP_CITY, tagSet); assertTag(FIRST_LEVEL_DOMAIN, GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet); assertTag(SECOND_LEVEL_DOMAIN, GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet); assertTag(GMT_TIME_ZONE, GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet); assertTag(CONTINENT, GeoIpTagger.GEOIP_CONTINENT, tagSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(priority = 3)\n\tpublic void verify_Weather_Data_Appears_OnSearching_By_City() {\n\t\tweatherResponse_city = WeatherAPI.getWeatherInfo(ReadWrite.getProperty(\"Noida_City\"),\n\t\t\t\tConfigFileReader.getProperty(\"appid\"), 200);\n\n\t}", "@Test\n\tpublic void testThatIfDataIsNullGeoIpTaggerIsNullSafe() {\n\n\t\tfinal SettingValue settings = context.mock(SettingValue.class);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(settings).getBooleanValue();\n\t\t\t\twill(returnValue(Boolean.TRUE));\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tif (\"COMMERCE/SYSTEM/GEOIP/enable\".equals(path)) {\n\t\t\t\t\treturn \tsettings;\n\t\t\t\t}\n\t\t\t\t return null;\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\n\t\tlistener.setSettingsReader(settingsReader);\n\t\t\n\t\tgeoIpService = new GeoIpService() {\n\t\t\tpublic GeoIpLocation resolveIpAddress(final String ipAddress) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tpublic void setProvider(final GeoIpProvider provider) {\n\t\t\t\t// Does nothing.\n\t\t\t}\n\n\t\t};\n\n\t\tlistener.setGeoProviderService(geoIpService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(session).getCustomerTagSet();\n\t\t\t\twill(returnValue(tagSet));\n\n\t\t\t}\n\t\t});\n\n\t\tlistener.execute(session, requestFacade);\n\n\t\tassertNullTag(GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CITY, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONTINENT, tagSet);\n\n\n\t}", "private void getCityHotels(String tag) {\n\n HotelListingRequest hotelListingRequest = HotelListingRequest.getHotelListRequest();\n hotelListingRequest.setCurrencyCode(userDTO.getCurrency());\n hotelListingRequest.setLanguageCode(userDTO.getLanguage());\n hotelListingRequest.setCheckInDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkInDate));\n hotelListingRequest.setCheckOutDate(new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH).format(checkOutDate));\n hotelListingRequest.setPageNumber(1);\n hotelListingRequest.setPageSize(10);\n\n\n if (tag.equals(\"noRooms\")) {\n\n hotelListingRequest.setCityId(cityId); // for sold out hotels.. set popularity and descending order.\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n } else {\n\n hotelListingRequest.setCityId(Long.parseLong(destination.getKey())); // regular flow.. getting cityId and areaId from destination.\n\n UserDTO.getUserDTO().setCityName(destination.getDestinationName());\n // here check whether category is city search otherwise areaWise search\n if (destination.getCategory().equals(\"City\")) {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"popularity\");\n\n\n } else {\n\n hotelListingRequest.setSortBy(OrderByTypes.Descending.getOrderVal());\n hotelListingRequest.setSortParameter(\"area\");\n hotelListingRequest.setSortByArea(0);\n }\n\n\n }\n\n\n ArrayList<OccupancyDto> occupancyDtoArrayList = new ArrayList<>();\n for (int i = 0; i < hotelAccommodationsArrayList.size(); i++) {\n kidsAgeArrayList = new ArrayList<>();\n if (hotelAccommodationsArrayList.get(i).getKids() > 0) {\n if (hotelAccommodationsArrayList.get(i).getKids() == 1) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n } else if (hotelAccommodationsArrayList.get(i).getKids() == 2) {\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid1Age());\n kidsAgeArrayList.add(hotelAccommodationsArrayList.get(i).getKid2Age());\n }\n }\n\n occupancyDtoArrayList.add(new OccupancyDto(hotelAccommodationsArrayList.get(i).getAdultsCount(), kidsAgeArrayList));\n hotelListingRequest.setOccupancy(occupancyDtoArrayList);\n }\n FiltersRequestDto filtersRequestDto = new FiltersRequestDto();\n filtersRequestDto.setAmenityIds(null);\n filtersRequestDto.setAreaIds(null);\n filtersRequestDto.setHotelId(null);\n filtersRequestDto.setCategoryIds(null);\n filtersRequestDto.setChainIds(null);\n filtersRequestDto.setMaxPrice(0.00);\n filtersRequestDto.setMinPrice(0.00);\n filtersRequestDto.setTripAdvisorRatings(null);\n filtersRequestDto.setStarRatings(null);\n hotelListingRequest.setFilters(filtersRequestDto);\n\n request = new Gson().toJson(hotelListingRequest);\n\n if (NetworkUtilities.isInternet(getActivity())) {\n\n showDialog();\n\n hotelSearchPresenter.getHotelListInfo(Constant.API_URL + Constant.HOTELLISTING, request, context);\n\n\n } else {\n\n Utilities.commonErrorMessage(context, context.getString(R.string.Network_not_avilable), context.getString(R.string.please_check_your_internet_connection), false, getFragmentManager());\n }\n\n }", "@Test(priority = 4)\n\tpublic void verify_Weather_Data_Appears_OnSearching_By_CityAndStateCode() {\n\t\tWeatherAPI.getWeatherInfo(ReadWrite.getProperty(\"London_City_State\"), ConfigFileReader.getProperty(\"appid\"),\n\t\t\t\t200);\n\n\t}", "void handleWeatherDataForCity(String cityName);", "private void loadCityDetails() {\n\n apiCall = ApiUtils.getCityDetails();\n\n Call<CityData> call = apiCall.getCityDetails();\n\n call.enqueue(new Callback<CityData>() {\n @Override\n public void onResponse(Call<CityData> call, Response<CityData> response) {\n\n //finally we are setting the list to our MutableLiveData\n cityList.setValue(response.body());\n\n }\n\n @Override\n public void onFailure(Call<CityData> call, Throwable t) {\n System.out.println(\"is failed\");\n }\n });\n }", "@Test\n public void newlyTagged() {\n TestUtil.setupGoogleApiClientBridgeForNearby(googleApiClientBridge, TestUtil.COLT);\n\n activityRule.launchActivity(null);\n\n onData(is(instanceOf(NearbyPerson.class)))\n .atPosition(0)\n .check(matches(withText(TestUtil.COLT.displayName)))\n .check(matches(withCompoundDrawable(0)))\n .check(matches(withCompoundDrawable(2, R.drawable.ic_newly_tagged)));\n }", "@Override\n public void onError(VolleyError error) {\n setDataCityToList(arrCities);\n Toast.makeText(self, ErrorNetworkHandler.processError(error), Toast.LENGTH_LONG).show();\n }", "@Test\n\tpublic void testGeoIpTaggingEventIsDisabled() {\n\n\t\tfinal SettingValue settings = context.mock(SettingValue.class);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(settings).getBooleanValue();\n\t\t\t\twill(returnValue(Boolean.FALSE));\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tif (\"COMMERCE/SYSTEM/GEOIP/enable\".equals(path)) {\n\t\t\t\t\treturn \tsettings;\n\t\t\t\t}\n\t\t\t\t return null;\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\t\t\n\t\tlistener.setSettingsReader(settingsReader);\n\t\t\n\t\tgeoIpService = new GeoIpService() {\n\t\t\tpublic GeoIpLocation resolveIpAddress(final String ipAddress) {\n\t\t\t\tGeoIpLocation geoIpLocation = new GeoIpLocationImpl();\n\t\t\t\tgeoIpLocation.setZipCode(ZIP_OR_POST_CODE);\n\t\t\t\tgeoIpLocation.setCountryCode(COUNTRY_CODE);\n\t\t\t\tgeoIpLocation.setState(STATE_OR_PROVINCE);\n\t\t\t\tgeoIpLocation.setConnectionType(CONNECTION_TYPE);\n\t\t\t\tgeoIpLocation.setIpRoutingType(ROUTING_TYPE);\n\t\t\t\tgeoIpLocation.setCity(CITY);\n\t\t\t\tgeoIpLocation.setTopLevelDomain(FIRST_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setSecondLevelDomain(SECOND_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setGmtTimeZone(GMT_TIME_ZONE);\n\t\t\t\tgeoIpLocation.setContinent(CONTINENT);\n\t\t\t\treturn geoIpLocation;\n\t\t\t}\n\n\t\t\tpublic void setProvider(final GeoIpProvider provider) {\n\t\t\t\t// Does nothing.\n\t\t\t}\n\n\t\t};\n\n\t\tlistener.setGeoProviderService(geoIpService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(session).getCustomerTagSet();\n\t\t\t\twill(returnValue(tagSet));\n\t\t\t}\n\t\t});\n\n\t\tlistener.execute(session, requestFacade);\n\n\t\tassertNullTag(GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CITY, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONTINENT, tagSet);\n\n\n\t}", "@Test(priority = 5)\n\tpublic void verify_Weather_Data_Appears_OnSearching_By_City_StateCodeAndCountryCode() {\n\t\tWeatherAPI.getWeatherInfo(ReadWrite.getProperty(\"Noida_City_State_Country\"),\n\t\t\t\tConfigFileReader.getProperty(\"appid\"), 200);\n\n\t}", "private void parseData(String dataToParse)\n {\n try\n {\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n factory.setNamespaceAware(true);\n XmlPullParser xpp = factory.newPullParser();\n xpp.setInput( new StringReader( dataToParse ) );\n int eventType = xpp.getEventType();\n while (eventType != XmlPullParser.END_DOCUMENT)\n {\n\n // Found a start tag\n if(eventType == XmlPullParser.START_TAG)\n {\n //Check for which tag we have\n if (xpp.getName().equalsIgnoreCase(\"geonameId\"))\n {\n //focuses parser on the <geometry> tags\n String temp = xpp.nextText();\n Log.e(\"Geocode\", \"geocode is \" + temp);\n geoname = Integer.parseInt(temp);\n }\n }\n else if (eventType == XmlPullParser.END_TAG)\n {\n if(xpp.getName().equalsIgnoreCase(\"geonameId\")) {\n Log.e(\"Parsing geoname\", \"parse finished\");//finished\n\n }\n }\n\n\n // Get the next event\n eventType = xpp.next();\n\n } // End of while\n }\n catch (XmlPullParserException ae1)\n {\n Log.e(\"MyTag\",\"Parsing error\" + ae1.toString());\n }\n catch (IOException ae1)\n {\n Log.e(\"MyTag\",\"IO error during parsing\");\n }\n\n Log.e(\"MyTag\",\"End document\");\n\n }", "protected void triggerGetPostalCodes(String action, int city, String tag) {\n triggerContentEvent(new GetPostalCodeHelper(), GetPostalCodeHelper.createBundle(action, city, tag), this);\n }", "public void onTagsReceived(Map<String, Object> tags);", "@Test\n public void findPetsByTagsTest() {\n List<String> tags = null;\n // rx.Observable<List<Pet>> apiObservable = api.findPetsByTags(tags);\n // Subscriber<List<Pet>> apiSubscriber = new Subscriber<List<Pet>>() {\n // @Override\n // public void onNext(List<Pet> dtoResponse) {\n // // TODO: test validations\n // Assert.assertNotNull(\"DTO Response should not be Null\", dtoResponse);\n // }\n\n // @Override\n // public void onCompleted() {\n // // TODO: test any post-processing\n // System.out.println(\"Api Call Complete\");\n // }\n\n // @Override\n // public void onError(Throwable e) {\n // // TODO: handle error scenario\n // System.out.println(e.getMessage());\n // }\n // };\n // apiObservable.subscribe(apiSubscriber);\n }", "@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n TagAttrazioneDAO.Tag result = dataSnapshot.getValue(TagAttrazioneDAO.Tag.class);\n result.ID = dataSnapshot.getKey();\n\n resultTags.add(result);\n\n if (resultTags.size() == attrazione.Tags.size()) {\n //ho letto tutti gli elementi, notifico il listener\n listener.onDataRead(resultTags);\n }\n\n }", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void loadData() {\n Request request = new Request.Builder()\n .url(\"https://www.metaweather.com/api/location/search/?lattlong=20.5937,78.9629\")\n .get().build();\n //Create OkHttpClient Object\n OkHttpClient client = new OkHttpClient();\n\n // Call the request using client we just created\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(Request request, IOException e) {\n //Use this code to Handle Failed Request mostly due to internet issue\n // we will just Create a Tost Message for user\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onResponse(Response response) throws IOException {\n //Here we will check is reponse is Sucessfull or is their any\n // request error i.e url error\n if (!response.isSuccessful()) {\n //Here our reponse is UnSucessfull so we inform the user\n // about the same as before\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n return;\n }\n //If Response is sucessfull we move forward and convert the\n // reponse which is in JSON format to String\n String respFromApi = response.body().string();\n\n //We will Log this LogCat in order to view the Raw Format recieved\n //you can open the log cat go in debug section and type RawData you\n // will be able to observe data there\n Log.d(\"RawData\", respFromApi);\n\n //Now We will call Extract Data Function which will retrieve the\n // woied and name of each city from the response\n try {\n extractData(respFromApi);\n } catch (Exception e) {\n //Informing Data is Not in JSON Format\n Toast.makeText(MainActivity.this, \"Response Not in JSON Format\", Toast.LENGTH_SHORT).show();\n }\n ;\n }\n });\n\n\n //---------------------------------FOR United States----------------------------------------\n\n //Following codes has similar output as before but the difference is the city Names here\n //is of United States\n request = new Request.Builder()\n .url(\"https://www.metaweather.com/api/location/search/?lattlong=38.899101,-77.028999\")\n .get().build();\n client = new OkHttpClient();\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(Request request, IOException e) {\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onResponse(Response response) throws IOException {\n if (!response.isSuccessful()) {\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n return;\n }\n String respFromApi = response.body().string();\n Log.d(\"RawData\", respFromApi);\n try {\n extractData(respFromApi);\n } catch (Exception e) {\n Toast.makeText(MainActivity.this, \"Response Not in JSON Format\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n\n\n }", "private void searchCity() {\n toggleProgress();\n try {\n WeatherClient client = builder.attach(this)\n .provider(new OpenweathermapProviderType())\n .httpClient(WeatherClientDefault.class)\n .config(config)\n .build();\n\n // Try to find a good location\n // using medium settings\n Criteria criteria = new Criteria();\n criteria.setPowerRequirement(Criteria.POWER_MEDIUM);\n criteria.setAccuracy(Criteria.ACCURACY_MEDIUM);\n // Can we use data?\n criteria.setCostAllowed(true);\n\n // Search city by gps/network using\n // above critera\n client.searchCityByLocation(\n criteria,\n new WeatherClient.CityEventListener() {\n\n // When we get the city list\n @Override\n public void onCityListRetrieved(List<City> cityList) {\n for (int i = 0; i < cityList.size(); i++) {\n adapter.set(cityList.get(i), i);\n }\n displayMessage(\"Not the correct results?\" +\n \" Press the button above to try again.\");\n }\n\n\n @Override\n public void onWeatherError(WeatherLibException wle) {\n displayMessage(\"There seems to be no \" +\n \"weather data, please try again later.\");\n\n }\n\n\n @Override\n public void onConnectionError(Throwable t) {\n displayMessage(\"Whoops! We can't seem to \" +\n \"connect to the weather servers.\");\n }\n\n });\n\n } catch (WeatherProviderInstantiationException e) {\n displayMessage(\"Error: Unable to access \" +\n \"the weather provider.\");\n } catch (LocationProviderNotFoundException e) {\n displayMessage(\"Whoops! Unable to access \" +\n \"location provider.\");\n } catch (NullPointerException e) {\n displayMessage(\"Whoops! We can't seem to\" +\n \"connect to the weather servers.\");\n }\n\n }", "protected void triggerGetCities(String url, int region, String tag) {\n triggerContentEvent(new GetCitiesHelper(), GetCitiesHelper.createBundle(url, region, tag), this);\n }", "@Override\n public void getTags(@NonNull final ILoadTagsCallback callback) {\n Log.d(TAG, \"Processing request to get tags from the remote API\");\n final long startTime = System.nanoTime();\n\n Call<List<Tag>> call = mApi.getTags();\n call.enqueue(new Callback<List<Tag>>() {\n @Override\n public void onResponse(@NonNull Call<List<Tag>> call, @NonNull Response<List<Tag>> response) {\n if (response.isSuccessful()) {\n List<Tag> tags = response.body();\n callback.onTagsLoaded(tags);\n } else {\n Log.e(TAG, \"Error getting tags from remote API: \" + response.errorBody());\n try {\n @SuppressWarnings(\"ConstantConditions\")\n final String msg = response.errorBody().string();\n callback.onDataNotAvailable(msg);\n } catch (IOException io) {\n callback.onDataNotAvailable(\n TaggerApplication.getInstance().getString(R.string.error_remote_api));\n }\n long elapsedTime = System.nanoTime() - startTime;\n Log.d(TAG, \"Total time to pull tags from remote API [\"\n + TimeUnit.NANOSECONDS.toSeconds(elapsedTime) + \"] seconds\");\n }\n }\n\n @Override\n public void onFailure(@NonNull Call<List<Tag>> call, @NonNull Throwable t) {\n Log.e(TAG, \"Error getting tags from remote API: \" + t.getMessage());\n callback.onDataNotAvailable(t.getLocalizedMessage());\n }\n });\n }", "public void getCityResult() {\n String cityNameStr = TextUtils.isEmpty(cityName) ? \"Halifax\" : cityName;\n final String url = \"http://api.openweathermap.org/data/2.5/weather?q=\" + cityNameStr + \"&appid=\" + API_KEY + \"&units=\" + CELSIUS_UNITS;\n //build the request\n JsonObjectRequest request = new JsonObjectRequest(\n Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray weather = response.getJSONArray(\"weather\");\n JSONObject main = response.getJSONObject(\"main\");\n JSONObject cloudsJSON = response.getJSONObject(\"clouds\");\n\n //Set values on layout\n setCityNameOnLayout(response);\n setWeather(weather);\n setTemperature(main);\n setMinMaxTemperature(main);\n setHumidity(main);\n setClouds(cloudsJSON);\n setWeatherIcon((weather.getJSONObject(0)).get(\"icon\").toString());\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n\n Toast.makeText(getApplicationContext(), \"Please, introduce an existing city\", Toast.LENGTH_SHORT).show();\n }\n }\n );\n RequestQueueSingleton.getInstance(getApplicationContext()).addToRequestQueue(request);\n }", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}", "@Override\n public void onCityListRetrieved(List<City> cityList) {\n for (int i = 0; i < cityList.size(); i++) {\n adapter.set(cityList.get(i), i);\n }\n displayMessage(\"Not the correct results?\" +\n \" Press the button above to try again.\");\n }", "@Test(priority = 2)\n\tpublic void WeatherReportForParticularCity() {\n\t\ttest.homepage.searchForLocation(ReadWrite.getProperty(\"Noida_City_State\"));\n\t\ttest.currentWeatherReportPage.verifyCurrentDayAndTime();\n\t\tweatherMap = test.currentWeatherReportPage.storeInformationOfWeather();\n\n\t}", "public HashMap<String, Long> getNumByTag(final String city, final String tag) {\n\t\tHashMap<String, Long> result = new HashMap<String, Long>();\n\t\tJavaRDD<Document> temp1 = dal.getRDD().filter(new Function<Document, Boolean>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic Boolean call(Document v1) throws Exception {\n\t\t\t\tString c = v1.getString(\"city\");\n\t\t\t\tif (!v1.containsKey(\"city\") || c == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\tif (c.contains(city)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tresult.put(\"all\", temp1.count());\n\t\tJavaRDD<Document> temp2 = temp1.filter(new Function<Document, Boolean>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic Boolean call(Document v1) throws Exception {\n\t\t\t\tif (v1.getString(\"tag\").contains(tag)) {\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\tresult.put(\"count\", temp2.count());\n\t\t// dal.destroy();\n\t\treturn result;\n\t}", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "private static Response getTagsResponse(Request request, DataUpdater dataUpdater)\n\t{\n\t\tint verified = 0;\n\t\tJSONObject data = request.getData();\n\t\tif (data.has(\"email\") && data.has(\"password\"))\n\t\t{\n\t\t\tverified = dataUpdater.isAccountVerified(\n\t\t\t\t\tdata.getString(\"email\"), data.getString(\"password\"));\n\t\t}\n\t\tif (verified == 1)\n\t\t{\n\t\t\t/* Soundgasm + Patreon tags */\n\t\t\treturn new Response(ResponseType.TAGS,\n\t\t\t\t\tgetDataObject(dataUpdater.getTagsWithPatreonJSON()));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Soundgasm tags only */\n\t\t\treturn new Response(ResponseType.TAGS,\n\t\t\t\t\tgetDataObject(dataUpdater.getTagsJSON()));\n\t\t}\n\t}", "private void onChangeBanner() {\n double latitude = 0.0, longitude = 0.0;\n if (mGpsTracker != null) {\n latitude = mGpsTracker.getLatitude();\n longitude = mGpsTracker.getLongitude();\n Log.e(\"Error on Valid City\", \"\" + latitude);\n }\n\n if (Utility.isConnectingToInternet(getActivity())) {\n try {\n Map<String, String> param = new HashMap<>(3);\n param.put(\"city\", AppConstants.getCityByLocation(getActivity(), latitude, longitude));\n Log.e(\"Valid City\", \"\" + AppConstants.getCityByLocation(getActivity(), latitude, longitude));\n param.put(\"size\", getResources().getString(R.string.device_reso));\n RequestHandler.getInstance().stringRequestVolley(getActivity(), AppConstants.getBaseUrl(SharedPref.getInstance().getBooleanValue(getActivity(), isStaging)) + validCity, param, this, 5);\n\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"Error on Valid City\", \"\" + e.toString());\n }\n\n } else {\n Utility.showInternetError(getActivity());\n }\n }", "private void hotelDetailCall(long cityId) {\n\n if (NetworkUtilities.isInternet(getActivity())) {\n String request = new Gson().toJson(new HotelDetailRequest(cityId, Long.parseLong(destination.getKey()), UserDTO.getUserDTO().getLanguage()));\n hotelSearchPresenter.getHotelDetails(Constant.API_URL + Constant.HOTELDETAIL, request, getActivity());\n\n } else {\n Utilities.commonErrorMessage(context, context.getString(R.string.Network_not_avilable), context.getString(R.string.please_check_your_internet_connection), false, getFragmentManager());\n }\n }", "private void fillCitiesTable() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(INIT.GET_CITY.toString())) {\n if (!rs.next()) {\n try (PreparedStatement ps = connection.prepareStatement(INIT.FILL_CITIES.toString())) {\n connection.setAutoCommit(false);\n ParseSiteForCities parse = new ParseSiteForCities();\n for (City city : parse.parsePlanetologDotRu()) {\n ps.setString(1, city.getCountry());\n ps.setString(2, city.getCity());\n ps.addBatch();\n }\n ps.executeBatch();\n connection.commit();\n connection.setAutoCommit(true);\n }\n }\n\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "@Override\n public void onResponse(Response response) throws IOException {\n if (!response.isSuccessful()) {\n //Here our reponse is UnSucessfull so we inform the user\n // about the same as before\n Toast.makeText(MainActivity.this, \"Request Failed\", Toast.LENGTH_SHORT).show();\n return;\n }\n //If Response is sucessfull we move forward and convert the\n // reponse which is in JSON format to String\n String respFromApi = response.body().string();\n\n //We will Log this LogCat in order to view the Raw Format recieved\n //you can open the log cat go in debug section and type RawData you\n // will be able to observe data there\n Log.d(\"RawData\", respFromApi);\n\n //Now We will call Extract Data Function which will retrieve the\n // woied and name of each city from the response\n try {\n extractData(respFromApi);\n } catch (Exception e) {\n //Informing Data is Not in JSON Format\n Toast.makeText(MainActivity.this, \"Response Not in JSON Format\", Toast.LENGTH_SHORT).show();\n }\n ;\n }", "public void printAllCities()\n { // to be implemented in part (d) }\n }", "@Test\n\tpublic void testGeoIpTaggingEventCatchesExceptions() {\n\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tthrow new IllegalStateException(\"Simulated geoip issue\");\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\n\t\tlistener.setSettingsReader(settingsReader);\n\n\t\ttry {\n\t\t\tlistener.execute(session, requestFacade);\n\t\t\t// We should get here without an exception\n\t\t} catch (IllegalStateException e) {\n\t\t\tfail(\"Exception should not be received by tagger's client\");\n\t\t}\n\n\t}", "void onDataLoaded(int requestId, Object data);", "@Override\n public void onResponse(Call<CityData> call, Response<CityData> response) {\n cityList.setValue(response.body());\n\n }", "@Test\n public void iPAddressIpIntelligenceTest() throws Exception {\n String value = null;\n IPIntelligenceResponse response = api.iPAddressIpIntelligence(value);\n\n // TODO: test validations\n }", "private void fetchTag() {\n String url = URL_TO_TAG;\n // Volley's json array request object\n JsonArrayRequest req = new JsonArrayRequest(url,\n new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n //Log.d(TAG, response.toString());\n tagList.clear();\n if (response.length() > 0 && response != null) {\n // looping through json and adding to event list\n for (int i = 0; i < response.length(); i++) {\n try {\n JSONObject json_data = response.getJSONObject(i);\n tagList.add(json_data.getString(\"tag_name\"));\n\n } catch (JSONException e) {\n Log.e(\"Error\", \"JSON Parsing error: \" + e.getMessage());\n }\n }\n\n tagadapter.notifyDataSetChanged();\n }\n\n // stopping swipe refresh\n //swipeRefreshLayout.setRefreshing(false);\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Error\", \"Server Error: \" + error.getCause());\n if (error.getClass().getName().equals(\"com.android.volley.ParseError\")){\n Toast.makeText(AdQuestionActivity.this, \"No tag yet\", Toast.LENGTH_SHORT).show();\n }else\n Toast.makeText(AdQuestionActivity.this, \"No Internet Connection or Service Unavailable Right Now\"\n + error.getMessage(), Toast.LENGTH_SHORT).show();\n\n // stopping swipe refresh\n //swipeRefreshLayout.setRefreshing(false);\n }\n });\n\n // Adding request to request queue\n MyApplication.getInstance().addToRequestQueue(req);\n }", "private void verificaData() {\n\t\t\n\t}", "public void getCityData(String cityName){\n\t\tICityDataService cityDataService = new CityDataService();\n\t\tcityData = cityDataService.getCityData(cityName);\n\t}", "@Test\r\n public void multipleCities() {\r\n // Create new list of cities\r\n Vector<City> cities = new Vector<City>();\r\n\r\n // Fill in data for each cities country, city info\r\n Country countryA = new Country(\"AAA\", \"TestCountryA\");\r\n City cityA = new City(1, \"TestCity\", \"AAA\", \"DistrictTest\", 11111);\r\n cities.add(cityA);\r\n given(countryRepository.findByCode(\"AAA\")).willReturn(countryA);\r\n\r\n Country countryB = new Country(\"BBB\", \"TestCountryB\");\r\n City cityB = new City(1, \"TestCity\", \"BBB\", \"DistrictTest2\", 22222);\r\n cities.add(cityB);\r\n given(countryRepository.findByCode(\"BBB\")).willReturn(countryB);\r\n\r\n Country countryC = new Country(\"CCC\", \"TestCountryC\");\r\n City cityC = new City(1, \"TestCity\", \"CCC\", \"DistrictTest3\", 33333);\r\n cities.add(cityC);\r\n given(countryRepository.findByCode(\"CCC\")).willReturn(countryC);\r\n\r\n // temp and the same the same for all test cities A,B, and C given the same name \"TestCity\"\r\n given(weatherService.getTempAndTime(\"TestCity\"))\r\n .willReturn(new TempAndTime(310.37, 1593964800, -14400));\r\n\r\n given(cityRepository.findByName(\"TestCity\")).willReturn(cities);\r\n\r\n CityInfo cityResult = cityService.getCityInfo(\"TestCity\");\r\n CityInfo expectedResult =\r\n new CityInfo(1, \"TestCity\", \"AAA\", \"TestCountryA\", \"DistrictTest\", 11111, 99.0, \"12:00 PM\");\r\n\r\n assertThat(cityResult).isEqualTo(expectedResult);\r\n }", "public void setCity(String city){\n this.city = city;\n }", "public interface getCitiesListener {\n void getCities();\n}", "public boolean hasData() {\n return (tags != null && tags.length() > 0);\n }", "private void onPreRequestData(int tag) {\n }", "protected void setCitiesOnSelectedRegion(String requestedRegionAndFields, final ArrayList<AddressCity> cities) {\n city_spinner.setVisibility(View.VISIBLE);\n ArrayAdapter<AddressCity> adapter = new ArrayAdapter<>(getBaseActivity(), R.layout.form_spinner_item, cities);\n adapter.setDropDownViewResource(R.layout.form_spinner_dropdown_item);\n PromptSpinnerAdapter promptAdapter = new PromptSpinnerAdapter(adapter, R.layout.form_spinner_prompt, getBaseActivity());\n promptAdapter.setPrompt(getString(R.string.address_city_placeholder));\n city_spinner.setAdapter(promptAdapter);\n city_spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n address_city_error.setVisibility(View.GONE);\n if (position == 0) {\n city_Id = cities.get(position).getValue();\n triggerGetPostalCodes(getPostalApi, city_Id, String.valueOf(city_Id));\n } else {\n city_Id = cities.get(position - 1).getValue();\n triggerGetPostalCodes(getPostalApi, city_Id, String.valueOf(city_Id));\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n }\n });\n\n hideActivityProgress();\n showFragmentContentContainer();\n\n\n }", "public void setCityid(Integer cityid) {\n this.cityid = cityid;\n }", "@Test\n public void testGetVerifiedAssociatedTags() {\n String insertedTagList = \" #awesome, #dry, #newTag \";\n List<Tag> verifiedTags = tagServ.getVerifiedAssociatedTags(insertedTagList);\n List<Tag> allTags = tagServ.getAllTags();\n Assert.assertEquals(5, allTags.size());\n Assert.assertEquals(3, verifiedTags.size());\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public interface SearchFilterAPIListener {\n\n public void getFilterAttributeDataFromNetwork(Map<String, List<AttrValSpinnerModel>> data);\n}", "private static List<CityData> extractFeatureFromJson(String cityDataJSON) {\n // Si la String cityDataJSON es nula o está vacía, se devuelve el resultado.\n if (TextUtils.isEmpty(cityDataJSON)) {\n return null;\n }\n // Crea una ArrayList vacía a la que podemos añadir datos de ciudad.\n ArrayList<CityData> cityDatas = new ArrayList<>();\n\n // Intenta hacer parse a la JSON response.\n try {\n // Crea un JSONObject que es el root de la API.\n JSONObject baseJsonObject = new JSONObject(cityDataJSON);\n\n // Extrae la JSONArray asociada la key \"list\".\n JSONArray cityDataArray = baseJsonObject.getJSONArray(\"list\");\n\n // Por cada ciudad en la cityData JSONArray crea un objeto CityData.\n for (int i = 0; i < cityDataArray.length(); i++) {\n // Escoge únicamente un elemento de la lista.\n JSONObject currentCityData = cityDataArray.getJSONObject(i);\n\n // Extrae el valor de la key llamada \"name\".\n String nombre = currentCityData.getString(\"name\");\n\n // Por cada dato de ciudad escoge el JSONObject asociado a la key \"coord\".\n JSONObject coordinates = currentCityData.getJSONObject(\"coord\");\n\n // Extrae el valor de la key llamada \"lon\".\n double longitud = coordinates.getDouble(\"lon\");\n // Extrae el valor de la key llamada \"lat\":\n double latitud = coordinates.getDouble(\"lat\");\n\n // Crea un nuevo objeto CityData con los valores requeridos.\n CityData cityData = new CityData(nombre, longitud, latitud);\n\n // Añade este nuevo objeto a la ArrayList.\n cityDatas.add(cityData);\n }\n } catch (JSONException e) {\n // Si ocurre algún error dentro del bloque try se capta aquí para evitar un cierre de la\n // App.\n Log.e(\"QueryUtils\", \"Problema parsing los resultados del terremoto en JSON\", e);\n\n }\n return cityDatas;\n }", "public void setCity(String city)\n\t{\n\t\tCity = city;\n\t}", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "private void loadSupermarketLocations(String city) {\n // Request the supermarkets that are available as nodes\n StringBuilder requestUrl = new StringBuilder(\"https://overpass-api.de/api/interpreter?data=\");\n requestUrl.append(\"node%5B%22addr%3Acity%22%3D%22\");\n requestUrl.append(city);\n requestUrl.append(\"%22%5D%5B%22shop%22%3D%22supermarket%22%5D%3Bout%3B\");\n\n StringRequest stringRequest = new StringRequest(Request.Method.GET, requestUrl.toString(),\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n parseSupermarketNodes(response);\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"api req\", error.toString());\n }\n });\n\n queue.add(stringRequest);\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city){\n\t\tthis.city = city;\n\t}", "void onBeaconDataResult(List<BeaconResultEntity> beaconResultEntities);", "private void UpdateTagsList()\r\n\t{ \r\n\t\t // for every element in our checkboxes from the view array\r\n\t\t for (CheckBox checkBox : this.CBlist) \r\n\t\t {\r\n\t\t\t // if it is checked\r\n\t\t\t if(checkBox.isChecked())\r\n\t\t\t {\r\n\t\t\t\t // Update the values on the local indication array\r\n\t\t\t\t hmTags.put(checkBox.getText().toString(), true);\r\n\t\t\t }\r\n\t\t }\t\t\t\r\n\t}", "public interface TagDAO {\n\n\t/** Tag id for host country - country tag */\n\tpublic static final int HOSTCOUNTRY_COUNTRY_TAG_ID = 2001;\n\t\n\t/** Keywords associated with this dataset */\n\tpublic static final int DATA_RESOURCE_KEYWORDS = 4000;\n\t\n\tpublic static final int DATA_RESOURCE_OCCURRENCES_COUNTRY = 4100;\n\t\n\tpublic static final int DATA_RESOURCE_OCCURRENCES_BOUNDING_BOX = 4101;\n\t\n\tpublic static final int DATA_RESOURCE_OCCURRENCES_WKT_POLYGON = 4102;\n\t\n\tpublic static final int DATA_RESOURCE_OCCURRENCES_DATE_RANGE = 4120;\n\t\n\tpublic static final int DATA_RESOURCE_OCCURRENCES_MONTH = 4121;\n\t\n\tpublic static final int DATA_RESOURCE_OCCURRENCES_SPECIES = 4140;\n\t\n\tpublic static final int DATA_RESOURCE_OCCURRENCES_GENUS = 4141;\n\t\n\tpublic static final int DATA_RESOURCE_OCCURRENCES_FAMILY = 4142;\n\t\n\tpublic static final int DATA_RESOURCE_TAXONOMIC_SCOPE = 4150; \n\t\n\tpublic static final int DATA_RESOURCE_ASSOCIATED_KINGDOM = 4151;\n\n\t/** Species common names associated with this resource */\n\tpublic static final int DATA_RESOURCE_COMMON_NAMES = 4152;\n\n\t/** Indicates whether a data resource contains type records */\n\tpublic static final int DATA_RESOURCE_CONTAINS_TYPE_SPECIMENS = 4160;\n\n\t/** Names of collectors who have collected for this dataset */\n\tpublic static final int DATA_RESOURCE_COLLECTOR = 4161;\n}", "public void visit()\n\t{\n\t\t// Visit data element.\n\t\tcargo.visit();\n\t}", "private void initData() {\n requestServerToGetInformation();\n }", "@Override\n public void success(FindApiEnvelope weatherDataEnvelope, Response response) {\n BusProvider.getInstance().post(produceSearchByCityNameEvent(OpenWeatherDataParse.parseCurrentWeathers(weatherDataEnvelope)));\n }", "private void fillCity() {\n \n if(postalCodeTF.getText().length() == 4){\n City city = memberConnection.getCity(postalCodeTF.getText());\n cityTF.setText(city.getCity().replaceAll(\"_\", \" \"));\n municipalTF.setText(city.getMunicipal().replaceAll(\"_\", \" \"));\n }\n }", "@Test\n public void testACreateCity() {\n // do not replace this with a call to setUserContext,\n // the city must be stored using the client/org of the 100 user\n // this ensures that webservice calls will be able to find the city\n // again\n OBContext.setOBContext(\"100\");\n\n // first delete the current cities, as we should start fresh\n final OBCriteria<City> obc = OBDal.getInstance().createCriteria(City.class);\n for (final City c : obc.list()) {\n OBDal.getInstance().remove(c);\n }\n\n final City city = OBProvider.getInstance().get(City.class);\n city.setAreaCode(\"3941\");\n city.setCoordinates(\"00\");\n city.setCoordinates(\"lo\");\n city.setPostalCode(\"postal\");\n city.setName(\"name\");\n city.setCountry(getOneInstance(Country.class));\n city.setRegion(getOneInstance(Region.class));\n OBDal.getInstance().save(city);\n commitTransaction();\n cityId = city.getId();\n }", "private void initializeWeatherData() {\n Weather location = new Weather(getActivity());\n\n // Make sure the user has put in a location.\n if (location.getName() != null) {\n // Fetch the current forecast, which updates current conditions and weekly forecast.\n GetWeather.getWeatherData(location.getLatitudeLongitude(), adapter, getString(R.string.dark_sky_api), this);\n\n // Set the text on the location label.\n TextView locationLabel = (TextView) getView().findViewById(R.id.text_location_name);\n locationLabel.setText(location.getName());\n\n // If they haven't, ask them to put in a location.\n } else {\n ManualEntry addCityDialogFragment = new ManualEntry().newInstance();\n\n if (!addCityDialogFragment.isActive()) {\n addCityDialogFragment.show(getFragmentManager(), \"fragment_add_city\");\n }\n }\n\n/**\n * In the future, if we want to change their location, can enter another address.\n */\n// ImageButton imageButton = (ImageButton) getView().findViewById(R.id.imageButton);\n// imageButton.setOnClickListener(new View.OnClickListener() {\n// @Override\n// public void onClick(View v) {\n// ManualEntry addCityDialogFragment = new ManualEntry().newInstance();\n// if (!addCityDialogFragment.isActive()) {\n// addCityDialogFragment.show(getFragmentManager(), \"fragment_add_city\");\n// }\n// }\n// });\n }", "public ArrayList<CoronaCase> Analytics(String city)\n\t{\n\t\tArrayList<CoronaCase> temp = new ArrayList<CoronaCase>();\n\t\t\n\t\tfor(int i = 0; i < coronaCase.size(); i++)\n\t\t\tif(coronaCase.get(i).getCity().toLowerCase().contains(city.toLowerCase()))\n\t\t\t\ttemp.add(coronaCase.get(i));\t\n\t\t\n\t\treturn temp;\n\t}", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "private void initializeTag()\n {\n Iterator<node_info> it=this.ga.getV().iterator();\n while(it.hasNext())\n {\n it.next().setTag(Double.POSITIVE_INFINITY);\n }\n }", "private void parseData() {\n\t\t\r\n\t}", "private void onRequestData(int tag) {\n \ttry {\n \t data = request.request();\n \t} catch(MatjiException e) {\n \t lastOccuredException = e;\n \t}\n }", "private void probeIotasApi(String ip) throws JSONException, IOException {\n\n DefaultHttpClient httpClient = new DefaultHttpClient();\n HttpEntity httpEntity = null;\n HttpResponse httpResponse = null;\n\n HttpGet httpGet = new HttpGet(\"http://\" + ip + \"/iotas\");\n httpResponse = httpClient.execute(httpGet);\n\n int httpStatus = httpResponse.getStatusLine().getStatusCode();\n\n if(httpStatus == 200)\n {\n httpEntity = httpResponse.getEntity();\n String jsonResult = EntityUtils.toString(httpEntity);\n\n if(jsonResult!=null)\n {\n log.debug(\"json result: \" + jsonResult);\n\n JSONObject jsonObject = new JSONObject(jsonResult);\n\n String hostName = jsonObject.getString(\"host_name\");\n String apiVersion = jsonObject.getString(\"version\");\n\n log.debug(\"Found Holiday \" +hostName+ \" with IOTAS API version: \" + apiVersion);\n serviceResults.addServiceResult(new ServiceResult(\"http://\" + ip, hostName, ServiceResult.ScanType.TCP_SCAN));\n callbackListener.onScanResults(serviceResults);\n }\n }\n\n // let exceptions bubble\n }", "private boolean wasVisited(int city){\n\t\treturn this.getGraph().wasVisited(city);\n\t}", "private void collectTags\n (int[] i, int i0, int i1, long[] T) {\n for (int o=i0; o<i1; o++) // 1\n T[o] = data[i[o]]; // 1\n }", "public LiveData<CityData> getCityDetails() {\n\n //if the list is null\n if (cityList == null) {\n cityList = new MutableLiveData<CityData>();\n loadCityDetails(); //we will load it asynchronously from server in this method\n }\n return cityList; //finally we will return the list\n }", "public void Checking() {\n\n final ArrayList<String> notworking = new ArrayList<>();\n\n ArrayList<String> cityListForSearch = new ArrayList<>();\n\n cityListForSearch.add(\"bangkok\");\n cityListForSearch.add(\"samut sakhon\");\n cityListForSearch.add(\"nonthaburi\");\n cityListForSearch.add(\"rayong\");\n cityListForSearch.add(\"chiang mai\");\n cityListForSearch.add(\"nakhon sawan\");\n cityListForSearch.add(\"surat thani\");\n cityListForSearch.add(\"phuket\");\n cityListForSearch.add(\"chiang rai\");\n cityListForSearch.add(\"mae hong son\"); //doesn't work\n cityListForSearch.add(\"phrae\");\n cityListForSearch.add(\"phayao\");\n cityListForSearch.add(\"samut prakan\");\n cityListForSearch.add(\"ratchaburi\");\n cityListForSearch.add(\"songkhla\");\n cityListForSearch.add(\"khon kaen\");\n cityListForSearch.add(\"nakhon ratchasima\");\n cityListForSearch.add(\"chachoengsao\");\n cityListForSearch.add(\"narathiwat\");\n cityListForSearch.add(\"yala\");\n cityListForSearch.add(\"lamphun\");\n cityListForSearch.add(\"sa kaeo\");\n cityListForSearch.add(\"pathum thani\");\n cityListForSearch.add(\"satun\");\n cityListForSearch.add(\"yangon\");\n\n for(final String cityName : cityListForSearch){\n String city = urlString(cityName);\n httpConnection.requestWebServer(city,new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Log.e(TAG, \"onFailure: \" + e.toString());\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n if (response.body() != null) {\n\n try {\n String json = response.body().string();\n dataVO = gson.fromJson(json, DataVO.class);\n\n handler.sendEmptyMessage(1);\n }catch (JsonSyntaxException e){\n Log.d(TAG, \"onResponse: doesn't work city--------------------> \" + cityName);\n notworking.add(cityName);\n\n }\n }\n\n }\n });\n }\n\n\n\n }", "public void setCityId(Integer cityId) {\n this.cityId = cityId;\n }", "public void setCity_id(String city_id) {\n this.city_id = city_id;\n }", "public void getCurrentCityName(double latitude, double longitude, MutableLiveData<String> data) {\n // final MutableLiveData<String> data = new MutableLiveData<>();\n new MyAsyncTask(data, geocoder).execute(latitude, longitude);\n\n }", "@Test\n\t@Title(\"TC_008: Verify that the current weather data is returned correctly when user search for the City Name\")\n\t \n\tpublic void TC_008_Verify_CurrentWeatherInfo_Is_Returned_For_ValidCity() {\n\t\t\n\t\tLocation city = new Location();\n\t\t\n\t\tcity = DataReader.RetrieveLocationFromFile(\"data.json\").get(0);\n\t\t\n\t\tcity.weather = new Weather(\"C\");\n\t\t\n\t\t//Steps:\n\t\t//1. Access to the site\n\t\tendUser.access_Site();\n\t\t\n\t\t//Search Weather by CityName\n\t\tendUser.SearchWeatherbyCityName(city);\n\t\t\n\t\t//Assume that the test application is triggering the correct API as expectation: OncCall\n\t\tcity = endUser.getWeatherInfoViaAPIResponse(city);\n\t\t\n\t\t//Validate Current Weather\n\t\tendUser.Validate_CurrentWeather(city);\n\t\t\n\t\tAssert.assertTrue(TestConfigs.glb_TCFailedMessage, TestConfigs.glb_TCStatus);\n\t}", "public void setCity (String city) {\n\t\tthis.city=city;\n\t}", "boolean hasHasCity();", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "protected void setupTags() {\r\n\t\t// Dataset information: one per file\r\n\t\tmetaTags.put(\"^dataset\", \"id\");\r\n\t\tmetaTags.put(\"!dataset_title\", \"title\");\r\n\t\tmetaTags.put(\"!dataset_update_date\", \"date\");\r\n\t\tmetaTags.put(\"!dataset_pubmed_id\", \"pmid\");\r\n\t\tmetaTags.put(\"!dataset_description\", \"description\");\r\n\t\tmetaTags.put(\"!dataset_sample_count\", \"sampleCount\");\r\n\r\n\t\t// Platform information: possibly multiple per file\r\n\t\tmetaTags.put(\"!dataset_platform_organism\", \"organisms\");\r\n\t\tmetaTags.put(\"!dataset_sample_organism\", \"organisms\");\r\n\t\tmetaTags.put(\"!dataset_platform\", \"platformIDs\");\t\t\t\r\n\t\tmetaTags.put(\"!dataset_platform_technology_type\", \"platformTitles\");\r\n\t\tmetaTags.put(\"!dataset_feature_count\", \"rowCounts\");\r\n\r\n\t\t// Sample information: possibly multiple per file\r\n\t\tmetaTags.put(\"!subset_sample_id\", \"sampleIDs\");\r\n\t\tmetaTags.put(\"!subset_description\", \"sampleTitles\");\t\t \r\n\t\tmetaTags.put(\"!dataset_channel_count\", \"channelCounts\");\r\n\t\tmetaTags.put(\"!dataset_value_type\", \"valueTypes\");\r\n\r\n\t\tif (! checkTags()) {\r\n\t\t\tthrow new RuntimeException(\"Tags not initialized properly\");\r\n\t\t}\r\n\t}", "@Test\n\tpublic void requestDataForCustomer12212_checkAddressCity_expectBeverlyHills() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}", "public ArrayList<CoronaCase> Analytics(LocalDate lowerbound, LocalDate upperbound, String city)\n\t{\n\t\tArrayList<CoronaCase> temp = new ArrayList<CoronaCase>();\n\t\t\n\t\tfor(int i = 0; i < coronaCase.size(); i++)\n\t\t\tif(coronaCase.get(i).getCity().toLowerCase().contains(city.toLowerCase()) &&\n\t\t\t coronaCase.get(i).isCaseDateWithin(lowerbound, upperbound, coronaCase.get(i).getDate()))\n\t\t\t\t\ttemp.add(coronaCase.get(i));\n\t\t\n\t\treturn temp;\n\t}", "private void initializeCreateCity() throws Exception {\n if (cityId == null) {\n testACreateCity();\n }\n }", "public void getCity(){\n }", "public interface TagService {\n\n boolean retagIdea(ArrayList<Tag> newTag, Idea idea, User user);\n\n /**\n * Saves the tags provided as a comma separate string.\n * It Parses the tag string and checks for de-dupe and finally save them\n * into data store.\n * \n * @param tags The String object representing the comma separated tag\n * strings.\n * @return list of saved tag objects.\n */\n List<Tag> saveTags(String tags);\n\n /**\n * Retrieves a list of Tags by keys.\n * \n * @param keys the collection of keys of Tag objects.\n * @return Returns the list of Tag objects corresponding to keys.\n */\n List<Tag> getTagsByKeys(Collection<String> keys);\n\n /**\n * Retrieves the tags staring with a specific string.\n * \n * @param startString the start string to be matched with the title of\n * the tags\n * @param retrievalInfo the {@link RetrievalInfo} object containing the\n * request parameters\n * \n * @return list of fetched tags\n */\n List<Tag> getTagsWithSpecificStartString(String startString, RetrievalInfo retrievalInfo);\n\n /**\n * Get the data for auto suggestion of tags.\n * \n * @param startString the start string for which the suggestions are to\n * be fetched.\n * @param retrievalInfo the {@link RetrievalInfo} object containing the\n * request parameters\n * @return the list of fetched tags\n */\n List<Tag> getTagsForAutoSuggestion(String startString, RetrievalInfo retrievalInfo);\n\n /**\n * Get the data for Tag Cloud.The tags returned are sorted alphabetically.\n * \n * @param retrievalInfo the {@link RetrievalInfo} object containing the\n * request parameters\n * @return the list of tags for tag cloud\n */\n List<Tag> getTagsForTagCloud(RetrievalInfo retrievalInfo);\n\n /**\n * Get the tag with title equal to the tagName param.\n * \n * @param tagName the title of the tag to be fetched\n * @return the {@link Tag} object\n */\n Tag getTagByName(String tagName);\n\n /**\n * Get the tags associated with ideas owned by a user.\n * \n * @param user the user whose tags are to be fetched\n * @return list of tags associated with ideas of the user\n */\n List<Tag> getMyTagCloud(User user);\n\n /**\n * Iterates through the list of objects and increment the weight if each Tag\n * {@link Tag} object.\n * \n * @param tags comma separated tags string.\n * @return list of tags for which, weight successfully incremented.\n */\n\n List<Tag> incrementWeights(String tags);\n\n /**\n * Save a tag\n * \n * @param tag the {@link Tag} object to be saved\n * @return the saved {@link Tag} object\n */\n Tag saveTag(Tag tag);\n\n /**\n * Iterates through the list of objects and decrement the weight of each Tag\n * {@link Tag} object.\n * \n * @param tags comma separated tags string.\n * @return list of tags for which, weight successfully decremented.\n */\n\n List<Tag> decrementWeights(String tags);\n\n /**\n * Remove tags with zero weight from the list\n * \n * @param tagList the list of {@link Tag} objects from which to remove\n * objects with zero weight\n * @return the filtered list\n */\n List<Tag> removeTagWithZeroWeight(List<Tag> tagList);\n}", "private void logFindAll(String ip) {\n\t\tRetailUnitOfMeasureController.logger.info(\n\t\t\t\tString.format(RetailUnitOfMeasureController.FIND_ALL_LOG_MESSAGE,\n\t\t\t\t\t\tthis.userInfo.getUserId(), ip));\n\t}" ]
[ "0.58097756", "0.5661796", "0.56139845", "0.5369397", "0.534773", "0.5290454", "0.528051", "0.52413684", "0.5191477", "0.5156998", "0.51458615", "0.512689", "0.51170826", "0.5057913", "0.5013855", "0.5001081", "0.49917918", "0.49373758", "0.4911074", "0.49063563", "0.48987457", "0.4890525", "0.48444742", "0.48293802", "0.48140424", "0.48110983", "0.4786479", "0.4781114", "0.47585228", "0.47542608", "0.4738572", "0.47376403", "0.47296387", "0.47186252", "0.47065032", "0.46833384", "0.46808264", "0.4669277", "0.46639606", "0.46603468", "0.46562287", "0.4642143", "0.46416295", "0.46363682", "0.46315303", "0.4625318", "0.46234363", "0.4622536", "0.4622536", "0.46121755", "0.46080938", "0.46063128", "0.46052557", "0.46052557", "0.46052557", "0.46052557", "0.46052557", "0.46052557", "0.45963502", "0.4594842", "0.45934778", "0.45831606", "0.45801234", "0.4580055", "0.45759925", "0.45751512", "0.45672417", "0.45587343", "0.4556591", "0.45506024", "0.4540462", "0.45393997", "0.45393997", "0.45325023", "0.45325023", "0.45309505", "0.45182246", "0.45162275", "0.45155948", "0.45142943", "0.45124912", "0.4510612", "0.45047146", "0.44876623", "0.4484912", "0.44776475", "0.44690794", "0.44618553", "0.44603184", "0.44601637", "0.44601637", "0.44601637", "0.44601637", "0.44535002", "0.44528982", "0.44481558", "0.444668", "0.44446734", "0.44360125", "0.44326165" ]
0.6066669
0
Tests that if the data object returns as null for an IP the listener does not populates tags and does not crash.
@Test public void testThatIfDataIsNullGeoIpTaggerIsNullSafe() { final SettingValue settings = context.mock(SettingValue.class); context.checking(new Expectations() { { allowing(settings).getBooleanValue(); will(returnValue(Boolean.TRUE)); } }); SettingsReader settingsReader = new CachedSettingsReaderImpl() { @Override public SettingValue getSettingValue(final String path) { if ("COMMERCE/SYSTEM/GEOIP/enable".equals(path)) { return settings; } return null; } }; listener = new GeoIpTagger(); listener.setSettingsReader(settingsReader); geoIpService = new GeoIpService() { public GeoIpLocation resolveIpAddress(final String ipAddress) { return null; } public void setProvider(final GeoIpProvider provider) { // Does nothing. } }; listener.setGeoProviderService(geoIpService); context.checking(new Expectations() { { allowing(session).getCustomerTagSet(); will(returnValue(tagSet)); } }); listener.execute(session, requestFacade); assertNullTag(GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet); assertNullTag(GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet); assertNullTag(GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet); assertNullTag(GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet); assertNullTag(GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet); assertNullTag(GeoIpTagger.GEOIP_CITY, tagSet); assertNullTag(GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet); assertNullTag(GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet); assertNullTag(GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet); assertNullTag(GeoIpTagger.GEOIP_CONTINENT, tagSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onDataNotAvailable() {\n Log.d(TAG, \"onDataNotAvailable: \");\n }", "@Test(expected = IllegalArgumentException.class)\r\n public void testDetectWithNullData() throws Exception {\r\n instance.detect(null);\r\n }", "public boolean hasData() {\n return (tags != null && tags.length() > 0);\n }", "@Override\n\tpublic boolean checkData() {\n\t\treturn false;\n\t}", "boolean hasData()\n {\n logger.info(\"server: \" + server + \" addr: \" + addr + \"text:\" + text);\n return server != null && addr != null && text != null;\n }", "@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }", "@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }", "private void assertStreamItemViewHasNoTag() {\n Object tag = mView.getTag();\n assertNull(\"should not have a tag\", tag);\n }", "public Data getUndefinedDataBefore(Address addr, TaskMonitor monitor);", "private void verificaData() {\n\t\t\n\t}", "@Test\n\tpublic void testGeoIpTaggingEventCatchesExceptions() {\n\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tthrow new IllegalStateException(\"Simulated geoip issue\");\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\n\t\tlistener.setSettingsReader(settingsReader);\n\n\t\ttry {\n\t\t\tlistener.execute(session, requestFacade);\n\t\t\t// We should get here without an exception\n\t\t} catch (IllegalStateException e) {\n\t\t\tfail(\"Exception should not be received by tagger's client\");\n\t\t}\n\n\t}", "@Test\n public void testEmptyTaintContainsNullTaint() {\n Taint t = Taint.emptyTaint();\n assertTrue(t.containsLabel(null));\n }", "public Data getUndefinedDataAt(Address addr);", "@Test(expected = NullPointerException.class)\n public void testInvalidValueOfNullArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = null;\n ipAddress = Ip4Address.valueOf(value);\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n\n NetworkResponse networkResponse = error.networkResponse;\n Log.i(\"Checking\", new String(error.networkResponse.data));\n if(networkResponse != null && networkResponse.data != null)\n {\n switch (networkResponse.statusCode)\n {\n\n default:\n break;\n }\n }\n }", "@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}", "@Override\n public String getData()\n {\n return null;\n }", "@java.lang.Override\n public boolean hasDataItemPayload() {\n return dataItemPayload_ != null;\n }", "public boolean isEmpty()\n {return data == null;}", "public boolean hasData();", "public boolean isSetData() {\n return this.data != null;\n }", "public boolean canProcessNull() {\n return false;\n }", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "public Object visit(CallExp host, Object data) {\r\n\t\treturn null;\r\n\t}", "@Test\n public void testDontDieFromNulls() throws Exception {\n mWifiCandidates.add(null, mConfig1, 1, 0.0, false, 100);\n mWifiCandidates.add(mScanDetail1, null, 2, 0.0, false, 100);\n doReturn(null).when(mScanDetail2).getScanResult();\n mWifiCandidates.add(mScanDetail2, mConfig2, 3, 1.0, true, 100);\n assertFalse(mWifiCandidates.remove(null));\n\n assertEquals(0, mWifiCandidates.size());\n }", "public boolean isGarbage()\r\n\t\t{\r\n\t\t\treturn this.subscriberRef.get() == null;\r\n\t\t}", "@Override\n public void onDataAvailable(Object data) {\n\n Toast.makeText(getApplicationContext(), \"error data \" + data.toString(), Toast.LENGTH_LONG).show();\n\n }", "public static void informNullResponse(Context context) {\n Log.e(context.getClass().getSimpleName(), \"Problem on client side\");\n Toast.makeText(context, context.getString(R.string.server_unreachable_error),\n Toast.LENGTH_SHORT).show();\n }", "public Data getUndefinedDataAfter(Address addr, TaskMonitor monitor);", "@Test\n\tpublic void testGeoIpTaggingEventIsDisabled() {\n\n\t\tfinal SettingValue settings = context.mock(SettingValue.class);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(settings).getBooleanValue();\n\t\t\t\twill(returnValue(Boolean.FALSE));\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tif (\"COMMERCE/SYSTEM/GEOIP/enable\".equals(path)) {\n\t\t\t\t\treturn \tsettings;\n\t\t\t\t}\n\t\t\t\t return null;\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\t\t\n\t\tlistener.setSettingsReader(settingsReader);\n\t\t\n\t\tgeoIpService = new GeoIpService() {\n\t\t\tpublic GeoIpLocation resolveIpAddress(final String ipAddress) {\n\t\t\t\tGeoIpLocation geoIpLocation = new GeoIpLocationImpl();\n\t\t\t\tgeoIpLocation.setZipCode(ZIP_OR_POST_CODE);\n\t\t\t\tgeoIpLocation.setCountryCode(COUNTRY_CODE);\n\t\t\t\tgeoIpLocation.setState(STATE_OR_PROVINCE);\n\t\t\t\tgeoIpLocation.setConnectionType(CONNECTION_TYPE);\n\t\t\t\tgeoIpLocation.setIpRoutingType(ROUTING_TYPE);\n\t\t\t\tgeoIpLocation.setCity(CITY);\n\t\t\t\tgeoIpLocation.setTopLevelDomain(FIRST_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setSecondLevelDomain(SECOND_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setGmtTimeZone(GMT_TIME_ZONE);\n\t\t\t\tgeoIpLocation.setContinent(CONTINENT);\n\t\t\t\treturn geoIpLocation;\n\t\t\t}\n\n\t\t\tpublic void setProvider(final GeoIpProvider provider) {\n\t\t\t\t// Does nothing.\n\t\t\t}\n\n\t\t};\n\n\t\tlistener.setGeoProviderService(geoIpService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(session).getCustomerTagSet();\n\t\t\t\twill(returnValue(tagSet));\n\t\t\t}\n\t\t});\n\n\t\tlistener.execute(session, requestFacade);\n\n\t\tassertNullTag(GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CITY, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONTINENT, tagSet);\n\n\n\t}", "private void validateData() {\n }", "boolean isNilTag();", "public boolean isNotNullSupportsTipping() {\n return genClient.cacheValueIsNotNull(CacheKey.supportsTipping);\n }", "public boolean hasData() {\n return dataBuilder_ != null || data_ != null;\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean is_set_data() {\n return this.data != null;\n }", "public boolean is_set_data() {\n return this.data != null;\n }", "@Test\n public void testNullInputPerturbDataSet() throws Exception {\n int[] result = NoiseGenerator.perturbDataSet(null, 2);\n Assert.assertTrue(result == null);\n }", "TraceUndefinedDataView undefinedData();", "public boolean hasIp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Test\n public void testConstructTaintFromNullLabel() {\n Integer label = null;\n Taint t = Taint.withLabel(label);\n assertTrue(t.isEmpty());\n }", "@Test\n\tvoid testCheckNulls4() {\n\t\tObject[] o = {2,5f,\"Test\",Duration.ZERO,new Station(0,0,\"Test\")};\n\t\tassertFalse(DataChecker.checkNulls(o));\n\t}", "public void checkData(){\n\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "@Test\n public void getVirtualDatacenterEmptyListWhenHasVLANsWithoutIPs()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs);\n setup(vlan.getConfiguration(), vlan);\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(200, response.getStatusCode());\n }", "public String badOrMissingResponseData();", "private static void checkNull(Object value, String name) throws LateDeliverablesProcessingException {\r\n if (value == null) {\r\n throw new LateDeliverablesProcessingException(\"The \" + name + \" should not be null.\");\r\n }\r\n }", "@Override // com.facebook.p463d.BaseDataSubscriber\n public void onFailureImpl(DataSource<CloseableReference<CloseableImage>> cVar) {\n C32569u.m150519b(cVar, C6969H.m41409d(\"G6D82C11B8C3FBE3BE50B\"));\n Log.e(\"PanoramaViewParser\", C6969H.m41409d(\"G6893C516A670A224E7099508F4E4CADB2581D019BE25B82CA609955CB2EBC6C37E8CC711FF36AA20EA\"));\n PanoramaViewWrap.access$getMPanoramaView$p(this.this$0).setVisibility(4);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@Test\n\tvoid testCheckNull1() {\n\t\tassertFalse(DataChecker.checkNull(new Integer(42)));\n\t}", "public boolean hasData() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void testNonExistanceID() throws Exception {\n\n // check that resolvement fails\n super.checkResolveNonExistanceID();\n\n // occurrence should be null\n assertNull(tag.getOccurrence());\n\n }", "public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isNull() {\n return this.data == null;\n }", "public Optional<D> getNetworkEventListener();", "@Override\n\tpublic Object visit(SimpleNode node, Object data) {\n\t\treturn null;\n\t}", "@Override\n\tpublic String ping() {\n\t\treturn null;\n\t}", "private void onRequestData(int tag) {\n \ttry {\n \t data = request.request();\n \t} catch(MatjiException e) {\n \t lastOccuredException = e;\n \t}\n }", "void onAddressFound(@Nullable Address address);", "@Test\n public void iPAddressIpIntelligenceTest() throws Exception {\n String value = null;\n IPIntelligenceResponse response = api.iPAddressIpIntelligence(value);\n\n // TODO: test validations\n }", "public boolean hasData() {\n return dataBuilder_ != null || data_ != null;\n }", "public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Override\n public void onFailure(Call<List<DeviceStateResponse>> call, Throwable t) {\n callback.onDataNotAvailable();\n }", "public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@Test\n public void iPAddressIsThreatTest() throws Exception {\n String value = null;\n IPThreatResponse response = api.iPAddressIsThreat(value);\n\n // TODO: test validations\n }", "public abstract void onPingReceived(byte[] data);", "public interface IVehicleNotInTrip\n{\n void onVehicleData(String response);\n}", "@Test\n public void testConstructTaintFromNullTaint() {\n Taint other = null;\n Taint t = Taint.withLabel(other);\n assertTrue(t.isEmpty());\n }", "@Test\n\tpublic void testThatIfAllDataIsProvidedAllGeoIpTagsAreSet() {\n\n\t\tfinal SettingValue settings = context.mock(SettingValue.class);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(settings).getBooleanValue();\n\t\t\t\twill(returnValue(Boolean.TRUE));\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tif (\"COMMERCE/SYSTEM/GEOIP/enable\".equals(path)) {\n\t\t\t\t\treturn \tsettings;\n\t\t\t\t}\n\t\t\t\t return null;\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\n\t\t\n\t\tlistener.setSettingsReader(settingsReader);\n\t\t\n\t\tgeoIpService = new GeoIpService() {\n\t\t\t\n\t\t\tpublic GeoIpLocation resolveIpAddress(final String ipAddress) {\n\t\t\t\tGeoIpLocation geoIpLocation = new GeoIpLocationImpl();\n\t\t\t\tgeoIpLocation.setZipCode(ZIP_OR_POST_CODE);\n\t\t\t\tgeoIpLocation.setCountryCode(COUNTRY_CODE);\n\t\t\t\tgeoIpLocation.setState(STATE_OR_PROVINCE);\n\t\t\t\tgeoIpLocation.setConnectionType(CONNECTION_TYPE);\n\t\t\t\tgeoIpLocation.setIpRoutingType(ROUTING_TYPE);\n\t\t\t\tgeoIpLocation.setCity(CITY);\n\t\t\t\tgeoIpLocation.setTopLevelDomain(FIRST_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setSecondLevelDomain(SECOND_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setGmtTimeZone(GMT_TIME_ZONE);\n\t\t\t\tgeoIpLocation.setContinent(CONTINENT);\n\t\t\t\treturn geoIpLocation;\n\t\t\t}\n\t\t\t\n\t\t\tpublic void setProvider(final GeoIpProvider provider) {\n\t\t\t\t// Does nothing.\n\t\t\t}\n\n\t\t};\n\n\t\tlistener.setGeoProviderService(geoIpService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(session).getCustomerTagSet();\n\t\t\t\twill(returnValue(tagSet));\n\t\t\t}\n\t\t});\n\n\t\tlistener.execute(session, requestFacade);\n\n\t\tassertTag(ZIP_OR_POST_CODE, GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet);\n\t\tassertTag(COUNTRY_CODE, GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet);\n\t\tassertTag(STATE_OR_PROVINCE, GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet);\n\t\tassertTag(CONNECTION_TYPE, GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet);\n\t\tassertTag(ROUTING_TYPE, GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet);\n\t\tassertTag(CITY, GeoIpTagger.GEOIP_CITY, tagSet);\n\t\tassertTag(FIRST_LEVEL_DOMAIN, GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet);\n\t\tassertTag(SECOND_LEVEL_DOMAIN, GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet);\n\t\tassertTag(GMT_TIME_ZONE, GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet);\n\t\tassertTag(CONTINENT, GeoIpTagger.GEOIP_CONTINENT, tagSet);\n\n\t}", "public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@Override\n\tpublic void noAdAvailableListener() {\n\t\t\n\t}", "boolean getCalledOnNullInput();", "public boolean hasData() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean isData();", "public interface IFailureDetectionEventListener {\r\n\t/**\r\n\t * Convict the specified endpoint.\r\n\t * \r\n\t * @param ep\r\n\t * endpoint to be convicted\r\n\t */\r\n\tpublic void convict(InetAddress ep);\r\n\r\n}", "public boolean isMaybePresentData() {\n checkNotUnknown();\n if (isPolymorphic())\n return (flags & PRESENT_DATA) != 0;\n else\n return (flags & PRIMITIVE) != 0 || num != null || str != null || object_labels != null;\n }", "public final boolean empty() {\n return data == null;\n }", "@Ignore\n @Test(expected = NullPointerException.class)\n public void failOnNullTag() throws Exception {\n }", "public void processZeroUsageEvent(LoadBalancer lb, UsageEvent event, Calendar eventTime) throws UsageEventCollectionException {\n List<Host> hosts = null;\n try {\n hosts = gatherHostsData(lb);\n } catch (EntityNotFoundException e) {\n LOG.error(String.format(\"On %s event, load balancer %d was assigned to host %d and it does not exist.\", event.name(), lb.getId(), lb.getHost().getId()));\n }\n\n if (hosts != null && !hosts.isEmpty()) {\n List<SnmpUsage> snmpUsages = new ArrayList<SnmpUsage>();\n for (Host h : hosts) {\n SnmpUsage snmpUsage = new SnmpUsage();\n snmpUsage.setHostId(h.getId());\n snmpUsage.setLoadbalancerId(lb.getId());\n snmpUsage.setBytesIn(0L);\n snmpUsage.setBytesInSsl(0L);\n snmpUsage.setBytesOutSsl(0L);\n snmpUsage.setBytesOut(0L);\n snmpUsages.add(snmpUsage);\n }\n usageEventProcessor.processUsageEvent(snmpUsages, lb, event, eventTime);\n } else {\n LOG.error(\"Hosts data invalid, this shouldn't happen... Verify DB for data and notify developer immediately. \");\n throw new UsageEventCollectionException(\"Hosts data invalid, please contact support.\");\n }\n }", "@Test\n\tvoid testCheckNull3() {\n\t\tassertTrue(DataChecker.checkNull((Object)null));\n\t}", "protected void parsePacket(byte[] data)\r\n\t\t\tthrows BeCommunicationDecodeException {\r\n\t\tsuper.parsePacket(data);\r\n\t\t\r\n\t\t// it's infoData is empty\r\n\t}", "public boolean isDataAvailable(){return true;}", "void onDataLoaded(int requestId, Object data);", "boolean isBadCommunication();", "@Test(expected = NullValueException.class)\n public void testFilterBadData() throws Exception {\n maxFilter.filter(null);\n }", "public IllegalConnectionCheck() {\n listener = new LinkedHashSet<CheckListener>();\n active = true;\n }", "private void notifyOnPingReceived(byte[] data) {\n synchronized (globalLock) {\n if (isRunning) {\n onPingReceived(data);\n }\n }\n }", "@Test\n\tvoid testCheckNulls3() {\n\t\tObject[] o = {null,null,null,null,null};\n\t\tassertTrue(DataChecker.checkNulls(o));\n\t}" ]
[ "0.5871683", "0.5857135", "0.5729066", "0.5714618", "0.57099617", "0.568011", "0.55752563", "0.5356236", "0.5338289", "0.5328565", "0.5291821", "0.5238558", "0.5157908", "0.5149172", "0.5135718", "0.5128851", "0.5119347", "0.5111161", "0.5108809", "0.51032495", "0.5090493", "0.5089264", "0.50528765", "0.50528765", "0.50528765", "0.50528765", "0.50528765", "0.50528765", "0.50528765", "0.50336075", "0.50295097", "0.50157005", "0.49945712", "0.4980967", "0.49793527", "0.49572816", "0.49509296", "0.49397624", "0.49396768", "0.4936635", "0.49161428", "0.48914096", "0.4886552", "0.4886552", "0.48858976", "0.48805615", "0.48793885", "0.48784113", "0.4878349", "0.4877802", "0.48695043", "0.48660114", "0.48553073", "0.48538506", "0.48498574", "0.4848635", "0.48485148", "0.48468354", "0.48425794", "0.48395833", "0.48381752", "0.48298353", "0.4829475", "0.4828148", "0.4826835", "0.48223683", "0.48212427", "0.48067358", "0.48054978", "0.48050737", "0.47997826", "0.4798775", "0.47885606", "0.47885138", "0.47783473", "0.47780633", "0.47761342", "0.476415", "0.4762687", "0.47517475", "0.4745797", "0.47449332", "0.47448534", "0.47425446", "0.47416455", "0.4740904", "0.47186807", "0.470784", "0.47031298", "0.4703094", "0.47017765", "0.46997443", "0.46935347", "0.46931714", "0.4692348", "0.46923319", "0.46913883", "0.46862274", "0.46836868", "0.46817285" ]
0.6108139
0
Tests that geoip tags are empty in spite of existing stub values in case of GEO IP setting value is set to FALSE.
@Test public void testGeoIpTaggingEventIsDisabled() { final SettingValue settings = context.mock(SettingValue.class); context.checking(new Expectations() { { allowing(settings).getBooleanValue(); will(returnValue(Boolean.FALSE)); } }); SettingsReader settingsReader = new CachedSettingsReaderImpl() { @Override public SettingValue getSettingValue(final String path) { if ("COMMERCE/SYSTEM/GEOIP/enable".equals(path)) { return settings; } return null; } }; listener = new GeoIpTagger(); listener.setSettingsReader(settingsReader); geoIpService = new GeoIpService() { public GeoIpLocation resolveIpAddress(final String ipAddress) { GeoIpLocation geoIpLocation = new GeoIpLocationImpl(); geoIpLocation.setZipCode(ZIP_OR_POST_CODE); geoIpLocation.setCountryCode(COUNTRY_CODE); geoIpLocation.setState(STATE_OR_PROVINCE); geoIpLocation.setConnectionType(CONNECTION_TYPE); geoIpLocation.setIpRoutingType(ROUTING_TYPE); geoIpLocation.setCity(CITY); geoIpLocation.setTopLevelDomain(FIRST_LEVEL_DOMAIN); geoIpLocation.setSecondLevelDomain(SECOND_LEVEL_DOMAIN); geoIpLocation.setGmtTimeZone(GMT_TIME_ZONE); geoIpLocation.setContinent(CONTINENT); return geoIpLocation; } public void setProvider(final GeoIpProvider provider) { // Does nothing. } }; listener.setGeoProviderService(geoIpService); context.checking(new Expectations() { { allowing(session).getCustomerTagSet(); will(returnValue(tagSet)); } }); listener.execute(session, requestFacade); assertNullTag(GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet); assertNullTag(GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet); assertNullTag(GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet); assertNullTag(GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet); assertNullTag(GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet); assertNullTag(GeoIpTagger.GEOIP_CITY, tagSet); assertNullTag(GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet); assertNullTag(GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet); assertNullTag(GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet); assertNullTag(GeoIpTagger.GEOIP_CONTINENT, tagSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testThatIfDataIsNullGeoIpTaggerIsNullSafe() {\n\n\t\tfinal SettingValue settings = context.mock(SettingValue.class);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(settings).getBooleanValue();\n\t\t\t\twill(returnValue(Boolean.TRUE));\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tif (\"COMMERCE/SYSTEM/GEOIP/enable\".equals(path)) {\n\t\t\t\t\treturn \tsettings;\n\t\t\t\t}\n\t\t\t\t return null;\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\n\t\tlistener.setSettingsReader(settingsReader);\n\t\t\n\t\tgeoIpService = new GeoIpService() {\n\t\t\tpublic GeoIpLocation resolveIpAddress(final String ipAddress) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tpublic void setProvider(final GeoIpProvider provider) {\n\t\t\t\t// Does nothing.\n\t\t\t}\n\n\t\t};\n\n\t\tlistener.setGeoProviderService(geoIpService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(session).getCustomerTagSet();\n\t\t\t\twill(returnValue(tagSet));\n\n\t\t\t}\n\t\t});\n\n\t\tlistener.execute(session, requestFacade);\n\n\t\tassertNullTag(GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CITY, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONTINENT, tagSet);\n\n\n\t}", "@Test\n\tpublic void testThatIfAllDataIsProvidedAllGeoIpTagsAreSet() {\n\n\t\tfinal SettingValue settings = context.mock(SettingValue.class);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(settings).getBooleanValue();\n\t\t\t\twill(returnValue(Boolean.TRUE));\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tif (\"COMMERCE/SYSTEM/GEOIP/enable\".equals(path)) {\n\t\t\t\t\treturn \tsettings;\n\t\t\t\t}\n\t\t\t\t return null;\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\n\t\t\n\t\tlistener.setSettingsReader(settingsReader);\n\t\t\n\t\tgeoIpService = new GeoIpService() {\n\t\t\t\n\t\t\tpublic GeoIpLocation resolveIpAddress(final String ipAddress) {\n\t\t\t\tGeoIpLocation geoIpLocation = new GeoIpLocationImpl();\n\t\t\t\tgeoIpLocation.setZipCode(ZIP_OR_POST_CODE);\n\t\t\t\tgeoIpLocation.setCountryCode(COUNTRY_CODE);\n\t\t\t\tgeoIpLocation.setState(STATE_OR_PROVINCE);\n\t\t\t\tgeoIpLocation.setConnectionType(CONNECTION_TYPE);\n\t\t\t\tgeoIpLocation.setIpRoutingType(ROUTING_TYPE);\n\t\t\t\tgeoIpLocation.setCity(CITY);\n\t\t\t\tgeoIpLocation.setTopLevelDomain(FIRST_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setSecondLevelDomain(SECOND_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setGmtTimeZone(GMT_TIME_ZONE);\n\t\t\t\tgeoIpLocation.setContinent(CONTINENT);\n\t\t\t\treturn geoIpLocation;\n\t\t\t}\n\t\t\t\n\t\t\tpublic void setProvider(final GeoIpProvider provider) {\n\t\t\t\t// Does nothing.\n\t\t\t}\n\n\t\t};\n\n\t\tlistener.setGeoProviderService(geoIpService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(session).getCustomerTagSet();\n\t\t\t\twill(returnValue(tagSet));\n\t\t\t}\n\t\t});\n\n\t\tlistener.execute(session, requestFacade);\n\n\t\tassertTag(ZIP_OR_POST_CODE, GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet);\n\t\tassertTag(COUNTRY_CODE, GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet);\n\t\tassertTag(STATE_OR_PROVINCE, GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet);\n\t\tassertTag(CONNECTION_TYPE, GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet);\n\t\tassertTag(ROUTING_TYPE, GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet);\n\t\tassertTag(CITY, GeoIpTagger.GEOIP_CITY, tagSet);\n\t\tassertTag(FIRST_LEVEL_DOMAIN, GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet);\n\t\tassertTag(SECOND_LEVEL_DOMAIN, GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet);\n\t\tassertTag(GMT_TIME_ZONE, GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet);\n\t\tassertTag(CONTINENT, GeoIpTagger.GEOIP_CONTINENT, tagSet);\n\n\t}", "@Test\n public void iPAddressIpIntelligenceTest() throws Exception {\n String value = null;\n IPIntelligenceResponse response = api.iPAddressIpIntelligence(value);\n\n // TODO: test validations\n }", "@Test\n public void iPAddressPostTest() throws Exception {\n String value = null;\n GeolocateResponse response = api.iPAddressPost(value);\n\n // TODO: test validations\n }", "@Test(groups = \"fast\")\n public void testGetAddressesEmpty() {\n assertEquals(new VertexResponseDataExtractor(new ApiSuccessResponseTransactionResponseTypeData()\n .customer(null))\n .getAddresses().size(), 0);\n\n // when no customer destination\n assertEquals(new VertexResponseDataExtractor(new ApiSuccessResponseTransactionResponseTypeData()\n .customer(new CustomerType().destination(null)))\n .getAddresses().size(), 0);\n\n // when no tax-registration physical address\n assertEquals(new VertexResponseDataExtractor(new ApiSuccessResponseTransactionResponseTypeData().customer(\n new CustomerType().taxRegistrations(Collections.singletonList(\n new TaxRegistrationType().physicalLocations(null))))).getAddresses().size(), 0);\n\n // when no tax-registrations\n assertEquals(new VertexResponseDataExtractor(new ApiSuccessResponseTransactionResponseTypeData().customer(\n new CustomerType().taxRegistrations(ImmutableList.of()))).getAddresses().size(), 0);\n\n }", "public boolean isSetStrIP() {\n return this.strIP != null;\n }", "@Test\n public void iPAddressIsThreatTest() throws Exception {\n String value = null;\n IPThreatResponse response = api.iPAddressIsThreat(value);\n\n // TODO: test validations\n }", "@Test\n public void testIgnorePublisherValues() throws Exception {\n BidRequest ignoredBidRequest = new BidRequest();\n ignoredBidRequest.getDevice().getGeo().lat = 100f;\n ignoredBidRequest.getDevice().getGeo().lon = 200f;\n ignoredBidRequest.getDevice().getGeo().type = GeoLocationParameterBuilder.LOCATION_SOURCE_GPS;\n\n GeoLocationParameterBuilder builder = new GeoLocationParameterBuilder();\n AdRequestInput adRequestInput = new AdRequestInput();\n adRequestInput.setBidRequest(ignoredBidRequest);\n builder.appendBuilderParameters(adRequestInput);\n\n assertEquals(\"{\\\"lat\\\":1,\\\"lon\\\":-1,\\\"type\\\":1}\", adRequestInput.getBidRequest().getDevice().getGeo().getJsonObject().toString());\n }", "public void testSetCity_EmptyString() {\r\n try {\r\n address.setCity(\" \");\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public void setIgnoreIpAddresses(Collection<IgnoreIpAddress> ignoreIpAddresses) {\r\n\t\tthis.ignoreIpAddresses = ignoreIpAddresses;\r\n\t}", "@Test\n public void iPAddressIsBotTest() throws Exception {\n String value = null;\n BotCheckResponse response = api.iPAddressIsBot(value);\n\n // TODO: test validations\n }", "boolean hasIp();", "boolean hasIp();", "boolean hasIp();", "boolean hasIp();", "public boolean hasIp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean isNotNullSupportsTipping() {\n return genClient.cacheValueIsNotNull(CacheKey.supportsTipping);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "private void clearInIp() {\n \n inIp_ = 0;\n }", "private void clearInIp() {\n \n inIp_ = 0;\n }", "public boolean hasIp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void testSetPostalCode_EmptyString() {\r\n try {\r\n address.setPostalCode(\" \");\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public void testSetCountry() {\r\n try {\r\n address.setCountry(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@Test\n public void geoSearchTest() throws ApiException {\n String searchText = null;\n String latitude = null;\n String longitude = null;\n String searchRadius = null;\n String searchRadiusUnit = null;\n String maxCandidates = null;\n String country = null;\n String matchOnAddressNumber = null;\n String autoDetectLocation = null;\n String ipAddress = null;\n String areaName1 = null;\n String areaName3 = null;\n String postCode = null;\n String returnAdminAreasOnly = null;\n String includeRangesDetails = null;\n String searchType = null;\n // GeosearchLocations response = api.geoSearch(searchText, latitude, longitude, searchRadius, searchRadiusUnit, maxCandidates, country, matchOnAddressNumber, autoDetectLocation, ipAddress, areaName1, areaName3, postCode, returnAdminAreasOnly, includeRangesDetails, searchType);\n\n // TODO: test validations\n }", "@Test\n public void iPAddressGeolocateStreetAddressTest() throws Exception {\n String value = null;\n GeolocateStreetAddressResponse response = api.iPAddressGeolocateStreetAddress(value);\n\n // TODO: test validations\n }", "@java.lang.Override\n public boolean hasPositiveRegionTagsCount() {\n return positiveRegionTagsCount_ != null;\n }", "@Test\n\tpublic void testGeoIpTaggingEventCatchesExceptions() {\n\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tthrow new IllegalStateException(\"Simulated geoip issue\");\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\n\t\tlistener.setSettingsReader(settingsReader);\n\n\t\ttry {\n\t\t\tlistener.execute(session, requestFacade);\n\t\t\t// We should get here without an exception\n\t\t} catch (IllegalStateException e) {\n\t\t\tfail(\"Exception should not be received by tagger's client\");\n\t\t}\n\n\t}", "boolean getPredefinedValuesNull();", "public void testSetCity_NullString() {\r\n try {\r\n address.setCity(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@Test\n public void generateLocalOnlyHotspotConfigIsValid() {\n WifiConfiguration config = WifiApConfigStore\n .generateLocalOnlyHotspotConfig(mContext, WifiConfiguration.AP_BAND_2GHZ);\n verifyDefaultLocalOnlyApConfig(config, TEST_DEFAULT_HOTSPOT_SSID,\n WifiConfiguration.AP_BAND_2GHZ);\n // The LOHS config should also have a specific network id set - check that as well.\n assertEquals(WifiConfiguration.LOCAL_ONLY_NETWORK_ID, config.networkId);\n\n // verify that the config passes the validateApWifiConfiguration check\n assertTrue(WifiApConfigStore.validateApWifiConfiguration(config));\n }", "public void testCheckOxyEmpty() {\n }", "public boolean isSetClient_ip() {\n return this.client_ip != null;\n }", "public boolean isSetUserIp() {\n return this.userIp != null;\n }", "public boolean isSetUserIp() {\n return this.userIp != null;\n }", "private void clearIp() {\n \n ip_ = 0;\n }", "private void clearIp() {\n \n ip_ = 0;\n }", "public void testHasNoneAddress(){\n assertFalse(endpointReference.hasNoneAddress());\n \n // EndpointReference with 2005/08 None address\n EndpointReference epr200508none = new EndpointReference(AddressingConstants.Final.WSA_NONE_URI);\n assertTrue(epr200508none.hasNoneAddress());\n }", "@java.lang.Override\n public boolean hasAddress() {\n return address_ != null;\n }", "@Test\n public void testGetGeneralConfigValueByName_shouldReturnEmptyString() {\n when(generalConfigRepository.getGeneralConfigByName(\"unknown\")).thenReturn(null);\n\n // run tests\n String value = generalConfigAccessorService.getGeneralConfigValueByName(\"unknown\");\n\n // do asserts\n Assert.assertNotNull(\"value was returned\", value);\n Assert.assertEquals(\"value is correct\", \"\", value);\n }", "private void clearHasTag() {\n \n hasTag_ = 0;\n }", "@Test\n public void testInitialValues() {\n ocean.placeAllShipsRandomly();\n assertFalse(\"Is game over\", ocean.isGameOver());\n assertEquals(0, ocean.getHitCount());\n assertEquals(0, ocean.getShipsSunk());\n assertEquals(0, ocean.getShotsFired());\n ocean.print();\n }", "@Test\n\tpublic void testNoopProject() {\n\t\tTag a = new Tag(A);\n\t\ttagService.create(a);\n\t\tTag b = tagService.create(new Tag(B));\n\t\tTag c = tagService.create(new Tag(C));\n\t\tIterable<Tag> values = tagService.find().matching(\n\t\t\t\tnew QueryBuilder<TagInformer>() {\n\n\t\t\t\t\tpublic QueryExpression createMatchingExpression(\n\t\t\t\t\t\t\tTagInformer object) {\n\t\t\t\t\t\treturn object.getText().differentFrom(null);\n\t\t\t\t\t}\n\t\t\t\t}).projectOn(new NoopProjectionBuilder<Tag, TagInformer>()).getAll();\n\t\tassertThat(values, IsCollectionContaining.hasItems(a, b, c));\n\t}", "public void testSetAddressType() {\r\n try {\r\n address.setAddressType(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public void setEmptyTags (String[] tags) {\n\t\temptyTags = tags;\n\t}", "@Test\n public void fillMapIdAndCoordinateWithAttributeNull() {\n //Given\n \n String pathnameCityPlanXml = \"./ressources/fichiersTestXml/petitPlanMissingAttribute.xml\";\n Reseau resNoTronconValid = parser.parseCityPlan(pathnameCityPlanXml);\n Map map = new Map();\n \n // When\n \n map.fillMapIdAndCoordinate(resNoTronconValid);\n \n // Then\n \n assertNotNull(map);\n assertNull(map.getMapId());\n assertNull(map.getCoordinates());\n \n }", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidValueOfEmptyString() {\n Ip4Address ipAddress;\n\n String fromString = \"\";\n ipAddress = Ip4Address.valueOf(fromString);\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkWiFiPPPoE() {\n\t\tboolean flag = oTest.checkWiFiPPPoE();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test\n public void fillMapIdAndCoordinateWithBaliseMissing() {\n //Given\n String pathnameXml = \"./ressources/fichiersTestXml/petitPlanMissingBalise.xml\";\n Reseau resAttributeNull = parser.parseCityPlan(pathnameXml);\n assertNotNull(resAttributeNull);\n assertNull(resAttributeNull.getNoeud());\n Map map = new Map();\n \n // When\n \n map.fillMapIdAndCoordinate(resAttributeNull);\n \n // Then\n \n assertNotNull(map);\n assertNull(map.getMapId());\n assertNull(map.getCoordinates());\n }", "private void defaultProfileAddressShouldNotBeFound(String filter) throws Exception {\n restProfileAddressMockMvc.perform(get(\"/api/profile-addresses?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n\n // Check, that the count call also returns 0\n restProfileAddressMockMvc.perform(get(\"/api/profile-addresses/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(content().string(\"0\"));\n }", "public void testSetState() {\r\n try {\r\n address.setState(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@Test\n\tpublic void testCheckForEmptyFields() {\n\t\t\n\t\t// Case 1: when all fields are present\n\t\tRequestData requestDataObj1 = new RequestData();\n\t\trequestDataObj1.setDomain(\"PBTV\");\n\t\trequestDataObj1.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj1.setSourceSystemName(\"CDI\");\n\t\tboolean expectedResponse1 = true;\n\t\tboolean response1 = tokenisationMainObj.checkForEmptyFields(requestDataObj1);\n\t\tassertEquals(response1, expectedResponse1);\n\n\t\t// Case 2: when any of them is empty\n\t\tRequestData requestDataObj2 = new RequestData();\n\t\trequestDataObj2.setDomain(\"PBTV\");\n\t\trequestDataObj2.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj2.setSourceSystemName(\"\");\n\t\tboolean expectedResponse2 = false;\n\t\tboolean response2 = tokenisationMainObj.checkForEmptyFields(requestDataObj2);\n\t\tassertEquals(response2, expectedResponse2);\n\t}", "List<Place> findUnboundLocationPlaceholders();", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "@Test\n public void generateLocalOnlyHotspotConfigIsValid5G() {\n WifiConfiguration config = WifiApConfigStore\n .generateLocalOnlyHotspotConfig(mContext, WifiConfiguration.AP_BAND_5GHZ);\n verifyDefaultLocalOnlyApConfig(config, TEST_DEFAULT_HOTSPOT_SSID,\n WifiConfiguration.AP_BAND_5GHZ);\n // The LOHS config should also have a specific network id set - check that as well.\n assertEquals(WifiConfiguration.LOCAL_ONLY_NETWORK_ID, config.networkId);\n\n // verify that the config passes the validateApWifiConfiguration check\n assertTrue(WifiApConfigStore.validateApWifiConfiguration(config));\n }", "public void clearSupportsTipping() {\n genClient.clear(CacheKey.supportsTipping);\n }", "@Test\n public void testIsEmpty() {\n System.out.println(\"isEmpty\");\n ParkingSpot spot = new AgvSpot(new Vector3f(0, 0, 0));\n boolean result = spot.isEmpty();\n assertEquals(true, result);\n // TODO review the generated test code and remove the default call to fail.\n }", "@Test\n public void testEmptyTemplate() {\n util.fillTemplate(\"test.template.empty\", \"no_arg\", null);\n }", "@Test\n public void testGetCoinTypeList() throws Exception {\n\n Map<Long,VirtualCoin> map;\n map = CacheHelper.getObj(CacheKey.VIRTUAL_COIN_ALL_KEY);\n Boolean flag = false;\n if (map == null){\n flag = true;\n }\n System.out.println(\"sdafds = \" + flag );\n }", "public void testSetPostalCode_NullString() {\r\n try {\r\n address.setPostalCode(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n boolean boolean0 = true;\n UsernamePasswordToken usernamePasswordToken0 = new UsernamePasswordToken(\")PXz-\", (String) null, true);\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte) (-82);\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte)0;\n byteArray0[3] = (byte)56;\n byteArray0[4] = (byte)78;\n byteArray0[5] = (byte)88;\n byteArray0[6] = (byte)0;\n byteArray0[7] = (byte)84;\n byteArray0[8] = (byte) (-1);\n try { \n MockInetAddress.getByAddress(\"\", byteArray0);\n fail(\"Expecting exception: UnknownHostException\");\n \n } catch(UnknownHostException e) {\n //\n // Not IPv4: [-82, 0, 0, 56, 78, 88, 0, 84, -1]\n //\n verifyException(\"org.evosuite.runtime.mock.java.net.MockInetAddress\", e);\n }\n }", "@Test\n public void cityNotNull()\n {\n assertNotNull(_city);\n }", "@Test\n public void getVirtualDatacenterEmptyListWhenHasVLANsWithoutIPs()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs);\n setup(vlan.getConfiguration(), vlan);\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(200, response.getStatusCode());\n }", "@Test\n public void getStreetNameNull()\n {\n Location loc = Mockito.mock(Location.class);\n String str = _city.getStreetName(loc, 1);\n assertNull(str);\n }", "public void testBogus() throws Exception\n {\n Random r = new Random(123);\n EthernetAddress a1 = EthernetAddress.constructMulticastAddress(r);\n assertNotNull(a1);\n assertEquals(a1, a1);\n assertTrue(a1.isMulticastAddress());\n EthernetAddress a2 = EthernetAddress.constructMulticastAddress(r);\n assertNotNull(a2);\n assertTrue(a2.isMulticastAddress());\n assertEquals(a2, a2);\n assertFalse(a1.equals(a2));\n\n // and then default, which uses SecureRandom\n EthernetAddress a3 = EthernetAddress.constructMulticastAddress();\n assertNotNull(a3);\n assertNotNull(a3.toString());\n }", "public void testGetWhoHasWon()\n {\n assertTrue(b1.getWhoHasWon() == Cell.EMPTY);\n }", "@Test\n\tpublic void testGetRegionMap() {\n\t\tthis.shippingRegionImpl.setRegionStr(REGION_STR);\n\t\tMap<String, Region> regionMap = this.shippingRegionImpl.getRegionMap();\n\t\tassertEquals(REGION_MAP_SIZE, regionMap.size());\n\t\tassertEquals(COUNTRY_CODE_CA, regionMap.get(COUNTRY_CODE_CA).getCountryCode());\n\t\tList<String> caRegionSubCountryList = regionMap.get(COUNTRY_CODE_CA).getSubCountryCodeList();\n\t\tassertTrue(caRegionSubCountryList.contains(SUB_COUNTRY_CODE_AB));\n\t\tassertTrue(caRegionSubCountryList.contains(SUB_COUNTRY_CODE_BC));\n\t\tassertEquals(COUNTRY_CODE_US, regionMap.get(COUNTRY_CODE_US).getCountryCode());\n\t\tassertEquals(0, regionMap.get(COUNTRY_CODE_US).getSubCountryCodeList().size());\n\t}", "public boolean hasAddress() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "@Test\r\n public void testBooleanFlagAndNoValue() throws Exception {\r\n PluginTestCase<I>[] inputs = getTestData().getFlagCases();\r\n for (PluginTestCase<I> testCase : inputs) {\r\n System.out.println(testCase.toString());\r\n BooleanWithNoArgument model = getPopulatedModel(testCase.input, BooleanWithNoArgument.class);\r\n assertThat(model.boolFlag, is(true));\r\n }\r\n\r\n }", "boolean hasGeoTargetConstant();", "public boolean getIgnoreInternetAddresses() {\n\t\treturn ignoreInternetAddresses.isChecked();\n\t}", "@java.lang.Override\n public boolean hasInputsWithGeoCount() {\n return inputsWithGeoCount_ != null;\n }", "boolean hasHasAddress();", "@Test\n\tpublic void displayAddressTestLabel() {\n\t\tassertNotNull(\"Address Label is not null\", instance.displayAddressLabel());\n\t}", "@Override\n public boolean isSet() {\n return loci != null;\n }", "public Builder clearIp() {\n bitField0_ = (bitField0_ & ~0x00000100);\n ip_ = 0;\n onChanged();\n return this;\n }", "boolean hasAddress();", "boolean hasAddress();", "@Override\n public boolean isSet() {\n return locusLocus != null;\n }", "@Test\n public void testEmptyString() {\n assertEquals(\"Should return false\", false, val.validateTransportationModes(\"\"));\n }", "public boolean hasAddress() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean known() {\n\t\t\treturn !varAddress && !varMask;\n\t\t}", "@Test(expected = NullPointerException.class)\n public void testInvalidValueOfNullArrayIPv4() {\n Ip4Address ipAddress;\n byte[] value;\n\n value = null;\n ipAddress = Ip4Address.valueOf(value);\n }", "public Collection<IgnoreIpAddress> getIgnoreIpAddresses() {\r\n\t\treturn ignoreIpAddresses;\r\n\t}", "@Test\n public void getOutsideCityInvalid()\n {\n String str = _city.getOutsideCity(\"21 jump st\");\n assertNull(str);\n }", "@Test\n\tpublic void testFetchMappedValuesForJunkData() {\n\t\tString input = \".#!@#^\";\n\t\tList<String> actualOutput = GeneralUtility.fetchMappedValues(input);\n\t\tAssert.assertArrayEquals(Collections.emptyList().toArray(), actualOutput.toArray());\n\t}", "boolean hasUnknown();", "@Test\n public void testAddNullAttribute() {\n Tag tag = new BaseTag(\"testtag\");\n String attributeName = \"testAttr\";\n tag.addAttribute(attributeName, null);\n assertNull(\"Wrong attribute value returned\", tag.getAttribute(attributeName));\n assertNotNull(\"No attribute map\", tag.getAttributes());\n assertEquals(\"Wrong attribute map size\", 0, tag.getAttributes().size());\n }", "@Test\n public void testGetDefaultValues()\n { \n assertThat(m_SUT.getDefaultValues(), is(m_DefaultValues));\n }", "@Override\n\t\tpublic String buildBasicIp() {\n\t\t\treturn buildIp();\n\t\t}", "private boolean allGPSDataExists() {\n for(int i = 0; i < 6; i++) {\n if(databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE).equals(\"-1\"))\n return false;\n }\n return true;\n }", "@Test\n public void shouldGetHostAddress() {\n assertEquals(NE_IP, session.getAddress().getHostAddress());\n }", "public boolean isSetAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ADDRESS$2) != null;\n }\n }", "private void populateEmptyFields(DublinCoreMetadataCollection dublinCoreMetadata, Set<String> emptyFields) {\n for (String field : emptyFields) {\n try {\n dublinCoreMetadata.addField(dublinCoreProperties.get(field), \"\", getListProvidersService());\n } catch (Exception e) {\n logger.error(\"Skipping metadata field '{}' because of error: {}\", field, ExceptionUtils.getStackTrace(e));\n }\n }\n }", "@Override\r\n\tpublic IpAddressSupport getIpAddressSupport() {\n\t\treturn null;\r\n\t}", "@Test\n public void testOpenNetworkConfigInValidateApWifiConfigurationCheck() {\n WifiConfiguration config = new WifiConfiguration();\n config.SSID = TEST_DEFAULT_HOTSPOT_SSID;\n\n config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);\n config.preSharedKey = TEST_DEFAULT_HOTSPOT_PSK;\n assertFalse(WifiApConfigStore.validateApWifiConfiguration(config));\n\n // open networks should not have a password set\n config.preSharedKey = null;\n assertTrue(WifiApConfigStore.validateApWifiConfiguration(config));\n config.preSharedKey = \"\";\n assertTrue(WifiApConfigStore.validateApWifiConfiguration(config));\n }" ]
[ "0.7413378", "0.69397706", "0.56026393", "0.55132174", "0.5485802", "0.546599", "0.5382692", "0.53818244", "0.53199023", "0.5298842", "0.5295111", "0.52597785", "0.52597785", "0.52597785", "0.52597785", "0.52539563", "0.52344495", "0.5230521", "0.5229304", "0.521559", "0.5211247", "0.51950896", "0.5189561", "0.5188361", "0.5188361", "0.5186152", "0.5181068", "0.51562625", "0.5154325", "0.5146731", "0.51180285", "0.5084089", "0.5074779", "0.5072202", "0.50701594", "0.5064663", "0.50531864", "0.5036588", "0.5036588", "0.5035342", "0.5035342", "0.5031459", "0.5030746", "0.50299037", "0.5026435", "0.50226086", "0.50144166", "0.49994215", "0.49865094", "0.4980776", "0.49782783", "0.49542624", "0.49529076", "0.49393937", "0.49299538", "0.49293077", "0.4921431", "0.49212137", "0.49103734", "0.48990962", "0.4896152", "0.48935366", "0.48932794", "0.48848534", "0.48747212", "0.48685554", "0.48651323", "0.48640123", "0.48595333", "0.48555073", "0.48547736", "0.4852197", "0.48493117", "0.48473567", "0.48436946", "0.48280767", "0.48167872", "0.48092347", "0.48051187", "0.47790644", "0.47755873", "0.47755873", "0.47693196", "0.476825", "0.47584864", "0.47559416", "0.47500235", "0.4747581", "0.47467196", "0.47440785", "0.4734262", "0.47164652", "0.47102123", "0.47077835", "0.47067395", "0.46980694", "0.46930516", "0.4692982", "0.46891198", "0.46850562" ]
0.6824084
2
Test that the tagger doesn't allow exceptions with the geoip provider to leak out to the client.
@Test public void testGeoIpTaggingEventCatchesExceptions() { SettingsReader settingsReader = new CachedSettingsReaderImpl() { @Override public SettingValue getSettingValue(final String path) { throw new IllegalStateException("Simulated geoip issue"); } }; listener = new GeoIpTagger(); listener.setSettingsReader(settingsReader); try { listener.execute(session, requestFacade); // We should get here without an exception } catch (IllegalStateException e) { fail("Exception should not be received by tagger's client"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testGeoIpTaggingEventIsDisabled() {\n\n\t\tfinal SettingValue settings = context.mock(SettingValue.class);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(settings).getBooleanValue();\n\t\t\t\twill(returnValue(Boolean.FALSE));\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tif (\"COMMERCE/SYSTEM/GEOIP/enable\".equals(path)) {\n\t\t\t\t\treturn \tsettings;\n\t\t\t\t}\n\t\t\t\t return null;\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\t\t\n\t\tlistener.setSettingsReader(settingsReader);\n\t\t\n\t\tgeoIpService = new GeoIpService() {\n\t\t\tpublic GeoIpLocation resolveIpAddress(final String ipAddress) {\n\t\t\t\tGeoIpLocation geoIpLocation = new GeoIpLocationImpl();\n\t\t\t\tgeoIpLocation.setZipCode(ZIP_OR_POST_CODE);\n\t\t\t\tgeoIpLocation.setCountryCode(COUNTRY_CODE);\n\t\t\t\tgeoIpLocation.setState(STATE_OR_PROVINCE);\n\t\t\t\tgeoIpLocation.setConnectionType(CONNECTION_TYPE);\n\t\t\t\tgeoIpLocation.setIpRoutingType(ROUTING_TYPE);\n\t\t\t\tgeoIpLocation.setCity(CITY);\n\t\t\t\tgeoIpLocation.setTopLevelDomain(FIRST_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setSecondLevelDomain(SECOND_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setGmtTimeZone(GMT_TIME_ZONE);\n\t\t\t\tgeoIpLocation.setContinent(CONTINENT);\n\t\t\t\treturn geoIpLocation;\n\t\t\t}\n\n\t\t\tpublic void setProvider(final GeoIpProvider provider) {\n\t\t\t\t// Does nothing.\n\t\t\t}\n\n\t\t};\n\n\t\tlistener.setGeoProviderService(geoIpService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(session).getCustomerTagSet();\n\t\t\t\twill(returnValue(tagSet));\n\t\t\t}\n\t\t});\n\n\t\tlistener.execute(session, requestFacade);\n\n\t\tassertNullTag(GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CITY, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONTINENT, tagSet);\n\n\n\t}", "@Test\n\tpublic void testThatIfDataIsNullGeoIpTaggerIsNullSafe() {\n\n\t\tfinal SettingValue settings = context.mock(SettingValue.class);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(settings).getBooleanValue();\n\t\t\t\twill(returnValue(Boolean.TRUE));\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tif (\"COMMERCE/SYSTEM/GEOIP/enable\".equals(path)) {\n\t\t\t\t\treturn \tsettings;\n\t\t\t\t}\n\t\t\t\t return null;\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\n\t\tlistener.setSettingsReader(settingsReader);\n\t\t\n\t\tgeoIpService = new GeoIpService() {\n\t\t\tpublic GeoIpLocation resolveIpAddress(final String ipAddress) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tpublic void setProvider(final GeoIpProvider provider) {\n\t\t\t\t// Does nothing.\n\t\t\t}\n\n\t\t};\n\n\t\tlistener.setGeoProviderService(geoIpService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(session).getCustomerTagSet();\n\t\t\t\twill(returnValue(tagSet));\n\n\t\t\t}\n\t\t});\n\n\t\tlistener.execute(session, requestFacade);\n\n\t\tassertNullTag(GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CITY, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONTINENT, tagSet);\n\n\n\t}", "@Test\n\tpublic void testThatIfAllDataIsProvidedAllGeoIpTagsAreSet() {\n\n\t\tfinal SettingValue settings = context.mock(SettingValue.class);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(settings).getBooleanValue();\n\t\t\t\twill(returnValue(Boolean.TRUE));\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tif (\"COMMERCE/SYSTEM/GEOIP/enable\".equals(path)) {\n\t\t\t\t\treturn \tsettings;\n\t\t\t\t}\n\t\t\t\t return null;\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\n\t\t\n\t\tlistener.setSettingsReader(settingsReader);\n\t\t\n\t\tgeoIpService = new GeoIpService() {\n\t\t\t\n\t\t\tpublic GeoIpLocation resolveIpAddress(final String ipAddress) {\n\t\t\t\tGeoIpLocation geoIpLocation = new GeoIpLocationImpl();\n\t\t\t\tgeoIpLocation.setZipCode(ZIP_OR_POST_CODE);\n\t\t\t\tgeoIpLocation.setCountryCode(COUNTRY_CODE);\n\t\t\t\tgeoIpLocation.setState(STATE_OR_PROVINCE);\n\t\t\t\tgeoIpLocation.setConnectionType(CONNECTION_TYPE);\n\t\t\t\tgeoIpLocation.setIpRoutingType(ROUTING_TYPE);\n\t\t\t\tgeoIpLocation.setCity(CITY);\n\t\t\t\tgeoIpLocation.setTopLevelDomain(FIRST_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setSecondLevelDomain(SECOND_LEVEL_DOMAIN);\n\t\t\t\tgeoIpLocation.setGmtTimeZone(GMT_TIME_ZONE);\n\t\t\t\tgeoIpLocation.setContinent(CONTINENT);\n\t\t\t\treturn geoIpLocation;\n\t\t\t}\n\t\t\t\n\t\t\tpublic void setProvider(final GeoIpProvider provider) {\n\t\t\t\t// Does nothing.\n\t\t\t}\n\n\t\t};\n\n\t\tlistener.setGeoProviderService(geoIpService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(session).getCustomerTagSet();\n\t\t\t\twill(returnValue(tagSet));\n\t\t\t}\n\t\t});\n\n\t\tlistener.execute(session, requestFacade);\n\n\t\tassertTag(ZIP_OR_POST_CODE, GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet);\n\t\tassertTag(COUNTRY_CODE, GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet);\n\t\tassertTag(STATE_OR_PROVINCE, GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet);\n\t\tassertTag(CONNECTION_TYPE, GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet);\n\t\tassertTag(ROUTING_TYPE, GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet);\n\t\tassertTag(CITY, GeoIpTagger.GEOIP_CITY, tagSet);\n\t\tassertTag(FIRST_LEVEL_DOMAIN, GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet);\n\t\tassertTag(SECOND_LEVEL_DOMAIN, GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet);\n\t\tassertTag(GMT_TIME_ZONE, GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet);\n\t\tassertTag(CONTINENT, GeoIpTagger.GEOIP_CONTINENT, tagSet);\n\n\t}", "@Test\n public void iPAddressPostTest() throws Exception {\n String value = null;\n GeolocateResponse response = api.iPAddressPost(value);\n\n // TODO: test validations\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n boolean boolean0 = true;\n UsernamePasswordToken usernamePasswordToken0 = new UsernamePasswordToken(\")PXz-\", (String) null, true);\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte) (-82);\n byteArray0[1] = (byte)0;\n byteArray0[2] = (byte)0;\n byteArray0[3] = (byte)56;\n byteArray0[4] = (byte)78;\n byteArray0[5] = (byte)88;\n byteArray0[6] = (byte)0;\n byteArray0[7] = (byte)84;\n byteArray0[8] = (byte) (-1);\n try { \n MockInetAddress.getByAddress(\"\", byteArray0);\n fail(\"Expecting exception: UnknownHostException\");\n \n } catch(UnknownHostException e) {\n //\n // Not IPv4: [-82, 0, 0, 56, 78, 88, 0, 84, -1]\n //\n verifyException(\"org.evosuite.runtime.mock.java.net.MockInetAddress\", e);\n }\n }", "@Test\n public void testAddressExhaustion() throws Exception {\n mRepo.updateParams(new IpPrefix(TEST_SERVER_ADDR, 28), TEST_EXCL_SET, TEST_LEASE_TIME_MS,\n null /* clientAddr */);\n\n // /28 should have 16 addresses, 14 w/o the first/last, 11 w/o excluded addresses\n requestAddresses((byte) 11);\n verify(mCallbacks, times(11)).onLeasesChanged(any());\n\n try {\n mRepo.getOffer(null, TEST_MAC_2,\n IPV4_ADDR_ANY /* relayAddr */, INETADDR_UNSPEC /* reqAddr */, HOSTNAME_NONE);\n fail(\"Should be out of addresses\");\n } catch (DhcpLeaseRepository.OutOfAddressesException e) {\n // Expected\n }\n verifyNoMoreInteractions(mCallbacks);\n }", "@Test\n public void iPAddressIpIntelligenceTest() throws Exception {\n String value = null;\n IPIntelligenceResponse response = api.iPAddressIpIntelligence(value);\n\n // TODO: test validations\n }", "@Test\n public void iPAddressIsThreatTest() throws Exception {\n String value = null;\n IPThreatResponse response = api.iPAddressIsThreat(value);\n\n // TODO: test validations\n }", "public InvalidIpProxyException() {\n super();\n }", "@Test\n public void testIgnorePublisherValues() throws Exception {\n BidRequest ignoredBidRequest = new BidRequest();\n ignoredBidRequest.getDevice().getGeo().lat = 100f;\n ignoredBidRequest.getDevice().getGeo().lon = 200f;\n ignoredBidRequest.getDevice().getGeo().type = GeoLocationParameterBuilder.LOCATION_SOURCE_GPS;\n\n GeoLocationParameterBuilder builder = new GeoLocationParameterBuilder();\n AdRequestInput adRequestInput = new AdRequestInput();\n adRequestInput.setBidRequest(ignoredBidRequest);\n builder.appendBuilderParameters(adRequestInput);\n\n assertEquals(\"{\\\"lat\\\":1,\\\"lon\\\":-1,\\\"type\\\":1}\", adRequestInput.getBidRequest().getDevice().getGeo().getJsonObject().toString());\n }", "@Test(expected = ItemNotFoundException.class)\n public void testAddPeerUknownIp() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n IpAddress.valueOf(NEW_PEER2_IP),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }", "@Test(expected = CTPException.class)\n public void getInvalidAddressCaseByUPRNOnly() throws Exception {\n when(dataRepo.readNonHILatestCollectionCaseByUprn(Long.toString(UPRN.getValue()), true))\n .thenThrow(new CTPException(null));\n caseSvc.getLatestValidNonHICaseByUPRN(UPRN);\n }", "@Test\n public void getLocationById() throws Exception {\n }", "@Test\n @DisplayName(\"Test wrong location proof response\")\n public void proofResponseBadLocation() {\n Record record = new Record(\"client2\", 0, 3, 3);\n InvalidRecordException e = Assertions.assertThrows(InvalidRecordException.class, () -> {\n user1.getListeningService().proveRecord(record);\n });\n Assertions.assertEquals(InvalidRecordException.INVALID_POSITION, e.getMessage());\n }", "public void testNonExistantSourceLocator() throws Exception {\n\n // check resolvement for a sourceLocator\n // that is not part of the map\n super.checkNonExistantSourceLocator();\n \n // occurrence should be null\n assertNull(tag.getOccurrence());\n\n }", "@Test\n public void testHandleInspectAddressesCorrupted() {\n final List<Long> addresses = LongStream.rangeClosed(1L, 16L).boxed().collect(Collectors.toList());\n final long badAddress = 11L;\n RequestMsg request = getRequestMsg(\n getBasicHeader(ClusterIdCheck.CHECK, EpochCheck.CHECK),\n getInspectAddressesRequestMsg(addresses)\n );\n\n ArgumentCaptor<ResponseMsg> responseCaptor = ArgumentCaptor.forClass(ResponseMsg.class);\n when(mStreamLog.contains(badAddress)).thenThrow(new DataCorruptionException());\n logUnitServer.handleMessage(request, mChannelHandlerContext, mServerRouter);\n\n // Assert that the payload has a DATA_CORRUPTION error containing the bad\n // address and that the base header fields have remained the same.\n verify(mServerRouter).sendResponse(responseCaptor.capture(), eq(mChannelHandlerContext));\n ResponseMsg response = responseCaptor.getValue();\n assertTrue(compareBaseHeaderFields(request.getHeader(), response.getHeader()));\n assertTrue(response.getPayload().hasServerError());\n assertTrue(response.getPayload().getServerError().hasDataCorruptionError());\n assertEquals(badAddress, response.getPayload().getServerError().getDataCorruptionError().getAddress());\n }", "@Test\n public void iPAddressGeolocateStreetAddressTest() throws Exception {\n String value = null;\n GeolocateStreetAddressResponse response = api.iPAddressGeolocateStreetAddress(value);\n\n // TODO: test validations\n }", "public LocationNotAvailableException() {\r\n }", "@Test\n\t\tpublic void testZipCodeNotFound() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getErrorResultString();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tboolean flag=weatherService.checkForErrors(responseEntity);\n\t\t\t\tassertTrue(flag);\n\t\t\t\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Override\n protected final void postSetUpWANTestBase() throws Exception {\n IgnoredException.addIgnoredException(\"failed accepting client connection\");\n }", "@Test\n public void testOldMemberCantJoinRolledLocators() {\n VM oldServer = Host.getHost(0).getVM(sourceConfiguration, 1);\n Properties props = getSystemProperties(); // uses the DUnit locator\n try {\n oldServer.invoke(invokeCreateCache(props));\n } catch (RMIException e) {\n Throwable cause = e.getCause();\n if ((cause instanceof AssertionError)) {\n cause = cause.getCause();\n if (cause != null && cause.getMessage() != null && !cause.getMessage().startsWith(\n \"Rejecting the attempt of a member using an older version of the product to join the distributed system\")) {\n throw e;\n }\n }\n }\n }", "@Test(timeout = 4000)\n public void test242() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"XvoU\");\n // Undeclared exception!\n try { \n xmlEntityRef0.span();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void markIpAddressCreate() throws JNCException {\n markLeafCreate(\"ipAddress\");\n }", "@Test\n public void testBadGeo() {\n Result fakeResult = new Result(\"BEGIN:VCALENDAR\\r\\nBEGIN:VEVENT\\r\\n\" +\n \"GEO:-12.345\\r\\n\" +\n \"END:VEVENT\\r\\nEND:VCALENDAR\", null, null, BarcodeFormat.QR_CODE);\n ParsedResult result = ResultParser.parseResult(fakeResult);\n assertSame(ParsedResultType.URI, result.getType());\n }", "public void markIpAddressReplace() throws JNCException {\n markLeafReplace(\"ipAddress\");\n }", "public GeocodingException() {\n\t}", "@Test\r\n\t@Ignore\r\n\tpublic void shouldReturnLisOfBrokenByRegion() {\n\t}", "public void testRetrieveAddresses() throws Exception {\r\n try {\r\n this.dao.retrieveAddresses(new long[]{-1});\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@Test\n public void publishWithBadHostShouldNotRethrowExceptions() {\n StandardChatService service = new StandardChatService(\"token\", \"room\", \"from\");\n service.setHost(\"hostvaluethatwillcausepublishtofail\");\n service.publish(\"message\");\n }", "@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}", "Endpoint<R> tryInvalidateOneIdleEndpoint(String ipAddress);", "@Test\n\tpublic void testGetDriverExcludeAllocations(){ \n\t\tassertNotNull(driverService.getDriverExcludeAllocations(239537L)); \n\t}", "@Override\n public void cannotRetrieveRemoteMapDetails() {\n // non implementato\n }", "@Test\n public void AuthenticationShouldFailWithValidIPUser() throws Exception {\n kidozen = new KZApplication(AppSettings.KZ_TENANT, AppSettings.KZ_APP, AppSettings.KZ_KEY, false);\n final CountDownLatch alcd = new CountDownLatch(1);\n kidozen.Authenticate(AppSettings.KZ_USER, AppSettings.KZ_PASS, \"ups!\", new ServiceEventListener() {\n @Override\n public void onFinish(ServiceEvent e) {\n alcd.countDown();\n assertThat(e.StatusCode, equalTo(HttpStatus.SC_UNAUTHORIZED));\n assertTrue(e.Body.toLowerCase().contains(\"unauthorized\".toLowerCase()));\n }\n });\n assertEquals(false, kidozen.UserIsAuthenticated);\n alcd.await(TEST_TIMEOUT_IN_MINUTES, TimeUnit.MINUTES);\n }", "@Test\n void errorSpan() {\n String method = \"GET\";\n URI uri = resolveAddress(\"/error\");\n\n testing.runWithSpan(\n \"parent\",\n () -> {\n try {\n doRequest(method, uri);\n } catch (Throwable ignored) {\n }\n });\n\n testing.waitAndAssertTraces(\n trace -> {\n trace.hasSpansSatisfyingExactly(\n span -> span.hasName(\"parent\").hasKind(SpanKind.INTERNAL).hasNoParent(),\n span -> assertClientSpan(span, uri, method, 500, null).hasParent(trace.getSpan(0)),\n span -> assertServerSpan(span).hasParent(trace.getSpan(1)));\n });\n }", "public PoolNotFoundException() {\n super();\n }", "public void testRemoveAddresses() throws Exception {\r\n try {\r\n this.dao.removeAddresses(new long[]{-1}, false);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "private MockarooPingHelper(){}", "public static Address createInvalidAddressFixture() {\n Map<String, Object> objectMap = new HashMap<String, Object>();\n objectMap.put(\"name\", \"Undefault New Wu\");\n objectMap.put(\"street1\", \"Clayton St.\");\n objectMap.put(\"street_no\", \"215215\");\n objectMap.put(\"street2\", null);\n objectMap.put(\"city\", \"San Francisco\");\n objectMap.put(\"state\", \"CA\");\n objectMap.put(\"zip\", \"94117\");\n objectMap.put(\"country\", \"US\");\n objectMap.put(\"phone\", \"+1 555 341 9393\");\n objectMap.put(\"email\", \"[email protected]\");\n objectMap.put(\"is_residential\", false);\n objectMap.put(\"metadata\", \"Customer ID 123456\");\n objectMap.put(\"validate\", true);\n\n try {\n return Address.create(objectMap);\n } catch (ShippoException e) {\n e.printStackTrace();\n }\n return null;\n }", "abstract void addressValidity();", "@Test\n public void obtainClosedThrows() {\n try (final AbstractApiProviderTest.ApiProvider provider = new AbstractApiProviderTest.ApiProvider()) {\n try (final AbstractApiProvider.ApiWrapper<ZonkyApi> w = provider.getApi()) {\n Assertions.assertThat(w.isClosed()).isFalse();\n provider.close();\n Assertions.assertThat(w.isClosed()).isTrue();\n }\n Assertions.assertThatThrownBy(provider::getApi).isInstanceOf(IllegalStateException.class);\n }\n }", "public InvalidIpProxyException(String message, Throwable cause) {\n super(message, cause);\n }", "public LocationNotAvailableException(Throwable ex) {\r\n super(ex);\r\n }", "@Test\n public void test3() throws Exception {\n GeoCoder g = new GeoCoder();\n String zip = \"12028\";\n String state = \"New York\";\n String city = \"Buskirk\";\n String address = \"\";\n g = g.geoCoding(address, city, state, zip);\n }", "private void verifyExistIp(String ip){\n List ips = logRepositoy.findByIp(ip);\n if(ips.isEmpty()){\n throw new ResourceNotFoundException(\"Ip address not found\");\n }\n }", "public InvalidIpProxyException(String message) {\n super(message);\n }", "@Test\n public void testMarkLeaseDeclined_UsedIfOutOfAddresses() throws Exception {\n mRepo.updateParams(new IpPrefix(TEST_SERVER_ADDR, 28), TEST_EXCL_SET, TEST_LEASE_TIME_MS,\n null /* clientAddr */);\n\n mRepo.markLeaseDeclined(TEST_INETADDR_1);\n mRepo.markLeaseDeclined(TEST_INETADDR_2);\n\n // /28 should have 16 addresses, 14 w/o the first/last, 11 w/o excluded addresses\n requestAddresses((byte) 9);\n\n // Last 2 addresses: addresses marked declined should be used\n final DhcpLease firstLease = mRepo.getOffer(CLIENTID_UNSPEC, TEST_MAC_1,\n IPV4_ADDR_ANY /* relayAddr */, INETADDR_UNSPEC /* reqAddr */, TEST_HOSTNAME_1);\n requestLeaseSelecting(TEST_MAC_1, firstLease.getNetAddr());\n\n final DhcpLease secondLease = mRepo.getOffer(CLIENTID_UNSPEC, TEST_MAC_2,\n IPV4_ADDR_ANY /* relayAddr */, INETADDR_UNSPEC /* reqAddr */, TEST_HOSTNAME_2);\n requestLeaseSelecting(TEST_MAC_2, secondLease.getNetAddr());\n\n // Now out of addresses\n try {\n mRepo.getOffer(CLIENTID_UNSPEC, TEST_MAC_3, IPV4_ADDR_ANY /* relayAddr */,\n INETADDR_UNSPEC /* reqAddr */, HOSTNAME_NONE);\n fail(\"Repository should be out of addresses and throw\");\n } catch (DhcpLeaseRepository.OutOfAddressesException e) { /* expected */ }\n\n assertEquals(TEST_INETADDR_1, firstLease.getNetAddr());\n assertEquals(TEST_HOSTNAME_1, firstLease.getHostname());\n assertEquals(TEST_INETADDR_2, secondLease.getNetAddr());\n assertEquals(TEST_HOSTNAME_2, secondLease.getHostname());\n }", "@Test\n public void testGReadAddCityWrongMethodError() throws Exception {\n initializeCreateCity();\n final String city = doTestGetRequest(\"/ws/dal/City/\" + cityId, null, 200);\n String newCity = city.replaceAll(\"</name>\", (System.currentTimeMillis() + \"\").substring(6)\n + \"</name>\");\n newCity = newCity.replaceAll(\"id=\\\"\", \"id=\\\"test\");\n final int index = newCity.indexOf(\"<id>\");\n newCity = newCity.substring(0, index) + \"<id>test\" + newCity.substring(index + \"<id>\".length());\n try {\n doContentRequest(\"/ws/dal/City\", newCity, 500, \"\", \"PUT\");\n } catch (final Exception e) {\n assertTrue(e.getMessage().indexOf(\"500\") != -1);\n }\n }", "public interface ProxyTest {\n\n\tpublic void ping() throws ApplicationException;\n}", "void onConnectToNetByIPFailure();", "@Test(timeout = 4000)\n public void test0() throws Throwable {\n INVOKESPECIAL iNVOKESPECIAL0 = new INVOKESPECIAL();\n ConstantPoolGen constantPoolGen0 = null;\n // Undeclared exception!\n try { \n iNVOKESPECIAL0.getLoadClassType(constantPoolGen0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void testSearchAddresses() throws Exception {\r\n try {\r\n this.dao.searchAddresses(null);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@Test\n public void testIncorrectPostalCode(){\n UserRegisterKYC tooLong = new UserRegisterKYC(\"hello\",validId3,\"30/03/1995\",\"7385483\");\n int requestResponse = tooLong.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC tooShort = new UserRegisterKYC(\"hello\", validId3, \"30/03/1995\", \"48532\");\n requestResponse = tooShort.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC startWith74 = new UserRegisterKYC(\"hello\", validId3, \"30/03/1995\", \"746532\");\n requestResponse = startWith74.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC startWithMoreThan82 = new UserRegisterKYC(\"hello\", validId3, \"30/03/1995\", \"967532\");\n requestResponse = startWithMoreThan82.sendRegisterRequest();\n assertEquals(400,requestResponse);\n }", "void shouldThrowForBadServerValue() {\n }", "public void testAddAddress2() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationUser(null);\r\n this.dao.addAddress(address, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }", "public static void requestLocationUpdate() {\n/* 37 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void onFailure(Call<BeaconResponse> call, Throwable t) {\n }", "@Test\n public void testAddTravel_InvalidCountryCodeExceptionEndpoint() throws Exception {\n dto.getEndpoint().setCountry(\"DTO\");\n \n mockMVC.perform(post(\"/user/1/travel\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(dto))\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isInternalServerError());\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verifyNoMoreInteractions(databaseMock);\n }", "@Test(timeout = 4000)\n public void test254() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"x0\");\n // Undeclared exception!\n try { \n xmlEntityRef0.big((Object) \"x0\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void remoteExceptionInVerify() {\n\tremoteExceptionInVerify = true;\n }", "@Test\n public void testFailureParUsedByOtherClient() throws Exception {\n // create client dynamically\n String victimClientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.FALSE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation victimOidcCRep = getClientDynamically(victimClientId);\n String victimClientSecret = victimOidcCRep.getClientSecret();\n assertEquals(Boolean.FALSE, victimOidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(victimOidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n assertEquals(OIDCLoginProtocol.CLIENT_SECRET_BASIC, victimOidcCRep.getTokenEndpointAuthMethod());\n\n authManageClients();\n\n String attackerClientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n clientRep.setRedirectUris(new ArrayList<String>(Arrays.asList(CLIENT_REDIRECT_URI)));\n });\n OIDCClientRepresentation attackerOidcCRep = getClientDynamically(attackerClientId);\n assertEquals(Boolean.TRUE, attackerOidcCRep.getRequirePushedAuthorizationRequests());\n assertTrue(attackerOidcCRep.getRedirectUris().contains(CLIENT_REDIRECT_URI));\n assertEquals(OIDCLoginProtocol.CLIENT_SECRET_BASIC, attackerOidcCRep.getTokenEndpointAuthMethod());\n\n // Pushed Authorization Request\n oauth.clientId(victimClientId);\n oauth.redirectUri(CLIENT_REDIRECT_URI);\n ParResponse pResp = oauth.doPushedAuthorizationRequest(victimClientId, victimClientSecret);\n assertEquals(201, pResp.getStatusCode());\n String requestUri = pResp.getRequestUri();\n\n // Authorization Request with request_uri of PAR\n // remove parameters as query strings of uri\n // used by other client\n oauth.clientId(attackerClientId);\n oauth.redirectUri(null);\n oauth.scope(null);\n oauth.responseType(null);\n oauth.requestUri(requestUri);\n String state = oauth.stateParamRandom().getState();\n oauth.stateParamHardcoded(state);\n UriBuilder b = UriBuilder.fromUri(oauth.getLoginFormUrl());\n driver.navigate().to(b.build().toURL());\n OAuthClient.AuthorizationEndpointResponse errorResponse = new OAuthClient.AuthorizationEndpointResponse(oauth);\n Assert.assertFalse(errorResponse.isRedirected());\n }", "@Test\n public void test2() throws Exception {\n GeoCoder g = new GeoCoder();\n String country = \"Saint Clair\";\n String zip = \"35004\";\n String state = \"Alabama\";\n String city = \"Moody\";\n String address = \"\";\n g.geoCoding(address, city, state, zip);\n }", "public void markIpAddressDelete() throws JNCException {\n markLeafDelete(\"ipAddress\");\n }", "public void validateGarageLocationError (String strRegion)\r\n\t{\r\n\r\n\t\tif (orPolicyVehicleHub.pnlScreenError.isDisplayed () == true)\r\n\t\t{\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t\tWebDriverWait load = new WebDriverWait (driver, GlobalWaitTime.getIntWaitTime ());\r\n\t\t\t\tload.until (ExpectedConditions.elementToBeClickable (orPolicyVehicleHub.lnkCloseError));\r\n\t\t\t\torPolicyVehicleHub.lnkCloseError.click ();\r\n\r\n\t\t\t\tthis.changeAddress (strRegion);\r\n\t\t\t} while (orPolicyVehicleHub.pnlScreenError.isDisplayed () == true);\r\n\t\t}\r\n\t}", "public void testRetrieveAddress() throws Exception {\r\n try {\r\n this.dao.retrieveAddress(-1);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public void testAddAddress3() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setModificationUser(null);\r\n this.dao.addAddress(address, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }", "@Test(timeout = 4000)\n public void test193() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.id(\"O=V>!a<w512kq\");\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.AbstractMap\", e);\n }\n }", "public void testThatStandardTransportClientCannotConnectToClientProfile() throws Exception {\n try (TransportClient transportClient = createTransportClient(Settings.EMPTY)) {\n transportClient.addTransportAddress(new TransportAddress(localAddress, getProfilePort(\"client\")));\n transportClient.admin().cluster().prepareHealth().get();\n fail(\"Expected NoNodeAvailableException\");\n } catch (NoNodeAvailableException e) {\n assertThat(e.getMessage(), containsString(\"None of the configured nodes are available: [{#transport#-\"));\n }\n }", "@Test\n public void testLazyInitializationExceptionPart1() throws Exception {\n List<GeoObjectBean> geoObjectBeans = geoObjectDao\n .getGeoObjectsByTypeAndParentAndPrefix(GeoObjectTypeCode.STREET,\n null,\n \"Avtozavods\",\n Constants.LOCALE_EN,\n 20);\n assertNotNull(geoObjectBeans);\n assertEquals(2, geoObjectBeans.size());\n streetGO_from_testLazyInitializationException = geoObjectBeans.get(0);\n }", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidValueOfIncorrectString() {\n Ip4Address ipAddress;\n\n String fromString = \"NoSuchIpAddress\";\n ipAddress = Ip4Address.valueOf(fromString);\n }", "@Test\n void get_unavailableCity_butOnAPI() throws Exception{\n cityDAO.get(\"manchester\");\n assertThat(cityDAO.get(\"manchester\")).isNotNull();\n }", "private static void testGetAddress(GeoCoderInterface geoCoder, Double latitude, Double longitude, String language){\n\t\tSystem.out.println(\"--From GPS:\");\n\t\tGeoCoderResult result = geoCoder.getAddress(latitude, longitude, language);\n\t\tprintGeoCoderResult(result);\n\t}", "@Ignore\n @Test(expected = NullPointerException.class)\n public void failOnNullTag() throws Exception {\n }", "@Test\n public void sipAddressTest() {\n // TODO: test sipAddress\n }", "@Test\n public void testGPSpingInvalid() {\n assertEquals(0.0, err1.getLat(), PRECISION);\n assertEquals(0.0, err1.getLon(), PRECISION);\n assertEquals(0.0, err2.getLon(), PRECISION);\n assertEquals(0,err1.getTime());\n assertEquals(0,err2.getTime());\n }", "public void testImportInvalidAltitude() throws ParserConfigurationException, IOException {\n testInvalidXML(INVALID_ALTITUDE_TEST_GPX);\n }", "@Test\n public void testLocation() throws Exception {\n GeoCoder g = new GeoCoder();\n String location = \"Eastern,NY\";\n g.geoCoding(location);\n }", "@Test\n public void getOutsideCityInvalid()\n {\n String str = _city.getOutsideCity(\"21 jump st\");\n assertNull(str);\n }", "public void testImportInvalidLatitude() throws ParserConfigurationException, IOException {\n testInvalidXML(INVALID_LATITUDE_TEST_GPX);\n }", "public void testRemoveAddress() throws Exception {\r\n try {\r\n this.dao.removeAddress(-1, false);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "@Test(timeout = 4000)\n public void test174() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"4_R]T<#2)Q?]R7Ut\");\n String[] stringArray0 = new String[7];\n // Undeclared exception!\n try { \n xmlEntityRef0.area(stringArray0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\r\n public void incorrectUrlTest(){\r\n boolean noException = false;\r\n \r\n try {\r\n extractor = new HTMLExtractor(\"google.co.uk\");\r\n noException = true;\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n System.out.println(e.getMessage());\r\n }\r\n\r\n assertTrue(\"should not throw an exception\", noException);\r\n }", "public void testAddAddress4() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.getCountry().setId(-1);\r\n this.dao.addAddress(address, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }", "public void testAddAddress5() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.getState().setId(-1);\r\n this.dao.addAddress(address, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }", "public void testAddAddresses() throws Exception {\r\n try {\r\n this.dao.addAddresses(new Address[]{null}, false);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "public void testThatTransportClientCannotConnectToClientProfile() throws Exception {\n Settings settings = Settings.builder()\n .put(SecurityField.USER_SETTING.getKey(), TEST_USER_NAME + \":\" + TEST_PASSWORD)\n .put(\"cluster.name\", internalCluster().getClusterName())\n .build();\n try (TransportClient transportClient = new TestXPackTransportClient(settings,\n Collections.singletonList(LocalStateSecurity.class))) {\n transportClient.addTransportAddress(new TransportAddress(localAddress, getProfilePort(\"client\")));\n assertGreenClusterState(transportClient);\n fail(\"Expected NoNodeAvailableException\");\n } catch (NoNodeAvailableException e) {\n assertThat(e.getMessage(), containsString(\"None of the configured nodes are available: [{#transport#-\"));\n }\n }", "@Test\n void testGivenFaultyRequestWithFaultString_thenFail() throws Exception {\n URL u = new URL(\"http://localhost:8080/sentry-servlet/fault?fault=true\");\n HttpURLConnection conn = (HttpURLConnection)u.openConnection();\n int rc = conn.getResponseCode();\n assertThat(rc)\n .isEqualTo(500);\n }", "@Test(expected = NullPointerException.class)\n public void testInvalidValueOfNullString() {\n Ip4Address ipAddress;\n\n String fromString = null;\n ipAddress = Ip4Address.valueOf(fromString);\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(timeout = 4000)\n public void test368() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null);\n // Undeclared exception!\n try { \n xmlEntityRef0.map((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void testRemoveAddresses_PersistenceException() throws Exception {\r\n try {\r\n new InformixAddressDAO(\"InformixAddressDAO_Error_4\").removeAddresses(new long[]{1}, false);\r\n fail(\"PersistenceException expected\");\r\n } catch (PersistenceException e) {\r\n //good\r\n }\r\n }", "@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeTooLongMaskedAddressIPv4() {\n Ip4Address ipAddress = Ip4Address.valueOf(\"1.2.3.5\");\n Ip4Address ipAddressMasked;\n\n ipAddressMasked = Ip4Address.makeMaskedAddress(ipAddress, 33);\n }", "public void testImportLocationFailure() throws ParserConfigurationException, IOException {\n testInvalidXML(INVALID_LOCATION_TEST_GPX);\n }", "void rejects_invalid_racer() {\n }", "public void clearSupportsTipping() {\n genClient.clear(CacheKey.supportsTipping);\n }", "@Test(timeout = 4000)\n public void test299() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"{\");\n // Undeclared exception!\n try { \n xmlEntityRef0.span((Object) \"{\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void testImportInvalidLongitude() throws ParserConfigurationException, IOException {\n testInvalidXML(INVALID_LONGITUDE_TEST_GPX);\n }", "@Test\n public void testEmergencyAddress() {\n // TODO: test EmergencyAddress\n }", "@Test\n public void followFail() throws IOException {\n Mockito.when(mockRegisterService.register(request)).thenThrow(new IOException());\n\n Assertions.assertThrows(IOException.class, () -> {\n presenter.register(request);\n });;\n// Assertions.assertEquals(failResponse.getMessage(), presenter.follow(failRequest).getMessage());\n }", "void warning(String domain, String key, XMLParseException exception) throws XNIException;" ]
[ "0.6754113", "0.66769165", "0.5856459", "0.5673557", "0.5553274", "0.53879124", "0.5376186", "0.53367907", "0.52472377", "0.5239745", "0.5154862", "0.51423615", "0.51418555", "0.5111742", "0.50967634", "0.50412905", "0.5030289", "0.5022889", "0.5016819", "0.49674174", "0.49481028", "0.4926578", "0.4920934", "0.49165392", "0.49137783", "0.49133906", "0.48997352", "0.48931837", "0.48878288", "0.48809695", "0.48793527", "0.4877662", "0.48773146", "0.48737633", "0.48695445", "0.48493475", "0.48490396", "0.4847948", "0.4846675", "0.4834353", "0.48269573", "0.48200133", "0.48142558", "0.48124674", "0.48044595", "0.47945085", "0.47937593", "0.47920436", "0.47889963", "0.47794777", "0.4762268", "0.47610763", "0.47335353", "0.47266722", "0.47152528", "0.4713983", "0.47096878", "0.47071454", "0.47062373", "0.47038502", "0.46980917", "0.4697737", "0.46821204", "0.4681658", "0.46812373", "0.4670299", "0.46689725", "0.46662372", "0.46544522", "0.46500742", "0.46437547", "0.46370295", "0.46328515", "0.46325752", "0.46234316", "0.46197528", "0.46172705", "0.46162942", "0.46089676", "0.46038994", "0.45974493", "0.45954597", "0.45938802", "0.45913795", "0.45896327", "0.45867112", "0.45824206", "0.45809728", "0.4574738", "0.45715162", "0.45712802", "0.45653072", "0.45614126", "0.4560168", "0.45589513", "0.4556581", "0.45541814", "0.45510677", "0.45461845", "0.4542977" ]
0.7490025
0
TODO Autogenerated method stub
public static void main(String[] args) { QueueUsingLinkedList queue = new QueueUsingLinkedList(); queue.enqueue(6); queue.dequeue(); queue.enqueue(3); queue.enqueue(99); queue.enqueue(56); queue.dequeue(); queue.enqueue(43); queue.dequeue(); queue.enqueue(89); queue.enqueue(77); queue.dequeue(); queue.enqueue(32); queue.enqueue(232); }
{ "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
simulates the spring's bouncing function
public void boingg(Player player) { if (player.getCircle().getBoundsInParent().intersects(right.getBoundsInParent())) { if ((int) player.normalVelocityX == 0) { player.normalVelocityX = 4; } else { player.normalVelocityX = Math.abs(player.normalVelocityX) * springiness; } } else if (player.getCircle().getBoundsInParent().intersects(left.getBoundsInParent())) { if ((int) player.normalVelocityX == 0) { player.normalVelocityX = -4; } else { player.normalVelocityX = Math.abs(player.normalVelocityX) * -springiness; } } else { player.normalVelocityX *= springiness; } player.normalVelocityY *= -springiness; player.angularVelocity *= -springiness; rectangle.setFill(AssetManager.springSkin(false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bounce() {\n angle = -angle;\n }", "@Override\n\tpublic void collision(Ball ball) {\n PhysicsComponent gadgetPartToCollideWith = this.physicsComponentList.get(0);\n double minTimeUntilCollision = Double.MAX_VALUE;\n for(PhysicsComponent gadgetPart: physicsComponentList){\n double timeUntilCollisionPart = gadgetPart.timeUntilCollision(ball.getBallCircle(), ball.getVelocity());\n if (timeUntilCollisionPart < minTimeUntilCollision){ \n minTimeUntilCollision = timeUntilCollisionPart;\n gadgetPartToCollideWith = gadgetPart;\n }\n }\n Vect newVelocity = gadgetPartToCollideWith.reflect(ball.getBallCircle(), ball.getVelocity(), ball.getCoefficentOfReflection()); \n ball.setVelocity(newVelocity);\n trigger();\n\t}", "public void checkForBounce()\n {\n if (isTouching(mid.class)){\n \n bounce = 1;\n \n \n }\n \n \n \n \n if (getY() <= 0 || getY() >= getWorld().getHeight() -1 )\n {\n \n dY = -dY;\n \n }\n \n \n if(isTouching(Pad1.class )){\n \n if (bounce == 1){\n \n \n Greenfoot.playSound(\"paddleHit.wav\"); \n dX = -dX;\n bounce = 0;\n change(); \n }\n \n \n }\n \n \n \n }", "private void updateBit() {\r\n float frameTime = 10f;\r\n xVel += (xAccel * frameTime);\r\n yVel += (yAccel * frameTime);\r\n\r\n float xS = (xVel / 20) * frameTime; //PROVIDE THE ANGULE OF THE POSITION\r\n float yS = (yVel / 20) * frameTime; // WITH LESS DENOMINADOR THE BALL MOVE IS MORE DIFFICULT\r\n\r\n xPos -= xS;\r\n yPos -= yS;\r\n\r\n if (xPos > xMax) {\r\n xPos = xMax;\r\n } else if (xPos < 0) {\r\n xPos = 0;\r\n }\r\n\r\n if (yPos > yMax) {\r\n yPos = yMax;\r\n } else if (yPos < 0) {\r\n yPos = 0;\r\n }\r\n\r\n\r\n }", "public void gravityPull(){\n\t\t//Starts falling by One Pixel\n\t\tbird.setY(bird.getY() + 2);\n\t}", "public void act(){\n if (alive) {\n x = x + vx * dt;\n vx = vx * (1. - daempfung); //Luftwiderstand, eventuell muss dass nur in der Spielerklasse implementiert\n //werden, damit die Pilze nicht abgebremst werden.\n if (bewegung == Bewegung.fallen) {\n y = y + vy * dt;\n vy = vy + g * dt;\n }\n }\n }", "public static void moveBalls() {\n\t\tfor (Ball b : Panel.balls) {\n\t\t\tif (b.getxPOS() + b.getxVelocity() < 410 || b.getxPOS() + b.getxVelocity() > (1200 - (b.getMass() * 7))) { //checking next frame for boundry collision\n\t\t\t\tb.setxVelocity(-b.getxVelocity());\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//reverseing velocity if true\n\t\t\t}\n\t\t\tif (b.getyPOS() + b.getyVelocity() < 0) {\n\t\t\t\tb.setyVelocity(-(b.getyVelocity()));\n\t\t\t}\n\t\t\tif (b.getyPOS() + b.getyVelocity() > (800 - (b.getMass() * 7)) - 22) { //on each collision with the floor, decrease the balls X and Y velocity\n\t\t\t\tb.setyVelocity(-(b.getyVelocity() - energyLost));\n\t\t\t\tif (Panel.tick % 7 == 0 && Panel.Gravity) {\n\t\t\t\t\tif (b.getxVelocity() < 0) {\n\t\t\t\t\t\tb.setxVelocity(b.getxVelocity() + 1);\n\t\t\t\t\t}\n\t\t\t\t\tif (b.getxVelocity() > 0) {\n\t\t\t\t\t\tb.setxVelocity(b.getxVelocity() - 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!(b.getyPOS() + b.getyVelocity() > (800 - (b.getMass() * 7)) - 22)) { //applying motion in the Y direction only if the ball is not resting on the floor\n\t\t\t\tb.setyPOS(b.getyPOS() + b.getyVelocity());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tb.setyPOS((800 - (b.getMass() * 7)) - 22);\n\t\t\t}\n\t\t\t\n\t\t\tb.setxPOS(b.getxPOS() + b.getxVelocity()); //motion is always applied in the X direction\n\t\t}\n\t}", "@Override\n\tpublic void update()\n\t{\n\t\tsuper.update();\n\n\t\tcalcAcceleration();\n\t\tsetVelocity(Vector2D.add(getVelocity(), getAcceleration()));\n\n\t\tcalcVelocity();\n\t\tsetPosition(Vector2D.add(getPosition(), getVelocity()));\n\n\t\tbm.update(getPosition(), getWidth(), getHeight());\n\t}", "void update() {\n for( int i= 0; i < masses.length; i++) {\n masses[i].posX += masses[i].vx*dt;\n masses[i].posY += masses[i].vy*dt;\n }\n\n for( int i = 0; i < springs.length; i++) {\n if( !springs[i].mass1.fixed ) {\n springs[i].mass1.vx += ( springs[i].forceX() + nx(springs[i].mass1)*Math.pow(dist(springs[i].mass1)/(width*Math.sqrt(2)),2) - 0.005*springs[i].mass1.vx ) * dt;\n springs[i].mass1.vy += ( springs[i].forceY() + ny(springs[i].mass1)*Math.pow(dist(springs[i].mass1)/(width*Math.sqrt(2)),2) - 0.005*springs[i].mass1.vy ) * dt;\n }\n\n if( !springs[i].mass2.fixed ) {\n springs[i].mass2.vx += ( (-1)*springs[i].forceX() + nx(springs[i].mass2)*Math.pow(dist(springs[i].mass1)/(width*Math.sqrt(2)),2) - 0.005*springs[i].mass2.vx ) * dt;\n springs[i].mass2.vy += ( (-1)*springs[i].forceY() + ny(springs[i].mass2)*Math.pow(dist(springs[i].mass1)/(width*Math.sqrt(2)),2) - 0.005*springs[i].mass2.vy ) * dt;\n }\n }\n }", "public void update(){\n if (boatStats.getSpeed() > 0){\n boatStats.setSpeed(boatStats.getSpeed() - boatStats.getDeceleration());\n boatPosition.setPosY(boatPosition.getPosY() + boatStats.getSpeed());\n } else {\n boatStats.setSpeed(0);\n }\n }", "@Test\r\n\tpublic void isSpringDamper() {\r\n\t\tWeldJoint<Body> wj = new WeldJoint<Body>(b1, b2, new Vector2());\r\n\t\tTestCase.assertFalse(wj.isSpringDamperEnabled());\r\n\t\t\r\n\t\twj.setFrequency(0.0);\r\n\t\tTestCase.assertFalse(wj.isSpringDamperEnabled());\r\n\t\t\r\n\t\twj.setFrequency(1.0);\r\n\t\tTestCase.assertFalse(wj.isSpringDamperEnabled());\r\n\t\t\r\n\t\twj.setFrequency(15.24);\r\n\t\tTestCase.assertFalse(wj.isSpringDamperEnabled());\r\n\t\t\r\n\t\twj.setDampingRatio(0.4);\r\n\t\tTestCase.assertTrue(wj.isSpringDamperEnabled());\r\n\t\t\r\n\t\twj.setDampingRatio(0.0);\r\n\t\tTestCase.assertFalse(wj.isSpringDamperEnabled());\r\n\t\t\r\n\t\twj.setDampingRatio(0.61);\r\n\t\twj.setFrequency(0.0);\r\n\t\tTestCase.assertFalse(wj.isSpringDamperEnabled());\r\n\t}", "@Override\n public void tick() { mob.fallDistance = 0.0F; }", "public void onLivingUpdate()\n {\n super.onLivingUpdate();\n double moveSpeed = this.getAttributeMap().getAttributeInstance(SharedMonsterAttributes.MOVEMENT_SPEED).getAttributeValue();\n if (timetopee-- < 0 && !bumgave)\n {\n isJumping = false;\n\n if (bumrotation == 999F)\n {\n bumrotation = rotationYaw;\n }\n\n rotationYaw = bumrotation;\n moveSpeed = 0.0F;\n\n if (!onGround)\n {\n motionY -= 0.5D;\n }\n \n /* TODO\n if(worldObj.isRemote)\n {\n \tMCW.proxy.pee(worldObj, posX, posY, posZ, rotationYaw, modelsize);\n } */\n\n if (timetopee < -200)\n {\n timetopee = rand.nextInt(600) + 600;\n bumrotation = 999F;\n int j = MathHelper.floor_double(posX);\n int k = MathHelper.floor_double(posY);\n int l = MathHelper.floor_double(posZ);\n\n for (int i1 = -1; i1 < 2; i1++)\n {\n for (int j1 = -1; j1 < 2; j1++)\n {\n if (rand.nextInt(3) != 0)\n {\n continue;\n }\n\n Block k1 = worldObj.getBlockState(new BlockPos(j + j1, k - 1, l - i1)).getBlock();\n Block l1 = worldObj.getBlockState(new BlockPos(j + j1, k, l - i1)).getBlock();\n\n if (rand.nextInt(2) == 0)\n {\n if ((k1 == Blocks.GRASS || k1 == Blocks.DIRT) && l1 == Blocks.AIR)\n {\n worldObj.setBlockState(new BlockPos(j + j1, k, l - i1), Blocks.YELLOW_FLOWER.getDefaultState());\n }\n\n continue;\n }\n\n if ((k1 == Blocks.GRASS || k1 == Blocks.DIRT) && l1 == Blocks.AIR)\n {\n \tworldObj.setBlockState(new BlockPos(j + j1, k, l - i1), Blocks.RED_FLOWER.getDefaultState());\n }\n }\n }\n }\n }\n }", "public void bounce(Ball ball) {\n\t\tPoint location = ball.getLocation();\n\t\tPoint velocity = ball.getVelocity();\n\t\tint radius = ball.getRadius();\n\n\t\tif (location.x < 0) {\n\t\t\tlocation.x = -location.x;\n\t\t\tvelocity.x = -velocity.x;\n\t\t}\n\n\t\tif (location.x + 1 * radius > BallWorldModel.returnBounds().width) {\n\t\t\tlocation.x = BallWorldModel.returnBounds().width * 2 - location.x - 2 * radius;\n\t\t\tvelocity.x = -velocity.x;\n\n\t\t}\n\t\tif (location.y < 0) {\n\t\t\tlocation.y = -location.y;\n\t\t\tvelocity.y = -velocity.y;\n\t\t}\n\t\tif (location.y + 1 * radius > BallWorldModel.returnBounds().height) {\n\t\t\tlocation.y = BallWorldModel.returnBounds().height * 2 - location.y - 2 * radius;\n\t\t\tvelocity.y = -velocity.y;\n\n\t\t}\n\t}", "public void act()\r\n\t{\r\n\t\tyVel += gravity;\r\n\t\t//Resets the jump delay to when greater than 0\r\n\t\tif (jDelay > 0)\r\n\t\t{\r\n\t\t\tjDelay--;\r\n\t\t}\r\n\t\t//Sets the vertical velocity and jump delay of the bird after a jump\r\n\t\tif (alive == true && (Menu.keyPress == KeyEvent.VK_SPACE) && jDelay <= 0) \r\n\t\t{\r\n\t\t\tMenu.keyPress = 0;\r\n\t\t\tyVel = -10;\r\n\t\t\tjDelay = 10;\r\n\t\t}\r\n\t\ty += (int)yVel;\r\n\t}", "public void ballShoot() {\n\n ballRight.setPower(-1);\n ballLeft.setPower(1);\n\n wait(2.0);\n\n flipper.setPosition(0.7);\n\n wait(0.5);\n\n flipper.setPosition(0.9);\n ballLeft.setPower(0);\n ballRight.setPower(0);\n\n\n }", "public void tick(){\n\t\t//first check if blocked\n\t\tsuper.tick();\n\t\ttickTimers();\n\t\tapplySpecialAbilitiesWithinDuration();\n\t\tif(sequence!=null){\n\t\t\tsequence.tick();\n\t\t}\n\t\tif(adjustToBlockageAndReturnTrueIfBlocked()||atEdge) {\n\t\t\tif(atEdge){\n\t\t\t\tcheckIfAtEdge();\n\t\t\t}\n\t\t\tif(charging) stopCharge();\n\t\t\tif(animation!=ANIMATION.DYING&&animation!=ANIMATION.DAMAGED) {\n\t\t\t\tif(animation!=ANIMATION.STAND) {\n\t\t\t\t\tanimation=ANIMATION.STAND;\n\t\t\t\t\tif(stand!=null) sequence.startSequence(stand);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(buttonReleased){\n\t\t\tif(targetPositionReached()){\n\t\t\t\tvelX=0;\n\t\t\t\tvelY=0;\n\t\t\t\tmoving=false;\n\t\t\t\tif(animation!=ANIMATION.DYING&&animation!=ANIMATION.DAMAGED) {\n\t\t\t\t\tif(animation!=ANIMATION.STAND) {\n\t\t\t\t\t\tanimation=ANIMATION.STAND;\n\t\t\t\t\t\tif(stand!=null) sequence.startSequence(stand);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdirection=\"stand\";\n\t\t\t}\n\t\t}\n\t\tif(damaged){\n\t\t\tif(animation!=ANIMATION.DYING) {\n\t\t\t\tif(animation!=ANIMATION.DAMAGED) {\n\t\t\t\t\tanimation=ANIMATION.DAMAGED;\n\t\t\t\t\tif(damage!=null) sequence.startSequence(damage,stand);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetVelX(0);\n\t\t\tsetVelY(0);\n\t\t}\n\t\t\n\t\tx+=velX;\n\t\ty+=velY;\n\t\tupdatePosition();\n\t\tcheckIfAtEdge();\n\t\t\n\t\t\n\t}", "@Override\n public void executeFrameWithDeltaTime(float timeInterval, PhysicsObject physicsObject) {\n applyLimits();\n if (this.minPoint.x == this.target.getTranslationX() && physicsObject.velocity.x < 0.0)\n {\n float vx = -physicsObject.velocity.x * this.bounce;\n float vy = physicsObject.velocity.y;\n physicsObject.velocity = new PointF(vx, vy);\n doHaptic();\n }\n if (this.minPoint.y == this.target.getTranslationY() && physicsObject.velocity.y < 0.0)\n {\n float vx = physicsObject.velocity.x;\n float vy = -physicsObject.velocity.y * this.bounce;\n physicsObject.velocity = new PointF(vx, vy);\n doHaptic();\n }\n if (this.maxPoint.x == this.target.getTranslationX() && physicsObject.velocity.x > 0.0)\n {\n float vx = -physicsObject.velocity.x * this.bounce;\n float vy = physicsObject.velocity.y;\n physicsObject.velocity = new PointF(vx, vy);\n doHaptic();\n }\n if (this.maxPoint.y == this.target.getTranslationY() && physicsObject.velocity.y > 0.0)\n {\n float vx = physicsObject.velocity.x;\n float vy = -physicsObject.velocity.y * this.bounce;\n physicsObject.velocity = new PointF(vx, vy);\n doHaptic();\n }\n }", "public void update(){\n if (bossMoveTime > 10){\n if(random(0,16) <= 8){\n dir = 1;\n }else{\n dir = -1;\n }\n velX *= dir;\n bossMoveTime = 0;\n }\n posY *= 0.8f;\n posX += velX;\n posY += velY;\n angle += 0.04f;\n bossMoveTime++;\n }", "@Override\n\tpublic void step() {\n\t\ty += speed;\n\t}", "protected void updatePos()\r\n\t{\r\n\t\t// storing all birds of this flock into ArrayList\r\n\t\tArrayList<Bird> bird_list = new ArrayList<Bird>();\r\n\t\tbird_list = getFlock().getBirds();\r\n\t\tPosition currPos = getPos();\r\n\t\tdouble move_x=0,move_y=0,temp_x=0,temp_y=0,normal=0;\r\n\t\t// taking the current positions\r\n int x = currPos.getX();\r\n int y = currPos.getY();\r\n if (!isleader)\r\n\t\t{\r\n Position leader_pos = getFlock().getLeader().getPos();\r\n setTarget(leader_pos.getX(),leader_pos.getY());\r\n }\r\n\t\t// giving the target positions\r\n int x_target = getTarget().getX();\r\n int y_target = getTarget().getY();\r\n\t\t// if normal is zero give some initial value to normal\r\n\t\tnormal = Math.pow(Math.pow(y_target-y,2)+Math.pow(x_target-x,2),0.5);\r\n\t\tif(normal==0) normal = 10;\r\n\t\tmove_x = ((x_target-x)*getMaxSpeed())/normal;\r\n\t\tmove_y = ((y_target-y)*getMaxSpeed())/normal;\r\n\t\t// checking all other birds in the flock for avoiding collisions\r\n\t\tfor(Bird b:bird_list)\r\n\t\t{\r\n\t\t\ttemp_x = b.getPos().getX();\r\n\t\t\ttemp_y = b.getPos().getY();\r\n\t\t\tnormal = Math.pow(Math.pow(temp_x-x,2)+Math.pow(temp_y-y,2),0.5);\r\n\t\t\t// if distance between two birds is less than 2*maxSpeed,giving the bird\r\n\t\t\t// velocity in other direction and atlast taking resultant\r\n\t\t\tif(normal<2*(getMaxSpeed()+5) && normal!=0)\r\n\t\t\t{\r\n\t\t\t\tmove_x += ((x - temp_x)*getMaxSpeed())/normal;\r\n\t\t\t\tmove_y += ((y - temp_y)*getMaxSpeed())/normal;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// updating the position of the bird by avoiding collisions\r\n\t\tsetPos(x+(int)move_x, y+(int)move_y);\r\n\t}", "public static void applyGravity() {\n\n\t\tfor (Ball b : Panel.balls) {\n\t\t\tb.setyVelocity(b.getyVelocity() + 2);\n\t\t}\n\t}", "public void applyImpulse() {\r\n\t\tif ( isBroken ) {\r\n\t\t\t// calculate difference in velocity\r\n\t\t\t// TODO: share this code with BasicJoint and Arbiter\r\n\t\t\tVector2f relativeVelocity = new Vector2f(body2.getVelocity());\r\n\t\t\trelativeVelocity.add(MathUtil.cross(body2.getAngularVelocity(), r2));\r\n\t\t\trelativeVelocity.sub(body1.getVelocity());\r\n\t\t\trelativeVelocity.sub(MathUtil.cross(body1.getAngularVelocity(), r1));\r\n\t\t\t\r\n\t\t\t// project the relative velocity onto the spring vector and apply the mass normal\r\n\t\t\tfloat normalImpulse = massNormal * relativeVelocity.dot(spring);\r\n\t\t\t\r\n//\t\t\t// TODO: Clamp the accumulated impulse?\r\n//\t\t\tfloat oldNormalImpulse = accumulatedNormalImpulse;\r\n//\t\t\taccumulatedNormalImpulse = Math.max(oldNormalImpulse + normalImpulse, 0.0f);\r\n//\t\t\tnormalImpulse = accumulatedNormalImpulse - oldNormalImpulse;\r\n\t\r\n\t\t\t// only apply the impulse if we are pushing or pulling in the right way\r\n\t\t\t// i.e. pulling if the string is overstretched and pushing if it is too compressed\r\n\t\t\tif ( springLength < minSpringSize && normalImpulse < 0\r\n\t\t\t\t\t|| springLength > maxSpringSize && normalImpulse > 0 ) {\r\n\t\t\t\t// now apply the impulses to the bodies\r\n\t\t\t\tVector2f impulse = MathUtil.scale(spring, normalImpulse);\r\n\t\t\t\tbody1.adjustVelocity(MathUtil.scale(impulse, body1.getInvMass()));\r\n\t\t\t\tbody1.adjustAngularVelocity((body1.getInvI() * MathUtil.cross(r1, impulse)));\r\n\t\t\r\n\t\t\t\tbody2.adjustVelocity(MathUtil.scale(impulse, -body2.getInvMass()));\r\n\t\t\t\tbody2.adjustAngularVelocity(-(body2.getInvI() * MathUtil.cross(r2, impulse)));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "List<Velocity> initialBallVelocities();", "public void move(double friction);", "@Override\n public void update(float deltaTime) {\n this.lastPosition.set(this.position.x, this.position.y, this.position.z);\n\n this.velocity.x -= (K_M * this.velocity.x) * deltaTime;\n this.velocity.y -= (K_M * this.velocity.y) * deltaTime;\n this.velocity.z -= (K_M * this.velocity.z + GRAVITY) * deltaTime;\n\n // update position\n if (this.position.z > 0) {\n this.velocity.add(0, 0, -GRAVITY);\n }\n\n this.velocity.scl(deltaTime);\n this.position.add(this.velocity.x, this.velocity.y, this.velocity.z);\n if (this.position.z < 0) { // ball bounces on floor\n this.velocity.z = -this.velocity.z;\n this.position.z += this.velocity.z;\n\n if (this.velocity.z > 0.9f) {\n this.bounce.play(0.2f);\n }\n\n this.velocity.z -= this.velocity.z / 4;\n this.velocity.x -= this.velocity.x / 32;\n this.velocity.y -= this.velocity.y / 32;\n }\n this.velocity.scl(1 / deltaTime);\n }", "@Override\r\n\tpublic void updateForces() {\n\t\tapplyForce(new Vector(0, 0.05));\r\n\t}", "private void setBallSpeed() {\n RandomGenerator rgen = RandomGenerator.getInstance();\n vx = rgen.nextDouble(1.0, 3.0);\n if (rgen.nextBoolean(0.5)) {\n vx = - vx;\n }\n vy = BALL_SPEED;\n }", "public void moveOneStep() {\r\n\r\n // detects what direction the ball moves and switches it.\r\n double xDirection, yDirection;\r\n if (v.getDx() < 0) {\r\n xDirection = -r;\r\n } else {\r\n xDirection = r;\r\n }\r\n if (v.getDy() < 0) {\r\n yDirection = -r;\r\n } else {\r\n yDirection = r;\r\n }\r\n // if the ball is in the paddle because they move towards each other, the ball moves to the top of the paddle.\r\n Rectangle danger;\r\n // finding the paddle.\r\n for (Collidable c: environment.getCollidables()) {\r\n if (c.getCollisionRectangle().getUpperLeft().getY() == 550) {\r\n danger = c.getCollisionRectangle();\r\n // moving the ball up if its in the paddle.\r\n if (center.getY() > danger.getUpperLeft().getY()\r\n && center.getX() > danger.getUpperLeft().getX()\r\n && center.getX() < danger.getUpperRight().getX()) {\r\n this.center = new Point(center.getX(), danger.getUpperLeft().getY() - r);\r\n }\r\n }\r\n }\r\n Line yTrajectory = new Line(center.getX(), center.getY() + yDirection,\r\n center.getX() + v.getDx(), center.getY() + yDirection + v.getDy());\r\n Line xTrajectory = new Line(center.getX() + xDirection, center.getY(),\r\n center.getX() + v.getDx() + xDirection, center.getY() + v.getDy());\r\n // the collision is on the y field.\r\n if (environment.getClosestCollision(yTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(yTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(yTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(this.center.getX(),\r\n bangedPoint.getY() - yDirection - v.getDy());\r\n }\r\n // the collision is on the x field.\r\n if (environment.getClosestCollision(xTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(xTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(xTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(bangedPoint.getX() - xDirection - v.getDx(),\r\n this.center.getY());\r\n }\r\n this.center = this.getVelocity().applyToPoint(this.center);\r\n }", "public void move() { check for bounce and make the ball bounce if necessary\n\t\t//\n\t\tif (x < 0 && dx < 0) {\n\t\t\t// bounce off the left wall\n\t\t\tx = 0;\n\t\t\tdx = -dx;\n\t\t}\n\t\tif (y < 0 && dy < 0) {\n\t\t\t// bounce off the top wall\n\t\t\ty = 0;\n\t\t\tdy = -dy;\n\t\t}\n\t\tif (x > panel.getWidth() - SIZE && dx > 0) {\n\t\t\t// bounce off the right wall\n\t\t\tx = panel.getWidth() - SIZE;\n\t\t\tdx = -dx;\n\t\t}\n\t\tif (y > panel.getHeight() - SIZE && dy > 0) {\n\t\t\t// bounce off the bottom wall\n\t\t\ty = panel.getHeight() - SIZE;\n\t\t\tdy = -dy;\n\t\t}\n\n\t\t// make the ball move\n\t\tx += dx;\n\t\ty += dy;\n\t}", "@Test\r\n\tpublic void isSpring() {\r\n\t\tWeldJoint<Body> wj = new WeldJoint<Body>(b1, b2, new Vector2());\r\n\t\tTestCase.assertFalse(wj.isSpringEnabled());\r\n\t\t\r\n\t\twj.setFrequency(0.0);\r\n\t\tTestCase.assertFalse(wj.isSpringEnabled());\r\n\t\t\r\n\t\twj.setFrequency(1.0);\r\n\t\tTestCase.assertTrue(wj.isSpringEnabled());\r\n\t\t\r\n\t\twj.setFrequency(15.24);\r\n\t\tTestCase.assertTrue(wj.isSpringEnabled());\r\n\t\t\r\n\t\twj.setFrequency(0.0);\r\n\t\tTestCase.assertFalse(wj.isSpringEnabled());\r\n\t}", "public void update()\n {\n // always roatating time by 7 for fixed point calculation\n x = (velocity*cos(theta) *time) >> 21;\n int yFirstPart = (int)(velocity*sin(theta)*time) >> 21;\n int ySecondPart = (int)((g*time*time) >> 15);\n y = yFirstPart - ySecondPart;\n y =initialY - y;\n x= x + initialX;\n time+= updateSpeed;\n if(lastY == -1)\n {\n lastY = y;\n }else{\n int direction = lastY - y;\n if(lastDirection == -1)\n {\n lastDirection = direction;\n }else{\n if(lastDirection != 0 && direction != 0)\n {\n \n int signOfDirection = lastDirection / Math.abs(lastDirection);\n int signOfLastDirection = direction / Math.abs(direction);\n if(signOfDirection != signOfLastDirection)\n {\n if(!reachedTop)\n {\n onTop();\n reachedTop = true;\n }\n \n setIsOnHalf(true);\n }\n }\n lastY = y;\n }\n \n }\n }", "@Override\n\tpublic void step() {\n\t\tthis.y-= speed;\t\n\t}", "private void applyFriction()\n {\n xSpeed *= Level.FRICTION;\n }", "@Override\n public void periodic()\n {\n if(AutoIntake)\n intake(-0.2f, -0.5f);\n }", "private void bounceOffVerticalWall() {\n vx = -vx;\n }", "public void onUpdate()\n {\n super.onUpdate();\n this.jumpMovementFactor = 0.0F;\n this.renderYawOffset = this.rotationPitch = this.rotationYaw = 0.0F;\n\n if (this.target != null && this.target instanceof EntityLiving)\n {\n EntityLiving var1 = (EntityLiving) this.target;\n\n if (var1.getHealth() <= 0 || !this.canEntityBeSeen(var1))\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n } else\n {\n if (this.target != null && this.target.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n\n if (this.target == null)\n {\n this.target = this.worldObj.getClosestPlayerToEntity(this, -1.0D);\n\n if (this.target == null)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n\n return;\n }\n }\n }\n\n if (this.posX == (double) this.getOrgX() && this.posY == (double) this.getOrgY() && this.posZ == (double) this.getOrgZ())\n {\n if (!this.isReformed())\n {\n this.setReformed(true);\n }\n\n this.stop();\n this.moveTimer = 0;\n }\n\n if (this.slider == null)\n {\n Vec3 var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n Vec3 var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n MovingObjectPosition var18 = this.worldObj.rayTraceBlocks(var16, var2);\n var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n if (var18 != null)\n {\n var2 = Vec3.createVectorHelper(var18.hitVec.xCoord, var18.hitVec.yCoord, var18.hitVec.zCoord);\n }\n\n if (!this.worldObj.isRemote)\n {\n Object var4 = null;\n List var15 = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(4.0D, 4.0D, 4.0D));\n double var6 = 0.0D;\n\n for (int var8 = 0; var8 < var15.size(); ++var8)\n {\n Entity var9 = (Entity) var15.get(var8);\n\n if (var9.canBeCollidedWith() && var9 != this)\n {\n float var10 = 0.3F;\n\n if (var9 instanceof EntitySlider)\n {\n this.slider = (EntitySlider) var9;\n var18 = null;\n }\n\n AxisAlignedBB var11 = var9.boundingBox.expand((double) var10, (double) var10, (double) var10);\n MovingObjectPosition var12 = var11.calculateIntercept(var16, var2);\n\n if (var12 != null)\n {\n double var13 = var16.distanceTo(var12.hitVec);\n\n if (var13 < var6 || var6 == 0.0D)\n {\n var6 = var13;\n }\n }\n }\n }\n }\n\n if (this.slider == null || this.slider.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n }\n } else if (this.slider.target != this.target)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n } else\n {\n this.fallDistance = 0.0F;\n double var17;\n double var5;\n double var3;\n\n if (this.gotMovement)\n {\n if (this.isCollided)\n {\n var17 = this.posX - 0.5D;\n var3 = this.boundingBox.minY + 0.75D;\n var5 = this.posZ - 0.5D;\n\n if (this.crushed)\n {\n this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, \"random.explode\", 3.0F, (0.625F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F);\n this.worldObj.playSoundAtEntity(this, \"aeboss.slider.collide\", 2.5F, 1.0F / (this.rand.nextFloat() * 0.2F + 0.9F));\n }\n\n this.stop();\n } else\n {\n if (this.speedy < 2.0F)\n {\n this.speedy += 0.035F;\n }\n\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n\n if (this.direction == 0)\n {\n this.motionY = (double) this.speedy;\n\n if (this.boundingBox.minY > (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY + 0.35D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 1)\n {\n this.motionY = (double) (-this.speedy);\n\n if (this.boundingBox.minY < (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY - 0.25D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 2)\n {\n this.motionX = (double) this.speedy;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 3)\n {\n this.motionX = (double) (-this.speedy);\n\n if (this.posX < (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 4)\n {\n this.motionZ = (double) this.speedy;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 5)\n {\n this.motionZ = (double) (-this.speedy);\n\n if (this.posZ < (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n }\n }\n } else\n {\n this.motionY = 0.0D;\n\n if (this.moveTimer > 0)\n {\n --this.moveTimer;\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n } else\n {\n var17 = Math.abs(this.posX - (this.reform ? (double) this.getOrgX() : this.target.posX));\n var3 = Math.abs(this.boundingBox.minY - (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY));\n var5 = Math.abs(this.posZ - (this.reform ? (double) this.getOrgZ() : this.target.posZ));\n\n if (var17 > var5)\n {\n this.direction = 2;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX))\n {\n this.direction = 3;\n }\n } else\n {\n this.direction = 4;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ))\n {\n this.direction = 5;\n }\n }\n\n if (var3 > var17 && var3 > var5 || var3 > 0.25D && this.rand.nextInt(5) == 0)\n {\n this.direction = 0;\n\n if (this.posY > (this.reform ? (double) this.getOrgY() : this.target.posY))\n {\n this.direction = 1;\n }\n }\n\n this.gotMovement = true;\n }\n }\n\n if (this.harvey > 0.01F)\n {\n this.harvey *= 0.8F;\n }\n }\n }", "@Override\n\tpublic void travel(float strafe, float vertical, float forward) {\n\t\tif (this.isInWater()) {\n\t\t\tthis.moveRelative(strafe, vertical, forward, 0.02F);\n\t\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\t\tthis.motionX *= 0.800000011920929D;\n\t\t\tthis.motionY *= 0.800000011920929D;\n\t\t\tthis.motionZ *= 0.800000011920929D;\n\t\t} else if (this.isInLava()) {\n\t\t\tthis.moveRelative(strafe, vertical, forward, 0.02F);\n\t\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\t\tthis.motionX *= 0.5D;\n\t\t\tthis.motionY *= 0.5D;\n\t\t\tthis.motionZ *= 0.5D;\n\t\t} else {\n\t\t\tfloat f = 0.91F;\n\n\t\t\tif (this.onGround) {\n\t\t\t\t//f = this.world.getBlockState(new BlockPos(MathHelper.floor(this.posX), MathHelper.floor(this.getEntityBoundingBox().minY) - 1, MathHelper.floor(this.posZ))).getBlock().slipperiness * 0.91F;\n\t\t\t\tBlockPos underPos = new BlockPos(MathHelper.floor(this.posX), MathHelper.floor(this.getEntityBoundingBox().minY) - 1, MathHelper.floor(this.posZ));\n\t\t\t\tIBlockState underState = this.world.getBlockState(underPos);\n\t\t\t\tf = underState.getBlock().getSlipperiness(underState, this.world, underPos, this) * 0.91F;\n\t\t\t}\n\n\t\t\tfloat f1 = 0.16277136F / (f * f * f);\n\t\t\tthis.moveRelative(strafe, vertical, forward, this.onGround ? 0.1F * f1 : 0.02F);\n\t\t\tf = 0.91F;\n\n\t\t\tif (this.onGround) {\n\t\t\t\t//f = this.world.getBlockState(new BlockPos(MathHelper.floor(this.posX), MathHelper.floor(this.getEntityBoundingBox().minY) - 1, MathHelper.floor(this.posZ))).getBlock().slipperiness * 0.91F;\n\t\t\t\tBlockPos underPos = new BlockPos(MathHelper.floor(this.posX), MathHelper.floor(this.getEntityBoundingBox().minY) - 1, MathHelper.floor(this.posZ));\n\t\t\t\tIBlockState underState = this.world.getBlockState(underPos);\n\t\t\t\tf = underState.getBlock().getSlipperiness(underState, this.world, underPos, this) * 0.91F;\n\t\t\t}\n\n\t\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\t\tthis.motionX *= (double)f;\n\t\t\tthis.motionY *= (double)f;\n\t\t\tthis.motionZ *= (double)f;\n\t\t}\n\n\t\tthis.prevLimbSwingAmount = this.limbSwingAmount;\n\t\tdouble d1 = this.posX - this.prevPosX;\n\t\tdouble d0 = this.posZ - this.prevPosZ;\n\t\tfloat f2 = MathHelper.sqrt(d1 * d1 + d0 * d0) * 4.0F;\n\n\t\tif (f2 > 1.0F) {\n\t\t\tf2 = 1.0F;\n\t\t}\n\n\t\tthis.limbSwingAmount += (f2 - this.limbSwingAmount) * 0.4F;\n\t\tthis.limbSwing += this.limbSwingAmount;\n\t}", "@Override\n public void bounce() {\n System.out.println(name+\" Kangaroo is bouncing\");\n }", "@Override\n public void simStepUpdate(long stepMillis) {\n if(!isStationary) {\n // Calculate gravity force\n this.forces = this.forces.add(new Vector(0, -9.81).times(mass_newtons));\n // Add forces to velocities\n this.velocities = this.velocities.add(this.forces.times(mass_newtons * (stepMillis/1000F)));\n // Times 0.9 to add for some overall drag\n this.velocities = this.velocities.times(0.9);\n // Now add velocities to position vector to get new position of body\n this.sim_pos = this.sim_pos.add(velocities.times((stepMillis/1000F)));\n // Check if the node is touching the floor\n if (isOnGround()) {\n this.sim_pos.setY(2);\n // Drag the feet on the ground by * 0.2\n this.velocities.setX(this.velocities.getX() * 0.2);\n if (this.velocities.getY() < 0) {\n // Bouncing detected, retain some negative Y velocity\n this.velocities.setY(this.velocities.getY() * -0.2);\n }\n }\n // Reset force vector for next step cycle\n this.forces = new Vector(0, 0);\n }\n this.updateSimCoords(this.sim_pos);\n }", "public void moveBall()\n\t{\n\t\tx -= vx;\n\t\ty += vy;\n\t}", "public void moveOneStep(double dt) {\r\n double movementX = this.p.getX() + dt * this.vel.getDx();\r\n double movementY = this.p.getY() + dt * this.vel.getDy();\r\n Line trajectory = new Line(this.p, new Point(movementX, movementY));\r\n CollisionInfo collInfo = gameE.getClosestCollision(trajectory);\r\n // if there is a collision point collInfo doesn't equal to null.\r\n if (collInfo != null) {\r\n double x = this.getX();\r\n double y = this.getY();\r\n Point collisionPoint = collInfo.collisionPoint();\r\n Collidable obj = collInfo.collisionObject();\r\n Rectangle r = obj.getCollisionRectangle();\r\n // Check if the ball hit on one of the corners block.\r\n if (collisionPoint.getY() == collisionPoint.getX()) {\r\n // If the ball hit on the top corners.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()\r\n || collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n // else the ball hit on the bottom corners.\r\n } else {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n }\r\n // Set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n return;\r\n }\r\n\r\n // If the ball hit on the left border block.\r\n if (collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY();\r\n // If the ball hit on the right border block.\r\n } else if (collisionPoint.getX() == r.getWidth() + r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY();\r\n\r\n }\r\n // If the ball hit on the top border block.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n x = collisionPoint.getX();\r\n // If the ball hit on the bottom border block.\r\n } else if (collisionPoint.getY() == r.getHeight() + r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n x = collisionPoint.getX();\r\n }\r\n // set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n // else move the ball one step.\r\n } else {\r\n this.p = this.getVelocity().applyToPoint(this.p, dt);\r\n }\r\n }", "public void moveBomber(){\n\t\t\t\n\t\t\tif (startredtimer) redtimer++;\n\t\t\tif (redtimer > 5) {\n\t\t\t\tredtimer = 0;\n\t\t\t\tstartredtimer = false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif (rand.nextInt(21) == 20){ //controls the switching of directions\n\t\t\t\tif (direction == 1) direction = 0;\n\t\t\t\telse if (direction == 0) direction = 1;\n\t\t\t}\n\t\t\tif (direction == 1){ //actually moves the plain\n\t\t\t\tx += 10;\n\t\t\t\tr = true;\n\t\t\t}\n\t\t\telse if (direction == 0){\n\t\t\t\tx -= 10;\n\t\t\t\tr = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (x <= 0) x = 992; //handles the ofscrean plane\n\t\t\telse if ( x >= 992) x = 0;\n\t\t\t\n\t\t\tthis.setBounds(x,y,100,50); //updates the bounds\n\t\t\t\n\t\t}", "public void moveOneStep() {\n // special case - the ball is inside the paddle\n Map<Integer, Point> result = movingBlock.getCollisionRectangle().insideRectangle(this.center);\n if (result != null) {\n // getting a pair information of:\n // A point: the new point of the center outside the paddle\n // An Integer: 1 if it's on the right, -1 if on the left\n for (Integer direction : result.keySet()) {\n // setting the new center, and the new velocity, based on the result\n this.center = result.get(direction);\n this.setVelocity(Math.abs(this.getVelocity().getX()) * direction, -Math.abs(this.getVelocity().getY()));\n }\n // normal case - the ball is not inside the paddle\n } else {\n // getting the line trajectory\n Line trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n // getting the collision info\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n int count = 0;\n // while this info is not null\n while (info != null) {\n // changing the velocity of the ball\n // notify the object it has been hit\n this.setVelocity(info.collisionObject().hit(this, info.collisionPoint(), this.getVelocity()));\n // getting the update trajectory and info (while they're not null!)\n trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n info = this.gameEnvironment.getClosestCollision(trajectory);\n // if the count is 3, it means we are into an infinite loop!\n // oppose the velocity and break\n if (count == 3) {\n this.setVelocity(-this.getVelocity().getX(), -this.getVelocity().getY());\n break;\n }\n count++;\n }\n this.center = this.getVelocity().applyToPoint(this.center);\n }\n }", "public void preStep(float invDT) {\r\n\r\n\t\t// calculate the spring's vector (pointing from body1 to body2) and length\r\n\t\tspring = new Vector2f(body2.getPosition());\r\n\t\tspring.add(r2);\r\n\t\tspring.sub(body1.getPosition());\r\n\t\tspring.sub(r1);\r\n\t\tspringLength = spring.length();\r\n\t\t\r\n\t\t// the spring vector needs to be normalized for applyImpulse as well!\r\n\t\tspring.normalise();\r\n\t\t\r\n\t\t// calculate the spring's forces\r\n\t\t// note that although theoretically invDT could never be 0\r\n\t\t// but here it can\r\n\t\tfloat springConst;\r\n\t\t\r\n\t\tif ( springLength < minSpringSize || springLength > maxSpringSize ) { \r\n\t\t\t// Pre-compute anchors, mass matrix, and bias.\r\n\t\t\tMatrix2f rot1 = new Matrix2f(body1.getRotation());\r\n\t\t\tMatrix2f rot2 = new Matrix2f(body2.getRotation());\r\n\t\r\n\t\t\tr1 = MathUtil.mul(rot1,localAnchor1);\r\n\t\t\tr2 = MathUtil.mul(rot2,localAnchor2);\r\n\t\t\t\r\n\t\t\t// the mass normal or 'k'\r\n\t\t\tfloat rn1 = r1.dot(spring);\r\n\t\t\tfloat rn2 = r2.dot(spring);\r\n\t\t\tfloat kNormal = body1.getInvMass() + body2.getInvMass();\r\n\t\t\tkNormal += body1.getInvI() * (r1.dot(r1) - rn1 * rn1) + body2.getInvI() * (r2.dot(r2) - rn2 * rn2);\r\n\t\t\tmassNormal = 1 / kNormal;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// The spring is broken so apply force to correct it\r\n\t\t\t// note that we use biased velocities for this\r\n\t\t\tfloat springImpulse =\r\n\t\t\t\tinvDT != 0 ? brokenSpringConst * (springLength - springSize) / invDT : 0;\r\n\t\t\t\r\n\t\t\tVector2f impulse = MathUtil.scale(spring, springImpulse);\r\n\t\t\tbody1.adjustBiasedVelocity(MathUtil.scale(impulse, body1.getInvMass()));\r\n\t\t\tbody1.adjustBiasedAngularVelocity((body1.getInvI() * MathUtil.cross(r1, impulse)));\r\n\r\n\t\t\tbody2.adjustBiasedVelocity(MathUtil.scale(impulse, -body2.getInvMass()));\r\n\t\t\tbody2.adjustBiasedAngularVelocity(-(body2.getInvI() * MathUtil.cross(r2, impulse)));\r\n\t\t\t\r\n\t\t\tisBroken = true;\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t} else if ( springLength < springSize ) {\r\n\t\t\tspringConst = compressedSpringConst;\r\n\t\t\tisBroken = false;\r\n\t\t} else { // if ( springLength >= springSize )\r\n\t\t\tspringConst = stretchedSpringConst;\r\n\t\t\tisBroken = false;\r\n\t\t}\r\n\t\t\r\n\t\tfloat springImpulse =\r\n\t\t\tinvDT != 0 ? springConst * (springLength - springSize) / invDT : 0;\r\n\r\n\t\t// apply the spring's forces\r\n\t\tVector2f impulse = MathUtil.scale(spring, springImpulse);\r\n\t\tbody1.adjustVelocity(MathUtil.scale(impulse, body1.getInvMass()));\r\n\t\tbody1.adjustAngularVelocity((body1.getInvI() * MathUtil.cross(r1, impulse)));\r\n\r\n\t\tbody2.adjustVelocity(MathUtil.scale(impulse, -body2.getInvMass()));\r\n\t\tbody2.adjustAngularVelocity(-(body2.getInvI() * MathUtil.cross(r2, impulse)));\r\n\t}", "private void physicsTickAlive() {\n\t\t// Physics stuff\n\t\tsetThrusts();\n\t\tmoveEverything(deltaTimeAlive);\n\t\tageScoreMarkers(deltaTimeAlive);\n\t\tshootBullets();\n\t\t\n\t\tcollideTankToWall();\n\t\tcollideTankToTank();\n\t\tcollideBulletToWall();\n\t\tcollideBulletToTank();\n\t}", "public void update() {\n \n // move\n // Update velocity\n velocity.add(acceleration);\n // Limit speed\n velocity.limit(maxspeed);\n location.add(velocity);\n // Reset accelertion to 0 each cycle\n acceleration.mult(0);\n \n // decay life\n leftToLive = lifespan - (millis() - birth);\n }", "protected void o()\r\n/* 156: */ {\r\n/* 157:179 */ int i = 15 - aib.b(this);\r\n/* 158:180 */ float f = 0.98F + i * 0.001F;\r\n/* 159: */ \r\n/* 160:182 */ this.xVelocity *= f;\r\n/* 161:183 */ this.yVelocity *= 0.0D;\r\n/* 162:184 */ this.zVelocity *= f;\r\n/* 163: */ }", "public void physics(double rate){\n\t\tfloat nextTop=0;\r\n\t\tif(getContained()==null){\r\n\t\t\tint year=Main.world.timeline.getTerra();\r\n\r\n\t\t\tgx=(int)Math.floor(x);\r\n\t\t\tgy=(int)Math.floor(y);\r\n\t\t\tif(gx<0){\r\n\t\t\t\tgx=0;\r\n\t\t\t}\r\n\t\t\tif(gy<0){\r\n\t\t\t\tgy=0;\r\n\t\t\t}\r\n\t\t\tMain.world.contacts(this);\r\n\t\t\tif(getTopObjects()>0){\r\n\t\t\t\ttop=getTopObjects();\r\n\t\t\t}else{\r\n\t\t\t\ttop=(Main.world.land.getHigh(year,gx,gy));\r\n\t\t\t}\r\n\r\n\t\t\tif(dx<pit){\r\n\t\t\t\tdx=pit;\r\n\t\t\t}\r\n\t\t\tif(dy<pit){\r\n\t\t\t\tdy=pit;\r\n\t\t\t}\r\n\t\t\tfloat mm=Main.level.getStats().getSize()-pit;\r\n\t\t\tif(dx>mm ){\r\n\t\t\t\tdx=mm;\r\n\t\t\t}\r\n\t\t\tif(dy>mm ){\r\n\t\t\t\tdy=mm;\r\n\t\t\t}\r\n\r\n\t\t\tnextTop=Main.world.land.getHigh(year,(int)Math.floor(dx), (int)Math.floor(dy));\r\n\t\t}else{\r\n\t\t\tfloat smx=getContained().boundsx;\r\n\t\t\tfloat smy=getContained().boundsy;\r\n\t\t\tfloat emx=getContained().boundex;\r\n\t\t\tfloat emy=getContained().boundey;\r\n\r\n\t\t\tif(dx<smx){\r\n\t\t\t\tdx=smx;\r\n\t\t\t}else if(dx>emx){\r\n\t\t\t\tdx=emx;\r\n\t\t\t}\r\n\r\n\t\t\tif(dy<smy){\r\n\t\t\t\tdy=smy;\r\n\t\t\t}else if(dy>emy){\r\n\t\t\t\tdy=emy;\r\n\t\t\t}\r\n\t\t\tgetContained().innerTouch(this);\r\n\t\t}\r\n\r\n\t\tint m=Main.level.getStats().getSize()-1;\r\n\t\tpz=z;\r\n\t\tz+=vz*rate;\r\n\t\tfloat hz=z-top;\r\n\t\tif(z<-2){\r\n\t\t\tz=-2;\r\n\t\t\tfallDamage();\r\n\t\t}\r\n\t\tif(hz>0){\r\n\t\t\tif(submerged()){\r\n\t\t\t\tvz-=UserData.getWaterGravity()*rate;\r\n\t\t\t\tif(vz<-1){\r\n\t\t\t\t\tvz=-1;\r\n\t\t\t\t}\r\n\t\t\t\tfloat zu=Main.world.land.getWaterHigh(gx,gy);\r\n\t\t\t\tfloat z1=zu;\r\n\t\t\t\tfloat z2=zu;\r\n\t\t\t\tfloat z3=zu;\r\n\t\t\t\tfloat z4=zu;\r\n\r\n\t\t\t\tif(gx>0){\r\n\t\t\t\t\tz1=Main.world.land.getWaterHigh(gx-1,gy);\r\n\t\t\t\t}\r\n\t\t\t\tif(gx<m){\r\n\t\t\t\t\tz2=Main.world.land.getWaterHigh(gx+1,gy);\r\n\t\t\t\t}\r\n\t\t\t\tif(gy>0){\r\n\t\t\t\t\tz3=Main.world.land.getWaterHigh(gx,gy-1);\r\n\t\t\t\t}\r\n\t\t\t\tif(gy<m){\r\n\t\t\t\t\tz4=Main.world.land.getWaterHigh(gx,gy+1);\r\n\t\t\t\t}\r\n\t\t\t\tif(z1>zu){\r\n\t\t\t\t\tvx+=rate;\r\n\t\t\t\t}\r\n\t\t\t\tif(z2>zu){\r\n\t\t\t\t\tvx-=rate;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(z3>zu){\r\n\t\t\t\t\tvy+=rate;\r\n\t\t\t\t}\r\n\t\t\t\tif(z4>zu){\r\n\t\t\t\t\tvy-=rate;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tvz-=UserData.getGravity()*rate;\r\n\t\t\t}\r\n\t\t\tgrounded=false;//vz>=-0.02;\r\n\t\t}else{\r\n\t\t\tif(!grounded){\r\n\t\t\t\tgrounded=true;\r\n\t\t\t\tland();\r\n\r\n\t\t\t}\r\n\t\t\tvz=0;\r\n\t\t\tz=top;\r\n\t\t}\r\n\r\n\t\tdx+=vx*rate;\r\n\t\tdy+=vy*rate;\r\n\r\n\t\tfloat sz=nextTop-z;\r\n\t\tfloat sx=(float) (rate*(dx-x)/5f);\r\n\t\tfloat sy=(float) (rate*(dy-y)/5f);\r\n\r\n\t\tif(sz<=stepHeight && Math.abs(vx)<0.01f && Math.abs(vy)<0.01f){\r\n\t\t\tpx=x;\r\n\t\t\tpy=y;\r\n\t\t\tx+=sx;\r\n\t\t\ty+=sy;\r\n\t\t}else{\r\n\t\t\tdx=x;\r\n\t\t\tdy=y;\r\n\t\t}\r\n\t\tif(Math.abs(sx)<0.006 &&Math.abs(sy)<0.006){\r\n\t\t\tmoving=false;\r\n\t\t}else{\r\n\t\t\tmoving=true;\r\n\t\t}\r\n\t}", "public void moveOneStep(double dt) {\n // If the balls speed is zero, do nothing.\n if (this.velocity == null) {\n return;\n }\n // Calculates the trajectory of the ball by checking it's end point after applying the velocity to the location.\n Point endPoint = new Point(this.getX() + (this.velocity.getDx() * dt * 1.25),\n this.getY() + (this.velocity.getDy() * dt * 1.25));\n Line trajectory = new Line(this.center, endPoint);\n CollisionInfo collisionCheck = gameEnvironment.getClosestCollision(trajectory);\n // If the ball doesn't collide w ith anything, move it as it's velocity dictates.\n if (collisionCheck == null) {\n this.center = this.getVelocity().applyToPoint(this.center, dt);\n } else {\n Rectangle colRect = collisionCheck.collisionObject().getCollisionRectangle();\n // Checks if the ball is stuck inside of the paddle. If it is, free it.\n if (this.center.getY() > colRect.getUpperLeft().getY()\n && this.center.getY() < colRect.getUpperLeft().getY() + colRect.getHeight()\n && this.center.getX() < colRect.getUpperLeft().getX() + colRect.getWidth()\n && this.center.getX() > colRect.getUpperLeft().getX()) {\n // offsets the ball y location to outside the paddle using the paddle y value and the balls' dy.\n if (collisionCheck.collisionPoint().getY() == colRect.getUpperLeft().getY() + colRect.getHeight()) {\n this.center = new Point(this.center.getX(), colRect.getUpperLeft().getY() + colRect.getHeight()\n + this.velocity.getDy() * dt);\n } else {\n this.center = new Point(this.center.getX(), colRect.getUpperLeft().getY() + colRect.getHeight()\n + this.velocity.getDy() * dt);\n }\n }\n // Calculates it's new direction after the hit and sets the ball to move in the new direction.\n Velocity newSpeed = collisionCheck.collisionObject().hit(this, collisionCheck.collisionPoint(), this\n .velocity);\n // If caught exception , reset the ball into it's starting position.\n if (newSpeed == null) {\n this.center = this.startingLoc;\n return;\n }\n this.velocity = newSpeed;\n }\n }", "public void update(){\n\t\t\tif (x<200){\n\t\t\t\txmoving=1; \n\t\t\t}\n\t\t\tif (x>900){ \n\t\t\t\txmoving=-.1; \n\t\t\t} \n\n\t\t\tx+=xmoving;\n\n\t}", "@Override\n\tpublic void update() {\n\t\tposX -= ninja.getSpeedX();\n\t\t\n\t}", "private void setInitialBallVelocity() {\n\t\tvx = rgen.nextDouble(1.0, 3.0);\n\t\tif (rgen.nextBoolean(0.5)) vx = -vx;\n\t\t\n\t\tvy = 3;\n\t}", "public void flap(){\n bird.setY(bird.getY() - 6);\n }", "@Override\n\tpublic void update(float delta) {\n\t\tupdateMotion();\n\n\t\t// set position of sprite and update frames\n\t\tsetPosition(body.getWorldCenter().x - getWidth() / 2, body.getWorldCenter().y - 25 / SonicBoom.PPM);\n\t\tsetRegion(getFrame(delta));\n\t\tstateTimer += delta;\n\n\t\t// update ring losing\n\t\tif (loseRing && tempRing > 0) {\n\t\t\tgame.gameObjects.spawnRing(body.getWorldCenter().add(-8 / SonicBoom.PPM, 70 / SonicBoom.PPM),\n\t\t\t\t\tr.nextInt(5) - 2, 3);\n\t\t\ttempRing--;\n\n\t\t\tif (tempRing <= 0) {\n\t\t\t\tloseRing = false;\n\t\t\t}\n\n\t\t\tgame.manager.get(\"Sound/Lose Rings.wav\", Sound.class).play();\n\t\t}\n\n\t\t// hurting time update\n\t\tif (hurt) {\n\t\t\thurtTime -= delta;\n\n\t\t\tif (hurtTime <= 0) {\n\t\t\t\thurt = false;\n\t\t\t}\n\t\t}\n\n\t\t// after dead update\n\t\tif (dead) {\n\t\t\tdeadTime -= delta;\n\n\t\t\tif (deadTime <= 0) {\n\t\t\t\tgame.setUpdateCam(false);\n\t\t\t}\n\t\t}\n\n\t\t// update contactAngle\n\t\tVector2 p1 = contactPoint;\n\t\tVector2 p2 = body.getWorldCenter();\n\n\t\tcontactAngle = (float) (Math.atan2(p2.y - p1.y, p2.x - p1.x) * 180 / Math.PI) - 90;\n\n\t\t// update rotation\n\t\tif (onLoop) {\n\t\t\trotation = contactAngle;\n\t\t\tsetRotation(rotation);\n\n\t\t\tdeLoopTime = delta;\n\t\t} else if (!onLoop && deLoopTime > 0) {\n\t\t\tdeLoopTime -= delta;\n\t\t}\n\t\tif (rotation > 0) {\n\t\t\trotation = rotation < 9.81f ? 0 : rotation - 9.81f;\n\t\t}\n\t\tif (rotation < 0) {\n\t\t\trotation = rotation > -9.81f ? 0 : rotation + 9.81f;\n\t\t}\n\t\tsetRotation(rotation);\n\n\t\t// update wrapper body\n\t\twrapperBody.setTransform(body.getWorldCenter(), (float) Math.toRadians(rotation));\n\n\t}", "public void move() {\n if (Math.abs(rx + vx) + radius > 1.0) bounceOffVerticalWall();\n if (Math.abs(ry + vy) + radius > 1.0) bounceOffHorizontalWall();\n rx = rx + vx;\n ry = ry + vy;\n }", "Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity);", "public void step(double timeStep){\n\t\t\n\t\t//Base case of the recursive implementation --> end if we've basically reached negligible\n\t\t//amounts of time\n\t\tif(timeStep < TIME_EPSILON){\n\t\t\treturn;\n\t\t}\n\t\t\n//\t\t//Modify the velocities of all of the balls according to gravity and friction\n//\t\tfor(Ball ball : balls){\n//\t\t\tdouble vY = ball.getVel().y();\n//\t\t\tdouble vX = ball.getVel().x();\n//\t\t double newVY = vY + GRAVITY * timeStep;\n//\t\t double newVX = vX * (1 - MU_1 * timeStep - MU_2 * Math.abs(vX) * timeStep);\n//\t\t newVY = newVY * (1 - MU_1 * timeStep - MU_2 * Math.abs(newVY) * timeStep);\n//\t\t \n//\t\t ball.setVel(new Vect(newVX, newVY));\n//\t\t}\n\t\t\n\t\tBall collisionBall1 = null;\n\t\tBall collisionBall2 = null;\n\t\tBall collisionBall3 = null;\n\t\tGadget collisionGadget = null;\n\t\t\n\t\t//With the current velocities and positions determine the time for the next ball-ball\n\t\t//collision as well as the balls that actually collide\n\t\tdouble minTimeUntilBallBallCollision = Double.POSITIVE_INFINITY;\n\t\t\n\t\tif(balls.size() > 1){\n\t\t\tcollisionBall1 = balls.get(0);\n\t\t\tcollisionBall2 = balls.get(1);\n\t\t\tfor(int i = 0; i < balls.size() - 1; i++){\n\t\t\t\tfor(int j = i + 1; j < balls.size(); j++){\n\t\t\t\t\tBall ball1 = balls.get(i);\n\t\t\t\t\tBall ball2 = balls.get(j);\n\t\t\t\t\tif(!ball1.getInAbsorber() && !ball2.getInAbsorber()){\t\n\t\t\t\t\t\tdouble timeUntilCollision = ball1.impactCalc(ball2)[0];\n\t\t\t\t\t\tif (timeUntilCollision < minTimeUntilBallBallCollision){\n\t\t\t\t\t\t\tminTimeUntilBallBallCollision = timeUntilCollision;\n\t\t\t\t\t\t\tcollisionBall1 = ball1;\n\t\t\t\t\t\t\tcollisionBall2 = ball2;\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\t\n\t\t//With the current velocities and positions determine the time for the next ball-gadget\n\t\t//collision and determine the objects involved in that collision\n\t\tdouble minTimeUntilBallGadgetCollision = Double.POSITIVE_INFINITY;\n\t\tif(balls.size() > 0 && gadgets.size() > 0){\n\t\t\tcollisionBall3 = balls.get(0);\n\t\t\tcollisionGadget = gadgets.get(0);\n\t\t\tfor(Ball b : balls){\n\t\t\t\tif(!b.getInAbsorber()){\n\t\t\t\t\tfor(Gadget g : gadgets){\n\t\t\t\t\t\tdouble timeUntilCollision = ((BoardObject) g).impactCalc(b)[0];\n\t\t\t\t\t\t//System.out.println(g.getID() + \" \" +timeUntilCollision);\n\t\t\t\t\t\tif (timeUntilCollision < minTimeUntilBallGadgetCollision){\n\t\t\t\t\t\t\tminTimeUntilBallGadgetCollision = timeUntilCollision;\n\t\t\t\t\t\t\tcollisionBall3 = b;\n\t\t\t\t\t\t\tcollisionGadget = g;\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\t\n\t\n\t\t\n\t\t//Trivially progress the board if the next determined collision of any kind doesn't happen\n\t\t//within the time step\n\t\tif(Math.min(minTimeUntilBallBallCollision, minTimeUntilBallGadgetCollision) > timeStep){\n\t\t\tprogress(timeStep - TIME_EPSILON);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//If a ball-ball collision happens within the time step, progress the board trivially until\n\t\t//just before the collision, modify the ball velocities accordingly and recursively call the\n\t\t//step function passing the remaining time as the argument for step()\n\t\tif(minTimeUntilBallBallCollision < minTimeUntilBallGadgetCollision){\n\t\t\tprogress(minTimeUntilBallBallCollision - TIME_EPSILON);\n\t\t\t\n\t\t\tVect ball1Vel = new Vect(collisionBall2.impactCalc(collisionBall1)[1], collisionBall2.impactCalc(collisionBall1)[2]);\n\t\t\tVect ball2Vel = new Vect(collisionBall1.impactCalc(collisionBall2)[1], collisionBall1.impactCalc(collisionBall2)[2]);\n\t\t\t\n\t\t\tcollisionBall1.setVel(ball1Vel);\n\t\t\tcollisionBall2.setVel(ball2Vel);\n\t\t\t\n\t\t\tstep(timeStep - minTimeUntilBallBallCollision);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//In the final case, a ball-gadget collision occurs within the time step. In this case we\n\t\t//progress the board trivially until just before the collision, modify the ball velocity\n\t\t//and trigger the gadget. Then recursively call the step function passing the remaining time \n\t\t//as the argument for step()\n\t\t\n\t\tprogress(minTimeUntilBallGadgetCollision - TIME_EPSILON);\n\t\t\n\t\tVect ball3Vel = new Vect(((BoardObject)collisionGadget).impactCalc(collisionBall3)[1], ((BoardObject)collisionGadget).impactCalc(collisionBall3)[2]);\n\t\t\n\t\tif(collisionGadget instanceof Absorber){\n\t\t\tcollisionBall3.setVel(new Vect(0,0));\n\t\t\tVect newPos = new Vect(collisionGadget.getX() + collisionGadget.getWidth() - 0.25, collisionGadget.getY() + collisionGadget.getHeight() - 0.25);\n\t\t\tcollisionBall3.setPos(newPos);\n\t\t\tcollisionBall3.setInAbsorber(true);\n\t\t\t((Absorber) collisionGadget).addBallToAbsorber(collisionBall3);\n\t } else if(!(collisionGadget instanceof OuterWall) || ((OuterWall)collisionGadget).getConnectedBoard() == this && ((OuterWall)collisionGadget).getConnectedWall().equals(collisionGadget.getID())){\n\t\t\tcollisionBall3.setVel(ball3Vel);\n\t\t} else{\n\t\t\t//TODO @DANA, this has to do with the client/server ball passing stuff\n\t\t}\n\t\t\n\t\n\t\tcollisionGadget.trigger();\n\n\t\t\n\t\tstep(timeStep - minTimeUntilBallBallCollision);\n\t\treturn;\t\n\t}", "@Override\n\tpublic void onUpdate() {\n\t\tif(!world.isRemote && !firstTick) {\n\t\t\tLCNetwork.net.sendToAllAround(new MessageSyncTNT(this), \n\t\t\t\t\tnew TargetPoint(this.dimension, this.posX, this.posY, this.posZ, 1024));\n\t\t\tfirstTick = true;\n\t\t}\n\t\t\n\t\tthis.prevPosX = this.posX;\n\t\tthis.prevPosY = this.posY;\n\t\tthis.prevPosZ = this.posZ;\n\t\tthis.motionY -= 0.03999999910593033D;\n\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\tthis.motionX *= 0.9800000190734863D;\n\t\tthis.motionY *= 0.9800000190734863D;\n\t\tthis.motionZ *= 0.9800000190734863D;\n\n\t\tif (this.onGround)\n\t\t{\n\t\t\tthis.motionX *= 0.699999988079071D;\n\t\t\tthis.motionZ *= 0.699999988079071D;\n\t\t\tthis.motionY *= -0.5D;\n\t\t}\n\n\t\tif (this.fuse-- <= 0)\n\t\t{\n\t\t\tthis.setDead();\n\n\t\t\tif (!this.world.isRemote)\n\t\t\t{\n\t\t\t\tthis.explode();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.world.spawnParticle(EnumParticleTypes.SMOKE_LARGE, this.posX, this.posY + 0.5D, this.posZ, 0.0D, 0.0D, 0.0D);\n\t\t}\n\t}", "public void act()\r\n {\n if (Greenfoot.getRandomNumber(1000)< flyRate)\r\n {\r\n addObject(new Fly(), getWidth(), Greenfoot.getRandomNumber(300));\r\n //flyRate++;\r\n }\r\n }", "@Override\n public List<Velocity> initialBallVelocities() {\n List<Velocity> ballsVelocities = new ArrayList<Velocity>();\n\n //Ball's Velocities\n int y = -8;\n for (int i = 0; i < 5; i++) {\n ballsVelocities.add(new Velocity(i + 1, y));\n ballsVelocities.add(new Velocity(-1 * (i + 1), y));\n y += 1;\n }\n return ballsVelocities;\n }", "public void move() {\n\t\tsuper.move();\n\t\t\n\t\t// if the slime hit the ground\n\t\tif (y >= 64*2) {\n\t\t\t// begin sliding (only needed for the first time he falls)\n\t\t\tif (accel_x != .25 && accel_x != duck_accel_x) accel_x = .25;\n\t\t\t\n\t\t\t// allow player to jump, since vel_y = 0 stops the jump\n\t\t\tif (jumping)\n\t\t\t\tjumping = false;\n\t\t\telse\n\t\t\t\tvel_y = 0;\n\t\t\t\n\t\t\t// slime is slightly lower while ducking\n\t\t\tif (ducking)\n\t\t\t\ty = 64*2+20;\n\t\t\telse\n\t\t\t\ty = 64*2;\n\t\t}\n\t\t\n\t\t// bounce if the slime hit the top\n\t\tif (y < 0) vel_y *= -1;\n\t}", "public void basicMotion() {\r\n\t\tPVector v = behavior.behavior(obj.getMotion());\r\n\t\tobj.getMotion().setVelocity(v);\r\n\t\t\r\n\t\tobj.getMotion().kinematicUpdate();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfloat x = obj.getMotion().getPosition().x;\r\n\t\tfloat y = obj.getMotion().getPosition().y;\r\n\t\tif(y <= turnCornerMin ) {\r\n\t\t\tbehavior.setDest(turnCornerMax,turnCornerMin);\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(x >= turnCornerMax) {\r\n\t\t\tbehavior.setDest(turnCornerMax, turnCornerMax);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif(y >= turnCornerMax) {\r\n\t\t\tbehavior.setDest(turnCornerMin, turnCornerMax);\r\n\t\t}\r\n\t\t\r\n\t\tif(x < turnCornerMin) {\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tobj.updateObjKinematics(x, y, obj.getMotion().getOrientation());\r\n\t}", "public void fall(){\n int vSpeed=30;\r\n if(canMove(0,vSpeed)==true){\r\n setLocation(getX(), getY()+vSpeed) ;\r\n Greenfoot.playSound(\"fall.wav\"); //(Volkovsound,2017)\r\n \r\n }\r\n }", "public void act() \n {\n gravity();\n animate();\n }", "public void jump(){\n if(onGround)\n y_velocity = -0.45f;\n }", "void do_physics(CAR car, double delta_t) {\n// sn = Math.sin(car.angle);\n// cs = Math.cos(car.angle);\n//\n// velocity.x = cs * car.velocity_wc.y + sn * car.velocity_wc.x;\n// velocity.y = cs * car.velocity_wc.x - sn * car.velocity_wc.y;\n//\n// double yawSpeed = 0.5 * car.cartype.wheelbase * car.angularvelocity;\n//\n// double rotationAngle = 0;\n// double sideSlip = 0;\n// if (velocity.x != 0) {\n// //car is moving forwards\n// rotationAngle = Math.atan(yawSpeed / velocity.x);\n// }\n//\n// if (velocity.x != 0) {\n// sideSlip = Math.atan(velocity.y / velocity.x);\n// }\n//\n// if (velocity.x == 0) {\n// car.angularvelocity = 0;\n// }\n//\n//\n// double slipAngleFront = sideSlip + rotationAngle - car.steerangle;\n// double slipAngleRear = sideSlip - rotationAngle;\n//\n// // weight per axle = half car mass times 1G (=9.8m/s^2)\n// double weight = car.cartype.mass * 9.8 * 0.5;\n//\n// Vector2D frontWheelLateralForce = new Vector2D();\n// frontWheelLateralForce.setX(0);\n// frontWheelLateralForce.setY(normalise(-MAX_GRIP, MAX_GRIP, CA_F * slipAngleFront));\n// frontWheelLateralForce.setY(frontWheelLateralForce.getY() * weight);\n//\n// if (front_slip == 1) {\n// frontWheelLateralForce.setY(frontWheelLateralForce.getY() * 0.5d);\n// }\n//\n// Vector2D rearWheelLateralForce = new Vector2D();\n// rearWheelLateralForce.setX(0);\n// rearWheelLateralForce.setY(normalise(-MAX_GRIP, MAX_GRIP, CA_R * slipAngleRear));\n// rearWheelLateralForce.setY(rearWheelLateralForce.getY() * weight);\n//\n// if (rear_slip == 1) {\n// rearWheelLateralForce.setY(rearWheelLateralForce.getY() * 0.5d);\n// }\n//\n//\n// Vector2D tractionForce = new Vector2D();\n// tractionForce.setX(100 * (car.throttle - car.brake * SGN(velocity.x)));\n// tractionForce.setY(0);\n//\n// if (rear_slip == 1) {\n// tractionForce.setX(tractionForce.getX() * 0.5d);\n// }\n//\n// Vector2D resistance = new Vector2D();\n// double rollingResistanceX = -RESISTANCE * velocity.x;\n// double rollingResistanceY = -RESISTANCE * velocity.y;\n// double dragResistanceX = -DRAG * velocity.x * ABS(velocity.x);\n// double dragResistanceY = -DRAG * velocity.y * ABS(velocity.y);\n// resistance.setX(rollingResistanceX + dragResistanceX);\n// resistance.setY(rollingResistanceY + dragResistanceY);\n//\n// // sum forces\n// Vector2D totalForce = new Vector2D();\n// double frontWheelLateralX = Math.sin(car.steerangle) * frontWheelLateralForce.getX();\n// double rearWheelLateralX = rearWheelLateralForce.getX();\n// double frontWheelLateralY = Math.cos(car.steerangle) * frontWheelLateralForce.getY();\n// double rearWheelLateralY = rearWheelLateralForce.getY();\n//\n// totalForce.setX(tractionForce.getX() + frontWheelLateralX + rearWheelLateralX + resistance.getX());\n// totalForce.setY(tractionForce.getY() + frontWheelLateralY + rearWheelLateralY + resistance.getY());\n//\n//\n// double frontTorque = frontWheelLateralForce.getY() * car.cartype.b;\n// double rearTorque = rearWheelLateralForce.getY() * car.cartype.c;\n// double torque = frontTorque - rearTorque;\n//\n// Vector2D acceleration = new Vector2D();\n// acceleration.setX(totalForce.getX() / car.cartype.mass);\n// acceleration.setY(totalForce.getY() / car.cartype.mass);\n// // Newton F = m.a, therefore a = F/m\n// //TODO: add inertia to the vehicle\n// double angularAcceleration = torque / car.cartype.inertia;\n//\n// acceleration.setX(normalise(acceleration.getX(), 0.1d));\n// acceleration.setY(normalise(acceleration.getY(), 0.1d));\n//\n//\n// Vector2D worldReferenceAcceleration = new Vector2D();\n// worldReferenceAcceleration.setX(cs * acceleration.getY() + sn * acceleration.getX());\n// worldReferenceAcceleration.setY(-sn * acceleration.getY() + cs * acceleration.getX());\n//\n// // velocity is integrated acceleration\n// Vector2D worldReferenceVelocity = new Vector2D();\n// worldReferenceVelocity.setX(car.velocity_wc.x + (delta_t * worldReferenceAcceleration.getX()));\n// worldReferenceVelocity.setY(car.velocity_wc.y + (delta_t * worldReferenceAcceleration.getY()));\n//\n// // position is integrated velocity\n// Vector2D newPosition = new Vector2D();\n// newPosition.setX(delta_t * worldReferenceVelocity.getX() + car.position_wc.x);\n// newPosition.setY(delta_t * worldReferenceVelocity.getY() + car.position_wc.y);\n//\n//\n// car.velocity_wc.x = normalise(worldReferenceVelocity.getX(), 0.1d);\n// car.velocity_wc.y = normalise(worldReferenceVelocity.getY(), 0.1d);\n//\n// if (car.velocity_wc.x == 0 && car.velocity_wc.y == 0) {\n// car.angularvelocity = 0;\n// } else {\n// car.angularvelocity += delta_t * angularAcceleration;\n// }\n//\n// car.angle += delta_t * car.angularvelocity;\n// car.position_wc.x = newPosition.getX();\n// car.position_wc.y = newPosition.getY();\n//\n// /**\n\n sn = Math.sin(car.angle);\n cs = Math.cos(car.angle);\n\n // SAE convention: x is to the front of the car, y is to the right, z is down\n // transform velocity in world reference frame to velocity in car reference frame\n velocity.x = cs * car.velocity_wc.y + sn * car.velocity_wc.x;\n velocity.y = -sn * car.velocity_wc.y + cs * car.velocity_wc.x;\n\n // Lateral force on wheels\n //\n // Resulting velocity of the wheels as result of the yaw rate of the car body\n // v = yawrate * r where r is distance of wheel to CG (approx. half wheel base)\n // yawrate (ang.velocity) must be in rad/s\n //\n yawspeed = car.cartype.wheelbase * 0.5 * car.angularvelocity;\n\n if (velocity.x == 0) // TODO: fix Math.singularity\n rot_angle = 0;\n else\n rot_angle = Math.atan(yawspeed / velocity.x);\n // Calculate the side slip angle of the car (a.k.a. beta)\n if (velocity.x == 0) // TODO: fix Math.singularity\n sideslip = 0;\n else\n sideslip = Math.atan(velocity.y / velocity.x);\n\n // Calculate slip angles for front and rear wheels (a.k.a. alpha)\n slipanglefront = sideslip + rot_angle - car.steerangle;\n slipanglerear = sideslip - rot_angle;\n\n // weight per axle = half car mass times 1G (=9.8m/s^2)\n weight = car.cartype.mass * 9.8 * 0.5;\n\n // lateral force on front wheels = (Ca * slip angle) capped to friction circle * load\n flatf.x = 0;\n flatf.y = CA_F * slipanglefront;\n flatf.y = Math.min(MAX_GRIP, flatf.y);\n flatf.y = Math.max(-MAX_GRIP, flatf.y);\n flatf.y *= weight;\n if (front_slip == 1)\n flatf.y *= 0.5;\n\n // lateral force on rear wheels\n flatr.x = 0;\n flatr.y = CA_R * slipanglerear;\n flatr.y = Math.min(MAX_GRIP, flatr.y);\n flatr.y = Math.max(-MAX_GRIP, flatr.y);\n flatr.y *= weight;\n if (rear_slip == 1)\n flatr.y *= 0.5;\n\n // longtitudinal force on rear wheels - very simple traction model\n ftraction.x = 100 * (car.throttle - car.brake * SGN(velocity.x));\n ftraction.y = 0;\n if (rear_slip == 1)\n ftraction.x *= 0.5;\n\n // Forces and torque on body\n\n // drag and rolling resistance\n resistance.x = -(RESISTANCE * velocity.x + DRAG * velocity.x * ABS(velocity.x));\n resistance.y = -(RESISTANCE * velocity.y + DRAG * velocity.y * ABS(velocity.y));\n\n // sum forces\n force.x = ftraction.x + Math.sin(car.steerangle) * flatf.x + flatr.x + resistance.x;\n force.y = ftraction.y + Math.cos(car.steerangle) * flatf.y + flatr.y + resistance.y;\n\n // torque on body from lateral forces\n torque = car.cartype.b * flatf.y - car.cartype.c * flatr.y;\n\n // Acceleration\n\n // Newton F = m.a, therefore a = F/m\n acceleration.x = force.x / car.cartype.mass;\n acceleration.y = force.y / car.cartype.mass;\n angular_acceleration = torque / car.cartype.inertia;\n\n // Velocity and position\n\n // transform acceleration from car reference frame to world reference frame\n acceleration_wc.x = cs * acceleration.y + sn * acceleration.x;\n acceleration_wc.y = -sn * acceleration.y + cs * acceleration.x;\n\n // velocity is integrated acceleration\n //\n car.velocity_wc.x += delta_t * acceleration_wc.x;\n car.velocity_wc.y += delta_t * acceleration_wc.y;\n\n // position is integrated velocity\n //\n car.position_wc.x += delta_t * car.velocity_wc.x;\n car.position_wc.y += delta_t * car.velocity_wc.y;\n\n\n // Angular velocity and heading\n\n // integrate angular acceleration to get angular velocity\n //\n car.angularvelocity += delta_t * angular_acceleration;\n\n // integrate angular velocity to get angular orientation\n //\n car.angle += delta_t * car.angularvelocity;\n\n }", "public void updatePhysics() {\n ball.setLayoutX(ball.getLayoutX() + velX);\n ball.setLayoutY(ball.getLayoutY() - velY);\n\n velY += accelY;\n velX += accelX;\n }", "private void bounceOffHorizontalWall() {\n vy = -vy;\n }", "public void knockBack(Entity entity, float par2, double par3, double par5, double par6) {\n\t\tif (this.rand.nextDouble() >= this.getEntityAttribute(SharedMonsterAttributes.KNOCKBACK_RESISTANCE).getAttributeValue()) {\n\t\t\tthis.isAirBorne = true;\n\t\t\tfloat f1 = MathHelper.sqrt_double(par3 * par3 + par5 * par5);\n\t\t\tfloat f2 = 0.4F;\n\t\t\tthis.motionX /= 2.0D;\n\t\t\tthis.motionY /= 2.0D;\n\t\t\tthis.motionZ /= 2.0D;\n\t\t\tthis.motionX -= par3 / (double)f1 * (double)f2;\n\t\t\tthis.motionY += (double)f2;\n\t\t\tthis.motionZ -= par5 / (double)f1 * (double)f2;\n\t\t\tif (this.motionY > par6) {\n\t\t\t\tthis.motionY = par6;\n\t\t\t}\n\t\t}\n\t}", "private void moveBall() {\n\t\tball.move(vx,vy);\n\t\tpause(10);\t\n\t\t\n\t}", "private void fall()\n {\n\t\tif (handler.getWorld().AsteroidCount < 200)\n\t\t{\n \tdeltaX = 0;\n \tdeltaY = speed;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (x < player.getX())\n\t\t\t{\n\t\t\t\tdeltaX = speed;\n\t\t\t\tdeltaY = speed;\n\t\t\t}\n\t\t\tif (x > player.getX()+player.getWidth())\n\t\t\t{\n\t\t\t\tdeltaX = -speed;\n\t\t\t\tdeltaY = speed;\n\t\t\t}\n\t\t}\n }", "public void move() {\n\t\tdy += acceleration;\n\t\tupdateTail();\n\t\ty += dy;\n\t}", "@Override\r\n\tpublic void tick() {\r\n\t\tx+=speed;\r\n\t}", "public void update(float delta)\n {\n\n x = acceleration.x;\n y = acceleration.y;\n x = x * delta; //to scale by frame rate to keep things smooth\n y = y * delta;\n\n velocity.add(x, y); //sets new velocity\n\n if(velocity.y >350)\n {\n velocity.y = 350;\n //Gdx.app.log(\"Block\", \"MAX SPEED\");\n }\n\n x = velocity.x;\n y = velocity.y;\n x = x * delta;\n y = y * delta;\n\n position.add(x,y); //sets new position\n\n //position.add(velocity.cpy().scl(delta));\n\n rect.set(position.x, position.y, width,height);\n\n if(position.y > gameHeight) //determine if object is still on screen\n {\n isScrolled = true;\n }\n }", "public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }", "public void bounce(Paddle paddle) {\n if(hit(paddle)) {\n // ball to the right\n boolean right = paddle.getCenterX() < ball.getCenterX();\n\n if(Math.abs(paddle.getCenterY() - ball.getCenterY()) >= 8 || angle % Math.PI == 0) {\n angle = ((right ? 0 : Math.PI) - Math.atan((right ? 1 : -1) * (paddle.getCenterY() - ball.getCenterY()) / paddle.getWidth())) % (2 * Math.PI);\n } else {\n angle = Math.PI - angle;\n ball.setCenterX( paddle.getRectangle().getX() + (right ? (paddle.getWidth() + ball.getRadius()) : -ball.getRadius() ) );\n }\n\n setSpeed( Math.abs(paddle.getCenterY() - ball.getCenterY()) / 25 + 1);\n }\n }", "@Override\n\tpublic void onUpdate()\n\t{\n\t\tthis.lastTickPosX = this.posX;\n\t\tthis.lastTickPosY = this.posY;\n\t\tthis.lastTickPosZ = this.posZ;\n\t\tsuper.onUpdate();\n\n\t\tif (this.throwableShake > 0)\n\t\t{\n\t\t\t--this.throwableShake;\n\t\t}\n\n\t\tif (this.inGround)\n\t\t{\n\t\t\tif (this.worldObj.getBlockState(this.getPosition()).getBlock() == this.inTile)\n\t\t\t{\n\t\t\t\t++this.ticksInGround;\n\n\t\t\t\tif (this.ticksInGround == 1200)\n\t\t\t\t{\n\t\t\t\t\tthis.setDead();\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.inGround = false;\n\t\t\tthis.motionX *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionY *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.motionZ *= this.rand.nextFloat() * 0.2F;\n\t\t\tthis.ticksInGround = 0;\n\t\t\tthis.ticksInAir = 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t++this.ticksInAir;\n\t\t}\n\n\t\tVec3 vec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tVec3 vec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\t\tMovingObjectPosition movingobjectposition = this.worldObj.rayTraceBlocks(vec3, vec31);\n\t\tvec3 = new Vec3(this.posX, this.posY, this.posZ);\n\t\tvec31 = new Vec3(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tvec31 = new Vec3(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord);\n\t\t}\n\n\t\tif (!this.worldObj.isRemote)\n\t\t{\n\t\t\tEntity entity = null;\n\t\t\tList list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this,\n\t\t\t\t\tthis.getEntityBoundingBox().addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));\n\t\t\tdouble d0 = 0.0D;\n\t\t\tEntityLivingBase entitylivingbase = this.getThrower();\n\n\t\t\tfor (Object obj : list)\n\t\t\t{\n\t\t\t\tEntity entity1 = (Entity) obj;\n\n\t\t\t\tif (entity1.canBeCollidedWith() && ((entity1 != entitylivingbase) || (this.ticksInAir >= 5)))\n\t\t\t\t{\n\t\t\t\t\tfloat f = 0.3F;\n\t\t\t\t\tAxisAlignedBB axisalignedbb = entity1.getEntityBoundingBox().expand(f, f, f);\n\t\t\t\t\tMovingObjectPosition movingobjectposition1 = axisalignedbb.calculateIntercept(vec3, vec31);\n\n\t\t\t\t\tif (movingobjectposition1 != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble d1 = vec3.distanceTo(movingobjectposition1.hitVec);\n\n\t\t\t\t\t\tif ((d1 < d0) || (d0 == 0.0D))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tentity = entity1;\n\t\t\t\t\t\t\td0 = d1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (entity != null)\n\t\t\t{\n\t\t\t\tmovingobjectposition = new MovingObjectPosition(entity);\n\t\t\t}\n\t\t}\n\n\t\tif (movingobjectposition != null)\n\t\t{\n\t\t\tif ((movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)\n\t\t\t\t\t&& (this.worldObj.getBlockState(movingobjectposition.getBlockPos()).getBlock() == Blocks.portal))\n\t\t\t{\n\t\t\t\tthis.inPortal = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.onImpact(movingobjectposition);\n\t\t\t}\n\t\t}\n\n\t\tthis.posX += this.motionX;\n\t\tthis.posY += this.motionY;\n\t\tthis.posZ += this.motionZ;\n\t\tfloat f1 = MathHelper.sqrt_double((this.motionX * this.motionX) + (this.motionZ * this.motionZ));\n\t\tthis.rotationYaw = (float) ((Math.atan2(this.motionX, this.motionZ) * 180.0D) / Math.PI);\n\n\t\tfor (this.rotationPitch = (float) ((Math.atan2(this.motionY, f1) * 180.0D) / Math.PI); (this.rotationPitch\n\t\t\t\t- this.prevRotationPitch) < -180.0F; this.prevRotationPitch -= 360.0F)\n\t\t{\n\t\t}\n\n\t\twhile ((this.rotationPitch - this.prevRotationPitch) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationPitch += 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) < -180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw -= 360.0F;\n\t\t}\n\n\t\twhile ((this.rotationYaw - this.prevRotationYaw) >= 180.0F)\n\t\t{\n\t\t\tthis.prevRotationYaw += 360.0F;\n\t\t}\n\n\t\tthis.rotationPitch = this.prevRotationPitch + ((this.rotationPitch - this.prevRotationPitch) * 0.2F);\n\t\tthis.rotationYaw = this.prevRotationYaw + ((this.rotationYaw - this.prevRotationYaw) * 0.2F);\n\t\tfloat f2 = 0.99F;\n\t\tfloat f3 = this.getGravityVelocity();\n\n\t\tif (this.isInWater())\n\t\t{\n\t\t\tfor (int i = 0; i < 4; ++i)\n\t\t\t{\n\t\t\t\tfloat f4 = 0.25F;\n\t\t\t\tthis.worldObj.spawnParticle(EnumParticleTypes.WATER_BUBBLE, this.posX - (this.motionX * f4), this.posY - (this.motionY * f4),\n\t\t\t\t\t\tthis.posZ - (this.motionZ * f4), this.motionX, this.motionY, this.motionZ);\n\t\t\t}\n\n\t\t\tf2 = 0.8F;\n\t\t}\n\n\t\tthis.motionX *= f2;\n\t\tthis.motionY *= f2;\n\t\tthis.motionZ *= f2;\n\t\tthis.motionY -= f3;\n\t\tthis.setPosition(this.posX, this.posY, this.posZ);\n\t}", "abstract public double timeUntilCollision(Ball ball);", "public void tick() {\n\r\n\t\tdouble angle = Math.atan2(getY()-y, getX()-x);\r\n\t\tif(seeking||Math.sqrt(((getX()-x)/1000)*((getX()-x)/1000)+((getY()-y)/1000)*((getY()-y)/1000))*1000>range[stage]){\r\n\r\n\t\t\tx += (int)(speed *Math.cos(angle));\r\n\t\t\ty += (int)(speed *Math.sin(angle));\t\t\r\n\t\t}else if(stage==0){\r\n\t\t\tstage=1;\r\n\t\t}\r\n\t\telse seeking = true;\r\n\t\tif(health<=0)\r\n\t\t{\r\n\t\t\tHandler.removeObject(this);\r\n\t\t\trage = rage + 1;\r\n\r\n\t\t}\r\n\t}", "public void moveBird() {\n\t\t// your code here\n\t\txBird += xVelo;\n\t\tyBird += yVelo;\n\t\t\n\t\tif(gSwitch) {\n\t\t\tyVelo += G;\n\t\t}\n\t\t\n\t\tif (yI >= W_HEIGHT) {\n\t\t\txI = 200; yI = 300;\n\t\t\tgSwitch = false;\n\t\t\txVelo = 0; yVelo = 0;\n\t\t\t}\n\t\t}", "public void randomWalk(){\r\n int newAngle = (int) ( (double) Math.random() * 360) ;\r\n\r\n super.xVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n super.yVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n }", "public static void new_speed( Body body, double t ){\r\n body.currentState.vx = body.currentState.vx + body.currentState.ax * t; // new x velocity\r\n body.currentState.vy = body.currentState.vy + body.currentState.ay * t; // new y velocity\r\n body.currentState.vz = body.currentState.vz + body.currentState.az * t; // new z velocity\r\n }", "public void moveOneStep() {\n if (velocity.getDx() < 0 && this.center.getX() - this.radius < bottomLeftBound) {\n this.setVelocity(-velocity.getDx(), velocity.getDy());\n } else if (velocity.getDx() > 0 && this.center.getX() + this.radius > bottomRightBound) {\n this.setVelocity(-velocity.getDx(), velocity.getDy());\n }\n if (velocity.getDy() < 0 && this.center.getY() - this.radius < topLeftBound) {\n this.setVelocity(velocity.getDx(), -velocity.getDy());\n } else if (velocity.getDy() > 0 && this.center.getY() + this.radius > topRightBound) {\n this.setVelocity(velocity.getDx(), -velocity.getDy());\n }\n this.center = this.getVelocity().applyToPoint(this.center);\n }", "private void move() {\n if(this.movement[0]) {\n moveRight();\n } else {\n moveLeft();\n }\n if(this.movement[1]) {\n moveDown();\n } else {\n moveUp();\n }\n\n //Checking boundaries of the game\n if(this.XPosition + this.ballWidth > instance.getWidth()) {\n this.movement[0] = false;\n } else if(XPosition <= 0) {\n this.movement[0] = true;\n } else if(YPosition <= 0) {\n this.movement[1] = true;\n } else if(YPosition + ballHeight >= instance.getHeight()) {\n instance.missedBall();\n if (instance.getBalls() > 0){\n this.lostLife.play();\n }\n this.XPosition = instance.getWidth() / 2;\n this.YPosition = instance.getHeight() - 43;\n this.movement[1] = false;\n Player.setPlayerX((instance.getWidth() - 111) / 2);\n Player.setPlayerY(instance.getHeight() - 19);\n instance.isPaused(true);\n }\n\n if (this.boundingBox.intersects(this.playerBoundingBox)){\n Rectangle leftHalfOfPlayer = new Rectangle((int)this.playerBoundingBox.getWidth() / 2, (int)this.playerBoundingBox.getHeight(),\n this.playerBoundingBox.x, this.playerBoundingBox.y);\n this.movement[0] = !this.boundingBox.intersects(leftHalfOfPlayer);\n this.movement[1] = false;\n } else {\n // Check if ball collides with brick;\n for (Bricks[] bricks : instance.getBricks()){\n for (Bricks brick: bricks){\n if (brick.collidesWith(new Rectangle(this.XPosition , this.YPosition , this.ballWidth , this.ballHeight))){\n Rectangle iRect = brick.brickHitBox.intersection(this.boundingBox);\n brick.destroy();\n //Sound brickBreak = new Sound(\"res/Break-Sound.wav\");\n this.brickBreak.play();\n // make logic\n this.movement[1] = true;\n if ((this.boundingBox.x+(this.boundingBox.width/2))<(iRect.x+(iRect.width/2))) {\n this.movement[0] = false;\n }\n if ((this.boundingBox.x+(this.boundingBox.width/2))>(iRect.x+(iRect.width/2))) {\n this.movement[0] = true;\n }\n if ((this.boundingBox.y+(this.boundingBox.height/2))<(iRect.y+(iRect.height/2))) {\n this.movement[1] = false;\n }\n }\n }\n }\n\n }\n\n }", "public void update() {\n if (!outOfBounds()) {\n super.move(dirVec.mul(ShadowDefend.getTimescale() * speed));\n }\n super.update();\n }", "public void fall() {\n\t\t// getSpeed().setY(-stats.getGRAVITY());\n\t\tsetBlock_up(false);\n\t}", "public SpringJoint(Body b1, Body b2, ROVector2f anchor1, ROVector2f anchor2) {\r\n\t\tid = NEXT_ID++;\r\n\t\t\r\n\t\tstretchedSpringConst = 100;\r\n\t\tcompressedSpringConst = 100;\r\n\t\tbrokenSpringConst = 100;\r\n\t\t\r\n\t\tVector2f spring = new Vector2f(anchor1);\r\n\t\tspring.sub(anchor2);\r\n\t\tspringSize = spring.length();\r\n\t\tminSpringSize = 0;\r\n\t\tmaxSpringSize = 2 * springSize;\r\n\t\t\r\n\t\tset(b1,b2,anchor1,anchor2);\r\n\t}", "public void collideBoundary(){\n\t \tint bulletBouncer = 0;\n\t \tif ((this.getPosition()[0]-(this.getRadius()) <= 0.0 || (this.getPosition()[0]+(this.getRadius()) >= this.superWorld.getWorldWidth()))){\n\t \t\tif (this instanceof Bullet){\n\t \t\t\tbulletBouncer++;\n\t \t}\n\t \t\tthis.velocity.setXYVelocity( this.velocity.getVelocity()[0] * -1);\n\t \t}\n\t \tif ((this.getPosition()[1]-(this.getRadius()) <= 0.0 || (this.getPosition()[1]+(this.getRadius()) >= this.superWorld.getWorldHeight()))){\n\t \t\tif (this instanceof Bullet){\n\t \t\tbulletBouncer++;\n\t \t}\n\t \t\tthis.velocity.setYVelocity(this.velocity.getVelocity()[1] * -1);\n\t \t} \t\n\t \tif (this instanceof Bullet){\n\t \tBullet bullet = (Bullet) this;\n\t \tfor (int i = 0; i < bulletBouncer; i++){\n\t \t\tif (!bullet.isTerminated())\n\t \t\tbullet.bouncesCounter();\n\t \t}\n\t \t}\n\t }", "private void fall(){\n \n if(getYFromCamera() > -20 && getYFromCamera() < 20){\n getWorld().setCameraLocation(getGlobalX(),getGlobalY() + vSpeed);\n }\n World w = getWorld();\n Level currentLevel = (Level)(w);\n currentLevel.checkHeight(getGlobalY());\n setGlobalLocation(getGlobalX(), getGlobalY() + vSpeed);\n vSpeed = vSpeed + acceleration;\n changeJumping(true);\n }", "private void BC_bend(Grid gr){\r\n int i, j;\r\n double theta, rate, um, vm, pi=Math.PI;\r\n NSmax=(int)(30.0/dt); repL=0.1;\r\n\t\r\n // boundary conditions of lower side of computational domain\r\n for(i = 0; i<mx; i++) BClow[i]=\"wall\"; \r\n // boundary conditions on upper side \r\n for(i = 0; i<mx; i++) BCupp[i]=\"wall\";\r\n // boundary conditions on left side\r\n for(j = 0; j<my; j++) BClef[j]=\"in\";\r\n // boundary conditions of right side\r\n for(j = 0; j<my; j++) BCrig[j]=\"out\";\r\n\t\t\r\n // initial conditions; all those on other sides are zero. \r\n rate=0.5*pi/(double)(gr.mxRout-gr.mxRin); \r\n for(i = 0; i <= gr.mxRout; i++){ \r\n if(i <= gr.mxRin){ \r\n for(j = 1; j < mym; j++) \t u[i][j]=Umean;\r\n // u[i][j]=2.0*Umean*(1.0-4.0*(gr.y[1][j]+1.0)*(gr.y[1][j]+1.0)); \r\n }else{\r\n theta=rate*(double)(i-gr.mxRin);\r\n for(j = 1; j< mym; j++) u[i][j]=u[0][j]*Math.cos(theta);\r\n }\r\n }\r\n\t\t\r\n for(i = gr.mxRin+1; i < mx; i++){ \r\n if(i <= gr.mxRout){\r\n theta=rate*(double)(i-gr.mxRin);\r\n for(j = 1; j < mym; j++) v[i][j]=u[0][j]*Math.sin(theta);\r\n }else{\r\n for(j = 1; j < mym; j++) v[i][j]=u[0][j];\r\n }\r\n }\r\n }", "public void movement()\n\t{\n\t\tballoonY = balloonY + speedBalloonY1;\n\t\tif(balloonY > 700)\n\t\t{\n\t\t\tballoonY = -50;\n\t\t\tballoonX = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon2Y = balloon2Y + speedBalloonY2;\n\t\tif(balloon2Y > 700)\n\t\t{\n\t\t\tballoon2Y = -50;\n\t\t\tballoon2X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon3Y = balloon3Y + speedBalloonY3;\n\t\tif(balloon3Y > 700)\n\t\t{\n\t\t\tballoon3Y = -50;\n\t\t\tballoon3X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon4Y = balloon4Y + speedBalloonY4;\n\t\tif(balloon4Y > 700)\n\t\t{\n\t\t\tballoon4Y = -50;\n\t\t\tballoon4X = (gen.nextInt(900)-75);\n\t\t}\n\t\t\n\t\tballoon5Y = balloon5Y + speedBalloonY5;\n\t\tif(balloon5Y > 700)\n\t\t{\n\t\t\tballoon5Y = -50;\n\t\t\tballoon5X = (gen.nextInt(900)-75);\n\t\t}\n\t}", "public void moveBoss() {\n\t\tdouble position = boss.getTranslateY();\n\t\tspeed = Math.random()*30;\n\t\tif(position > 600-70) {\n\t\t\tRandom r = new Random();\n\t\t\tboss.setTranslateY(-6);\n\t\t\tboss.setTranslateX(r.nextInt(900));\n\t\t}else {\n\t\tboss.setTranslateY(position + speed);\n\t\t}\n\t}", "void move(float tpf);", "double motor_y () { return strut.span + DRIVING_FORCE_HEIGHT; }", "public void fly(float fly){\n\t}", "public void moveOneStep() {\n //We will create a line that checks the movement of the ball.\n Line trajectory = new Line(this.center.getX(), this.center.getY(),\n this.center.getX() + this.velocity.getDx(), this.center.getY() + this.velocity.getDy());\n //We will get information for the closest barrier.\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n //If there is information about an obstacle on the way, we will almost change our direction before reaching\n // the barrier.\n if (info != null) {\n this.center = new Velocity(-0.2 * this.velocity.getDx(),\n -0.2 * this.velocity.getDy()).applyToPoint(this.center);\n this.velocity = info.collisionObject().hit(this, info.collisionPoint(), this.velocity);\n //Otherwise, we will allow it to reach its destination\n } else {\n this.center = this.velocity.applyToPoint(this.center);\n }\n }", "private void updatePos() {\n var ballBounds = ball.getMesh().getRelativeRectangleBounds().getBounds2D();\n var hookBallBounds = hook.getHookBall().getMesh().getRelativeRectangleBounds().getBounds2D();\n var ballCenter = new Vector2(ballBounds.getCenterX(), ballBounds.getCenterY());\n var hookBallCenter = new Vector2(hookBallBounds.getCenterX(), hookBallBounds.getCenterY());\n fullDirection = hookBallCenter.subtracted(ballCenter);\n var oposDir = ballCenter.subtracted(hookBallCenter).normalized();\n oposDir.multiplyBy(hookBallBounds.getWidth() / 2);\n hookBallCenter.add(oposDir);\n direction = hookBallCenter.subtracted(ballCenter);\n getTransform().setPosition(ballCenter);\n getTransform().setRotation(GeometryHelper.vectorToAngle(hookBallCenter.subtracted(ballCenter)));\n getTransform().translate(0, -GameSettings.ROPE_HEIGHT / 2 - 1);\n }", "protected void accelerate(int direction){\n if (boatStats.getSpeed() < boatStats.getMaxSpeed()) {\n boatStats.setSpeed(boatStats.getSpeed() + boatStats.getAcceleration() * direction);\n }\n }", "@Override\n public void collision(Ball ball) {\n if (!(this.collideLine.size() == 0)){\n ball.setVelocity(Geometry.reflectWall(this.collideLine.get(0), ball.getVelocity()));\n //if ball collides with corner, reflect off circle\n }else if (!(this.collideCirc.size() == 0)){\n ball.setVelocity(Geometry.reflectCircle(this.collideCirc.get(0).getCenter(), ball.getPosition(), ball.getVelocity()));\n }\n\n this.trigger();\n\n }" ]
[ "0.649482", "0.6351726", "0.6295301", "0.6277593", "0.6271051", "0.6256388", "0.62456596", "0.6221506", "0.61851484", "0.6171978", "0.6135035", "0.61156005", "0.6114649", "0.6111395", "0.6097381", "0.60611874", "0.6051932", "0.60368973", "0.60232", "0.60225075", "0.6003008", "0.59930265", "0.59908116", "0.59887445", "0.5985262", "0.59825236", "0.5979581", "0.5972702", "0.5960289", "0.5957502", "0.5956165", "0.5954357", "0.5952166", "0.5937635", "0.59340763", "0.5930659", "0.59162104", "0.5912517", "0.59104043", "0.590167", "0.5899385", "0.58979183", "0.5895735", "0.58937246", "0.5892513", "0.5890185", "0.5890118", "0.5889885", "0.5884174", "0.5854306", "0.5850937", "0.5849913", "0.5838655", "0.58343905", "0.5827353", "0.5826046", "0.5820897", "0.58166736", "0.5811791", "0.58114517", "0.5795971", "0.5795129", "0.5789641", "0.5777057", "0.5761332", "0.57475275", "0.57412237", "0.5739769", "0.57348967", "0.57290447", "0.57267714", "0.5723056", "0.57194656", "0.57169485", "0.5713772", "0.5709269", "0.5708121", "0.5707108", "0.5706308", "0.5688559", "0.5688093", "0.5687192", "0.5684338", "0.5682275", "0.56790507", "0.56707394", "0.5670053", "0.5662659", "0.56579566", "0.56528586", "0.56528443", "0.56493145", "0.5638817", "0.5635395", "0.5626887", "0.5619565", "0.5618985", "0.56175387", "0.5606129", "0.5604452" ]
0.6052591
16
/ Sample code to perform I/O: Use either of these methods for input BufferedReader BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String name = br.readLine(); // Reading input from STDIN System.out.println("Hi, " + name + "."); // Writing output to STDOUT Scanner Scanner s = new Scanner(System.in); String name = s.nextLine(); // Reading input from STDIN System.out.println("Hi, " + name + "."); // Writing output to STDOUT Write your code here
public static void main(String args[] ) throws Exception { Scanner s = new Scanner(System.in); String arrSizeAndNumber = s.nextLine(); String number = arrSizeAndNumber.split(" ")[1]; List<String> numbers = Arrays.asList(s.nextLine().split(" ")); AtomicInteger i= new AtomicInteger(1); AtomicInteger pos= new AtomicInteger(1); numbers.forEach((value)-> { if (value.equals(number)) pos.set(i.get()); i.getAndIncrement(); }); System.out.println(pos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] arg) {\n\t\tBufferedReader br = new BufferedReader(\r\n\t\t new FileReader(\"input.in\"));\r\n\r\n\t\t// PrintWriter class prints formatted representations\r\n\t\t// of objects to a text-output stream.\r\n\t\tPrintWriter pw = new PrintWriter(new\r\n\t\t BufferedWriter(new FileWriter(\"output.in\")));\r\n\r\n\t\t// Your code goes Here\r\n\r\n\t\tpw.flush();\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString x = sc.nextLine();\r\n\r\n\t\tSystem.out.println(\"hello world \" + x);\r\n\t}", "public static void main(String[] args) throws IOException {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"enter ur name\");\n\t\tString name = scanner.nextLine();\n\t\tSystem.out.println(name);\n\t\tscanner.close();\n\t}", "public static void main(String[] args) {\nScanner sc= new Scanner(System.in);\nString name=sc.nextLine();\n\t\tSystem.out.println(\"hello\\n\"+name);\n\t\t\n\t}", "public static void main(String[] args)\r\n\t\tthrows IOException\r\n\t{\n\t\tBufferedReader reader = new BufferedReader(\r\n\t\t\tnew InputStreamReader(System.in));\r\n\r\n\t\t// Reading data using readLine\r\n\t\tString name = reader.readLine();\r\n\r\n\t\t// Printing the read line\r\n\t\tSystem.out.println(name);\r\n\t}", "public static void main(String[] args) {\n Scanner myOdj = new Scanner(System.in );\n System .out.println(\" Enter your name\");\n\n String userName = myOdj.nextLine();\n System.out.println (\" hi \" + userName);\n\n \n }", "public static void main(String[] args) throws Exception {\n DataInputStream br = new DataInputStream(System.in);\n System.out.println(\"Enter the Name\");\n String str = br.readLine();\n System.out.println(\"Str value:\" + str);\n }", "public static void main(String[] args) {\n System.out.print(\"What is your name? \");\n Scanner input = new Scanner(System.in);\n String name = input.nextLine();\n String greeting = \"Hello, \" + name + \", nice to meet you!\";\n System.out.println(greeting);\n }", "public static void main(String[] args) throws Exception {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n //declare variables\n String roll,name,interest;\n\t\n //accept data\n System.out.println(\"Enter Name: \");\n name = input.readLine();\n\n //accept roll\n System.out.println(\"Enter roll num: \");\n roll = input.readLine();\n\n //accept interest\n System.out.println(\"field of interest: \");\n interest = input.readLine();\n\n //print information\n System.out.println(\"\\nEntered info: \");\n System.out.println(\"My name is \" + name + \" and my roll number is \" + roll + \". My field of interest is \"+ interest);\n\n }", "public static void main(String[] args) \n {\n Scanner sc = new Scanner(System.in); \n \n // String input\n System.out.print(\"What's your name? \"); \n String name = sc.nextLine(); \n \n // Print the values to check if input was correctly obtained. \n System.out.println(\"Name: \" + name); \n\n // Close the Scanner\n sc.close();\n }", "public static void main(String[] args) {\n System.out.print(\"Please enter your name: \");\n String name = new Scanner(System.in).nextLine();\n\n //2. Do something with that input\n String greeting = \"Good morning \" + name + \"!\";\n\n //3. Output result to user\n System.out.println(greeting);\n }", "public static void main(String[] args) throws IOException {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\n\t\tSystem.out.println(\"Enter Your name Please\");\n\t\tString myName = br.readLine();\n\t\tSystem.out.println(\"Welcome \" + myName);\n\t\tSystem.out.println(\"Enter your age: \");\n\t\tint age = Integer.parseInt(br.readLine());\n\t\tSystem.out.println(\"Your age is \" + age);\n\n\t}", "private static void takeInput() throws IOException {\n\n System.out.println(\"Enter number 1\");\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\n String number1=br.readLine();\n System.out.println(\"Enter number 2\");\n String number2=br.readLine();\n System.out.println(\"Operation\");\n String op=br.readLine();\n //WhiteHatHacker processes the input\n WhiteHatHacker hack=new WhiteHatHacker(number1,number2,op);\n hack.processInput();\n }", "public static void main(String[] args) {\n\t\tConsole console = System.console();\n\t\tSystem.out.println(\"console value is : \" + console);\n\t\t\n\t\tString name = console.readLine();\n\t\t\n\t\tSystem.out.println(\"Enter input is: \" + name);\n\t}", "public static void main(String[] args) throws IOException {\n// System.out.println(\"Enter Your Name : \");\r\n// String nm=br.readLine();\r\n// //int a=Integer.valueOf(br.readLine());\r\n// System.out.println(\"Welcome \"+nm);\r\n// \r\n\r\n \r\n }", "public static void userName() {\n System.out.println(\"Please enter your name: \");\n String name = sc.nextLine(); \n System.out.println(\"Hello, \" + name);\n }", "public static void main(String[] args) {\n\n Scanner input = new Scanner (System.in);\n System.out.println (\"Enter a number\");\n int number = input.nextInt(); // when enter is hit - next line in code takes the input number\n System.out.println(\"Enter your name\");\n input.nextLine(); /* this line is needed before nextLine (or nextInt, nextDouble, nextBoolean etc.,\n so scanner so Java can let you print next input */\n String name = input.nextLine();\n\n System.out.println(number);\n System.out.println(name);\n }", "public static void main(String[] args) throws IOException\n\t{\n\t\tString name;\n\t\tBufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t//get user name\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"\\t\\tPlease enter your name: \");\n\t\tname = dataIn.readLine();\n\n\t\t//display output\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\t\" + name + \", You have successfully compiled and run the Sample2 application.\");\n\t\tSystem.out.println();\n\t}", "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 static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"What is your name?\");\n\t\tString firstName = input.nextLine();\n//\t\tSystem.out.printf(\"Hello %s!\\n\", firstName);\n\t\tSystem.out.println(\"Hello \" + firstName + \"!\");\n\t\tSystem.out.println(\"How are you today?\");\n\t\tString howareyou = input.nextLine();\n\t\tSystem.out.printf(\"I hope the rest of your day is good! Goodbye %s!\\n\", firstName);\n\t}", "public static void main(String[] args) {\nString name;\nScanner s=new Scanner(System.in);\n\tSystem.out.println(\"Please enter your first name: \");\n\tname=s.next();\n\tSystem.out.println(name+\", Welcome\");}", "String readInput() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }", "public static String inputName() throws IOException {\n String name; //The name\n \n //Prompt user to enter name\n System.out.println(\"Please enter the employee's name:\");\n \n //Get name\n name = input.readLine();\n System.out.println(\"\");\n \n //Return name\n return name;\n }", "public void input()\n\t{\n\t\t// this facilitates the output\n\t\tScanner sc = new Scanner(System.in) ; \n\t\tSystem.out.print(\"The Bike Number:- \") ;\n\t \tthis.bno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The Biker Name:- \") ; \n\t \tthis.name = new Scanner(System.in).nextLine() ; \t\n\t\tSystem.out.print(\"The Phone number:- \") ; \n\t \tthis.phno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The number of days:- \") ; \n\t \tthis.days = sc.nextInt() ; \t\n\t}", "public static void main(String[] args) {\n\t \n\t Scanner scanner = new Scanner(System.in);\n\n\t String name = \"\";\n\n\t while (name.isBlank()) {\n\t System.out.println(\"Enter your name: \");\n\t name = scanner.nextLine();\n\n\t }\n\n\t System.out.println(\"Hello \" + name);\n\n\t scanner.close();\n\n\t}", "public static void main(String[] args) {\n\t\r\n\t\tScanner reader=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Input person's name\");\r\n\t\tString name=reader.next(); \r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"Input person's age\");\r\n\t\tint age=reader.nextInt(); \r\n\t\t\r\n\t\tSystem.out.println(\"Input person's occupation\");\r\n\t\tString occupation=reader.next();\r\n\t\t\r\n\t\tSystem.out.println(\"Person's name is \"+ name); \r\n\t\tSystem.out.println(\"Person's age is \"+ age); \r\n\t\tSystem.out.println(\"Person's occupation is \"+ occupation);\r\n\t\r\n\t}", "public String getInput() throws IOException {\n\t\tSystem.out.print(\">> \");\n\t\treturn consoleIn.readLine();\n\t}", "public static void main(String[] args) {\n\t\tScanner reader=new Scanner(System.in);\r\n\t\tSystem.out.println(\"what is u r name\");\r\n\t\tString name=reader.next();\r\n\t\tSystem.out.println(\"u r name is\"+ name);\r\n\t\tScanner reader1=new Scanner(System.in);\r\n\t\tSystem.out.println(\"how old r u\");\r\n\t\tint age=reader1.nextInt();\r\n\t\tSystem.out.println(\" u r age is\"+ age);\r\n\t\t\r\n\r\n\t}", "public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n String str=in.nextLine();\n System.out.println(str);\n }", "public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tString greeting = \"Hello world \"+scanner.nextLine();\n\t\tSystem.out.println(greeting);\n\t}", "public static void main(String[] args) throws IOException {\n\t\tInputStream fileInput = System.in;\n\t\tReader inputReader = new InputStreamReader(fileInput);\n\t\tBufferedReader bufferedReader = new BufferedReader(inputReader);\n\n//\t\tOutputStream outputStream = new FileOutputStream(\"text-example-test.txt\");\n\t\tOutputStream outputStream = System.out;\n\t\tWriter writer = new OutputStreamWriter(outputStream);\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(writer);\n\n\t\tString row = bufferedReader.readLine();\n\n\t\twhile (row != null && !row.isEmpty()) {\n\t\t\tbufferedWriter.write(row);\n\t\t\tbufferedWriter.newLine();\n\t\t\tbufferedWriter.flush();\n\t\t\trow = bufferedReader.readLine();\n\t\t}\n\n\t\tbufferedReader.close();\n\t\tbufferedWriter.close();\n\t}", "@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t//String str = \"Hello World\";\n\t\tScanner scanner = new Scanner(System.in); //create object;\n\t\tSystem.out.println(\"Enter an String input\");\n\t\tString userInput = scanner.nextLine();//iput\n\t\tSystem.out.println(userInput.toString());\n\t\n\t\t\n\t\t//System.out.println(\"First string upper case is \" + userInput.toUpperCase().charAt(0) + \" from \" + userInput);\n\t\t\n\t}", "private static String getUserInput(String prompt){ \r\n Scanner in = new Scanner(System.in);\r\n System.out.print(prompt);\r\n return in.nextLine();\r\n }", "public static void main(String[] args) {\n\t\tBufferedReader keyboardReader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString input;\n\t\t\tdo {\n\t\t\t\tinput = keyboardReader.readLine();\n\t\t\t\tSystem.out.println(\"Your input is:**\"+input+\"**\");\n\t\t\t} while (input.length() > 0);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException occured...\");\n\t\t}\n\n//\t\tConsole c = System.console();\n//\t\tif (c == null) {\n//\t\t\tSystem.err.println(\"No console.\");\n//\t\t\tSystem.exit(1);\n//\t\t}\n//\n//\t\tString login = c.readLine(\"Enter your login: \");\n//\t\tSystem.out.println(\"login is :**\" + login+\"**\");\n\t}", "String consoleInput();", "public String getInput(String message) throws IOException {\n\t\tSystem.out.print(\">> \"+message+\" \");\n\t\treturn consoleIn.readLine();\n\t}", "public interface UsersInput {\n\n /**\n * Return user's input on a given line.\n * @param outForUser given line.\n * @return user's input.\n * @throws IOException IOException.\n */\n String getUsersInput(String outForUser) throws IOException;\n}", "public static void main(String[] args) {\n System.out.println(\"Hey! Please enter your goodname: \");\n Scanner ip = new Scanner(System.in);\n String name = ip.nextLine();\n System.out.println(\"Happy Birthday \" + name);\n }", "private static String readInput(){\n\t\ttry {\n\t\t\tInput = br.readLine();\n\t\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tSystem.out.println(\"IO error trying to read your name!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\treturn Input;\n\t}", "public static void main(String[] args) {\n Scanner userInput = new Scanner(System.in);\n\n System.out.println(\"Learning Java from?\");\n // Using nextLine method to get the input and move the cursor to the new line\n String website = userInput.nextLine();\n // Close the scanner object using close() method to prevent memory leak\n userInput.close();\n System.out.println(\"I am learning Java from \" + website);\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString hello = sc.nextLine();\n\t\tSystem.out.println(hello);\n\n\n\t}", "public static void main(String[] args)\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\t//Entering a storing the data\n\t\tSystem.out.println(\"Enter a sentence: \");\n\t\tString sentence = input.nextLine();\n\t\t\n\t\t//Printing using %S\n\t\tSystem.out.println(\"Sentence in uppercase using %S:\");\n\t\tSystem.out.printf(\"%S %n\", sentence);\n\t\t\n\t\t//Printing using toUpperCase()\n\t\tSystem.out.println(\"Sentence to uppercase using the toUpperCase() method:\");\n\t\tSystem.out.println(sentence.toUpperCase());\n\t\t\n\t\t//Printing using toLowerCase()\n\t\tSystem.out.println(\"Sentence to lowercase using the toLowerCase() method:\");\n\t\tSystem.out.println(sentence.toLowerCase());\n\t}", "public static void main(String[]args)\n\t{\n\t\tScanner keyboard = new Scanner(System.in);\n\t\t\n\t\t//prompt for user input\n\t\tSystem.out.println(\"What is your name?\");\n\t\t\n\t\tString name = keyboard.next();\n\t\t\n\t\tSystem.out.println(\"Seriously? \" + name + \" is kind of a lame name\");\n\t\t\n\n\t\t\n\t\t//prompt for user imput\n\t\tSystem.out.println(\"How old are you\" +\" \"+ name);\n\t\t\n\t\tString old = keyboard.next();\n\t\t\n\t\tSystem.out.println( old + \"!!\" +\"\"+ \"That's terrible!\");\n\t\t\n\t\t//prompt for user input\n\t\tSystem.out.println(\"What do you like to do for fun?\");\n\t\t\n\t\tString like = keyboard.next();\n\t\t\n\t\tSystem.out.println(like + \" sounds really boring. I kinda feel bad for you\");\n\t\t\n\t\tSystem.out.println(\"What instrument do you play?\");\n\t\t\n\t\tString instrument = keyboard.next();\n\t\t\n\t\tSystem.out.println(\"I bet you're dreadful at\" +\" \"+ instrument +\" \"+ \".Please don't ever play the\" +\" \"+ instrument +\" \"+ \"when you're near me\");\n\t\t\n\t\tSystem.out.println(\"What do you want to be when you grow up?\");\n\t\t\n\t\tString be = keyboard.next();\n\t\t\n\t\tSystem.out.println(\"Really?\" +\" \"+\"Aren't you a little bit underqualified to be a\" +\" \"+ be +\"?\");\n\t\t\n\t\tSystem.out.println(\"So\" +\" \"+ name +\" \"+ \"you're\" +\" \"+ old +\"...\" + \"\\n\" + \"You like to play\" +\" \"+ like + \"...\" +\"\\n\"+ \"Good luck on becoming a\" +\" \"+ be + \".\" + \"\\n\" + \"I'm only kiddin'\" +\" \"+ name + \"!\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public interface ConsoleIO {\n void write(String line);\n\n}", "public static void main ( String[] args ) throws IOException {\n Scanner scn = new Scanner(System.in);\n System.out.print(\"What name do you want for your output file? \");\n String outputN = scn.nextLine();\n\n // Function that will change the word 'utilize' to 'use'\n modifytext(outputN);\n }", "public static void main(String[] args) {\r\n //create a scanner to obtain input from the console window\r\n\r\n Scanner input = new Scanner(System.in);\r\n\r\n System.out.print(\"Enter Name \"); //prompt\r\n String name1 = input.nextLine(); //read first number from user \r\n\r\n System.out.print(\"Enter age: \"); //prompt\r\n\r\n int num2 = input.nextInt(); //read second number from user \r\n\r\n input.close();\r\n\r\n\r\n \r\n\r\n System.out.println(\"Your name is \" + name1 + \" You are \"+ num2 + \" years old\");\r\n\r\n }", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\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 static void getString()\n\t{\n\t\t\n\t\tScanner s=new Scanner(System.in);\n\t\t\n\t\t//Here Scanner is the class name, a is the name of object, \n\t\t//new keyword is used to allocate the memory and System.in is the input stream. \n\t\t\n\t\tSystem.out.println(\"Entered a string \");\n\t\tString inputString = s.nextLine();\n\t\tSystem.out.println(\"You entered a string \" + inputString );\n\t\tSystem.out.println();\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}", "public static void main(String[] args) throws IOException {\n\t\tFileWriter fw = new FileWriter(\"Names.txt\");\n\t\tPrintWriter outputFile = new PrintWriter(fw);\n\t\toutputFile.println(\"Matthew\");\n\t\toutputFile.println(\"Mark\");\n\t\toutputFile.println(\"Luke\");\n\t\toutputFile.close();\n\t\t\n\t\t//read from a file\n\t\tFile file = new File(\"Names.txt\");\n\t\tScanner inputFile = new Scanner(file);\n\t\t\n\t\twhile(inputFile.hasNext()) {\n\t\t\tString name = inputFile.nextLine();\n\t\t\tSystem.out.println(name);\n\t\t}\n\t\tinputFile.close();\n\t\t\n\t}", "public static void main(String[] args) throws java.io.IOException {\n\t\tPrintWriter pw = new PrintWriter (new FileWriter(\"writefile\"));\r\n\t\tSystem.out.print(\"Please enter Phone Number: \");\r\n\t\tphoneNumber=input.next();\r\n\t\tSystem.out.print(\"Please enter Contact Name: \");\r\n\t\tcontactName=input.next();\r\n\t\tSystem.out.println(\"Name: \" + contactName + \"\\tNumber: \" + phoneNumber);\r\n\t\tSystem.out.println(\"Starting printing to text file...\");\r\n\t\tpw.println(\"Name: \" + contactName + \" <Number: \" + phoneNumber);\r\n\t\tpw.close();\r\n\t\t\r\n\r\n\t}", "public static void main(String args[])throws IOException\n\t{\n\tScanner obj=new Scanner(System.in);\n\n\t//Entering a string\n\tSystem.out.println(\"\\nEnter a string !\");\n\tString s=obj.nextLine();\n\tSystem.out.println(\"you have entered \"+ s);\n\n\t//entering a word\n\tSystem.out.println(\"\\nEnter a word !\");\n\tString w=obj.next();\n\n\t//entering an integer\n\tSystem.out.println(\"\\nEnter an integer !\");\n\tint n=obj.nextInt();\n\n\t//entering a float\n\tSystem.out.println(\"\\nEnter a floating point number !\");\n\tfloat f=obj.nextFloat();\n\n\t//Printing the inputs\n\tSystem.out.println(\"\\nThe inputs are .....\");\n\tSystem.out.println(\"\\nWord : \"+w+\"\\nInteger : \"+n+\"\\nFloat : \"+f);\n\n\n}", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter your name\\n\");\r\n\t\tString a=s.nextLine();\r\n\t\tSystem.out.print(\"College\\n\");\r\n\t\tString b=s.nextLine();\r\n\t\tSystem.out.print(\"De\\n\");\r\n\t\tString c=s.nextLine();\r\n\t\tSystem.out.print(\"Department\\n\");\r\n\t\tString d=s.nextLine();\r\n\t\tSystem.out.println(\"Name : \"+a+\"\\n\"+\"College : \"+b+\"\\n\"+\"De :\"+c+\"\\n\"+\"Department : \"+d);\r\n\t\t\r\n\r\n\t}", "public static String readUserInput() {\n return in.nextLine();\n }", "private String getInput(String prompt) throws IOException {\n System.out.print(prompt);\n BufferedReader in = new BufferedReader(\n new InputStreamReader(System.in));\n return in.readLine();\n }", "public static void main(String[] args) {\n\t\tSystem.out.print(\"Enter you Name:\");\n\t\tString name = sc.next();\n\t\tSystem.out.println(\"\\n\" + \"Hello \" + name);\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello World!\");\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\tString name;\n\t\tint age;\n\t\t//a scanner object will take in name and age from keyboard input.\n\t\t\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tname = input.next();\n\t\tSystem.out.print(\"Enter Age: \");\n\t\tage = input.nextInt();\n\t\t\n\t\tSystem.out.println(\"Welcome\"+\" \"+name);\n\t\tSystem.out.println(\"This challenger is currently\"+\" \"+age+\" \"+\"years old!\");\n\t\t//prints out the name and age in a sentence. \n\t}", "@java.lang.Override\r\n public String askName() {\r\n Hello.display(\"Welcome! What is your name?\");\r\n Scanner in = new Scanner(System.in);\r\n String name = in.next();\r\n return name;\r\n }", "String getUserInput();", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\t//Output the prompt\n\t\tSystem.out.println(\"Enter a Line of text\");\n\t\t\n\t\t//Wait for the user to enter a line of text\n\t\tString line = input.nextLine();\n\t\t\n\t\t//Tell them what they entered.\n\t\tSystem.out.println(\"You entered: \" + line);\n\t\t\n\t\t//All steps together, now with ints:\n\t\tScanner input2 = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter an integer\");\n\t\tint value = input2.nextInt();\n\t\tSystem.out.println(\"You entered: \" + value);\n\t\t\n\t\t//close the inputs\n\t\tinput.close();\n\t\tinput2.close();\n\t}", "void work( String input ) {\n //TODO print \"Hello\" plus input\n printer.printLn(\"Hello \" +input);\n\n }", "public interface Input \n{\n\t/*\n\t * Use to initialise input\n\t */\n\tboolean initialise (String args);\n\t/*\n\t * Return a line or return null\n\t */\n\tString getLine ();\n\t\n}", "@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}", "public void takeUserInput() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n Scanner reader = new Scanner(System.in);\r\n System.out.print(\"Enter a number: \");\r\n\r\n // nextInt() reads the next integer from the keyboard\r\n int number = reader.nextInt();\r\n\r\n // println() prints the following line to the output screen\r\n System.out.println(\"You entered: \" + number);\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tInputStream input = System.in;\n\t\tScanner scanner = new Scanner(input);\n\t\t// nextLine()을 실행하기 전에 \n\t\t// 무엇을 해야할지 알려주는 메시지를 먼저 출력 하라.\n\t\t// 이를 'prompt(프롬프트)' 라고 한다\n\t\tSystem.out.println(\"문자열을 입력후 Enter....\");\n\t\tString strInput = scanner.nextLine();\n\t\tSystem.out.println(strInput);\n\n\t}", "public String Get_Input()throws IOException{\r\n\t\tString input=\"\";\r\n\t\tInputStreamReader converter = new InputStreamReader(System.in);\r\n\t\tBufferedReader in = new BufferedReader(converter);\r\n\t\t\r\n\t\tinput = in.readLine();\r\n\t\t\r\n\t\treturn input;\r\n\t}", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n\n // prepare questions for the user\n String fn_question = \"Enter your first name: \";\n String ln_question = \"Enter your last name: \";\n\n // show the user the questions and retrieve their answers\n // tip: .next() always returns string type\n System.out.print(fn_question);\n String first = input.next();\n\n System.out.print(ln_question);\n String last = input.next();\n\n //produce the output\n System.out.println(\"These usernames are available for use:\");\n System.out.println(first + last);\n System.out.println(last + first);\n System.out.println(first + \" \" + last);\n System.out.println(last + \"-\" + first);\n\n }", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n System.out.println(str);\n }", "private void consoleWelcome()\n {\n welcomePartOne();\n\n Scanner reader = new Scanner(System.in);\n String playerName = reader.nextLine();\n player.playerName = playerName;\n \n welcomePartTwo();\n }", "public static void main(String[] args) throws IOException{\n\t\tPrintWriter fw = new PrintWriter(new File(\"C:/Users/odae/workspace/app/src/day0718IOEx5_sample.txt\"));\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tSystem.out.print(\"입력 :\");\n\t\tString str = \"\";\n\t\twhile(!str.equals(\"end\")) {\n\t\t\tstr = in.readLine();\n\t\t\t//fw.write(str);\n\t\t\tfw.println(str);\n\t\t}\n\t\tfw.close();\n\t}", "public static void main(String[] args) throws IOException {\n\t\tFile file = new File(\"fileAAA.txt\");\r\n\t\tPrintWriter output = new PrintWriter(file);\r\n\t\t\r\n\t\t//write name and age to file\r\n\t\toutput.println(\"Homer Akin\");\r\n\t\toutput.println(49);\r\n\t\toutput.close();\r\n\t\t\r\n\t\tScanner input = new Scanner(file);\r\n\t\tString name = input.nextLine();\r\n\t\tint age = input.nextInt();\r\n\t\t\r\n\t\tSystem.out.printf(\"Name: %s \\nAge : %d\",name, age);\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static String readLine(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.nextLine();\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Digite o seu nome\");\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString nome = scanner.nextLine();\n\t\tSystem.out.println(nome);\n\t\tscanner.close();\n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\t\r\n\t\tString name = scanner.nextLine();\r\n\r\n\t\tchar gender = scanner.next().charAt(0); // F\r\n\t\t\r\n\t\tint age = scanner.nextInt();\r\n\t\t\r\n\t\tlong mobileNo = scanner.nextLong();\r\n\t\t\r\n\t\tdouble cgpa = scanner.nextDouble();\r\n\t\t\r\n\t\tSystem.out.println(\"Name: \"+name);\r\n\t\tSystem.out.println(\"Gender: \"+gender);\r\n\t\tSystem.out.println(\"Age: \"+age);\r\n\t\tSystem.out.println(\"Mobile: \"+mobileNo);\r\n\t\tSystem.out.println(\"CGPA: \"+cgpa);\r\n\t\t\r\n\t\tSystem.out.println(\"Your name is: \"+name+\" \"+gender+\" \"+age);\r\n\t}", "public static void main(String[] args) {\n\t\tString nom;\r\n\t\tScanner leer= new Scanner(System.in);\r\n\t\tSystem.out.println(\"Ingrese su nombre\");\r\n\t\tnom=leer.nextLine();\r\n\t\tSystem.out.println(\"Hola \"+nom);\r\n\t}", "public static void main(String[] args) {\n\t\tScanner inpt = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Hello Word!!!\");\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tdo{\n\t\t\tSystem.out.println(\"out:\" + scan.nextLine());\n\t\t}while(true);\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 static void starter() throws IOException{\n\t\tSystem.out.println(\"\\nType and Enter,\\n(1)for creating an account.\"\n\t\t\t\t+ \"\\n(2)for returning users login.\"\n\t\t\t\t+ \"\\n(3)to exit.\");\n\t\tScanner input = new Scanner(System.in);\n\t\tint userCommand = input.nextInt();\n\t\tif(userCommand==1){\n\t\t\tcreateAccount();\n\t\t}\n\t\telse if(userCommand==2){\n\t\t\tlogin();\n\t\t}\n\n\t\telse if(userCommand==3){\n\t\t\tSystem.out.println(\"Thanks for using InfoCabinet!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public static void namePet() {\n System.out.println(\"What is the name of your favorite pet? \");\n String petName = sc.nextLine(); \n }", "public String userInputString() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }", "public void inputInformation() throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n System.out.println(\"Please enter shape: \");\n shape = input.readLine();\n\n System.out.println(\"Please enter color\");\n color = input.readLine();\n\n System.out.println(\"Please enter name: \");\n name = input.readLine();\n\n System.out.println(\"Please enter weight: \");\n weight = Double.parseDouble(input.readLine());\n } catch (NumberFormatException e) {\n System.out.println(\"Error: \" + e.toString());\n }\n }", "public void readInput()\n\t{\n\t\t//wrap input stream read input from user\n\t\tBufferedReader in = new BufferedReader( new InputStreamReader( System.in ));\n\t\t\n\t\t//prompt user for input\n\t\tSystem.out.println( \"Please enter a letter or type Quit to end.\");\n\t\t\n\t\ttry{\n\t\t\tString userGuess = in.readLine();\n\t\t\t\n\t\t\t//loop until the user types \"Quit\"\n\t\t\tdo{\n\t\t\t\t//invoke guessletter function with String input\n\t\t\t\thangmanGame.guessLetter(userGuess);\n\t\t\t\t//update currentGuessText\n\t\t\t\tcurrentGuessText = hangmanGame.getCurrentGuess();\n\t\t\t\t//trace out current guess\n\t\t\t\tSystem.out.println(\"Your current guess is: \" + currentGuessText);\n\t\t\t\t//update remainingStrikes\n\t\t\t\thangmanGame.numberOfRemainingStrikes();\n\t\t\t\t//trace out remaining number of strikes\n\t\t\t\tSystem.out.println(\"You currently have \" + hangmanGame);\n\t\t\t\t//invoke revealAnswer function to check over gameOver, gameWon, and getAnswer\n\t\t\t\trevealAnswer();\n\t\t\t}while ( userGuess != \"Quit\" );\n\t\t}\n\t\t//catch IOException ioe\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t//tell exception to print its error log\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "private void printInputMessage() {\n System.out.println(\"Printing the input message:\");\n try(BufferedReader inputBuffer = Files.newBufferedReader(inputPath)) {\n String inputLine;\n while((inputLine = inputBuffer.readLine()) != null) {\n System.out.print(inputLine+\"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\n Console console = System.console();\n //Input\n if (console != null) {\n String userInput = console.readLine();\n console.writer().println(\"You entered: \" + userInput);\n } else {\n System.err.println(\"Console not available\");\n }\n\n //Output\n if (console == null) {\n throw new RuntimeException(\"Console not available\");\n } else {\n console.writer().println(\"Welcome to Our Zoo!\");\n console.format(\"It has %d animals and employs %d people\", 391, 25);\n console.writer().println();\n console.printf(\"The zoo spans %5.1f acres%n\", 128.91);\n }\n\n //Using Locale\n console.writer().format(new Locale(\"fr\", \"CA\"), \"Hello World\");\n }", "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}", "protected String getInputFromConsole() throws IOException\n {\n BufferedReader consoleInput = new BufferedReader(new InputStreamReader(System.in));\n return consoleInput.readLine();\n }", "public static String getInput() {\n\t\tScanner inputReader = new Scanner(System.in);\n\t\tString userInput;\n\t\tuserInput = inputReader.nextLine();\n\t\treturn userInput;\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 void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n // System.out.println(\"How many names would like to output: \");\n String linesString = scan.nextLine().trim();\n int lines = Integer.parseInt(linesString);\n String[] names = new String[lines];\n for(int i = 0; i < lines; i++) {\n\t// System.out.println(\"Please enter name \" + (i+1) + \":\");\n names[i] = scan.nextLine();\n }\n for(int i = 0; i < lines; i++) {\n System.out.println(\"Hello, \" + names[i] + \"!\");\n }\n \n\n }", "String getUsersInput(String outForUser) throws IOException;", "public static void main(String[] args) {\n\t\tString s = \"We're learning about Scanner\";\n\t\tSystem.out.println(s);\n\t\tScanner sc = new Scanner(System.in);\n//\t\tint m = sc.nextInt();\n//\t\tint n = sc.nextInt();\n//\t\tSystem.out.println(\"The Value of m is: \"+m);\n//\t\tSystem.out.println(\"The Value of n is: \"+n);\n//\t\tdouble d = sc.nextDouble();\n//\t\tString name = sc.next();//Gives us one Word\n//\t\tSystem.out.println(\"Name is: \" + name);\n\t\t\n//\t\tString fullName = sc.nextLine();\n//\t\tSystem.out.println(\"Full Name is: \" + fullName);\n\t\t\n\t\tString intInput = sc.nextLine();\n\t\tint n = Integer.parseInt(intInput);\n\t\tSystem.out.println(n);\n\t}", "OutputStream getStdin();", "void perform(LineReader input, OutputStream output) throws IOException;", "public static void main(String[] args) throws IOException {\n\t\ttry {\n\t\t\tFileReader inReader=new FileReader(\"C:\\\\Users\\\\LavanyaKantamani\\\\Desktop\\\\Reader.txt\");\n\t\t\tFileWriter outWriter=new FileWriter(\"C:\\\\Users\\\\LavanyaKantamani\\\\Desktop\\\\HelloWorldWriter.txt\");\n\t\t\tint d;\n\t\t\twhile((d=inReader.read())!=-1) {\n\t\t\t\toutWriter.write(d);\n\t\t\t}\n\t\t}catch(FileNotFoundException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "public static void main(String[] args) throws IOException {\n\t\tReader in = new InputStreamReader(System.in);\n\t\tint data = 0;\n\t\twhile((data=in.read()) != -1) {\n\t\t\tSystem.out.print((char)data);\n\t\t}\n\t\t//f가나다라마바사아자차가카\n\t}", "public static void main(String[] args){\n\t\tBufferedReader indata = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString input=null;\r\n\t\ttry {\r\n\t\t\tinput=indata.readLine();\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\t\t\r\n\t\tFile file = new File(\"d:/addfile.txt\"); \r\n try { \r\n file.createNewFile();\r\n } catch (IOException e) { \r\n // TODO Auto-generated catch block \r\n e.printStackTrace(); \r\n }\r\n \r\n byte writebyte[] = new byte[1024];\r\n writebyte=input.getBytes();\r\n try{\r\n \tFileOutputStream in = new FileOutputStream(file);\r\n \ttry{\r\n \t\tin.write(writebyte, 0, writebyte.length); \r\n in.close();\r\n \t} catch (IOException e) { \r\n // TODO Auto-generated catch block \r\n e.printStackTrace(); \r\n } \r\n } catch (FileNotFoundException e) { \r\n // TODO Auto-generated catch block \r\n e.printStackTrace(); \r\n }\r\n \r\n if(input.equals(\"print\")){\r\n \ttry{\r\n \t\tFileInputStream out = new FileInputStream(file); \r\n \t\tInputStreamReader outreader = new InputStreamReader(out);\r\n \t\tint ch = 0;\r\n \t\twhile((ch=outreader.read())!=-1){\r\n \t\t\tSystem.out.print((char) ch);\r\n \t\t}\r\n \t\toutreader.close();\r\n \t}catch (Exception e) { \r\n \t\t// TODO: handle exception \r\n \t} \r\n }\r\n\t}", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tString text = \"My name is Buzz Lightyear!\";\r\n\t\tSystem.out.println(\"Please enter your name to see something cool.\");\r\n\t\ttext = input.nextLine();\r\n\t\tfor (int i = 0; i < text.length(); i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(text.substring(i));\r\n\t\t}\r\n\t}", "private void ex01(){\n String student = \"Student\";\n int id;\n String full;\n myWindow.clearOut();\n id = 31552544;\n full = student + \" \" + id;\n myWindow.readIn(id);\n myWindow.writeOut(\"Hello, \");\n myWindow.writeOutLine(full);\n //YOUR CODE ABOVE HERE\n }", "public static void main(String[] args) {\n\t\t//Scanner for input. Nothing really new here\n\t\tScanner input = new Scanner(System.in);\n\n\t\t//We prompt the user to type in something\n\t\tSystem.out.print(\"Type in a name: \");\n\t\tString name = input.nextLine();\n\n\t\t//Now we use the switch to match our input\n\t\t//Note: You can only switch Strings in\n\t\t//Java 7 and above\n\t\tswitch(name){\n\n\t\tcase \"Tom\": \n\t\t\t//If the user typed in Tom, then \n\t\t\t//this case will be executed. \n\t\t\tSystem.out.println(\"We hate Tom\");\n\t\t\t//break means stop here and leave the switch\n\t\t\tbreak;\n\n\t\tcase \"Jerry\":\n\t\t\t//If the user typed in Jerry, then this\n\t\t\t//case will be executed\n\t\t\tSystem.out.println(\"Jerry mouse is pretty cool\");\n\t\t\tbreak;\n\t\t\t\n\t\t//Default means, if the switch couldn't match\n\t\t//any of the other cases, it should do this.\n\t\tdefault:\n\t\t\tSystem.out.println(\"Sorry Tom & Jerry only\");\n\t\t\t\n\t\t}\n\t}" ]
[ "0.71852493", "0.7099826", "0.7045566", "0.7039867", "0.6963449", "0.68596566", "0.68502146", "0.6837287", "0.6831356", "0.68036014", "0.6798455", "0.6795513", "0.67697936", "0.66903967", "0.66747373", "0.65946186", "0.6573625", "0.6552213", "0.655078", "0.65035534", "0.64953846", "0.64833754", "0.64758754", "0.64510715", "0.64375615", "0.6432741", "0.64167666", "0.635952", "0.63515157", "0.6346509", "0.63382447", "0.6334454", "0.6326807", "0.6318357", "0.6311102", "0.62988293", "0.62966", "0.62927073", "0.6283262", "0.6278899", "0.6278786", "0.6244312", "0.6231515", "0.6203624", "0.61896217", "0.61818653", "0.61789167", "0.61645687", "0.61537534", "0.6153138", "0.6151583", "0.6149087", "0.6136784", "0.6136395", "0.6129017", "0.6120033", "0.60814995", "0.6076997", "0.6071587", "0.6057589", "0.60528636", "0.6041823", "0.6037046", "0.6034035", "0.60201854", "0.60197043", "0.60184765", "0.60066384", "0.59956187", "0.59952027", "0.5993324", "0.5992154", "0.598801", "0.5984177", "0.59655595", "0.5956998", "0.59549373", "0.5948103", "0.5947525", "0.5926107", "0.59084415", "0.5905821", "0.5904443", "0.5899719", "0.58991027", "0.5897052", "0.58958924", "0.58922035", "0.58910775", "0.5888423", "0.5884585", "0.587465", "0.5869893", "0.58635914", "0.5860295", "0.5860234", "0.5848917", "0.58436185", "0.58432525", "0.5843246", "0.5832191" ]
0.0
-1
Created by kobe73er on 16/12/3.
public interface OrderService { void makeOrder(Order order); }
{ "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\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void nadar() {\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}", "@Override\n public void init() {\n\n }", "public void mo38117a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "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}", "@Override\n public void init() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {}", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private void strin() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\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\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\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\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void mo6081a() {\n }", "public void mo12628c() {\n }", "public void m23075a() {\n }", "public void mo21877s() {\n }", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "protected void mo6255a() {\n }", "public void mo21779D() {\n }", "public final void mo91715d() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public void method_4270() {}", "static void feladat4() {\n\t}" ]
[ "0.61094207", "0.5972075", "0.5922198", "0.58368415", "0.58266306", "0.58266306", "0.58057964", "0.5751233", "0.57461023", "0.57311165", "0.57128036", "0.5687164", "0.56699634", "0.5665371", "0.5645419", "0.5640802", "0.56388235", "0.56370574", "0.5629272", "0.5626286", "0.5622346", "0.5622346", "0.5622346", "0.5622346", "0.5622346", "0.5617243", "0.5600942", "0.5585082", "0.55737436", "0.5571057", "0.5557872", "0.5557872", "0.55545664", "0.5549282", "0.5546383", "0.55415696", "0.55412614", "0.5535337", "0.5535319", "0.5531972", "0.5531972", "0.5524796", "0.5523116", "0.55113566", "0.5505426", "0.55029297", "0.55017596", "0.55017596", "0.55017596", "0.55017596", "0.55017596", "0.55017596", "0.548704", "0.5482582", "0.54804546", "0.5476476", "0.5467001", "0.5467001", "0.5455851", "0.5455851", "0.5455851", "0.54536843", "0.54536843", "0.54536843", "0.54479855", "0.54463184", "0.5445886", "0.5444002", "0.54395264", "0.54395264", "0.54395264", "0.54395264", "0.54395264", "0.54395264", "0.54395264", "0.54215217", "0.5419376", "0.54172", "0.54172", "0.54172", "0.5415106", "0.54099363", "0.54081434", "0.5406511", "0.54037017", "0.539335", "0.53919107", "0.53870654", "0.538141", "0.5377341", "0.53725636", "0.5370764", "0.5360258", "0.535342", "0.5342428", "0.5341831", "0.5341286", "0.5338117", "0.5330909", "0.5327754", "0.5327418" ]
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.dashboard, menu); applyMenuThemeElements(menu, Color.WHITE); 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 public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@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 void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@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\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\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}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\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\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\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 void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@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 boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_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\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 public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\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\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_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 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\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu, menu);\r\n return true;\r\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.72497207", "0.72041494", "0.7198533", "0.71808106", "0.71110344", "0.7044596", "0.7042557", "0.7015272", "0.70119643", "0.6984017", "0.6950008", "0.6944079", "0.6937662", "0.6921333", "0.6921333", "0.6894039", "0.6887707", "0.6880534", "0.68777215", "0.6867014", "0.6867014", "0.6867014", "0.6867014", "0.68559307", "0.6852073", "0.68248004", "0.6820769", "0.68184304", "0.68184304", "0.6817935", "0.6810622", "0.6804502", "0.68026507", "0.67964166", "0.67932844", "0.6791405", "0.67871046", "0.6762318", "0.67619425", "0.67528236", "0.6749201", "0.6749201", "0.6745379", "0.6743501", "0.6731059", "0.67279845", "0.6727818", "0.6727818", "0.67251533", "0.67155576", "0.6709411", "0.6708032", "0.67033577", "0.67028654", "0.67017025", "0.669979", "0.66913515", "0.6688428", "0.6688428", "0.66866416", "0.6685591", "0.6683817", "0.6682796", "0.66729134", "0.6672762", "0.6666433", "0.66600657", "0.66600657", "0.66600657", "0.6659591", "0.6659591", "0.6659591", "0.66593474", "0.66565514", "0.6655428", "0.6654482", "0.665351", "0.665207", "0.6651319", "0.6649983", "0.66496044", "0.6649297", "0.66489553", "0.6648444", "0.6648406", "0.6645919", "0.66434747", "0.66401505", "0.66370535", "0.66367626", "0.66367304", "0.66367304", "0.66367304", "0.6633702", "0.6633666", "0.6631505", "0.6629352", "0.6629109", "0.6624368", "0.66234607", "0.66223407" ]
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(); //noinspection SimplifiableIfStatement if (id == R.id.action_sync) { SyncManager.getInstance().startSync(this, getUserCredentials()); 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 // 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 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 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 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\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 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\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.7904669", "0.78062934", "0.77666116", "0.7727495", "0.7631956", "0.7622029", "0.75855523", "0.7530999", "0.7488249", "0.74583405", "0.74583405", "0.74391454", "0.742199", "0.7403733", "0.73921114", "0.7387281", "0.73795027", "0.73708874", "0.7363864", "0.7356251", "0.73459506", "0.7342001", "0.73306113", "0.73286015", "0.7326429", "0.73191065", "0.7317039", "0.7313901", "0.73044896", "0.73044896", "0.7301832", "0.7298614", "0.72935665", "0.7286882", "0.72838604", "0.7281134", "0.7279026", "0.7260287", "0.72602856", "0.72602856", "0.72602856", "0.72597146", "0.7250437", "0.7224467", "0.7219954", "0.7217789", "0.7204917", "0.7200529", "0.72004616", "0.71939325", "0.71854734", "0.71783715", "0.7169028", "0.7168044", "0.7154098", "0.715406", "0.7136618", "0.7135388", "0.7135388", "0.71293885", "0.7129296", "0.71248746", "0.71238405", "0.71236056", "0.7122437", "0.71178895", "0.7117577", "0.7117577", "0.7117577", "0.7117577", "0.7117551", "0.7117253", "0.7115515", "0.7112961", "0.7110418", "0.7109445", "0.7106109", "0.710037", "0.7098831", "0.70961183", "0.7094036", "0.7094036", "0.7086734", "0.7083463", "0.7081277", "0.70808643", "0.7073911", "0.70687914", "0.70622855", "0.70609766", "0.7060495", "0.7051786", "0.7037978", "0.7037978", "0.7036548", "0.70358485", "0.70358485", "0.70334274", "0.7031107", "0.70302725", "0.70190936" ]
0.0
-1
Constructs an instance of this class.
public IllegalBlockingModeException() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Instantiation(){}", "Constructor() {\r\n\t\t \r\n\t }", "Reproducible newInstance();", "protected abstract void construct();", "public Instance() {\n }", "public Constructor(){\n\t\t\n\t}", "Instance createInstance();", "public Factory() {\n\t\tsuper();\n\t}", "public static Construtor construtor() {\n return new Construtor();\n }", "public PSRelation()\n {\n }", "public CyanSus() {\n\n }", "private MazeBuilder() {\n\t}", "public Builder() {}", "public Builder() {}", "public Builder() {}", "public GantBuilder ( ) { }", "private Builder() {\n }", "private Builder() {\n }", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "private Composite() {\n }", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "private Builder() {}", "private Builder()\n {\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "public Builder() {\n\t\t}", "public Trening() {\n }", "public Chick() {\n\t}", "public Magazzino() {\r\n }", "public SgaexpedbultoImpl()\n {\n }", "public Builder() {\n }", "public Builder() {\n }", "public Orbiter() {\n }", "private Builder() {\n\t\t}", "public ClassTemplate() {\n\t}", "public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public Vector() {\n construct();\n }", "public Odontologo() {\n }", "public Clade() {}", "public Implementor(){}", "@Override\n public void construct() throws IOException {\n \n }", "public ExamMB() {\n }", "public Curso() {\r\n }", "public Building() {\n\t}", "public Builder() { }", "public Builder() {\n }", "public Libro() {\r\n }", "private Construct(Builder builder) {\n super(builder);\n }", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "public Parser()\n {\n //nothing to do\n }", "private MApi() {}", "public Aanbieder() {\r\n\t\t}", "public Livro() {\n\n\t}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private Marinator() {\n }", "private Marinator() {\n }", "private UI()\n {\n this(null, null);\n }", "public ObjectFactory() {\n\t}", "public Gasto() {\r\n\t}", "private TMCourse() {\n\t}", "public Phl() {\n }", "public Mitarbeit() {\r\n }", "public _355() {\n\n }", "public Factory() {\n this(getInternalClient());\n }", "public Self__1() {\n }", "private PatternBuilder() { }", "public BuiltBy() {\n }", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public Ov_Chipkaart() {\n\t\t\n\t}", "public CMN() {\n\t}", "public Classroom() {\n\t}", "public Lanceur() {\n\t}", "public ScriptBuilder() {\n }", "public CMObject newInstance();", "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}", "public ObjectFactory() {\r\n\t}", "private TweetRiver() { }", "public AFMV() {\r\n }", "public Model() {\n\t}", "public Model() {\n\t}", "public Taginstance() {\n\t\tthis(\"taginstance\", null);\n\t}", "public Activator() {\r\n\t}", "public LabelFactory() {\n this(0);\n }", "public TV() {\r\n\t}", "public Cohete() {\n\n\t}", "public TTau() {}", "Composite() {\n\n\t}", "public MonHoc() {\n }", "public Purp() {\n }", "private Singleton()\n\t\t{\n\t\t}", "public OVChipkaart() {\n\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public GTFTranslator()\r\n {\r\n // do nothing - no variables to instantiate\r\n }", "public Property() {\n this(0, 0, 0, 0);\n }", "public Basic() {}", "public Coche() {\n super();\n }", "public Carrera(){\n }", "public Simulator(){}", "public Chauffeur() {\r\n\t}", "public Builder(){\n }" ]
[ "0.7467778", "0.6828773", "0.67995214", "0.6750359", "0.6742812", "0.67366767", "0.65433073", "0.6446909", "0.6440812", "0.6429115", "0.63810164", "0.63770944", "0.6354002", "0.6354002", "0.6354002", "0.6351866", "0.63376313", "0.63376313", "0.63114053", "0.631082", "0.6301487", "0.62835187", "0.62743866", "0.6267679", "0.62491775", "0.6248808", "0.62474734", "0.62374145", "0.6229603", "0.62241304", "0.62241304", "0.6218506", "0.62149066", "0.62101406", "0.62090766", "0.62085164", "0.6197114", "0.6195118", "0.61770135", "0.61633015", "0.6154002", "0.6147456", "0.6144194", "0.6139624", "0.61381346", "0.61329705", "0.6124825", "0.61226046", "0.61214685", "0.61214685", "0.61073077", "0.6104837", "0.610004", "0.6096875", "0.60873413", "0.6086021", "0.6086021", "0.6077776", "0.6076071", "0.6067784", "0.60655797", "0.60654104", "0.60651845", "0.60650784", "0.60610074", "0.605999", "0.60546887", "0.6052317", "0.6046962", "0.6039299", "0.60382813", "0.60315025", "0.6030963", "0.6030641", "0.6028368", "0.6027531", "0.60269475", "0.6016434", "0.60132533", "0.60114163", "0.60114163", "0.6004263", "0.60037285", "0.600317", "0.5997222", "0.599712", "0.59955204", "0.59935135", "0.59930384", "0.5984847", "0.5980521", "0.5978758", "0.5977498", "0.5975545", "0.5973714", "0.59674585", "0.59652406", "0.5962442", "0.59622806", "0.5961456", "0.59560233" ]
0.0
-1
Parametrized constructor for codemessage response.
public CodeMessage(HttpStatus code, T message) { this.code = code.value(); this.message = message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CodeMessage(Integer code, T message) {\n this.code = code;\n this.message = message;\n }", "public StatusMessage(int code, String message) {\n _code = code;\n _message = message;\n }", "private ResponseStatus(int code) {\n this.code = code;\n this.formatted = format(code, \"???\");\n this.symbolicName = String.format(\"0x%04x\", code);\n }", "public ResponseResource(final Integer code, final String message) {\n\n\t\tthis.message = message == null ? ResponseResource.R_MSG_EMPTY : message;\n\t\tthis.responseCode = code == null ? ResponseResource.R_CODE_OK : code;\n\t\t//this.setData(data);\n\t}", "ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }", "public MessageResponse() {\r\n\t}", "public BadRequestResponse()\n {\n super();\n codeSubfield = 0;\n payload = \"Bad Request\";\n }", "private ErrorCode(final String theCode) {\n this.code = theCode;\n }", "public Message(){\n super();\n this.status = RETURN_OK;\n put(\"status\",this.status.getCode());\n put(\"message\", this.status.getMessage());\n }", "private ResponseStatus(int code, String symbolicName, String description) {\n this.code = code;\n this.formatted = format(code, description);\n this.symbolicName = requireNonNull(symbolicName);\n\n if (code == MALFORMED_RESPONSE_CODE) {\n // skip further processing of the \"malformed response\" status\n return;\n }\n\n if (values[code] != null) {\n throw new IllegalStateException(\"already initialized status \" + values[code]);\n }\n\n values[code] = this;\n }", "public Code() {\n\t}", "private Builder(String code, String message) {\r\n this.innerCode = code;\r\n this.innerMessage = message;\r\n }", "public Error(int code, String msg) {\r\n\tthis.code = code;\r\n\tthis.msg = msg;\r\n }", "public void setResponseCode(java.lang.CharSequence value) {\n this.ResponseCode = value;\n }", "public MessageResponse(String message) {\r\n\t\tsetMessage(message);\r\n\t}", "public sparqles.avro.discovery.DGETInfo.Builder setResponseCode(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.ResponseCode = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public AuthorizationResponse(AuthorizationResponseCode responseCode,\n String reason)\n {\n this.reason = reason;\n this.responseCode = responseCode;\n }", "public static ResponseParams createResponseParamObj(ResponseCode code) {\n ResponseParams params = new ResponseParams();\n if (code.getResponseCode() != 200) {\n params.setErr(code.getErrorCode());\n params.setErrmsg(code.getErrorMessage());\n }\n params.setMsgid(ExecutionContext.getRequestId());\n params.setStatus(ResponseCode.getHeaderResponseCode(code.getResponseCode()).name());\n return params;\n }", "public JsonResponse(String status, String[] message) {\n this.status = status;\n this.message = message;\n }", "public MessageResponseAction(Message message) {\n this(message, 0);\n }", "com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType getCode();", "public TransactionResponse(String statusMessage) {\n this.statusMessage = statusMessage;\n }", "public ErrorResponse(int errNo, String errMessage) {\n\t\tsuper();\n\t\tthis.errNo = errNo;\n\t\tthis.errMessage = errMessage;\n\t}", "public BasicResponse() {\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public SysAccessCodeException(int code, String businessMessage)\n/* */ {\n/* 21 */ this(businessMessage);\n/* */ }", "public interface IEnumResponseCode {\n\t/**\n\t * Returns the code of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getCode();\n\t\n\t/**\n\t * Returns the description of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getDescription();\n\t\n}", "private Token(int code)\n {\n myCode = code;\n }", "public NCCP_Response(int dl)\n {\n super(dl);\n }", "public ReturnInfo(String returnMsg, ReturnCode returnCode)\r\n\t{\r\n\t\tsuper();\r\n\t\tthis.returnMessage = returnMsg;\r\n\t\tthis.returnCode = returnCode.getCode();\r\n\t\tthis.result = null;\r\n\t}", "private MsgStoreCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n protected void handleErrorResponseCode(int code, String message) {\n }", "Wrapper() {\n this(ResponseType.SUCCESS,\"\");\n }", "public AuditDataBuilder responseCode(final String responseCode) {\n this.responseCode = responseCode;\n return this;\n }", "public DataException(String message, String code){\r\n super(message, code);\r\n }", "public TypeCode(String code) {\n this.code = code;\n }", "public ApiException(int code, String msg) {\n\t\tsuper(msg);\n\t\tthis.code = code;\n\t}", "public ReturnInfo(ReturnCode returnCode)\r\n\t{\r\n\t\tsuper();\r\n\t\tthis.returnMessage = returnCode.getMessage();\r\n\t\tthis.returnCode = returnCode.getCode();\r\n\t\tthis.result = null;\r\n\t}", "public ResponseEntity<Object> failBusiness(String code, String message) {\n GeneralResponse<Object> responseObject = new GeneralResponse<>();\n ResponseStatus responseStatus = new ResponseStatus();\n responseStatus.setCode(code);\n responseStatus.setMessage(message);\n responseObject.setStatus(responseStatus);\n return ResponseEntity.status(HttpStatus.OK).body(responseObject);\n }", "public LanguageIdResponse() {\n }", "private StatusMessage() {\n\n\t}", "private StatusMessage() {\n\n\t}", "public ErrorResponse() {\n }", "private MessageStatus(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "CodeType createCodeType();", "public PersonResult(String message){\n super(message);\n }", "public Builder setCode(com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n code_ = value.getNumber();\n onChanged();\n return this;\n }", "private void buildCodeMessageDict() {\r\n if( _codeMessageDictionary == null ) {\r\n _codeMessageDictionary = new Hashtable();\r\n }\r\n _codeMessageDictionary.put( new Integer( SC_SUCCESS ), new String( SM_SUCCESS ) );\r\n _codeMessageDictionary.put( new Integer( SC_BAD_REQUEST ), new String( SM_BAD_REQUEST ) );\r\n _codeMessageDictionary.put( new Integer( SC_FORBIDDEN ), new String( SM_FORBIDDEN ) );\r\n _codeMessageDictionary.put( new Integer( SC_NOT_FOUND ), new String( SM_NOT_FOUND ) );\r\n _codeMessageDictionary.put( new Integer( SC_SERVER_ERROR ), new String( SM_SERVER_ERROR ) );\r\n _codeMessageDictionary.put( new Integer( SC_NOT_IMPLEMENTED ), new String( SM_NOT_IMPLEMENTED ) );\r\n _codeMessageDictionary.put( new Integer( SC_SERVICE_UNAVAILABLE ), new String( SM_SERVICE_UNAVAILABLE ) );\r\n }", "public HttpResponse(int aStatusCode, byte[] aContent, String aContentType)\n\t{\n\t\tmStatusCode = aStatusCode;\n\t\tmContent = aContent;\n\t\tmContentType = aContentType;\n\t}", "public InvalidRequestMsg() {\n\n this(\"\");\n\n }", "public void setResponseCode(java.lang.String responseCode) {\n this.responseCode = responseCode;\n }", "public ReturnInfo(String returnMsg, ReturnCode returnCode, String result)\r\n\t{\r\n\t\tsuper();\r\n\t\tthis.returnMessage = returnMsg;\r\n\t\tthis.returnCode = returnCode.getCode();\r\n\t\tthis.result = result;\r\n\t}", "protected HttpResponseImpl(final int code, final String responseString, final String contentType) {\n this.responseString = responseString;\n this.code = code;\n\n // Default headers\n setHeader(\"Server\", getServerName());\n setHeader(\"Connection\", \"close\");\n setHeader(\"Content-Type\", contentType);\n\n // create the body.\n initBody();\n }", "private Response() {}", "private Response() {}", "com.google.protobuf.ByteString getResponseMessage();", "public EmanagerDatabaseStatusCode()\n {\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n/* 101 */ return new SimpleMessage(message);\n/* */ }", "public RestResult(int responseCode, String errorMsg, String result) {\n this.responseCode = responseCode;\n this.errorMsg = errorMsg;\n this.result = result;\n }", "public JsonResponse(String status, String[] message, String userid, String password, String name, String school, BigDecimal edollar) {\n this.status = status;\n this.message = message;\n this.userid = userid;\n this.password = password;\n this.name = name;\n this.school = school;\n this.edollar = edollar;\n }", "public CallMessage() {\n\t}", "public java.lang.CharSequence getResponseCode() {\n return ResponseCode;\n }", "public void setResultCode(int value) {\n this.resultCode = value;\n }", "public LCAmsg2 () { }", "public CompilerMessage(MessageKind messageKind_) {\r\n this((SourceRange)null, messageKind_, null);\r\n }", "public void setCode(OAIPMHErrorcodeType code) {\r\n this.code = code;\r\n }", "public MessageInfo() { }", "public Neo4jException(String code, String message) {\n this(code, message, null);\n }", "public CoderException(String message) {\n super(message);\n }", "public int getMessageCodeValue();", "public Message(){}", "public Response(){\n\t\t// nothing needed\n\t}", "public Result(Status status, String message) {\n this.status = status;\n this.message = message;\n this.value = Optional.empty();\n }", "public ResultJsonView(String message) {\r\n this(null, message);\r\n }", "public java.lang.CharSequence getResponseCode() {\n return ResponseCode;\n }", "public static ResponseStatus valueOf(int code) {\n code = code & 0xFFFF; // convert negative shorts to unsigned\n if (code < 256) {\n ResponseStatus status = values[code];\n if (status != null) {\n return status;\n }\n }\n return new ResponseStatus(code);\n }", "public Status(int statusCode, String code, String message, String description) {\n this.statusCode = statusCode;\n this.code = code;\n this.severity = defaultSeverity;\n this.message = message;\n this.description = description;\n }", "public void setRequestCode(String requestCode);", "public AuthorizationCodeRequest() {\n setGrantType(ClientConfig.AUTHORIZATION_CODE);\n Map<String, Object> tokenConfig = ClientConfig.get().getTokenConfig();\n if(tokenConfig != null) {\n setServerUrl((String)tokenConfig.get(ClientConfig.SERVER_URL));\n setProxyHost((String)tokenConfig.get(ClientConfig.PROXY_HOST));\n int port = tokenConfig.get(ClientConfig.PROXY_PORT) == null ? 443 : (Integer)tokenConfig.get(ClientConfig.PROXY_PORT);\n setProxyPort(port);\n setServiceId((String)tokenConfig.get(ClientConfig.SERVICE_ID));\n Object object = tokenConfig.get(ClientConfig.ENABLE_HTTP2);\n setEnableHttp2(object != null && (Boolean) object);\n Map<String, Object> acConfig = (Map<String, Object>) tokenConfig.get(ClientConfig.AUTHORIZATION_CODE);\n if(acConfig != null) {\n setClientId((String)acConfig.get(ClientConfig.CLIENT_ID));\n if(acConfig.get(ClientConfig.CLIENT_SECRET) != null) {\n setClientSecret((String)acConfig.get(ClientConfig.CLIENT_SECRET));\n } else {\n logger.error(new Status(CONFIG_PROPERTY_MISSING, \"authorization_code client_secret\", \"client.yml\").toString());\n }\n setUri((String)acConfig.get(ClientConfig.URI));\n setScope((List<String>)acConfig.get(ClientConfig.SCOPE));\n setRedirectUri((String)acConfig.get(ClientConfig.REDIRECT_URI));\n }\n }\n }", "public LeaderBoard_Response() {\n }", "public SOAPErrorCodes() {\n\t\terrorMap = new Hashtable<>();\n\t\terrorMap.put(\"401\", new String[] {\"Invalid Action\",\n\t\t\t\t\"No action by that name at this service.\"});\n\t\terrorMap\n\t\t\t\t.put(\n\t\t\t\t\t\t\"402\",\n\t\t\t\t\t\tnew String[] {\n\t\t\t\t\t\t\t\t\"Invalid Args\",\n\t\t\t\t\t\t\t\t\"Could be any of the following: not \"\n\t\t\t\t\t\t\t\t\t\t+ \"enough in args, too many in args, no in args, no in args by that name, \"\n\t\t\t\t\t\t\t\t\t\t+ \"one or more in args are of the wrong data type.\"});\n\t\terrorMap.put(\"403\", new String[] {\"Out of Sync\",\n\t\t\t\t\"Out of synchronization.\"});\n\t\terrorMap.put(\"501\", new String[] {\n\t\t\t\t\"Action Failed\",\n\t\t\t\t\"May be returned in current state of \"\n\t\t\t\t\t\t+ \"service prevents invoking that action.\"});\n\t\terrorMap.put(\"404\", new String[] {\"Invalid Var\",\n\t\t\t\t\"No state variable by that name at this service.\"});\n\t}", "public RestResponseAsserter statusCode(Consumer<AbstractIntegerAssert> responseCode) {\n responseCode.accept(assertThat(response.code()));\n return this;\n }", "@Override\n public String toString()\n {\n String str = getType() + \": \";\n if (code != 0)\n {\n str += String.valueOf(code) + \": \";\n }\n return str + message;\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2) {\n/* 85 */ return new SimpleMessage(message);\n/* */ }", "public Message(String type, Object message) {\n\t\tthis.type = type;\n\t\tthis.message = message;\n\t}", "public HttpResponseCode getCode() {\n return code;\n }", "public ExecutionResponseMessage(RequestMessage request, ResultType result, String description) {\r\n super(request);\r\n this.result = result;\r\n this.description = description;\r\n }", "public Option(final int code, final byte[] value) {\n this.code = code;\n this.value = value;\n }", "public JsonResponse(int status) {\n super();\n this.status = status;\n }", "public Builder setResultCode(protocol.Result.ResultCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n resultCode_ = value.getNumber();\n onChanged();\n return this;\n }", "public NYSIISCode(){\n }", "public void errorResponse(int code, String msg){\n msg = errorMessage(code, msg);\n StringReader inputStream = new StringReader( msg );\n\n Content ct = new crc.content.text.html( inputStream, this );\n Transaction response = new HTTPResponse( Pia.instance().thisMachine,\n\t\t\t\t\t toMachine(), ct, false);\n response.setStatus( code );\n response.setContentType( \"text/html\" );\n response.setContentLength( msg.length() );\n Pia.debug(this, \"The header : \\n\" + response.headersAsString() );\n response.startThread();\n }", "public ConnectMessage(String connectedClient, int code)\n {\n super(Message.CONNECT);\n this.connectedClient = connectedClient;\n this.code = code;\n }", "public Message() {}", "public Message() {}", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3) {\n/* 93 */ return new SimpleMessage(message);\n/* */ }" ]
[ "0.76956517", "0.7364523", "0.72891206", "0.7199849", "0.7190642", "0.6846862", "0.6844014", "0.68140846", "0.6762371", "0.6668776", "0.6632801", "0.658675", "0.65505517", "0.6484495", "0.6469561", "0.64020544", "0.6380098", "0.6328559", "0.6318873", "0.6250418", "0.6238609", "0.620266", "0.6161119", "0.61233884", "0.6110494", "0.61088216", "0.61088216", "0.61075425", "0.61075425", "0.60835713", "0.6061789", "0.60541373", "0.6052097", "0.6050626", "0.60302156", "0.60164475", "0.6005751", "0.59419185", "0.59340435", "0.59123117", "0.5910352", "0.5886368", "0.5877699", "0.5875358", "0.58701813", "0.58701813", "0.586525", "0.5851044", "0.5830211", "0.5819342", "0.5812347", "0.5812073", "0.5806974", "0.57844806", "0.5773015", "0.575766", "0.57460874", "0.5736816", "0.5736816", "0.573371", "0.57321143", "0.5731355", "0.57224894", "0.5722404", "0.57188684", "0.5712113", "0.5703112", "0.5699157", "0.5696745", "0.5695209", "0.56791943", "0.5671064", "0.56676465", "0.56666553", "0.56658167", "0.56633174", "0.5653749", "0.5648605", "0.5644592", "0.5643268", "0.5637908", "0.56279516", "0.56245315", "0.56214064", "0.56114095", "0.5610997", "0.561004", "0.56094605", "0.55970085", "0.5596243", "0.55941975", "0.5593683", "0.5591353", "0.55768263", "0.55756605", "0.5575354", "0.55717236", "0.55670685", "0.55670685", "0.55644053" ]
0.74589777
1
Parametrized constructor for codemessage response.
public CodeMessage(Integer code, T message) { this.code = code; this.message = message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CodeMessage(HttpStatus code, T message) {\n this.code = code.value();\n this.message = message;\n }", "public StatusMessage(int code, String message) {\n _code = code;\n _message = message;\n }", "private ResponseStatus(int code) {\n this.code = code;\n this.formatted = format(code, \"???\");\n this.symbolicName = String.format(\"0x%04x\", code);\n }", "public ResponseResource(final Integer code, final String message) {\n\n\t\tthis.message = message == null ? ResponseResource.R_MSG_EMPTY : message;\n\t\tthis.responseCode = code == null ? ResponseResource.R_CODE_OK : code;\n\t\t//this.setData(data);\n\t}", "ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }", "public MessageResponse() {\r\n\t}", "public BadRequestResponse()\n {\n super();\n codeSubfield = 0;\n payload = \"Bad Request\";\n }", "private ErrorCode(final String theCode) {\n this.code = theCode;\n }", "public Message(){\n super();\n this.status = RETURN_OK;\n put(\"status\",this.status.getCode());\n put(\"message\", this.status.getMessage());\n }", "private ResponseStatus(int code, String symbolicName, String description) {\n this.code = code;\n this.formatted = format(code, description);\n this.symbolicName = requireNonNull(symbolicName);\n\n if (code == MALFORMED_RESPONSE_CODE) {\n // skip further processing of the \"malformed response\" status\n return;\n }\n\n if (values[code] != null) {\n throw new IllegalStateException(\"already initialized status \" + values[code]);\n }\n\n values[code] = this;\n }", "public Code() {\n\t}", "private Builder(String code, String message) {\r\n this.innerCode = code;\r\n this.innerMessage = message;\r\n }", "public Error(int code, String msg) {\r\n\tthis.code = code;\r\n\tthis.msg = msg;\r\n }", "public void setResponseCode(java.lang.CharSequence value) {\n this.ResponseCode = value;\n }", "public MessageResponse(String message) {\r\n\t\tsetMessage(message);\r\n\t}", "public sparqles.avro.discovery.DGETInfo.Builder setResponseCode(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.ResponseCode = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public AuthorizationResponse(AuthorizationResponseCode responseCode,\n String reason)\n {\n this.reason = reason;\n this.responseCode = responseCode;\n }", "public static ResponseParams createResponseParamObj(ResponseCode code) {\n ResponseParams params = new ResponseParams();\n if (code.getResponseCode() != 200) {\n params.setErr(code.getErrorCode());\n params.setErrmsg(code.getErrorMessage());\n }\n params.setMsgid(ExecutionContext.getRequestId());\n params.setStatus(ResponseCode.getHeaderResponseCode(code.getResponseCode()).name());\n return params;\n }", "public JsonResponse(String status, String[] message) {\n this.status = status;\n this.message = message;\n }", "public MessageResponseAction(Message message) {\n this(message, 0);\n }", "com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType getCode();", "public TransactionResponse(String statusMessage) {\n this.statusMessage = statusMessage;\n }", "public ErrorResponse(int errNo, String errMessage) {\n\t\tsuper();\n\t\tthis.errNo = errNo;\n\t\tthis.errMessage = errMessage;\n\t}", "public BasicResponse() {\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public SysAccessCodeException(int code, String businessMessage)\n/* */ {\n/* 21 */ this(businessMessage);\n/* */ }", "public interface IEnumResponseCode {\n\t/**\n\t * Returns the code of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getCode();\n\t\n\t/**\n\t * Returns the description of a response message\n\t * @return {@link String}\n\t */\n\tpublic String getDescription();\n\t\n}", "private Token(int code)\n {\n myCode = code;\n }", "public NCCP_Response(int dl)\n {\n super(dl);\n }", "public ReturnInfo(String returnMsg, ReturnCode returnCode)\r\n\t{\r\n\t\tsuper();\r\n\t\tthis.returnMessage = returnMsg;\r\n\t\tthis.returnCode = returnCode.getCode();\r\n\t\tthis.result = null;\r\n\t}", "private MsgStoreCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n protected void handleErrorResponseCode(int code, String message) {\n }", "Wrapper() {\n this(ResponseType.SUCCESS,\"\");\n }", "public AuditDataBuilder responseCode(final String responseCode) {\n this.responseCode = responseCode;\n return this;\n }", "public DataException(String message, String code){\r\n super(message, code);\r\n }", "public TypeCode(String code) {\n this.code = code;\n }", "public ApiException(int code, String msg) {\n\t\tsuper(msg);\n\t\tthis.code = code;\n\t}", "public ReturnInfo(ReturnCode returnCode)\r\n\t{\r\n\t\tsuper();\r\n\t\tthis.returnMessage = returnCode.getMessage();\r\n\t\tthis.returnCode = returnCode.getCode();\r\n\t\tthis.result = null;\r\n\t}", "public ResponseEntity<Object> failBusiness(String code, String message) {\n GeneralResponse<Object> responseObject = new GeneralResponse<>();\n ResponseStatus responseStatus = new ResponseStatus();\n responseStatus.setCode(code);\n responseStatus.setMessage(message);\n responseObject.setStatus(responseStatus);\n return ResponseEntity.status(HttpStatus.OK).body(responseObject);\n }", "public LanguageIdResponse() {\n }", "private StatusMessage() {\n\n\t}", "private StatusMessage() {\n\n\t}", "public ErrorResponse() {\n }", "private MessageStatus(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "CodeType createCodeType();", "public PersonResult(String message){\n super(message);\n }", "public Builder setCode(com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n code_ = value.getNumber();\n onChanged();\n return this;\n }", "private void buildCodeMessageDict() {\r\n if( _codeMessageDictionary == null ) {\r\n _codeMessageDictionary = new Hashtable();\r\n }\r\n _codeMessageDictionary.put( new Integer( SC_SUCCESS ), new String( SM_SUCCESS ) );\r\n _codeMessageDictionary.put( new Integer( SC_BAD_REQUEST ), new String( SM_BAD_REQUEST ) );\r\n _codeMessageDictionary.put( new Integer( SC_FORBIDDEN ), new String( SM_FORBIDDEN ) );\r\n _codeMessageDictionary.put( new Integer( SC_NOT_FOUND ), new String( SM_NOT_FOUND ) );\r\n _codeMessageDictionary.put( new Integer( SC_SERVER_ERROR ), new String( SM_SERVER_ERROR ) );\r\n _codeMessageDictionary.put( new Integer( SC_NOT_IMPLEMENTED ), new String( SM_NOT_IMPLEMENTED ) );\r\n _codeMessageDictionary.put( new Integer( SC_SERVICE_UNAVAILABLE ), new String( SM_SERVICE_UNAVAILABLE ) );\r\n }", "public HttpResponse(int aStatusCode, byte[] aContent, String aContentType)\n\t{\n\t\tmStatusCode = aStatusCode;\n\t\tmContent = aContent;\n\t\tmContentType = aContentType;\n\t}", "public InvalidRequestMsg() {\n\n this(\"\");\n\n }", "public void setResponseCode(java.lang.String responseCode) {\n this.responseCode = responseCode;\n }", "public ReturnInfo(String returnMsg, ReturnCode returnCode, String result)\r\n\t{\r\n\t\tsuper();\r\n\t\tthis.returnMessage = returnMsg;\r\n\t\tthis.returnCode = returnCode.getCode();\r\n\t\tthis.result = result;\r\n\t}", "protected HttpResponseImpl(final int code, final String responseString, final String contentType) {\n this.responseString = responseString;\n this.code = code;\n\n // Default headers\n setHeader(\"Server\", getServerName());\n setHeader(\"Connection\", \"close\");\n setHeader(\"Content-Type\", contentType);\n\n // create the body.\n initBody();\n }", "private Response() {}", "private Response() {}", "com.google.protobuf.ByteString getResponseMessage();", "public EmanagerDatabaseStatusCode()\n {\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n/* 101 */ return new SimpleMessage(message);\n/* */ }", "public RestResult(int responseCode, String errorMsg, String result) {\n this.responseCode = responseCode;\n this.errorMsg = errorMsg;\n this.result = result;\n }", "public JsonResponse(String status, String[] message, String userid, String password, String name, String school, BigDecimal edollar) {\n this.status = status;\n this.message = message;\n this.userid = userid;\n this.password = password;\n this.name = name;\n this.school = school;\n this.edollar = edollar;\n }", "public CallMessage() {\n\t}", "public java.lang.CharSequence getResponseCode() {\n return ResponseCode;\n }", "public void setResultCode(int value) {\n this.resultCode = value;\n }", "public LCAmsg2 () { }", "public CompilerMessage(MessageKind messageKind_) {\r\n this((SourceRange)null, messageKind_, null);\r\n }", "public void setCode(OAIPMHErrorcodeType code) {\r\n this.code = code;\r\n }", "public MessageInfo() { }", "public Neo4jException(String code, String message) {\n this(code, message, null);\n }", "public CoderException(String message) {\n super(message);\n }", "public int getMessageCodeValue();", "public Message(){}", "public Response(){\n\t\t// nothing needed\n\t}", "public Result(Status status, String message) {\n this.status = status;\n this.message = message;\n this.value = Optional.empty();\n }", "public ResultJsonView(String message) {\r\n this(null, message);\r\n }", "public java.lang.CharSequence getResponseCode() {\n return ResponseCode;\n }", "public static ResponseStatus valueOf(int code) {\n code = code & 0xFFFF; // convert negative shorts to unsigned\n if (code < 256) {\n ResponseStatus status = values[code];\n if (status != null) {\n return status;\n }\n }\n return new ResponseStatus(code);\n }", "public Status(int statusCode, String code, String message, String description) {\n this.statusCode = statusCode;\n this.code = code;\n this.severity = defaultSeverity;\n this.message = message;\n this.description = description;\n }", "public void setRequestCode(String requestCode);", "public AuthorizationCodeRequest() {\n setGrantType(ClientConfig.AUTHORIZATION_CODE);\n Map<String, Object> tokenConfig = ClientConfig.get().getTokenConfig();\n if(tokenConfig != null) {\n setServerUrl((String)tokenConfig.get(ClientConfig.SERVER_URL));\n setProxyHost((String)tokenConfig.get(ClientConfig.PROXY_HOST));\n int port = tokenConfig.get(ClientConfig.PROXY_PORT) == null ? 443 : (Integer)tokenConfig.get(ClientConfig.PROXY_PORT);\n setProxyPort(port);\n setServiceId((String)tokenConfig.get(ClientConfig.SERVICE_ID));\n Object object = tokenConfig.get(ClientConfig.ENABLE_HTTP2);\n setEnableHttp2(object != null && (Boolean) object);\n Map<String, Object> acConfig = (Map<String, Object>) tokenConfig.get(ClientConfig.AUTHORIZATION_CODE);\n if(acConfig != null) {\n setClientId((String)acConfig.get(ClientConfig.CLIENT_ID));\n if(acConfig.get(ClientConfig.CLIENT_SECRET) != null) {\n setClientSecret((String)acConfig.get(ClientConfig.CLIENT_SECRET));\n } else {\n logger.error(new Status(CONFIG_PROPERTY_MISSING, \"authorization_code client_secret\", \"client.yml\").toString());\n }\n setUri((String)acConfig.get(ClientConfig.URI));\n setScope((List<String>)acConfig.get(ClientConfig.SCOPE));\n setRedirectUri((String)acConfig.get(ClientConfig.REDIRECT_URI));\n }\n }\n }", "public LeaderBoard_Response() {\n }", "public SOAPErrorCodes() {\n\t\terrorMap = new Hashtable<>();\n\t\terrorMap.put(\"401\", new String[] {\"Invalid Action\",\n\t\t\t\t\"No action by that name at this service.\"});\n\t\terrorMap\n\t\t\t\t.put(\n\t\t\t\t\t\t\"402\",\n\t\t\t\t\t\tnew String[] {\n\t\t\t\t\t\t\t\t\"Invalid Args\",\n\t\t\t\t\t\t\t\t\"Could be any of the following: not \"\n\t\t\t\t\t\t\t\t\t\t+ \"enough in args, too many in args, no in args, no in args by that name, \"\n\t\t\t\t\t\t\t\t\t\t+ \"one or more in args are of the wrong data type.\"});\n\t\terrorMap.put(\"403\", new String[] {\"Out of Sync\",\n\t\t\t\t\"Out of synchronization.\"});\n\t\terrorMap.put(\"501\", new String[] {\n\t\t\t\t\"Action Failed\",\n\t\t\t\t\"May be returned in current state of \"\n\t\t\t\t\t\t+ \"service prevents invoking that action.\"});\n\t\terrorMap.put(\"404\", new String[] {\"Invalid Var\",\n\t\t\t\t\"No state variable by that name at this service.\"});\n\t}", "public RestResponseAsserter statusCode(Consumer<AbstractIntegerAssert> responseCode) {\n responseCode.accept(assertThat(response.code()));\n return this;\n }", "@Override\n public String toString()\n {\n String str = getType() + \": \";\n if (code != 0)\n {\n str += String.valueOf(code) + \": \";\n }\n return str + message;\n }", "public Message newMessage(String message, Object p0, Object p1, Object p2) {\n/* 85 */ return new SimpleMessage(message);\n/* */ }", "public Message(String type, Object message) {\n\t\tthis.type = type;\n\t\tthis.message = message;\n\t}", "public HttpResponseCode getCode() {\n return code;\n }", "public ExecutionResponseMessage(RequestMessage request, ResultType result, String description) {\r\n super(request);\r\n this.result = result;\r\n this.description = description;\r\n }", "public Option(final int code, final byte[] value) {\n this.code = code;\n this.value = value;\n }", "public JsonResponse(int status) {\n super();\n this.status = status;\n }", "public Builder setResultCode(protocol.Result.ResultCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n resultCode_ = value.getNumber();\n onChanged();\n return this;\n }", "public NYSIISCode(){\n }", "public void errorResponse(int code, String msg){\n msg = errorMessage(code, msg);\n StringReader inputStream = new StringReader( msg );\n\n Content ct = new crc.content.text.html( inputStream, this );\n Transaction response = new HTTPResponse( Pia.instance().thisMachine,\n\t\t\t\t\t toMachine(), ct, false);\n response.setStatus( code );\n response.setContentType( \"text/html\" );\n response.setContentLength( msg.length() );\n Pia.debug(this, \"The header : \\n\" + response.headersAsString() );\n response.startThread();\n }", "public ConnectMessage(String connectedClient, int code)\n {\n super(Message.CONNECT);\n this.connectedClient = connectedClient;\n this.code = code;\n }", "public Message() {}", "public Message() {}", "public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3) {\n/* 93 */ return new SimpleMessage(message);\n/* */ }" ]
[ "0.74589777", "0.7364523", "0.72891206", "0.7199849", "0.7190642", "0.6846862", "0.6844014", "0.68140846", "0.6762371", "0.6668776", "0.6632801", "0.658675", "0.65505517", "0.6484495", "0.6469561", "0.64020544", "0.6380098", "0.6328559", "0.6318873", "0.6250418", "0.6238609", "0.620266", "0.6161119", "0.61233884", "0.6110494", "0.61088216", "0.61088216", "0.61075425", "0.61075425", "0.60835713", "0.6061789", "0.60541373", "0.6052097", "0.6050626", "0.60302156", "0.60164475", "0.6005751", "0.59419185", "0.59340435", "0.59123117", "0.5910352", "0.5886368", "0.5877699", "0.5875358", "0.58701813", "0.58701813", "0.586525", "0.5851044", "0.5830211", "0.5819342", "0.5812347", "0.5812073", "0.5806974", "0.57844806", "0.5773015", "0.575766", "0.57460874", "0.5736816", "0.5736816", "0.573371", "0.57321143", "0.5731355", "0.57224894", "0.5722404", "0.57188684", "0.5712113", "0.5703112", "0.5699157", "0.5696745", "0.5695209", "0.56791943", "0.5671064", "0.56676465", "0.56666553", "0.56658167", "0.56633174", "0.5653749", "0.5648605", "0.5644592", "0.5643268", "0.5637908", "0.56279516", "0.56245315", "0.56214064", "0.56114095", "0.5610997", "0.561004", "0.56094605", "0.55970085", "0.5596243", "0.55941975", "0.5593683", "0.5591353", "0.55768263", "0.55756605", "0.5575354", "0.55717236", "0.55670685", "0.55670685", "0.55644053" ]
0.76956517
0
NOTE THIS will fail under duplicates
public static int findLargest(int[] data){ int lo=0, hi=data.length-1; int mid = (lo+hi)/2; int N = data.length-1; while (lo <= hi){ int val = data[mid]; if(mid == 0 ) return (val > data[mid+1]) ? mid : -1; else if(mid == N) return (val > data[mid-1]) ? mid : -1; else{ int prev = data[mid-1]; int next = data[mid+1]; if(prev < val && val < next) lo=mid+1; else if(prev > val && val > next) hi = mid-1; else return mid; // prev > val && val > next // is the only other case mid = (lo+hi)/2; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\tSystem.out.println(oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>();\n\t\t\t\n\t\t\tString s = \"\";\n\t\t\tfor(int i=0;i<oList.size();i++)\n\t\t\t{\n\t\t\t\tif((oSet.add(oList.get(i))==false) && (!s.contains(oList.get(i))))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Duplicate: \"+oList.get(i));\n\t\t\t\t\ts+=oList.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toList = null;\n\t\t\toSet = null;\n\t\t}\n\t}", "@Override\n public int hashCode() {\n return 1;\n }", "public void testFindDuplicates() {\r\n System.out.println(\"findDuplicates\");\r\n \r\n List<String> elements = new ArrayList<>();\r\n elements.add(\"foo\");\r\n elements.add(\"bar\");\r\n elements.add(\"abc\");\r\n elements.add(\"foo\");\r\n elements.add(\"cde\");\r\n elements.add(\"cde\");\r\n elements.add(\"efg\");\r\n elements.add(\"cde\");\r\n \r\n Set<String> expResult = new LinkedHashSet<>();\r\n expResult.add(\"foo\");\r\n \r\n LexicalChecker instance = new LexicalChecker();\r\n Set<String> result = instance.findDuplicates(elements);\r\n \r\n assertNotSame(expResult, result);\r\n \r\n expResult.add(\"cde\");\r\n assertEquals(expResult, result);\r\n }", "private List<CustStmtRecord> validateDuplicate (final List<CustStmtRecord> custStmtRecords) {\n\t\tlog.info(\"Entering {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\tfinal List<CustStmtRecord> duplicateReference = custStmtRecords\n\t\t\t\t.parallelStream()\n\t\t\t\t\t.filter(e -> Collections.frequency(custStmtRecords, e) > 1)\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\t\t;\n\t\t\t\n\t\tlog.info(\"duplicateReference {}\", duplicateReference);\n\t\t\t\n\t\tlog.info(\"Exiting {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\treturn duplicateReference;\n\t}", "void scanunique() {\n\t\tint oldline, newline;\n\t\tnode psymbol;\n\n\t\tfor (newline = 1; newline <= newinfo.maxLine; newline++) {\n\t\t\tpsymbol = newinfo.symbol[newline];\n\t\t\tif (psymbol.symbolIsUnique()) { // 1 use in each file\n\t\t\t\toldline = psymbol.linenum;\n\t\t\t\tnewinfo.other[newline] = oldline; // record 1-1 map\n\t\t\t\toldinfo.other[oldline] = newline;\n\t\t\t}\n\t\t}\n\t\tnewinfo.other[0] = 0;\n\t\toldinfo.other[0] = 0;\n\t\tnewinfo.other[newinfo.maxLine + 1] = oldinfo.maxLine + 1;\n\t\toldinfo.other[oldinfo.maxLine + 1] = newinfo.maxLine + 1;\n\t}", "private void compareFirstPass() {\n this.oldFileNoMatch = new HashMap<String, SubsetElement>();\r\n Iterator<String> iter = this.oldFile.keySet().iterator();\r\n while (iter.hasNext()) {\r\n final String key = iter.next();\r\n if (!this.newFile.containsKey(key)) {\r\n final String newKey = this.oldFile.get(key).getSubsetCode()\r\n + this.oldFile.get(key).getConceptCode();\r\n this.oldFileNoMatch.put(newKey, this.oldFile.get(key));\r\n }\r\n }\r\n\r\n // Now repeat going the other way, pulling all new file no matches into\r\n // newFileNoMatch\r\n this.newFileNoMatch = new HashMap<String, SubsetElement>();\r\n iter = this.newFile.keySet().iterator();\r\n while (iter.hasNext()) {\r\n final String key = iter.next();\r\n if (!this.oldFile.containsKey(key)) {\r\n final String newKey = this.newFile.get(key).getSubsetCode()\r\n + this.newFile.get(key).getConceptCode();\r\n this.newFileNoMatch.put(newKey, this.newFile.get(key));\r\n }\r\n }\r\n\r\n // dump the initial large HashMaps to reclaim some memory\r\n this.oldFile = null;\r\n this.newFile = null;\r\n }", "protected boolean isDuplicate(ELesxUseCase useCase) {\n return false;\n }", "private SAMRecord uniqueAlignment(SAMRecord record) {\n\t\tSAMRecord toReturn;\n\t\t// this should not throw the error, but it is safer\n\t\ttry {\n\t\t\t// copy the record\n\t\t\ttoReturn = (SAMRecord)record.clone();\n\t\t} catch(Exception e) {\n\t\t\tthrow new RuntimeException(\"Unexpected exception when obtaining unique alignment from \"+record);\n\t\t}\n\t\ttoReturn.setAttribute(\"X0\", 1);\n\t\treturn toReturn;\n\t}", "void setDupOfSeqObj(List<SeqInfo> seqObjList) {\n\t\tboolean desc=false;\n\t\tCollections.sort(seqObjList, new SeqInfo.CompSeqEncode(desc));\n\t\t//System.out.println(\"Sorted reads: \"+seqObjList.size());\n\t\t//timeStamp=new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\t//System.out.println(\"time: \"+timeStamp);\n\t \n\t\tSeqInfo seqObj;\n\t\tSeqInfo seqObj_r0 = null;\n\t\tSeqInfo currSeqObj;\n\t\tSeqInfo currSeqObj2; \n\t List<SeqInfo> querySeqObjList; \n\t\t\n\t int i=0; \n\t int r=0;\n\t //int m=1;\n\t\tfor(int s=0;s<seqObjList.size();s++){\n\t\t currSeqObj=seqObjList.get(s);\t\n\t\t if(!currSeqObj.isDup && currSeqObj.dupNum<0){\n\t\t\t /*\n\t\t\t if((s+1)/500000==m) {\n\t\t\t\ttimeStamp=new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\t\t\tSystem.out.println((s+1)+\" time: \"+timeStamp);\n\t\t\t\tm++;\n\t\t\t }\t\n\t\t\t */\n\t\t\t querySeqObjList=SeqOperation.findSeqObjOfSameEncode(seqObjList,currSeqObj);\n\t\t\t if(querySeqObjList.size()==1) {\n\t\t\t\tcurrSeqObj.isDup=false;\n\t\t\t\tcurrSeqObj.dupNum=0; \n\t\t\t }else if(querySeqObjList.size()>1){\n\t\t\t currSeqObj2=currSeqObj;\n\t\t\t while(currSeqObj2!=null){\t\t \n\t\t\t currSeqObj2=null;\n\t\t\t\t r=0;\n\t\t\t\t i=0;\n\t\t\t\t while(i<querySeqObjList.size()) {\t\n\t\t\t\t seqObj=querySeqObjList.get(i);\t\t \n\t\t\t\t if(seqObj.seq.equalsIgnoreCase(currSeqObj.seq)){\t\t\t\t\n\t\t\t\t\t if(r==0) { \t\t\t\n\t\t\t\t\t seqObj_r0=seqObj;\n\t\t\t\t\t seqObj_r0.isDup=false;\n\t\t\t\t\t }if(r>0) {\t\t\t\t \n\t\t\t\t\t seqObj.isDup=true;\n\t\t\t\t\t seqObj.dupNum=r;\t\n\t\t\t\t\t }\n\t\t\t\t\t seqObj_r0.dupNum=r;\n\t\t\t\t\t querySeqObjList.remove(seqObj);\n\t\t\t\t\t r++;\n\t\t\t\t }else{\n\t\t\t\t\t currSeqObj2=seqObj;\t\n\t\t\t\t\t i++;\t\t\n\t\t\t\t } \t\t \n\t\t\t\t }// while query\n\t\t\t\t if(currSeqObj2!=null) currSeqObj=currSeqObj2;\n\t\t\t }\n\t\t\t }\n\t\t\t querySeqObjList=null;\t \n\t\t }\t \n\t\t}\n\t\t\n\t Collections.sort(seqObjList, new SeqInfo.CompSeqID(desc));\t\n }", "private SAMRecord markDuplicatesAndGetTheNextAvailable() {\n\n // Check if there are any we can flush output buffer\n { // NB: braces to limit the scope of 'record'\n final SAMRecord record = flush();\n if (null != record) return record;\n }\n\n // Check if there are any more records to read in\n if (!backingIterator.hasNext()) { // no more records to read in\n\n // Check if there are any more to mark\n if (toMarkQueue.isEmpty()) {\n // check if there are any that can be outputted\n if (outputBuffer.isEmpty()) {\n return null;\n } // no need to flush; no records in the queue and buffer\n } else {\n // force marking duplicates on the remaining records\n tryPollingTheToMarkQueue(true, null);\n }\n\n /* Since we have no more records to read in, and no more records that need duplicate marking run, we\n update our coordinate to past the end of the reference\n */\n referenceIndex = header.getSequenceDictionary().getSequences().size();\n\n /* Now we recurse, so that we can flush from the outputBuffer until it is empty, then return null when\n * all of the input, queue, and buffer are empty */\n return markDuplicatesAndGetTheNextAvailable();\n }\n\n /* We need to retrieve more records from the input iterator and duplicate mark, until we can return one that\n * has been through duplicate marking.\n */\n while (backingIterator.hasNext()) {\n\n // NB: we could get rid of this if we made nextRecord into a list...\n // NB: we do not actually remove this record from the backing iterator until much later, to help with processing unmapped reads at the EOF\n SAMRecord record = backingIterator.peek(); // peek: used for unmapped reads\n final SamRecordWithOrdinal samRecordWithOrdinal = new SamRecordWithOrdinalAndSetDuplicateReadFlag(record, backingIteratorRecordIndex);\n\n ReadEndsForMateCigar readEnds = null;\n boolean performedChunkAndMarkTheDuplicates = false;\n\n // remove duplicate information\n record.setDuplicateReadFlag(false);\n\n /* Check for pairs that have both ends mapped and missing mate cigar. */\n if (ignoreDueToMissingMateCigar(samRecordWithOrdinal)) {\n continue;\n }\n\n // check for an unmapped read\n if (record.getReadUnmappedFlag()) {\n // unmapped reads at the end of the file!\n if (-1 == record.getReferenceIndex()) {\n // NB: this may call markDuplicatesAndGetTheNextAvailable if this is the first time a EOF unmapped record has been seen\n return nextIfRecordIsUnmappedAtEOF(record);\n } else if (!record.isSecondaryOrSupplementary()) {\n // update metrics\n final DuplicationMetrics metrics = getMetrics(record);\n ++metrics.UNMAPPED_READS;\n }\n // we will check for unmapped reads later so as not to add them to mark queue\n } else {\n // If not already set, this sets the minimum distance to twice the read length, or 100, whichever is larger\n if (-1 == toMarkQueue.getToMarkQueueMinimumDistance()) {\n // use twice the first read's length\n toMarkQueue.setToMarkQueueMinimumDistance(Math.max(2 * record.getReadBases().length, 100));\n }\n\n // build a read end for use in the toMarkQueue\n readEnds = new ReadEndsForMateCigar(header, samRecordWithOrdinal, opticalDuplicateFinder, libraryIdGenerator.getLibraryId(samRecordWithOrdinal.getRecord()));\n\n // check that the minimumDistance was not too small\n checkForMinimumDistanceFailure(readEnds);\n\n /*\n * If we can do some duplicate marking, lets do it!\n * IMPORTANT: this does not flush the to-mark-queue, so the minimum distance needs to be set for us to infer\n * which records will never be supplemented (i.e. are non-duplicate).\n */\n performedChunkAndMarkTheDuplicates = tryPollingTheToMarkQueue(false, readEnds);\n }\n\n // We can now remove the record from the input\n backingIterator.next();\n\n // Add this to the outputBuffer so it can be tracked. It will not be available to emit until it has been through duplicate marking.\n addRecordToTheOutputBuffer(samRecordWithOrdinal);\n backingIteratorRecordIndex++; // Each record is has an index and is emitted in the same order. This helps that.\n\n // We do not consider secondary, supplementary, or unmapped alignments for duplicate marking. We can thus mark that duplicate marking on them has been completed.\n final DuplicationMetrics metrics = getMetrics(record);\n if (record.isSecondaryOrSupplementary() || record.getReadUnmappedFlag()) {\n outputBuffer.setResultState(samRecordWithOrdinal, false);\n if(record.isSecondaryOrSupplementary()){\n ++metrics.SECONDARY_OR_SUPPLEMENTARY_RDS;\n }\n } else {\n // Bring the simple metrics up to date\n if (!record.getReadPairedFlag() || record.getMateUnmappedFlag()) {\n ++metrics.UNPAIRED_READS_EXAMINED;\n } else {\n ++metrics.READ_PAIRS_EXAMINED; // will need to be divided by 2 at the end\n }\n\n // Add the record for duplicate marking, which may in fact cause it to be duplicate marked or stored for later\n toMarkQueue.add(readEnds, outputBuffer, getMetrics(readEnds.getRecord()));\n }\n\n // Check if there are any we can flush, which happens if we just performed duplicate marking\n if (performedChunkAndMarkTheDuplicates) {\n record = flush();\n if (null != record) return record;\n }\n }\n\n // try again, as we may have records we can flush, or we want to see if we are at the EOF\n return markDuplicatesAndGetTheNextAvailable();\n }", "@Test\n\tpublic void testRepeatedInsert() {\n\t\tSetADT<String> items = new JavaSet<>();\n\t\titems.insert(\"A\");\n\t\titems.insert(\"B\");\n\t\titems.insert(\"C\");\n\t\titems.insert(\"C\");\n\t\t\n\t\t// No matter what, \"C\" can't be added twice.\n\t\titems.insert(\"C\");\n\t\tassertEquals(3, items.size());\n\t\t\n\t\t//double checking - same as for loop\n\t\titems.insert(\"C\");\n\t\tassertEquals(3, items.size());\n\t\t\n\t\tassertEquals(3, items.size());\n\t\tassertEquals(true, items.contains(\"A\"));\n\t\tassertEquals(true, items.contains(\"B\"));\n\t\tassertEquals(true, items.contains(\"C\"));\n\t\t\n\t}", "@Test\n\tpublic void addSameValueTwice() {\n\t\tXSet xset = new XSet(3);\n\t\txset.add(1);\n\t\txset.add(1);\n\t\tassertTrue(xset.getSize() == 1);\n\t}", "static SparseArray<TaskDetail> getCurrentMappingsDuplicated() {\n SparseArray<TaskDetail> toReturn = new SparseArray<>();\n for (int i = 0; i < TaskDetail.actionToTask.size(); i++) {\n TaskDetail detail = TaskDetail.actionToTask.valueAt(i);\n toReturn.put(TaskDetail.actionToTask.keyAt(i), detail.duplicate());\n }\n return toReturn;\n }", "@Override\n protected int getNumRepetitions() {\n return 1;\n }", "@Test\r\n\tpublic void test1() {\r\n\t\tint[] nums = {1,2,3,1,4};\r\n\t\tAssert.assertEquals(true, containsDuplicate(nums));\r\n\t}", "private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }", "public boolean supportsUnique() {\n \t\treturn true;\n \t}", "@Test \r\n\t\tpublic void testinsertAll() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(list1);\r\n\t\t\t// create set = to unique values in list \r\n\t\t\ttestingSet2 = new IntegerSet(unique); \r\n\t\t\t// 2 set should be equal \r\n\t\t\t// assertEquals for these parameters is a deprecated method \r\n\t\t\tassertArrayEquals(testingSet.toArray(), testingSet2.toArray()); \r\n\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t}", "public static void incrDuplicates() { ++duplicates; }", "protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }", "@Test\n public void testRemoveDuplicates() {\n System.out.println(\"removeDuplicates\");\n ArrayList<String> array = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"C.EXAMPLE.COM,1.1.1.3,no,12.1,\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"c.example.com,1.1.1.5,no,12,Case a bit loose\",\n \"e.example.com,1.1.1.6,no,12.3,\",\n \"f.example.com,1.1.1.7,No,12.200,\",\n \"g.example.com,1.1.1.6,no,15.0,Guarded by sharks with lasers on their heads\"\n ));\n ArrayList<String> expResult = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"f.example.com,1.1.1.7,No,12.200,\"\n ));\n ArrayList<String> result = BTRouterPatch.removeDuplicates(array);\n assertEquals(expResult, result);\n }", "private void HaveDuplicate() {\n haveDuplicate = false;\n duplicateCounter = 0;\n try {\n query=\"SELECT * FROM category WHERE category_id = '\"+ txtCategoryNo.getText() +\"' OR category_name = '\"+\n txtCategoryName.getText() + \"'\";\n rset = connection.createStatement().executeQuery(query);\n while (rset.next()) {\n haveDuplicate = true;\n duplicateCounter++;\n }\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n\n }", "public void test_retainAll() {\r\n try {\r\n List<WrongHashCode> retain = new ArrayList<WrongHashCode>();\r\n retain.add(new WrongHashCode(\"1\"));\r\n \r\n Set<WrongHashCode> set = IdentityHashSet.create();\r\n set.add(new WrongHashCode(\"2\"));\r\n \r\n assertTrue(set.retainAll(retain));\r\n assertEquals(0, set.size());\r\n \r\n fail(\"retainAll works now, rewrite test\");\r\n } catch (UnsupportedOperationException e) {\r\n //passed\r\n }\r\n }", "public int hashCode() {\n/* 781 */ return getUniqueId().hashCode();\n/* */ }", "@Override\n public int hashCode() {\n return 0;\n }", "@Test\n public void whenAddSeveralIdenticalElementsThenSetHasOnlyOneSuchElement() {\n SimpleSet<Integer> set = new SimpleSet<>();\n set.add(1);\n set.add(2);\n set.add(3);\n set.add(3);\n set.add(2);\n set.add(1);\n\n Iterator<Integer> iterator = set.iterator();\n\n assertThat(iterator.next(), is(1));\n assertThat(iterator.next(), is(2));\n assertThat(iterator.next(), is(3));\n assertThat(iterator.hasNext(), is(false));\n }", "boolean isIsUnique();", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "private Map<Key, Integer> mergeDuplicatedItemsAndDelte0(simpleRingBuffer<byte[]> buff2) {\n\t\t// TODO Auto-generated method stub\n\t\t//Iterator<byte[]> ier0 = buff2.iterator();\t \t\n \n//\t\tMap<Key, Integer> deduplicatedMap = Maps.newLinkedHashMap();\n// \t \t\n//\t\twhile(!buff2.isEmpty()){\n//\t\t\t//delete\n//\t\t\tbyte[] out = buff2.pop();\n//\t\t\t//push to the hash table\n//\t\t\tif(!deduplicatedMap.containsKey( out.key)){\n//\t\t\t\tdeduplicatedMap.put( out.key, out.counter);\t \n//\t\t\t}else{\n//\t\t\t\tdeduplicatedMap.replace(out.key, out.counter+deduplicatedMap.get(out.key));\n//\t\t\t}\n//\t\t}\n//\t\treturn deduplicatedMap;\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic int hashCode() {\n\t\t\treturn 0;\r\n\t\t}", "boolean isUnique();", "public List<TreeNode> findDuplicateSubtrees(TreeNode root) {\n // like i thought, we can take the advantage of the serialization of the tree node\n // that is how we can put them into the map and check if there already exsit the same serials\n List<TreeNode> ans = new ArrayList<>();\n dfspostorder(root,new HashMap<String,Integer>(),ans);\n return new ArrayList<TreeNode>(ans);\n }", "private static Set<String> m23474a(Set<String> set, Set<String> set2) {\n if (set.isEmpty()) {\n return set2;\n }\n if (set2.isEmpty()) {\n return set;\n }\n HashSet hashSet = new HashSet(set.size() + set2.size());\n hashSet.addAll(set);\n hashSet.addAll(set2);\n return hashSet;\n }", "private boolean checkDuplicate(int id) {\r\n boolean x = false;\r\n for (Registration registration : studentRegList) {\r\n if (id == registration.getCourseId()) {\r\n x = true;\r\n break;\r\n }\r\n x = false;\r\n }\r\n return x;\r\n }", "private void skipStaleEntries()\n {\n while (this.index < keys.size() && !HashBijectiveMap.this.containsKey(keys.get(this.index)))\n this.index++;\n }", "public Multimap<String, Command> checkForDuplicateNames() {\r\n\t\tList<Command> allCommands = new ArrayList<>();\r\n\t\tallCommands.addAll(this.commands);\r\n\t\tallCommands.addAll(learnedCommands.getCommands());\r\n\r\n\t\tMultimap<String, Command> byName = ArrayListMultimap.create();\r\n\t\tfor (Command command : allCommands) {\r\n\t\t\tbyName.put(command.name().toLowerCase(), command);\r\n\t\t\tfor (String alias : command.aliases()) {\r\n\t\t\t\tbyName.put(alias.toLowerCase(), command);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tMultimap<String, Command> duplicates = ArrayListMultimap.create();\r\n\r\n\t\tbyName.asMap().entrySet().stream() //@formatter:off\r\n\t\t\t.filter(entry -> entry.getValue().size() > 1)\r\n\t\t.forEach(entry -> duplicates.putAll(entry.getKey(), entry.getValue())); //@formatter:on\r\n\r\n\t\treturn duplicates;\r\n\t}", "@Test\n public void testHasDups() {\n var arg = new String[] {\"a\",\"b\",\"c\"};\n Sequence instance = new Sequence();\n boolean expResult = false;\n boolean result = instance.hasDups(arg);\n assertEquals(expResult, result);\n }", "@Test(expected = Exception.class)\n public void test() throws Exception {\n\n new HashMap<>();\n MyHashTable2 mp = new MyHashTable2();\n mp.put(\"prem\",7);\n mp.put(\"radha\",72);\n mp.put(\"geeta\",74);\n mp.put(\"sunita\",76);\n mp.put(\"atul\",87);\n mp.put(\"rakesh\",37);\n mp.put(\"aklesh\",72);\n\n // try to add duplicate keys and test exception\n mp.put(\"aklesh\",72);\n\n\n assert 7 == mp.get(\"prem\");\n assert 72 == mp.get(\"aklesh\");\n assert 87 == mp.get(\"atul\");\n assert null == mp.get(\"noting\");\n\n System.out.println(mp.getKeySet());\n\n mp.prettyPrint();\n }", "@Override\n public int hashCode() {\n return super.hashCode();\n }", "private Node removeDuplicate() {\n ArrayList<Integer> values = new ArrayList<Integer>();\n int len = this.getlength();\n Node result = this;\n\n if (len == 1) {\n System.out.println(\"only one element can't duplicate\");\n return result;\n } else {\n Node current = result;\n\n for (int i = 0; i < len; i++) {\n if (values.contains(current.value)) {\n result = result.remove(i);\n len = result.getlength();\n i--; // reset the loop back\n current = current.nextNode;\n } else {\n values.add(current.value);\n current = current.nextNode;\n }\n }\n return result;\n }\n }", "@Override\n public int hashCode() {\n return super.hashCode();\n }", "@Override\n public int hashCode() {\n return super.hashCode();\n }", "@Override\n public int hashCode() {\n return super.hashCode();\n }", "@Override\n public int hashCode() {\n return super.hashCode();\n }", "@Test\n public void testMerge() {\n \t//create data set\n final LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n lastWriteWinSet1.add(time3, \"php\");\n lastWriteWinSet1.add(time1, \"java\");\n lastWriteWinSet1.add(time1, \"scala\");\n lastWriteWinSet1.delete(time2, \"scala\");\n\n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n lastWriteWinSet2.add(time1, \"php\");\n lastWriteWinSet2.add(time1, \"python\");\n lastWriteWinSet2.add(time1, \"scala\");\n lastWriteWinSet2.delete(time2, \"php\");\n\n // run test\n final LastWriteWinSet<String> resultSet = lastWriteWinSet1.merge(lastWriteWinSet2);\n\n assertTrue(resultSet.getData().size() == 3);\n assertTrue(resultSet.getData().contains(\"php\"));\n assertTrue(resultSet.getData().contains(\"python\"));\n assertTrue(resultSet.getData().contains(\"java\"));\n \n \n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultAddSet = resultSet.getAddSet();\n final Set<LastWriteWinSet.ItemTD<String>> addedData = resultAddSet.getData();\n assertTrue(addedData.size() == 5);\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"php\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(3, \"php\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"java\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"python\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"scala\")));\n\n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultDeleteSet = resultSet.getDeleteSet();\n final Set<LastWriteWinSet.ItemTD<String>> deletedData = resultDeleteSet.getData();\n assertTrue(deletedData.size() == 2);\n assertTrue(deletedData.contains(new LastWriteWinSet.ItemTD<>(2, \"scala\")));\n assertTrue(deletedData.contains(new LastWriteWinSet.ItemTD<>(2, \"php\")));\n }", "@Test\n public void testEquals() {\n \t\n \t//create data set\n \tString strJava = \"java\";\n \tString strScala = \"scala\";\n \tString strPhp = \"php\";\n \t\n \tfinal LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n\n \tlastWriteWinSet1.add(time1, strJava);\n \tlastWriteWinSet1.add(time1, strScala);\n \tlastWriteWinSet1.add(time1, strPhp);\n\n \tlastWriteWinSet1.delete(time2, strJava);\n \n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n\n lastWriteWinSet2.add(time1, strJava);\n lastWriteWinSet2.add(time1, strScala);\n lastWriteWinSet2.add(time1, strPhp);\n\n lastWriteWinSet2.delete(time2, strJava);\n \n final LastWriteWinSet<String> lastWriteWinSet3 = lastWriteWinSet2;\n \t\n assertTrue(lastWriteWinSet1.equals(lastWriteWinSet2));\n assertTrue(lastWriteWinSet3.equals(lastWriteWinSet2));\n assertTrue(lastWriteWinSet1.equals(lastWriteWinSet1));\n assertTrue(!lastWriteWinSet1.equals(null));\n }", "public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }", "@Test\n public void shouldReturnUniqueCodenames()\n {\n String[] codenames = DatabaseHelper.getRandomCodenames(25);\n boolean noMatches = true;\n\n\n for (int i = 0; i < codenames.length-1; i++)\n {\n for (int j = i+1; j < codenames.length; j++)\n {\n if (codenames[i] == codenames[j])\n {\n noMatches = false;\n // Here to give more detailed feedback in case the test fails.\n System.out.println(\"Match found: \" + codenames[i] + \" \" + codenames[j]);\n }\n }\n }\n\n assert(noMatches);\n }", "public boolean isUnique();", "private boolean itsRepeated(BTreeNode<T> currentNode, I id) {\n\n for (int i = 0; i < 5; i++) {\n if (currentNode.getKey(i) != null) {\n if (comparator.compare(currentNode.getKey(i), id) == 0) {\n return true;\n }\n }\n }\n\n return false;\n }", "private static boolean duplicateSetName(String setName){\n boolean duplicate = false;\n for (Set set : SetManager.getInstance().getSets()) {\n if (set.getName() != null) {\n if (set.getName().equals(setName)) {\n duplicate = true;\n }\n }\n }\n return duplicate;\n }", "@Override\r\n public int hashCode() {\r\n return super.hashCode();\r\n }", "@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}", "@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}", "@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}", "private static void fun2(List<String> ac1, List<List<String>> result, int index) {\n\t\tString key = ac1.get(0);\r\n\t\tfor(int i=index;i<result.size();i++){\r\n\t\t\tList<String> res=result.get(i);\r\n\t\t\tif(res.get(0).equals(key)){\r\n\t\t\t\t//check if any one of the value is repeated\r\n\t\t\t\tboolean check=fun3(res,ac1);\r\n\t\t\t\tif(check){\r\n\t\t\t\t\tfor(int j=1;j<ac1.size();j++){\r\n\t\t\t\t\t\tres.add(ac1.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected boolean allowsDuplicates(Class type) {\n return !Set.class.isAssignableFrom(type);\n }", "public static void main(String[] args) {\n\t\tSet<Puppy> set = new LinkedHashSet<Puppy>(10);\n\t\t\n\t\t// this DS which can hold other object\n\t\tPuppy puppy1=new Puppy(\"Tommy\",10 );\n\t\tPuppy puppy2=new Puppy(\"AHH\", 12);\n\t\tPuppy puppy3=new Puppy(\"MYY\", 5);\n\t\tPuppy puppy4=new Puppy(\"NANY\", 3);\n\t\tPuppy puppy5=new Puppy(\"NANY\", 3);\n\t\t\n\t\t//dog4 and dog5 are duplicate elements\n\t\tset.add(puppy1);\n\t\tset.add(puppy2);\n\t\tset.add(puppy3);\n\t\tset.add(puppy4);\n\t\tset.add(puppy5);\n\t\t\n\t\tSystem.out.println(\"puppy4 . hashCode () = \"+puppy4.hashCode());\n\t\tSystem.out.println(\"puppy5 . hashCode () = \"+puppy5.hashCode());\n\t\t\n\t\tIterator<Puppy> iterator=set.iterator();\n\t\t\n\t\tSystem.out.println(\"Accessing data using Iterator interface!\");\n\t\twhile(iterator.hasNext()){\n\t\t\tPuppy puppy=iterator.next();\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"____________-----\");\n\t\tfor(Puppy puppy:set){\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\tPuppy puppy6=new Puppy(\"NANY\", 3);\n\t\t\n\t\tboolean b=set.contains(puppy6);\n\t\tif(b){\n\t\t\tSystem.out.println(\"puppy6 found in set!\"+puppy6);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Run it\");\n\t\t /* final Entry<K,V> getEntry(Object key) {\n\t\t int hash = (key == null) ? 0 : hash(key.hashCode());\n\t\t for (Entry<K,V> e = table[indexFor(hash, table.length)];\n\t\t e != null;\n\t\t e = e.next) {\n\t\t Object k;\n\t\t if (e.hash == hash &&\n\t\t ((k = e.key) == key || (key != null && key.equals(k))))\n\t\t return e;\n\t\t }\n\t\t return null;\n\t\t } */\n\t\t b=set.contains(puppy1);\n\t\tif(b){\n\t\t\tSystem.out.println(b+\"is found in set!\");\n\t\t}\n\t\t\n\n\t}", "static boolean isDuplicated(String mac) {\n for (DeviceDetail detail : deviceDetails) {\n if (detail.macAddress.equals(mac)) {\n return true;\n }\n }\n return false;\n }", "private void createNewItemsetsFromPreviousOnes() {\n // by construction, all existing itemsets have the same size\n int currentSizeOfItemsets = itemsets.get(0).length;\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Creating itemsets of size {0} based on {1} itemsets of size {2}\", new Object[]{currentSizeOfItemsets + 1, itemsets.size(), currentSizeOfItemsets});\n\n HashMap<String, String[]> tempCandidates = new HashMap<>(); //temporary candidates\n\n // compare each pair of itemsets of size n-1\n for (int i = 0; i < itemsets.size(); i++) {\n for (int j = i + 1; j < itemsets.size(); j++) {\n String[] X = itemsets.get(i);\n String[] Y = itemsets.get(j);\n\n assert (X.length == Y.length);\n\n //make a string of the first n-2 tokens of the strings\n String[] newCand = new String[currentSizeOfItemsets + 1];\n for (int s = 0; s < newCand.length - 1; s++) {\n newCand[s] = X[s];\n }\n\n int ndifferent = 0;\n // then we find the missing value\n for (int s1 = 0; s1 < Y.length; s1++) {\n boolean found = false;\n // is Y[s1] in X?\n for (int s2 = 0; s2 < X.length; s2++) {\n if (X[s2].equals(Y[s1])) {\n found = true;\n break;\n }\n }\n if (!found) { // Y[s1] is not in X\n ndifferent++;\n // we put the missing value at the end of newCand\n newCand[newCand.length - 1] = Y[s1];\n }\n\n }\n\n // we have to find at least 1 different, otherwise it means that we have two times the same set in the existing candidates\n assert (ndifferent > 0);\n\n /*if (ndifferent==1) {\n \tArrays.sort(newCand);*/\n tempCandidates.put(Arrays.toString(newCand), newCand);\n //}\n }\n }\n\n //set the new itemsets\n itemsets = new ArrayList<>(tempCandidates.values());\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Created {0} unique itemsets of size {1}\", new Object[]{itemsets.size(), currentSizeOfItemsets + 1});\n\n }", "private void compareSecondPass() {\n final int arraySize = this.oldFileNoMatch.size()\r\n + this.newFileNoMatch.size();\r\n this.compareArray = new SubsetElement[arraySize][2];\r\n final Iterator<String> oldIter = this.oldFileNoMatch.keySet()\r\n .iterator();\r\n int i = 0;\r\n while (oldIter.hasNext()) {\r\n final String key = oldIter.next();\r\n final SubsetElement oldElement = this.oldFileNoMatch.get(key);\r\n SubsetElement newElement = null;\r\n if (this.newFileNoMatch.containsKey(key)) {\r\n newElement = this.newFileNoMatch.get(key);\r\n }\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n // now go through the new elements and check for any that have no match.\r\n // these will be new elements with no corresponding old element\r\n final SubsetElement oldElement = null;\r\n final Iterator<String> newIter = this.newFileNoMatch.keySet()\r\n .iterator();\r\n while (newIter.hasNext()) {\r\n final String key = newIter.next();\r\n if (!this.oldFileNoMatch.containsKey(key)) {\r\n final SubsetElement newElement = this.newFileNoMatch.get(key);\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n\r\n }\r\n\r\n }", "private void correctSerialNumber() {\n\t\tfor (int i = 0; i < wsArr.length; i++) {\n\t\t\tfor (int j = i + 1; j < wsArr.length; j++) {\n\t\t\t\tif (wsArr[j].getSerialNumber() == wsArr[i].getSerialNumber()) {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tSystem.out.println(\"Duplicate serial number \" + wsArr[j].getSerialNumber() + \" detected in record # \" + (j + 1) + \".\");\n\t\t\t\t\t\tlong serialNumber = this.getNewSerialNumber();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tthis.verifyDuplication(j, serialNumber);\n\t\t\t\t\t\t\twsArr[j].setSerialNumber(serialNumber);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} catch (DuplicateSerialNumberException e) {\n\t\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected /*@ non_null @*/ JMLObjectSet<E> fast_insert(E elem) {\n return new JMLObjectSet<E>( // cons() clones if necessary\n JMLListObjectNode.cons(elem, the_list),\n size+1);\n }", "@Override \n int hashCode();", "private DataPoint isUnique(ArrayList<DataPoint> points, int x, int y){\n\t\tfor(DataPoint temp:points){\n\t\t\tif(temp.x == x && temp.y == y){\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn 0;\n\t}", "private void checkDuplicities(final List<Unit> units) {\n final Set<Unit> tmp = new HashSet<>();\n units.forEach(unit -> {\n if (tmp.contains(unit)) {\n throw new IllegalStateException(\"Unit was registered twice, unit: \" + unit);\n } else {\n tmp.add(unit);\n }\n });\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tList<Character>st1=new ArrayList<>();\n\t\n\t\tst1.add('a');\n\t\tst1.add('b');\n\t\tst1.add('a');\n\t\tst1.add('a');\n\t\tst1.add('c');\n\t\tst1.add('t');\n\t\n\t\tSystem.out.println(st1);//[a, b, a, a, c, t]\n\t\t\n\t\tList<Character>st2=new ArrayList<>();//empty []\n\t\tfor (int i=0; i<st1.size();i++) {\n\t\t\tif(!st2.contains(st1.get(i))) {\n\t\t\t\t// created str2 [empty], we will get the element from st1 to st2 while checking if there is repetition \n\t\t\t\tst2.add(st1.get(i));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(st2);//[a, b, c, t]\n\t\t\n\n\t}", "public Set<E> getNextSet()\r\n/* */ {\r\n/* 155 */ List<E> result = getNextArray();\r\n/* 156 */ if (result == null) {\r\n/* 157 */ return null;\r\n/* */ }\r\n/* */ \r\n/* 160 */ Set<E> resultSet = new LinkedHashSet(result);\r\n/* 161 */ return resultSet;\r\n/* */ }", "private static void findDuplicatesBruteForce(int[] arr) {\n\t\t\n\t\tfor(int i = 0; i< arr.length ; i++)\n\t\t{\n\t\t\tfor ( int j = i+1 ; j < arr.length ; j++)\n\t\t\t{\n\t\t\t\tif(arr[i] == arr[j])\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(arr[i] + \" is duplicate by brute force method\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint a[] = {1,2,2,6,7,3,4,4,5,5,6,7};\n\t\t\n\t\t\n\t\tMap<Integer,Integer> map =new HashMap<Integer,Integer>();\n\t\t\n\t\tfor (Integer num :a) {\n\t\t\tInteger Count =map.get(num);\n\t\t\tif(Count==null) {\n\t\t\t\tmap.put(num, 1);\n\t\t\t}else {\n\t\t\t\tmap.put(num, ++Count);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSet<Entry<Integer, Integer>> entryset =map.entrySet();\n\t\tArrayList<Integer> list =new ArrayList<Integer>();\n\t\tfor(Entry<Integer, Integer> entry :entryset) {\n\t\t\tif(entry.getValue()>1) {\n\t\t\t\tlist.add(entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(\"Duplicates are \" +list);\n\t\t\n\t\tSet<Entry<Integer, Integer>> entryset1 =map.entrySet();\n\t\tArrayList<Integer> nonduplist =new ArrayList<Integer>();\n\t\tfor(Entry<Integer, Integer> entry1 :entryset1) {\n\t\t\tif(entry1.getValue()==1) {\n\t\t\t\tnonduplist.add(entry1.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(\"Non Duplicates are \" +nonduplist);\n\t\t\n \n}", "public void checkNewAdded(Instance add) {\n List<Instance> keySet = new LinkedList<Instance>();\n keySet.addAll(backRelation.keySet());\n Boolean added = false;\n for (Instance inst : keySet) {\n if (inst.getName().equals(add.getName()) || inst.getMd5().equals(add.getMd5())) {\n added = true;\n ArrayList<Instance> tmp = backRelation.get(inst);\n tmp.add(add);\n backRelation.remove(inst);\n backRelation.put(inst, tmp);\n if (relatedInstances.containsKey(inst)) {\n ArrayList<Instance> tmpRI = relatedInstances.get(add);\n tmpRI.add(inst);\n relatedInstances.remove(add);\n relatedInstances.put(add, tmpRI);\n\n } else {\n ArrayList<Instance> tmpRI = new ArrayList<Instance>();\n tmpRI.add(inst);\n relatedInstances.put(add, tmpRI);\n }\n\n }\n }\n if (added) {\n instances.add(add);\n }\n }", "@Override\r\n\tpublic void uniqueUpdate() {\n\r\n\t}", "@Override\n public boolean hasDuplicates() {\n ArrayList<String> itemList = new ArrayList(Arrays.asList(\"\"));\n Node currNode = this.head;\n while(true){\n if(itemList.contains(currNode.getItem())){ // need to edit\n return true;\n }else{\n itemList.add(currNode.getItem());\n }\n if(currNode.getNextNode() == null){\n break;\n }\n currNode = currNode.getNextNode();\n }\n return false;\n }", "private boolean duplicationCheck(String userName) {\n\t\tboolean ret = true;\n\t\tif(obs.isEmpty()) {\n\t\t\tret = true;\n\t\t}\n\t\telse {\n\t\t\tfor(int i=0; i<obs.size(); i++) {\n\t\t\t\tif(obs.get(i).getUserName().compareTo(userName) == 0) {\n\t\t\t\t\tret = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tret = true;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "boolean scavenge()\r\n/* 462: */ {\r\n/* 463:493 */ if (scavengeSome()) {\r\n/* 464:494 */ return true;\r\n/* 465: */ }\r\n/* 466:498 */ this.prev = null;\r\n/* 467:499 */ this.cursor = this.head;\r\n/* 468:500 */ return false;\r\n/* 469: */ }", "public void containsNoDuplicates() {\n List<Entry<T>> duplicates = Lists.newArrayList();\n for (Multiset.Entry<T> entry : LinkedHashMultiset.create(getSubject()).entrySet()) {\n if (entry.getCount() > 1) {\n duplicates.add(entry);\n }\n }\n if (!duplicates.isEmpty()) {\n failWithRawMessage(\"%s has the following duplicates: <%s>\", getDisplaySubject(), duplicates);\n }\n }", "protected void paramDuplicate(){\n List<StatementParse> parameters = this.node.getChildren().get(0).getChildren();\n for (StatementParse x: parameters){\n int count = 0;\n for (StatementParse y: parameters){\n if (x.getName().equals(y.getName())){\n count++;\n }\n }\n if (count > 1) throw new DuplicateParam();\n }\n }", "public abstract int numOfSameTypeNeighbourToReproduce();", "void modusponens(){\n\t\tHashMap<String,HashSet<Hypothesis> > temp_lhs_hypo = new HashMap<String,HashSet<Hypothesis> >();\n\t\tHashSet<Hypothesis> new_hypos = new HashSet<Hypothesis>();\n\t\t\n\t\t//Utils.println(\"hypothesis list\");\n\t\tIterator it = hypothesis.entrySet().iterator();\n\t while (it.hasNext()) {\n\t Map.Entry pairs = (Map.Entry)it.next();\n\t String A = (String)pairs.getKey();\n\t //Utils.println(\"hypothesis A : \"+A);\n\t HashSet<Hypothesis> A_B = new_lhs_hypo.get(A);\n\t if(A_B == null) {\n\t \t//Utils.println(\"No match\");\n\t \tcontinue;\n\t \t}\n\t else{\n\t \t//Utils.println(\"Matched: \"+A_B.size());\n\t \tIterator bit = A_B.iterator();\n\t \twhile (bit.hasNext()) {\n\t \t Hypothesis A_B_hypo = (Hypothesis)bit.next();\n\t\t \tHypothesis mp_hypo = makeHypothesis(A_B_hypo.rhs, 1, -1, A, A_B_hypo.expression);\n\t\t \tif(mp_hypo!=null) {\n\t\t \t\tnew_hypos.add(mp_hypo);\n\t\t\t \tif(hypothesis.containsKey(mp_hypo.expression)) {\n\t\t\t \t\t//Utils.println(\"Existing MP result: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t\t \t\t//already existing\n\t\t\t\t }else{// new hypothesis has resulted\n\t\t\t\t \t//Utils.println(\"New MP result: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t\t\t }\n\t\t \t}else{\n\t\t \t\t//Utils.println(\"MP Not Valid: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t \t}\n\t\t }\n\t }\n\t }\n\t \n\t //Utils.println(\"new hypothesis list\");\n\t it = new_lhs_hypo.entrySet().iterator();\n\t while (it.hasNext()) {\n\t Map.Entry pairs = (Map.Entry)it.next();\n\t HashSet<Hypothesis> hypos = (HashSet<Hypothesis>) pairs.getValue();\n\t Iterator<Hypothesis> Ait = hypos.iterator();\n\t while(Ait.hasNext()){\n\t \tString A = ((Hypothesis)Ait.next()).expression;\n\t \t//Utils.println(\"hypothesis A : \"+A);\n\t \tHashSet<String> B_set = lhs_hypo.get(A);\n\t \tif(B_set == null){\n\t \t\t//Utils.println(\"No match\");\n\t \t\tcontinue;\n\t \t\t}\n\t \telse{\n\t \t\t//Utils.println(\"Matched: \"+B_set.size());\n\t \t\tIterator Bit = B_set.iterator();\n\t\t \twhile(Bit.hasNext()){\n\t\t \t\tString B_str = (String) Bit.next();\n\t\t \t\tString A_B_exp = Utils.expression(A, B_str);\n\t\t \t\tHypothesis mp_hypo = makeHypothesis(B_str, 1, -1, A, A_B_exp);\n\t\t \t\tif(mp_hypo!=null) {\n\t\t\t \t\tnew_hypos.add(mp_hypo);\n\t\t\t\t \tif(hypothesis.containsKey(mp_hypo.expression)) {\n\t\t\t\t \t\t//Utils.println(\"Existing MP result: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t\t \t\t//already existing\n\t\t\t\t\t }else{// new hypothesis has resulted\n\t\t\t\t\t \t//Utils.println(\"New MP result: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t\t\t }\n\t\t\t \t}else{\n\t\t\t \t\t//Utils.println(\"MP Not Valid: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t \t}\n\t\t \t}\n\t \t}\n\t \t\n\t }\n\t }\n\t \n\t //Utils.println(\"Size of new_hypos: \"+new_hypos.size());\n\t \n\t Iterator<Hypothesis> hit = new_hypos.iterator();\n\t while(hit.hasNext()){\n\t \tHypothesis mp_hypo = hit.next();\n\t \tboolean b = insertHypothesis(mp_hypo);\n\t \tif(b){\n\t \t\tHashSet<Hypothesis> temp_hypos = temp_lhs_hypo.get(mp_hypo.lhs);\n\t \tif(temp_hypos == null){\n\t \t\ttemp_hypos = new HashSet<Hypothesis>();\n\t \t\ttemp_hypos.add(mp_hypo);\n\t \t\ttemp_lhs_hypo.put(mp_hypo.lhs, temp_hypos);\n\t \t}else{\n\t \t\ttemp_hypos.add(mp_hypo);\n\t \t}\n\t \t//Utils.printHypothesis(mp_hypo);\n\t \t}\n\t }\n\t \n\n\t //Utils.println(\"Size of temp_lhs_hypo: \"+temp_lhs_hypo.size());\n\t \n\t new_lhs_hypo.clear();\n\t new_lhs_hypo = temp_lhs_hypo;\n\t if(new_lhs_hypo.size()!=0) modusponens();\n\t}", "static void FindDuplicate(String[] strArray){\n\t\t\n\t\tHashSet<String> set = new HashSet<String>();\n\t\t\n\t\tfor(String arrayElement : strArray){\n\t\t\tif(!set.add(arrayElement))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Duplicate Element is: \"+ arrayElement);\n\t\t\t}\n\t\t}\n\t}", "private boolean hasAnyRepeatedElement(List<Integer> row) {\n List<Integer> copyRow = new ArrayList<>(row);\n Collections.sort(copyRow);\n for (int i = 0; i < copyRow.size(); i++) {\n if(!isLastElement(i, copyRow)) {\n int current = copyRow.get(i);\n int next = copyRow.get(i+1);\n // If current is equals to next means that a repeated element has been found\n if(current == next) return true;\n }\n }\n return false;\n }", "public void testDuplicate() {\n System.out.println(\"duplicate\");\n BufferedCharSequence instance = null;\n BufferedCharSequence expResult = null;\n BufferedCharSequence result = instance.duplicate();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}" ]
[ "0.59617", "0.5762889", "0.5714993", "0.5604087", "0.55982876", "0.55968034", "0.5503873", "0.545355", "0.5442686", "0.53912914", "0.53780526", "0.53741896", "0.5364216", "0.53490233", "0.53280973", "0.52819854", "0.5259271", "0.525367", "0.52417535", "0.5233024", "0.52270544", "0.52173555", "0.52145046", "0.521186", "0.5207672", "0.5207016", "0.5196645", "0.5192243", "0.51768553", "0.5170582", "0.5141104", "0.5139244", "0.513753", "0.513181", "0.51311135", "0.5116562", "0.51107705", "0.5104556", "0.5095401", "0.50907147", "0.5084774", "0.5084774", "0.5084774", "0.5084774", "0.50827205", "0.50814545", "0.5072106", "0.5070421", "0.5068982", "0.506705", "0.50637263", "0.50628006", "0.50483865", "0.50483865", "0.50483865", "0.5047168", "0.50253993", "0.5024992", "0.50205433", "0.50165313", "0.50110734", "0.50105625", "0.5009877", "0.5002162", "0.49976265", "0.49917278", "0.49917278", "0.49917278", "0.49917278", "0.49917278", "0.49917278", "0.49917278", "0.49917278", "0.49917278", "0.49910468", "0.49871546", "0.4983534", "0.49830216", "0.498205", "0.4977469", "0.4976617", "0.49739537", "0.49697414", "0.4964621", "0.496136", "0.4957684", "0.49571583", "0.49568352", "0.49562135", "0.4953836", "0.49538288", "0.4952427", "0.4952427", "0.4952427", "0.4952427", "0.4952427", "0.4952427", "0.4952427", "0.4952427", "0.4952427", "0.4952427" ]
0.0
-1
common logging deleging methods
@Override public boolean isDebugEnabled() { return innerLog.isDebugEnabled(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected void logInternal(int level, String message);", "void initializeLogging();", "abstract void initiateLog();", "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}", "@Override\n public void logs() {\n \n }", "@Override\n public void log()\n {\n }", "abstract protected void _log(Source src, OpLevel sev, String msg, Object... args) throws Exception;", "void log();", "IFileLogger log();", "public interface LoggingManager {\n \n /**\n * Method configure is called at Shark start up, to configure\n * implementation of LoggingManager.\n *\n * @param cus an instance of CallbackUtilities used to get\n * properties for configuring logging in Shark.\n *\n * @exception RootException Thrown if configuring doesn't succeed.\n */\n void configure (CallbackUtilities cus) throws RootException;\n \n /**\n * Log a message object with the <i>ERROR</i> Level.\n *\n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void error (String msg) throws RootException;\n \n /**\n * Log a message object with the <i>ERROR</i> Level.\n *\n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void error (String msg, RootException ex) throws RootException;\n \n /**\n * Log a message object with the <i>ERROR</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void error (String channel, String msg) throws RootException;\n \n /**\n * Log a message object with the <i>ERROR</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void error (String channel, String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>WARN</i> Level.\n *\n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void warn (String msg) throws RootException;\n\n /**\n * Log a message object with the <i>WARN</i> Level.\n *\n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void warn (String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>WARN</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void warn (String channel,String msg) throws RootException;\n\n /**\n * Log a message object with the <i>WARN</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void warn (String channel, String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>INFO</i> Level.\n *\n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void info (String msg) throws RootException;\n\n /**\n * Log a message object with the <i>INFO</i> Level.\n *\n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void info (String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>INFO</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void info (String channel, String msg) throws RootException;\n\n /**\n * Log a message object with the <i>INFO</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void info (String channel, String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>DEBUG</i> level.\n *\n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void debug (String msg) throws RootException;\n\n /**\n * Log a message object with the <i>DEBUG</i> level.\n *\n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void debug (String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>DEBUG</i> level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void debug (String channel, String msg) throws RootException;\n\n /**\n * Log a message object with the <i>DEBUG</i> level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void debug (String channel, String msg, RootException ex) throws RootException;\n\n\n}", "abstract protected void _log(TrackingActivity activity) throws Exception;", "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}", "void setupFileLogging();", "public interface LogFormatter {\n\n /**\n * Creates a log message.\n *\n * @param className The class name that the logger targets at.\n * @param message The original message that is specified with a log method of {@link Log}.\n * @return A log message.\n */\n String format(String className, String message);\n\n /**\n * Creates a log message.\n *\n * @param className The class name that the logger targets at.\n * @param format The format that is specified with a log method of {@link Log}.\n * @param args The additional arguments that are specified with a log method of {@link Log}.\n * @return A log message.\n */\n String format(String className, String format, Object... args);\n}", "abstract protected void _log(Snapshot snapshot) throws Exception;", "abstract public LoggingService getLoggingService();", "public abstract void logd(String str);", "public interface LoggerUtil {\n\t/**\n\t * Set the logger for the controller\n\t * \n\t * @param logName\n\t * @param filePath\n\t * @param logLevel\n\t * @return\n\t */\n\tLogger loggerArrangement(String logName, String filePath, LogeLevel logLevel);\n}", "protected abstract Logger getLogger();", "public interface Log {\n void debug(String msg, Object... args);\n\n void info(String msg, Object... args);\n\n void warn(String msg, Object... args);\n}", "private static final void log(org.jetbrains.anko.AnkoLogger r2, java.lang.Object r3, java.lang.Throwable r4, int r5, kotlin.jvm.functions.Function2<? super java.lang.String, ? super java.lang.String, kotlin.Unit> r6, kotlin.jvm.functions.Function3<? super java.lang.String, ? super java.lang.String, ? super java.lang.Throwable, kotlin.Unit> r7) {\n /*\n r0 = r2.getLoggerTag();\n r1 = android.util.Log.isLoggable(r0, r5);\n if (r1 == 0) goto L_0x0017;\n L_0x000a:\n if (r4 == 0) goto L_0x001c;\n L_0x000c:\n if (r3 == 0) goto L_0x0018;\n L_0x000e:\n r1 = r3.toString();\n if (r1 == 0) goto L_0x0018;\n L_0x0014:\n r7.invoke(r0, r1, r4);\n L_0x0017:\n return;\n L_0x0018:\n r1 = \"null\";\n goto L_0x0014;\n L_0x001c:\n if (r3 == 0) goto L_0x0028;\n L_0x001e:\n r1 = r3.toString();\n if (r1 == 0) goto L_0x0028;\n L_0x0024:\n r6.invoke(r0, r1);\n goto L_0x0017;\n L_0x0028:\n r1 = \"null\";\n goto L_0x0024;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.log(org.jetbrains.anko.AnkoLogger, java.lang.Object, java.lang.Throwable, int, kotlin.jvm.functions.Function2, kotlin.jvm.functions.Function3):void\");\n }", "String getLogHandled();", "abstract protected String getLogFileName();", "void log(Log log);", "Appendable getLog();", "protected abstract void log(T level, Object message);", "abstract void logCustom(String tag, String message);", "abstract protected void _log(TrackingEvent event) throws Exception;", "private void setupLogging() {\n\t\t// Ensure all JDK log messages are deferred until a target is registered\n\t\tLogger rootLogger = Logger.getLogger(\"\");\n\t\tHandlerUtils.wrapWithDeferredLogHandler(rootLogger, Level.SEVERE);\n\n\t\t// Set a suitable priority level on Spring Framework log messages\n\t\tLogger sfwLogger = Logger.getLogger(\"org.springframework\");\n\t\tsfwLogger.setLevel(Level.WARNING);\n\n\t\t// Set a suitable priority level on Roo log messages\n\t\t// (see ROO-539 and HandlerUtils.getLogger(Class))\n\t\tLogger rooLogger = Logger.getLogger(\"org.springframework.shell\");\n\t\trooLogger.setLevel(Level.FINE);\n\t}", "abstract void initiateErrorLog();", "@Override\n protected void log(String tag, String msg) {\n Log.i(tag, \"[you can use your custom logger here \\\"]\" + msg);\n }", "@Override\n public void log(String message) {\n }", "public interface LoggingApi<API extends LoggingApi<API>> {\n API withCause(Throwable cause);\n\n API every(int n);\n\n API atMostEvery(int n, TimeUnit unit);\n\n API per(Enum<?> key);\n\n API withInjectedLogSite(String internalClassName, String methodName, int encodedLineNumber,\n String sourceFileName);\n\n boolean isEnabled();\n\n void logVarargs(String message, Object[] varargs);\n\n void log();\n\n void log(String msg);\n\n void log(String msg, Object p1);\n\n void log(String msg, Object p1, Object p2);\n\n void log(String msg, Object p1, Object p2, Object p3);\n\n void log(String msg, Object p1, Object p2, Object p3, Object p4);\n\n void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5);\n\n void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6);\n\n void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7);\n\n void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7,\n Object p8);\n\n void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7,\n Object p8, Object p9);\n\n void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7,\n Object p8, Object p9, Object p10);\n\n void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7,\n Object p8, Object p9, Object p10, Object... rest);\n\n void log(String msg, char p1);\n\n void log(String msg, byte p1);\n\n void log(String msg, short p1);\n\n void log(String msg, int p1);\n\n void log(String msg, long p1);\n\n void log(String msg, Object p1, boolean p2);\n\n void log(String msg, Object p1, char p2);\n\n void log(String msg, Object p1, byte p2);\n\n void log(String msg, Object p1, short p2);\n\n void log(String msg, Object p1, int p2);\n\n void log(String msg, Object p1, long p2);\n\n void log(String msg, Object p1, float p2);\n\n void log(String msg, Object p1, double p2);\n\n void log(String msg, boolean p1, Object p2);\n\n void log(String msg, char p1, Object p2);\n\n void log(String msg, byte p1, Object p2);\n\n void log(String msg, short p1, Object p2);\n\n void log(String msg, int p1, Object p2);\n\n void log(String msg, long p1, Object p2);\n\n void log(String msg, float p1, Object p2);\n\n void log(String msg, double p1, Object p2);\n\n void log(String msg, boolean p1, boolean p2);\n\n void log(String msg, char p1, boolean p2);\n\n void log(String msg, byte p1, boolean p2);\n\n void log(String msg, short p1, boolean p2);\n\n void log(String msg, int p1, boolean p2);\n\n void log(String msg, long p1, boolean p2);\n\n void log(String msg, float p1, boolean p2);\n\n void log(String msg, double p1, boolean p2);\n\n void log(String msg, boolean p1, char p2);\n\n void log(String msg, char p1, char p2);\n\n void log(String msg, byte p1, char p2);\n\n void log(String msg, short p1, char p2);\n\n void log(String msg, int p1, char p2);\n\n void log(String msg, long p1, char p2);\n\n void log(String msg, float p1, char p2);\n\n void log(String msg, double p1, char p2);\n\n void log(String msg, boolean p1, byte p2);\n\n void log(String msg, char p1, byte p2);\n\n void log(String msg, byte p1, byte p2);\n\n void log(String msg, short p1, byte p2);\n\n void log(String msg, int p1, byte p2);\n\n void log(String msg, long p1, byte p2);\n\n void log(String msg, float p1, byte p2);\n\n void log(String msg, double p1, byte p2);\n\n void log(String msg, boolean p1, short p2);\n\n void log(String msg, char p1, short p2);\n\n void log(String msg, byte p1, short p2);\n\n void log(String msg, short p1, short p2);\n\n void log(String msg, int p1, short p2);\n\n void log(String msg, long p1, short p2);\n\n void log(String msg, float p1, short p2);\n\n void log(String msg, double p1, short p2);\n\n void log(String msg, boolean p1, int p2);\n\n void log(String msg, char p1, int p2);\n\n void log(String msg, byte p1, int p2);\n\n void log(String msg, short p1, int p2);\n\n void log(String msg, int p1, int p2);\n\n void log(String msg, long p1, int p2);\n\n void log(String msg, float p1, int p2);\n\n void log(String msg, double p1, int p2);\n\n void log(String msg, boolean p1, long p2);\n\n void log(String msg, char p1, long p2);\n\n void log(String msg, byte p1, long p2);\n\n void log(String msg, short p1, long p2);\n\n void log(String msg, int p1, long p2);\n\n void log(String msg, long p1, long p2);\n\n void log(String msg, float p1, long p2);\n\n void log(String msg, double p1, long p2);\n\n void log(String msg, boolean p1, float p2);\n\n void log(String msg, char p1, float p2);\n\n void log(String msg, byte p1, float p2);\n\n void log(String msg, short p1, float p2);\n\n void log(String msg, int p1, float p2);\n\n void log(String msg, long p1, float p2);\n\n void log(String msg, float p1, float p2);\n\n void log(String msg, double p1, float p2);\n\n void log(String msg, boolean p1, double p2);\n\n void log(String msg, char p1, double p2);\n\n void log(String msg, byte p1, double p2);\n\n void log(String msg, short p1, double p2);\n\n void log(String msg, int p1, double p2);\n\n void log(String msg, long p1, double p2);\n\n void log(String msg, float p1, double p2);\n\n void log(String msg, double p1, double p2);\n\n public static class NoOp<API extends LoggingApi<API>> implements LoggingApi<API> {\n\n @Override\n public API withInjectedLogSite(String internalClassName, String methodName,\n int encodedLineNumber, String sourceFileName) {\n return null;\n }\n\n @Override\n public final boolean isEnabled() {\n return false;\n }\n\n @Override\n public API per(Enum<?> key) {\n return null;\n }\n\n @Override\n public final API withCause(Throwable cause) {\n return null;\n }\n\n @Override\n public final API every(int n) {\n return null;\n }\n\n @Override\n public final API atMostEvery(int n, TimeUnit unit) {\n return null;\n }\n\n @Override\n public final void logVarargs(String msg, Object[] params) {}\n\n @Override\n public final void log() {}\n\n @Override\n public final void log(String msg) {}\n\n @Override\n public final void log(String msg, Object p1) {}\n\n @Override\n public final void log(String msg, Object p1, Object p2) {}\n\n @Override\n public final void log(String msg, Object p1, Object p2, Object p3) {}\n\n @Override\n public final void log(String msg, Object p1, Object p2, Object p3, Object p4) {}\n\n @Override\n public final void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5) {}\n\n @Override\n public final void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5,\n Object p6) {}\n\n @Override\n public final void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5,\n Object p6, Object p7) {}\n\n @Override\n public final void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5,\n Object p6, Object p7, Object p8) {}\n\n @Override\n public final void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5,\n Object p6, Object p7, Object p8, Object p9) {}\n\n @Override\n public final void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5,\n Object p6, Object p7, Object p8, Object p9, Object p10) {}\n\n @Override\n public final void log(String msg, Object p1, Object p2, Object p3, Object p4, Object p5,\n Object p6, Object p7, Object p8, Object p9, Object p10, Object... rest) {}\n\n @Override\n public final void log(String msg, char p1) {}\n\n @Override\n public final void log(String msg, byte p1) {}\n\n @Override\n public final void log(String msg, short p1) {}\n\n @Override\n public final void log(String msg, int p1) {}\n\n @Override\n public final void log(String msg, long p1) {}\n\n @Override\n public final void log(String msg, Object p1, boolean p2) {}\n\n @Override\n public final void log(String msg, Object p1, char p2) {}\n\n @Override\n public final void log(String msg, Object p1, byte p2) {}\n\n @Override\n public final void log(String msg, Object p1, short p2) {}\n\n @Override\n public final void log(String msg, Object p1, int p2) {}\n\n @Override\n public final void log(String msg, Object p1, long p2) {}\n\n @Override\n public final void log(String msg, Object p1, float p2) {}\n\n @Override\n public final void log(String msg, Object p1, double p2) {}\n\n @Override\n public final void log(String msg, boolean p1, Object p2) {}\n\n @Override\n public final void log(String msg, char p1, Object p2) {}\n\n @Override\n public final void log(String msg, byte p1, Object p2) {}\n\n @Override\n public final void log(String msg, short p1, Object p2) {}\n\n @Override\n public final void log(String msg, int p1, Object p2) {}\n\n @Override\n public final void log(String msg, long p1, Object p2) {}\n\n @Override\n public final void log(String msg, float p1, Object p2) {}\n\n @Override\n public final void log(String msg, double p1, Object p2) {}\n\n @Override\n public final void log(String msg, boolean p1, boolean p2) {}\n\n @Override\n public final void log(String msg, char p1, boolean p2) {}\n\n @Override\n public final void log(String msg, byte p1, boolean p2) {}\n\n @Override\n public final void log(String msg, short p1, boolean p2) {}\n\n @Override\n public final void log(String msg, int p1, boolean p2) {}\n\n @Override\n public final void log(String msg, long p1, boolean p2) {}\n\n @Override\n public final void log(String msg, float p1, boolean p2) {}\n\n @Override\n public final void log(String msg, double p1, boolean p2) {}\n\n @Override\n public final void log(String msg, boolean p1, char p2) {}\n\n @Override\n public final void log(String msg, char p1, char p2) {}\n\n @Override\n public final void log(String msg, byte p1, char p2) {}\n\n @Override\n public final void log(String msg, short p1, char p2) {}\n\n @Override\n public final void log(String msg, int p1, char p2) {}\n\n @Override\n public final void log(String msg, long p1, char p2) {}\n\n @Override\n public final void log(String msg, float p1, char p2) {}\n\n @Override\n public final void log(String msg, double p1, char p2) {}\n\n @Override\n public final void log(String msg, boolean p1, byte p2) {}\n\n @Override\n public final void log(String msg, char p1, byte p2) {}\n\n @Override\n public final void log(String msg, byte p1, byte p2) {}\n\n @Override\n public final void log(String msg, short p1, byte p2) {}\n\n @Override\n public final void log(String msg, int p1, byte p2) {}\n\n @Override\n public final void log(String msg, long p1, byte p2) {}\n\n @Override\n public final void log(String msg, float p1, byte p2) {}\n\n @Override\n public final void log(String msg, double p1, byte p2) {}\n\n @Override\n public final void log(String msg, boolean p1, short p2) {}\n\n @Override\n public final void log(String msg, char p1, short p2) {}\n\n @Override\n public final void log(String msg, byte p1, short p2) {}\n\n @Override\n public final void log(String msg, short p1, short p2) {}\n\n @Override\n public final void log(String msg, int p1, short p2) {}\n\n @Override\n public final void log(String msg, long p1, short p2) {}\n\n @Override\n public final void log(String msg, float p1, short p2) {}\n\n @Override\n public final void log(String msg, double p1, short p2) {}\n\n @Override\n public final void log(String msg, boolean p1, int p2) {}\n\n @Override\n public final void log(String msg, char p1, int p2) {}\n\n @Override\n public final void log(String msg, byte p1, int p2) {}\n\n @Override\n public final void log(String msg, short p1, int p2) {}\n\n @Override\n public final void log(String msg, int p1, int p2) {}\n\n @Override\n public final void log(String msg, long p1, int p2) {}\n\n @Override\n public final void log(String msg, float p1, int p2) {}\n\n @Override\n public final void log(String msg, double p1, int p2) {}\n\n @Override\n public final void log(String msg, boolean p1, long p2) {}\n\n @Override\n public final void log(String msg, char p1, long p2) {}\n\n @Override\n public final void log(String msg, byte p1, long p2) {}\n\n @Override\n public final void log(String msg, short p1, long p2) {}\n\n @Override\n public final void log(String msg, int p1, long p2) {}\n\n @Override\n public final void log(String msg, long p1, long p2) {}\n\n @Override\n public final void log(String msg, float p1, long p2) {}\n\n @Override\n public final void log(String msg, double p1, long p2) {}\n\n @Override\n public final void log(String msg, boolean p1, float p2) {}\n\n @Override\n public final void log(String msg, char p1, float p2) {}\n\n @Override\n public final void log(String msg, byte p1, float p2) {}\n\n @Override\n public final void log(String msg, short p1, float p2) {}\n\n @Override\n public final void log(String msg, int p1, float p2) {}\n\n @Override\n public final void log(String msg, long p1, float p2) {}\n\n @Override\n public final void log(String msg, float p1, float p2) {}\n\n @Override\n public final void log(String msg, double p1, float p2) {}\n\n @Override\n public final void log(String msg, boolean p1, double p2) {}\n\n @Override\n public final void log(String msg, char p1, double p2) {}\n\n @Override\n public final void log(String msg, byte p1, double p2) {}\n\n @Override\n public final void log(String msg, short p1, double p2) {}\n\n @Override\n public final void log(String msg, int p1, double p2) {}\n\n @Override\n public final void log(String msg, long p1, double p2) {}\n\n @Override\n public final void log(String msg, float p1, double p2) {}\n\n @Override\n public final void log(String msg, double p1, double p2) {}\n\n }\n}", "public interface FsmLogger {\n\t/**\n\t * Get name of the logger.\n\t * \n\t * @return the name\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Log a fatal message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void fatal(String message);\n\n\t/**\n\t * Log a fatal message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void fatal(String message, Throwable throwable);\n\n\t/**\n\t * Log an error message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void error(String message);\n\n\t/**\n\t * Log an error message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void error(String message, Throwable throwable);\n\n\t/**\n\t * Log a warning message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void warn(String message);\n\n\t/**\n\t * Log a warning message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void warn(String message, Throwable throwable);\n\n\t/**\n\t * Log an info message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void info(String message);\n\n\t/**\n\t * Log an info message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void info(String message, Throwable throwable);\n\n\t/**\n\t * Log a debug message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void debug(String message);\n\n\t/**\n\t * Log a debug message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void debug(String message, Throwable throwable);\n\n\t/**\n\t * Log a trace message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void trace(String message);\n\n\t/**\n\t * Log a trace message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void trace(String message, Throwable throwable);\n\n\t/**\n\t * Get status of info messages logging in this logger.\n\t * \n\t * @return true if logging of info messages is enabled otherwise false\n\t */\n\tpublic boolean isInfoEnabled();\n\n\t/**\n\t * Get status of debug messages logging in this logger.\n\t * \n\t * @return true if logging of debug messages is enabled otherwise false\n\t */\n\tpublic boolean isDebugEnabled();\n\n\t/**\n\t * Get status of trace messages logging in this logger.\n\t * \n\t * @return true if logging of trace messages is enabled otherwise false\n\t */\n\tpublic boolean isTraceEnabled();\n}", "public interface Log {\n\n void sql(Object o);\n\n void log(Object o);\n\n void warn(Object o);\n\n void error(Exception e);\n\n Log print(String... string);\n\n Log println(String... string);\n\n void println(Object... objects);\n\n void print(Object... objects);\n\n void front(String front);\n\n void behind(String behind);\n}", "public interface Loggable\n{\n\n /**\n * Logs the message(s) with the given importance. Message will be\n * prefixed with [TerrainControl], so don't do that yourself.\n * <p/>\n * @param level The severity of the message\n * @param message The messages to log\n */\n public void log(Marker level, String... message);\n\n /**\n * Logs a format string message with the given importance. Message will\n * be prefixed with [TerrainControl], so don't do that yourself.\n * <p/>\n * @param level The severity of the message\n * @param message The messages to log formatted similar to Logger.log()\n * with the same args.\n * @param params The parameters belonging to {0...} in the message\n * string\n */\n public void log(Marker level, String message, Object... params);\n\n /**\n * Logs the message(s) with the given importance <b>ONLY IF</b> logger\n * level matches the level provided. Message will be prefixed with\n * [TerrainControl], so don't do that yourself.\n * <p/>\n * @param ifLevel the Log level to test for\n * @param messages The messages to log.\n */\n public void logIfLevel(Marker ifLevel, String... messages);\n\n /**\n * Logs the message(s) with the given importance <b>ONLY IF</b> logger\n * level matches the level provided. Message will be prefixed with\n * [TerrainControl], so don't do that yourself.\n * <p/>\n * @param ifLevel the Log level to test for\n * @param message The messages to log formatted similar to\n * Logger.log() with the same args.\n * @param params The parameters belonging to {0...} in the message\n * string\n */\n public void logIfLevel(Marker ifLevel, String message, Object... params);\n\n /**\n * Logs the message(s) with the given importance <b>ONLY IF</b> logger\n * level is between the min/max provided. Message will be prefixed with\n * [TerrainControl], so don't do that yourself.\n * <p/>\n * @param min The minimum Log level to test for\n * @param max The maximum Log level to test for\n * @param messages The messages to log.\n */\n public void logIfLevel(Marker min, Marker max, String... messages);\n\n /**\n * Logs the message(s) with the given importance <b>ONLY IF</b> logger\n * level is between the min/max provided. Message will be prefixed with\n * [TerrainControl], so don't do that yourself.\n * <p/>\n * @param min The minimum Log level to test for\n * @param max The maximum Log level to test for\n * @param message The messages to log formatted similar to\n * Logger.log() with the same args.\n * @param params The parameters belonging to {0...} in the message\n * string\n */\n public void logIfLevel(Marker min, Marker max, String message, Object... params);\n\n}", "public void customLogger() {\n KOOM.getInstance().setLogger(new KLog.KLogger() {\n @Override\n public void i(String TAG, String msg) {\n //get the log of info level\n }\n\n @Override\n public void d(String TAG, String msg) {\n //get the log of debug level\n }\n\n @Override\n public void e(String TAG, String msg) {\n //get the log of error level\n }\n });\n }", "private void logToFile() {\n }", "protected abstract ILogger getLogger();", "private JavaUtilLogHandlers() { }", "public void logData(){\n }", "@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2) {\n\n\t}", "public void enableLogging();", "@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}", "@Override\n public void log() {\n switch (this.level) {\n case trace: if (!this.logger.isTraceEnabled()) return;\n break;\n case debug: if (!this.logger.isDebugEnabled()) return;\n break;\n case info: if (!this.logger.isInfoEnabled()) return;\n break;\n case warn: if (!this.logger.isWarnEnabled()) return;\n break;\n case error: if (!this.logger.isErrorEnabled()) return;\n break;\n }\n\n if (this.logger.getClass().equals(ch.qos.logback.classic.Logger.class)) {\n if (!((ch.qos.logback.classic.Logger)this.logger).isAdditive()) {\n return;\n }\n }\n\n this.mdcWriters.forEach(MDCWriter::write);\n\n switch (this.level) {\n case trace:\n this.logger.trace(this.message, this.args.toJavaArray());\n break;\n case debug:\n this.logger.debug(this.message, this.args.toJavaArray());\n break;\n case info:\n this.logger.info(this.message, this.args.toJavaArray());\n break;\n case warn:\n this.logger.warn(this.message, this.args.toJavaArray());\n break;\n case error:\n this.logger.error(this.message, this.args.toJavaArray());\n break;\n }\n }", "@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6) {\n\n\t}", "public interface ILogger {\r\n //name of columns for measuring multiple values together\r\n public void init(String... names) throws IOException;\r\n //datapoints per column for measuring multiple values together\r\n public void log(Object... vals) throws IOException;\r\n //all datapoints where submitted so clean up\r\n public void finish() throws IOException;\r\n}", "public interface LogViewer {\n\n\t/**\n\t * General application info.\n\t * @param text\n\t */\n\tvoid info(String text);\n\t\n\t/**\n\t * General error info.\n\t * @param text\n\t */\n\tvoid err(String text);\n\t\n\t/**\n\t * Info related to GA.\n\t * @param text\n\t */\n\tvoid gaInfo(String text);\n\t\n\t/**\n\t * Info related to ANTS.\n\t * @param text\n\t */\n\tvoid antsInfo(String text);\n\t\n\t/**\n\t * Info related to BA.\n\t * @param text\n\t */\n\tvoid baInfo(String text);\n}", "public interface Logger {\n void enable(boolean enabled);\n\n void d(String s, Object... args);\n\n void i(String s, Object... args);\n\n void w(String s, Object... args);\n\n void e(Throwable e, String s, Object... args);\n}", "@Override\n\tpublic void log(Level level, String message, Object p0, Object p1) {\n\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void log(String msg, int level, Date date, StackTraceElement trace) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }", "private TypicalLogEntries() {}", "@Override\n\tpublic void log(String msg) throws IOException {\n\t\t\n\t}", "protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}", "abstract public void log(int level, String msg, Throwable thrown);", "@Override\n\tpublic void log(Level level, String message, Object... params) {\n\n\t}", "private ExtentLogger() {}", "private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }", "public interface Logger {\n void verbose(String message, Object... args);\n void debug(Object msg);\n void debug(String message, Object... args);\n void info(String message, Object... args);\n void warning(String message, Object... args);\n void error(String message, Object... args);\n void error(Throwable throwable, String message, Object... args);\n}", "interface Logger {\n\n void d(String tag, String message);\n\n void e(String tag, String message, Throwable t);\n\n void e(String tag, String message);\n}", "public interface ILog {\n /**\n * 打印日志\n * @param L 虚拟机地址,可通过 {@link org.luaj.vm2.Globals#getGlobalsByLState(long)}获取\n */\n void l(long L, String tag, String log);\n\n /**\n * 打印错误日志\n * @param L 虚拟机地址,可通过 {@link org.luaj.vm2.Globals#getGlobalsByLState(long)}获取\n */\n void e(long L, String tag, String log);\n}", "public interface JLogger extends Logger {\n boolean isLoggable(@NotNull LogLevel level);\n\n boolean isLoggable(@NotNull LogLevel level, @NotNull Marker marker);\n\n boolean isLoggable(@NotNull LogLevel level, @NotNull Throwable throwable);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level}\n *\n * @param level log level to use\n * @param msg log msg which is unaltered\n */\n void log(@NotNull LogLevel level, @NotNull String msg);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} using the {@code marker}\n *\n * @param level log level to use\n * @param marker marker to include\n * @param msg log msg which is unaltered\n */\n void log(@NotNull LogLevel level, @NotNull Marker marker, @NotNull String msg);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} with the given {@code throwable}\n *\n * @param level log level to use\n * @param throwable throwable to include\n * @param msg log msg which is unaltered\n */\n void log(@NotNull LogLevel level, @NotNull Throwable throwable, @NotNull String msg);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} using the {@code marker} and\n * {@code throwable}\n *\n * @param level log level to use\n * @param marker marker to include\n * @param throwable throwable to include\n * @param msg log msg which is unaltered\n */\n void log(@NotNull LogLevel level,\n @NotNull Marker marker,\n @NotNull Throwable throwable,\n @NotNull String msg);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} using the {@code marker}\n *\n * @param level log level to use\n * @param marker marker to include\n * @param format a format string in the form required by {@link Formatter}\n * @param formatArgs arguments passed to {@link Formatter#format(String, Object...)}\n */\n void log(@NotNull LogLevel level,\n @NotNull Marker marker,\n @NotNull String format,\n @NotNull Object... formatArgs);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} using the {@code throwable}\n *\n * @param level log level to use\n * @param throwable throwable to include\n * @param format a format string in the form required by {@link Formatter}\n * @param formatArgs arguments passed to {@link Formatter#format(String, Object...)}\n */\n void log(@NotNull LogLevel level,\n @NotNull Throwable throwable,\n @NotNull String format,\n @NotNull Object... formatArgs);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} using the {@code marker} and\n * {@code throwable}\n *\n * @param level log level to use\n * @param marker marker to include\n * @param throwable throwable to include\n * @param format a format string in the form required by {@link Formatter}\n * @param formatArgs arguments passed to {@link Formatter#format(String, Object...)}\n */\n void log(@NotNull LogLevel level,\n @NotNull Marker marker,\n @NotNull Throwable throwable,\n @NotNull String format,\n @NotNull Object... formatArgs);\n\n void log(@NotNull LogLevel level, @NotNull String format, @NotNull Object arg1);\n\n void log(@NotNull LogLevel level,\n @NotNull String format,\n @NotNull Object arg1,\n @NotNull Object arg2);\n\n void log(@NotNull LogLevel level,\n @NotNull String format,\n @NotNull Object arg1,\n @NotNull Object arg2,\n @NotNull Object arg3);\n\n void log(@NotNull LogLevel level,\n @NotNull String format,\n @NotNull Object arg1,\n @NotNull Object arg2,\n @NotNull Object arg3,\n @NotNull Object arg4);\n\n void log(@NotNull LogLevel level,\n @NotNull String format,\n @NotNull Object arg1,\n @NotNull Object arg2,\n @NotNull Object arg3,\n @NotNull Object arg4,\n @NotNull Object... remaining);\n\n /**\n * Log the result of the supplier, ie supplier.get().toString()\n * @param level level at which to log\n * @param supplier supplies the object whose toString() method will be invoked and logged\n */\n void log(@NotNull LogLevel level, @NotNull Supplier<?> supplier);\n\n /**\n * Log the result of the supplier and use the Marker to see if it is loggable\n *\n * @param level level at which to log\n * @param marker used to test if loggable\n * @param supplier supplies the object whose toString() method will be invoked and logged\n */\n void log(@NotNull LogLevel level, @NotNull Marker marker, @NotNull Supplier<?> supplier);\n\n /**\n * Log the result of the supplier and use the Throwable to see if it is loggable\n *\n * @param level level at which to log\n * @param throwable used to test if loggable\n * @param supplier supplies the object whose toString() method will be invoked and logged\n */\n void log(@NotNull LogLevel level,\n @NotNull Throwable throwable,\n @NotNull Supplier<?> supplier);\n\n /**\n * Log the result of the supplier and use the Marker and Throwable to see if it is loggable\n *\n * @param level level at which to log\n * @param marker used to test if loggable\n * @param throwable used to test if loggable\n * @param supplier supplies the object whose toString() method will be invoked and logged\n */\n void log(@NotNull LogLevel level,\n @NotNull Marker marker,\n @NotNull Throwable throwable,\n @NotNull Supplier<?> supplier);\n\n /**\n * Used to log an exception being caught where no message is needed. Logs:\n * \"Caught: [throwable.getClass().toString()]\"\n *\n * @param level log level to use\n * @param throwable the throwable that was caught\n */\n void caught(@NotNull LogLevel level, @NotNull Throwable throwable);\n\n /**\n * Log a throwable being thrown at the log site. Logs:\n * \"Throwing: [throwable.getClass().toString()]\n * <p><p>\n * <p>\n * {@code\n * throw LOG.throwing(LogLevel.ERROR, new MyException(\"Important Info\"));\n * }\n *\n * @param level level at which to log\n * @param throwable the Throwable to log\n *\n * @return returns the throwable for convenience\n */\n @NotNull\n <T extends Throwable> T throwing(@NotNull LogLevel level, @NotNull T throwable);\n\n}", "private Log() {\r\n\t}", "@Override\n\tpublic void initLogger() {\n\t\t\n\t}", "@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}", "public abstract void logKenaiUsage(Object... parameters);", "@Override\n\tpublic void log(Level level, String message, Object p0) {\n\n\t}", "public interface ILog {\n void print(LogLevel logLevel, String tag, String msg, long tid);\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}", "abstract void logMessage(String message);", "@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}", "@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1) {\n\n\t}", "@Override\n\tpublic void log(Level level, Marker marker, String message, Object... params) {\n\n\t}", "private static void longer_logmsg_Log4j(Logger log, Object msg, Throwable ex, int id, \n String original_methname, Object msg_modified) {\n\n Level level = Level.toLevel(original_methname);\n boolean legacyEnabled = log.isEnabledFor(level);\n int printResult = shouldPrint(id, legacyEnabled);\n if( (printResult & LOG_OUT) != 0) {\n /*LEVS methname = getWarnLevel(id);\n if(methname == null)\n methname = setMeth(id, original_methname);\n Level level = Level.toLevel(methname.toString());*/\n if(msg_modified == null)\n msg_modified = taggedID(id) + msg;\n \n String logname = log.getName();\n\n log.callAppenders(\n new org.apache.log4j.spi.LoggingEvent(logname, log, level, msg_modified, ex));\n }\n if( (printResult & RECORD_OUT) != 0)\n RecordStatements.record(id, original_methname, msg, ex);\n }", "@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5) {\n\n\t}", "public void setupLogging() {\n\t\ttry {\n\t\t\t_logger = Logger.getLogger(QoSModel.class);\n\t\t\tSimpleLayout layout = new SimpleLayout();\n\t\t\t_appender = new FileAppender(layout,_logFileName+\".txt\",false);\n\t\t\t_logger.addAppender(_appender);\n\t\t\t_logger.setLevel(Level.ALL);\n\t\t\tSystem.setOut(createLoggingProxy(System.out));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7) {\n\n\t}", "@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3, Object p4, Object p5, Object p6) {\n\n\t}", "public interface Logger {\n\tpublic void log(String msg);\n}", "private Logger configureLogging() {\r\n\t Logger rootLogger = Logger.getLogger(\"\");\r\n\t rootLogger.setLevel(Level.FINEST);\r\n\r\n\t // By default there is one handler: the console\r\n\t Handler[] defaultHandlers = Logger.getLogger(\"\").getHandlers();\r\n\t defaultHandlers[0].setLevel(Level.CONFIG);\r\n\r\n\t // Add our logger\r\n\t Logger ourLogger = Logger.getLogger(serviceLocator.getAPP_NAME());\r\n\t ourLogger.setLevel(Level.FINEST);\r\n\t \r\n\t // Add a file handler, putting the rotating files in the tmp directory \r\n\t // \"%u\" a unique number to resolve conflicts, \"%g\" the generation number to distinguish rotated logs \r\n\t try {\r\n\t Handler logHandler = new FileHandler(\"/%h\"+serviceLocator.getAPP_NAME() + \"_%u\" + \"_%g\" + \".log\",\r\n\t 1000000, 3);\r\n\t logHandler.setLevel(Level.FINEST);\r\n\t ourLogger.addHandler(logHandler);\r\n\t logHandler.setFormatter(new Formatter() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String format(LogRecord record) {\r\n\t\t\t\t\t\tString result=\"\";\r\n\t\t\t\t\t\tif(record.getLevel().intValue() >= Level.WARNING.intValue()){\r\n\t\t\t\t\t\t\tresult += \"ATTENTION!: \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd-MMM-yyyy HH:mm:ss\");\r\n\t\t\t\t\t\tDate d = new Date(record.getMillis());\r\n\t\t\t\t\t\tresult += df.format(d)+\" \";\r\n\t\t\t\t\t\tresult += \"[\"+record.getLevel()+\"] \";\r\n\t\t\t\t\t\tresult += this.formatMessage(record);\r\n\t\t\t\t\t\tresult += \"\\r\\n\";\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t } catch (Exception e) { // If we are unable to create log files\r\n\t throw new RuntimeException(\"Unable to initialize log files: \"\r\n\t + e.toString());\r\n\t }\r\n\r\n\t return ourLogger;\r\n\t }", "@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}", "private void logUser() {\n }", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "private void repetitiveWork(){\n\t PropertyConfigurator.configure(\"log4j.properties\");\n\t log = Logger.getLogger(BackupRestore.class.getName());\n }", "@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8) {\n\n\t}", "@Test\n\tpublic void logExceptionAndFormattedMessageWithTwoArgumentsAndLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.DEBUG, exception, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"{0} = {1}\"), eq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.WARN, exception, \"{0} = {1}\", \"magic\", 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"{0} = {1}\"), eq(\"magic\"), eq(42));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "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}", "void log(Message message);", "void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}", "@Test\n\tpublic void logExceptionAndFormattedMessageWithMultipleArgumentsAndLoggerClassName() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.DEBUG, exception, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.DEBUG), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.logv(TinylogLoggerTest.class.getName(), org.jboss.logging.Logger.Level.WARN, exception, \"{0}, {1}, {2} or {3}\", 1, 2, 3, 4);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(eq(TinylogLoggerTest.class.getName()), isNull(), eq(Level.WARN), same(exception),\n\t\t\t\t\tany(JavaTextMessageFormatFormatter.class), eq(\"{0}, {1}, {2} or {3}\"), eq(1), eq(2), eq(3), eq(4));\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3) {\n\n\t}", "public interface ILogClassFormatter<T>\n{\n String log(T item, boolean logInList);\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 }", "public static void loggingExample() {\n\t\tSystem.out.println(\"This is running with the default logger!\");\n\t\tnewLogger.fatal(\"This is fatal\");\n\t\tnewLogger.warn(\"This is the warn level\");\n\t\tnewLogger.info(\"This is the info level\");\n\t\t\n\t}", "@Override\n\tpublic void log(Level level, Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}", "LogRecorder getLogRecorder();", "LogRecorder getLogRecorder();" ]
[ "0.688363", "0.6878747", "0.6856045", "0.6832539", "0.68265665", "0.6758267", "0.6736297", "0.66813004", "0.6660159", "0.66268533", "0.66222537", "0.657637", "0.6555756", "0.6550367", "0.65261537", "0.65232015", "0.65200126", "0.6519301", "0.64989036", "0.6495042", "0.6487859", "0.6482351", "0.64774024", "0.6473227", "0.6449626", "0.6436808", "0.6433037", "0.64175713", "0.64134526", "0.6411467", "0.6395252", "0.6364155", "0.63568634", "0.6341849", "0.6340321", "0.6326798", "0.631963", "0.63172966", "0.63131356", "0.6312023", "0.6257049", "0.62471783", "0.6246751", "0.6239275", "0.6230767", "0.6209799", "0.62077016", "0.6190165", "0.6183367", "0.61797965", "0.6172896", "0.61682415", "0.6159145", "0.61573154", "0.6154361", "0.615259", "0.6152023", "0.6151132", "0.614883", "0.61393136", "0.61348224", "0.6111026", "0.6108719", "0.6078428", "0.60708433", "0.6054745", "0.60448223", "0.60431165", "0.6042416", "0.6033813", "0.6027541", "0.6025873", "0.6000969", "0.59996253", "0.59951645", "0.59908503", "0.5989532", "0.5980046", "0.5970224", "0.5965137", "0.5964427", "0.5961602", "0.59609234", "0.5958312", "0.5958312", "0.5958312", "0.59555984", "0.59552693", "0.5942425", "0.5940777", "0.5938675", "0.5933788", "0.59321105", "0.59189093", "0.59154004", "0.5908397", "0.5906815", "0.590489", "0.5896807", "0.58933157", "0.58933157" ]
0.0
-1
get timezone by city name or zone id
public TimeZone getTimeZone(String zoneId, String cityName) { if(zoneId != null && !zoneId.isEmpty()) { return getTimeZoneById(zoneId); } else { return getTimeZoneByCityName(cityName); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TimeZone getTimeZoneByCityName(String name) {\n String arg = name.trim().replaceAll(\"\\\\s\", \"_\");\n for(String zoneId : zoneIds) {\n if(zoneId.endsWith(\"/\" + arg)) {\n return TimeZone.getTimeZone(zoneId);\n }\n }\n return TimeZone.getTimeZone(\"UTC\");\n }", "public static TimeZone getTimeZone(String ID);", "public static android.icu.util.TimeZone getTimeZone(java.lang.String ID) { throw new RuntimeException(\"Stub!\"); }", "public static android.icu.util.TimeZone getTimeZone(java.lang.String ID, int type) { throw new RuntimeException(\"Stub!\"); }", "public ZoneVO getZoneById(Integer zoneid);", "java.lang.String getZone();", "java.lang.String getTimeZone();", "int getUserTimeZoneCode();", "abstract public ZonedDateTime getZonedDateTime(String zoneString);", "@RequestLine(\"GET /zones/{zoneName}\")\n Zone getZoneByName(@Param(\"zoneName\") final String zoneName);", "com.google.protobuf.ByteString getTimeZoneBytes();", "String getCountryOfOrigin(long id) throws RemoteException;", "String getAvailabilityZone();", "TrackerCity getTrackerCity(final Integer id);", "String getAvailability_zone();", "public native final String timeZone() /*-{\n\t\treturn this[\"timeZone\"];\n\t}-*/;", "java.lang.String getArrivalAirportCity();", "public Object getCountryByIdOrName(Long id, String name);", "java.lang.String getDepartureAirportCity();", "public Integer getTimeZone() {\n return timeZone;\n }", "public static String getTimezoneByState(String state) {\n return timezones.get(state);\n }", "@GetModelValue(key = \"timezone\")\n\tpublic String getTimeZone() {\n\t\treturn zid.getId();\n\n\t}", "public TimeZone getTimeZone() { return this.timeZone; }", "public String getZoneId() {\n return this.ZoneId;\n }", "@ApiModelProperty(example = \"Europe/Zurich\", value = \"Describes the local time zone in which the hotel is located. This could include additional information regarding time zones (e.g., Daylight Saving Time observed), a proprietary code, the difference between the local time and GMT.\")\n\n\n public String getTimeZone() {\n return timeZone;\n }", "RefZoneGeoDTO findOne(Long id);", "public Long getZoneId() {\n return zoneId;\n }", "java.lang.String getTransitAirportCity();", "@Override\n public TimeZoneIdentifierParameter getTimeZoneIdentifier() { return timeZoneIdentifier; }", "public void timezone(){\n String url =\"https://maps.googleapis.com/maps/api/timezone/json?location=\"+currentLocation+\"&timestamp=1458000000&key=AIzaSyBECdnBe-LP4YUxygPWgDmEeDqOEx_Rv08\";\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n //Log.d(\"TAG\", response.toString());\n try {\n String timeZoneId = response.getString(\"timeZoneId\");\n String timeZoneName = response.getString(\"timeZoneName\");\n System.out.println(\"timeZoneId = [\" + timeZoneId + timeZoneName + \"]\");\n Snackbar.make(findViewById(R.id.sliding_layout),timeZoneName , Snackbar.LENGTH_LONG).show();\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"TAG\", error.getMessage(), error);\n }\n });\n queue.add(jsonObjectRequest);\n }", "public void setZoneName(String zoneName);", "@Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n ZoneOperationApi getZoneOperationApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);", "public Zone getZone() {\n/* 4808 */ return this.zone;\n/* */ }", "public static void main(String[] args) {\n\t\tString[] ids = TimeZone.getAvailableIDs();\n\t\tSystem.out.println(Arrays.toString(ids));\n\t\t\n\t\t//Get the system's Timezone \n\t\tTimeZone my = TimeZone.getDefault();\n\t\tSystem.out.println(my.getID());\n\t\tSystem.out.println(my.getDisplayName());\n\t\tSystem.out.println(TimeZone.getTimeZone(\"CMT\").getDisplayName());\n\t}", "public TimeZone getTimeZone()\n {\n return timeZone;\n }", "com.google.protobuf.ByteString getZoneBytes();", "public static TimeZone getDefault();", "Optional<City> findCityById(int id);", "@Override\n public ZonedDateTime getZonedDateTime(String zoneString) {\n return null;\n }", "public static String getCityByIP(String ip)\n {\n if (ip == null || ip.isEmpty())\n {\n return null;\n }\n String httpUrl = \"http://apis.baidu.com/apistore/iplookupservice/iplookup\";\n String httpArg = \"ip=\" + ip;\n return request(httpUrl, httpArg);\n\n }", "int getRecurrenceTimeZoneCode();", "com.google.protobuf.ByteString getQueryZone();", "@Override\n\tpublic City findCityById(long id) {\n\t\treturn null;\n\t}", "String getCity();", "@Override\n\tpublic ZoneId getZone() {\n\t\treturn null;\n\t}", "public static TimeZone getPreferredTimeZone(String userId)\n\t{\n\t\tTimeZone rv = null;\n\n\t\tif (userId == null) userId = SessionManager.getCurrentSessionUserId();\n\t\tif (userId != null)\n\t\t{\n\t\t\tPreferences prefs = PreferencesService.getPreferences(userId);\n\t\t\tResourceProperties tzProps = prefs.getProperties(TimeService.APPLICATION_ID);\n\t\t\tString timeZoneId = tzProps.getProperty(TimeService.TIMEZONE_KEY);\n\n\t\t\tif (timeZoneId != null)\n\t\t\t{\n\t\t\t\t// defaults to GMT is the zone id is not recognized\n\t\t\t\trv = TimeZone.getTimeZone(timeZoneId);\n\t\t\t}\n\t\t}\n\n\t\t// if no user, use default\n\t\tif (rv == null)\n\t\t{\n\t\t\trv = TimeZone.getDefault();\n\t\t}\n\n\t\treturn rv;\n\t}", "java.lang.String getCityName();", "public String getZone() {\n return this.zone;\n }", "TrackerCity loadTrackerCity(final Integer id);", "List<String> getFarzones();", "public java.lang.String tzID() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.text.TimeZoneNames.MatchInfo.tzID():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.text.TimeZoneNames.MatchInfo.tzID():java.lang.String\");\n }", "public native final Calendar timeZone(String val) /*-{\n\t\tthis[\"timeZone\"] = val;\n\t\treturn this;\n\t}-*/;", "final HTimeZone fromBajaTimeZone(BTimeZone timeZone)\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n String tzName = timeZone.getId();\r\n\r\n // lop off the region, e.g. \"America\" \r\n int n = tzName.indexOf(\"/\");\r\n if (n != -1) \r\n {\r\n String region = tzName.substring(0, n);\r\n if (BHTimeZone.TZ_REGIONS.contains(region))\r\n tzName = tzName.substring(n+1);\r\n }\r\n\r\n try\r\n {\r\n return HTimeZone.make(tzName);\r\n }\r\n catch (Exception e)\r\n {\r\n // look through the aliases\r\n BTimeZoneAlias[] aliases = service.getTimeZoneAliases().getAliases();\r\n for (int i = 0; i < aliases.length; i++)\r\n {\r\n if (aliases[i].getAxTimeZoneId().equals(timeZone.getId()))\r\n return aliases[i].getHaystackTimeZone().getTimeZone();\r\n }\r\n\r\n // cannot create timezone tag\r\n LOG.error(\"Cannot create tz tag: \" + e.getMessage());\r\n return null;\r\n }\r\n }", "public String getZone() {\r\n\t\treturn zone;\r\n\t}", "public String getAccountTimeZoneId() {\r\n return accountTimeZoneId;\r\n }", "public static Zone get(String name, Output<String> id, @Nullable ZoneState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new Zone(name, id, state, options);\n }", "@AutoEscape\n public String getZoneName();", "public AlarmZone getZoneByID(String ID) {\n\t\tListIterator<AlarmZone> zoneList = zones.listIterator();\n\t\t\n\t\tlogger.log(\"Looking for Zone by ID \" + ID, Level.TRACE);\n\t\t\n\t\twhile(zoneList.hasNext()) {\n\t\t\tAlarmZone theZone = zoneList.next();\n\t\t\tif(theZone.getID().equals(ID)) {\n\t\t\t\tlogger.log(\"Found Zone \" + ID, Level.TRACE);\n\t\t\t\treturn theZone;\n\t\t\t}\n\t\t}\n\t\t\n\t\tlogger.log(\"Zone \" + ID + \" not found! Adding new zone of ID: \" + ID, Level.TRACE);\n\t\treturn addZoneByID(ID);\n\t}", "public int getTotalTimeByZone(int id_zona) {\n int[] zone = new int[3];\n zone[0] = 1;\n zone[1] = 2;\n zone[2] = 3;\n return userZonaJpaController.getTimeByZone(id_zona);\n\n }", "private String getTimeZone(TimeZone standardTimeZone, Date dateTime) {\n\t\treturn standardTimeZone.inDaylightTime(dateTime) ? this.dateTimeDaylightSavingTimeZone : standardTimeZone.getID();\n\t}", "void setUserTimeZoneCode(int userTimeZoneCode);", "public String takeCityNameById(Integer id) {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n String query = \"select * from cities where idcity=\" + id;\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(query);\n\n while (rs.next()) {\n cityName = rs.getString(\"name\");\n }\n return cityName;\n } catch (SQLException ex) {\n Logger.getLogger(CityController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n return null;\n }", "@ApiMethod(name = \"getCity\", path = \"city/{id}\", httpMethod = ApiMethod.HttpMethod.GET)\n public City getCity(@Named(\"id\") Long id)\n throws NotFoundException {\n\n return mCityService.getById(id);\n }", "@Test\n public void testTimezone() {\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/Paris\"));\n\n SunTimes paris = SunTimes.compute()\n .on(2020, 5, 1) // May 1st, 2020, starting midnight\n .latitude(48, 51, 24.0) // Latitude of Paris: 48°51'24\" N\n .longitude(2, 21, 6.0) // Longitude: 2°21'06\" E\n .execute();\n System.out.println(\"Sunrise in Paris: \" + paris.getRise());\n System.out.println(\"Sunset in Paris: \" + paris.getSet());\n\n SunTimes newYork = SunTimes.compute()\n .on(2020, 5, 1) // May 1st, 2020, starting midnight\n .at(40.712778, -74.005833) // Coordinates of New York\n .execute();\n System.out.println(\"Sunrise in New York: \" + newYork.getRise());\n System.out.println(\"Sunset in New York: \" + newYork.getSet());\n\n SunTimes newYorkTz = SunTimes.compute()\n .on(2020, 5, 1) // May 1st, 2020, starting midnight\n .timezone(\"America/New_York\") // ...New York timezone\n .at(40.712778, -74.005833) // Coordinates of New York\n .execute();\n System.out.println(\"Sunrise in New York: \" + newYorkTz.getRise());\n System.out.println(\"Sunset in New York: \" + newYorkTz.getSet());\n }", "public City getCityAt(Position p);", "@Override\n @Transactional\n public City getCity(long id) {\n Optional<City> result = cityRepository.findById(id);\n City city = null;\n if (result.isPresent()) {\n city = result.get();\n }\n else {\n throw new NotFoundException(\"Did not find city id: \" + id);\n }\n return city;\n }", "String getTimeZone()\n {\n return configfile.time_zone;\n }", "public void setTimeZone() {\n sydney = TimeZone.getTimeZone(\"Australia/Sydney\");\n tokyo = TimeZone.getTimeZone(\"Asia/Tokyo\");\n auckland = TimeZone.getTimeZone(\"Pacific/Auckland\");\n dubai = TimeZone.getTimeZone(\"Asia/Dubai\");\n newyork = TimeZone.getTimeZone(\"America/New_York\");\n }", "public static void main(String[] args) {\n\t\tZoneId.getAvailableZoneIds()\r\n\t\t\t .stream()\r\n\t\t\t .filter( s -> s.startsWith(\"Asia\") )\r\n\t\t\t .sorted()\r\n\t\t\t .forEach( s -> System.out.println(s) );\r\n\t}", "List<City> getCityList(Integer countryId)throws EOTException;", "public void setZone(String zone) {\n this.zone = zone;\n }", "public static android.icu.util.TimeZone getDefault() { throw new RuntimeException(\"Stub!\"); }", "public String getZone() {\n return this.Zone;\n }", "private static String tzStrFromNV(NodeValue nv) {\n DateTimeStruct dts = parseAnyDT(nv) ;\n if ( dts == null )\n return \"\" ;\n String tzStr = dts.timezone ;\n if ( tzStr == null )\n tzStr = \"\" ;\n return tzStr ;\n }", "public String getUTCTime(String timeZone, Calendar cal);", "public static TimeZone StringToTimeZoneConvert(String val) {\n\n return TimeZoneManager.TIME_ZONES.getOrDefault(val, DEFAULT_TIMEZONE);\n }", "@java.lang.Override\n public java.lang.String getZone() {\n java.lang.Object ref = zone_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n zone_ = s;\n return s;\n }\n }", "private static Zone findSupportedZoneForAnimal(Animal animal) throws Exception\n {\n /**\n * checking every zone that is available in the zoo \n */\n for(Zone zone : Zoo.zonesInZoo.values()){\n if(zone.categoryOfAnimalSupported.equalsIgnoreCase(animal.category) && zone.subcategoryOfAnimalSupported.equalsIgnoreCase(animal.subCategory)){\n return zone;\n }\n }\n /**\n * if no suitable zone found\n */\n throw new Exception(\"Supported zone not found for given animal!!!\");\n }", "public void setTimeZone(TimeZone tmz)\n {\n this.timeZone = tmz; // may be null\n }", "org.apache.xmlbeans.XmlInt xgetUserTimeZoneCode();", "public TimeZone getTimeZone(){\r\n return TimeZone.getDefault();\r\n }", "public TimeZone() { throw new RuntimeException(\"Stub!\"); }", "Location getLocationById(long id);", "private String getCountry(String id) {\n\t\tif(Utility.keyLevel(id) == 0 ) // It's a country\n\t\t\treturn id;\n\t\telse if(Utility.keyLevel(id) == -1 ) // ZZZ\n\t\t\t return id;\n\t\telse {\n\t\t\t// It's higher admin than level 0. We need to find the country the code is in\n\t\t\tString ctrcode = GeographicMapper.getAlpha3(id.substring(0, 2));\n\t\t\treturn ctrcode;\n\t\t}\n\t}", "public void testTimezoneName() {\n Locale[] locales = Locale.getAvailableLocales();\r\n String[] timeZoneNames = TimeZone.getAvailableIDs();\r\n// String[] timeZoneNames = {\"Asia/SomethingThatDoesntExist\"};\r\n String currentTimezoneName = \"empty\";\r\n String currentLocaleName = \"empty\";\r\n Context context = getApplicationContext();\r\n Log.d(\"gilad\",\"total locales:\"+locales.length);\r\n Log.d(\"gilad\",\"total timezoneNames:\"+timeZoneNames.length);\r\n try {\r\n for (int i = 0; i < locales.length; i++) {\r\n Locale aLocale = locales[i];\r\n currentLocaleName = \"\" + aLocale;\r\n if ((i % 5) ==0)\r\n Log.i(\"gilad locale:\", currentLocaleName);\r\n\r\n for (int j = 0; j < timeZoneNames.length; j++) {\r\n TimeZone timezone = TimeZone.getTimeZone(timeZoneNames[j]);\r\n currentTimezoneName = \"\" + timeZoneNames[j];\r\n synchronized (context) {\r\n if ((j % 190) == 0)\r\n Log.v(\"gilad timezone:\", currentLocaleName);\r\n testLocaleTimezone(aLocale, timezone,context);\r\n //SessionManager.SessionState sessionState = SessionManager.getSessionState(context);\r\n //Logger.d(\"gilad\", \"#\"+i+\" Session state [\" + sessionState.getSessionStartDate() + \" - \" + sessionState.getSessionEndDate() + \"]\");\r\n }\r\n\r\n // Log.e(\"gilad\", \"Locale: \" + aLocale + \"TZ: \" + timezone.getDisplayName(true, 0x00000000, aLocale));\r\n }\r\n }\r\n } catch (java.lang.AssertionError ex) {\r\n Log.e(\"AssertionError gilad\", \"timezone=\" + currentTimezoneName + \", locale=\" + currentLocaleName);\r\n }\r\n\r\n }", "private String findZoneId (String pHostname) {\n String ctx = \"findZoneId - \";\n String url = mAPIEndpointURL + \"/zones\";\n\n String id = null;\n try {\n // future improvement: handling pagination\n HttpResponse<String> response = Unirest.get(url).\n queryString(\"status\", \"active\").\n queryString(\"page\", \"1\").\n queryString(\"per-page\", 50).\n header(\"X-Auth-Email\", mAPIEmail).\n header(\"X-Auth-Key\", mAPIKey).\n header(\"Content-Type\", \"application/json;charset=UTF-8\").\n asString();\n if (!checkResponse(response)) {\n mLogger.error(ctx + \"API endpoint returned \" + response.getStatus() + \" for request \" + url);\n return null;\n }\n String body = response.getBody();\n JSONObject jsonBody = new JSONObject(body);\n JSONArray zones = jsonBody.getJSONArray(\"result\");\n if (zones != null && zones.length() > 0) {\n for (int i = 0; i < zones.length(); i++) {\n JSONObject zone = zones.getJSONObject(i);\n String zoneName = zone.getString(\"name\");\n if (pHostname.contains(zoneName)) {\n id = zone.getString(\"id\");\n break;\n }\n }\n }\n } catch (UnirestException ue) {\n mLogger.error(ctx + \"UnirestException for request \" + url, ue);\n }\n\n return id;\n }", "@Override\r\n\tpublic List<City> getCityById(int pid) {\n\t\treturn cd.getCityById(pid);\r\n\t}", "@Override\n\tpublic VenueCity getVenueCityById(int id) {\n\t\treturn eventDao.getVenueCityById(id);\n\t}", "@Override\r\n\tpublic City getCityByName(String cityName, String countryName) {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\r\n\t\tList<City> list=new ArrayList<City>();\r\n\r\n\t\tQuery query=session.createQuery(\"from City where name= :cityName and country.name = :countryName\");\r\n\t\tquery.setParameter(\"cityName\", cityName);\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tlist=query.list();\r\n\t\t\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\tif(list.size()>0)\r\n\t\t\treturn list.get(0);\r\n\t\t\r\n\t\treturn null;\r\n\t}", "java.lang.String getRegisteredOfficeCity();", "public void setZone(String zone) {\r\n\t\tthis.zone = zone;\r\n\t}", "public String getTransZoneId() {\n return transZoneId;\n }", "public java.lang.String getZone() {\n java.lang.Object ref = zone_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n zone_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Country getById(Integer id) throws Exception;", "@RequestLine(\"GET /zones\")\n ZoneList getZonesOfUser();", "public static java.lang.String getRegion(java.lang.String id) { throw new RuntimeException(\"Stub!\"); }", "@Cacheable(\"weather\")\r\n\tpublic Weather getWeatherByCityAndCountry(String country, String city) {\n\t\tlogger.info(\"Requesting current weather for {}/{}\", country, city);\r\n\t\t\r\n\t\tURI url = new UriTemplate(WEATHER_URL).expand(city, country, this.apiKey);\r\n\t\treturn invoke(url, Weather.class);\r\n\t}", "public void setTimeZone(TimeZone timeZone)\n {\n this.timeZone = timeZone;\n }", "public java.util.TimeZone getTimeZone() { return ((JDateType)getType()).getTimeZone(); }", "public City getCity(int index)\n {\n return cityContainer.get(index);\n }" ]
[ "0.76821387", "0.75378734", "0.7019594", "0.6992416", "0.67590123", "0.6692135", "0.6639967", "0.6436294", "0.62945575", "0.6127682", "0.60283864", "0.5997165", "0.5982608", "0.5952842", "0.5830467", "0.5786778", "0.5745131", "0.57436436", "0.57340294", "0.5703695", "0.5674819", "0.5672935", "0.56249493", "0.5614091", "0.5611731", "0.55673385", "0.5547834", "0.55246437", "0.5511662", "0.5487163", "0.5483672", "0.5474601", "0.54689175", "0.5460695", "0.543939", "0.54273653", "0.5420667", "0.53944045", "0.5383386", "0.53679943", "0.53469497", "0.53456706", "0.534034", "0.5313473", "0.53121966", "0.5311051", "0.53050435", "0.5289904", "0.52859277", "0.528404", "0.5282783", "0.52701116", "0.52567255", "0.52531695", "0.52520376", "0.52418864", "0.5237932", "0.5220991", "0.5218117", "0.518813", "0.5186668", "0.51511717", "0.51509047", "0.5144924", "0.5143718", "0.50934774", "0.5092874", "0.50795907", "0.50794345", "0.50623435", "0.50582254", "0.5050121", "0.50375164", "0.50339484", "0.5030816", "0.50213647", "0.50207156", "0.50167936", "0.5011189", "0.50102705", "0.5004949", "0.49911615", "0.49896285", "0.497246", "0.49671945", "0.4958882", "0.49570036", "0.49415496", "0.4938175", "0.49370706", "0.49302432", "0.4919419", "0.49125215", "0.49121755", "0.49100107", "0.49063405", "0.49010402", "0.4899839", "0.48976427", "0.48953328" ]
0.6867261
4
get time zone by city name
public TimeZone getTimeZoneByCityName(String name) { String arg = name.trim().replaceAll("\\s", "_"); for(String zoneId : zoneIds) { if(zoneId.endsWith("/" + arg)) { return TimeZone.getTimeZone(zoneId); } } return TimeZone.getTimeZone("UTC"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getZone();", "java.lang.String getTimeZone();", "int getUserTimeZoneCode();", "public static TimeZone getTimeZone(String ID);", "public static android.icu.util.TimeZone getTimeZone(java.lang.String ID, int type) { throw new RuntimeException(\"Stub!\"); }", "public TimeZone getTimeZone(String zoneId, String cityName) {\n if(zoneId != null && !zoneId.isEmpty()) {\n return getTimeZoneById(zoneId);\n } else {\n return getTimeZoneByCityName(cityName);\n }\n }", "public static android.icu.util.TimeZone getTimeZone(java.lang.String ID) { throw new RuntimeException(\"Stub!\"); }", "String getAvailabilityZone();", "String getAvailability_zone();", "java.lang.String getArrivalAirportCity();", "java.lang.String getDepartureAirportCity();", "java.lang.String getCityName();", "java.lang.String getTransitAirportCity();", "com.google.protobuf.ByteString getTimeZoneBytes();", "public static String getTimezoneByState(String state) {\n return timezones.get(state);\n }", "String getCity();", "public static void main(String[] args) {\n\t\tString[] ids = TimeZone.getAvailableIDs();\n\t\tSystem.out.println(Arrays.toString(ids));\n\t\t\n\t\t//Get the system's Timezone \n\t\tTimeZone my = TimeZone.getDefault();\n\t\tSystem.out.println(my.getID());\n\t\tSystem.out.println(my.getDisplayName());\n\t\tSystem.out.println(TimeZone.getTimeZone(\"CMT\").getDisplayName());\n\t}", "abstract public ZonedDateTime getZonedDateTime(String zoneString);", "public native final String timeZone() /*-{\n\t\treturn this[\"timeZone\"];\n\t}-*/;", "@Test\n public void testTimezone() {\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/Paris\"));\n\n SunTimes paris = SunTimes.compute()\n .on(2020, 5, 1) // May 1st, 2020, starting midnight\n .latitude(48, 51, 24.0) // Latitude of Paris: 48°51'24\" N\n .longitude(2, 21, 6.0) // Longitude: 2°21'06\" E\n .execute();\n System.out.println(\"Sunrise in Paris: \" + paris.getRise());\n System.out.println(\"Sunset in Paris: \" + paris.getSet());\n\n SunTimes newYork = SunTimes.compute()\n .on(2020, 5, 1) // May 1st, 2020, starting midnight\n .at(40.712778, -74.005833) // Coordinates of New York\n .execute();\n System.out.println(\"Sunrise in New York: \" + newYork.getRise());\n System.out.println(\"Sunset in New York: \" + newYork.getSet());\n\n SunTimes newYorkTz = SunTimes.compute()\n .on(2020, 5, 1) // May 1st, 2020, starting midnight\n .timezone(\"America/New_York\") // ...New York timezone\n .at(40.712778, -74.005833) // Coordinates of New York\n .execute();\n System.out.println(\"Sunrise in New York: \" + newYorkTz.getRise());\n System.out.println(\"Sunset in New York: \" + newYorkTz.getSet());\n }", "public void testTimezoneName() {\n Locale[] locales = Locale.getAvailableLocales();\r\n String[] timeZoneNames = TimeZone.getAvailableIDs();\r\n// String[] timeZoneNames = {\"Asia/SomethingThatDoesntExist\"};\r\n String currentTimezoneName = \"empty\";\r\n String currentLocaleName = \"empty\";\r\n Context context = getApplicationContext();\r\n Log.d(\"gilad\",\"total locales:\"+locales.length);\r\n Log.d(\"gilad\",\"total timezoneNames:\"+timeZoneNames.length);\r\n try {\r\n for (int i = 0; i < locales.length; i++) {\r\n Locale aLocale = locales[i];\r\n currentLocaleName = \"\" + aLocale;\r\n if ((i % 5) ==0)\r\n Log.i(\"gilad locale:\", currentLocaleName);\r\n\r\n for (int j = 0; j < timeZoneNames.length; j++) {\r\n TimeZone timezone = TimeZone.getTimeZone(timeZoneNames[j]);\r\n currentTimezoneName = \"\" + timeZoneNames[j];\r\n synchronized (context) {\r\n if ((j % 190) == 0)\r\n Log.v(\"gilad timezone:\", currentLocaleName);\r\n testLocaleTimezone(aLocale, timezone,context);\r\n //SessionManager.SessionState sessionState = SessionManager.getSessionState(context);\r\n //Logger.d(\"gilad\", \"#\"+i+\" Session state [\" + sessionState.getSessionStartDate() + \" - \" + sessionState.getSessionEndDate() + \"]\");\r\n }\r\n\r\n // Log.e(\"gilad\", \"Locale: \" + aLocale + \"TZ: \" + timezone.getDisplayName(true, 0x00000000, aLocale));\r\n }\r\n }\r\n } catch (java.lang.AssertionError ex) {\r\n Log.e(\"AssertionError gilad\", \"timezone=\" + currentTimezoneName + \", locale=\" + currentLocaleName);\r\n }\r\n\r\n }", "public static TimeZone getDefault();", "@RequestLine(\"GET /zones/{zoneName}\")\n Zone getZoneByName(@Param(\"zoneName\") final String zoneName);", "String getCountryOfOrigin(long id) throws RemoteException;", "@Override\n @Cacheable(\"darkSkySunriseTime\")\n public WeatherDataDto getSunriseTime(@NonNull String city, @NonNull String countryCode) {\n ResponseEntity<String> response = getWeather(city, countryCode);\n if (response.getStatusCode() == HttpStatus.OK) {\n String sunrise = \"Api does not support this field.\";\n WeatherDataDto weatherDataDto = new WeatherDataDto();\n weatherDataDto.setServiceName(ServiceName.DARK_SKY);\n weatherDataDto.setName(city);\n weatherDataDto.setSunrise(sunrise);\n\n return weatherDataDto;\n } else {\n return new WeatherDataDto(ServiceName.DARK_SKY, response.getBody());\n }\n }", "String getTimeZone()\n {\n return configfile.time_zone;\n }", "@Override\n\tpublic String getWeatherDataCity(String city, String country) throws IOException {\n\n\t\treturn connectAPICity(city, country);\n\t\t\n\t}", "String getContinentName();", "List<String> getFarzones();", "public Integer getTimeZone() {\n return timeZone;\n }", "com.google.protobuf.ByteString getQueryZone();", "public static String getCityByIP(String ip)\n {\n if (ip == null || ip.isEmpty())\n {\n return null;\n }\n String httpUrl = \"http://apis.baidu.com/apistore/iplookupservice/iplookup\";\n String httpArg = \"ip=\" + ip;\n return request(httpUrl, httpArg);\n\n }", "public void setZoneName(String zoneName);", "public ZoneVO getZoneById(Integer zoneid);", "public City getCityAt(Position p);", "int getRecurrenceTimeZoneCode();", "public static void main(String[] args) {\n\t\tZoneId.getAvailableZoneIds()\r\n\t\t\t .stream()\r\n\t\t\t .filter( s -> s.startsWith(\"Asia\") )\r\n\t\t\t .sorted()\r\n\t\t\t .forEach( s -> System.out.println(s) );\r\n\t}", "private static String tzStrFromNV(NodeValue nv) {\n DateTimeStruct dts = parseAnyDT(nv) ;\n if ( dts == null )\n return \"\" ;\n String tzStr = dts.timezone ;\n if ( tzStr == null )\n tzStr = \"\" ;\n return tzStr ;\n }", "public static void main(String argv[])\n {\n Calendar cal = Calendar.getInstance();\n\n //Sets TimeZone variable time to our default time zone (America/New_York)\n TimeZone time = TimeZone.getDefault();\n\n //Sets table format for output\n System.out.println(\"Time zone: City: Time:\");\n System.out.println();\n\n //Sets a time format for the output\n SimpleDateFormat sdf = new SimpleDateFormat(\"hh:mm:ss\");\n \n //Prints out the time and timezone in Washington DC\n \n //If cal.get(Calendar.AM_PM returns a value of 0 than AM is printed, \n //otherwise PM is printed\n if (cal.get(Calendar.AM_PM) == 0)\n System.out.println(time.getID() + \" \" + \"Washington DC \" + sdf.format(cal.getTime()) + \" AM\");\n else\n System.out.println(time.getID() + \" \" + \"Washington DC \" + sdf.format(cal.getTime()) + \" PM\");\n\n //Prints out the time in Los Angeles\n time = TimeZone.getTimeZone(\"America/Los_Angeles\");\n \n //Sets the SimpleDateFormat variable to the time zone given by the time variable\n //to display the time\n sdf.setTimeZone(time);\n \n //Sets the calendar to the time zone given by the time variable to display AM/PM\n cal.setTimeZone(time);\n\n if (cal.get(Calendar.AM_PM) == 0)\n System.out.println(time.getID() + \" \" + \"Los Angeles \" + sdf.format(cal.getTime()) + \" AM\");\n else\n System.out.println(time.getID() + \" \" + \"Los Angeles \" + sdf.format(cal.getTime()) + \" PM\");\n\n //Prints out the time in Amsterdam\n time = TimeZone.getTimeZone(\"Europe/Amsterdam\");\n sdf.setTimeZone(time);\n cal.setTimeZone(time);\n\n if (cal.get(Calendar.AM_PM) == 0)\n System.out.println(time.getID() + \" \" + \" Amsterdam \" + sdf.format(cal.getTime()) + \" AM\");\n else\n System.out.println(time.getID() + \" \" + \" Amsterdam \" + sdf.format(cal.getTime()) + \" PM\");\n\n //Prints out the time in Jerusalem\n time = TimeZone.getTimeZone(\"Asia/Jerusalem\");\n sdf.setTimeZone(time);\n cal.setTimeZone(time);\n\n if (cal.get(Calendar.AM_PM) == 0)\n System.out.println(time.getID() + \" \" + \" Jerusalem \" + sdf.format(cal.getTime()) + \" AM\");\n else\n System.out.println(time.getID() + \" \" + \" Jerusalem \" + sdf.format(cal.getTime()) + \" PM\");\n\n //Prints out the time in Hong Kong\n time = TimeZone.getTimeZone(\"Asia/Hong_Kong\");\n sdf.setTimeZone(time);\n cal.setTimeZone(time);\n\n if (cal.get(Calendar.AM_PM) == 0)\n System.out.println(time.getID() + \" \" + \" Hong Kong \" + sdf.format(cal.getTime()) + \" AM\");\n else\n System.out.println(time.getID() + \" \" + \" Hong Kong \" + sdf.format(cal.getTime()) + \" PM\");\n\n }", "public void timezone(){\n String url =\"https://maps.googleapis.com/maps/api/timezone/json?location=\"+currentLocation+\"&timestamp=1458000000&key=AIzaSyBECdnBe-LP4YUxygPWgDmEeDqOEx_Rv08\";\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n //Log.d(\"TAG\", response.toString());\n try {\n String timeZoneId = response.getString(\"timeZoneId\");\n String timeZoneName = response.getString(\"timeZoneName\");\n System.out.println(\"timeZoneId = [\" + timeZoneId + timeZoneName + \"]\");\n Snackbar.make(findViewById(R.id.sliding_layout),timeZoneName , Snackbar.LENGTH_LONG).show();\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"TAG\", error.getMessage(), error);\n }\n });\n queue.add(jsonObjectRequest);\n }", "public TimeZone getTimeZone() { return this.timeZone; }", "TrackerCity getTrackerCity(final Integer id);", "java.lang.String getRegisteredOfficeCity();", "public static android.icu.util.TimeZone getDefault() { throw new RuntimeException(\"Stub!\"); }", "public ArrayList<Flight> getCity(String city) {\n return connects.get(city);\n }", "@Test\n public void printTimeZone() {\n logger.info(\"Time zone = \" + TimeZone.getDefault());\n }", "@Cacheable(\"weather\")\r\n\tpublic Weather getWeatherByCityAndCountry(String country, String city) {\n\t\tlogger.info(\"Requesting current weather for {}/{}\", country, city);\r\n\t\t\r\n\t\tURI url = new UriTemplate(WEATHER_URL).expand(city, country, this.apiKey);\r\n\t\treturn invoke(url, Weather.class);\r\n\t}", "@ApiModelProperty(example = \"Europe/Zurich\", value = \"Describes the local time zone in which the hotel is located. This could include additional information regarding time zones (e.g., Daylight Saving Time observed), a proprietary code, the difference between the local time and GMT.\")\n\n\n public String getTimeZone() {\n return timeZone;\n }", "private DTOCity cityFromName(String name) {\n\t\tfor(DTOCity c : this.cities) {\n\t\t\tif(c.getName().equals(name))\n\t\t\t\treturn c;\n\t\t}\n\t\tthrow new NoSuchElementException(\"Error in creating the DTO graph!\");\n\t}", "String getIPGeolocationCityDatabaseFile();", "@Override\r\n\tpublic City getCityByName(String cityName, String countryName) {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\r\n\t\tList<City> list=new ArrayList<City>();\r\n\r\n\t\tQuery query=session.createQuery(\"from City where name= :cityName and country.name = :countryName\");\r\n\t\tquery.setParameter(\"cityName\", cityName);\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tlist=query.list();\r\n\t\t\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\tif(list.size()>0)\r\n\t\t\treturn list.get(0);\r\n\t\t\r\n\t\treturn null;\r\n\t}", "City city(int i) {\r\n\t\treturn tsp.cities[this.index[i]];\r\n\t}", "com.google.protobuf.ByteString getZoneBytes();", "public abstract String getCity();", "private String getCurrentCity(double lat, double longitude) {\n String currentCity = \"\";\n Geocoder geocoder = new Geocoder(this, Locale.getDefault());\n try {\n List<Address> addresses = geocoder.getFromLocation(lat,longitude,1);\n currentCity = addresses.get(0).getLocality();\n } catch(IOException e){\n e.printStackTrace();\n }\n return currentCity;\n }", "com.google.protobuf.ByteString\n getCityNameBytes();", "public void getWeather(String city, String units);", "public TimeZone getTimeZone()\n {\n return timeZone;\n }", "@Override\n public City getStatsByCity(String name) throws UnirestException {\n City cityWeather = new City();\n JSONObject object = weatherService.getWeatherByCity(name);\n Coord coord = formatObject(\"coord\",object,Coord.class);\n Wind wind = formatObject(\"wind\",object,Wind.class);\n\n Clouds clouds = formatObject(\"clouds\",object,Clouds.class);\n MainStats mainStats = formatObject(\"main\",object,MainStats.class);\n JSONObject objectWeather = object.getJSONArray(\"weather\").getJSONObject(0);\n Weather weather = mapWeather(objectWeather);\n cityWeather.setCoord(coord);\n cityWeather.setWeather(weather);\n cityWeather.setWind(wind);\n cityWeather.setClouds(clouds);\n cityWeather.setName(object.getString(\"name\"));\n cityWeather.setTimezone(object.getInt(\"timezone\"));\n cityWeather.setCod(object.getInt(\"cod\"));\n cityWeather.setVisibility(object.getInt(\"visibility\"));\n return cityWeather;\n }", "List<City> getCityList(Integer countryId)throws EOTException;", "private String getTimeZone(TimeZone standardTimeZone, Date dateTime) {\n\t\treturn standardTimeZone.inDaylightTime(dateTime) ? this.dateTimeDaylightSavingTimeZone : standardTimeZone.getID();\n\t}", "org.apache.xmlbeans.XmlInt xgetUserTimeZoneCode();", "public void testGetTimeZones() {\n System.out.println(\"getTimeZones\");\n TimeZoneList instance = new TimeZoneList();\n String[][] expResult = null;\n String[][] result = instance.getTimeZones();\n TimeZones tz = (TimeZones) GWT.create(TimeZones.class);\n \n assertEquals(result.length, 555);\n for(String[] x : result ){\n for(String y: x){\n System.out.print( y+\" \");\n }\n System.out.println();\n }\n \n }", "@GetModelValue(key = \"timezone\")\n\tpublic String getTimeZone() {\n\t\treturn zid.getId();\n\n\t}", "public String getUTCTime(String timeZone, Calendar cal);", "public String getZone() {\n return this.zone;\n }", "void setUserTimeZoneCode(int userTimeZoneCode);", "public Zone getZone() {\n/* 4808 */ return this.zone;\n/* */ }", "@AutoEscape\n public String getZoneName();", "private String getCountryName(String name)\r\n {\r\n }", "public City getCity(int index)\n {\n return cityContainer.get(index);\n }", "public String getCityName(){\n\t\treturn (String)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_CITY_NAME);\n\t}", "private static boolean hasTimeZone(String lexicalForm) {\n return matchTimeZone.matcher(lexicalForm).find();\n }", "public String getZone() {\r\n\t\treturn zone;\r\n\t}", "@AutoEscape\n\tpublic String getCity();", "public native final Calendar timeZone(String val) /*-{\n\t\tthis[\"timeZone\"] = val;\n\t\treturn this;\n\t}-*/;", "public void setTimeZone() {\n sydney = TimeZone.getTimeZone(\"Australia/Sydney\");\n tokyo = TimeZone.getTimeZone(\"Asia/Tokyo\");\n auckland = TimeZone.getTimeZone(\"Pacific/Auckland\");\n dubai = TimeZone.getTimeZone(\"Asia/Dubai\");\n newyork = TimeZone.getTimeZone(\"America/New_York\");\n }", "public String myLocation(double latitude, double longitude){\n String myCity = \"\";\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n List<Address> addressList ;\n try{\n addressList = geocoder.getFromLocation(latitude,longitude,1);\n\n if(addressList.size()>0){\n myCity = addressList.get(0).getLocality();\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n return myCity;\n }", "java.lang.String getCountry();", "java.lang.String getCountry();", "@Test\n void getFilteredByTimeZone() {\n List<HourlyProductionData> list = hourlyProductionDataRepository\n .getHourlyProductionDataBySolarParkAndTransformToTimeZoneOfSolarParkAndInsideTimeRange(\n embeddedDB.japanSolarPark.getId(),\n embeddedDB.japanSolarPark.getTimeZone(),\n embeddedDB.march1,\n embeddedDB.march1_end);\n\n assertTrue(list != null && list.size() == 1);\n HourlyProductionData hourlyProductionData = list.get(0);\n assertEquals(hourlyProductionData.getElectricityProducedMW().doubleValue(), embeddedDB.march2_hour1_japan.getElectricityProducedMW().doubleValue());\n }", "public Collection<TimeZoneName> getSystemTimeZoneNames() {\n Collection<TimeZoneName> nms = new TreeSet<TimeZoneName>();\n\n try {\n nms.addAll(Timezones.getTzNames());\n } catch (Throwable t) {\n getErr().emit(t);\n }\n\n return nms;\n }", "private static Map<String, DateTimeZone> m68915c() {\n Map linkedHashMap = new LinkedHashMap();\n linkedHashMap.put(\"UT\", DateTimeZone.f8461a);\n linkedHashMap.put(\"UTC\", DateTimeZone.f8461a);\n linkedHashMap.put(\"GMT\", DateTimeZone.f8461a);\n m68911a(linkedHashMap, \"EST\", \"America/New_York\");\n m68911a(linkedHashMap, \"EDT\", \"America/New_York\");\n m68911a(linkedHashMap, \"CST\", \"America/Chicago\");\n m68911a(linkedHashMap, \"CDT\", \"America/Chicago\");\n m68911a(linkedHashMap, \"MST\", \"America/Denver\");\n m68911a(linkedHashMap, \"MDT\", \"America/Denver\");\n m68911a(linkedHashMap, \"PST\", \"America/Los_Angeles\");\n m68911a(linkedHashMap, \"PDT\", \"America/Los_Angeles\");\n return Collections.unmodifiableMap(linkedHashMap);\n }", "private static CIty chaxunjibandi(String jibandi, ArrayList<CIty> citys) {\n\t\tIterator it=citys.iterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tCIty c=(CIty)it.next();\r\n\t\t\tif(c.place.equals(jibandi))\r\n\t\t\t\treturn c;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getCity() {\n return (String) get(\"city\");\n }", "public TimeZone getTimeZone(){\r\n return TimeZone.getDefault();\r\n }", "boolean hasHasCity();", "public java.lang.String tzID() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.text.TimeZoneNames.MatchInfo.tzID():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.text.TimeZoneNames.MatchInfo.tzID():java.lang.String\");\n }", "public String getSystemTime() {\n\t\tSimpleDateFormat dateTimeInGMT = new SimpleDateFormat(\"dd-MMM-yyyy hh\");\n\t\t// Setting the time zoneS\n\t\tdateTimeInGMT.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t\tString timeZone = dateTimeInGMT.format(new Date());\n\t\treturn timeZone;\n\n\t}", "public TestDateTimeAttributeTimeZone(String name) {\r\n\t\tsuper(name);\r\n\t}", "String getIPGeolocationCityEmbeddedResource();", "final HTimeZone fromBajaTimeZone(BTimeZone timeZone)\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n String tzName = timeZone.getId();\r\n\r\n // lop off the region, e.g. \"America\" \r\n int n = tzName.indexOf(\"/\");\r\n if (n != -1) \r\n {\r\n String region = tzName.substring(0, n);\r\n if (BHTimeZone.TZ_REGIONS.contains(region))\r\n tzName = tzName.substring(n+1);\r\n }\r\n\r\n try\r\n {\r\n return HTimeZone.make(tzName);\r\n }\r\n catch (Exception e)\r\n {\r\n // look through the aliases\r\n BTimeZoneAlias[] aliases = service.getTimeZoneAliases().getAliases();\r\n for (int i = 0; i < aliases.length; i++)\r\n {\r\n if (aliases[i].getAxTimeZoneId().equals(timeZone.getId()))\r\n return aliases[i].getHaystackTimeZone().getTimeZone();\r\n }\r\n\r\n // cannot create timezone tag\r\n LOG.error(\"Cannot create tz tag: \" + e.getMessage());\r\n return null;\r\n }\r\n }", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Object getCountryByIdOrName(Long id, String name);", "void handleWeatherDataForCity(String cityName);", "@Cacheable(\"darkSkyCityCoordinates\")\n public WeatherDataDto getCityCoordinates(@NonNull String city, @NonNull String countryCode) {\n ResponseEntity<String> response = getWeather(city, countryCode);\n if (response.getStatusCode() == HttpStatus.OK) {\n JSONObject jsonObject = new JSONObject(response.getBody());\n String latitude = String.valueOf(jsonObject\n .getDouble(\"latitude\"));\n String longitude = String.valueOf(jsonObject\n .getDouble(\"longitude\"));\n\n WeatherDataDto weatherDataDto = new WeatherDataDto();\n weatherDataDto.setServiceName(ServiceName.DARK_SKY);\n weatherDataDto.setName(city);\n weatherDataDto.setCountry(countryCode);\n weatherDataDto.setLatitude(latitude);\n weatherDataDto.setLongitude(longitude);\n\n return weatherDataDto;\n } else {\n return new WeatherDataDto(ServiceName.DARK_SKY, response.getBody());\n }\n }", "@Override\n public ZonedDateTime getZonedDateTime(String zoneString) {\n return null;\n }", "public String getLocationCity() {\n return locationCity;\n }", "public TimeZone() { throw new RuntimeException(\"Stub!\"); }", "private static Zone findSupportedZoneForAnimal(Animal animal) throws Exception\n {\n /**\n * checking every zone that is available in the zoo \n */\n for(Zone zone : Zoo.zonesInZoo.values()){\n if(zone.categoryOfAnimalSupported.equalsIgnoreCase(animal.category) && zone.subcategoryOfAnimalSupported.equalsIgnoreCase(animal.subCategory)){\n return zone;\n }\n }\n /**\n * if no suitable zone found\n */\n throw new Exception(\"Supported zone not found for given animal!!!\");\n }" ]
[ "0.6750941", "0.66984534", "0.64588976", "0.64141417", "0.63672", "0.6301809", "0.6276733", "0.6150724", "0.6113972", "0.61093223", "0.6080405", "0.6062269", "0.60261625", "0.59866863", "0.5938791", "0.59144866", "0.58501047", "0.58225906", "0.579204", "0.5784864", "0.5634262", "0.56019706", "0.5548268", "0.55044246", "0.5460946", "0.54537594", "0.5448145", "0.54265606", "0.5424843", "0.5418653", "0.54159546", "0.5411402", "0.5408425", "0.54073626", "0.5399711", "0.539445", "0.5387285", "0.5368652", "0.5367743", "0.536253", "0.53614473", "0.5360348", "0.5351745", "0.53351295", "0.5319919", "0.53144616", "0.53059053", "0.5304199", "0.52867013", "0.5282585", "0.5278028", "0.5277914", "0.52762586", "0.52648467", "0.5236415", "0.51935536", "0.51884514", "0.5184914", "0.518299", "0.51734143", "0.51654077", "0.5164722", "0.5162642", "0.5161934", "0.51608276", "0.5150285", "0.51371", "0.5136545", "0.5131649", "0.5123434", "0.5123386", "0.51183265", "0.5116086", "0.51000845", "0.508075", "0.5080518", "0.5080404", "0.5076572", "0.5074289", "0.5074289", "0.5054452", "0.5034417", "0.50294065", "0.50291044", "0.50260013", "0.502495", "0.5021433", "0.50139785", "0.50115246", "0.50078315", "0.50029415", "0.49998426", "0.49980527", "0.49803555", "0.49778438", "0.49700692", "0.49665546", "0.4961772", "0.4948719", "0.4947369" ]
0.7766636
0
non static method 1.return type is void
public void test( ){ System.out.println("test method"); //no input, no output }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "void berechneFlaeche() {\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void mo38117a() {\n }", "public void mo115188a() {\n }", "public void method(){}", "@Override\n\tpublic void anular() {\n\n\t}", "public void furyo ()\t{\n }", "public void mo4359a() {\n }", "public void mo6944a() {\n }", "@Override\n public void call(Void aVoid) {\n\n }", "public void mo97908d() {\n }", "public void mo55254a() {\n }", "private void sub() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21825b() {\n }", "public void mo21795T() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void mo21791P() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void mo21793R() {\n }", "private void ss(){\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo21878t() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo44053a() {\n }", "public void mo21794S() {\n }", "public void miseAJour();", "public void mo21782G() {\n }", "private final void i() {\n }", "public void mo21779D() {\n }", "public void mo115190b() {\n }", "public static void t(){\n\n\n }", "static void method1()\r\n {\n }", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public void mo21789N() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public abstract void mo70713b();", "public void mo21877s() {\n }", "public void mo9137b() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "void mo57277b();", "public void mo3376r() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\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 }", "void mo67923b();", "public void m23075a() {\n }", "public void working()\n {\n \n \n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo9848a() {\n }", "public void mo56167c() {\n }", "public void mo21785J() {\n }", "public void sinyal();", "public void mo5248a() {\n }", "public void mo12930a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "void mo88521a();", "void mo84655a();", "public void smell() {\n\t\t\n\t}", "public void mo2471e() {\n }", "public void mo3749d() {\n }", "void mo41083a();", "public void mo21792Q() {\n }", "@Override\n public void memoria() {\n \n }", "void mo67920a();", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public void mo21787L() {\n }", "private stendhal() {\n\t}", "public void mo1531a() {\n }", "public void mo9233aH() {\n }", "void mo54405a();", "public static void hehe(){\n \n }", "public void mo1400a() {\n }", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public void mo21781F() {\n }", "public void mo97906c() {\n }", "@Override\r\n\tpublic void func01() {\n\t\t\r\n\t}", "public void mo9241ay() {\n }", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "public abstract void m15813a();", "public abstract void mo27386d();", "void mo119582b();", "public void mo21786K() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void method_4270() {}", "public void stg() {\n\n\t}" ]
[ "0.71995467", "0.71995467", "0.715561", "0.7148536", "0.701119", "0.70076656", "0.69857234", "0.695496", "0.6942267", "0.69185346", "0.690953", "0.6906319", "0.6905464", "0.6892684", "0.68846077", "0.68683183", "0.6863055", "0.6862594", "0.68614626", "0.68600374", "0.6847897", "0.6841199", "0.6840753", "0.68381214", "0.68365383", "0.6835773", "0.6831046", "0.68195164", "0.68182296", "0.6784502", "0.6770977", "0.6762803", "0.67555314", "0.6750836", "0.6750026", "0.6749063", "0.6738625", "0.672506", "0.6723219", "0.6710071", "0.66986066", "0.6692066", "0.66887486", "0.6687231", "0.6686402", "0.6685554", "0.6678527", "0.6676909", "0.6667912", "0.6667912", "0.6667912", "0.6667912", "0.6667912", "0.6667912", "0.6667912", "0.6663628", "0.6662741", "0.6661532", "0.66614944", "0.6660985", "0.66588575", "0.6655799", "0.66445005", "0.66422343", "0.6636547", "0.6634318", "0.66266793", "0.6616156", "0.6609045", "0.6608974", "0.66077435", "0.6607052", "0.6601536", "0.6600144", "0.66001403", "0.65967476", "0.659425", "0.6590637", "0.6589995", "0.65834284", "0.65794414", "0.6577778", "0.65751976", "0.6574519", "0.65734076", "0.6571936", "0.6568003", "0.6567618", "0.65656865", "0.65585756", "0.65583587", "0.65583587", "0.6548282", "0.65469164", "0.6546809", "0.65457165", "0.65344465", "0.6532005", "0.65317255", "0.65302736", "0.65261096" ]
0.0
-1
2.here void des't return type return type is int method name(value)
public int value(){ // no input , some output System.out.println("value method"); int a = 10; int b = 20; int c = a+b; return c ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int returnInt(int x);", "public int a()\n {\n return 2;\n }", "static int type_of_ret(String passed){\n\t\treturn 1;\n\t}", "int getMethodValue();", "public int intValue();", "protected abstract int getValue(int paramInt);", "public int value();", "public int test1()\n\t{\n\t\treturn 1;\n\t}", "@Override\n\tpublic int javaMethodBaseWithIntRet() {\n\t\treturn 0;\n\t}", "int value(String name);", "public abstract int getValue();", "public abstract int getValue();", "public abstract int getValue();", "int method_113();", "public int foo()\n {\n }", "public abstract int mo12585RY(int i);", "public final int method1(int a){\n return 100;\n }", "public abstract int mo12581RU(int i);", "int intValue();", "static int type_of_call(String passed){\n\t\treturn 1;\n\t}", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "int getValue();", "public int method_51() {\n return 1;\n }", "public abstract int mo123246e();", "public int method_113() {\r\n return 0;\r\n }", "int getIntValue();", "int getResultValue();", "int getResultValue();", "public int getValue() { return 42; }", "static int returnFive() {\r\n return 5;\r\n }", "public int a_(int paramInt)\r\n/* 594: */ {\r\n/* 595:636 */ return 0;\r\n/* 596: */ }", "int provideValue();", "public int methodName (...) {\r\n // method body with a return statement\r\n}", "public static int methodWithoutReturn(){\n throw new Error();\n }", "public abstract int mo4375b();", "public abstract long i();", "public abstract int mo12582RV(int i);", "public int a() {\n return 6;\n }", "public int getFunctionType() {\n/* 60 */ return 4;\n/* */ }", "public abstract Integer mo36212o();", "public abstract int forca();", "int getUnknown1();", "int getUnknown1();", "int getUnknown1();", "int getUnknown1();", "public abstract int code();", "int return0() ;", "public int getValue();", "public int getValue();", "public abstract int mo12575RO(int i);", "public abstract int mo41077c();", "public int setValue (int val);", "public int getValue()\r\n/* 21: */ {\r\n/* 22: 71 */ return this.value;\r\n/* 23: */ }", "@Override\n\tpublic int method1() {\n\t\treturn 20;\n\t}", "public int testmethod1()\n\t{\n\t\treturn 0;\n\t\t\n\t}", "public abstract int mo4307b(int i);", "@Override\r\n\tpublic int getInt(int arg) {\n\t\treturn 0;\r\n\t}", "static int ReturnType(int e, int f) {\n return (e + f); //return statementm\n }", "static int test()\n\t{\n\n\t\treturn 20;\n\t}", "public abstract int a();", "public int Check(){\n return 6;\n }", "public abstract int mo123247f();", "public abstract int mo9797a();", "int method20()\n {\n return 579190;\n }", "public abstract int mo9732a();", "public int Return() {\n\t\tSystem.out.println(\"Return method will return an integer Value :\");\n\t\tint a =10;\n\t\tint b = 20;\n\t\tint c = a+b;\n\t\t\n\t\treturn c;\n\t}", "public int obtenirVie();", "public abstract int mo9747l();", "public void mo3350a(int i) {\n }", "int v(T item);", "public int withreturn (){\n int num1 = 555;\n return num1;\n //\n }", "int getNum1();", "@Override \n\tpublic String visitMethod(MethodContext ctx){\n\t\ttable.enterScope();\n\t\tString declaredRetType=visit(ctx.getChild(0));\n\t\tvisit(ctx.getChild(7));\t\t\n\t\tString retType=visit(ctx.getChild(8));\n\t\tif(!declaredRetType.equals(retType))throw new RuntimeException(\"Method must return \"+ declaredRetType);\n\t\ttable.exitScope();\n\t\treturn declaredRetType;\n\t}", "public int x()\r\n {\r\n return x;\r\n }", "public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }", "public abstract Code vreturn();", "public int result() {\n return 0;\n }", "public int getInt(String name)\n/* */ {\n/* 908 */ return getInt(name, 0);\n/* */ }", "int getResult();", "public abstract void mo102900a(int i, int i2);", "void method_115();", "public abstract int mo123248g();", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "public int getInt();", "public abstract int mo12578RR(int i);", "public abstract void mo9733a(int i);", "static int type_of_out(String passed){\n\t\treturn 1;\n\t}", "public int getResult(){\r\n\t\t return result;\r\n\t }", "int intOf();", "public abstract int mo9754s();", "public abstract int mo13680b();", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public abstract int mo12579RS(int i);", "public int x()\n {\n return x;\n }", "public abstract int c();", "public abstract int c();", "public abstract int mo9749n();", "public abstract int mo9753r();" ]
[ "0.6935009", "0.6858754", "0.66562825", "0.6614192", "0.661159", "0.6568024", "0.6549974", "0.65367573", "0.65359694", "0.6485062", "0.6484588", "0.6484588", "0.6484588", "0.64782244", "0.6474884", "0.64692897", "0.6455515", "0.6448876", "0.6438026", "0.64296204", "0.6427706", "0.6427706", "0.6427706", "0.6427706", "0.6427706", "0.6423131", "0.6422014", "0.6403309", "0.637345", "0.636445", "0.636445", "0.6364022", "0.635237", "0.63334465", "0.6308812", "0.62989765", "0.6292949", "0.6290169", "0.62853855", "0.62831527", "0.62516564", "0.6247719", "0.6247469", "0.6243278", "0.6239358", "0.6239358", "0.6239358", "0.6239358", "0.6235948", "0.62047297", "0.62046814", "0.62046814", "0.62031615", "0.6202466", "0.61968184", "0.6195193", "0.61888546", "0.6188602", "0.6166008", "0.6137241", "0.6136598", "0.6129035", "0.61182755", "0.611751", "0.6115514", "0.6097816", "0.60913455", "0.6085245", "0.60657704", "0.60655147", "0.6053409", "0.60465604", "0.6030505", "0.60298616", "0.6023018", "0.60206187", "0.6007901", "0.6006177", "0.5990445", "0.5988469", "0.59876126", "0.5982456", "0.5978106", "0.59755164", "0.5967829", "0.5959616", "0.5954918", "0.59539396", "0.5950595", "0.5950074", "0.5936476", "0.59358346", "0.5931426", "0.5927476", "0.5924765", "0.59246373", "0.59228235", "0.59221977", "0.59221977", "0.59214", "0.5920385" ]
0.0
-1
return type is String
public String text(){ // no input , some output System.out.println("text method"); String s = "selenium"; return s ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getString();", "String getString();", "String getString();", "public String asString();", "public String getString();", "String getTypeAsString();", "String getStringValue();", "String getStringValue();", "public abstract String getString();", "public abstract String getString();", "@Override\n public StringType asString() {\n return TypeFactory.getStringType(this.getValue());\n }", "@java.lang.Override\n public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String asString();", "java.lang.String getStringValue();", "java.lang.String getStringValue();", "String value();", "String value();", "String getEString();", "public String getStringValue();", "String asString ();", "public String string() {\n\treturn string;\n }", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "boolean getString();", "public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\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 (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n }\n }", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public static String stringType(Obj type) {\n\t\tString str = ObjStr.get(type);\n\t\t\treturn str != null ? str : \"\";\n\t}", "String getString_lit();", "String getValueAsString();", "String getStringClass();", "public String type();", "org.hl7.fhir.String getValueString();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public String getReturnType() {\n Object ref = returnType_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n returnType_ = s;\n return s;\n }\n }", "String string() {\n return _charsString;\n }", "public String getString() {\n\t\treturn \"T\";\n\t}", "public String getString() {\r\n\t\tString s = value.getString();\r\n\t\t// System.out.println(\"Getting string of: \" + s);\r\n\t\tif (s == null)\r\n\t\t\treturn (s);\r\n\t\treturn (substitution(s));\r\n\t}", "public String getTypeString() {\r\n return Prediction.getTypeString(type);\r\n }", "private String getString() {\n\t\treturn null;\n\t}", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "public String convert()\r\n\t{\r\n\t\treturn str;\r\n\t}", "public String getString() {\n\t\treturn renderResult(this._result).trim();\n\t}", "@Override\n\tpublic String getString() {\n\t\treturn value;\n\t}", "public String getReturnType() {\n Object ref = returnType_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n returnType_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }" ]
[ "0.7749604", "0.7749604", "0.7749604", "0.77062136", "0.76669776", "0.7305559", "0.7302393", "0.7302393", "0.7287804", "0.7287804", "0.7258937", "0.7234671", "0.7182717", "0.717542", "0.717542", "0.71523696", "0.71523696", "0.71135503", "0.7101139", "0.7093752", "0.70641077", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70524395", "0.70140034", "0.6949969", "0.69455796", "0.69455796", "0.69455796", "0.69455796", "0.69455796", "0.69455796", "0.69455796", "0.69455796", "0.69455796", "0.69455796", "0.69455796", "0.69455796", "0.69455796", "0.6917115", "0.6903847", "0.68661624", "0.6836586", "0.6820428", "0.6808415", "0.68045294", "0.6782877", "0.67827046", "0.67684805", "0.6766049", "0.67583925", "0.6728092", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6725752", "0.6722609", "0.6688785", "0.66737807", "0.6671176" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view=inflater.inflate(R.layout.fragment_init, container, false); bt_connect = (Button) view.findViewById(R.id.server_Connect); bt_connect.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { // connect server connector.execute("get",Consts.SERVER_IP); Toast.makeText(getContext(),"connect Server is successed",Toast.LENGTH_SHORT); } }); bt_start = (Button) view.findViewById(R.id.moudle_start); bt_start.setOnClickListener(this); bt_stop = (Button) view.findViewById(R.id.moudle_stop); bt_stop.setOnClickListener(this); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
get current movie and load new intent with its details
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { MovieWithDetails movie = movies.get((NUM_ITEMS_PER_PAGE * increment) + position); Intent singleMovie = new Intent(ListViewActivity.this, SingleMovieActivity.class); singleMovie.putExtra("title", movie.getMovie().getTitle()); singleMovie.putExtra("year", String.valueOf(movie.getMovie().getYear())); singleMovie.putExtra("director", movie.getMovie().getDirector()); ArrayList<String> genres = new ArrayList<>(); ArrayList<String> stars = new ArrayList<>(); for (Genre g : movie.getGenres()) { genres.add(g.getName()); } for (Star s : movie.getStars()) { stars.add(s.getName()); } singleMovie.putStringArrayListExtra("genres", genres); singleMovie.putStringArrayListExtra("stars", stars); startActivity(singleMovie); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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 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 }", "private void getMoviesData() {\n movieId = getIntent().getIntExtra(MOVIE_ID, 0);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_details);\n\n Intent intent = getIntent();\n Uri data = intent.getData();\n String key = intent.getStringExtra(SearchManager.EXTRA_DATA_KEY);\n if (data != null && key != null) {\n\n if (data.toString().equals(\"homeview://plex/playback\")) {\n\n Intent next = new Intent(this, PlaybackActivity.class);\n next.setAction(PlaybackActivity.ACTION_VIEW);\n next.putExtra(PlaybackActivity.KEY, key);\n PlexVideoItem vid = intent.getParcelableExtra(PlaybackActivity.VIDEO);\n if (vid != null)\n next.putExtra(PlaybackActivity.VIDEO, vid);\n startActivity(next);\n }\n }\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(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 }", "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 }", "private void setMovie() {\n Movie movie = getIntent().getExtras().getParcelable(MOVIE);\n Glide.with(mMoviePoster).setDefaultRequestOptions(new RequestOptions().diskCacheStrategy(DiskCacheStrategy.ALL)).load(BuildConfig.IMG_DIR + movie.getPosterPath())\n .into(mMoviePoster);\n setTitle(movie.getTitle());\n mMovieTitle.setText(movie.getTitle());\n mMovieRating.setText(String.valueOf(movie.getVoteAverage()));\n mMovieDate.setText(movie.getReleaseDate());\n mMovieGenre.setText(movie.isAdult() ? getString(R.string.genre_type_adults) : getString(R.string.genre_type_all));\n mMovieDesc.setText(movie.getOverview());\n }", "void onLoadMovie(Movie movie);", "@Override\n public void onMovieClick(Movie movie, ImageView movieImageView) {\n\n Toast.makeText(this, \"item clicked: \" + movie.getTitle(), Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(MainActivity.this, MovieDetailActivity.class);\n intent.putExtra(\"imgURL\", movie.getThumnail());\n intent.putExtra(\"title\", movie.getTitle());\n intent.putExtra(\"imgCover\", movie.getCoverPhoto());\n //startActivity(intent);\n\n //tao animation\n ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(MainActivity.this,\n movieImageView, \"shareName\");\n startActivity(intent, options.toBundle());\n }", "@Override\n public void onClick(Movie movieThatWasClicked) {\n // create an Intent to start a new Activity\n Intent openMovieDetailsActivity = new Intent(this, MovieDetailsActivity.class);\n // pass additional data to the Intent - in this case - the selected Movie object\n openMovieDetailsActivity.putExtra(Movie.MOVIE_OBJECT, movieThatWasClicked);\n // start the new Activity\n startActivity(openMovieDetailsActivity);\n }", "private boolean setMovieFromIntent() {\n Intent intent = getIntent();\n boolean movieChanged = false;\n if (intent != null) {\n movieChanged = setMovie((Movie) intent.getParcelableExtra(MovieData.EXTRA_MOVIE));\n }\n return movieChanged;\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\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 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 }", "private void switchToSingleRatingActivity(int position){\n\n Intent s_ratingIntent = new Intent(this,SingleRatingActivity.class);\n\n Log.d(TAG, moviesAPI_list.get(position).getId());\n Log.d(TAG, moviesAPI_list.get(position).getImgUrl());\n\n s_ratingIntent.putExtra(EXTRA_MOVIE_ID,moviesAPI_list.get(position).getId());\n s_ratingIntent.putExtra(EXTRA_MOVIE_IMG,moviesAPI_list.get(position).getImgUrl());\n\n startActivity(s_ratingIntent);\n\n\n }", "@Override\n public void onMovieClicked(Movie movie, MovieHolder holder) {\n if (!mIsOpeningDetails) {\n mIsOpeningDetails = true;\n MovieDetailActivity.start(getActivity(), movie, holder.getPosterView());\n }\n }", "private void startMovieDownload() {\n String sortOrder = AppPrefs.getInstance(this).getLastSortOrder();\n if (null == sortOrder) {\n sortOrder = SortBy.getDefaultSortOrder();\n }\n downloadData(sortOrder);\n }", "private void startARActivity()\n {\n Intent itent = new Intent();\n \n itent.setClassName(\"com.qualcomm.vuforia.samples.VideoPlayback.app.\", \"VideoPlayback\");\n \n startActivity(itent);\n }", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n if(data != null) {\n data.moveToFirst();\n }\n //Get data to add to data object to send to Detail Activity\n movie.setOriginal_title(data.getString(MOVIE_TITLE));\n movie.setRelease_date(data.getString(MOVIE_DATE));\n movie.setOverview(data.getString(MOVIE_OVERVIEW));\n movie.setPoster_path(data.getString(POSTER_PATH));\n movie.setVote_average(data.getString(RATING));\n data.close();\n\n //Start intent to show detail activity\n Intent intent = new Intent(this, DetailActivity.class);\n intent.putExtra(\"MOVIE_SELECTED\", movie);\n intent.putExtra(\"STAYING_IN\", true);\n startActivity(intent);\n\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 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 }", "public void loadAnnotation(View view) {\n Intent startNewActivity;\n if(option.equals(\"Book\")){\n startNewActivity = new Intent(this, bookActivity.class);\n }\n else if(option.equals(\"Journal\")){\n startNewActivity = new Intent(this, journalActivity.class);\n }\n else{\n startNewActivity = new Intent(this, videoActivity.class);\n }\n startNewActivity.putExtra(\"Format\", format);\n startNewActivity.putExtra(\"Type\", type);\n //Once Intent is determined, load activity\n startActivity(startNewActivity);\n\n }", "public void onItemSelected(Uri movieUri);", "@Override\n public void onClick(View v){\n Log.d(\"Hit\", \"Clicked\" + mCurrentMovie.getTitle());\n Context mContext = v.getContext();\n navigateToDetailActivity(mContext);\n\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 }", "private void fetchMovieDetails() {\n Stream.of(movieListings).forEach(movieListing -> {\n Picasso.with(MoviesApplication.getApp()).load(movieListing.getPosterUrl()).fetch();\n MoviesApplication.getApp().getApiManager().getEndpoints().getMovieDetails(movieListing.getId()).enqueue(movieDetailCallback);\n MoviesApplication.getApp().getApiManager().getEndpoints().getMovieVideos(movieListing.getId()).enqueue(movieVideoCallback);\n MoviesApplication.getApp().getApiManager().getEndpoints().getMovieReviews(movieListing.getId()).enqueue(movieReviewCallback);\n });\n }", "public MutableLiveData<Movie> getMovieDetails(Movie movie) {\n final MutableLiveData<Movie> movieDetails = new MutableLiveData<>();\n Api.ApiInterface api = Api.getApi();\n String movieId = String.valueOf(movie.getId());\n String apiKey = Api.getApiKey();\n\n sAppExecutors.networkIO().execute(() -> {\n try {\n movie.setReviews(api.fetchReviews(movieId, apiKey).execute().body().getReviews());\n movie.setVideos(api.fetchVideos(movieId, apiKey).execute().body().getVideos());\n movieDetails.postValue(movie);\n } catch (IOException e) {\n movieDetails.postValue(null);\n e.printStackTrace();\n }\n });\n return movieDetails;\n }", "public static Intent createIntent(Activity activity, final MovieData movieData) {\n Intent i = new Intent(activity, DetailActivity.class);\n i.putExtra(DetailActivity.MOVIE_DATA_KEY, movieData);\n return i;\n }", "private void updateDetails(Intent intent) {\n title = intent.getStringExtra(\"title\");\n overView = intent.getStringExtra(\"overview\");\n date = intent.getStringExtra(\"date\");\n rating = intent.getStringExtra(\"rating\");\n String image = intent.getStringExtra(\"image\");\n String id = intent.getStringExtra(\"id\");\n mid = id;\n\n Log.i(\"MovieDetailActivity-output\", title);\n Log.i(\"MovieDetailActivity-output\", overView);\n Log.i(\"MovieDetailActivity-output\", date);\n Log.i(\"MovieDetailActivity-output\", rating);\n Log.i(\"MovieDetailActivity-output\", image);\n Log.i(\"MovieDetailActivity-output\", id);\n\n TextView titleTextView = findViewById(R.id.title);\n TextView dateTextView = findViewById(R.id.date);\n TextView ratingTextView = findViewById(R.id.rating);\n TextView overViewTextView = findViewById(R.id.overView);\n ImageView imageView = findViewById(R.id.image);\n titleTextView.setText(title);\n dateTextView.setText(\"Release Date:\" + date);\n ratingTextView.setText(\"Rating: \" + rating);\n overViewTextView.setText(overView);\n\n Picasso.get().load(image).placeholder(R.drawable.load5).into(imageView);\n\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 }", "@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 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 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 }", "private void setupChosenActivity() {\n String activity = Utils.capitalise(Sport.values()[0].toString());\n Intent intent = getIntent();\n\n if (intent.hasExtra(ACTIVITY_TO_RECORD)) {\n activity = Utils.capitalise(intent.getStringExtra(ACTIVITY_TO_RECORD));\n }\n\n activityView.setText(activity);\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 }", "Movie getMovieById(final int movieId);", "@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 }", "public Movie getMovie(int id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(TABLE_MOVIE, new String[]{KEY_ID,\n KEY_NAME, KEY_DESC, KEY_VOTE_AVG, KEY_RELEASE_DATE, KEY_ADULT, KEY_POSTER_PATH, KEY_BACKDROP_PATH}, KEY_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n if (cursor != null)\n cursor.moveToFirst();\n\n Movie movie = new Movie(cursor.getColumnName(1),\n cursor.getString(3), cursor.getString(4),cursor.getString(2),cursor.getString(6),cursor.getString(7),cursor.getString(5),cursor.getString(0));\n\n return movie;\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 }", "private void openMovieTheaterSelectionActivity(String clientID) {\n\n Intent intent = new Intent(this, MovieTheaterSelectionActivity.class);\n\n intent.putExtra(\"clientID\", clientID);\n\n startActivity(intent);\n\n }", "@Override\r\n\tprotected void onNewIntent(Intent intent) {\n\t\tUtils.printLog(TAG, \"onNewIntent\");\r\n\t\tif (!getPlayList(intent)) {\r\n\t\t\texitPlayforNoPlayList();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (mVideoContrl != null && mVideoContrl.isFinishInit()) {\r\n\t\t\tmVideoContrl.setFinishInit(false);\r\n\t\t\tisOnNewIntent = true;\r\n\t\t\tmVideoContrl.releaseMediaPlayer();\r\n\t\t}\r\n\t\tsuper.onNewIntent(intent);\r\n\t\tUtils.printLog(TAG, \"onNewIntent end\");\r\n\t}", "private void populateListView() {\n ((MovieAdapter)((HeaderViewListAdapter)myListView.getAdapter()).getWrappedAdapter()).notifyDataSetChanged();\n\n // Check if the user selected a specific movie and start a new activity with only that movie's information.\n myListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Movie selectedMovie = movies.get(position);\n\n Intent intent = new Intent(MovieListActivity.this, MovieOverviewActivity.class);\n intent.putExtra(TITLE_KEY, selectedMovie.getTitle());\n intent.putExtra(RELEASE_DATE_KEY, selectedMovie.getReleaseDate());\n intent.putExtra(RATING_KEY, selectedMovie.getRating());\n intent.putExtra(OVERVIEW_KEY, selectedMovie.getOverview());\n intent.putExtra(POSTER_PATH_KEY, selectedMovie.getPosterURL());\n startActivity(intent);\n }\n });\n }", "public void loadMedia(Intent intent) {\n mediaLoader.handleIntent(intent, uiView);\n }", "public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n try {\n JSONObject temp_items = items.getJSONObject(position);\n String ida = temp_items.getJSONObject(\"snippet\").getJSONObject(\"resourceId\").getString(\"videoId\");\n// MainActivity.setYoutubeVideo(ida);\n// getActivity().getActionBar().hide();\n Intent intent = new Intent(MainActivity.getAppContext(), YoutubeActivity.class);\n Bundle extras = new Bundle();\n extras.putString(\"vidid\", ida);\n Log.d(\"A\", position + \"\");\n intent.putExtras(extras);\n startActivity(intent);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "private Movie getMovie() {\n Gson gson = new Gson();\n return gson.fromJson(result, Movie.class);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n \tsuper.onCreate(savedInstanceState);\n \tsetContentView(R.layout.video_info);\n \t\n \tBundle extras = getIntent().getExtras();\n \tfinal Integer pos = extras.getInt(\"video_pos\", 0);\n \t\n \t\n \tswitch (pos) {\n \t\tcase 0: \n \t\t\ttitle = \"Title\";//(String) getResources().getText(R.string.v1_title);\n \t\t\tdescription = \"Description\";// (String) getResources().getText(R.string.v1_description);\n \t\t\turl = \"URL\";//(String) getResources().getText(R.string.v1_url);\n \t\t\thash = \"\";//(String) getResources().getText(R.string.v1_hash);\n \t\t\ttracker = \"\";//(String) getResources().getText(R.string.v1_tracker);\n \t\t\tdestination = \"\";// (String) getResources().getText(R.string.v1_destination);\n\n \t}\n \t\n \tTextView t = (TextView) findViewById(R.id.title);\n \tt.setText(title);\n \tt = (TextView) findViewById(R.id.description);\n \tt.setText(description);\n\n \tButton b_play = (Button) findViewById(R.id.b_play);\n \t \n \tb_play.setOnClickListener(new OnClickListener() {\n \t public void onClick(View view) {\n \t \tIntent intent = new Intent(getBaseContext(), VideoPlayerActivity.class);\n \t \tintent.putExtra(\"hash\", hash);\n \t \tintent.putExtra(\"tracker\", tracker);\n \t \tintent.putExtra(\"destination\", destination);\n \t \tstartActivity(intent);\n \t }\n \t});\n \t\n \tButton b_web_info = (Button) findViewById(R.id.b_web_info);\n \t \t \n \tb_web_info.setOnClickListener(new OnClickListener() {\n \t public void onClick(View view) {\n \t \t//Start video\n \t \tIntent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n \t \tstartActivity(intent);\n \t }\n \t});\n }", "@Override\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\n\t\tToast.makeText(MainActivity.this, \"player\", Toast.LENGTH_SHORT).show();\n\t}", "@Override\n\tpublic void onRecyclerViewItemClick(int position) {\n\t\tTopRatedMovieResults topRatedMovieResults = adapter.getItem(position);\n\t\tIntent in = new Intent(MainActivity.this, MovieDetailView.class);\n\t\tin.putExtra(\"movieId\", topRatedMovieResults.getId());\n\t\tstartActivity(in);\n\t}", "@Nullable\n Movie get(Context context, @NonNull String key) {\n return new PersistentCache<Movie>(context).get(key, Movie.class);\n }", "void startNewActivity(Intent intent);", "private void loadMovies() {\n try {\n SharedPreferences prefs = getActivity().getSharedPreferences(\n PREFS_NAME, 0);\n if (prefs.contains(SP_FEED)) {\n\n JSONObject jsonObject = new JSONObject(prefs.getString(SP_FEED,\n \"\"));\n\n JSONArray jsonMovieArray;\n jsonMovieArray = (JSONArray) ((JSONObject) jsonObject\n .get(\"feed\")).get(\"entry\");\n\n if (jsonMovieArray != null) {\n int len = jsonMovieArray.length();\n for (int i = 0; i < len; i++) {\n JSONObject jsonMovie = (JSONObject) jsonMovieArray\n .get(i);\n mList.add(new Movie(jsonMovie));\n }\n }\n }\n\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n // Update adapter\n mArrayAdapter.notifyDataSetChanged();\n }", "public void fetchVideo(View view) {\n Log.i(\"progress\", \"fetchVideo\");\n\n startActivityForResult(requestVideoFileIntent,0);\n }", "public void tabletMovieSelected(MovieItem movie){\n //check if movie item is null\n if(movie != null){\n //save movie item to buffer\n mMovie = movie;\n\n //check local buffer if movie is a user favorite, set user favorite status\n mMovie.setFavorite(mMovieStaff.alreadyFavorite(mMovie.getTMDBId()));\n\n //check if movie item has detailed movie data\n if(mMovie.getCast() == null || mMovie.getCast().size() == 0){\n //data is incomplete, start AsyncTask to request movie data\n mInfoButler.requestMovieInfo(mMovie.getTMDBId());\n }\n }\n else{\n //show movie item\n showMovieInfo(mMovie);\n }\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\t setContentView(R.layout.demo_layout);\n\t\t mVideoPath = getIntent().getStringExtra(\"videopath\"); \n\t\t\n\t\t \n\t\t \n\t \n\t\t mListView=(ListView)findViewById(R.id.id_demo_list);\n\t\t mListView.setAdapter(new SoftApAdapter(CommonDemoActivity.this));\n\t\t \n\t\t mListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(position==0){\n\t\t\t\t\t\tstartMediaInfoActivity();\n\t\t\t\t}else {\n\t\t\t\t\t\tstartActivity(position);\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\n\t\tString activityName = \"com.sonyericsson.media.infinite.EXTRA_ACTIVITY_NAME\";\n\n\t\tif (intent.getStringExtra(activityName) != null && intent.getStringExtra(activityName).equals(MusicPreferenceActivity.class.getName())) {\n\n\t\t\tBundle extras = new Bundle();\n\n\t\t\t// Build a URI for the string resource for the description text\n\t\t\tString description = new Uri.Builder().scheme(ContentResolver.SCHEME_ANDROID_RESOURCE).authority(context.getPackageName()).appendPath(Integer.toString(R.string.description)).build()\n\t\t\t\t\t.toString();\n\n\t\t\t// And return it to the infinite framework as an extra\n\t\t\textras.putString(\"com.sonyericsson.media.infinite.EXTRA_DESCRIPTION\", description);\n\t\t\tsetResultExtras(extras);\n\n\t\t}\n\t}", "public void openAutoPlayScreen(final AppCMSVideoPageBinder binder, Action1<Object> action1) {\n String url = null;\n binder.setCurrentMovieName(binder.getContentData().getGist().getTitle());\n if (!binder.isOffline()) {\n final String filmId =\n binder.getRelateVideoIds().get(binder.getCurrentPlayingVideoIndex() + 1);\n if (currentActivity != null &&\n !loadingPage && appCMSMain != null &&\n !TextUtils.isEmpty(appCMSMain.getApiBaseUrl()) &&\n !TextUtils.isEmpty(appCMSSite.getGist().getSiteInternalName())) {\n url = currentActivity.getString(R.string.app_cms_video_detail_api_url,\n appCMSMain.getApiBaseUrl(),\n filmId,\n appCMSSite.getGist().getSiteInternalName());\n }\n } else {\n ContentDatum contentDatum = realmController.getDownloadById(\n binder.getRelateVideoIds().get(\n binder.getCurrentPlayingVideoIndex() + 1))\n .convertToContentDatum(getLoggedInUser());\n binder.setCurrentPlayingVideoIndex(binder.getCurrentPlayingVideoIndex() + 1);\n binder.setContentData(contentDatum);\n }\n String pageId = getAutoplayPageId();\n if (!TextUtils.isEmpty(pageId)) {\n navigateToAutoplayPage(pageId,\n currentActivity.getString(R.string.app_cms_page_autoplay_key),\n url,\n binder,\n action1);\n } else {\n //Log.e(TAG, \"Can't find autoplay page ui in pageIdToPageNameMap\");\n }\n }", "private void launchLocal(String name) {\n Intent loc = new Intent(homeActivity.this, cardsMenu.class);\n Bundle b = new Bundle();\n b.putString(\"key\",\"local\"); //pass along that this will be a single player multigame\n b.putString(\"name\",name); //pass the player's name\n // b.putString(\"State\", State); //pass along the game type\n loc.putExtras(b);\n startActivity(loc);\n\n }", "MovieVideo getMovieVideoByVideoid(String videoid);", "private void loadJsonAcitivty() {\n\n // log the event\n Log.i(this.getClass().getSimpleName(), \"changing activity to JSON list activity\");\n\n // start new intent to change activity to JSON list activity\n Intent intent = new Intent(this, JsonListActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n // Create a new intent\n Intent new_release_intent = new Intent(VietPopActivity.this, MainActivity.class);\n new_release_intent.putExtra(\"uniqueid\",\"from_viet\");\n // Start the new activity\n startActivity(new_release_intent);\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent intent = new Intent(mContext, ChangeClarityActivity.class);\n\t\t\t\t\tintent.putExtra(ChangeClarityActivity.VIDEOPATH, videoPath);\n\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t}", "private void updateMovieData() {\n fetchMoviesDataTask = new FetchMoviesDataTask(this);\n fetchMoviesDataTask.execute(sortOrder);//get short method param using DefaultSharedPrefs\n }", "protected void loadNextActivity() {\n\t\tIntent intent = new Intent(this, nextActivityClass);\n\t\tstartActivity(intent);\n\t}", "public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }", "public void movieEvent(Movie m) {\n m.read();\n}", "private void getVideo() {\n // create the url\n String temp = movie.getId().toString();\n String url = API_BASE_URL+\"/movie/\"+temp+\"/videos\";\n // set the request parameters\n RequestParams params = new RequestParams();\n params.put(API_KEY_PARAM, getString(R.string.api_key)); // Always needs API key\n // request a GET response expecting a JSON object response\n\n client.get(url,params, new JsonHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n // load the results into movies list\n\n try {\n JSONArray results = response.getJSONArray(\"results\");\n JSONObject curMovie = results.getJSONObject(0);\n key = curMovie.getString(\"key\");\n\n } catch (JSONException e) {\n logError(\"Failed to parse play_video endpoint\", e, true);\n }\n\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n logError(\"Failed to get data from Now_playing endpoint\", throwable, true);\n }\n });\n\n }", "public Movie getMovie() {\r\n\t\treturn movie;\r\n\t}", "@Override\r\n public void onClick(View v) {\n String path = \"http://techslides.com/demos/sample-videos/small.mp4\";\r\n// Uri uri=Uri.parse(path);\r\n// videoView.setVideoURI(uri);\r\n //MediaController mc = new MediaController(TransformDetailActivity.this);\r\n\r\n //videoView.start();\r\n// videoView.setOnTouchListener(new View.OnTouchListener() {\r\n// @Override\r\n// public boolean onTouch(View v, MotionEvent event) {\r\n// System.out.print(videoView.isPlaying());\r\n// if(videoView.isPlaying()) {\r\n// stopPosition[0] = videoView.getCurrentPosition();\r\n// videoView.pause();\r\n// } else {\r\n// videoView.seekTo(stopPosition[0]);\r\n// videoView.start();\r\n// }\r\n// return false;\r\n// }\r\n// });\r\n// String path = \"android.resource://\" + getPackageName() + \"/\" + R.raw.welcome;\r\n// Uri videoUri = Uri.parse(path);\r\n// Intent intent = new Intent(Intent.ACTION_VIEW, videoUri);\r\n// intent.setDataAndType(videoUri, \"video/*\");\r\n// startActivity(intent);\r\n\r\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(path));\r\n intent.setDataAndType(Uri.parse(path), \"video/mp4\");\r\n startActivity(intent);\r\n }", "void mo21580A(Intent intent);", "public static void openVideoDetail(Activity activity, View sharedView, VideoModel videoModel) {\n sharedView = sharedView.findViewById(R.id.itemThumbnailView);\n Intent intent = new Intent(activity, DetailActivity.class);\n intent.putExtra(DetailActivity.ARG_DATA, videoModel);\n View navigationBar = activity.findViewById(android.R.id.navigationBarBackground);\n View statusBar = activity.findViewById(android.R.id.statusBarBackground);\n List<Pair<View, String>> pairs = new ArrayList<>();\n if (statusBar != null) {\n pairs.add(Pair.create(statusBar, Window.STATUS_BAR_BACKGROUND_TRANSITION_NAME));\n }\n if (navigationBar != null) {\n pairs.add(Pair.create(navigationBar, Window.NAVIGATION_BAR_BACKGROUND_TRANSITION_NAME));\n }\n pairs.add(Pair.create(sharedView, DetailFragment.SHARED_IMAGE_KEY));\n\n Bundle bundle = ActivityOptions.makeSceneTransitionAnimation(activity, pairs.toArray(new Pair[pairs.size()])).toBundle();\n activity.startActivity(intent, bundle);\n }", "public void onMovieClicked(int movieType, int position){\n //get the movie item from the local buffer\n mMovie = mMovieStaff.getMovie(movieType, position);\n\n //check local buffer if movie is a user favorite, set user favorite status\n mMovie.setFavorite(mMovieStaff.alreadyFavorite(mMovie.getTMDBId()));\n\n //check if movie item has detailed movie data\n if(mMovie.getCast() == null || mMovie.getCast().size() == 0){\n //data is incomplete, start AsyncTask to request movie data\n mInfoButler.requestMovieInfo(mMovie.getTMDBId());\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Log.d(\"url-clicked\",fileu.get(position));\n // mediaPlayer.setDataSource(fileu.get(position));\n Intent i= new Intent(homepage.this,Playeractivity.class);//create an isntent for the player activity class\n i.putExtra(\"FILE_URL\",user.Lecture);//pass the lecture url to the next activity\n startActivity(i);//start the new activity\n //Intent i = new Intent(getActivity(), DiscussAddValu.class);\n // startActivity(i);\n }", "public void onCreate(Bundle savedInstanceState)\r\n\t{\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.filme_info);\r\n\t\t\r\n\t\tpb = (ProgressBar) findViewById(R.id.progress_bar_big_image);\r\n\t\tpb.setVisibility(View.GONE);\r\n\t\tBundle bundle = getIntent().getExtras();\r\n\t\t\r\n\t\tmovie = new DayMovie();\r\n\t\tmovie.getMovie().setLocalName(bundle.getString(\"pt\"));\r\n\t\tmovie.getMovie().setImageBigUrl(bundle.getString(\"imagem\"));\r\n\t\tmovie.getMovie().setOriginalName(bundle.getString(\"original\"));\r\n\t\tmovie.getMovie().setDescription(bundle.getString(\"descricao\"));\r\n\t\tmovie.getMovie().setDirector(bundle.getString(\"realizador\"));\r\n\t\tmovie.getMovie().setYear(bundle.getInt(\"year\"));\r\n\t\tNumiCal calInit = new NumiCal();\r\n\t\tcalInit.setTimeInMillis(bundle.getLong(\"init\"));\r\n\t\tNumiCal calEnd = new NumiCal();\r\n\t\tcalEnd.setTimeInMillis(bundle.getLong(\"fim\"));\r\n\t\tmovie.getDay().setStart(calInit);\r\n\t\tmovie.getDay().setEnd(calEnd);\r\n\r\n\t\tTextView agendaFilmeTv = (TextView)findViewById(R.id.agenda_filme_textView);\r\n\t\tagendaFilmeTv.setText(getString(R.string.das) + \" \" + movie.getDay().getStart().toString(\"kk:mm\") \r\n\t\t\t\t+ \" \" + getString(R.string.as) + \" \" + movie.getDay().getEnd().toString(\"kk:mm\"));\r\n\t\tnomeOriginalTV = (TextView)findViewById(R.id.filme_info_titulo_original_textView);\r\n\t\tnomeOriginalTV.setText(movie.getMovie().getOriginalName());\r\n\t\tTextView nomePtTV = (TextView)findViewById(R.id.filme_info_titulo_en_textView);\r\n\t\tnomePtTV.setText(movie.getMovie().getLocalName());\r\n\t\trealizadorTv = (TextView)findViewById(R.id.filme_realizador_textView);\r\n\t\trealizadorTv.setText(getString(R.string.realizador) + movie.getMovie().getDirector());\r\n\t\tTextView anoTv = (TextView)findViewById(R.id.filme_ano_textView);\r\n\t\tanoTv.setText(\"Ano: \" + movie.getMovie().getYear());\r\n\t\t\r\n\t\tduracaoTv = (TextView)findViewById(R.id.filme_duracao_textView);\r\n\t\tduracaoTv.setText(getString(R.string.duracao) + movie.getDurationInMinutes() + \" min\");\r\n\t\tdescricaoTv = (TextView)findViewById(R.id.filme_info_descricao_textView);\r\n\t\tif(movie.getMovie().getDescription() != null && movie.getMovie().getDescription().length() != 0) {\r\n\t\t\tdescricaoTv.setText(movie.getMovie().getDescription());\r\n\t\t} else {\r\n\t\t\tdescricaoTv.setText(\"Não há descrição possível. Provavelmente guardou o filme sem \" +\r\n\t\t\t\t\t\"internet.\");\r\n\t\t}\r\n\t\thorarioTv = (TextView)findViewById(R.id.filme_horario_textView);\r\n\t\thorarioTv.setText(bundle.getString(\"horario\"));\r\n\t\tif(movie.getMovie().getImageBigUrl() != null) {\r\n\t\t\tfilmeImagem = (ImageView)findViewById(R.id.imagem_filme);\r\n\t\t\tfilmeImagem.setScaleType(ScaleType.FIT_XY);\r\n\t\t\tDrawableManager dm = new DrawableManager();\r\n\t\t\tdm.fetchDrawableOnThread(movie.getMovie().getImageBigUrl(), filmeImagem,\r\n\t\t\t\t\tGuiaHollywoodActivity.userPreferences.isConnectedAndImageLoad());\r\n\t\t}\r\n\t}", "@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 }", "private void fetchMovieData(String qParam) {\n String apiKey = getString(R.string.myApiKey);\n URL movieQueryUrl = Queries.buildMovieUrl(qParam, apiKey);\n AsyncMovieCall am = new AsyncMovieCall(this, new FetchMyDataTaskCompleteListener());\n am.execute(movieQueryUrl);\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=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\n Bundle bundle = new Bundle();\n bundle.putString(\"movie_id\",\"\"+results.getId());\n Navigation.findNavController(view).navigate(R.id.action_popularFragment_to_movieDetailFragment,bundle);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n gridview = (GridView) findViewById(R.id.gridview);\n errorTextView = (TextView) findViewById(R.id.error_text);\n loadingIndicator = (ProgressBar) findViewById(R.id.loading_indicator);\n gridData = new ArrayList<>();\n mAdapter = new MovieAdapter(this, 0, gridData);\n gridview.setAdapter(mAdapter);\n\n if(savedInstanceState == null){\n requestMoviesBy(\"popular\");\n } else {\n gridData = savedInstanceState.getParcelableArrayList(\"savedMovies\");\n mAdapter = new MovieAdapter(this, 0, gridData);\n gridview.setAdapter(mAdapter);\n }\n gridview.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Movie movie = gridData.get(position);\n Intent intent = new Intent(MainActivity.this, MovieDetailActivity.class);\n intent.putExtra(\"movie\", movie);\n startActivity(intent);\n }\n });\n }", "void onDiscoverItemClicked(Movie item);", "public void getintent() {\n Intent intent = this.getIntent();\n acceptDetailsModel = (AcceptDetailsModel) intent.getSerializableExtra(\"menu_item\");\n }", "public void mo8809a(int i, boolean z, String str) {\n this._lastLiveViewMode = i;\n this._isPictureRecMode = z;\n C1347a.m5304a(this._lastLiveViewMode);\n getWindow().addFlags(128);\n this._context = this;\n this._handler = new Handler();\n this.f12124a = new Bundle();\n this.f12127d = new C3722a();\n this.f12125b = (C3733b) C2316j.m10030a(\"LiveViewMoviePantilterBaseViewModel\");\n if (this.f12125b == null) {\n this.f12125b = new C3733b(this._context, this._handler);\n this.f12125b.mo8853a(this._context, this._handler, (C3787a) this.f12127d);\n C2316j.m10032a(\"LiveViewMoviePantilterBaseViewModel\", this.f12125b);\n this.f12125b.mo8859b(this._lastLiveViewMode);\n } else {\n this.f12125b.mo8853a(this._context, this._handler, (C3787a) this.f12127d);\n }\n C2028e a = C2253z.m9680a((Context) null, false);\n if (a != null) {\n C1846e i2 = a.mo5285i();\n this.f12129f = str;\n if (i2 != null && i2.mo4656E() != null && i2.mo4656E().equalsIgnoreCase(\"manual\") && str.equalsIgnoreCase(\"manual\")) {\n Intent intent = new Intent(this._context, LiveViewMoviePantilterManualMovieActivity.class);\n Activity activity = (Activity) this._context;\n activity.finish();\n activity.startActivity(intent);\n activity.overridePendingTransition(0, 0);\n } else if (!(i2 == null || i2.mo4656E() == null || ((!C2274o.m9901g(i2.mo4656E()) && !C2274o.m9904j(i2.mo4656E()) && !C2274o.m9911q(i2.mo4656E()) && !C2274o.m9918x(i2.mo4656E()) && !C2274o.m9881E(i2.mo4656E()) && !C2274o.m9882F(i2.mo4656E()) && !C2274o.m9903i(i2.mo4656E())) || !str.equalsIgnoreCase(\"manual\")))) {\n Intent intent2 = new Intent(this._context, LiveViewMoviePantilterPresetActivity.class);\n Activity activity2 = (Activity) this._context;\n activity2.finish();\n activity2.startActivity(intent2);\n activity2.overridePendingTransition(0, 0);\n }\n }\n this._optionMenuUtil = new C2308e();\n this._optionMenuUtil.mo6072a(this, this._handler, this);\n this._tabMenuUtil = new C2311f();\n this.f12128e = new C3732b();\n this._tabMenuUtil.mo6085a(1, this);\n this._tabMenuUtil.mo6078a(this.f12128e);\n SetupCameraWatching(false, C2328a.DMS_FILEUPLOADED_NOTIFY, C2328a.DMS_FILEUPLOADING_ERROR, C2328a.ON_SUBSCRIBE_UPDATE);\n }", "@GET(\"movie_details.json?with_cast=true&with_images=true\")\n Call<MovieDetailsResponse> getMovieDetails(@Query(\"movie_id\") String id);", "@Override\n public void onClick(View v) {\n Intent it = new Intent(Intent.ACTION_VIEW);\n Uri uri = Uri.parse(\"http://\"+ PostUrl.Media+\":8080/upload/\"+item.getMediaPath().get(0).split(\"\\\\.\")[0]+\".mp4\");\n it.setDataAndType(uri, \"video/mp4\");\n context.startActivity(it);\n\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_video);\n\t\tex = getIntent().getExtras();\n\t\t \n\n\t HashMap<String, String> mp = new HashMap<String, String>();\n\t\t mp.put(\"tag\", \"realVid\");\n\t\t if(ex.getString(\"cat\").equals(new String(\"ppv\")))\n\t\t {\n\t\t\t String vidttl =\"\";\n String vidtitle = ex.getString(\"title\");\n\t\t \t int pos = vidtitle.indexOf(\"Pay Per View\");\n\t\t\t\tif(pos!= -1)\n\t\t\t\t\tvidttl = vidtitle.substring(0,pos-1);\n\t\t\t\tmp.put(\"title\",vidttl);\n\t\t }\n\t\t else\n\t\t\t mp.put(\"title\", ex.getString(\"title\"));\n\t\t GetRealVidData gvd = new GetRealVidData(mp,this);\n\t\t gvd.execute(serverUrl);\n\t\t youTubeView1 = (YouTubePlayerView)findViewById(R.id.youtube_view1);\n\t\t \n\t\t \n\t\t/*\n\t\t if(ex!=null)\n\t\t \tvid = ex.getString(\"url\");\n\t\t//TextView tv = (TextView)findViewById(R.id.textView1);\n\t\t//VideoView videoView = (VideoView)findViewById(R.id.videoV);\n\t\tint pos = vid.indexOf(\"?rel\");\n\t\tif(pos!= -1)\n\t\t\tvidid = vid.substring(0, pos);\n\t\telse \n\t\t\tvidid = vid;\n\t\t\n\t\tVIDEO = vidid;\n YouTubePlayerView youTubeView = (YouTubePlayerView)findViewById(R.id.youtube_view);\n */\n // youTubeView.initialize(DEVELOPER_KEY, this);\n\n }", "void movieScreenData(MovieStoreResponse movieStoreResponse, boolean isFirstPage);", "@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 }", "public void setMovie(Movie movie) {\n this.movie = movie;\n }", "@Override\r\n public void onNewIntent(Intent intent){\r\n \t\r\n \tthis.activateExamBoard(intent);\r\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(VideoDetailsActivity.this,\"Reciever fot the result. Do some processing bro\",Toast.LENGTH_LONG).show();\n mVideoView.setVideoURI();\n }", "public void clickMovie()\n\t{\n\n\t\t// code to change the displayed photo\n\t\tSystem.out.println(\"clicked on \" + movieList.getSelectionModel().getSelectedItem());\n\n\t\t// code to change the displayed description, available times and the displayed photo\n\t\tfor (int i = 0; i < movieListItems.size(); i++)\n\t\t{\n\t\t\tif (movieList.getSelectionModel().getSelectedItem().equals(movieListItems.get(i)))\n\t\t\t{ Image validImage = null;\n\t\t\tVariableTracker.movieTitle=movieListItems.get(i);\n\t\t\tVariableTracker.movieDescription=movieDescription.get(i);\n\t\t\t\tdescription.setText(movieDescription.get(i));\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(ImagesPath.get(i));\n\t\t\t\t\tImage image = new Image(file.toURI().toString());\n\t\t\t\t\tvalidImage = image;\n\t\t\t\t}\n\t\t\t\tcatch (NullPointerException e)\n\t\t\t\t{\n\t\t\t\t\tFile file = new File(\"assets/placeholder.png\");\n\t\t\t\t\tImage image = new Image(file.toURI().toString());\n\t\t\t\t\tvalidImage = image;\n\t\t\t\t}\n\t\t\t\tVariableTracker.movieImage=validImage;\n\t\t\t\tiv.setImage(validImage);\n\t\t\t\tObservableList<String> movieTimesItems = FXCollections.observableArrayList();\n\t\t\t\tfor (int j = 0; j < movieTimesList.get(i).length; j++)\n\t\t\t\t{\n\t\t\t\t\tmovieTimesItems.add(movieTimesList.get(i)[j]);\n\t\t\t\t}\n\t\t\t\tmovieTimes.setItems(movieTimesItems);\n\t\t\t}\n\t\t}\n\n\t\t// code to change the available times\n\n\t}", "@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}", "public Cursor getMovie(int id) {\n String selection = ColumnMovie.ID + \" = ?\";\n String[] selectionArgs = {Integer.toString(id)};\n return getAnyRow(MOVIE_TABLE_NAME, null, selection, selectionArgs, null, null, null);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n VideoItem selection = selectionMap.get(selectionAdapter.getItem(position));\n\n Intent intent = new Intent(this, PulsePlayerActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\n\n intent.putExtra(\"contentMetadataTags\", selection.getTags());\n intent.putExtra(\"midrollPositions\", selection.getMidrollPositions());\n intent.putExtra(\"contentTitle\", selection.getContentTitle());\n intent.putExtra(\"contentId\", selection.getContentId());\n intent.putExtra(\"category\", selection.getCategory());\n intent.putExtra(\"embedCode\", selection.getContentCode());\n\n 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 }", "public final void mo6069c(int i, int i2, Intent intent) {\n AppMethodBeat.m2504i(6291);\n if (i == (C22846h.this.hashCode() & CdnLogic.kBizGeneric)) {\n switch (i2) {\n case -1:\n if (intent == null) {\n C4990ab.m7412e(\"MicroMsg.JsApiChooseMedia\", \"mmOnActivityResult REQUEST_CHOOSE_MEDIA bundle is null,\");\n C22846h.m34667a(C22846h.this, \"fail\");\n AppMethodBeat.m2505o(6291);\n return;\n }\n int intExtra = intent.getIntExtra(\"key_pick_local_media_callback_type\", 0);\n String stringExtra;\n HashMap hashMap;\n if (intExtra == 1) {\n stringExtra = intent.getStringExtra(\"key_pick_local_media_local_id\");\n String stringExtra2 = intent.getStringExtra(\"key_pick_local_media_thumb_local_id\");\n C4990ab.m7417i(\"MicroMsg.JsApiChooseMedia\", \"video localId:%s\", stringExtra);\n C4990ab.m7417i(\"MicroMsg.JsApiChooseMedia\", \"video thumbLocalId:%s\", stringExtra2);\n if (C5046bo.isNullOrNil(stringExtra)) {\n C4990ab.m7412e(\"MicroMsg.JsApiChooseMedia\", \"mmOnActivityResult REQUEST_CHOOSE_MEDIA video localId is null\");\n C22846h.m34667a(C22846h.this, \"fail\");\n AppMethodBeat.m2505o(6291);\n return;\n }\n WebViewJSSDKFileItem aeo = C29782c.aeo(stringExtra);\n if (aeo == null || !(aeo instanceof WebViewJSSDKVideoItem)) {\n C4990ab.m7412e(\"MicroMsg.JsApiChooseMedia\", \"mmOnActivityResult REQUEST_CHOOSE_MEDIA nor the videoitem\");\n break;\n }\n WebViewJSSDKVideoItem webViewJSSDKVideoItem = (WebViewJSSDKVideoItem) aeo;\n C4990ab.m7417i(\"MicroMsg.JsApiChooseMedia\", \"after parse to json data : %s\", C43914ap.m78770c(stringExtra, stringExtra2, webViewJSSDKVideoItem.duration, webViewJSSDKVideoItem.height, webViewJSSDKVideoItem.width, webViewJSSDKVideoItem.size));\n hashMap = new HashMap();\n hashMap.put(\"type\", Integer.valueOf(1));\n hashMap.put(\"localIds\", stringExtra);\n C22846h.m34669a(C22846h.this, hashMap);\n AppMethodBeat.m2505o(6291);\n return;\n } else if (intExtra == 2) {\n stringExtra = intent.getStringExtra(\"key_pick_local_media_local_ids\");\n C4990ab.m7417i(\"MicroMsg.JsApiChooseMedia\", \"chooseMedia localIds:%s\", stringExtra);\n if (C5046bo.isNullOrNil(stringExtra)) {\n C4990ab.m7412e(\"MicroMsg.JsApiChooseMedia\", \"mmOnActivityResult REQUEST_CHOOSE_MEDIA image localIds is null\");\n C22846h.m34667a(C22846h.this, \"fail\");\n AppMethodBeat.m2505o(6291);\n return;\n }\n hashMap = new HashMap();\n hashMap.put(\"type\", Integer.valueOf(2));\n hashMap.put(\"localIds\", stringExtra);\n C22846h.m34669a(C22846h.this, hashMap);\n AppMethodBeat.m2505o(6291);\n return;\n } else {\n C4990ab.m7413e(\"MicroMsg.JsApiChooseMedia\", \"type:%d is error\", Integer.valueOf(intExtra));\n C22846h.m34667a(C22846h.this, \"fail\");\n AppMethodBeat.m2505o(6291);\n return;\n }\n break;\n case 0:\n C22846h.m34667a(C22846h.this, \"cancel\");\n AppMethodBeat.m2505o(6291);\n return;\n }\n C22846h.m34667a(C22846h.this, \"fail\");\n }\n AppMethodBeat.m2505o(6291);\n }", "@Override\n public void movieSuccess(final MovieByCinemaIdBean result) {\n detailcinemaTopphoto.setAdapter(new MyMovieByCinemaIdCoverAdapter(CinemaDetailActivity.this, result.getResult()));\n detailcinemaTopphoto.scrollToPosition(2);\n detailcinemaTopphoto.setOnItemSelectedListener(new CoverFlowLayoutManger.OnSelected() {\n @Override\n public void onItemSelected(int position) {\n movieId = result.getResult().get(position).getId();\n whenCinemaPlayPresenter.getWhenCinemaPlayData(cinemasId, movieId);\n }\n });\n }", "public Movies getMovie () {\r\n\t\treturn movie;\r\n\t}" ]
[ "0.6655388", "0.6619947", "0.66100174", "0.65515405", "0.64961934", "0.6376248", "0.6355445", "0.6333472", "0.6248669", "0.6167649", "0.6152692", "0.6120177", "0.6054631", "0.60390866", "0.60335374", "0.6000332", "0.59559655", "0.59319174", "0.5867516", "0.5865648", "0.5804038", "0.58016264", "0.5789026", "0.5741569", "0.572438", "0.568935", "0.5686194", "0.5648675", "0.5623253", "0.562312", "0.560997", "0.5600997", "0.55700624", "0.5568762", "0.55606276", "0.55533427", "0.5549505", "0.5540069", "0.5536648", "0.55358595", "0.55301315", "0.5511999", "0.55119526", "0.55009294", "0.54963624", "0.5494599", "0.5492035", "0.54843587", "0.54798675", "0.5467428", "0.54628086", "0.54627264", "0.5460556", "0.54514253", "0.5440573", "0.5436676", "0.5432766", "0.54218024", "0.5419687", "0.5417354", "0.54052114", "0.5399707", "0.53966546", "0.53940165", "0.5372096", "0.53717184", "0.5363364", "0.53619087", "0.5356805", "0.5347745", "0.53447556", "0.53427964", "0.533754", "0.5335781", "0.5329717", "0.5327666", "0.5317358", "0.5311767", "0.5307133", "0.53020126", "0.52997714", "0.52973264", "0.5287351", "0.52838326", "0.5282436", "0.52811885", "0.52762127", "0.52730095", "0.5265887", "0.52654815", "0.5252372", "0.5250733", "0.5247739", "0.52373827", "0.5228145", "0.52174956", "0.52142334", "0.5212376", "0.5210687", "0.5210503" ]
0.608863
12
Lists all available metadata
public static ColumnData listTables(File home, String catalog, String schemaPattern, String tableNamePattern, String[] types) { Column[] columns = {new Column("Table1"), new Column("Table2"), new Column("Table3"), new Column("Table4")}; Data data = new Data(columns); CSVFileFilter ff = new CSVFileFilter(); for (String type : types) { if (type.equalsIgnoreCase("table")) { for (File f : home.listFiles((FileFilter) ff)) { String name = f.getName(); String tableName = name.substring(0, name.length() - 4); data.add(new String[]{tableName, tableName, tableName, tableName}); } } else if (type.equalsIgnoreCase("view")) { for (File f : home.listFiles(new SqlQueryFileFilter())) { String name = f.getName(); String tableName = name.substring(0, name.length() - 4); data.add(new String[]{tableName, tableName, tableName, tableName}); } } } return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Map<String, Object> getAllMetadata();", "List<MediaMetadata> getAll();", "java.util.List<java.lang.String>\n getMetadataList();", "java.util.List<java.lang.String>\n getMetadataList();", "public java.util.List<MetadataEntry> getMetadataList() {\n return metadata_;\n }", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "java.util.List<io.dstore.engine.MetaInformation> \n getMetaInformationList();", "public List<Metadata> getMetadata()\n\t{\n\t\treturn mMetadata;\n\t}", "public static ArrayList<Metadata> getMetadata() {\n\t\tmetadata.add(new Metadata(\"id\", \"Numero identificativo del lavoro\", \"long\"));\n\t\tmetadata.add(new Metadata(\"role\", \"Ruolo lavorativo\", \"String\"));\n\t\tmetadata.add(new Metadata(\"cname\", \"Nome dell'azienda\", \"String\"));\n\t\tmetadata.add(new Metadata(\"etype\", \"Tipo di impiego\", \"String\"));\n\t\tmetadata.add(new Metadata(\"location\", \"Luogo\", \"String\"));\n\t\tmetadata.add(new Metadata(\"remote\", \"Lavoro a distanza\", \"Bool\"));\n\t\t\n\n\t\treturn metadata;\n\t}", "public List<AbstractMetadata> getMetadata() {\n\t\treturn Collections.unmodifiableList(this.metadata);\n\t}", "public List<VueMetadataElement> getMetadata() { return dataList; }", "String[] getMetadataNames();", "@External(readonly = true)\n\tpublic List<String> get_metadata_fields(){\n\t\t\n\t\treturn this.METADATA_FIELDS;\n\t}", "Metadata getMetaData();", "public MetaData getMetaData();", "private ApiInfo metadata() {\n\t\treturn new ApiInfoBuilder().title(\"# Online Home Decor Store #\")\n\t\t\t\t.description(\"Suppliers and Categories operations are present\").build();\t\n\t}", "@ApiModelProperty(value = \"Other metadata associated to the Resource Zone.\")\n public List<MetaDataInner> getMetadata() {\n return metadata;\n }", "public abstract List<ColumnSpecification> metadata();", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n return metaInformation_;\n }", "Set<String> getMetadataKeys();", "@Bean\n public MetadataDisplayFilter metadataDisplayFilter() {\n return new MetadataDisplayFilter();\n }", "public Map getMetadata() {\n return metadata;\n }", "@Override\n public List<Complex> findAllMetaData() throws PersistentException {\n ComplexDao complexDao = transaction.createDao(ComplexDao.class);\n List<Complex> complexes = complexDao.readComplex();\n readTrainerLogin(complexes);\n readVisitorLogin(complexes);\n return complexes;\n }", "public Map<String, String> getMetadata() {\n return metadata;\n }", "public Map<String, String> getMetadata() {\n return metadata;\n }", "public java.util.List<? extends MetadataEntryOrBuilder> getMetadataOrBuilderList() {\n return metadata_;\n }", "public java.util.List<MetadataEntry> getMetadataList() {\n if (metadataBuilder_ == null) {\n return java.util.Collections.unmodifiableList(metadata_);\n } else {\n return metadataBuilder_.getMessageList();\n }\n }", "public Map<String, Object> getMetadata() {\n return metadata;\n }", "Map<String, String> getCustomMetadata();", "@Override\n public Iterator<Map.Entry<String, Object>> getMetadata() {\n return new EmptyEntryIterator();\n }", "com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata();", "@Bean\n\tpublic MetadataDisplayFilter metadataDisplayFilter() {\n\t\treturn new MetadataDisplayFilter();\n\t}", "public ResourceContent getMetadata() throws IOException;", "public ShowTableMetadataResponse showTableMetadata(ShowTableMetadataRequest request) throws GPUdbException {\n ShowTableMetadataResponse actualResponse_ = new ShowTableMetadataResponse();\n submitRequest(\"/show/table/metadata\", request, actualResponse_, false);\n return actualResponse_;\n }", "@Override\r\n\tpublic Map<String, Object> getMetadata() {\n\t\treturn null;\r\n\t}", "int getMetadataCount();", "int getMetadataCount();", "int getMetadataCount();", "int getMetadataCount();", "List<MetaTag> findAll();", "public int getMetadataCount() {\n return metadata_.size();\n }", "public HashMap getMetaData() ;", "private ApiInfo metaData() {\n return new ApiInfoBuilder()\n .title(\"Spring Boot REST API\")\n .description(\"\\\"Spring Boot REST API for Vertica Developer Training\\\"\")\n .version(\"1.0.0\")\n .license(\"Apache License Version 2.0\")\n .licenseUrl(\"https://www.apache.org/licenses/LICENSE-2.0\\\"\")\n .contact(new Contact(\"Thingtrack\", \"https://www.thingtrack.com\", \"[email protected]\"))\n .build();\n }", "public MetadataFormatsList listMetadataFormats() throws OAIException {\n return listMetadataFormats(null);\n }", "ArrayList<PropertyMetadata> getProperties();", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n if (metaInformationBuilder_ == null) {\n return java.util.Collections.unmodifiableList(metaInformation_);\n } else {\n return metaInformationBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n if (metaInformationBuilder_ == null) {\n return java.util.Collections.unmodifiableList(metaInformation_);\n } else {\n return metaInformationBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n if (metaInformationBuilder_ == null) {\n return java.util.Collections.unmodifiableList(metaInformation_);\n } else {\n return metaInformationBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n if (metaInformationBuilder_ == null) {\n return java.util.Collections.unmodifiableList(metaInformation_);\n } else {\n return metaInformationBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.MetaInformation> getMetaInformationList() {\n if (metaInformationBuilder_ == null) {\n return java.util.Collections.unmodifiableList(metaInformation_);\n } else {\n return metaInformationBuilder_.getMessageList();\n }\n }", "public EntityMetadata[] getMetadata()\r\n/* 30: */ {\r\n/* 31:30 */ return this.metadata;\r\n/* 32: */ }", "@NonNull\n JsonMap getMetadata();", "public void getArtistsMetaDataFromDevice(){\n // implement a cursorLoader\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(MediaStore.Audio.Artists.INTERNAL_CONTENT_URI,null,null,null,MediaStore.Audio.ArtistColumns.ARTIST);\n }", "@Override\r\n \tpublic MetaData getMetaData(HttpHeaders headers) {\n \t\ttry {\r\n \t\t\treturn MetaDataUtil.getMetaData(new ViewListeEleve(), new HashMap<String, MetaData>(),new ArrayList<String>());\r\n \t\t} catch (Exception e) {\r\n \t\t\t// TODO Auto-generated catch block\r\n \t\t\tthrow new WebApplicationException(Response.serverError().entity(new String(\"MetaData parse error\")).build());\r\n \t\t} \r\n \t}", "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n return metaInformation_;\n }", "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n return metaInformation_;\n }", "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n return metaInformation_;\n }", "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n return metaInformation_;\n }", "public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList() {\n return metaInformation_;\n }", "public Map<String, Object> getMetaData() {\n\t\treturn metaData;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void print() {\r\n\t\tSystem.out.println(\"** Metadata **\");\r\n\t\tfor (final Map<String, Object> m : _data) {\r\n\t\t\tSystem.out.println(\" + ALBUM\");\r\n\t\t\tfor (final String key : m.keySet()) {\r\n\t\t\t\tfinal Object o = m.get(key);\r\n\r\n\t\t\t\t// Most stuff is string, we can just dump that out.\r\n\t\t\t\tif (o instanceof String) {\r\n\t\t\t\t\tSystem.out.println(\" + \" + key + \": \" + (String) o);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (o instanceof ArrayList) {\r\n\t\t\t\t\tSystem.out.println(\" + \" + key + \":\");\r\n\t\t\t\t\tfor (final Object oo : (ArrayList<GracenoteMetadataOET>) o) {\r\n\t\t\t\t\t\tif (oo instanceof GracenoteMetadataOET) {\r\n\t\t\t\t\t\t\tfinal GracenoteMetadataOET oet = (GracenoteMetadataOET) oo;\r\n\t\t\t\t\t\t\toet.print();\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}", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "private ApiInfo metaData() {\n return new ApiInfoBuilder()\n .title(\"Spring Boot REST API\")\n .description(\"Spring Boot REST API for Testing Project\")\n .version(\"v1.0\")\n .contact(new Contact(\"Blagovest Anev\", \"https://www.linkedin.com/in/blagovestanev/\", \"[email protected]\"))\n .build();\n }", "public List getAll() throws FileNotFoundException, IOException;", "public List<MetaData> getMetaData(boolean unfold) {\n\t\tList<MetaData> results = new LinkedList<MetaData>();\n\t\tfor (InputPort port : getManagedPorts()) {\n\t\t\tMetaData data = port.getMetaData();\n\t\t\tif (data != null) {\n\t\t\t\tif (unfold && data instanceof CollectionMetaData) {\n\t\t\t\t\tresults.add(((CollectionMetaData) data).getElementMetaDataRecursive());\n\t\t\t\t} else {\n\t\t\t\t\tresults.add(data);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t}", "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> \n getMetaInformationOrBuilderList();", "public String getMetadataURL();", "boolean hasMetaData();", "com.google.cloud.compute.v1.Metadata getMetadata();", "public MetaData getMetaData() {\r\n \treturn metaData;\r\n }", "public MetaData getMetaData() {\n return metaData;\n }", "int getMetaInformationCount();", "int getMetaInformationCount();" ]
[ "0.8067605", "0.7654299", "0.7459768", "0.7459768", "0.7320178", "0.7096759", "0.7096759", "0.7096759", "0.7096759", "0.7096759", "0.6922535", "0.68671495", "0.6754415", "0.66427284", "0.6633401", "0.66253036", "0.6621319", "0.65394956", "0.64276284", "0.64237916", "0.64209753", "0.64068556", "0.64068556", "0.64068556", "0.64068556", "0.64068556", "0.6367712", "0.63655484", "0.6358818", "0.6347901", "0.634128", "0.634128", "0.6337286", "0.6306701", "0.63017637", "0.626997", "0.6231142", "0.62006474", "0.617499", "0.6145814", "0.6093529", "0.6052571", "0.6047344", "0.6047344", "0.6047344", "0.6047344", "0.6042788", "0.60280263", "0.59952146", "0.59675705", "0.59663415", "0.5961826", "0.59495634", "0.59495634", "0.59495634", "0.59495634", "0.59495634", "0.5945723", "0.59317243", "0.5912467", "0.5908456", "0.5896786", "0.5896786", "0.5896786", "0.5896786", "0.5896786", "0.5892926", "0.58863753", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58789825", "0.58771497", "0.58741784", "0.5868988", "0.586356", "0.586356", "0.586356", "0.586356", "0.586356", "0.5858239", "0.58439386", "0.58135647", "0.58127344", "0.5800687", "0.57808954", "0.57808954" ]
0.0
-1
we can use Traverson for traversing, and use RestTemplate to update the data
public IngredientModel addIngredient(Ingredient ingredient) { Traverson traverson = allIngredientsTraverson(); // use Traverson to navigate and get associated URL String ingredientsUrl = traverson.follow("ingredients").asLink().getHref(); // use RestTemplate to use REST services return restTemplate.postForObject(ingredientsUrl, ingredient, IngredientModel.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract ResponseEntity<T> doRequest(String nextHref, RestTemplate template,\n HttpEntity<?> requestEntity);", "public interface LibraryService {\n\n /*\n\n 1.Search--Keyword\n 2.Get List\n A.Order by created time\n B.Refresh and load next page\n 3.Get specific one\n\n */\n\n @GET(\"classes/Library\")\n Observable<BaseResponse<Library>> getLibrary(@QueryMap Map<String, String> parametersMap);\n\n /*\n curl -X PUT \\\n -H \"X-LC-Id: OOhkF87ffBYBHmvph465ApmV-gzGzoHsz\" \\\n -H \"X-LC-Key: OkaU2qxpo1fbHPtc9o7yQVgM\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"upvotes\":{\"__op\":\"Increment\",\"amount\":1}}' \\\n https://api.leancloud.cn/1.1/classes/Post/558e20cbe4b060308e3eb36c\n */\n @PUT(\"classes/Library/{objId}\")\n Observable<ResponseBody> increaseCount(@Path(\"objId\") String objId, @Body CountIncrement countIncrement);\n\n \n}", "@Test\r\n public void testCreateReadUpdate() {\r\n // Setting test employee object details\r\n Employee testEmployee = new Employee();\r\n testEmployee.setEmployeeId(\"abc123\");\r\n testEmployee.setFirstName(\"John\");\r\n testEmployee.setLastName(\"Doe\");\r\n testEmployee.setDepartment(\"Engineering\");\r\n testEmployee.setPosition(\"Developer\");\r\n\r\n //Creating test employee direct report\r\n List<Employee> directReports = new ArrayList<>();\r\n Employee testDirectEmployee = new Employee();\r\n Employee directReport = restTemplate.postForEntity(employeeUrl, testDirectEmployee, Employee.class).getBody();\r\n directReports.add(directReport);\r\n testEmployee.setDirectReports(directReports);\r\n\r\n // Creating test employee object\r\n Employee createdEmployee = restTemplate.postForEntity(employeeUrl, testEmployee, Employee.class).getBody();\r\n\r\n // Creating reporting structure test object\r\n ReportingStructure testReportStruct = new ReportingStructure();\r\n testReportStruct.setEmployee(createdEmployee);\r\n testReportStruct.setNumberOfReports(1);\r\n\r\n\r\n // Read checks for reporting structure\r\n ReportingStructure readReportStruct = restTemplate.getForEntity(reportStructEmployeeIdUrl, ReportingStructure.class,\r\n testReportStruct.getEmployee().getEmployeeId()).getBody();\r\n assertNotNull(readReportStruct.getEmployee().getEmployeeId());\r\n assertEquals(testReportStruct.getEmployee().getEmployeeId(), readReportStruct.getEmployee().getEmployeeId());\r\n assertReportStructEquivalence(testReportStruct, readReportStruct);\r\n }", "@Test\r\n\tpublic void testCRUDOperations() {\r\n\t\t\r\n\t\tfinal String DESCRIPTION = \"Test Backlog Task\";\r\n\t\tfinal int STATUS_ID = 1;\r\n\t\t\r\n\t\tRestTemplate restTemplate = new RestTemplate();\r\n\t\t//TODO Externalize URL??\r\n\t\tString postURL = \"http://localhost:8080/api/v1/backlog-tasks\";\r\n\t\t\r\n\t\tBacklogTask backlogTask = new BacklogTask();\r\n\t\tbacklogTask.setId(0);\r\n\t\tbacklogTask.setDescription(DESCRIPTION);\r\n\t\tbacklogTask.setStatusId(STATUS_ID);\r\n\t\t\r\n\t\tResponseEntity<BacklogTask> response = restTemplate.postForEntity(postURL, backlogTask, BacklogTask.class);\r\n\t\tBacklogTask postTask = response.getBody();\r\n\t\tassertThat(postTask.getId(), greaterThan(0));\r\n\t\t\r\n\t\tString getURL = String.format(\"http://localhost:8080/api/v1/backlog-tasks\", postTask.getId());\r\n\t\tResponseEntity<List<BacklogTask>> getResponse = restTemplate.exchange(\r\n\t\t\t\tgetURL,\r\n\t\t\t\tHttpMethod.GET,\r\n\t\t\t\tnull,\r\n\t\t\t\tnew ParameterizedTypeReference<List<BacklogTask>>() {});\r\n\t\tList<BacklogTask> getTasks = getResponse.getBody();\r\n\t\t\r\n\t\tassertThat(getTasks, hasItem(hasProperty(\"description\", equalTo(DESCRIPTION))));\r\n\t\tassertThat(getTasks, hasItem(hasProperty(\"id\", equalTo(postTask.getId()))));\r\n\t\t\r\n\t\tString deleteURL = String.format(\"http://localhost:8080/api/v1/backlog-task/%s\", postTask.getId());\r\n\t\trestTemplate.delete(deleteURL);\r\n\r\n\r\n\t\t\r\n\t}", "public static void main(String[] args) throws NoSuchAlgorithmException {\n SSLContext sslcontext = SSLContext.getDefault();\n Client client = ClientBuilder.newBuilder().property(\"Connection Success\", 100).sslContext(sslcontext)\n .register(JacksonJsonProvider.class).build(); // This is the client Instances as we can set in the next lines of the code\n WebTarget target = client.target(\"https://Knotify.io\");\n Customer customer = target.request().accept(\"application/json\").get(Customer.class);\n List<Customer> customers = target.request().accept(\"application/json\").get(new GenericType<List<Customer>>() {\n });\n // Here we can call the Output lines of the code as we can set in the next lines of the code\n System.out.println(Arrays.toString(customers.toArray()));\n System.out.print(customer.toString());\n //So here we can construct the response as we can see in the next lines\n //The next lines is to construct the lines of the next code as we can set\n try (Response response = target.request().accept(\"application/json\")\n .get()) {\n if (response.getStatus() == 200) {\n response.bufferEntity();\n Customer customer1 = response.readEntity(Customer.class); // This is for read instance //\n Map raw_json = response.readEntity(Map.class);\n System.out.println(customer1.toString());\n System.out.println(raw_json);\n }\n\n\n }// here response.close() is implicit\n Customer customer2 = new Customer();\n Response response = target.request().post(Entity.xml(customer2));\n response.close();//call close for Security reasons //\n\n // Here we can call the put method as we can see in the next lines of the code\n Response response1 = target.request().put(Entity.xml(customer));\n response1.close(); //Always call the close for the Source Reasons;\n // Here we can define the invocations as we can see in the next lines of the code\n\n Invocation customer_get = target.request().accept(\"Application/xml\").buildGet();\n //while invocation\n\n while (true){\n Response res = customer_get.invoke();\n try {\n Customer customer_do = res.readEntity(Customer.class);\n Thread.sleep(555);\n }catch (Exception e){\n System.out.println(\"Dont use the infinite loop\");\n }\n }\n // Here we can inherite the main example as we can see in the do-while example as we can see\n Customer new_customer= null;\n boolean redirected = false;\n do{\n try {\n new_customer= target.request().accept(\"application/json\").get(Customer.class);\n }catch (RedirectionException redirect){\n if(redirected) throw redirect;{\n redirected = true;\n target = client.target(redirect.getLocation());\n }\n }\n } while (new_customer == null);\n }", "private void updateItem(JsonNode json) {\n }", "private List<User> syncDataFromMaster() {\n\n// if (getHostPostOfServer().equals(ClusterInfo.getClusterInfo().getMaster())) {\n// return;\n// }\n String requestUrl;\n requestUrl = \"http://\".concat(ClusterInfo.getClusterInfo().getMaster().concat(\"/users\"));\n List<User> users = restTemplate.getForObject(requestUrl, List.class);\n return users;\n\n }", "@Test\n public void testUpdateUsersTank() throws Exception {\n\n UserTo userTo = new UserTo(MOCKED_USER,\"MockerUser\",\"pw123\");\n userTo.setId(1L);\n\n UserEntity userEntity = new UserEntity();\n Mapper.mapUserTo2Entity(userTo, userEntity);\n\n given(this.userRepository.getByEmail(MOCKED_USER)).willReturn(userEntity);\n\n AquariumTo updatableAquariumTo = testDataFactory.getTestAquariumFor(userTo);\n AquariumEntity updatableAquariumEntity = new AquariumEntity();\n updatableAquariumEntity.setUser(userEntity);\n mapAquariumTo2Entity(updatableAquariumTo, updatableAquariumEntity);\n\n AquariumEntity updatedAquariumEntity = new AquariumEntity();\n updatedAquariumEntity.setUser(userEntity);\n mapAquariumTo2Entity(updatableAquariumTo, updatedAquariumEntity);\n String updateTestString = \"Updated\";\n updatedAquariumEntity.setDescription(updateTestString); // we test only on description in this test\n\n given(aquariumRepository.getAquariumEntityByIdAndUser_IdIs(updatableAquariumTo.getId(), userTo.getId())).willReturn(updatableAquariumEntity);\n given(aquariumRepository.getOne(updatableAquariumTo.getId())).willReturn(updatableAquariumEntity);\n given(aquariumRepository.saveAndFlush(updatableAquariumEntity)).willReturn(updatedAquariumEntity);\n\n // and we need a valid authentication token for our mocked user\n String authToken = TokenAuthenticationService.createAuthorizationTokenFor(MOCKED_USER);\n\n // when this authorized user requests to update an aquarium\n HttpHeaders headers = RestHelper.prepareAuthedHttpHeader(authToken);\n\n updatableAquariumTo.setDescription(updateTestString);\n String requestJson = objectMapper.writeValueAsString(updatableAquariumTo);\n HttpEntity<String> entity = new HttpEntity<String>(requestJson, headers);\n\n ResponseEntity<String> responseEntity = restTemplate.exchange(\"/api/tank\", HttpMethod.PUT, entity, String.class);\n\n // then we should get a 200 as result.\n assertThat(responseEntity.getStatusCode(), equalTo(HttpStatus.OK));\n\n // and our test aquarium\n AquariumTo updatedAquarium = objectMapper.readValue(responseEntity.getBody(), AquariumTo.class);\n assertEquals(updatedAquarium.getDescription(), updatableAquariumTo.getDescription());\n }", "private void getNodeOperation(OperationResponse response, ObjectIdData requestData) {\n\t\t\n//\t\tString gehtNichtMeldung = \"{\\\"message\\\":\\\"MaPL currently is missing appropriate APIs to filter nodes intelligently.\\\"}\";\n//\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(200), ResponseUtil.toPayload(gehtNichtMeldung));\n\t\t\n\t\t\n\t\trestWrapper = MapsHelpers.initRestWrapperAndLogin(getContext());\n\t\tint httpStatusCode = 200;\n\t\tLogger.severe(\"Object ID : \" + requestData.getObjectId());\n\t\tLogger.severe(\"Dynamic props : \" + requestData.getDynamicProperties().toString());\n\t\tLogger.severe(\"User def props: \" + requestData.getUserDefinedProperties().toString());\n\t\t\n\t\tif ( restWrapper != null ) {\n\t\t\tJSONArray allNodes = new JSONArray();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tString additionalInfo = \"?withAdditionalInfo=true\";\n\t\t\t\t\n\t\t\t\tString treeId = requestData.getObjectId();\n\t\t\t\t\n\t\t\t\tLogger.severe(\"Find all nodes for tree ID \" + treeId );\n\t\t\t\t\n//\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tString restPath = \"/node/root/\" + treeId + additionalInfo;\n\t\t\t\t\n\t\t\t\tObject result = restWrapper.httpGetRequest(restPath, new HashMap<String, String>());\n\t\t\t\t\n\t\t\t\tallNodes.put(result);\n\t\t\t\n\t\t\t\tgetChildren(allNodes, treeId, (JSONObject)result, 0);\n\t\t\t\tLogger.severe(\"Found nodes: \" + allNodes.length() );\n\t\t\t\t\n\t\t\t\thttpStatusCode = restWrapper.getHttpClient().getLastStatus();\n\t\t\t\t\n\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\tLogger.log(Level.SEVERE, \"An error\", e);\n\t\t\t\tthrow new ConnectorException(e);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\tresponse.addResult(requestData, OperationStatus.FAILURE, null, \"Authentication failed\", null);\n\t\t}\n\t\t\n\t}", "@Test\n\tpublic void listAllInquilino() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:pessoa/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new InquilinoInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tInquilinoResponse result = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/inquilino/fetchPage/\",\n\t\t\t\tentitys, InquilinoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getInquilinoList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertInquilino(id, TabelaEnum.INQUILINO, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"inquilino\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/inquilino/insert/\", entitys,\n\t\t\t\tInquilinoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertInquilino(id, TabelaEnum.INQUILINO, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"inquilino\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/inquilino/update/\", entitys,\n\t\t\t\tInquilinoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tInquilinoInquiryRequest request001 = new InquilinoInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/inquilino/fetchPage/\", entitys,\n\t\t\t\tInquilinoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getInquilinoList().size(), 1);\n\n\t\t//Assert.assertEquals(result.getInquilinoList().get(0).getNome(), \"nome_1 - UPDATE\");\n\t\t//Assert.assertEquals(result.getInquilinoList().get(0).getNomePai(), \"nomePai_2 - UPDATE\");\n\t\t//Assert.assertEquals(result.getInquilinoList().get(0).getNomeMae(), \"nomeMae_3 - UPDATE\");\n\t\t//Assert.assertEquals(result.getInquilinoList().get(0).getNomeConjugue(), \"nomeConjugue_4 - UPDATE\");\n\t\t//Assert.assertEquals(result.getInquilinoList().get(0).getFoto(), \"foto_8 - UPDATE\");\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertInquilino(id, TabelaEnum.INQUILINO, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"inquilino\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/inquilino/delete/\", entitys,\n\t\t\t\tInquilinoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getInquilinoList().size(), count.intValue());\n\n\t}", "@Test\n\tpublic void listAllAdvogado() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:pessoa/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new AdvogadoInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tAdvogadoResponse result = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/advogado/fetchPage/\",\n\t\t\t\tentitys, AdvogadoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getAdvogadoList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertAdvogado(id, TabelaEnum.ADVOCACIA, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"advogado\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/advogado/insert/\", entitys,\n\t\t\t\tAdvogadoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertAdvogado(id, TabelaEnum.ADVOCACIA, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"advogado\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/advogado/update/\", entitys,\n\t\t\t\tAdvogadoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tAdvogadoInquiryRequest request001 = new AdvogadoInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/advogado/fetchPage/\", entitys,\n\t\t\t\tAdvogadoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getAdvogadoList().size(), 1);\n\n\t\t//Assert.assertEquals(result.getAdvogadoList().get(0).getNome(), \"nome_1 - UPDATE\");\n\t\t//Assert.assertEquals(result.getAdvogadoList().get(0).getNomePai(), \"nomePai_2 - UPDATE\");\n\t\t//Assert.assertEquals(result.getAdvogadoList().get(0).getNomeMae(), \"nomeMae_3 - UPDATE\");\n\t\t//Assert.assertEquals(result.getAdvogadoList().get(0).getNomeConjugue(), \"nomeConjugue_4 - UPDATE\");\n\t\t// //Assert.assertEquals(result.getAdvogadoList().get(0).getEstadoCivil(),(1005);\n\t\t// //Assert.assertEquals(result.getAdvogadoList().get(0).getTipoPessoa(),(1006);\n\t\t// //Assert.assertEquals(result.getAdvogadoList().get(0).getDatanasc(),(new\n\t\t// Long());\n\t\t//Assert.assertEquals(result.getAdvogadoList().get(0).getFoto(), \"foto_8 - UPDATE\");\n\t\t// //Assert.assertEquals(result.getAdvogadoList().get(0).getPessoaTypeEnum(),(1009);\n\t\t// //Assert.assertEquals(result.getAdvogadoList().get(0).getSexo(),(1010);\n\t\t// objeto.setEnderecos(new ArrayList<List<Endereco>> ())\n\t\t// objeto.get().add(new List<Endereco>());\n\t\t// objeto.setDocumentos(new ArrayList<List<Documento>> ())\n\t\t// objeto.get().add(new List<Documento>());\n\t\t// objeto.setEmails(new ArrayList<List<Email>> ())\n\t\t// objeto.get().add(new List<Email>());\n\t\t// objeto.setTelefones(new ArrayList<List<Telefone>> ())\n\t\t// objeto.get().add(new List<Telefone>());\n\t\t// objeto.setBancos(new ArrayList<List<BancoPessoa>> ())\n\t\t// objeto.get().add(new List<BancoPessoa>());\n\t\t// objeto.setFormaPagamentoList(new ArrayList<List<FormaPgPessoa>> ())\n\t\t// objeto.get().add(new List<FormaPgPessoa>());\n\t\t// objeto.setCondPagList(new ArrayList<List<CondPagPessoa>> ())\n\t\t// objeto.get().add(new List<CondPagPessoa>());\n\t\t// objeto.setContatoList(new ArrayList<List<Contato>> ())\n\t\t// objeto.get().add(new List<Contato>());\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertAdvogado(id, TabelaEnum.ADVOCACIA, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"advogado\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/advogado/delete/\", entitys,\n\t\t\t\tAdvogadoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getAdvogadoList().size(), count.intValue());\n\n\t}", "@Test\n\tpublic void listAllFornecedor() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:pessoa/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new FornecedorInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tFornecedorResponse result = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/fornecedor/fetchPage/\",\n\t\t\t\tentitys, FornecedorResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getFornecedorList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertFornecedor(id, TabelaEnum.FORNECEDOR, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"fornecedor\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/fornecedor/insert/\", entitys,\n\t\t\t\tFornecedorResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertFornecedor(id, TabelaEnum.FORNECEDOR, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"fornecedor\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/fornecedor/update/\", entitys,\n\t\t\t\tFornecedorResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tFornecedorInquiryRequest request001 = new FornecedorInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/fornecedor/fetchPage/\", entitys,\n\t\t\t\tFornecedorResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getFornecedorList().size(), 1);\n\n\t\t//Assert.assertEquals(result.getFornecedorList().get(0).getNome(), \"nome_1 - UPDATE\");\n\t\t//Assert.assertEquals(result.getFornecedorList().get(0).getNomePai(), \"nomePai_2 - UPDATE\");\n\t\t//Assert.assertEquals(result.getFornecedorList().get(0).getNomeMae(), \"nomeMae_3 - UPDATE\");\n\t\t//Assert.assertEquals(result.getFornecedorList().get(0).getNomeConjugue(), \"nomeConjugue_4 - UPDATE\");\n\t\t//Assert.assertEquals(result.getFornecedorList().get(0).getFoto(), \"foto_8 - UPDATE\");\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertFornecedor(id, TabelaEnum.FORNECEDOR, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"fornecedor\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/fornecedor/delete/\", entitys,\n\t\t\t\tFornecedorResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getFornecedorList().size(), count.intValue());\n\n\t}", "private void refreshList() {\n\t\t\t\tlist.clear();\n\t\t\t\tGetChildrenBuilder childrenBuilder = client.getChildren();\n\t\t\t\ttry {\n\t\t\t\t\tList<String> listdir = childrenBuilder.forPath(servicezoopath);\n\t\t\t\t\tfor (String string : listdir) {\n\t\t\t\t\t\tbyte[] data = client.getData().forPath(servicezoopath + \"/\" + string);\n\t\t\t\t\t\tlist.add(new String(data));\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "private RestTemplate getRestTemplateForPatch() {\n HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();\n return new RestTemplate(requestFactory);\n }", "@Test\r\n\tpublic void updateUpdate() throws InterruptedException, ExecutionException {\r\n\t\tLOGGER.debugf(\"BEGINN\");\r\n\t\t\r\n\t\t// Given\r\n\t\tfinal Long zahlId = ZAHLUNGSINFORMATION_ID_UPDATE;\r\n \tfinal String neuerKontoinhaber = NEUER_KONTOINHABER;\r\n \tfinal String neuerKontoinhaber2 = NEUER_KONTOINHABER_2;\r\n\t\tfinal String username = USERNAME_ADMIN;\r\n\t\tfinal String password = PASSWORD_ADMIN;\r\n\t\t\r\n\t\t// When\r\n\t\tResponse response = given().header(ACCEPT, APPLICATION_JSON)\r\n\t\t\t\t .pathParameter(ZAHLUNGSINFORMATIONEN_ID_PATH_PARAM, zahlId)\r\n .get(ZAHLUNGSINFORMATIONEN_ID_PATH);\r\n\t\tJsonObject jsonObject;\r\n\t\ttry (final JsonReader jsonReader =\r\n\t\t\t\t getJsonReaderFactory().createReader(new StringReader(response.asString()))) {\r\n\t\t\tjsonObject = jsonReader.readObject();\r\n\t\t}\r\n\r\n \t// Konkurrierendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n \tfinal JsonObjectBuilder job2 = getJsonBuilderFactory().createObjectBuilder();\r\n \tSet<String> keys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob2.add(\"kontoinhaber\", neuerKontoinhaber2);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob2.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tfinal JsonObject jsonObject2 = job2.build();\r\n \tfinal ConcurrentUpdate concurrentUpdate = new ConcurrentUpdate(jsonObject2, ZAHLUNGSINFORMATIONEN_PATH,\r\n \t\t\t username, password);\r\n \tfinal ExecutorService executorService = Executors.newSingleThreadExecutor();\r\n\t\tfinal Future<Response> future = executorService.submit(concurrentUpdate);\r\n\t\tresponse = future.get(); // Warten bis der \"parallele\" Thread fertig ist\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_NO_CONTENT));\r\n\t\t\r\n \t// Fehlschlagendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n\t\tfinal JsonObjectBuilder job1 = getJsonBuilderFactory().createObjectBuilder();\r\n \tkeys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob1.add(\"kontoinhaber\", neuerKontoinhaber);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob1.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tjsonObject = job1.build();\r\n\t\tresponse = given().contentType(APPLICATION_JSON)\r\n\t\t\t\t .body(jsonObject.toString())\r\n\t\t .auth()\r\n\t\t .basic(username, password)\r\n\t\t .put(ZAHLUNGSINFORMATIONEN_PATH);\r\n \t\r\n\t\t// Then\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_CONFLICT));\r\n\t\t\r\n\t\tLOGGER.debugf(\"ENDE\");\r\n\t}", "private void processExistingObjects(String uri) throws Exception {\n Map resp = k8s.callWS(uri);\n int responseCode = (int) resp.get(\"code\");\n if (responseCode != 200) {\n throw new Exception(\"Unable to load \" + uri + \" - \" + resp);\n }\n\n JSONParser parser = new JSONParser();\n JSONObject root = (JSONObject) parser.parse((String) resp.get(\"data\"));\n JSONArray items = (JSONArray) root.get(\"items\");\n for (Object o : items) {\n JSONObject item = (JSONObject) o;\n\n String resourceVersion = this.getResourceVersion(item);\n if (resourceVersion == null) {\n System.out.println(\"skipping \" + item);\n continue;\n }\n\n this.processedVersions.add(resourceVersion);\n this.lastProcessedResource = resourceVersion;\n if (hasStatus(item)) {\n\n // has been processed at least once\n if (hasObjectChanged(item)) {\n // The object has been updated since the operator was last run\n JSONObject change = new JSONObject();\n change.put(\"object\", item);\n change.put(\"type\", \"MODIFIED\");\n\n // process the object\n try {\n processEvent(change,uri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n\n } else {\n // no status, so it needs to be added\n JSONObject add = new JSONObject();\n add.put(\"object\", item);\n add.put(\"type\", \"ADDED\");\n\n // process the object\n try {\n processEvent(add,uri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n }\n\n }", "@Test\n\t@Override\n\tpublic void testUpdateObjectOKJson() throws Exception {\n\t}", "public void refineTR(){\n ArrayList<Node> prevLevelNodes = new ArrayList<>();\n ArrayList<Node> currentLevelNodes;\n services.clear();\n prevLevelNodes.add(endNode);\n while (true){\n currentLevelNodes = new ArrayList<>();\n for (Node n: prevLevelNodes){\n //System.out.println(n.isDummy());\n if (!n.isDummy()){\n //System.out.println(n.getService().getSubServices().size());\n for (AbstractService as: n.getService().getSubServices())\n services.add(as.getAbstractServices().get(0));\n }\n for (Node n1: n.getTraceTR()){\n currentLevelNodes.add(n1);\n }\n }\n if (currentLevelNodes.isEmpty())break;\n prevLevelNodes = currentLevelNodes;\n }\n this.generateDependencyGraph();\n //this.findOptimalResponseTime();\n this.findOptimalThroughput();\n }", "public void setRawObject(final ISerializer serializer, final JsonObject json) {\n mSerializer = serializer;\n mRawObject = json;\n\n\n if (json.has(\"serviceConfigurationRecords\")) {\n final BaseDomainDnsRecordCollectionResponse response = new BaseDomainDnsRecordCollectionResponse();\n if (json.has(\"[email protected]\")) {\n response.nextLink = json.get(\"[email protected]\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"serviceConfigurationRecords\").toString(), JsonObject[].class);\n final DomainDnsRecord[] array = new DomainDnsRecord[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), DomainDnsRecord.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n serviceConfigurationRecords = new DomainDnsRecordCollectionPage(response, null);\n }\n\n if (json.has(\"verificationDnsRecords\")) {\n final BaseDomainDnsRecordCollectionResponse response = new BaseDomainDnsRecordCollectionResponse();\n if (json.has(\"[email protected]\")) {\n response.nextLink = json.get(\"[email protected]\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"verificationDnsRecords\").toString(), JsonObject[].class);\n final DomainDnsRecord[] array = new DomainDnsRecord[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), DomainDnsRecord.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n verificationDnsRecords = new DomainDnsRecordCollectionPage(response, null);\n }\n\n if (json.has(\"domainNameReferences\")) {\n final BaseDirectoryObjectCollectionResponse response = new BaseDirectoryObjectCollectionResponse();\n if (json.has(\"[email protected]\")) {\n response.nextLink = json.get(\"[email protected]\").getAsString();\n }\n\n final JsonObject[] sourceArray = serializer.deserializeObject(json.get(\"domainNameReferences\").toString(), JsonObject[].class);\n final DirectoryObject[] array = new DirectoryObject[sourceArray.length];\n for (int i = 0; i < sourceArray.length; i++) {\n array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class);\n array[i].setRawObject(serializer, sourceArray[i]);\n }\n response.value = Arrays.asList(array);\n domainNameReferences = new DirectoryObjectCollectionPage(response, null);\n }\n }", "public abstract Response update(Request request, Response response);", "public interface RestaurantEndpoints {\n @GET(\"/restaurants\")\n Call<ArrayList<GETRestaurantResponse>> getRestaurants(@Query(\"priceeq\") String priceEquals,\n @Query(\"pricelte\") String priceLte,\n @Query(\"pricegte\") String priceGte,\n @Query(\"city\") String city,\n @Query(\"name\") String name,\n @Query(\"address\") String address);\n @GET(\"/restaurant_statistics\")\n Call<GETRestaurantStatisticsResponse> getRestaurantStatistics(@Query(\"name\") String name, @Query(\"address\") String address);\n\n @PUT(\"/restaurants\")\n Call<Void> updateRestaurantOwner(@Body PUTRestaurantRequest putRestaurantRequest);\n\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"http://youfood.ddns.net\")\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n RestaurantEndpoints restaurantEndpoints = retrofit.create(RestaurantEndpoints.class);\n}", "@Test\n\tpublic void listAllConfigVendas() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:configuracao/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PagedInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tConfigVendasResponse result = restTemplate.postForObject(\n\t\t\t\tREST_SERVICE_URI + \"configuracao/api/configVendas/fetchPage/\", entitys, ConfigVendasResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getConfigVendasList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigVendas(id, TabelaEnum.CONFIGVENDAS, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"configVendas\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configVendas/insert/\", entitys,\n\t\t\t\tConfigVendasResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigVendas(id, TabelaEnum.CONFIGVENDAS, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"configVendas\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configVendas/update/\", entitys,\n\t\t\t\tConfigVendasResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPagedInquiryRequest request001 = new PagedInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configVendas/fetchPage/\", entitys,\n\t\t\t\tConfigVendasResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tAssert.assertEquals(result.getConfigVendasList().size(), 15);\n\n\t\t//\n\t\t// Assert.assertEquals(result.getConfigVendasList().get(0).getDescontoMaxVenda(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigVendasList().get(0).getObservacao(),\"\"observacao_2\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfigVendasList().get(0).getImprSegVia(),(1003);\n\t\t// Assert.assertEquals(result.getConfigVendasList().get(0).getImprAssinatura(),(1004);\n\t\t// Assert.assertEquals(result.getConfigVendasList().get(0).getImprResumoFinanc(),(1005);\n\t\t// Assert.assertEquals(result.getConfigVendasList().get(0).getAtuaPrecoClonar(),(1006);\n\t\t// Assert.assertEquals(result.getConfigVendasList().get(0).getImprColUnidade(),(1007);\n\t\t// Assert.assertEquals(result.getConfigVendasList().get(0).getBloquearvendProdSemEstoq(),(1008);\n\t\t// Assert.assertEquals(result.getConfigVendasList().get(0).getAddDespCalcImposto(),(1009);\n\t\t// Assert.assertEquals(result.getConfigVendasList().get(0).getRetSubstTribICMS(),(1010);\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigVendas(id, TabelaEnum.CONFIGVENDAS, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"configVendas\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configVendas/delete/\", entitys,\n\t\t\t\tConfigVendasResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfigVendasList().size(),\n\t\t// count.intValue());\n\n\t}", "@Test\n\tpublic void listAllCliente() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:pessoa/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new ClienteInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tClienteResponse result = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/cliente/fetchPage/\", entitys,\n\t\t\t\tClienteResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getClienteList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertCliente(id, TabelaEnum.CLIENTE, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"cliente\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/cliente/insert/\", entitys,\n\t\t\t\tClienteResponse.class);\n\t//\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(new ClienteInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/cliente/fetchPage/\", entitys,\n\t\t\t\tClienteResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getClienteList().size();\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertCliente(id, TabelaEnum.CLIENTE, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"cliente\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/cliente/update/\", entitys,\n\t\t\t\tClienteResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tClienteInquiryRequest request001 = new ClienteInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/cliente/fetchPage/\", entitys,\n\t\t\t\tClienteResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getClienteList().size(), 1);\n\n\t\t//Assert.assertEquals(result.getClienteList().get(0).getNome(), \"nome_1 - UPDATE\");\n\t\t//Assert.assertEquals(result.getClienteList().get(0).getNomePai(), \"nomePai_2 - UPDATE\");\n\t\t//Assert.assertEquals(result.getClienteList().get(0).getNomeMae(), \"nomeMae_3 - UPDATE\");\n\t\t//Assert.assertEquals(result.getClienteList().get(0).getNomeConjugue(), \"nomeConjugue_4 - UPDATE\");\n\t\t//Assert.assertEquals(result.getClienteList().get(0).getFoto(), \"foto_8 - UPDATE\");\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertCliente(id, TabelaEnum.CLIENTE, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"cliente\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/cliente/delete/\", entitys,\n\t\t\t\tClienteResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getClienteList().size(), count.intValue());\n\n\t}", "@Test\n\tpublic void listAllTransportador() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:pessoa/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new TransportadorInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tTransportadorResponse result = restTemplate.postForObject(\n\t\t\t\tREST_SERVICE_URI + \"pessoa/api/transportador/fetchPage/\", entitys, TransportadorResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getTransportadorList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertTransportador(id, TabelaEnum.TRANSPORTADOR, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"transportador\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/transportador/insert/\", entitys,\n\t\t\t\tTransportadorResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertTransportador(id, TabelaEnum.TRANSPORTADOR, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"transportador\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/transportador/update/\", entitys,\n\t\t\t\tTransportadorResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tTransportadorInquiryRequest request001 = new TransportadorInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/transportador/fetchPage/\", entitys,\n\t\t\t\tTransportadorResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getTransportadorList().size(), 1);\n\n\t\t//Assert.assertEquals(result.getTransportadorList().get(0).getNome(), \"nome_1 - UPDATE\");\n\t\t//Assert.assertEquals(result.getTransportadorList().get(0).getNomePai(), \"nomePai_2 - UPDATE\");\n\t\t//Assert.assertEquals(result.getTransportadorList().get(0).getNomeMae(), \"nomeMae_3 - UPDATE\");\n\t\t//Assert.assertEquals(result.getTransportadorList().get(0).getNomeConjugue(), \"nomeConjugue_4 - UPDATE\");\n\t\t//Assert.assertEquals(result.getTransportadorList().get(0).getFoto(), \"foto_8 - UPDATE\");\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertTransportador(id, TabelaEnum.TRANSPORTADOR, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"transportador\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/transportador/delete/\", entitys,\n\t\t\t\tTransportadorResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getTransportadorList().size(), count.intValue());\n\n\t}", "@Override\n public MessageResource updateOriginDestinationInformation(UpdateFlightDetailResource updateFlightDetailResource)\n throws OperationException {\n\n String bookingId = updateFlightDetailResource.getBookID();\n\n String parameterizedGetBooking = getBookingUrl + bookingId;\n\n String bookingDetails = RestUtils.getForObject(parameterizedGetBooking, String.class);\n\n //TODO: Remove the contains comparision after defining Error message\n if (bookingDetails.contains(\"BE_ERR_001\")) {\n throw new OperationException(\"Failed to get booking for booking id : \" + bookingId);\n }\n\n ObjectMapper objMapper = new ObjectMapper();\n objMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n\n Booking booking = null;\n try {\n booking = objMapper.readValue(bookingDetails, Booking.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if (booking == null) {\n throw new OperationException(\"Failed to get booking for booking id : \" + bookingId);\n }\n\n String orderId = updateFlightDetailResource.getOrderID();\n Optional<Product> matchProduct = booking.getBookingResponseBody().getProducts().stream().\n filter(aProduct -> aProduct.getOrderID().equals(orderId)).findFirst();\n\n if (!(matchProduct.isPresent())) {\n throw new OperationException(\"Invalid Order Id: \" + orderId);\n }\n\n FlightDetails flightDetails = matchProduct.get().getOrderDetails().getFlightDetails();\n List<OriginDestinationOption> BEOriginDestinationOptions = flightDetails.getOriginDestinationOptions();\n\n DateFormat opsFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n DateFormat beFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n\n //TODO: Assumption that the order of list will match\n BEOriginDestinationOptions.forEach(aOriginDestinationOption -> {\n aOriginDestinationOption.getFlightSegment().forEach(aFlightSegment -> {\n if (!(StringUtils.isEmpty(updateFlightDetailResource.getArrivalDate()))) {\n Date date = null;\n try {\n date = opsFormat.parse(updateFlightDetailResource.getArrivalDate());\n } catch (ParseException e) {\n e.printStackTrace();\n }\n String beDate = beFormat.format(date);\n aFlightSegment.setArrivalDate(beDate);\n }\n if (!(StringUtils.isEmpty(updateFlightDetailResource.getDepartureDate()))) {\n Date date = null;\n try {\n date = opsFormat.parse(updateFlightDetailResource.getDepartureDate());\n } catch (ParseException e) {\n e.printStackTrace();\n }\n String beDate = beFormat.format(date);\n aFlightSegment.setDepartureDate(beDate);\n }\n if (!(StringUtils.isEmpty(updateFlightDetailResource.getAirlineCode()))) {\n aFlightSegment.getOperatingAirline().setAirlineCode(updateFlightDetailResource.getAirlineCode());\n }\n if (!(StringUtils.isEmpty(updateFlightDetailResource.getFlightNumber()))) {\n aFlightSegment.getOperatingAirline().setFlightNumber(updateFlightDetailResource.getFlightNumber());\n }\n });\n });\n\n try {\n JSONObject updateFlightDetailsReq = new JSONObject();\n updateFlightDetailsReq.put(JSON_PROP_ORDERID, orderId);\n\n ObjectWriter ow = new ObjectMapper().writer();\n JSONObject flightDetailsJSON = new JSONObject(ow.writeValueAsString(flightDetails));\n\n updateFlightDetailsReq.put(JSON_PROP_AIR_FLIGHTDETAILS, flightDetailsJSON);\n updateFlightDetailsReq.put(JSON_PROP_USERID, userService.getLoggedInUserId());\n logger.info(\"Flight Details Json : \" + flightDetailsJSON);\n\n HttpHeaders headers = new HttpHeaders();\n headers.setContentType(MediaType.APPLICATION_JSON);\n HttpEntity httpEntity = new HttpEntity(updateFlightDetailsReq.toString(), headers);\n RestTemplate restTemplate = RestUtils.getTemplate();\n\n ResponseEntity<String> exchange = restTemplate.exchange(updateFlightDetails,\n HttpMethod.PUT, httpEntity, String.class);\n String response = exchange.getBody();\n if (response == null) {\n MessageResource messageResource = new MessageResource();\n messageResource.setMessage(\"Update failed from booking engine\");\n return messageResource;\n } else {\n MessageResource messageResource = new MessageResource();\n messageResource.setMessage(\"Update Successful\");\n return messageResource;\n }\n } catch (RestClientException e) {\n throw new OperationException(String.format(\"Unable to update FlightDetails for orderId <%s> \", orderId));\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n throw new OperationException(String.format(\"Unable to update FlightDetails for orderId <%s> \", orderId));\n }\n\n MessageResource messageResource = new MessageResource();\n messageResource.setMessage(String.format(\"Unable to update FlightDetails for orderId <%s> \", orderId));\n return messageResource;\n }", "@Test\n\tpublic void listAllBoleto() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:configuracao/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PagedInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tBoletoResponse result = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/boleto/fetchPage/\",\n\t\t\t\tentitys, BoletoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getBoletoList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertBoleto(id, TabelaEnum.BOLETO, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"boleto\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/boleto/insert/\", entitys,\n\t\t\t\tBoletoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertBoleto(id, TabelaEnum.BOLETO, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"boleto\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/boleto/update/\", entitys,\n\t\t\t\tBoletoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPagedInquiryRequest request001 = new PagedInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/boleto/fetchPage/\", entitys,\n\t\t\t\tBoletoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tAssert.assertEquals(result.getBoletoList().size(), 1);\n\n\t\t// Assert.assertEquals(result.getBoletoList().get(0).getAtivarBolOnLine(),(1001);\n\t\t// Assert.assertEquals(result.getBoletoList().get(0).getTipoBoleto(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getBoletoList().get(0).getAgencia(),(1003);\n\t\t// Assert.assertEquals(result.getBoletoList().get(0).getCedente(),(1004);\n\t\t// Assert.assertEquals(result.getBoletoList().get(0).getJuros(),(10.00);\n\t\t// Assert.assertEquals(result.getBoletoList().get(0).getTipoCalcMora(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getBoletoList().get(0).getMora(),(10.00);\n\t\t// Assert.assertEquals(result.getBoletoList().get(0).getInstrucoes(),\"\"instrucoes_8\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getBoletoList().get(0).getDemonstrativo(),\"\"demonstrativo_9\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getBoletoList().get(0).getImpJuros(),(1010);\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertBoleto(id, TabelaEnum.BOLETO, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"boleto\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/boleto/delete/\", entitys,\n\t\t\t\tBoletoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tAssert.assertEquals(result.getBoletoList().size(), count.intValue());\n\n\t}", "@Test\n\tpublic void listAllPaciente() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:pessoa/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PacienteInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tPacienteResponse result = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/paciente/fetchPage/\",\n\t\t\t\tentitys, PacienteResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getPacienteList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertPaciente(id, TabelaEnum.PACIENTE, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"paciente\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/paciente/insert/\", entitys,\n\t\t\t\tPacienteResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertPaciente(id, TabelaEnum.PACIENTE, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"paciente\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/paciente/update/\", entitys,\n\t\t\t\tPacienteResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPacienteInquiryRequest request001 = new PacienteInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/paciente/fetchPage/\", entitys,\n\t\t\t\tPacienteResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getPacienteList().size(), 1);\n\n\t\t//Assert.assertEquals(result.getPacienteList().get(0).getNome(), \"nome_1 - UPDATE\");\n\t\t//Assert.assertEquals(result.getPacienteList().get(0).getNomePai(), \"nomePai_2 - UPDATE\");\n\t\t//Assert.assertEquals(result.getPacienteList().get(0).getNomeMae(), \"nomeMae_3 - UPDATE\");\n\t\t//Assert.assertEquals(result.getPacienteList().get(0).getNomeConjugue(), \"nomeConjugue_4 - UPDATE\");\n\t\t//Assert.assertEquals(result.getPacienteList().get(0).getFoto(), \"foto_8 - UPDATE\");\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertPaciente(id, TabelaEnum.PACIENTE, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"paciente\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/paciente/delete/\", entitys,\n\t\t\t\tPacienteResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getPacienteList().size(), count.intValue());\n\n\t}", "@Test\n\tpublic void listAllSindico() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:pessoa/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new SindicoInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tSindicoResponse result = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/sindico/fetchPage/\", entitys,\n\t\t\t\tSindicoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getSindicoList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertSindico(id, TabelaEnum.SINDICO, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"sindico\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/sindico/insert/\", entitys,\n\t\t\t\tSindicoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertSindico(id, TabelaEnum.SINDICO, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"sindico\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/sindico/update/\", entitys,\n\t\t\t\tSindicoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tSindicoInquiryRequest request001 = new SindicoInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/sindico/fetchPage/\", entitys,\n\t\t\t\tSindicoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getSindicoList().size(), 1);\n\n\t\t//Assert.assertEquals(result.getSindicoList().get(0).getNome(), \"nome_1 - UPDATE\");\n\t\t//Assert.assertEquals(result.getSindicoList().get(0).getNomePai(), \"nomePai_2 - UPDATE\");\n\t\t//Assert.assertEquals(result.getSindicoList().get(0).getNomeMae(), \"nomeMae_3 - UPDATE\");\n\t\t//Assert.assertEquals(result.getSindicoList().get(0).getNomeConjugue(), \"nomeConjugue_4 - UPDATE\");\n\t\t//Assert.assertEquals(result.getSindicoList().get(0).getFoto(), \"foto_8 - UPDATE\");\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertSindico(id, TabelaEnum.SINDICO, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"sindico\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/sindico/delete/\", entitys,\n\t\t\t\tSindicoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getSindicoList().size(), count.intValue());\n\n\t}", "@Test\n public void testExposesUpdate() throws Exception {\n Link customer = findCustomersLinks().iterator().next();\n byte[] bytes = Files.readAllBytes(Paths.get(\"src/test/resources/customer-update.txt\"));\n\n mockMvc\n .perform(put(customer.getHref())\n .contentType(MediaType.APPLICATION_JSON)\n .content(bytes))\n .andExpect(status().isNoContent());\n\n MockHttpServletResponse response2 = request(customer.getHref());\n\n assertThat(\"Firstname field was updated correctly\",\n JsonPath.read(response2.getContentAsString(), \"firstname\").toString(),\n is(\"Ralph\"));\n }", "JsonNode updateData(String data);", "@Test\n\tpublic void listAllConfigFiscal() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:configuracao/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PagedInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tConfigFiscalResponse result = restTemplate.postForObject(\n\t\t\t\tREST_SERVICE_URI + \"configuracao/api/configFiscal/fetchPage/\", entitys, ConfigFiscalResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getConfigFiscalList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigFiscal(id, TabelaEnum.CONFIGFISCAL, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"configFiscal\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configFiscal/insert/\", entitys,\n\t\t\t\tConfigFiscalResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigFiscal(id, TabelaEnum.CONFIGFISCAL, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"configFiscal\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configFiscal/update/\", entitys,\n\t\t\t\tConfigFiscalResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPagedInquiryRequest request001 = new PagedInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configFiscal/fetchPage/\", entitys,\n\t\t\t\tConfigFiscalResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tAssert.assertEquals(result.getConfigFiscalList().size(), 20);\n\n\t\t// Assert.assertEquals(result.getConfigFiscalList().get(0).getPrincAtividade(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigFiscalList().get(0).getRegime(),(new\n\t\t// Regime());\n\t\t// Assert.assertEquals(result.getConfigFiscalList().get(0).getAliqSimples(),(10.00);\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigFiscal(id, TabelaEnum.CONFIGFISCAL, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"configFiscal\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configFiscal/delete/\", entitys,\n\t\t\t\tConfigFiscalResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfigFiscalList().size(),\n\t\t// count.intValue());\n\n\t}", "public interface PrimaryBankService {\n\n @GET(\"/user/bank\")\n void getPrimaryBankDetail(Callback<List<BankDetail>> callback);\n\n @POST(\"/user/bank\")\n void createPrimaryBankDetail(@Body List<BankDetail> bankDetail, Callback<List<BankDetail>> callback);\n\n @POST(\"/user/netBankingperfios\")\n void uploadPerfiosTransactionStatus(@Body PerfiosService.TransactionStatusResponse perfiosTransactionResponse, Callback<PerfiosTransactionResponse> callback);\n\n @POST(\"/user/netBankingperfios\")\n PerfiosTransactionResponse uploadPerfiosTransactionStatus(@Body PerfiosService.TransactionStatusResponse perfiosTransactionResponse);\n //@PUT(\"/user/bank\")\n //void updatePrimaryBankDetail(@Body BankDetail bankDetail, Callback<BankDetail> callback);\n\n\n public static class PerfiosTransactionResponse{\n private String message;\n\n public String getMessage() {\n return message;\n }\n\n public void setMessage(String message) {\n this.message = message;\n }\n }\n\n public static class BankDetail{\n\n @SerializedName(value = \"name\")\n private String bankName;\n @SerializedName(value = \"account_no\")\n private String accountNumber;\n private boolean isPrimary = false;\n private boolean userStatementPresent = false;\n\n public boolean isUserStatementPresent() {\n return userStatementPresent;\n }\n\n public void setUserStatementPresent(boolean userStatementPresent) {\n this.userStatementPresent = userStatementPresent;\n }\n\n public String getBankName() {\n return bankName;\n }\n\n public void setBankName(String bankName) {\n this.bankName = bankName;\n }\n\n public String getAccountNumber() {\n return accountNumber;\n }\n\n public String getAccountNumberLast4Digits() {\n if(accountNumber!= null && accountNumber.length()>4)\n {\n return accountNumber.substring(accountNumber.length()-4);\n }\n return accountNumber;\n }\n\n public void setAccountNumber(String accountNumber) {\n this.accountNumber = accountNumber;\n }\n\n public boolean isPrimary() {\n return isPrimary;\n }\n\n public void setIsPrimary(boolean isPrimary) {\n this.isPrimary = isPrimary;\n }\n\n @Override\n public boolean equals(Object obj)\n {\n if(obj != null && obj instanceof BankDetail)\n {\n BankDetail second = (BankDetail)obj;\n return this.bankName.equals(second.getBankName())\n && this.getAccountNumberLast4Digits().equals(second.getAccountNumberLast4Digits());\n }\n return false;\n }\n }\n\n}", "@PostConstruct// used on a method that needs to be executed after dependency injection is done to perform any initialization.\n @Scheduled(cron=\"* * 1 * * *\")//used when we want to schedule this method time period so that this project runs after a period of time and fetches the updated data.\n //method should have a void return type and should not have any parameters.\n public void fetchVirusData() throws IOException, InterruptedException {\n\n //new list so that while we are calling/using the old list and other person manipulates the list there is no concurrency problem created.\n List<LocationInfo> newLocation=new ArrayList<>();\n\n HttpClient client=HttpClient.newHttpClient();//to make http calls we make its client\n HttpRequest request=HttpRequest.newBuilder().uri(URI.create(URL)).build();//saying where we do we need to do the httpRequest\n\n //now get a response by sending the client this request and returns as a string\n HttpResponse<String>httpResponse=client.send(request, HttpResponse.BodyHandlers.ofString());\n //System.out.println(httpResponse.body());\n\n //to show the csv file data. to manage the printed string of data from the url we use csv library.To convert the\n // string to objects so that we can access each column as we want\n /*Some CSV files define header names in their first record. If configured, Apache Commons CSV can parse the\n header names from the first record. This will use the values from the first record as header names and skip the\n first record when iterating.\n */\n StringReader csvBodyReader=new StringReader(httpResponse.body());//instance of reader that passes a string\n Iterable<CSVRecord> records = CSVFormat.DEFAULT.withFirstRecordAsHeader().parse(csvBodyReader);\n //looping throught the records which were the objects/columns returned when http request fetches the data.\n // we want to save the data in a model class so that we can use it easier\n for (CSVRecord record : records) {\n LocationInfo locationInfo=new LocationInfo();\n locationInfo.setState(record.get(\"Province/State\"));\n locationInfo.setCountry(record.get(\"Country/Region\"));\n int latestNoCases = Integer.parseInt(record.get(record.size() - 1));\n int prevDayCases = Integer.parseInt(record.get(record.size() - 2));\n locationInfo.setLatestCases(latestNoCases);//gives the last updated column\n //System.out.println(locationInfo);\n locationInfo.setDiffFromPreviousDay(latestNoCases-prevDayCases);\n newLocation.add(locationInfo);\n //String state = record.get(\"Province/State\");\n //System.out.println(state);//prints the column we want : here prints all the province/state rom the url\n }\n this.allLocation=newLocation;\n\n }", "public JSONObject update() throws Exception{\n String urlString;\r\n if(this.targetDirection == -1){\r\n urlString = \"https://ptx.transportdata.tw/MOTC/v2/Bus/EstimatedTimeOfArrival/City/\" + route.getCityName() + \"?$filter=\" + URLEncoder.encode(\"StopUID eq '\" + targetStopUID + \"' \", \"UTF-8\") + \"&$format=JSON\";\r\n }else{\r\n urlString = \"https://ptx.transportdata.tw/MOTC/v2/Bus/EstimatedTimeOfArrival/City/\" + route.getCityName() + \"?$filter=\" + URLEncoder.encode(\"StopUID eq '\" + targetStopUID + \"' and Direction eq '\"+ targetDirection +\"' \", \"UTF-8\") + \"&$format=JSON\";\r\n }\r\n urlString = urlString.replaceAll(\"\\\\+\", \"%20\");\r\n PTXPlatform ptxp = new PTXPlatform(urlString);\r\n \r\n try{\r\n this.stopData = new JSONArray(ptxp.getData()).getJSONObject(0);\r\n }catch(Exception e){\r\n System.out.println(\"Maybe Direction are not using in this route, please set direction to -1.\");\r\n }\r\n return stopFilter(stopData);\r\n }", "public void test_01() {\n\t\tpostobject jsonobjectdata = new postobject();\n\n\t\tjsonobjectdata.setID(\"5\");\n\t\tjsonobjectdata.settitle(\"updated Mr\");\n\t\tjsonobjectdata.setfirst_name(\"updated Rahaman\");\n\t\tjsonobjectdata.setauthor(\"updated Ata\");\n\n\t\tResponse reponse = given().\n\t\t\t\tbody(jsonobjectdata).\n\t\t\t\twhen().\n\t\t\t\tcontentType(ContentType.JSON).\n\t\t\t\tput(\"http://localhost:3000/posts/05\");\n\n\t\tSystem.out.println(\"updated response data \"+ reponse.asString());\t\t\n\t}", "@Test\n\tpublic void listAllConfigCarne() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:configuracao/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PagedInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tConfigCarneResponse result = restTemplate.postForObject(\n\t\t\t\tREST_SERVICE_URI + \"configuracao/api/configCarne/fetchPage/\", entitys, ConfigCarneResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getConfigCarneList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigCarne(id, TabelaEnum.CONFIGCARNE, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"configCarne\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configCarne/insert/\", entitys,\n\t\t\t\tConfigCarneResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigCarne(id, TabelaEnum.CONFIGCARNE, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"configCarne\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configCarne/update/\", entitys,\n\t\t\t\tConfigCarneResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPagedInquiryRequest request001 = new PagedInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configCarne/fetchPage/\", entitys,\n\t\t\t\tConfigCarneResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfigCarneList().size(), 20);\n\n\t\t// Assert.assertEquals(result.getConfigCarneList().get(0).getCarneBotelo(),(1001);\n\t\t// Assert.assertEquals(result.getConfigCarneList().get(0).getCarneNormal(),(1002);\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigCarne(id, TabelaEnum.CONFIGCARNE, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"configCarne\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configCarne/delete/\", entitys,\n\t\t\t\tConfigCarneResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfigCarneList().size(),\n\t\t// count.intValue());\n\n\t}", "public interface TravelApiService {\n @GET(\"api/users/{userCode}/travels\")\n Call<List<Travel>> getTravel(@Path(value = \"userCode\") String userCode);\n\n @POST(\"api/users/{userCode}/travels\")\n Call<PostTravelGsonResponce> postTravel(@Path(value = \"userCode\") String userCode, @Field(\"travel_date\") String travelDate, @Field(\"latitude\") Double latitude, @Field(\"longitude\") Double longitude, @Field(\"area_name\") String areaName, @Field(\"contry_name\") String countryName, @Field(\"token\") String token);\n}", "@Test\n\tpublic void listAllConfigProduto() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:configuracao/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PagedInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tConfigProdutoResponse result = restTemplate.postForObject(\n\t\t\t\tREST_SERVICE_URI + \"configuracao/api/configProduto/fetchPage/\", entitys, ConfigProdutoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getConfigProdutoList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigProduto(id, TabelaEnum.CONFIGPRODUTO, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"configProduto\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configProduto/insert/\", entitys,\n\t\t\t\tConfigProdutoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigProduto(id, TabelaEnum.CONFIGPRODUTO, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"configProduto\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configProduto/update/\", entitys,\n\t\t\t\tConfigProdutoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPagedInquiryRequest request001 = new PagedInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configProduto/fetchPage/\", entitys,\n\t\t\t\tConfigProdutoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tAssert.assertEquals(result.getConfigProdutoList().size(), 1);\n\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getCfop(),(new\n\t\t// Cfop());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIcmsSitTrib(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIcmsOrigem(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIcmsModalidadeBC(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIcmsRedBaseCalc(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIcmsAliq(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIcmsMotDesoneracao(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIcmsModBCST(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIcmsMargValAdic(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIcmsRedBaseCalcST(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIcmsPrecoUnitPautaST(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIcmsAliqST(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIpiSitTrib(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIpiClasCigarroBebida(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIpiCNPJProd(),\"\"ipiCNPJProd_15\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIpiCodSeloCont(),\"\"ipiCodSeloCont_16\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIpiQtdSelo(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIpiCodEnquad(),(1018);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIpiTipCalc(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getIpiAliq(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getPisSitTrib(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getPisAliq(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getPisValUnidtrib(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getPistipoCalcSubstTrib(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getPisAliqST(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getPisValorAliqST(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getCofinsSubstTrib(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getCofinsAliq(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getCofinsValorAliq(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getCofinsTipoCalcSubstTrib(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getCofinsAliqST(),(10.00);\n\t\t// Assert.assertEquals(result.getConfigProdutoList().get(0).getCofinsValorAliqST(),(10.00);\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigProduto(id, TabelaEnum.CONFIGPRODUTO, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"configProduto\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configProduto/delete/\", entitys,\n\t\t\t\tConfigProdutoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tAssert.assertEquals(result.getConfigProdutoList().size(), count.intValue());\n\n\t}", "private void dispatchRequests(RoutingContext context) {\n int initialOffset = 5; // length of `/api/`\n // Run with circuit breaker in order to deal with failure\n circuitBreaker.execute(future -> {\n getAllEndpoints().setHandler(ar -> {\n if (ar.succeeded()) {\n List<Record> recordList = ar.result();\n // Get relative path and retrieve prefix to dispatch client\n String path = context.request().uri();\n if (path.length() <= initialOffset) {\n notFound(context);\n future.complete();\n return;\n }\n\n String prefix = (path.substring(initialOffset).split(\"/\"))[0];\n String newPath = path.substring(initialOffset + prefix.length());\n\n // Get one relevant HTTP client, may not exist\n Optional<Record> client = recordList.stream()\n .filter(record -> record.getMetadata().getString(\"api.name\") != null)\n .filter(record -> record.getMetadata().getString(\"api.name\").equals(prefix))\n .findAny(); // simple load balance\n\n if (client.isPresent()) {\n doDispatch(context, newPath, discovery.getReference(client.get()).get(), future);\n } else {\n notFound(context);\n future.complete();\n }\n } else {\n future.fail(ar.cause());\n }\n });\n }).setHandler(ar -> {\n if (ar.failed()) {\n badGateway(ar.cause(), context);\n }\n });\n }", "public static void main(String[] args) {\n RestTemplate restTemplate = new RestTemplateBuilder()\n .rootUri(\"http://localhost:8080/api/v1/students\")\n .basicAuthorization(\"joao_silva\",\"jpp123456\")\n .build();\n Student student = restTemplate.getForObject(\"/{id}\", Student.class, 1);\n ResponseEntity<Student> forEntity = restTemplate.getForEntity(\"/{id}\",Student.class,1);\n System.out.println(student);\n System.out.println(forEntity.getBody());\n Student[] students = restTemplate.getForObject(\"/\", Student[].class);\n System.out.println(Arrays.toString(students));\n ResponseEntity<List<Student>> exchange = restTemplate.exchange(\"/\", HttpMethod.GET, null, new ParameterizedTypeReference<List<Student>>() {\n });\n System.out.println(exchange.getBody());\n\n\n\n }", "@Override\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\tfinal String url = getString(R.string.recipe_resource_url);\n\t\t\t\t// Set the Accept header for \"application/json\"\n\t\t\t\tHttpHeaders requestHeaders = prepareHeadersWithMediaTypeAndBasicAuthentication();\n\n\n\t\t\t\t// Create a new RestTemplate instance\n\t\t\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\t\trestTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n\t\t\t\t\n\t\t\t\t// Populate the headers in an HttpEntity object to use for the request\n\t\t\t\tHttpEntity<Recipe> requestEntity = new HttpEntity<Recipe>(recipe,requestHeaders);\n\t\t\t\ttry {\n\t\t\t\t\t// Perform the HTTP PUT request\n\t\t\t\t\tLog.i(TAG,\"Updating the recipe with id : \"+recipe.getId() + \" : \" + url);\n\t\t\t\t\tResponseEntity<Void> responseEntity = restTemplate.exchange(url, HttpMethod.PUT, requestEntity,\tVoid.class);\n\t\t\t\t\tif(responseEntity.getStatusCode() != HttpStatus.OK) {\n\t\t\t\t\t\tthrow new HttpServerErrorException(responseEntity.getStatusCode());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (RestClientException e) {\n\t\t\t\t\tLog.d(TAG, e.getMessage(), e);\n\t\t\t\t\texception = e;\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t}", "@Test\n\t@Override\n\tpublic void testUpdateObjectNotFoundJson() throws Exception {\n\t}", "public interface BonCommandeRS\n extends GenericService<BonCommande, Long>\n{\n\n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"envoye\")\n public BonCommande envoyer(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"confirme\")\n public BonCommande confirmer(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"reception\")\n public BonReception reception(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"annule\")\n public BonCommande annuler(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"facture\")\n public BonCommande facture(@Context HttpHeaders headers,BonCommande entity);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"imprime\")\n public List<BonCommande> imprimer(@Context HttpHeaders headers,BonCommande dmde);\n}", "public void processUrl() {\n try {\n\n JsonNode rootNode = getJsonRootNode(getJsonFromURL()); // todo: pass url in this method (to support multi-urls)\n getValuesFromJsonNodes(rootNode);\n setAndFormatValues();\n\n } catch (Exception e) {\n System.out.println(\"ERROR: caught error in processUrl()\");\n e.printStackTrace();\n }\n }", "@Override\n protected void executeLowLevelRequest() {\n doPutItem();\n }", "@Test\n\tpublic void listAllConfigGeral() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:configuracao/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PagedInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tConfigGeralResponse result = restTemplate.postForObject(\n\t\t\t\tREST_SERVICE_URI + \"configuracao/api/configGeral/fetchPage/\", entitys, ConfigGeralResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getConfigGeralList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigGeral(id, TabelaEnum.CONFIGGERAL, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"configGeral\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configGeral/insert/\", entitys,\n\t\t\t\tConfigGeralResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigGeral(id, TabelaEnum.CONFIGGERAL, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"configGeral\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configGeral/update/\", entitys,\n\t\t\t\tConfigGeralResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPagedInquiryRequest request001 = new PagedInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configGeral/fetchPage/\", entitys,\n\t\t\t\tConfigGeralResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tAssert.assertEquals(result.getConfigGeralList().size(), 20);\n\t\t//\n\t\t//\n\t\t// Assert.assertEquals(result.getConfigGeralList().get(0).getFusoHorario(),(1001);\n\t\t// Assert.assertEquals(result.getConfigGeralList().get(0).getCasasDecimais(),(1002);\n\t\t// Assert.assertEquals(result.getConfigGeralList().get(0).getDiasCartaCobr(),(1003);\n\t\t// Assert.assertEquals(result.getConfigGeralList().get(0).getInfPosicionarMouse(),(1004);\n\t\t// Assert.assertEquals(result.getConfigGeralList().get(0).getCnpjCPFUnico(),(1005);\n\t\t// Assert.assertEquals(result.getConfigGeralList().get(0).getImpCodPersonalizado(),(1006);\n\t\t// Assert.assertEquals(result.getConfigGeralList().get(0).getLogListRelImp(),(1007);\n\t\t// Assert.assertEquals(result.getConfigGeralList().get(0).getObsProdFinProd(),(1008);\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigGeral(id, TabelaEnum.CONFIGGERAL, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"configGeral\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configGeral/delete/\", entitys,\n\t\t\t\tConfigGeralResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfigGeralList().size(),\n\t\t// count.intValue());\n\n\t}", "private void getTreeOperation(OperationResponse response, ObjectIdData requestData) throws ConnectorException {\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tint httpStatusCode = 200;\n\t\t\n\t\tLogger.severe(this.getContext().getObjectTypeId());\n\t\trestWrapper = MapsHelpers.initRestWrapperAndLogin(getContext());\n\t\t\n\t\tif ( restWrapper != null ) {\n\t\t\tTreeDTO[] loy = restWrapper.getListOfYears();\n\t\t\thttpStatusCode = restWrapper.getHttpClient().getLastStatus();\n\t\t\t\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\tmapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);\n\t\t\tmapper.setDateFormat(df);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tString jsonInString = mapper.writeValueAsString(loy);\n//\t\t\t\tLogger.severe(jsonInString);\n\t\t\t\t\n\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(jsonInString));\n\t\t\t\t\n\t\t\t\treturn;\n\t\t\t\t\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\tLogger.log(Level.SEVERE, \"An error\", e);\n\t\t\t\tthrow new ConnectorException(e);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tresponse.addResult(requestData, OperationStatus.FAILURE, null, \"Authentication failed\", null);\n\t\t}\n\t}", "public interface RestApi {\n @GET(\"house_list\")\n Call<List<HouseInfo>> getHouseInfoList();\n\n @POST(\"landlordLogin\")\n Call<Landlord> landlordLogin(\n @Body Landlord landlord\n );\n\n @POST(\"landlordUpdate\")\n Call<Landlord> landlordUpdate(\n @Body Landlord landlord\n );\n\n @POST(\"incrementViewCount\")\n Call<RestHttpResponse> incrementViewCount(\n @Body HouseInfo houseInfo\n );\n\n @POST(\"tenantLogin\")\n Call<Tenant> tenantLogin(\n @Body Tenant tenant\n );\n\n @POST(\"tenantUpdate\")\n Call<Tenant> tenantUpdate(\n @Body Tenant tenant\n );\n\n @POST(\"search_house_list\")\n Call<List<HouseInfo>> getSearchHouseInfoList(@Body HouseSchCri criteria);\n\n @POST(\"getFavoriteList\")\n Call<List<HouseInfo>> getFavoriteList(@Body List<Favorite> favoriteList);\n\n}", "@Test\n\t@Override\n\tpublic void testUpdateObjectWrongIdJson() throws Exception {\n\t}", "@Test(expected = ResourceAccessException.class)\n public void testReturnBookTransaction(){\n HttpEntity<Object> transaction = getHttpEntity(\n \"\");\n\n ResponseEntity<Transaction> response = template.exchange(\n \"/api/transaction/6/return\", HttpMethod.PATCH,transaction,Transaction.class);\n\n\n Assert.assertEquals(200,response.getStatusCode().value());\n\n }", "@Test\r\n\tpublic void updateProductDetails() {\r\n\r\n\t\tRestAssured.baseURI = \"http://localhost:9000/products\";\r\n\t\tRequestSpecification request = RestAssured.given();\r\n\t\tJSONObject requestParams = new JSONObject();\r\n\t\trequestParams.put(\"name\", \"Banana\");\r\n\t\trequest.header(\"Content-Type\", \"application/json\");\r\n\t\trequest.body(requestParams.toString());\r\n\t\tResponse response = request.put(\"/5\");\r\n\t\tSystem.out.println(\"Update Responce Body ----->\" + response.asString());\r\n\t\tint statusCode = response.getStatusCode();\r\n\t\tAssert.assertEquals(statusCode, 200);\r\n\r\n\t}", "public static void main(String[] args) {\n\t String jsonInput = \"{\\\"name\\\":\\\"AAAA\\\",\\\"type\\\":\\\"admin\\\"}\";\r\n//\t\t ClientConfig clientConfig = new ClientConfig();\r\n//\t\t\tClient client = ClientBuilder.newClient(clientConfig);\r\n//\t\t\tURI serviceURI = UriBuilder.fromUri(url).build();\r\n//\t\t\tWebTarget webTarget = client.target(serviceURI);\r\n//\t\t\tSystem.out.println(webTarget.path(\"getRecords\").request()\r\n//\t\t\t\t\t.accept(MediaType.APPLICATION_JSON).get(String.class).toString());\r\n\t\t\r\n\t\tClient client = ClientBuilder.newClient( new ClientConfig());\r\n\t\tWebTarget webTarget = client.target(\"http://localhost:9000/webservices\").path(\"update\").path(\"Report\");\r\n\t\t\r\n\r\n\t\tInvocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\r\n\t\tResponse response = invocationBuilder.post(Entity.entity(jsonInput, MediaType.APPLICATION_JSON));\r\n\t\t\r\n\t\t \r\n\t\t\r\n\t\t \r\n\t\tSystem.out.println(response.getStatus());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Test\n\tpublic void listAllConfigEntrada() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:configuracao/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PagedInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tConfigEntradaResponse result = restTemplate.postForObject(\n\t\t\t\tREST_SERVICE_URI + \"configuracao/api/configEntrada/fetchPage/\", entitys, ConfigEntradaResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getConfigEntradaList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigEntrada(id, TabelaEnum.CONFIGENTRADA, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"configEntrada\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configEntrada/insert/\", entitys,\n\t\t\t\tConfigEntradaResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigEntrada(id, TabelaEnum.CONFIGENTRADA, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"configEntrada\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configEntrada/update/\", entitys,\n\t\t\t\tConfigEntradaResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPagedInquiryRequest request001 = new PagedInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configEntrada/fetchPage/\", entitys,\n\t\t\t\tConfigEntradaResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfigEntradaList().size(), 20);\n\n\t\t// Assert.assertEquals(result.getConfigEntradaList().get(0).getValorTotalFixo(),(1001);\n\t\t// Assert.assertEquals(result.getConfigEntradaList().get(0).getManterPrecoVendaProd(),(1002);\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigEntrada(id, TabelaEnum.CONFIGENTRADA, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"configEntrada\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configEntrada/delete/\", entitys,\n\t\t\t\tConfigEntradaResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfigEntradaList().size(),\n\t\t// count.intValue());\n\n\t}", "void update(String page, Collection<String> paths, Collection<String> refreshPaths);", "@Test\r\n\tpublic void createDirectTargetGroupsWithObject_V1_getResponseEntity()\tthrows ClientProtocolException, IOException, JSONException {\r\n\t\t\t\t\r\n\t\t/**\r\n\t\t * Create a direct target group with fake data\r\n\t\t */\r\n\t\t\r\n\t\tDirectTargetGroup directTargetGroupSent,directTargetGroupReceived,directTargetGroupFound;\r\n\t\tResponseEntity<String> responseCreate,responseGet, responseDelete;\r\n\t\t\r\n\t\t\r\n\t\tdirectTargetGroupSent = FakeObjectsFactory.getDirectTargetGroupEntity(new DirectTargetGroup());\r\n\t\tHttpEntity<DirectTargetGroup> request = new HttpEntity<DirectTargetGroup>(directTargetGroupSent);\r\n \r\n\t\t/* CREATE: HTTP Methos POST (postForEntity)*/\r\n\t\turl.setParam(null);\r\n\t\t\r\n\t\tLOGGER.debug(\"URL:\"+url.get());\r\n\t\tresponseCreate = restTemplate.postForEntity(url.get(), request, String.class);\r\n\t\tdirectTargetGroupReceived = objectMapper.readValue(responseCreate.getBody(), DirectTargetGroup.class);\r\n\t\t\r\n\t\tassertEquals(directTargetGroupSent.getDescriptionEn(), directTargetGroupReceived.getDescriptionEn());\r\n\t\tassertEquals(directTargetGroupSent.getOrderNumber(), directTargetGroupReceived.getOrderNumber());\r\n\t\t\r\n\t\tString jsonString = objectMapper.writeValueAsString(directTargetGroupReceived);\r\n\t\t\r\n\t\tLOGGER.debug(\"URL:\"+url.get());\r\n\t\tLOGGER.debug(\"received:\"+jsonString);\r\n\t\t// LOGGER.debug(\"expected:\"+expectedResponse);\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Read the direct target group created (getForEntity)\r\n\t\t */\r\n\t\t\r\n\t\turl.setMethod(\"/last\");\r\n\t\tresponseGet = restTemplate.getForEntity(url.get(), String.class);\r\n\t\tdirectTargetGroupFound = objectMapper.readValue(responseGet.getBody(), DirectTargetGroup.class);\r\n\t\t\r\n\t\turl.setMethod(null);\r\n\t\t\r\n\t\tassertEquals(directTargetGroupFound.getDescriptionEn(), directTargetGroupReceived.getDescriptionEn());\r\n\t\tassertEquals(directTargetGroupFound.getOrderNumber(), directTargetGroupReceived.getOrderNumber());\r\n\t\t\r\n\t\t/**\r\n\t\t * Delete the direct target group created (getForEntity)\r\n\t\t */\r\n\t\t\r\n\t\turl.setMethod(null);\r\n\t\turl.setParam(\"/{id}\");\r\n\t\t\r\n\t\tMap < String, String > params = new HashMap < String, String > ();\r\n\t params.put(\"id\", directTargetGroupReceived.getId().toString());\r\n\r\n\t restTemplate.delete(url.get(), params);\r\n\r\n\t}", "public void updateOneWord(Pojo.OneWord e){ \n template.update(e); \n}", "@Transactional(value = Transactional.TxType.MANDATORY)\n public Rubric applyUpdate(JsonNode patches, Rubric rubric) throws JsonProcessingException, ResponseStatusException {\n ObjectMapper objectMapper = new ObjectMapper();\n JsonNode rubricJson = objectMapper.convertValue(rubric, JsonNode.class);\n System.out.println(rubricJson);\n\n if (patches.isArray()) {\n ArrayNode arrayNode = (ArrayNode) patches;\n\n for(int i = 0; i < arrayNode.size(); i++) {\n JsonNode update = arrayNode.get(i);\n System.out.println(update);\n\n String operation = update.get(\"op\").asText();\n\n if (operation.equals(Operation.ADD.toString())) {\n // either criterion or section\n String type = update.get(\"value\").get(\"content\").get(\"type\").asText();\n\n // mark all submissions if a new criterion is added\n // i.e. add 'issue' to those submissions\n if (type.equals(Type.CRITERION.toString())) {\n System.out.println(\"A new criterion has been added. Mark all submissions.\");\n } else {\n System.out.println(\"A new section has been created. Well, skip.\");\n }\n } else if (operation.equals(Operation.REPLACE.toString())) {\n // get path elements\n String[] path = update.get(\"path\").asText().split(\"/\");\n\n // if title was changed, skip\n if (path.length > 0 && path[path.length - 1].equals(\"title\")) {\n // mark all submissions that are affected by this change\n System.out.println(\"We don't really care about changes in name, do we? Skip.\");\n } else if (path.length > 0 && path[path.length - 1].equals(\"grade\")) {\n // mark all submissions that are affected by this change\n System.out.println(\"Grading for a criterion has been changed. Mark all submissions.\");\n } else if (path.length > 0 && path[path.length - 1].equals(\"text\")) {\n // mark all submissions that are affected by this change\n System.out.println(\"Description of a criterion has been changed. Mark all submissions.\");\n } else {\n // the whole rubric was purged\n System.out.println(\"Rubric has been cleared. Mark all submissions.\");\n }\n } else if (operation.equals(Operation.REMOVE.toString())) {\n // get path elements, last part should be an index in the children array\n String[] path = update.get(\"path\").asText().split(\"/\");\n\n JsonNode element = findInRubric(rubricJson, path);\n\n if (element.get(\"content\").get(\"type\").asText().equals(Type.SECTION.toString())) {\n // the code below is very inefficient\n\n // recursively get all criteria\n List<JsonNode> criteria = this.findAllCriteria(element);\n\n if (criteria.isEmpty()) {\n // no criterion was removed, so skip\n continue;\n }\n\n System.out.println(\"A section with criteria has been removed. Mark all submissions.\");\n\n // for each criterion\n try {\n for (JsonNode criterion: criteria) {\n System.out.println(criterion);\n // for each assessment in the project check if the criterion is in it\n System.out.println(\"removing grades of criterion: \" + criterion.get(\"content\").get(\"id\").asText());\n gradeRepository.deleteAllByCriterionId(criterion.get(\"content\").get(\"id\").asText());\n }\n } catch (Exception e) {\n e.printStackTrace();\n throw new ResponseStatusException(HttpStatus.CONFLICT, \"deletion failed\");\n }\n } else {\n // it was a criterion\n try {\n gradeRepository.deleteAllByCriterionId(element.get(\"content\").get(\"id\").asText());\n System.out.println(\"removing grades of criterion: \" + element.get(\"content\").get(\"id\").asText());\n System.out.println(\"A criterion has been removed. Mark all submissions.\");\n } catch (Exception e) {\n throw new ResponseStatusException(HttpStatus.CONFLICT, \"deletion failed\");\n }\n }\n }\n\n // apply patch\n ArrayNode updateArray = objectMapper.createArrayNode();\n updateArray.add(update);\n JsonPatch.applyInPlace(updateArray, rubricJson);\n }\n }\n\n return objectMapper.treeToValue(rubricJson, Rubric.class);\n }", "@PUT\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n public String LinkFunctions(String content) {\n \n JSONObject reply=new JSONObject();\n JSONParser parser= new JSONParser();\n JSONObject input=null;\n LinkInfoContainers lic=new LinkInfoContainers();\n String fednetid=null;\n try \n {\n input=(JSONObject) parser.parse(content);\n lic.setType((String)input.get(\"type\"));\n lic.setToken((String) input.get(\"token\"));//utilizzerò questo elemento per identificare federation tenant\n lic.setCommand((String) input.get(\"Command\"));\n lic.setFa_endpoints(((JSONArray) input.get(\"fa_endpoints\")));\n lic.setNetwork_tables(((JSONArray) input.get(\"network_table\")));//not used for this moment the tables are recalculated\n if(input.containsKey(\"fednetID\"))\n fednetid=(String) input.get(\"fednetID\");\n else\n fednetid=null;\n } catch (ParseException pe) {\n reply.put(\"returncode\", 1);\n reply.put(\"errormesg\", \"INPUT_JSON_UNPARSABLE: OPERATION ABORTED\");\n return reply.toJSONString();\n }\n\n try {\n DBMongo m = new DBMongo();\n String federationUser = m.getTenantName(\"token\", lic.getToken());\n //if no fednetID is provided for the link are doing all fednet of th\n \n OrchestrationManager om = new OrchestrationManager();\n if (fednetid == null) {\n ArrayList<Integer> ids = m.getfedsdnFednetIDs(federationUser);\n Iterator it = ids.iterator();\n while (it.hasNext()) {\n Integer tmp = ((Integer) it.next());\n String result = om.makeLink(tmp.longValue(), federationUser, null, m);// null will be substituted with an ArrayList<JSONObject> netTables that correspond at lic.getNetwork_tables()\n if (!result.equals(\"ok\")) {\n reply.put(\"returncode\", 1);\n String error=(String)reply.get(\"errormesg\");\n error=error+\"Generic Exception: OPERATION ABORTED for fednet with id: \" + tmp.toString();\n reply.put(\"errormesg\",error);\n }\n }\n } else {\n Integer tmp=new Integer(fednetid);\n String result = om.makeLink(tmp.longValue(), federationUser, null, m);// null will be substituted with an ArrayList<JSONObject> netTables that correspond at lic.getNetwork_tables()\n if (!result.equals(\"ok\")) {\n reply.put(\"returncode\", 1);\n reply.put(\"errormesg\", \"Generic Exception: OPERATION ABORTED for fednet with id: \" + tmp.toString());\n }\n \n }\n \n \n //operation needed to complete link requests!\n ////LA FUNZIONE DELL'ORCHESTRATOR DOVRA': ritrovare la lista di tutte le cloud in federazione per il tenant\n ////Per ogni Cloud:\n //////>>richiamare funzione che richiede network table da neutron\n //////[questo perchè il flow prevede che sia inviata la network table al FEDSDN attraverso una chiamata PUT /fednet/ID_FEDNET con action=link\n //////(probabilemente queste informazioni verranno poi restituite in formato non corretto per\n ////// il FA quindi dovranno essere rielaborate prima di rimandarle al FA\n //////)]\n //////>>a questo punto il FEDSDN attraverso l'adapter invoca questo WebService\n } catch (Exception eg) {\n reply.put(\"returncode\", 1);\n reply.put(\"errormesg\", \"Generic Exception: OPERATION ABORTED\");\n return reply.toJSONString();\n }\n if (!reply.containsKey(\"returncode\")) {\n reply.put(\"returncode\", 0);\n reply.put(\"errormesg\", \"None\");\n }\n return reply.toJSONString();\n \n }", "@Test\n\tpublic void listAllConfiguracao() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:configuracao/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PagedInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tConfiguracaoResponse result = restTemplate.postForObject(\n\t\t\t\tREST_SERVICE_URI + \"configuracao/api/configuracao/fetchPage/\", entitys, ConfiguracaoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getConfiguracaoList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfiguracao(id, TabelaEnum.CONFIGURACAO, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"configuracao\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configuracao/insert/\", entitys,\n\t\t\t\tConfiguracaoResponse.class);\n\t\t// Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfiguracao(id, TabelaEnum.CONFIGURACAO, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"configuracao\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configuracao/update/\", entitys,\n\t\t\t\tConfiguracaoResponse.class);\n\t\t// Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPagedInquiryRequest request001 = new PagedInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configuracao/fetchPage/\", entitys,\n\t\t\t\tConfiguracaoResponse.class);\n\t\t// Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfiguracaoList().size(), 1);\n\n\t\t// Assert.assertEquals(result.getConfiguracaoList().get(0).getConfGeral(),(new\n\t\t// ConfigGeral());\n\t\t// Assert.assertEquals(result.getConfiguracaoList().get(0).getConfNFe(),(new\n\t\t// ConfiguracaoNFe());\n\t\t// Assert.assertEquals(result.getConfiguracaoList().get(0).getConfFiscal(),(new\n\t\t// ConfigFiscal());\n\t\t// Assert.assertEquals(result.getConfiguracaoList().get(0).getConfProd(),(new\n\t\t// ConfigProduto());\n\t\t// Assert.assertEquals(result.getConfiguracaoList().get(0).getConfVendas(),(new\n\t\t// ConfigVendas());\n\t\t// Assert.assertEquals(result.getConfiguracaoList().get(0).getConfCMTP(),(new\n\t\t// ConfigSMTP());\n\t\t// Assert.assertEquals(result.getConfiguracaoList().get(0).getConfEntrada(),(new\n\t\t// ConfigEntrada());\n\t\t// Assert.assertEquals(result.getConfiguracaoList().get(0).getConfCarne(),(new\n\t\t// ConfigCarne());\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfiguracao(id, TabelaEnum.CONFIGURACAO, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"configuracao\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configuracao/delete/\", entitys,\n\t\t\t\tConfiguracaoResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfiguracaoList().size(),\n\t\t// count.intValue());\n\n\t}", "public void updateById__customers( String qualificationId, String fk, Map<String, ? extends Object> data, final ObjectCallback<Customer> callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n hashMapObject.putAll(data);\n \n\n \n\n\n \n \n \n invokeStaticMethod(\"prototype.__updateById__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n if(response != null){\n CustomerRepository customerRepo = getRestAdapter().createRepository(CustomerRepository.class);\n if(context != null){\n try {\n Method method = customerRepo.getClass().getMethod(\"addStorage\", Context.class);\n method.invoke(customerRepo, context);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n //customerRepo.addStorage(context);\n }\n Map<String, Object> result = Util.fromJson(response);\n Customer customer = customerRepo.createObject(result);\n\n //Add to database if persistent storage required..\n if(isSTORE_LOCALLY()){\n //http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string\n try {\n Method method = customer.getClass().getMethod(\"save__db\");\n method.invoke(customer);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n }\n\n callback.onSuccess(customer);\n }else{\n callback.onSuccess(null);\n }\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }", "private static void traverse(ItemInfo rootItem, List<ItemInfo> results, int depth, String extraAttributes) throws Exception {\n Objects.requireNonNull(extraAttributes);\n\n final Collection<ItemInfo> children = new ArrayList<>();\n\n// final URL itemURL\n// = UriBuilder\n// .fromUri(rootItem.href.replace(\" \", \"%20\"))\n// .queryParam(\"attributes\", extraAttributes)\n// .build()\n// .toURL();\n\n final HttpURLConnection getItemConnection = (HttpURLConnection) rootItem.href.openConnection();\n getItemConnection.setConnectTimeout(PlatformTools.getDefaultConnectionTimeoutms());\n getItemConnection.setReadTimeout(PlatformTools.getDefaultReadTimeoutms());\n getItemConnection.setRequestProperty(\"Accept\", \"application/hal+json\");\n\n final int itemStatus = getItemConnection.getResponseCode();\n if (HttpURLConnection.HTTP_OK == itemStatus) {\n final String rawItemPageResults = PlatformTools.getContent(getItemConnection);\n final JSONObject itemResult = JSONObject.fromObject(rawItemPageResults);\n results.add(new ItemInfo(itemResult, depth));\n\n final JSONObject embedded = (JSONObject) itemResult.get(\"_embedded\");\n JSONObject collection = null;\n if (null != embedded) {\n collection = (JSONObject) embedded.get(\"loc:collection\");\n }\n // The item to traverse is a folder:\n if (null != collection) {\n // Get the items of the folder pagewise:\n JSONObject embeddedItems = (JSONObject) collection.get(\"_embedded\");\n if (null != embeddedItems) {\n do {\n final Object itemsObject = embeddedItems.get(\"loc:item\");\n if (null != itemsObject) {\n if (itemsObject instanceof JSONArray) {\n final JSONArray items = (JSONArray) itemsObject;\n\n final Collection<ItemInfo> itemPage = new ArrayList<>(items.size());\n for (final Object item : items) {\n final JSONObject folderItem = (JSONObject) item;\n itemPage.add(new ItemInfo(folderItem, depth + 1));\n }\n children.addAll(itemPage);\n } else {\n children.add(new ItemInfo((JSONObject) itemsObject, depth + 1));\n }\n }\n\n final JSONObject linkToNextPage = (JSONObject) collection.getJSONObject(\"_links\").get(\"next\");\n if (null != linkToNextPage) {\n final HttpURLConnection itemNextPageConnection = (HttpURLConnection) new URL(linkToNextPage.getString(\"href\").replace(\" \", \"%20\")).openConnection();\n itemNextPageConnection.setConnectTimeout(PlatformTools.getDefaultConnectionTimeoutms());\n itemNextPageConnection.setReadTimeout(PlatformTools.getDefaultReadTimeoutms());\n itemNextPageConnection.setRequestProperty(\"Accept\", \"application/hal+json\");\n\n final int itemNextPageStatus = itemNextPageConnection.getResponseCode();\n if (HttpURLConnection.HTTP_OK == itemNextPageStatus) {\n final String rawNextItemPageResults = PlatformTools.getContent(itemNextPageConnection);\n collection = JSONObject.fromObject(rawNextItemPageResults);\n embeddedItems = (JSONObject) collection.get(\"_embedded\");\n } else {\n collection = null;\n }\n } else {\n collection = null;\n }\n } while (null != collection && null != embeddedItems);\n }\n }\n\n for (final ItemInfo item : children) {\n if (item.hasChildren) {\n traverse(item, results, depth + 1, extraAttributes);\n }\n }\n\n for (final ItemInfo item : children) {\n if (!item.hasChildren) {\n results.add(item);\n }\n }\n } else {\n LOG.log(Level.INFO, \"Get item failed for item <{0}>. -> {1}\", new Object[] {rootItem.href, PlatformTools.getContent(getItemConnection)});\n }\n }", "public void setEntityVersions(final Versionable entity) {\n \t\tcurrentModel = null;\n \t\tRpcProxy<PagingLoadResult<BaseModelData>> proxy = new RpcProxy<PagingLoadResult<BaseModelData>>() {\n \n \t\t\t@Override\n \t\t\tprotected void load(\n \t\t\t\t\tfinal Object loadConfig,\n \t\t\t\t\tfinal AsyncCallback<PagingLoadResult<BaseModelData>> callback) {\n \t\t\t\tfinal int offset = ((PagingLoadConfig) loadConfig).getOffset();\n \t\t\t\tint limit = ((PagingLoadConfig) loadConfig).getLimit();\n \t\t\t\tpreviousVersionsHasNotPaged = (offset == 0);\n \t\t\t\tpresenter.loadVersions(entity.getId(), offset, limit,\n \t\t\t\t\t\tnew AsyncCallback<PaginatedResults<VersionInfo>>() {\n \t\t\t\t\t\t\t@Override\n \t\t\t\t\t\t\tpublic void onSuccess(\n \t\t\t\t\t\t\t\t\tPaginatedResults<VersionInfo> result) {\n \t\t\t\t\t\t\t\tList<BaseModelData> dataList = new ArrayList<BaseModelData>();\n \t\t\t\t\t\t\t\tfor (VersionInfo version : result.getResults()) {\n \t\t\t\t\t\t\t\t\tBaseModelData model = new BaseModelData();\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_ID,\n \t\t\t\t\t\t\t\t\t\t\tversion.getId());\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_NUMBER,\n \t\t\t\t\t\t\t\t\t\t\tversion.getVersionNumber());\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_LABEL,\n \t\t\t\t\t\t\t\t\t\t\tversion.getVersionLabel());\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_COMMENT,\n \t\t\t\t\t\t\t\t\t\t\tversion.getVersionComment());\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_MOD_ON,\n \t\t\t\t\t\t\t\t\t\t\tversion.getModifiedOn());\n \t\t\t\t\t\t\t\t\tmodel.set(\n \t\t\t\t\t\t\t\t\t\t\tEntityMetadataViewImpl.VERSION_KEY_MOD_BY,\n \t\t\t\t\t\t\t\t\t\t\tversion.getModifiedByPrincipalId());\n \n \t\t\t\t\t\t\t\t\tif (entity.getVersionNumber().equals(version.getVersionNumber()))\n \t\t\t\t\t\t\t\t\t\tcurrentModel = model;\n \t\t\t\t\t\t\t\t\tdataList.add(model);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\tif (currentModel == null) {\n \t\t\t\t\t\t\t\t\t//we have not found the current model. keep paging until it's found\n \t\t\t\t\t\t\t\t\t((PagingLoadConfig)loadConfig).setOffset(offset + VERSION_LIMIT);\n \t\t\t\t\t\t\t\t\tload(loadConfig, callback);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\telse {\n \t\t\t\t\t\t\t\t\tPagingLoadResult<BaseModelData> loadResultData = new BasePagingLoadResult<BaseModelData>(\n \t\t\t\t\t\t\t\t\t\t\tdataList);\n \t\t\t\t\t\t\t\t\tloadResultData.setTotalLength((int) result\n \t\t\t\t\t\t\t\t\t\t\t.getTotalNumberOfResults());\n \t\t\t\t\t\t\t\t\tvToolbar.setVisible(loadResultData\n \t\t\t\t\t\t\t\t\t\t\t.getTotalLength() > VERSION_LIMIT);\n \t\n \t\t\t\t\t\t\t\t\tloadResultData.setOffset(offset);\n \t\t\t\t\t\t\t\t\tcallback.onSuccess(loadResultData);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t\t@Override\n \t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n \t\t\t\t\t\t\t\tcallback.onFailure(caught);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t});\n \t\t\t}\n \n \t\t};\n \t\tfinal BasePagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(\n \t\t\t\tproxy);\n \t\tloader.setRemoteSort(false);\n \t\tloader.setReuseLoadConfig(true);\n \t\tvToolbar.bind(loader);\n \n \t\t// add initial data to the store\n \t\tListStore<BaseModelData> store = new ListStore<BaseModelData>(loader);\n \t\tvGrid.reconfigure(store, setupColumnModel(entity));\n \t\tloader.load();\n \n \t\tvGrid.addListener(Events.Attach, new Listener<GridEvent<ModelData>>() {\n \t\t\tpublic void handleEvent(GridEvent<ModelData> be) {\n \t\t\t\tBasePagingLoadConfig config = new BasePagingLoadConfig();\n \t\t\t\tconfig.setLimit(VERSION_LIMIT);\n \t\t\t\tconfig.setOffset(0);\n \t\t\t\tloader.load(config);\n \t\t\t}\n \t\t});\n \t\t\n \t}", "@Test\n public void testEditTravel() throws Exception{\n doNothing().when(databaseMock).updateTravel(anyInt(), anyInt(), any(Travel.class));\n \n mockMVC.perform(put(\"/user/1/travel/1\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(dto))\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isOk())\n .andExpect(content().contentType(TestUtil.APPLICATION_JSON_UTF8))\n .andExpect(jsonPath(\"$.id\", is(\"1\")))\n .andExpect(jsonPath(\"$.name\", is(dto.getName())))\n .andExpect(jsonPath(\"$.time_interval[0]\", is(dto.getTimeInterval()[0])))\n .andExpect(jsonPath(\"$.time_interval[1]\", is(dto.getTimeInterval()[1])))\n .andExpect(jsonPath(\"$.is_arrival_time\", is(dto.isArrivalTime())))\n .andExpect(jsonPath(\"$.recurring[0]\", is(dto.getRecurring()[0])))\n .andExpect(jsonPath(\"$.recurring[1]\", is(dto.getRecurring()[1])))\n .andExpect(jsonPath(\"$.recurring[2]\", is(dto.getRecurring()[2])))\n .andExpect(jsonPath(\"$.recurring[3]\", is(dto.getRecurring()[3])))\n .andExpect(jsonPath(\"$.recurring[4]\", is(dto.getRecurring()[4])))\n .andExpect(jsonPath(\"$.recurring[5]\", is(dto.getRecurring()[5])))\n .andExpect(jsonPath(\"$.recurring[6]\", is(dto.getRecurring()[6])))\n .andExpect(jsonPath(\"$.startpoint.street\", is(dto.getStartpoint().getStreet())))\n .andExpect(jsonPath(\"$.startpoint.housenumber\", is(dto.getStartpoint().getHouseNumber())))\n .andExpect(jsonPath(\"$.startpoint.city\", is(dto.getStartpoint().getCity())))\n .andExpect(jsonPath(\"$.startpoint.country\", is(dto.getStartpoint().getCountry())))\n .andExpect(jsonPath(\"$.startpoint.postal_code\", is(dto.getStartpoint().getPostalCode())))\n .andExpect(jsonPath(\"$.startpoint.coordinates.lat\", is(dto.getStartpoint().getCoordinates().getLat())))\n .andExpect(jsonPath(\"$.startpoint.coordinates.lon\", is(dto.getStartpoint().getCoordinates().getLon())))\n .andExpect(jsonPath(\"$.endpoint.street\", is(dto.getEndpoint().getStreet())))\n .andExpect(jsonPath(\"$.endpoint.housenumber\", is(dto.getEndpoint().getHouseNumber())))\n .andExpect(jsonPath(\"$.endpoint.city\", is(dto.getEndpoint().getCity())))\n .andExpect(jsonPath(\"$.endpoint.country\", is(dto.getEndpoint().getCountry())))\n .andExpect(jsonPath(\"$.endpoint.postal_code\", is(dto.getEndpoint().getPostalCode())))\n .andExpect(jsonPath(\"$.endpoint.coordinates.lat\", is(dto.getEndpoint().getCoordinates().getLat())))\n .andExpect(jsonPath(\"$.endpoint.coordinates.lon\", is(dto.getEndpoint().getCoordinates().getLon())));\n ArgumentCaptor<Travel> travelCaptor = ArgumentCaptor.forClass(Travel.class);\n ArgumentCaptor<Integer> userIdCaptor = ArgumentCaptor.forClass(Integer.class);\n ArgumentCaptor<Integer> travelIdCaptor = ArgumentCaptor.forClass(Integer.class);\n verify(databaseMock, times(1)).getUser(1);\n verify(databaseMock, times(1)).updateTravel(userIdCaptor.capture(), travelIdCaptor.capture(), travelCaptor.capture());\n verifyNoMoreInteractions(databaseMock);\n \n assertThat(userIdCaptor.getValue(), is(1));\n assertThat(travelIdCaptor.getValue(), is(1));\n \n Travel captTravel = travelCaptor.getValue();\n assertThat(captTravel.getName(), is(dto.getName()));\n \n }", "public void updateProductByRest(long id, HttpServletRequest request) {\n // set URL\n String url = String.format(\"%s://%s:%d/products/\" + id, request.getScheme(), request.getServerName(), request.getServerPort());\n // execute rest api update product request using RestTemplate.put method\n HttpEntity<Product> entity = getHttpEntity(request);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.put(url, entity, id);\n }", "public void updateContext() {\n LOG.debug(\"Updating context...\");\n List<Long> sids;\n try {\n sids = getOrderedListOfChainNodes(root, true);\n } catch (KeeperException | InterruptedException ignore) {\n LOG.error(\"Failed to update context.Exception: \", ignore);\n return;\n }\n // this should not be case on replica server\n if (sids.size() == 0) {\n // head = tail = -1 = chain empty :: used by TailChainClient\n headSid.set(-1);\n tailSid.set(-1);\n predecessorSid.set(-1);\n successorSid.set(-1);\n return;\n }\n headSid.set(sids.get(0));\n tailSid.set(sids.get(sids.size() - 1));\n // position of this replica in chain\n int myIndex = sids.indexOf(mySid);\n // if client is calling this method\n if (myIndex == -1) {\n return;\n }\n // except head replica all other nodes have predecessor replica\n if (myIndex == 0) {\n predecessorSid.set(-1); // -1 indicates no predecessor\n } else {\n predecessorSid.set(sids.get(myIndex - 1));\n }\n // except tail replica all other nodes have successor replica\n if (myIndex == sids.size() - 1) {\n successorSid.set(-1); // -1 indicates no successor\n } else {\n successorSid.set(sids.get(myIndex + 1));\n }\n }", "@Override\n public void runTask() {\n final String aid = agencyId();\n // Make API call\n final Value payload = NextBusApi.getVehiclesForAgency(Assets.httpClient(), aid, this.lastTime);\n // Extract information for all vehicles and the payload's timestamp\n final List<Value> vehicleInfos = new ArrayList<>(payload.length());\n for (Item i : payload) {\n if (i.head() instanceof Attr) {\n final String label = i.head().key().stringValue(null);\n if (\"vehicle\".equals(label)) {\n vehicleInfos.add(i.head().toValue());\n } else if (\"lastTime\".equals(label)) {\n this.lastTime = i.head().toValue().get(\"time\").longValue();\n }\n }\n }\n // Relay each vehicleInfo to the appropriate VehicleAgent\n int i = 0;\n for (Value vehicleInfo : vehicleInfos) {\n command(\"/vehicle/\" + aid + \"/\" + vehicleInfo.get(\"id\").stringValue(),\n \"addMessage\",\n // lastTime came separately, manually add it to each vehicleInfo\n vehicleInfo.updatedSlot(\"timestamp\", this.lastTime));\n i++;\n }\n System.out.println(nodeUri() + \": relayed info for \" + i + \" vehicles\");\n }", "public interface RestService {\n\n //\n //\n // AUTH\n //\n //\n @POST(\"auth\")\n Call<AccessToken> logIn(@Body Credentials credentials);\n\n @POST(\"users\")\n Call<Void> signUp(@Body Credentials credentials);\n\n //\n //\n // Fetch Data\n //\n //\n @GET(\"data\")\n Call<CategoriesWrapper> fetchData();\n\n @POST(\"categories\")\n Call<Category> addCategory(@Body AddCategoryWrapper wrapper);\n\n @POST(\"feeds\")\n Call<Void> subscribeFeed(@Body AddFeedWrapper wrapper);\n\n @DELETE(\"feeds/{id_feed}\")\n Call<Void> unsubscribeFeed(@Path(\"id_feed\") Integer channelId);\n\n //\n //\n // Update Read Items. Mark as read.\n //\n //\n @PUT(\"items\")\n Call<Void> updateReadAllItems(@Body ItemStateWrapper wrapper);\n\n @PUT(\"feeds/{id_feed}/items/\")\n Call<Void> updateReadItemsByChannelId(@Path(\"id_feed\") Integer channelId,\n @Body ItemStateWrapper wrapper);\n\n @PUT(\"items/{id_item}\")\n Call<Void> updateStateItem(@Path(\"id_item\") Integer itemId,\n @Body ItemStateWrapper wrapper);\n}", "@Test\n\tpublic void listAllFuncionario() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:pessoa/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new FuncionarioInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tFuncionarioResponse result = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/funcionario/fetchPage/\",\n\t\t\t\tentitys, FuncionarioResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getFuncionarioList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertFuncionario(id, TabelaEnum.FUNCIONARIO, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"funcionario\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/funcionario/insert/\", entitys,\n\t\t\t\tFuncionarioResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertFuncionario(id, TabelaEnum.FUNCIONARIO, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"funcionario\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/funcionario/update/\", entitys,\n\t\t\t\tFuncionarioResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tFuncionarioInquiryRequest request001 = new FuncionarioInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/funcionario/fetchPage/\", entitys,\n\t\t\t\tFuncionarioResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getFuncionarioList().size(), 1);\n\n\t\t//Assert.assertEquals(result.getFuncionarioList().get(0).getNome(), \"nome_1 - UPDATE\");\n\t\t//Assert.assertEquals(result.getFuncionarioList().get(0).getNomePai(), \"nomePai_2 - UPDATE\");\n\t\t//Assert.assertEquals(result.getFuncionarioList().get(0).getNomeMae(), \"nomeMae_3 - UPDATE\");\n\t\t//Assert.assertEquals(result.getFuncionarioList().get(0).getNomeConjugue(), \"nomeConjugue_4 - UPDATE\");\n\t\t//Assert.assertEquals(result.getFuncionarioList().get(0).getFoto(), \"foto_8 - UPDATE\");\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertFuncionario(id, TabelaEnum.FUNCIONARIO, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"funcionario\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/funcionario/delete/\", entitys,\n\t\t\t\tFuncionarioResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getFuncionarioList().size(), count.intValue());\n\n\t}", "@Test\n public void crudFunctionality() throws Exception {\n AdventureMessage msg = new AdventureMessage();\n msg.setMessage(\"TEST MESSAGE DELETE ME\");\n msg.setRarity(10);\n HashMap responseCreate = this.restTemplate.postForObject(\"http://localhost:\" + port + \"/adventure-message/save\",\n msg,\n HashMap.class);\n // do assertions\n assertTrue(\"response contains body key\", responseCreate.containsKey(\"status\"));\n assertTrue(\"response contains status key\", responseCreate.containsKey(\"body\"));\n\n // todo post\n HashMap responseFind = this.restTemplate.postForObject(\"http://localhost:\" + port + \"/adventure-message/FindByMessageFuzzy\",\n new HashMap<String, String>() {{ put(\"message\", \"TEST MESSAGE DELETE ME\"); }},\n HashMap.class);\n // do assertions\n assertTrue(\"response contains body key\", responseCreate.containsKey(\"status\"));\n assertTrue(\"response contains status key\", responseCreate.containsKey(\"body\"));\n\n // todo grab the msg id\n System.out.println(\"what does this body look like?\" + responseFind.get(\"body\"));\n//\n// // todo delete\n// HashMap responseDelete = this.restTemplate.getForObject(\"http://localhost:\" + port + \"/adventure-message/delete/\" + \"<id>\",\n// HashMap.class);\n// // do assertions\n// assertTrue(\"response contains body key\", responseCreate.containsKey(\"status\"));\n// assertTrue(\"response contains status key\", responseCreate.containsKey(\"body\"));\n\n }", "@Override\n public void passivateObject(MongoTemplate obj) throws Exception {\n \n }", "@Test\n public void updateBinding() throws Exception {\n\n final URI entityURI =\n getClient().newURIBuilder(SERVICE_URI).appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(1).build();\n\n // ESKeyNav(1).NavPropertyETKeyNavOne = ESKeyNav(2)\n // ESKeyNav(1).NavPropertyETKeyNavMany = { ESKeyNav(1), ESKeyNav(2) }\n // => Replace NavPropertyETKeyNavOne with ESKeyNav(3)\n // => Add to NavPropertyETKeyNavOne ESKeyNav(3)\n final ClientEntity entity = getFactory().newEntity(ET_KEY_NAV);\n final ClientLink navLinkOne =\n getFactory().newEntityNavigationLink(NAV_PROPERTY_ET_KEY_NAV_ONE, getClient().newURIBuilder(SERVICE_URI)\n .appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(3).build());\n final ClientLink navLinkMany =\n getFactory().newEntitySetNavigationLink(NAV_PROPERTY_ET_KEY_NAV_MANY, getClient().newURIBuilder(SERVICE_URI)\n .appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(3).build());\n entity.addLink(navLinkOne);\n entity.addLink(navLinkMany);\n\n final EdmEnabledODataClient edmEnabledClient = getEdmEnabledClient();\n final ODataEntityUpdateResponse<ClientEntity> updateResponse =\n edmEnabledClient.getCUDRequestFactory().getEntityUpdateRequest(entityURI, UpdateType.PATCH, entity).execute();\n final String cookie = updateResponse.getHeader(HttpHeader.SET_COOKIE).iterator().next();\n\n // Check if update was successful\n final URI entityGetURI =\n getClient().newURIBuilder(SERVICE_URI).appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(1).expand(\n NAV_PROPERTY_ET_KEY_NAV_ONE, NAV_PROPERTY_ET_KEY_NAV_MANY).build();\n final ODataEntityRequest<ClientEntity> entityRequest =\n edmEnabledClient.getRetrieveRequestFactory().getEntityRequest(entityGetURI);\n entityRequest.addCustomHeader(HttpHeader.COOKIE, cookie);\n final ODataRetrieveResponse<ClientEntity> entityResponse = entityRequest.execute();\n\n assertShortOrInt(3, entityResponse.getBody().getNavigationLink(NAV_PROPERTY_ET_KEY_NAV_ONE)\n .asInlineEntity().getEntity().getProperty(PROPERTY_INT16).getPrimitiveValue().toCastValue(Short.class));\n assertEquals(3, entityResponse.getBody().getNavigationLink(NAV_PROPERTY_ET_KEY_NAV_MANY).asInlineEntitySet()\n .getEntitySet().getEntities().size());\n\n Iterator<ClientEntity> iterator = entityResponse.getBody().getNavigationLink(NAV_PROPERTY_ET_KEY_NAV_MANY)\n .asInlineEntitySet().getEntitySet().getEntities().iterator();\n assertEquals(Short.valueOf((short) 1), iterator.next().getProperty(PROPERTY_INT16).getPrimitiveValue()\n .toCastValue(Short.class));\n assertEquals(Short.valueOf((short) 2), iterator.next().getProperty(PROPERTY_INT16).getPrimitiveValue()\n .toCastValue(Short.class));\n assertEquals(Short.valueOf((short) 3), iterator.next().getProperty(PROPERTY_INT16).getPrimitiveValue()\n .toCastValue(Short.class));\n }", "@Override\n\tpublic void updateAll() {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\t\t\t\n\t\t\tupdateAccounting(request);\t\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of each peer was performed, \n\t\t * we now update the lastUpdatedTime of each accounting info. \n\t\t */\n\t\tfor(AccountingInfo accInfo : accountingList)\n\t\t\taccInfo.setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\t\t\n\t\tfinishRequests();\n\t}", "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "public void testImportAutoCheckoutNodes() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. first create some content to update.\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n testFile = getTestFile(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport3.json\"));\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n props.put(SlingPostConstants.RP_CHECKIN, \"true\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, new NameValuePairList(props), null, true,\n \t\ttestFile, SlingPostConstants.RP_CONTENT_FILE, null);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert that the versionable node is checked in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\n\n\n\t\t//2. try an update with the :autoCheckout value set to false\n List<NameValuePair> postParams = new ArrayList<NameValuePair>();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n \t\t\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"false\"));\n postParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CONFLICT, postParams, \"Expected error from VersionException\");\n\n\t\t//3. now try an update with the :autoCheckout value set to true\n postParams.clear();\n postParams.add(new NameValuePair(SlingPostConstants.RP_OPERATION,\n\t\t\t\tSlingPostConstants.OPERATION_IMPORT));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT_TYPE, \"json\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CHECKIN, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_AUTO_CHECKOUT, \"true\"));\n\t\tpostParams.add(new NameValuePair(SlingPostConstants.RP_CONTENT, \"{ \\\"abc\\\": \\\"def2\\\" }\"));\n\t\tpostParams.add(new NameValuePair(\":http-equiv-accept\", \"application/json,*/*;q=0.9\"));\n HttpMethod post = assertPostStatus(importedNodeUrl, HttpServletResponse.SC_CREATED, postParams, \"Expected 201 status\");\n \n String responseBodyAsString = post.getResponseBodyAsString();\n\t\tJsonObject responseJSON = JsonUtil.parseObject(responseBodyAsString);\n JsonArray changes = responseJSON.getJsonArray(\"changes\");\n JsonObject checkoutChange = changes.getJsonObject(0);\n assertEquals(\"checkout\", checkoutChange.getString(\"type\"));\n\t\t\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\t\t\n\t\t//make sure it was really updated\n\t\tassertEquals(\"def2\", jsonObj2.getString(\"abc\"));\n\t\t\n\t\t//assert that the versionable node is checked back in.\n\t\tassertFalse(jsonObj.getBoolean(\"jcr:isCheckedOut\"));\t\t\n }", "@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void testUpdatecompanyDetails() throws JsonProcessingException {\n\t\tCompany company = new Company(\"DataSolutions\", \"Marthahalli\",\n\t\t\t\t\"Bangalore\", \"India\", \"9880440671\");\n\t\tcompany = companyRepository.save(company);\n\n\t\tInteger companyId = company.getCompanyId();\n\n\t\t// Now create Request body with the updated company Data.\n\t\tMap<String, Object> requestBody = new HashMap<String, Object>();\n\t\trequestBody.put(\"name\", \"DataSolutions\");\n\t\trequestBody.put(\"adress\", \"JCRoad\");\n\t\trequestBody.put(\"city\", \"Chennai\");\n\t\trequestBody.put(\"country\", \"India\");\n\t\trequestBody.put(\"phoneNumber\", \"9456788999\");\n\t\tHttpHeaders requestHeaders = new HttpHeaders();\n\t\trequestHeaders.setContentType(MediaType.APPLICATION_JSON);\n\n\t\t// Creating http entity object with request body and headers\n\t\tHttpEntity<String> httpEntity = new HttpEntity<String>(\n\t\t\t\tOBJECT_MAPPER.writeValueAsString(requestBody), requestHeaders);\n\n\t\t// Invoking the API\n\t\tMap<String, Object> apiResponse = (Map<String, Object>) restTemplate\n\t\t\t\t.exchange(\n\t\t\t\t\t\t\"http://localhost:8888/companies/update/\" + companyId,\n\t\t\t\t\t\tHttpMethod.PUT, httpEntity, Map.class,\n\t\t\t\t\t\tCollections.EMPTY_MAP).getBody();\n\n\t\tassertNotNull(apiResponse);\n\t\tassertTrue(!apiResponse.isEmpty());\n\n\t\t// Asserting the response of the API.\n\t\tString message = apiResponse.get(\"adress\").toString();\n\t\tassertEquals(\"JCRoad\", message);\n\n\t\t// Fetching the Company details directly from the DB to verify the API\n\t\t// succeeded in updating the company details\n\t\tCompany companyFromDb = companyRepository.findOne(companyId);\n\t\tassertEquals(requestBody.get(\"name\"), companyFromDb.getName());\n\t\tassertEquals(requestBody.get(\"adress\"), \"JCRoad\");\n\t\tassertEquals(requestBody.get(\"city\"), \"Chennai\");\n\n\t\t// Delete the data added for testing\n\t\tcompanyRepository.delete(companyFromDb.getCompanyId());\n\n\t}", "public interface OrderService {\n\n /**\n * Returns route time\n * @param routeDTO route data transfer object\n * @param orderDTO order dto for building route\n * @return\n */\n Long getRouteTime(RouteDTO routeDTO, OrderDTO orderDTO);\n\n /**\n * Returns drivers from database by specified order duration and order dto\n * @param time order duration\n * @param orderDTO order dto for building a route\n * @return linked hash map, key - drivers' id, value - drivers\n */\n LinkedHashMap<Long, Driver> getDriversForOrder(Long time, OrderDTO orderDTO);\n\n /**\n * Returns trucks from database by specified weight of cargoes\n * @param weight cargoes's weight\n * @return linked hash map, key - trucks' id, value - trucks\n */\n LinkedHashMap<Long, Truck> getTrucksForOrder(Long weight);\n\n /**\n * Specifies drop locations for picked up cargoes\n * @param routeDTO route dto with route points\n * @param points temp collection for building sub route\n */\n void setDropLocations(RouteDTO routeDTO, List<RoutePointDTO> points);\n\n /**\n * Returns weight of cargoes\n * @param routePointDTO temp route point dto with cargo or drop location\n * @param points already built route as list of ordered route points\n * @param weight previous weight data before adding new route point\n * @return weight\n */\n Long getWeight(RoutePointDTO routePointDTO, List<RoutePointDTO> points, Long weight);\n\n /**\n * Adds new route point to the route\n * @param routePointDTO new route point dto\n * @param routeDTO route data transfer object\n * @param points route as an ordered list of route points dtos\n */\n void newRoutePoint(RoutePointDTO routePointDTO, RouteDTO routeDTO, List<RoutePointDTO> points);\n\n /**\n * Returns all cities from database\n * @return linked hash map of cities, key - cities' id\n */\n LinkedHashMap<Long, City> getAllCitiesMap();\n\n /**\n * Adds order to a database\n * @param routeDTO route for building path for the order\n * @param orderDTO complex order data\n */\n void saveOrder(RouteDTO routeDTO, OrderDTO orderDTO);\n\n /**\n * Returns orders' from database as dtos\n * @return unsorted list of orders' data transfer objects\n */\n List<OrderDTO> getAllOrdersDTO();\n\n /**\n * Returns route points for order\n * @param order order entity for getting specified route points\n * @return unsorted list of route points\n */\n List<RoutePoint> getRoutePointsForOrder(Order order);\n\n /**\n * Returns cities dto adopted for RESTful architecture\n * @param id order id for retrieving data from database\n * @return unsorted list of cities as dtos adopted for RESTful architecture\n */\n List<CityDTORest> getRoutePointsForOrder(Long id);\n\n /**\n * Returns cargoes from database for the given order dto\n * @param orderDTO order dto\n * @return unsorted list of cargoes\n */\n List<Cargo> getCargoesForOrder(OrderDTO orderDTO);\n\n /**\n * Deletes order from database\n * @param id order's id for deletion\n */\n void deleteOrder(Long id);\n\n /**\n * Updates order\n * @param order order entity for updating\n */\n void updateOrder(Order order);\n\n /**\n * Return orders as dtos adopted for RESTful architecture\n * @return unsorted list of orders dtos adopted for RESTful architecture\n */\n List<OrderDTORest> getAllOrdersDTORest();\n\n /**\n * Delete temp route point dto from the route dto\n * @param routePoint temp route point dto\n * @param routeDTO route dto collected already built route\n */\n void deleteRoutePoint(String routePoint, RouteDTO routeDTO);\n\n /**\n * Processes new route point, recalculates distance and weight\n * @param orderDTO order dto\n * @param routeDTO route dto\n * @param routePointDTO new route point\n * @return temp cargoes weight\n */\n Long tempProcessPoint(OrderDTO orderDTO, RouteDTO routeDTO, RoutePointDTO routePointDTO);\n}", "@Test\n public void shouldUpdatePayment() throws Exception {\n ResponseEntity<String> response = postTestPaymentAndGetResponse();\n String location = getLocationHeader(response);\n\n //and: a modified version of that payment:\n String newOrganisationId = \"newOrganisationId\";\n testPaymentAsObject.setOrganisationId(newOrganisationId);\n String newJson = gson.toJson(testPaymentAsObject);\n\n //when: the payment is updated:\n HttpEntity<String> putEntity = getHttpEntityForTestRequest(newJson);\n ResponseEntity putResponse = restTemplate.exchange(location, HttpMethod.PUT, putEntity, String.class);\n //then: the response status code should be 'no content'\n assertEquals(HttpStatus.OK, putResponse.getStatusCode());\n\n //when: the payment is fetched following the update:\n Payment updatedPayment = restTemplate.getForEntity(location, Payment.class).getBody();\n\n //then: the data should have been modified:\n assertEquals(\"newOrganisationId\", updatedPayment.getOrganisationId());\n }", "public TaskV2(RestTemplate restTemplate, String documentId) {\n var todo = restTemplate.getForObject(String.format(\"https://jsonplaceholder.typicode.com/todos/%s\", documentId), Todo.class);\n title = todo.getTitle().contains(\"ozay\") ? \"duman\": todo.getTitle();\n }", "public interface ExprBesionRS\n extends GenericService<ExprBesion, Long>\n{\n\n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"valider\")\n public ExprBesion confirmer(@Context HttpHeaders headers,ExprBesion object);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"annule\")\n public ExprBesion annuler(@Context HttpHeaders headers,ExprBesion object);\n}", "@Test\n\tpublic void listAllMedico() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:pessoa/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new MedicoInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tMedicoResponse result = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/medico/fetchPage/\", entitys,\n\t\t\t\tMedicoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getMedicoList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertMedico(id, TabelaEnum.MEDICO, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"medico\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/medico/insert/\", entitys,\n\t\t\t\tMedicoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertMedico(id, TabelaEnum.MEDICO, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"medico\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/medico/update/\", entitys,\n\t\t\t\tMedicoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tMedicoInquiryRequest request001 = new MedicoInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/medico/fetchPage/\", entitys,\n\t\t\t\tMedicoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getMedicoList().size(), 1);\n\n\t\t//Assert.assertEquals(result.getMedicoList().get(0).getNome(), \"nome_1 - UPDATE\");\n\t\t//Assert.assertEquals(result.getMedicoList().get(0).getNomePai(), \"nomePai_2 - UPDATE\");\n\t\t//Assert.assertEquals(result.getMedicoList().get(0).getNomeMae(), \"nomeMae_3 - UPDATE\");\n\t\t//Assert.assertEquals(result.getMedicoList().get(0).getNomeConjugue(), \"nomeConjugue_4 - UPDATE\");\n\t\t//Assert.assertEquals(result.getMedicoList().get(0).getFoto(), \"foto_8 - UPDATE\");\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertMedico(id, TabelaEnum.MEDICO, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"medico\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"pessoa/api/medico/delete/\", entitys,\n\t\t\t\tMedicoResponse.class);\n\t\t//Assert.assertEquals(result.isOperationSuccess(), true);\n\t\t//Assert.assertEquals(result.getMedicoList().size(), count.intValue());\n\n\t}", "@Test\r\n\tpublic void givenResourceUrl_whenSendGetForRequestEntity_thenStatusOk() throws IOException {\n\r\n\t\tfinal Logger log = LoggerFactory.getLogger(UserDataRestTemplateTest.class);\r\n\r\n\t\tRestTemplate restTemplate = new RestTemplate();\r\n\t\tMap<String, String> response = (Map<String, String>) restTemplate\r\n\t\t\t\t.getForObject(\"http://services.groupkt.com/country/get/iso2code/IN\", Map.class);\r\n\t\tlog.info(\"==== RESTful API Response using Spring RESTTemplate START =======\");\r\n\t\tlog.info(response.toString());\r\n\t\tlog.info(\"==== RESTful API Response using Spring RESTTemplate END =======\");\r\n\r\n\t}", "private void update(final ServiceReference serviceReference) {\n final ServiceRegistration proxyRegistration;\n synchronized (this.proxies) {\n proxyRegistration = this.proxies.get(serviceReference);\n }\n\n if (proxyRegistration != null) {\n log.debug(\"Updating {}\", proxyRegistration);\n proxyRegistration.setProperties(copyServiceProperties(serviceReference));\n }\n }", "@Override\n protected Response doUpdate(Long id, JSONObject data) {\n return null;\n }", "@Test\n\tpublic void listAllConfigAlertas() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:configuracao/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PagedInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tConfigAlertasResponse result = restTemplate.postForObject(\n\t\t\t\tREST_SERVICE_URI + \"configuracao/api/configAlertas/fetchPage/\", entitys, ConfigAlertasResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getConfigAlertasList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigAlertas(id, TabelaEnum.CONFIGALERTAS, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"configAlertas\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configAlertas/insert/\", entitys,\n\t\t\t\tConfigAlertasResponse.class);\n\t\t// Assert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigAlertas(id, TabelaEnum.CONFIGALERTAS, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"configAlertas\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configAlertas/update/\", entitys,\n\t\t\t\tConfigAlertasResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPagedInquiryRequest request001 = new PagedInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configAlertas/fetchPage/\", entitys,\n\t\t\t\tConfigAlertasResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfigAlertasList().size(), 1);\n\n\t\t/// Assert.assertEquals(result.getConfigAlertasList().get(0).getEstoqMin(),(1001);\n\t\t// Assert.assertEquals(result.getConfigAlertasList().get(0).getEstoqMax(),(1002);\n\t\t// Assert.assertEquals(result.getConfigAlertasList().get(0).getErroNFe(),(1003);\n\t\t// Assert.assertEquals(result.getConfigAlertasList().get(0).getPdCompra(),(1004);\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfigAlertas(id, TabelaEnum.CONFIGALERTAS, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"configAlertas\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configAlertas/delete/\", entitys,\n\t\t\t\tConfigAlertasResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfigAlertasList().size(),\n\t\t// count.intValue());\n\n\t}", "public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }", "public void rebuildJson(Long id, String filter) {\n List<Product> products = new ArrayList<>();\n if (id > 0) {\n Product product = productRepository.find(id);\n if (product != null) {\n products.add(product);\n }\n } else {\n List<Product> prods = productRepository.all().filter(filter).fetch();\n if (prods != null && prods.size() > 0) {\n products.addAll(prods);\n }\n }\n final AtomicInteger count = new AtomicInteger(products.size());\n final AtomicInteger progress = new AtomicInteger(0);\n products.forEach(\n product -> {\n LOG.debug(\n String.format(\n \"Process %04d|%d %s\",\n progress.incrementAndGet(), count.get(), product.getCode()));\n String attr = product.getAttrs();\n if (attr != null) {\n JsonReader jsonReader = Json.createReader(new StringReader(attr));\n JsonObject attrJsonObject = jsonReader.readObject();\n String url = attrJsonObject.getString(\"variant_url\");\n if (url != null) {\n\n Map<String, String> variantMap =\n Stream.of(url.split(\"&\"))\n .map(str -> str.split(\"=\"))\n .collect(toMap(entry -> entry[0], entry -> entry[1]));\n JsonObjectBuilder variantObj = getBuilder();\n variantMap\n .entrySet()\n .forEach(\n e -> {\n String code = e.getValue();\n String name = attrJsonObject.getString(e.getKey());\n variantObj.add(\n e.getKey(), getBuilder().add(\"code\", code).add(\"name\", name).build());\n });\n JsonObjectBuilder newAttrs = getBuilder();\n attrJsonObject.entrySet().forEach(e -> newAttrs.add(e.getKey(), e.getValue()));\n newAttrs.add(\"variant_props\", variantObj.build());\n // String attrsString = newAttrs.build().toString();\n product.setAttrs(newAttrs.build().toString());\n productRepository.save(product);\n }\n }\n });\n }", "@Test\n public void edit() throws RazorpayException{\n JSONObject request = new JSONObject(\"\" +\n \"{\\\"notes\\\":\" +\n \"{\\\"notes_key_1\\\":\\\"BeammeupScotty.\\\",\" +\n \"\\\"notes_key_2\\\":\\\"Engage\\\"}}\");\n\n String mockedResponseJson = \"{\\n\" +\n \" \\\"id\\\": \"+REFUND_ID+\",\\n\" +\n \" \\\"entity\\\": \\\"refund\\\",\\n\" +\n \" \\\"amount\\\": 300100,\\n\" +\n \" \\\"currency\\\": \\\"INR\\\",\\n\" +\n \" \\\"payment_id\\\": \\\"pay_FIKOnlyii5QGNx\\\",\\n\" +\n \" \\\"notes\\\": {\\n\" +\n \" \\\"notes_key_1\\\": \\\"Beam me up Scotty.\\\",\\n\" +\n \" \\\"notes_key_2\\\": \\\"Engage\\\"\\n\" +\n \" },\\n\" +\n \" \\\"receipt\\\": null,\\n\" +\n \" \\\"acquirer_data\\\": {\\n\" +\n \" \\\"arn\\\": \\\"10000000000000\\\"\\n\" +\n \" },\\n\" +\n \" \\\"created_at\\\": 1597078124,\\n\" +\n \" \\\"batch_id\\\": null,\\n\" +\n \" \\\"status\\\": \\\"processed\\\",\\n\" +\n \" \\\"speed_processed\\\": \\\"normal\\\",\\n\" +\n \" \\\"speed_requested\\\": \\\"optimum\\\"\\n\" +\n \"}\";\n\n try {\n mockResponseFromExternalClient(mockedResponseJson);\n mockResponseHTTPCodeFromExternalClient(200);\n Refund fetch = refundClient.edit(REFUND_ID, request);\n assertNotNull(fetch);\n assertEquals(REFUND_ID,fetch.get(\"id\"));\n assertEquals(\"refund\",fetch.get(\"entity\"));\n assertEquals(300100,(int)fetch.get(\"amount\"));\n assertEquals(\"INR\",fetch.get(\"currency\"));\n String editRequest = getHost(String.format(Constants.REFUND,REFUND_ID));\n verifySentRequest(true, request.toString(), editRequest);\n } catch (IOException e) {\n assertTrue(false);\n }\n }", "public interface LignePlanningFormationRS\r\n extends GenericService<LignePlanningFormation, Long>\r\n{\r\n\r\n\t@PUT\r\n @Consumes({MediaType.APPLICATION_JSON})\r\n @Produces({MediaType.APPLICATION_JSON})\r\n @Path(\"demarre\")\r\n public LignePlanningFormation demarrer(@Context HttpHeaders headers,LignePlanningFormation entity);\r\n\t\r\n\r\n}", "@Test\n public void updateConvoMsgRest() {\n Conversation convo = new Conversation();\n convo.setBlog(MAIN_BLOG_NAME);\n convo = restTemplate.postForObject(String.format(\"%s/api/conversations/%s\", baseUri(), MAIN_BLOG_NAME), convo,\n Conversation.class);\n ConversationMessage original = new ConversationMessage();\n original.setConversationId(convo.getId());\n\n ConversationMessage modified = restTemplate.postForObject(\n String.format(\"%s/api/conversations/%s/messages\", baseUri(), MAIN_BLOG_NAME), original,\n ConversationMessage.class);\n assertThat(modified).isNotNull();\n\n modified.setMessage(\"message\");\n modified.setReceived(true);\n modified.setTimestamp(25L);\n modified.setType(\"IMAGE\");\n\n restTemplate.put(\n String.format(\"%s/api/conversations/%s/messages/%d\", baseUri(), MAIN_BLOG_NAME, modified.getId()),\n modified);\n\n ResponseEntity<ConversationMessage[]> responseEntity = restTemplate\n .getForEntity(String.format(\"%s/api/conversations/%s/messagesForConvoId/%d/messages\", baseUri(),\n MAIN_BLOG_NAME, convo.getId()), ConversationMessage[].class);\n ConversationMessage[] finalFromServer = responseEntity.getBody();\n\n assertThat(finalFromServer).isNotEmpty();\n assertThat(finalFromServer.length).isEqualTo(1);\n assertThat(finalFromServer[0]).isEqualToComparingFieldByField(modified);\n }", "@Test\n\tpublic void listAllConfiguracaoNFe() throws KeyManagementException, UnrecoverableKeyException, KeyStoreException,\n\t\t\tNoSuchAlgorithmException, CertificateException, Exception {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:configuracao/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PagedInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tConfiguracaoNFeResponse result = restTemplate.postForObject(\n\t\t\t\tREST_SERVICE_URI + \"configuracao/api/configuracaoNFe/fetchPage/\", entitys,\n\t\t\t\tConfiguracaoNFeResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getConfiguracaoNFeList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfiguracaoNFe(id, TabelaEnum.CONFIGURACAONFE, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"configuracaoNFe\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configuracaoNFe/insert/\", entitys,\n\t\t\t\tConfiguracaoNFeResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfiguracaoNFe(id, TabelaEnum.CONFIGURACAONFE, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"configuracaoNFe\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configuracaoNFe/update/\", entitys,\n\t\t\t\tConfiguracaoNFeResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPagedInquiryRequest request001 = new PagedInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configuracaoNFe/fetchPage/\", entitys,\n\t\t\t\tConfiguracaoNFeResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().size(), 20);\n\n\t\t// NFeConfigTeste config = new NFeConfigTeste();\n\t\t// NFStatusServicoConsultaRetorno retorno = new\n\t\t// WSFacade(config).consultaStatus(NFUnidadeFederativa.MG,\n\t\t// NFModelo.NFE);\n\t\t// System.out.println(retorno.getStatus());\n\t\t// System.out.println(retorno.getMotivo());\n\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getPresCompr(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getDestConsFinal(),(1002);\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getPreencherDataHora(),(1003);\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getIcmsPadrao(),(10.00);\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getIpiPadrao(),(10.00);\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getPisPadrao(),(10.00);\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getCofinsPadrao(),(10.00);\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getAmbienteEnvio(),(new\n\t\t// DoisValores());\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getServMsmNota(),(10.00);\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getSerieEnvio(),\"\"serieEnvio_10\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getAnexarXmlEmail(),(1011);\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getIdCSC(),\"\"idCSC_12\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getCSC(),\"\"cSC_13\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getInformacaoAdd(),\"\"informacaoAdd_14\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getCertificado(),\"\"certificado_15\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getSenha(),\"\"senha_16\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getSalvarSenha(),(1017);\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getCfopPadrao(),(new\n\t\t// Cfop());\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().get(0).getConfSMTP(),(new\n\t\t// ConfigSMTP());\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper.writeValueAsString(\n\t\t\t\tObjects.insertConfiguracaoNFe(id, TabelaEnum.CONFIGURACAONFE, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"configuracaoNFe\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configuracaoNFe/delete/\", entitys,\n\t\t\t\tConfiguracaoNFeResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfiguracaoNFeList().size(),\n\t\t// count.intValue());\n\n\t}", "public interface TodoListRestService {\n\n @GET(\"api/todo/lists\")\n Single<List<TodoListHeader>> getAllListDetails(@Query(\"context\") String context);\n\n @GET(\"api/todo/lists/{key}\")\n Single<TodoListDetails> getListDetails(@Path(\"key\") String key, @Query(\"context\") String context);\n\n @GET(\"api/todo/instances\")\n Single<List<TodoListInstanceHeaderDto>> getAllInstances(@Query(\"context\") String context);\n\n @GET(\"api/todo/instances/{id}\")\n Single<TodoListInstanceDto> getInstance(@Path(\"id\") UUID id);\n\n @PUT(\"api/todo/instances\")\n Single<UUID> startInstance(@Query(\"key\") String listKey, @Query(\"context\") String contextDomain, @Query(\"device\") DeviceId device, @Body Object context);\n\n @PUT(\"api/todo/instances/{id}/{step}/{state}\")\n Single<Integer> confirmStep(@Path(\"id\") UUID id, @Path(\"step\") int step, @Path(\"state\") boolean state, @Query(\"device\") DeviceId device);\n\n @DELETE(\"api/todo/instances/{id}\")\n Single<Boolean> closeInstance(@Path(\"id\") UUID id, @Query(\"device\") DeviceId device);\n}", "public final void generateAll() {\n ConsoleUtils.display(\">> Generate Rest test...\");\n\n List<IUpdater> updaters = this.getAdapter().getRestUpdatersTest();\n this.processUpdater(updaters);\n\n Iterable<EntityMetadata> entities =\n this.getAppMetas().getEntities().values();\n\n for (final EntityMetadata entity : entities) {\n if (entity.getOptions().containsKey(\"rest\") \n && !entity.isInternal() \n && !entity.getFields().isEmpty()) {\n\n ConsoleUtils.display(\">>> Generate Rest test for \" \n + entity.getName());\n\n this.getDatamodel().put(\n TagConstant.CURRENT_ENTITY, entity.getName());\n\n updaters = this.getAdapter()\n .getRestEntityUpdatersTest(entity);\n this.processUpdater(updaters);\n }\n }\n }", "public interface RestService {\n\n @POST(\"/ComenziRestaurant/task3\")\n public void sendComanda(@Body Comanda comanda, Callback<Integer> callback);\n\n @GET(\"/ComenziRestaurant/task1\")\n public void getProduse(Callback<Collection<Produs>> callback);\n\n @GET(\"/ComenziRestaurant/task2\")\n public void getMese(Callback<Collection<Masa>> callback);\n\n\n\n\n}", "public interface ApiService {\n @GET(\"api/timelines/users/918753190470619136\")\n Call<HeadPOJO> pojoGetter();\n}", "private void ingestApiDatasinks() throws MalformedURLException, ComposerException {\n\t\tString url = String.format(\"%s/json/service/datasinks/%s\", RtwsConfig.getInstance().getString(\"sys.builder.ingest.api\"),\n\t\t\t\tgetTenantId());\n\t\tWebResource resource = this.client.resource(url);\n\t\t\n\t\tClientResponse clientResponse = resource.get(ClientResponse.class);\n\t\tif(clientResponse.getStatus() == 503){\n\t\t\tthrow new ComposerException(\"IngestAPI is currently syncing/updating its cache, try again later.\");\n\t\t}\n\t\t\n\t\tString response = clientResponse.getEntity(String.class);\n\n\t\tthis.datasinksJson = JSONArray.fromObject(response);\n\t}", "private void parseObjectSubclass(JSONObject x) {\n //Get BalanceOperation Id\n int balanceId = Integer.parseInt((String) x.get(\"balanceId\"));\n //Get description\n String description = (String) x.get(\"description\");\n //Get money\n double money = Double.parseDouble((String) x.get(\"money\"));\n //Get date\n LocalDate date = LocalDate.parse((String) x.get(\"date\"));\n\n /*//based on the \"sub\" field, present only in JSON version of the object, instantiates different subclasses\n String sub = (String) x.get(\"sub\");*/\n if(description.equals(\"Order\")){\n\n String productCode = (String) x.get(\"productCode\");\n double pricePerUnit = Double.parseDouble((String) x.get(\"pricePerUnit\"));\n int quantity = Integer.parseInt((String) x.get(\"quantity\"));\n String status = (String) x.get(\"status\");\n\n //building order with the full constructor\n OrderImpl order = new OrderImpl(balanceId, description, money, date, productCode, quantity, pricePerUnit, status);\n //adding the loaded order back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId, order);\n if( status.equals(\"PAYED\") || status.equals(\"COMPLETED\")){this.changeBalance(money);}\n }\n }\n else if(description.equals(\"SaleTransaction\")){\n\n double discountRate = Double.parseDouble((String) x.get(\"discountRate\"));\n String status = (String) x.get(\"status\");\n //JSON array to iterate over TicketEntries \"entries\"\n JSONArray jEntries = (JSONArray) x.get(\"entries\");\n //loading TicketEntries list of the sale transaction\n List<TicketEntry> entries = new ArrayList<>();\n jEntries.forEach(e -> addEntry(entries, (JSONObject) e));\n\n //JSON array to iterate over RFIDS of sold products \"rfids\"\n JSONArray jRfids = (JSONArray) x.get(\"rfids\");\n if(jRfids==null){\n jRfids = new JSONArray();\n jRfids.clear();\n }\n //loading RIFDS list of the sale transaction\n ArrayList<ProductRfid> rfids = new ArrayList<>();\n jRfids.forEach(e -> addRfid(rfids, (JSONObject) e));\n\n //building saleTransaction with the full constructor\n SaleTransactionImplementation sale = new SaleTransactionImplementation(balanceId,description,money,date,discountRate,status,entries,rfids);\n //adding the sale transaction back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId, sale);\n if( status.equals(\"PAYED\") ){this.changeBalance(money);}\n }\n }\n else if(description.equals(\"ReturnTransaction\")){\n String status = (String) x.get(\"status\");\n Integer saleId = Integer.parseInt((String) x.get(\"saleId\"));\n //JSON array to iterate over TicketEntries \"entries\"\n double saleDiscount = Double.parseDouble((String) x.get(\"saleDiscount\"));\n JSONArray jEntries = (JSONArray) x.get(\"entries\");\n //loading TicketEntries list of the sale transaction\n List<TicketEntry> entries = new ArrayList<>();\n jEntries.forEach(e -> addEntry(entries, (JSONObject) e));\n\n //JSON array to iterate over RFIDS of sold products \"rfids\"\n JSONArray jRfids = (JSONArray) x.get(\"rfids\");\n if(jRfids==null){\n jRfids = new JSONArray();\n jRfids.clear();\n }\n //loading RIFDS list of the sale transaction\n ArrayList<ProductRfid> rfids = new ArrayList<>();\n jRfids.forEach(e -> addRfid(rfids, (JSONObject) e));\n\n //building returnTransaction with the full constructor\n ReturnTransaction retTrans = new ReturnTransaction(balanceId,description,money,date,saleId,status,entries,saleDiscount,rfids);\n //adding the Return Transaction back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId,retTrans);\n }\n }\n else if(description.equals(\"Credit\") || description.equals(\"Debit\")){\n //Simple Balance Update Operation (credit or debit)\n BalanceOperation operation = new BalanceOperationImpl(balanceId,description,money,date);\n //adding the operation (credit or debit) back into the operationsMap checking for duplicates\n if(!this.operationsMap.containsKey(balanceId)){\n this.operationsMap.put(balanceId, operation);\n this.changeBalance(money);\n }\n }\n\n\n }", "@Test\n public void createObject() {\n\n for (int i = 1; i < 20; i++) {\n\n /**\n * Get the current array\n */\n RequestSpecification request = RestAssured.given();\n BankTransacctionPojo pojoEndpoint = new BankTransacctionPojo();\n\n /**\n * Change the json to pojo\n */\n Response responseGet = getEndPoint(Endpoint.URL);\n List<BankTransacctionPojo> bankTransacctionPojoList = new Gson().fromJson(responseGet.asString(), new TypeToken<List<BankTransacctionPojo>>() {\n }.getType());\n\n\n /**\n * validate the email with current data\n */\n for (BankTransacctionPojo bankTransacctionPojo : bankTransacctionPojoList) {\n Assert.assertFalse(bankTransacctionPojo.getEmail().equals(pojoEndpoint.getEmail()));\n\n }\n\n request.body(new Gson().toJson(pojoEndpoint));\n /**\n * result\n */\n Response responsePost = request.post(Endpoint.URL);\n responsePost.then()\n .assertThat()\n .statusCode(HttpStatus.SC_CREATED);\n\n }\n\n }", "public String fillRequestBody(){\n\n Gson gson = new Gson();\n ApiSetlistRequestDTO apiSetlistRequestDTO = gson.fromJson(fileOperations.bufferedReader(configurationGet.getApiSetlistRequestJSonBodyResourcePath()), ApiSetlistRequestDTO.class);\n\n apiSetlistRequestDTO.setPage(30303030);\n apiSetlistRequestDTO.setPerPage(8888888);\n apiSetlistRequestDTO.setTotal(300000000);\n apiSetlistRequestDTO.setTotalPages(88888888);\n\n Datum data = new Datum();\n data.setId(10);\n data.setName(\"fghfdasfghgfdsfg\");\n data.setYear(453453);\n data.setColor(\"#f43242\");\n data.setPantoneValue(\"Test dfgfdgfdg Value\");\n\n Datum data2 = new Datum();\n data2.setId(15);\n data2.setName(\"burak\");\n data2.setYear(19);\n data2.setColor(\"#tyuyrefe\");\n data2.setPantoneValue(\"fsd\");\n\n List<Datum> datumList = apiSetlistRequestDTO.getData();\n datumList.set(0,data);\n datumList.set(5,data2);\n\n apiSetlistRequestDTO.setData(datumList);\n\n /*for (Datum data : exampleTestClass.getData()){\n data.setId(10);\n data.setName(\"Sarı\");\n data.setYear(5000);\n data.setColor(\"#999999999\");\n data.setPantoneValue(\"Test Pandone Value\");\n }*/\n\n logger.info(\"Manipule Edilen Data:\" + gson.toJson(apiSetlistRequestDTO));\n\n return gson.toJson(apiSetlistRequestDTO);\n }", "@Test\n\tpublic void listAllConfigSMTP() throws JsonParseException, JsonMappingException, IOException {\n\n\t\tInteger count = 0;\n\t\tInteger id = 10000;\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"username\", \"[email protected]\");\n\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"username\", \"[email protected]\");\n\t\tparams.put(\"password\", \"[email protected]\");\n\n\t\tRestTemplate rest = new RestTemplate();\n\t\trest.setMessageConverters(Arrays.asList(new StringHttpMessageConverter(), new FormHttpMessageConverter()));\n\t\tMultiValueMap<String, String> paramss = new LinkedMultiValueMap<String, String>();\n\t\tparamss.set(\"username\", \"[email protected]\");\n\t\tparamss.set(\"password\", \"devil\");\n\t\tURI tgtUrl = rest.postForLocation(REST_SERVICE_URI + \"auth/api/authenticate\", paramss, Collections.emptyMap());\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tSystem.out.println(\"[\" + tgtUrl + \"]\");\n\n\t\tResponseEntity<String> st = rest.postForEntity(REST_SERVICE_URI + \"auth/api/authenticate\", paramss,\n\t\t\t\tString.class);\n\t\tSystem.out.println(\"[\" + st.getBody() + \"]\");\n\t\tSystem.out.println(\"[\" + st + \"]\");\n\t\tString tk = st.getBody();\n\t\tClass<? extends String> mt = tk.getClass();\n\t\tSystem.out.println(\"[\" + mt + \"]\");\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tModelToken obj = mapper.readValue(st.getBody(), ModelToken.class);\n\n\t\tSystem.out.println(\"[\" + obj.getToken() + \"]\");\n\n\t\theaders = new HttpHeaders();\n\t\theaders.set(\"Header\", \"value\");\n\t\theaders.setContentType(MediaType.APPLICATION_JSON);\n\t\theaders.set(\"Other-Header\", \"othervalue\");\n\t\theaders.set(\"X-Auth-Token\", obj.getToken());\n\t\tString a = \"request:{pageSize: 20, startPage: 2, sortExpressions: null, preQueryCount: true, maxPreQueryCount: 0}, token:[email protected]:1469815365580:33f9281620d9dc7df079e056ad235420, url:configuracao/api/cfop/fetchPage/\";\n\t\tHttpEntity<String> entity = new HttpEntity<String>(\"{}\", headers);\n\n\t\t// =========== fetch\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchALL==============================================\");\n\t\tString jsonInString = mapper.writeValueAsString(new PagedInquiryRequest());\n\t\tSystem.out.println(jsonInString);\n\t\tHttpEntity<String> entitys = new HttpEntity<String>(jsonInString, headers);\n\t\tConfigSMTPResponse result = restTemplate.postForObject(\n\t\t\t\tREST_SERVICE_URI + \"configuracao/api/configSMTP/fetchPage/\", entitys, ConfigSMTPResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\tcount = result.getConfigSMTPList().size();\n\n\t\t// =========== Insert\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================INSERT==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertConfigSMTP(id, TabelaEnum.CONFIGSMTP, PersistenceActionEnum.INSERT));\n\t\tSystem.out.println(jsonInString);\n\t\tString requestJson = \"{\\\"configSMTP\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configSMTP/insert/\", entitys,\n\t\t\t\tConfigSMTPResponse.class);\n\t\t// Assert.assertEquals(result.isOperationSuccess(), false);\n\n\t\t// =========== Update\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================UPDATE==============================================\");\n\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertConfigSMTP(id, TabelaEnum.CONFIGSMTP, PersistenceActionEnum.UPDATE));\n\t\trequestJson = \"{\\\"configSMTP\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configSMTP/update/\", entitys,\n\t\t\t\tConfigSMTPResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\n\t\t// =========== FetchbyID\n\t\t// ================================================================\n\t\tSystem.out.println(\"==================================FetchID==============================================\");\n\n\t\tPagedInquiryRequest request001 = new PagedInquiryRequest();\n\t\trequest001.setId(id);\n\t\tjsonInString = mapper.writeValueAsString(request001);\n\t\tSystem.out.println(jsonInString);\n\t\tentitys = new HttpEntity<String>(jsonInString, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configSMTP/fetchPage/\", entitys,\n\t\t\t\tConfigSMTPResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t//\tAssert.assertEquals(result.getConfigSMTPList().size(), 4);\n\n\t\t// Assert.assertEquals(result.getConfigSMTPList().get(0).getServSMTP(),\"\"servSMTP_1\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfigSMTPList().get(0).getPorta(),\"\"porta_2\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfigSMTPList().get(0).getEndEmail(),\"\"endEmail_3\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfigSMTPList().get(0).getUsuario(),\"\"usuario_4\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfigSMTPList().get(0).getSenha(),\"\"senha_5\"\n\t\t// - UPDATE\");\n\t\t// Assert.assertEquals(result.getConfigSMTPList().get(0).getSeguranca(),(new\n\t\t// DoisValores());\n\n\t\t// =======================\n\t\tSystem.out.println(\"==================================DELETE==============================================\");\n\t\tjsonInString = mapper\n\t\t\t\t.writeValueAsString(Objects.insertConfigSMTP(id, TabelaEnum.CONFIGSMTP, PersistenceActionEnum.DELETE));\n\t\trequestJson = \"{\\\"configSMTP\\\":\" + jsonInString + \"}\";\n\t\tentitys = new HttpEntity<String>(requestJson, headers);\n\t\tresult = restTemplate.postForObject(REST_SERVICE_URI + \"configuracao/api/configSMTP/delete/\", entitys,\n\t\t\t\tConfigSMTPResponse.class);\n\t\tAssert.assertEquals(result.isOperationSuccess(), true);\n\t\t// Assert.assertEquals(result.getConfigSMTPList().size(),\n\t\t// count.intValue());\n\n\t}", "@Scheduled(cron=\"0 0 9 * * ? \")\r\n\t@Override\r\n\tpublic void getNewsFromIDataAPI() {\n\t\ttry {\r\n\t\t\t\r\n\t\t\tList<NewsType> newsTypeArray=newsTypeRepository.findAllByFlag(0);\r\n\t\t\t\r\n\t\t\tfor(NewsType n: newsTypeArray) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString catId=n.getCatId();\r\n\t\t\t\t\tString url = \"http://api01.bitspaceman.com:8000/news/toutiao?apikey=np5SpQ7QGzm7HgvX8Aw8APA5NDq6Bpj5m4eo4hX5qJFLm0G0Oqt31xJzjIEeJFTv&catid=\"+n.getCatId();\r\n\t\t\t\t\tString json = IDataAPI.getRequestFromUrl(url);\r\n\t\t\t\t\tlog.info(json);\r\n\t\t\t\t\tGson gson=new Gson();\r\n\t\t\t\t\tToutiaoResponseDto toutiaoResponseDto=gson.fromJson(json, ToutiaoResponseDto.class);\r\n\t\t\t\t\t\r\n\t\t\t\t\tList<NewsInfo> newsInfoArray=new ArrayList<NewsInfo>();\r\n\t\t\t\t\tfor(ToutiaoDataResponseDto toutiao :toutiaoResponseDto.getData()) {\r\n\t\t\t\t\t\tnewsInfoArray.add(new NewsInfo(toutiao,catId));\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tList<NewsInfo> iter=(List<NewsInfo>) newsInfoRepository.saveAll(newsInfoArray);\r\n\t\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\tlog.info(e.getMessage());\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\tif(\"true\".equals(toutiaoResponseDto.getHasNext())) {\r\n\t\t\t\t\t\tgetNewsFromIDataAPIByPageToken(toutiaoResponseDto.getPageToken(),catId);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\tlog.info(e.getMessage());\r\n\t\t}\r\n\t}", "@Test\n public void updateConversationRest() {\n Conversation original = new Conversation();\n\n Conversation modified = restTemplate.postForObject(\n String.format(\"%s/api/conversations/%s\", baseUri(), MAIN_BLOG_NAME), original, Conversation.class);\n assertThat(modified).isNotNull();\n\n modified.setNumMessages(5);\n modified.setParticipant(\"new participant\");\n modified.setParticipantAvatarUrl(\"avatar URL\");\n modified.setParticipantId(\"pid123\");\n modified.setHideConversation(true);\n\n restTemplate.put(String.format(\"%s/api/conversations/%s/%d\", baseUri(), MAIN_BLOG_NAME, modified.getId()),\n modified);\n\n Conversation finalFromServer = restTemplate.getForObject(\n String.format(\"%s/api/conversations/%s/byParticipant/%s\", baseUri(), MAIN_BLOG_NAME, \"new participant\"),\n Conversation.class);\n\n assertThat(finalFromServer).isNotNull();\n assertThat(finalFromServer).isEqualToComparingFieldByField(modified);\n }" ]
[ "0.5544333", "0.5461358", "0.53919774", "0.5374732", "0.5334392", "0.52927047", "0.52499384", "0.5233779", "0.51980615", "0.5176596", "0.5174298", "0.5173799", "0.51388305", "0.51082563", "0.5107156", "0.50481915", "0.50378054", "0.50155395", "0.5015503", "0.5006885", "0.50019675", "0.5001318", "0.49967822", "0.49909136", "0.49899855", "0.4989461", "0.49868965", "0.49816698", "0.49800393", "0.497748", "0.49748805", "0.49695545", "0.49618113", "0.49376467", "0.49351972", "0.49330053", "0.49262398", "0.49214363", "0.49195176", "0.49059674", "0.49034023", "0.4894968", "0.48908213", "0.48855326", "0.48832244", "0.48827153", "0.48752722", "0.48616952", "0.48588324", "0.48546457", "0.48536584", "0.48510757", "0.48412767", "0.48269376", "0.4820543", "0.48136282", "0.48077777", "0.48002556", "0.4792548", "0.47871011", "0.4784395", "0.47764054", "0.47757423", "0.47751936", "0.47704947", "0.47603723", "0.47596228", "0.47527963", "0.47513315", "0.47504455", "0.47486842", "0.47481832", "0.47398943", "0.47383407", "0.4737554", "0.47320864", "0.47294405", "0.47292152", "0.47269258", "0.47235942", "0.47217107", "0.47176838", "0.47147357", "0.4714656", "0.4714304", "0.47089466", "0.47072172", "0.4704295", "0.47035688", "0.47026378", "0.47007293", "0.47001487", "0.47001305", "0.46993652", "0.469926", "0.46943647", "0.46941352", "0.46855316", "0.46838748", "0.46834993", "0.46762672" ]
0.0
-1
create Traverson as a HATEOAS/HAL JSON
public Traverson allIngredientsTraverson() { Traverson traverson = new Traverson(URI.create(INGREDIENTS_URI), MediaTypes.HAL_JSON); return traverson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Tamagotchi tamagotchiToJson(JSONObject jsonObject) {\n String name = jsonObject.getString(\"name\");\n Tamagotchi tr = new Tamagotchi(name);\n return tr;\n }", "@PostMapping(value = \"/create\",consumes = MediaType.APPLICATION_JSON_VALUE)\n public InternationalTournaments create(@RequestBody InternationalTournaments create){\n return service.create(create);\n }", "public JsonObject covertToJson() {\n JsonObject transObj = new JsonObject(); //kasutaja portf. positsiooni tehing\n transObj.addProperty(\"symbol\", symbol);\n transObj.addProperty(\"type\", type);\n transObj.addProperty(\"price\", price);\n transObj.addProperty(\"volume\", volume);\n transObj.addProperty(\"date\", date);\n transObj.addProperty(\"time\", time);\n transObj.addProperty(\"profitFromSell\", profitFromSell);\n transObj.addProperty(\"averagePurchasePrice\", averagePurchasePrice);\n return transObj;\n }", "public HashMap<String,Trail> getJSONData() {\n\t\tHashMap<String,Trail> trailList1 = new HashMap<String,Trail>();\n\t\tString jsonStr;\n\t\tint counter=0;\n\t\n\t\t\ttry {\n\t\t\t\tInputStream is = getResources().openRawResource(\n\t\t\t\t\t\tgetResources().getIdentifier(\"trail_detail\", \"raw\",\n\t\t\t\t\t\t\t\tgetPackageName()));\n\t\t\t\tint size = is.available();\n\t\t\t\tbyte[] buffer = new byte[size];\n\t\t\t\tis.read(buffer);\n\t\t\t\tis.close();\n\t\t\t\tjsonStr = new String(buffer, \"UTF-8\");\n\n\t\t\t\tLog.d(\"Response: \", \"> \" + jsonStr);\n\n\t\t\t\tJSONArray jsonArray = new JSONArray(jsonStr);\n\n\t\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\n\t\t\t\t\tJSONObject jsonObj = jsonArray.getJSONObject(i);\n counter++;\n\t\t\t\t\tString name =jsonObj.getString(TAG_NAME);\n\t\t\t\t\tDouble length = Double.parseDouble(jsonObj.getString(TAG_LENGTH));\n\t\t\t\t\tString type = jsonObj.getString(TAG_TYPE);\n\t\t\t\t\tString surface = jsonObj.getString(TAG_SURFACE);\n\t\t\t\t\tString amenities = jsonObj.getString(TAG_AMENITIES);\n\t\t\t\t\tString parking = jsonObj.getString(TAG_PARKING);\n\t\t\t\t\tString season = jsonObj.getString(TAG_SEASON);\n\t\t\t\t\tString lighting = jsonObj.getString(TAG_LIGHTING);\n\t\t\t\t\tString maintenance = jsonObj.getString(TAG_MAINTENANCE);\n\t\t\t\t\tString pets = jsonObj.getString(TAG_PETS);\n\t\t\t\t\tString notes = jsonObj.getString(TAG_NOTES);\n\t\t\t\t\tString city = jsonObj.getString(TAG_CITY);\n\n\t\t\t\t\ttrailList1.put(name, new Trail(name, length, type, surface,\n\t\t\t\t\t\t\tamenities, parking, season, lighting, maintenance,\n\t\t\t\t\t\t\tpets, notes, city));\n//\t\t\t trailList.add(new Trail(name, length, type, surface,\n//\t\t\t\t\t\t\tamenities, parking, season, lighting, maintenance,\n//\t\t\t\t\t\t\tpets, notes, city));\n\n\t\t\t\t}\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\treturn trailList1;\n\t}", "public JSONObject transformer() {\n JSONObject jsonObject = new JSONObject();\n JSONArray listening = new JSONArray();\n JSONArray listening_correction = new JSONArray();\n JSONArray reading = new JSONArray();\n JSONArray reading_correction = new JSONArray();\n JSONArray historique = new JSONArray();\n\n for (int i = 0; i < this.listening.size(); i++) {\n listening.put(this.listening.get(i).whoIs());\n listening_correction.put(this.listening_correction.get(i).whoIs());\n }\n\n for (int j = 0; j < this.reading.size(); j++) {\n reading.put(this.reading.get(j).whoIs());\n reading_correction.put(this.reading_correction.get(j).whoIs());\n }\n\n for(int k=0; k < this.historique.size(); k++){\n historique.put( transforme(this.historique.get(k)) );\n }\n\n try {\n jsonObject.put(\"nom\", this.nom);\n jsonObject.put(\"listening\", listening);\n jsonObject.put(\"reading\", reading);\n jsonObject.put(\"listening_correction\", listening_correction);\n jsonObject.put(\"reading_correction\", reading_correction);\n jsonObject.put(\"historique\",historique);\n jsonObject.put(\"etat\", this.etat);\n jsonObject.put(\"mode\", this.mode);\n jsonObject.put(\"est_termine\", this.est_termine);\n jsonObject.put(\"chronometre\", this.chronometre);\n Log.i(\"jsonObject\",jsonObject.toString());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return jsonObject;\n }", "public void testJson() {\n\t\t\n\t\tSmallTalkEpisode episode = new SmallTalkEpisode();\n\t\tSmallTalkGespraech gespraech = new SmallTalkGespraech(0);\n\t\t\n\t\tSmallTalkJsonHelper testInstanz1 = new SmallTalkJsonHelper(\"We\", 2.34 , 0);\n\t\tSmallTalkJsonHelper testInstanz2 = new SmallTalkJsonHelper(\"Bez\", 5.24 , 0);\n\t\tSmallTalkJsonHelper testInstanz3 = new SmallTalkJsonHelper(\"Begr\", 22.34 , 1);\n\t\t\n\t\tJSONObject jsonObject = new JSONObject(testInstanz1);\n\t\tString myJson1 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz2);\n\t\tString myJson2 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson2);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz3);\n\t\tString myJson3 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson3);\n\t\t\n\t\tepisode.addGespraech(gespraech.createInnerJson());\n\t\t\n\t\tSmallTalkGespraech gespraech1 = new SmallTalkGespraech(1);\n\t\t\n\t\tSmallTalkJsonHelper testInstanz4 = new SmallTalkJsonHelper(\"We\", 2.34 , 0);\n\t\tSmallTalkJsonHelper testInstanz5 = new SmallTalkJsonHelper(\"Bez\", 5.24 , 0);\n\t\tSmallTalkJsonHelper testInstanz6 = new SmallTalkJsonHelper(\"Begr\", 22.34 , 1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz1);\n\t\tString myJson4 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz2);\n\t\tString myJson5 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson2);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz3);\n\t\tString myJson6 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson3);\n\t\t\n\t\tepisode.addGespraech(gespraech1.createInnerJson());\n\t\t\n\t\tSystem.out.println(episode.createInnerJson());\n\t\t\n\t\tFileSaver fileSaver = new FileSaver();\n\t\tfileSaver.stringAsJson(episode.createInnerJson(), \"FinalJson.json\");\n\t}", "public interface GPSMetier {\n JSONEntitie createJSON(String Id, double lat, double lon, boolean isServer);\n String jsonToString(JSONEntitie jsonEntitie);\n JSONEntitie stringToJSON(String jsonString, int codeResponse);\n\n}", "public String createJsonObject() {\n JSONObject jsonObject = new JSONObject();\n\n try {\n if (!vslaId.equalsIgnoreCase(\"-1\")) {\n // editing existing information\n jsonObject.put(\"VslaId\", vslaId);\n }\n jsonObject.put(\"GroupSupport\", grpSupportType);\n jsonObject.put(\"VslaName\", vslaName);\n jsonObject.put(\"grpPhoneNumber\", grpPhoneNumber);\n jsonObject.put(\"PhysicalAddress\", physAddress);\n jsonObject.put(\"GpsLocation\", locCoordinates);\n jsonObject.put(\"representativeName\", representativeName);\n jsonObject.put(\"representativePosition\", representativePost);\n jsonObject.put(\"GroupAccountNumber\", grpBankAccount);\n jsonObject.put(\"repPhoneNumber\", repPhoneNumber);\n jsonObject.put(\"RegionName\", regionName);\n jsonObject.put(\"tTrainerId\", tTrainerId);\n jsonObject.put(\"Status\", \"2\");\n jsonObject.put(\"numberOfCycles\", numberOfCycles);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject.toString();\n }", "private JSON() {\n\t}", "public abstract Object toJson();", "private void createObject(JSONObject delivery) {\n\t\t//TODO: create the Object\n\t}", "public static void jsonWrite() \n\t{\n JSONArray arrJson = new JSONArray(); \n FileWriter writeFile = null;\n Iterator<Taxi_Model> taxiIterator = L.iterator();\n\n while(taxiIterator.hasNext()) \n {\n \tJSONObject jsonObject = new JSONObject();\n \tTaxi_Model aux = new Taxi_Model();\n \taux = taxiIterator.next();\n \tJSONArray array = new JSONArray();\n \tarray.add(aux.getLocalizacao()[0]);\n \tarray.add(aux.getLocalizacao()[1]);\n \t\n \t//Armazena dados em um Objeto JSON\n \tjsonObject.put(\"Usuario\", aux.getUsuario());\n jsonObject.put(\"Nome\", aux.getNome());\n jsonObject.put(\"Senha\", aux.getSenha());\n jsonObject.put(\"CPF\", aux.getCpf());\n jsonObject.put(\"Cor do Carro\", aux.getCorCarro());\n jsonObject.put(\"Modelo do Carro\", aux.getModeloCarro());\n jsonObject.put(\"Placa do Carro\", aux.getPlaca());\n jsonObject.put(\"Localizacao\", array);\n jsonObject.put(\"Pontuacao\", aux.getPontuacao());\n jsonObject.put(\"Corridas\", aux.getTotalCorridas());\n jsonObject.put(\"Tempo total\", aux.getTempoTotal());\n jsonObject.put(\"Tempo programado\", aux.getTempoProgramada());\n arrJson.add(jsonObject);\n }\n \n try\n {\n writeFile = new FileWriter(\"taxis.json\");\n //Escreve no arquivo conteudo do Objeto JSON\n writeFile.write(arrJson.toJSONString());\n writeFile.close();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n\t}", "public static Track generateTrack() {\n List<Position> positions = new ArrayList<>();\n DirectionsRoute dr = DirectionsRoute.fromJson(getJsonFromAssets(GlobalContext.getContext(),\"testDirections.json\"));\n positions.add(new Position(48.408880, 9.997507,1587652587));\n positions.add(new Position(48.408980, 9.997807,1587652597));\n Track track = new Track(\"nullacht15\", new Rating(), \"Heimweg\", \"Das ist meine super tolle Strecke\", 1585773516, 25,\n dr, new ArrayList<>(), positions.get(0),positions.get(1),true);\n return track;\n }", "private void createLearnJSON(){\n json = new JSONObject();\n\n try {\n json.put(\"userID\", global.getUserID());\n StringBuilder p1 = new StringBuilder();\n for (String s: global.getWords()){\n p1.append(p1.toString().equals(\"\") ? s : (\" \" + s));\n }\n json.put(\"p1\", p1.toString());\n json.put(\"p2\", url);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "private void createJSON(){\n json = new JSONObject();\n JSONArray userID = new JSONArray();\n JSONArray palabras = new JSONArray();\n JSONArray respuesta = new JSONArray();\n\n @SuppressLint(\"SimpleDateFormat\") DateFormat formatForId = new SimpleDateFormat(\"yyMMddHHmmssSSS\");\n String id = formatForId.format(new Date()) + \"_\" + android_id;\n userID.put(id);\n global.setUserID(id);\n\n for (int i = 0; i < global.getWords().size() && i < 7; i++){\n palabras.put(global.getWords().get(i));\n }\n\n respuesta.put(url);\n\n try {\n json.put(\"userID\", userID);\n json.put(\"palabras\", palabras);\n json.put(\"respuesta\", respuesta);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "private static Serde<VehiclePosition> getJsonSerde(){\n Map<String, Object> serdeProps = new HashMap<>();\n serdeProps.put(\"json.value.type\", VehiclePosition.class);\n final Serializer<VehiclePosition> vpSerializer = new KafkaJsonSerializer<>();\n vpSerializer.configure(serdeProps, false);\n \n final Deserializer<VehiclePosition> vpDeserializer = new KafkaJsonDeserializer<>();\n vpDeserializer.configure(serdeProps, false);\n return Serdes.serdeFrom(vpSerializer, vpDeserializer);\n }", "public static void convertBottleJavaObjectToJSON() throws JsonGenerationException, JsonMappingException, IOException{\n\t\t\n\t\tDataBinder binder = new DataBinder();\n\t\tBottle bottle = binder.new Bottle(\"Cello Traveller\",\"Silver\",\"91828283732\");\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.configure(SerializationFeature.WRAP_ROOT_VALUE,true); \n\t\tmapper.writeValue(System.out, bottle);\n\t}", "@Test\n public void testCreate() {\n //System.out.println(\"create\");\n URI context = URI.create(\"file:test\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n instance.create(context);\n }", "@Override\n public void writeTo(ArrayList<Object> t, Class<?> type,\n Type type1, Annotation[] antns, MediaType mt, MultivaluedMap<String, \n Object> mm, OutputStream out) throws IOException, \n WebApplicationException {\n \n if (mt.getType().equals(\"application\") && mt.getSubtype().equals(\"json\")) {\n StringBuffer buffer = new StringBuffer();\n if(type1.getTypeName().contains(\"ArrayList<Transportes.Ficheros.EstacionAparcamiento>\")) {\n buffer = buffer.append(\" {\\\"Aparcamientos\\\":[\");\n for (int i = 0; i < t.size(); i++) {\n\n EstacionAparcamiento apar = (EstacionAparcamiento) t.get(i);\n buffer = buffer.append(\"{\");\n buffer = buffer.append(\"\\\"nombre\\\":\\\"\");\n if (apar.getNombre() != null) {\n buffer = buffer.append(apar.getNombre()); \n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"descripcion\\\":\\\"\");\n \n if (apar.getDescripcion() != null) {\n buffer = buffer.append(apar.getDescripcion());\n \n }\n \n if (apar.getGeo() != null) {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"latitud\\\":\\\"\").append(apar.getGeo().getLatitud());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"longitud\\\":\\\"\").append(apar.getGeo().getLongitud());\n }\n else {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"latitud\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"longitud\\\":\\\"\");\n }\n if (apar.getDireccion()!= null) {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"pais\\\":\\\"\").append(apar.getDireccion().getPais());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"localidad\\\":\\\"\").append(apar.getDireccion().getLocalidad());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"direccion\\\":\\\"\").append(apar.getDireccion().getDireccion());\n }\n else {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"pais\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"localidad\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"direccion\\\":\\\"\");\n \n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"telefono\\\":\\\"\");\n if(apar.getTelefono() != null) {\n \n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"accesibilidad\\\":\\\"\");\n if (apar.getAccesibilidad() == 0 || apar.getAccesibilidad() == 1) {\n buffer = buffer.append(apar.getAccesibilidad());\n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"plazasLibres\\\":\\\"\");\n if (apar.getPlazasLibres() >= 0) {\n buffer = buffer.append(apar.getPlazasLibres());\n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"plazasTotales\\\":\\\"\");\n if (apar.getPlazasTotales() >= 0) {\n buffer = buffer.append(apar.getPlazasTotales());\n }\n buffer = buffer.append(\"\\\"}\");\n\n if(i < t.size()-1) buffer = buffer.append(\",\");\n }\n buffer = buffer.append(\"]}\");\n }\n else if(type1.getTypeName().contains(\"ArrayList<Transportes.Ficheros.EstacionAlquilerBicicletas>\")) {\n buffer = buffer.append(\" {\\\"Bicicletas\\\":[\");\n for (int i = 0; i < t.size(); i++) {\n\n EstacionAlquilerBicicletas apar = (EstacionAlquilerBicicletas) t.get(i);\n buffer = buffer.append(\"{\");\n buffer = buffer.append(\"\\\"nombre\\\":\\\"\");\n if (apar.getNombre() != null) {\n buffer = buffer.append(apar.getNombre()); \n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"descripcion\\\":\\\"\");\n \n if (apar.getDescripcion() != null) {\n buffer = buffer.append(apar.getDescripcion());\n \n }\n \n if (apar.getGeo() != null) {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"latitud\\\":\\\"\").append(apar.getGeo().getLatitud());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"longitud\\\":\\\"\").append(apar.getGeo().getLongitud());\n }\n else {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"latitud\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"longitud\\\":\\\"\");\n }\n if (apar.getDireccion()!= null) {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"pais\\\":\\\"\").append(apar.getDireccion().getPais());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"localidad\\\":\\\"\").append(apar.getDireccion().getLocalidad());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"direccion\\\":\\\"\").append(apar.getDireccion().getDireccion());\n }\n else {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"pais\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"localidad\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"direccion\\\":\\\"\");\n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"telefono\\\":\\\"\");\n if(apar.getTelefono() != null) {\n \n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"anclajes\\\":\\\"\");\n if (apar.getAnclajes() >= 0) {\n buffer = buffer.append(apar.getAnclajes());\n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"biciLibres\\\":\\\"\");\n if (apar.getBiciLibres() >= 0) {\n buffer = buffer.append(apar.getBiciLibres());\n }\n \n buffer = buffer.append(\"\\\"}\");\n\n if(i < t.size()-1) buffer = buffer.append(\",\");\n }\n buffer = buffer.append(\"]}\");\n }\n else if(type1.getTypeName().contains(\"ArrayList<Transportes.Ficheros.EstacionCivica>\") ||\n type1.getTypeName().contains(\"ArrayList<Transportes.Ficheros.EstructurasPublicas>\")) {\n buffer = buffer.append(\" {\\\"Estaciones\\\":[\");\n int ultimo = 0;\n for (int i = 0; i < t.size(); i++) {\n EstructurasPublicas apar = new EstructurasPublicas();\n EstacionCivica apar1 = new EstacionCivica();\n if (type1.getTypeName().contains(\"EstacionCivica\")) \n apar = (EstacionCivica) t.get(i);\n else apar = (EstructurasPublicas) t.get(i);\n if(apar != null) { \n boolean pintar =false; \n if (ultimo != 0) buffer = buffer.append(\",\");\n ultimo++;\n buffer = buffer.append(\"{\");\n \n if( type1.getTypeName().contains(\"ArrayList<Transportes.Ficheros.EstructurasPublicas>\")){\n buffer = buffer.append(\"\\\"transporte\\\":\\\"\").append(apar.transporte);\n buffer = buffer.append(\"\\\",\");\n }\n buffer = buffer.append(\"\\\"nombre\\\":\\\"\");\n if (apar.getNombre() != null) {\n buffer = buffer.append(apar.getNombre()); \n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"descripcion\\\":\\\"\");\n \n if (apar.getDescripcion() != null) {\n buffer = buffer.append(apar.getDescripcion());\n \n }\n \n if (apar.getGeo() != null) {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"latitud\\\":\\\"\").append(apar.getGeo().getLatitud());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"longitud\\\":\\\"\").append(apar.getGeo().getLongitud());\n }\n else {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"latitud\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"longitud\\\":\\\"\");\n }\n if (apar.getDireccion()!= null) {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"pais\\\":\\\"\").append(apar.getDireccion().getPais());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"localidad\\\":\\\"\").append(apar.getDireccion().getLocalidad());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"direccion\\\":\\\"\").append(apar.getDireccion().getDireccion());\n }\n else {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"pais\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"localidad\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"direccion\\\":\\\"\");\n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"telefono\\\":\\\"\");\n if(apar.getTelefono() != null) {\n buffer = buffer.append(apar.getTelefono());\n }\n \n \n if( type1.getTypeName().contains(\"ArrayList<Transportes.Ficheros.EstructurasPublicas>\")){\n \n if (apar.transporte.equals(\"Aparcamiento\")) {\n buffer = buffer.append(\"\\\",\");\n System.out.println(apar.toString());\n EstacionAparcamiento a = apar.getEa();\n buffer = buffer.append(\"\\\"accesibilidad\\\":\\\"\");\n if((a != null)) {\n if (a.getAccesibilidad() == 0 || a.getAccesibilidad() == 1) {\n buffer = buffer.append(a.getAccesibilidad());\n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"plazasLibres\\\":\\\"\");\n if (a.getPlazasLibres() >= 0) {\n buffer = buffer.append(a.getPlazasLibres());\n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"plazasTotales\\\":\\\"\");\n if (a.getPlazasTotales() >= 0) {\n buffer = buffer.append(a.getPlazasTotales());\n }\n }\n }\n else if (apar.transporte.equals(\"Bicicleta\")) {\n buffer = buffer.append(\"\\\",\");\n EstacionAlquilerBicicletas b = apar.getEab();\n buffer = buffer.append(\"\\\"anclajes\\\":\\\"\");\n if (b.getAnclajes() >= 0) {\n buffer = buffer.append(b.getAnclajes());\n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"biciLibres\\\":\\\"\");\n if (b.getBiciLibres() >= 0) {\n buffer = buffer.append(b.getBiciLibres());\n }\n }\n else if (!apar.transporte.equals(\"Taxi\")){\n buffer = buffer.append(\"\\\", \");\n buffer = buffer.append(\"\\\"lineas\\\":\");\n if(apar.getEc() != null) {\n if(apar.getEc().getLineas() != null) {\n if(apar.getEc().getLineas()!= null) {\n buffer = buffer.append(\"[\\\"\");\n for (int j = 0; j < apar.getEc().getLineas().size(); j++) {\n if (j != 0) buffer = buffer.append(\", \\\"\");\n buffer = buffer.append(apar.getEc().getLineas().get(j).getNumLinea());\n buffer = buffer.append(\"\\\"\");\n }\n buffer = buffer.append(\"]\");\n pintar = true;\n }\n }\n }\n }\n }\n else if (!apar.transporte.equals(\"Taxi\")){\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"lineas\\\":\");\n apar1 = (EstacionCivica) t.get(i);\n \n if (apar1 != null) {\n if(apar1.getLineas()!= null) {\n buffer = buffer.append(\"[\\\"\");\n for (int j = 0; j < apar1.getLineas().size(); j++) {\n if (j != 0) buffer = buffer.append(\", \\\"\");\n buffer = buffer.append(apar1.getLineas().get(j).getNumLinea());\n buffer = buffer.append(\"\\\"\");\n }\n buffer = buffer.append(\"]\");\n pintar = true;\n }\n }\n// \n }\n \n if(!pintar) buffer = buffer.append(\"\\\"}\");\n else buffer = buffer.append(\"}\");\n \n }\n }\n buffer = buffer.append(\"]}\");\n }\n \n else if(type1.getTypeName().contains(\"ArrayList<Transportes.Ficheros.EstacionTaxi>\")) {\n buffer = buffer.append(\" {\\\"Taxi\\\":[\");\n for (int i = 0; i < t.size(); i++) {\n\n EstacionTaxi apar = (EstacionTaxi) t.get(i);\n buffer = buffer.append(\"{\");\n buffer = buffer.append(\"\\\"nombre\\\":\\\"\");\n if (apar.getNombre() != null) {\n buffer = buffer.append(apar.getNombre()); \n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"descripcion\\\":\\\"\");\n \n if (apar.getDescripcion() != null) {\n buffer = buffer.append(apar.getDescripcion());\n \n }\n \n if (apar.getGeo() != null) {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"latitud\\\":\\\"\").append(apar.getGeo().getLatitud());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"longitud\\\":\\\"\").append(apar.getGeo().getLongitud());\n }\n else {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"latitud\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"longitud\\\":\\\"\");\n }\n if (apar.getDireccion()!= null) {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"pais\\\":\\\"\").append(apar.getDireccion().getPais());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"localidad\\\":\\\"\").append(apar.getDireccion().getLocalidad());\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"direccion\\\":\\\"\").append(apar.getDireccion().getDireccion());\n }\n else {\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"pais\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"localidad\\\":\\\"\");\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"direccion\\\":\\\"\");\n }\n buffer = buffer.append(\"\\\",\");\n buffer = buffer.append(\"\\\"telefono\\\":\\\"\");\n if(apar.getTelefono() != null) {\n \n }\n \n \n buffer = buffer.append(\"\\\"}\");\n\n if(i < t.size()-1) buffer = buffer.append(\",\");\n }\n buffer = buffer.append(\"]}\");\n }\n \n else if (type1.getTypeName().contains(\"ArrayList<java.lang.String>\")) {\n buffer = buffer.append(\"{\\\"nombres\\\":[\");\n for (int i = 0; i < t.size(); i++) {\n buffer = buffer.append(\"{\");\n buffer = buffer.append(\"\\\"nombre\\\":\\\"\").append(String.valueOf(t.get(i)));\n buffer = buffer.append(\"\\\"}\");\n if(i < t.size()-1) buffer = buffer.append(\",\");\n }\n buffer = buffer.append(\"]}\");\n }\n try (PrintStream printStream = new PrintStream(out,true, \"UTF-8\")) {\n printStream.print(buffer.toString());\n }\n return;\n } \n throw new UnsupportedOperationException(\"Not supported MediaType: \" + mt);\n }", "public ClaseJson() {\n }", "@Test\n public void testCreate() throws Exception {\n System.out.println(\"create\");\n JSONObject movieJSON = new JSONObject();\n int pubID = 1;\n int prodID = 2;\n String name = \"Name\";\n int age = 12;\n String desc = \"This is my description\";\n int runtime = 12;\n String genre = \"Action\";\n double price = 22.22;\n movieJSON.put(\"productID\", prodID);\n movieJSON.put(\"name\", name);\n movieJSON.put(\"price\", price);\n movieJSON.put(\"ageRating\",age);\n movieJSON.put(\"description\", desc);\n movieJSON.put(\"runtime\", runtime);\n movieJSON.put(\"genre\", genre);\n movieJSON.put(\"publisherID\", pubID);\n MovieStorePageInfoFactory instance = new MovieStorePageInfoFactory();\n StoreListing result = instance.create(movieJSON);\n assertEquals(prodID, result.getProductID());\n assertEquals(name, result.getName());\n }", "@Test\n public void createBillingLineTestHappyPath() {\n\n Billinglines BillingLineObj = new Billinglines();\n\n BillingLineObj.setOrderId(\"b1375915-6c3d-4df5-aac2-aaf400e3ebab\");\n BillingLineObj.setPlannerId(\"90C44CAE-2A4A-4B5D-A5EC-AA9500A6C839\");\n BillingLineObj.setProductId(\"3B50FC9A-26B1-42C7-A7B4-AACB0084B9E4\");\n BillingLineObj.setStartMonth(\"2019-11-30\");\n BillingLineObj.setDurationInMonths(2);\n\n // final JSONArray arr = new JSONArray();\n\n /*for(int i = 0 ; i< list.size() ; i++) {\n final JSONObject obj = new JSONObject();\n p = list.get(i);\n obj.add(\"id\", p.getId());\n arr.add(obj);\n }\n\n\n for(int i = 0 ; i< list.size() ; i++) {\n final JSONObject obj = new JSONObject();\n p = list.get(i);\n obj.add(\"date\", new MyDateFormatter().getStringFromDateDifference(p.getCreationDate()));\n obj.add(\"value\", p.getValue());\n }*/\n\n BillingLineObj.setBillingLineBuyingAreaRevenues(Arrays.asList(new String[]{\"id\",\"8798f1f5-cd1b-455e-b44a-aacb00845536\"}));\n BillingLineObj.setMonthBuyingAreaRevenues(Arrays.asList(new String[]{\"date\",\"2019-11-30\"}));\n //BillingLineObj.setValue(444);\n BillingLineObj.setRevenue(444);\n String json = Utilities.createJsonObject(BillingLineObj);\n System.out.println(\">>>>>>>\\n\\n\\n\" + json);\n\n Response response = APIRequests.PostAPI(path, json);\n Assert.assertEquals(\"Check status codes for successful response \", 200,response.getStatusCode());\n System.out.println(\">>>>> \" + response.getStatusCode());\n\n }", "private String converttoJson(Object medicine) throws JsonProcessingException {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n return objectMapper.writeValueAsString(medicine);\r\n }", "@Override\n public void onNext(List<Track> tracks) {\n JSONManager.JsonTrackWriter(tracks);\n }", "public void guardarEnJSON () {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String s = gson.toJson(this);\n try {\n FileWriter fw = new FileWriter(\"files/graph.json\");\n fw.write(s);\n fw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "Lehrkraft createLehrkraft();", "@Test\n public void oneSpartanPojo(){\n Response response = given().accept(ContentType.JSON)\n .and().pathParam(\"id\", 15)\n .and().get(\"http://18.232.145.26:8000/api/spartans/{id}\");\n\n // Verify response status code should be 200\n Assert.assertEquals(response.statusCode(), 200 , \"Verify status code : \");\n\n // Convert Json to POJO( Our custom Spartan java class )\n Spartan spartan15 = response.body().as(Spartan.class);\n System.out.println(\"spartan15 = \" + spartan15);\n System.out.println(\"spartan15.getNames() = \" + spartan15.getName());\n System.out.println(\"spartan15.getId() = \" + spartan15.getId());\n\n\n }", "SourceBuilder createRestServiceLayers();", "private void createData() {\n//\n// tour = new Tour();\n// tour.setTitle(\"Death Valley\");\n// tour.setDescription(\"A tour to Death Valley\");\n// tour.setPrice(900);\n// tour.setImage(\"death_valley\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n//\n// tour = new Tour();\n// tour.setTitle(\"San Francisco\");\n// tour.setDescription(\"A tour to San Francisco\");\n// tour.setPrice(1200);\n// tour.setImage(\"san_francisco\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n\n ToursPullParser parser = new ToursPullParser();\n tours = parser.parseXML(this);\n\n for (Tour tour : tours) {\n dataSource.create(tour);\n }\n\n }", "public interface TravelApiService {\n @GET(\"api/users/{userCode}/travels\")\n Call<List<Travel>> getTravel(@Path(value = \"userCode\") String userCode);\n\n @POST(\"api/users/{userCode}/travels\")\n Call<PostTravelGsonResponce> postTravel(@Path(value = \"userCode\") String userCode, @Field(\"travel_date\") String travelDate, @Field(\"latitude\") Double latitude, @Field(\"longitude\") Double longitude, @Field(\"area_name\") String areaName, @Field(\"contry_name\") String countryName, @Field(\"token\") String token);\n}", "String toJSON();", "private DatasetJsonConversion() {}", "@Get(\"json\")\n public Representation toJSON() {\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = null;\n\n \tString msg = \"no metadata matching query found\";\n\n \ttry {\n \t\tmetadata = getMetadata(status, access,\n \t\t\t\tgetRequestQueryValues());\n \t} catch(ResourceException r){\n \t\tmetadata = new ArrayList<Map<String, String>>();\n \tif(r.getCause() != null){\n \t\tmsg = \"ERROR: \" + r.getCause().getMessage();\n \t}\n \t}\n\n\t\tString iTotalDisplayRecords = \"0\";\n\t\tString iTotalRecords = \"0\";\n\t\tif (metadata.size() > 0) {\n\t\t\tMap<String, String> recordCounts = (Map<String, String>) metadata\n\t\t\t\t\t.remove(0);\n\t\t\tiTotalDisplayRecords = recordCounts.get(\"iTotalDisplayRecords\");\n\t\t\tiTotalRecords = recordCounts.get(\"iTotalRecords\");\n\t\t}\n\n\t\tMap<String, Object> json = buildJsonHeader(iTotalRecords,\n\t\t\t\tiTotalDisplayRecords, msg);\n\t\tList<ArrayList<String>> jsonResults = buildJsonResults(metadata);\n\n\t\tjson.put(\"aaData\", jsonResults);\n\n\t\t// Returns the XML representation of this document.\n\t\treturn new StringRepresentation(JSONValue.toJSONString(json),\n\t\t\t\tMediaType.APPLICATION_JSON);\n }", "@Override\n public String traerProyecto(Proyecto p) {\n JSONObject json = new JSONObject();\n //json.put(\"codigo\", 0004);\n json.put(\"nombre\", p.getNombre());\n json.put(\"descripcion\", p.getDescripcion());\n json.put(\"duracionSprints\", p.getDuracionDeSprints());\n json.put(\"numeroSprints\", p.getNumeroSprints());\n JSONArray jHUs = new JSONArray();\n for (HistoriaDeUsuario h : p.getProductBacklog().getHistorias()) {\n JSONObject historia = new JSONObject();\n historia.put(\"nombre\", h.getNombre());\n historia.put(\"descripcion\", h.getDescripcion());\n historia.put(\"puntos\", h.getPuntosHistoria());\n historia.put(\"estado\", h.getEstado());\n historia.put(\"prioridad\", h.getPrioridad());\n ArrayList<Criterio> criteriosH = h.getListaCriterios();\n JSONArray criterios = new JSONArray();\n for (Criterio crit : criteriosH) {\n criterios.add(crit.getDescripcion());\n }\n historia.put(\"criterios\", criterios);\n jHUs.add(historia);\n }\n json.put(\"historias\", jHUs);\n return json.toJSONString();\n }", "@PostMapping(\"/newTrack\")\n public Track saveTrack(@RequestBody Track track) {\n Track track1 = trackService.create(track.getId(), track.getName(), track.getLanguage());\n return track1;\n }", "private void createMovement(ServerRequest request,\n ServerResponse response) {\n System.out.println(\"Before Creating\");\n // request.content().as(JsonObject.class).thenAccept(jo -> compensateMovementInMongoDB(jo, response));\n request.content().as(JsonObject.class).thenAccept(jo -> createMovementInMongoDB(jo, response));\n System.out.println(\"After Creating\");\n }", "ZenModel createZenModel();", "public static JSONObject constructEmpyTable(JSONObject obj) {\n JSONObject data = new JSONObject();\n data.put(\"repo\", obj.get(\"repo_name\")); // name of the repository associated with this file\n data.put(\"classes\", new JSONObject());\n return data;\n }", "@Override\r\n\tpublic void translateToJSON(ParsedJSONContainer jsonContainer) {\t\tjsonContainer.put(\"id\",getId());\r\n\t\tjsonContainer.put(\"labels\",getLabels());\r\n\t\tjsonContainer.put(\"version\",getVersion());\r\n\t}", "@Test\npublic void testSaveMovement() throws UnirestException {\n\tHttpResponse<String> response = Unirest.post(\"http://localhost:8080/TrackingVehicle/api/movements\")\n\t\t\t.header(\"Content-Type\", \"application/json\")\n\t\t\t.header(\"Cache-Control\", \"no-cache\")\n\t\t\t.header(\"Postman-Token\", \"00792100-1211-4d0b-bcfc-096823e236bd\")\n\t\t\t.body(\"{\\r\\n\\t\\\"id\\\":\\\"1\\\",\\r\\n\\t\\\"tipoMovimento\\\":\\\"ING\\\",\\r\\n\\t\\\"codPiazzale\\\":\\\"00001\\\",\\r\\n\\t\\\"tipoTrasporto\\\":\\\"STR\\\",\\r\\n\\t\\\"vin\\\":\\\"1234ERTYUIOP4RTGF\\\",\\r\\n\\t\\\"codModello\\\":\\\"199\\\",\\r\\n\\t\\\"codTelaio\\\":\\\"12345678\\\",\\r\\n\\t\\\"versione\\\":\\\"123\\\",\\r\\n\\t\\\"serie\\\":\\\"1\\\",\\r\\n\\t\\\"parkingSpot\\\":\\\"123\\\",\\r\\n\\t\\\"numberPlate\\\":\\\"345\\\"\\r\\n\\t}\")\n\t\t\t.asString();\n}", "public SolicitudREST() {\n gson = new Gson();\n sdao= new SolicitudDAO();\n }", "public abstract String toJson();", "@Override\n public JSONObject toJson() {\n JSONObject json = new JSONObject();\n json.put(\"frontInfo\", frontInfo);\n json.put(\"backInfo\", backInfo);\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String formattedDate = dateFormat.format(startTime);\n\n json.put(\"startTime\", formattedDate);\n json.put(\"cardID\", cardID);\n return json;\n }", "CreationData creationData();", "void createPoint(JsonObject jsonMetadata, Handler<AsyncResult<String>> resultHandler);", "@Override\n\tpublic Trunk create(final List<NameValuePair> params) throws TwilioRestException {\n\t\tfinal TwilioRestResponse response = getClient().safeRequest(getResourceLocation(), \"POST\", params);\n\t\treturn makeNew(getClient(), response.toMap());\n\t}", "private static JsonQuestao toBasicJson(Questao questao) {\r\n\t\tJsonQuestao jsonQuestao = new JsonQuestao();\r\n\t\tapplyBasicJsonValues(jsonQuestao, questao);\r\n\t\treturn jsonQuestao;\r\n\t}", "void generateJSON(JSONObject object, String name);", "public String convertToJSON()\n\t{\n\t\tString json = \"\";\n\n\t\t//Engine and Rule info\n\t\tjson = \t\" \\\"infEngine\\\" : \\\"\"+ inferenceEngine +\"\\\", \" +\n\t\t\t\t\" \\\"infEngURI\\\" : \\\"\"+ infEngURI +\"\\\", \" +\n\t\t\t\t\" \\\"declRule\\\" : \\\"\"+ declarativeRule +\"\\\", \" +\n\t\t\t\t\" \\\"declRuleURI\\\" : \\\"\"+ decRuleURI +\"\\\" \";\n\n\t\t//Antecedent info\n\t\tif(antecedentRawStrings != null)\n\t\t{\n\n\t\t\tString jsonArray = \" [ \";\n\n\t\t\tint i;\n\t\t\tfor(i=0; i < antecedentRawStrings.length -1 ; i++)\n\t\t\t{\n\t\t\t\tString currAntecedentRawString = JSONUtils.toValidJSONString(antecedentRawStrings[i]);\n\t\t\t\tjsonArray += \"{ \\\"antecedentRawString\\\" : \\\"\"+ currAntecedentRawString +\"\\\" , \\\"antecedentURI\\\" : \\\"\"+ antecedentURIs[i] +\"\\\" \";\n\t\t\t\tif(antecedentCachedThumbURL[i] != null)\n\t\t\t\t\tjsonArray +=\", \\\"antecedentCachedThumbURL\\\" : \\\"\"+antecedentCachedThumbURL[i]+\"\\\" , \\\"antecedentConclusionURL\\\" : \\\"\"+antecedentConclusionURL[i]+\"\\\" }, \";\n\t\t\t\telse\n\t\t\t\t\tjsonArray +=\", \\\"antecedentCachedThumbURL\\\" : null , \\\"antecedentConclusionURL\\\" : \\\"\"+antecedentConclusionURL[i]+\"\\\" }, \";\n\t\t\t}\n\n\t\t\tString currAntecedentRawString = JSONUtils.toValidJSONString(antecedentRawStrings[i]);\n\t\t\t//insert last element and close the array.\n\t\t\tjsonArray += \"{ \\\"antecedentRawString\\\" : \\\"\"+ currAntecedentRawString +\"\\\" , \\\"antecedentURI\\\" : \\\"\"+ antecedentURIs[i] +\"\\\" \";\n\t\t\tif(antecedentCachedThumbURL[i] != null)\n\t\t\t\tjsonArray +=\", \\\"antecedentCachedThumbURL\\\" : \\\"\"+antecedentCachedThumbURL[i]+\"\\\" , \\\"antecedentConclusionURL\\\" : \\\"\"+antecedentConclusionURL[i]+\"\\\" } ]\";\n\t\t\telse\n\t\t\t\tjsonArray +=\", \\\"antecedentCachedThumbURL\\\" : null , \\\"antecedentConclusionURL\\\" : \\\"\"+antecedentConclusionURL[i]+\"\\\" } ]\";\n\n\n\t\t\tjson += \", \\\"antecedents\\\" : \"+ jsonArray;//+\", \";\n\n\t\t}\n\t\telse \n\t\t\tjson += \", \\\"antecedents\\\" : null\";//+\", \";\n\n\t\t//Metadata\n\t\t//json += \", \\\"metadata\\\" : \"+ ;\n\n\t\t//Assertions\n\t\t//json += \", \\\"assertions\\\" : \"+ ;\n\n\t\treturn \"{ \"+ json +\" }\";\n\t}", "public interface TrakkerService {\n\tGeoTrak create(final GeoTrak trak);\n}", "private JsonNode toJson() {\n ObjectMapper mapper = new ObjectMapper();\n ObjectNode root = mapper.createObjectNode();\n root.put(\"packages\", jsonPackages(mapper));\n root.put(\"cycleSegments\", jsonCycleSegments(mapper, catalog.getCycleSegments()));\n root.put(\"summary\", jsonSummary(mapper));\n return root;\n }", "private static JsonMovie toBasicJson(Movie movie) {\r\n JsonMovie jsonMovie = new JsonMovie();\r\n applyBasicJsonValues(jsonMovie, movie);\r\n return jsonMovie;\r\n }", "JSONObject toJson();", "JSONObject toJson();", "private void generateLayerAirports() {\n\t\tJSONObject geoJsonAirports = new JSONObject();\r\n\r\n\t\tgeoJsonAirports.put(\"type\", \"FeatureCollection\");\r\n\r\n\t\t// complete geoJsonAirports\r\n\t\tgeoJsonAirports.put(\"features\", _airportsFeatures);\r\n\r\n\t\t// generate String from geoJsonAirportsObject\r\n\t\t_airportsLayerString = geoJsonAirports.toString();\r\n\t}", "private void generateLayerWaypoints() {\n\t\tJSONObject geoJsonWaypoints = new JSONObject();\r\n\r\n\t\tgeoJsonWaypoints.put(\"type\", \"FeatureCollection\");\r\n\t\t// complete geoJsonWayPoints\r\n\t\tgeoJsonWaypoints.put(\"features\", _waypointsFeatures);\r\n\r\n\t\t// generate private String from geoJsonAirportsObject\r\n\t\t_waypointsLayerString = geoJsonWaypoints.toString();\r\n\r\n\t\t// implementation of a Map interface.\r\n\r\n\t\tfor (int i = 0; i < _waypointsFeatures.length(); i++) {\r\n\t\t\t// Retrieve the id of point\r\n\t\t\tJSONObject featureObj = _waypointsFeatures.optJSONObject(i);\r\n\t\t\tString id;\r\n\t\t\ttry {\r\n\t\t\t\tid = featureObj.getString(\"id\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(\"Y'a pas d'id !\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// Retrieve coordinates of point\r\n\t\t\tJSONObject geometryObj = featureObj.getJSONObject(\"geometry\");\r\n\t\t\tJSONArray coordinatesArray = geometryObj.getJSONArray(\"coordinates\");\r\n\t\t\tfloat lon = coordinatesArray.getFloat(0);\r\n\t\t\tfloat lat = coordinatesArray.getFloat(1);\r\n\r\n\t\t\t// Retrieve type of point\r\n\t\t\tJSONObject geometryO = featureObj.getJSONObject(\"geometry\");\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tString typePoint = geometryO.getString(\"type\");\r\n\t\t\t// to check if the data retrieve is correct\r\n\t\t\t// System.out.println(\"TOTO : \" + id + \", \" + longitude + \", \" + latitude);\r\n\r\n\t\t\t// Create a Point2D to add it to the dictionary\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tPoint2D pt = new Point2D.Float(lon, lat);\r\n\r\n\t\t\t// add points to dictionary ( id is the \"key\", latitude and longitude are\r\n\t\t\t// the\"value\")\r\n\t\t\t_dictWaypoints.put(id, featureObj);\r\n\r\n\t\t}\r\n\r\n\t}", "API createAPI();", "Oracion createOracion();", "@Test\n public void toJson_0_1() {\n String walletName = UUID.randomUUID().toString();\n String walletKey = UUID.randomUUID().toString();\n String endpointUrl = \"http://localhost:4000\";\n String verityUrl = \"http://localhost:3000\";\n Context context;\n try(TestWallet testWallet = new TestWallet(walletName, walletKey)) {\n JSONObject config = new JSONObject();\n config.put(\"walletName\", walletName);\n config.put(\"walletKey\", walletKey);\n config.put(\"verityUrl\", verityUrl);\n config.put(\"verityPublicDID\", testWallet.getVerityPublicDID());\n config.put(\"verityPublicVerkey\", testWallet.getVerityPublicVerkey());\n config.put(\"verityPairwiseDID\", testWallet.getVerityPairwiseDID());\n config.put(\"verityPairwiseVerkey\", testWallet.getVerityPairwiseVerkey());\n config.put(\"sdkPairwiseDID\", testWallet.getSdkPairwiseVerkey());\n config.put(\"sdkPairwiseVerkey\", testWallet.getSdkPairwiseVerkey());\n config.put(\"endpointUrl\", endpointUrl);\n context = ContextBuilder.fromJson(config).build();\n assertEqualsJSONObject(withNewKeys(config.put(\"version\", \"0.2\")), context.toJson());\n\n context.closeWallet();\n } catch(Exception e) {\n e.printStackTrace();\n fail();\n }\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t@Override\r\n\tpublic ResponseDto create(String controllerJson) {\n\t\tMap<String, Object> data = new HashMap<>();\r\n\t\t\r\n\t\tResponseDto response = new ResponseDto();\r\n\t\t\r\n\t\tMap<Object, Object> inputDataMap = new LinkedHashMap<>();\r\n\t\tinputDataMap.put(\"inputString\", controllerJson);\r\n\r\n\t\tGson gson = new Gson();\r\n\t\tContainerDTO dto = gson.fromJson(controllerJson.toString(), ContainerDTO.class);\r\n\t\tList<ContainerDetailsDTO> list = new ArrayList<>();\r\n\t\t// System.out.println(dto.getDELIVERY().getITEM());\r\n\t\tif (dto.getDELIVERY().getITEM() instanceof LinkedTreeMap) {\r\n\t\t\tLinkedTreeMap<String, String> item2 = (LinkedTreeMap) dto.getDELIVERY().getITEM();\r\n\t\t\tContainerDetailsDTO d = getLinkedTreeMapToContainerDetailsDto(item2);\r\n\t\t\tlist.add(d);\r\n\t\t\t// System.out.println(d.getAREACODE());\r\n\t\t} else if (dto.getDELIVERY().getITEM() instanceof ArrayList) {\r\n\t\t\tList<LinkedTreeMap> item2 = (List<LinkedTreeMap>) dto.getDELIVERY().getITEM();\r\n\t\t\tfor (LinkedTreeMap i : item2) {\r\n\t\t\t\tContainerDetailsDTO d = getLinkedTreeMapToContainerDetailsDto(i);\r\n\t\t\t\tlist.add(d);\r\n\t\t\t}\r\n\t\t}\r\n\t\tdto.getDELIVERY().setITEM(list);\r\n\t\tinputDataMap.put(\"processObject\", dto);\r\n\t\t// LOGGER.error(\"INSIDE CREATE CONTAINER SERVIE WITH REQUEST PAYLOAD =>\r\n\t\t// \" + dto);\r\n\t\tif (!ServicesUtil.isEmpty(dto) && !ServicesUtil.isEmpty(dto.getDELIVERY())) {\r\n\t\t\tList<ContainerDetailsDTO> containerDetailsDTOs = (List<ContainerDetailsDTO>) dto.getDELIVERY().getITEM();\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tlong timeStamp = System.currentTimeMillis();\r\n\t\t\t\tString jobIdentity = \"DnProcessJob\" + timeStamp;\r\n\t\t\t\tString group = \"group\" + timeStamp;\r\n\t\t\t\tString triggerName = \"DnProcessTrigger\" + timeStamp;\r\n\t\t\t\tString jobName = \"Job\" + timeStamp;\r\n\t\t\t\tDate currdate = new Date();\r\n\r\n\t\t\t\tJobDetail job = JobBuilder.newJob(ContainerToDeliveryNoteProcessingJob.class)\r\n\t\t\t\t\t\t.withIdentity(jobIdentity, group).build();\r\n\r\n\t\t\t\tSimpleTrigger trigger = (SimpleTrigger) TriggerBuilder.newTrigger().withIdentity(triggerName, group)\r\n\t\t\t\t\t\t.startNow().build();\r\n\t\t\t\tScheduler scheduler = new StdSchedulerFactory().getScheduler();\r\n\r\n\t\t\t\tContainerRecordsDo recordsDo = new ContainerRecordsDo();\r\n\t\t\t\trecordsDo.setPayload(controllerJson.trim());\r\n\t\t\t\trecordsDo.setCreatedAt(currdate);\r\n\r\n\t\t\t\t// containerRecordService.create(recordsDo);\r\n\r\n\t\t\t\tcontainerRecordsDAO.getSession().persist(recordsDo);\r\n\r\n\t\t\t\tcontainerRecordsDAO.getSession().flush();\r\n\t\t\t\tcontainerRecordsDAO.getSession().clear();\r\n\t\t\t\tcontainerRecordsDAO.getSession().getTransaction().commit();\r\n\t\t\t\t\r\n\t\t\t\t// adding data to scheduler context\r\n\t\t\t\tdata.put(\"data\", dto);\r\n\t\t\t\tdata.put(\"timeStamp\", currdate);\r\n\t\t\t\tdata.put(\"containerRecordId\", recordsDo.getId());\r\n\t\t\t\tdata.put(\"jobName\", jobName);\r\n\r\n\t\t\t\tcomp.backgroudDnProcessing(data);\r\n\t\t\t\t\r\n\t\t\t\t// adding data to scheduler context\r\n\t\t\t\tscheduler.getContext().put(\"data\", dto);\r\n\t\t\t\tscheduler.getContext().put(\"timeStamp\", currdate);\r\n\t\t\t\tscheduler.getContext().put(\"containerRecordId\", recordsDo.getId());\r\n\t\t\t\tscheduler.getContext().put(\"jobName\", jobName);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t * int i=1; for (ContainerDetailsDTO d : containerDetailsDTOs) {\r\n\t\t\t\t * containerDao.create(d, new ContainerDetailsDo());\r\n\t\t\t\t * \r\n\t\t\t\t * if(i % BATCH_SIZE ==0) { containerDao.getSession().flush();\r\n\t\t\t\t * containerDao.getSession().clear(); }\r\n\t\t\t\t * \r\n\t\t\t\t * i++;\r\n\t\t\t\t * \r\n\t\t\t\t * }\r\n\t\t\t\t * \r\n\t\t\t\t * // flushing the session data\r\n\t\t\t\t * containerDao.getSession().flush();\r\n\t\t\t\t * containerDao.getSession().clear();\r\n\t\t\t\t */\r\n\r\n\t\t\t\t/*scheduler.start();\r\n\t\t\t\tscheduler.scheduleJob(job, trigger);*/\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\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\t\r\n\t\t\t\tLOGGER.error(\"INSIDE CREATE CONTAINER SERVICE : JOB STARTED ID [ \"+jobName+\" ]\");\r\n\t\t\t\t\r\n\t\t\t\t//scheduler.standby();\r\n\t\t\t\t// scheduler.shutdown(true);\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Object data = createEntryInDeliveryHeader(dto); LOGGER.\r\n\t\t\t\t * error(\"INSIDE CREATE CONTAINER SERVIE WITH RESPONSE PAYLOAD <= \"\r\n\t\t\t\t * + data);\r\n\t\t\t\t */\r\n\t\t\t\tresponse.setStatus(true);\r\n\t\t\t\tresponse.setCode(HttpStatus.SC_OK);\r\n\t\t\t\tresponse.setMessage(Message.SUCCESS + \"\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tresponse.setStatus(false);\r\n\t\t\t\tresponse.setCode(HttpStatus.SC_INTERNAL_SERVER_ERROR);\r\n\t\t\t\tresponse.setMessage(Message.FAILED + \" : \" + e.toString());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tresponse.setStatus(true);\r\n\t\t\tresponse.setMessage(Message.SUCCESS.getValue());\r\n\t\t\tresponse.setCode(HttpStatus.SC_OK);\r\n\t\t}\r\n\r\n\t\treturn response;\r\n\t}", "@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "@POST\r\n\t@Consumes(MediaType.APPLICATION_JSON)\r\n\tpublic void addNewTpa(Tpa tpa){\r\n\t}", "WithCreate withHyperVGeneration(HyperVGeneration hyperVGeneration);", "@Override\n\tpublic String toJSON()\n\t{\n\t\tStringJoiner json = new StringJoiner(\", \", \"{\", \"}\")\n\t\t.add(\"\\\"name\\\": \\\"\" + this.name + \"\\\"\")\n\t\t.add(\"\\\"id\\\": \" + this.getId());\n\t\tString locationJSON = \"\"; \n\t\tif(this.getLocation() == null)\n\t\t{\n\t\t\tlocationJSON = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlocationJSON = this.getLocation().toJSON(); \n\t\t}\n\t\tjson.add(\"\\\"location\\\": \" + locationJSON);\n\t\tStringJoiner carsJSON = new StringJoiner(\", \", \"[\", \"]\");\n\t\tfor(Object r : cars)\n\t\t{\n\t\t\tcarsJSON.add(((RollingStock) r).toJSON());\n\t\t}\n\t\tjson.add(\"\\\"cars\\\": \" + carsJSON.toString());\n\t\treturn json.toString(); \n\t}", "public String toJson() {\n Gson gson = new Gson();\n TurretServer ta = cast(this);\n return gson.toJson(ta);\n }", "public static String encodeServerStatus(Status status) {\n return Json.createObjectBuilder()\n .add(\n EXPRESSIVE,\n Json.createObjectBuilder()\n .add(LOOKING_RIGHT, status.getLookingRight())\n .add(EYEBROW_RAISE, status.getEyebrowRaise())\n .add(LOOKING_LEFT, status.getLookingLeft())\n .add(LOOKING_DOWN, status.getLookingDown())\n .add(LOOKING_UP, status.getLookingUp())\n .add(LEFT_WINK, status.getLeftWink())\n .add(RIGHT_WINK, status.getRightWink())\n .add(BLINK, status.getBlink())\n .add(EYES_OPEN, status.getEyesOpen())\n .add(SMILE, status.getSmile())\n .add(CLENCH, status.getClench())\n .add(SMIRK_LEFT, status.getSmirkLeft())\n .add(SMIRK_RIGHT, status.getSmirkRight())\n .add(EYEBROW_FURROW, status.getEyebrowFurrow())\n .add(LAUGH, status.getLaugh()))\n .add(\n EMOTIONAL,\n Json.createObjectBuilder()\n .add(INTEREST, status.getInterest())\n .add(ENGAGEMENT, status.getEngagement())\n .add(STRESS, status.getStress())\n .add(RELAXATION, status.getRelaxation())\n .add(EXCITEMENT, status.getExcitement())\n .add(FOCUS, status.getFocus()))\n .add(\n AFFECTIVE,\n Json.createObjectBuilder()\n .add(MEDITATION, status.getMediation())\n .add(ENGAGEMENT_BOREDOM, status.getEngagementBoredom())\n .add(EXCITEMENT_SHORT_TERM, status.getExcitementShortTerm())\n .add(FRUSTRATION, status.getFrustration())\n .add(EXCITEMENT_LONG_TERM, status.getExcitementLongTerm()))\n .add(\n META,\n Json.createObjectBuilder()\n .add(IS_AUTO_REST, status.isAutoReset())\n .add(TIMESTAMP, status.getTimestamp()))\n .build()\n .toString();\n }", "@PostMapping(\"/J314Authorities\")\n\t@Timed\n\n\t@Transactional\n\t\n\tpublic ResultExt< J314AuthorityPoj> create(HttpServletRequest request,HttpServletResponse response, @Valid @RequestBody J314AuthorityPoj obj)\n\t{\n\t\t\n\t\tString params=UtilParams.paramsToString(\"J314AuthorityPoj\",obj);\n\n\t\tContexto ctx = Contexto.init();\n\t\tctx.put(Contexto.REQUEST,request);\n\t\tctx.put(Contexto.RESPONSE,response);\n\t\tctx.put(Contexto.CLAVE_SEGURIDAD,\"REST_ENTITY_J314AUTHORITY_CREATE\");\n\t\tctx.put(Contexto.URL_SOLICITADA,\"/J314Authorities\");\n\t\tResult< J314AuthorityPoj> res=new Result<>();\n\t\tif (log.isInfoEnabled()) log.info(\"Entrada en REST POST:create(\"+params+\")\"+params);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tif(!verificaPermisos(\"REST_ENTITY_J314AUTHORITY_CREATE\"))\n\t\t\t{\n\t\t\t\tres.addError(new ErrorSinPermiso(\"REST_ENTITY_J314AUTHORITY_CREATE\",\"/J314Authorities\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tparams=UtilParams.paramsToString(\"J314AuthorityPoj\",obj);\n\t\t\t\tif (log.isInfoEnabled()) log.info(\"Verificado en REST POST:create(\"+params+\")\"+params);\n\n\t\t\t\tJ314Authority obj_ = J314AuthorityPoj.getModel(obj);\n\n\t\t\t\tResult< J314Authority > res_=service.insert(obj_);\n\t\t\t\tres.setInfoEWI(res_);\n\n\t\t\t\tres.setData(res_.getData()!=null?new J314AuthorityPoj(res_.getData()):null);\n\n\t\t\t}\n\t\t\taddTiempoSesion();\n\t\t}\tcatch(Exception e)\n\t\t{\n\t\t\tres.addError(new ErrorGeneral(e));\n\t\t\tif (log.isErrorEnabled()) log.error(\"Error en REST POST:create(\"+params+\"). Excepcion:\"+UtilException.printStackTrace(e));\n\t\t}\n\t\tif (log.isInfoEnabled()) log.info(\"Salida de REST POST:create(\"+params+\"). Resultado:\"+res.toString());\n\n\t\tif (!res.isOk())\n\t\t{\n\t\t\ttry {\t\n\t\t\t\tTransactionInterceptor.currentTransactionStatus().setRollbackOnly();\n\t\t\t}catch(Throwable t)\n\t\t\t{\n\t\t\t\tres.addError(new ErrorGeneral(t));\n\t\t\t\tif (log.isErrorEnabled()) log.error(\"Error en REST POST:create(\"+params+\"). Excepcion:\"+UtilException.printStackTrace(t));\n\t\t\t}\n\t\t}\n\n\t\tResultExt< J314AuthorityPoj > resFin=new ResultExt<>(res,ctx.getAs(\"ticketStr\"));\n\t\tContexto.close();\n\t\treturn resFin;\n\t}", "public JsonObject toJson();", "public void example1(OutputStream out) {\r\n \r\n Json.createGenerator(out)\r\n .writeStartObject()\r\n .write(\"firstName\", \"John\")\r\n .write(\"lastName\", \"Smith\")\r\n .write(\"age\", 25)\r\n .writeEnd()\r\n .close();\r\n }", "@Override\r\n\tpublic void creerTVA(TVA t) {\n\t\t\r\n\t}", "Vehicle createVehicle();", "Vehicle createVehicle();", "public TarefaResource() {\r\n }", "@Override\n\tpublic Trunk create(final Map<String, String> params) throws TwilioRestException {\n\t\tfinal TwilioRestResponse response = getClient().safeRequest(getResourceLocation(), \"POST\", params);\n\t\treturn makeNew(getClient(), response.toMap());\n\t}", "Weather create(WeatherInformation weatherInformation);", "private String converttoJson(Object followUpDietStatusInfo) throws JsonProcessingException {\n ObjectMapper objectMapper = new ObjectMapper();\n return objectMapper.writeValueAsString(followUpDietStatusInfo);\n }", "ShipmentGatewayDhl createShipmentGatewayDhl();", "public VehicleInfoAvro() {}", "Drone createDrone();", "@Inject\n\tpublic ScenerySerializer() {\n\t}", "private JSONObject toJSON() throws JSONException {\n JSONObject jo = new JSONObject();\n jo.put(\"d\", description);\n jo.put(\"t\", timestamp);\n return jo;\n }", "private static JsonAluno toBasicJson(Aluno aluno) {\r\n\t\tJsonAluno jsonAluno = new JsonAluno();\r\n\t\tapplyBasicJsonValues(jsonAluno, aluno);\r\n\t\treturn jsonAluno;\r\n\t}", "Foco createFoco();", "@Override\n\tpublic void create() {\n\n\t}", "SurfaceEntity createRoadEntity(Tile tile) {\r\n\t\tSurfaceEntity result = new SurfaceEntity();\r\n\t\tresult.tile = tile;\r\n\t\tresult.tile.alpha = alpha;\r\n\t\tresult.type = SurfaceEntityType.ROAD;\r\n\t\treturn result;\r\n\t}", "private static JsonQuestaoDesafio toBasicJson(QuestaoDesafio questaoDesafio) {\r\n\t\tJsonQuestaoDesafio jsonQuestaoDesafio = new JsonQuestaoDesafio();\r\n\t\tapplyBasicJsonValues(jsonQuestaoDesafio, questaoDesafio);\r\n\t\treturn jsonQuestaoDesafio;\r\n\t}", "TimelineEntity(){}", "H3 createH3();", "public void example3(OutputStream out) {\r\n \r\n Json.createGenerator(out)\r\n .writeStartObject()\r\n .write(\"firstName\", \"John\")\r\n .write(\"lastName\", \"Smith\")\r\n .write(\"age\", 28)\r\n .writeStartObject(\"address\")\r\n .write(\"streetAddress\", \"21 2nd Street\")\r\n .write(\"city\", \"New York\")\r\n .write(\"state\", \"NY\")\r\n .write(\"postalCode\", \"10021\")\r\n .writeEnd()\r\n .writeStartArray(\"phoneNumber\")\r\n .writeStartObject()\r\n .write(\"type\", \"home\")\r\n .write(\"number\", \"212 555-1234\")\r\n .writeEnd()\r\n .writeStartObject()\r\n .write(\"type\", \"fax\")\r\n .write(\"number\", \"646 555-4567\")\r\n .writeEnd()\r\n .writeEnd()\r\n .writeEnd()\r\n .close();\r\n }", "TR createTR();", "@Test\n public void canRepresentAsJson() throws Exception {\n final RtReleaseAsset asset = new RtReleaseAsset(\n new FakeRequest().withBody(\"{\\\"asset\\\":\\\"release\\\"}\"),\n release(),\n 1\n );\n MatcherAssert.assertThat(\n asset.json().getString(\"asset\"),\n Matchers.equalTo(\"release\")\n );\n }", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "public static void main(String[] args) {\n String jsonString = \"{\\\"name\\\":\\\"Pourush\\\"}\";\n JsonObject jsonObject = new JsonObject(jsonString);\n jsonObject.put(\"location\",\"Utsav\");\n System.out.println(jsonObject);\n Myitem myitem = new Myitem();\n myitem.name = \"falanadhimkana\";\n myitem.description = \"some description\";\n jsonObject.put(\"Myitem\",jsonObject.mapFrom(myitem));\n System.out.println(jsonObject);\n }", "@PostMapping(\"/tlb-trade/createTlbTrade\")\n @Timed\n public ResponseEntity<ResponseResult> createTlbTrade(@RequestBody TlbTradeDTO tlbTradeDTO) throws URISyntaxException {\n log.debug(\"REST request to save TlbTrade : {}\", tlbTradeDTO);\n if (tlbTradeDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new sysComponent cannot already have an ID\")).body(null);\n }\n ResponseResult json = new ResponseResult();\n HashMap<String, Object> checkMap = tlbTradeService.checkLotsTrade(tlbTradeDTO);\n if(!ResponseResult.SUCCESS_CODE.equals(checkMap.get(\"statusCode\"))){\n json.setMsgCode(checkMap.get(\"msg\").toString());\n return new ResponseEntity<>(json, null, HttpStatus.OK);\n }\n TlbTradeDTO tradeDTO = tlbTradeService.save(tlbTradeDTO);\n //ResponseResult json = new ResponseResult();\n json.setStatusCode(ResponseResult.SUCCESS_CODE);\n json.setData(tradeDTO);\n return new ResponseEntity<>(json, null, HttpStatus.OK);\n }", "private static JsonLista toBasicJson(Lista lista) {\r\n\t\tJsonLista jsonLista = new JsonLista();\r\n\t\tapplyBasicJsonValues(jsonLista, lista);\r\n\t\treturn jsonLista;\r\n\t}", "@POST\n public Response create(EvenementDto evenementDto) {\n DataAccess dataAccess = DataAccess.begin();\n EvenementEntity evenementEntity = EvenementEntity.convertFromEvenementDto(evenementDto);\n\n System.out.println(evenementDto.toString());\n System.out.println(evenementEntity.toString());\n\n if (evenementDto.getNom() == null) {\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"name not specified\\n\").build();\n }\n else if(evenementDto.getDate() == null){\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"date not specified\\n\").build();\n }\n else if(evenementDto.getHeure() == null){\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"heure not specified\\n\").build();\n }\n\n long id = dataAccess.createEvent(evenementEntity);\n URI instanceURI = uriInfo.getAbsolutePathBuilder().path(\"\" + id).build();\n dataAccess.closeConnection(true);\n return Response.created(instanceURI).status(201).entity(evenementDto).location(instanceURI).build(); // .created(instanceURI).build();\n\n }", "public void createTurtle (TurtleView tView) {\n myController.createTurtle(tView);\n }", "private void convertToJson(Movie movie) {\n Gson gson = setExclusionStrategy();\n result = gson.toJson(movie);\n if (result.equals(\"null\")) {\n throw new IllegalArgumentException(\"No movie with such name\");\n }\n printJson();\n }", "@POST(\"lugares/\")\n Call<Lugar> create(@Body Lugar lugar);", "@Test\n\tpublic void testCreate() throws Exception {\n\t\tMockHttpServletRequestBuilder reqBuilder = MockMvcRequestBuilders.post(\"/createJourney\");\n\t\treqBuilder.contentType(MediaType.APPLICATION_JSON);\n\t\treqBuilder.accept(MediaType.APPLICATION_JSON);\n\t\treqBuilder.content(this.mapper.writeValueAsString(journey));\n\t\t\n\t\tResultMatcher matchStatus = MockMvcResultMatchers.status().isCreated();\n\t\tResultMatcher matchContent = MockMvcResultMatchers.content().json(this.mapper.writeValueAsString(savedJourney));\t\n\t\t\t\t\n\t\tthis.mockMVC.perform(reqBuilder).andExpect(matchStatus).andExpect(matchContent);\n\t}" ]
[ "0.5380428", "0.52856857", "0.5279412", "0.5272612", "0.52524376", "0.5223277", "0.5184865", "0.5160206", "0.51583534", "0.5140449", "0.5137514", "0.51073235", "0.51062775", "0.51048005", "0.509295", "0.5087406", "0.5001167", "0.49770615", "0.4974246", "0.49702954", "0.4967428", "0.49638668", "0.49336532", "0.49331626", "0.49016467", "0.4899578", "0.4895073", "0.48896265", "0.48883295", "0.4880568", "0.48766053", "0.48765168", "0.4870181", "0.48671046", "0.4866811", "0.48507863", "0.48483574", "0.48373333", "0.48351917", "0.4825298", "0.4823854", "0.48232728", "0.48194116", "0.48118144", "0.48103955", "0.48067358", "0.48027375", "0.47883305", "0.47834313", "0.47829425", "0.47789395", "0.47753194", "0.47686845", "0.47686845", "0.47676522", "0.47657186", "0.47622594", "0.47536257", "0.4745991", "0.47319913", "0.4729993", "0.47298977", "0.47281346", "0.47255862", "0.47237346", "0.47184065", "0.471776", "0.4716111", "0.4712387", "0.47104436", "0.47093198", "0.47093198", "0.4706852", "0.47056544", "0.47041595", "0.46988723", "0.4696272", "0.46961895", "0.46960932", "0.46924272", "0.46801087", "0.4678531", "0.4675932", "0.46752194", "0.46724233", "0.46664193", "0.46630436", "0.4661213", "0.4659644", "0.46585372", "0.4658164", "0.46559376", "0.46497113", "0.46489817", "0.4642802", "0.46420643", "0.46407762", "0.46344322", "0.4633621", "0.4627622" ]
0.5014449
16
Returns generated token for given user
@PostMapping(value = "/{userId}", produces = "application/json") public ResponseEntity<TokenDto> getToken(@PathVariable @UserValidator String userId){ return createResponse( TokenDto.builder().token(tokenService.getToken(userId)).build(), HttpStatus.CREATED ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String createToken(User user);", "public TokenTO generateToken(UserTO user) {\n TokenTO res;\n\n res = mgrToken.createToken(Crypto.generateToken() + Crypto.generateToken());\n mgrToken.save(res);\n user.setToken(res);\n getDao().update(user);\n\n return res;\n }", "private String generateVerificationToken(User user) {\n String token = UUID.randomUUID().toString();\n VerificationToken verificationToken = new VerificationToken();\n verificationToken.setToken(token);\n verificationToken.setUser(user);// after that we save it to repository\n verificationTokenRepository.save(verificationToken);\n return token;\n }", "public String generateToken(User user) {\n\t\tMap<String, Object> claims = new HashMap<>();\n\t\treturn doGenerateToken(claims, user.getAuthenticationInformation().getUsername());\n\t}", "public Token createAuthorizationToken(User user);", "@Transactional\n public UserToken generateToken() {\n if (!firebaseService.canProceed())\n return null;\n\n try {\n Optional<UserAuth> userOptional = Auditor.getLoggedInUser();\n if (!userOptional.isPresent()) return UNAUTHENTICATED;\n UserAuth user = userOptional.get();\n Map<String, Object> claims = new HashMap<>();\n claims.put(\"type\", user.getType().toString());\n claims.put(\"department\", user.getDepartment().getName());\n claims.put(\"dean_admin\", PermissionManager.hasPermission(user.getAuthorities(), Role.DEAN_ADMIN));\n String token = FirebaseAuth.getInstance().createCustomTokenAsync(user.getUsername(), claims).get();\n return fromUser(user, token);\n } catch (InterruptedException | ExecutionException e) {\n return UNAUTHENTICATED;\n }\n }", "public String generateToken(UserDetails userDetails) {\n\t\tMap<String, Object> claims = new HashMap<>();\n\t\treturn createToken(claims, userDetails.getUsername());\n\t}", "public String generateToken() {\n Authentication authentication = getAuthentication();\n if(authentication == null) {\n throw new AuthenticationCredentialsNotFoundException(\"No user is currently logged in.\");\n }\n return jwtUtil.generateJwtToken(authentication);\n }", "public String generateTokenForUser(String userName) {\n\t\tSession session = new Session();\n\t\tString token = session.getToken();\n\t\tsessionMap.put(userName, session);\n\t\t\n\t\treturn Base64.getEncoder().encodeToString(token.getBytes());\n\t}", "public String genUserToken()\n\t{\n\t\tString token = \"\";\n\t\tfor (int i = 0; i < 16; i++)\n\t\t{\n\t\t\ttoken = token + tokenGenerator.nextInt(10);\n\t\t}\n\t\treturn token;\n\t}", "public String generateToken(User userDetails) {\n\t\tMap<String, Object> claims = new HashMap<>();\n\t\tclaims.put(\"role\", userDetails.getRole());\n\t\treturn doGenerateToken(claims, userDetails.getUsername());\n\t}", "private Map<String, Object> generateJWTToken(Customer user) {\n long timestamp = System.currentTimeMillis();\n String token = Jwts.builder().signWith(SignatureAlgorithm.HS256, Constant.API_SECRET_KEY)\n .setIssuedAt(new Date(timestamp))\n .setExpiration(new Date(timestamp + Constant.TOKEN_VALIDITY))\n .claim(\"userId\", user.getId())\n// .claim(\"email\", user.getEmail())\n// .claim(\"password\", user.getPassword())\n .compact();\n Map<String, Object> map = new HashMap();\n map.put(\"token\", token);\n map.put(\"customer\", user);\n return map;\n\t}", "public Guid getUserToken() {\n return localUserToken;\n }", "public Guid getUserToken() {\n return localUserToken;\n }", "public Guid getUserToken() {\n return localUserToken;\n }", "public String userToken() {\n return userToken;\n }", "public static String createToken(int userId) {\n String tokenRaw = userId + \"_\" + UUID.randomUUID().toString().replace(\"-\", \"\");\n return encryptedByMD5(tokenRaw);\n }", "private String generateToken(User newUser) throws JSONException{\n User temp_user = userRepository.findByUsername(newUser.getUsername());\n String user_id = temp_user.getId().toString();\n\n //creating JSON representing new token format which then can be encoded --> DOUBLE CHECK IF ALSO WORKS WITH STRINGS ONLY\n JSONObject json = new JSONObject();\n json.put(\"user_id\", user_id);\n\n //creating and encoding token\n return Base64.getEncoder().encodeToString(json.toString().getBytes());\n }", "String generateUserRenewalToken(String username);", "private String createAuthToken(User user) {\n // create new Auth Token\n String authToken = userAuthenticationService.generateToken();\n\n // store the token\n userAuthenticationService.storeAuthToken(user, authToken);\n return authToken;\n }", "@Override\n\t@Transactional\n\tpublic Token generateToken(User u) {\n\t\tString JPQL = \"SELECT tok FROM Token tok where tok.user = :user\";\n\t\tTypedQuery<Token> query = em.createQuery(JPQL, Token.class);\n\n\t\tquery.setParameter(\"user\", u);\n\t\tList<Token> query_results = query.getResultList();\n\t\tif (query_results.size() > 0) {\n\t\t\tSystem.out.println(\"Found token!\");\n\t\t\tSystem.out.println(query_results.get(0));\n\t\t\treturn query_results.get(0);\n\t\t}\n\n\t\t// Generate a new token\n\t\tToken token = new Token();\n\t\ttoken.setUser(u);\n\t\ttoken.setRole(u.getRole());\n\t\tSystem.out.println(\"Token before persist\");\n\t\tSystem.out.println(token);\n\t\tem.persist(token);\n\t\treturn token;\n\t}", "public String generateToken(String username) {\n\t\tString token = username;\n\t\tLong l = Math.round(Math.random()*9);\n\t\ttoken = token + l.toString();\n\t\treturn token;\n\t}", "public static String createToken(UserDetails userDetails) {\n\t\tlong expires = System.currentTimeMillis() + 1000L * 60 * 30;\n\t\t\n\t\t/* Expires in three Year */\n\t\t//long expiresOneYear = System.currentTimeMillis() + 1000L * 60 * 60 * 24 * 365 *3;\n\t\t\n\t\tStringBuilder tokenBuilder = new StringBuilder();\n\t\ttokenBuilder.append(userDetails.getUsername());\n\t\ttokenBuilder.append(\":\");\n\t\t// set expire time\n\t\ttokenBuilder.append(expires);\n\t\t\n\t\ttokenBuilder.append(\":\");\n\t\t\n\t\ttokenBuilder.append(TokenUtils.computeSignature(userDetails, expires));\n\t\t\n\t\treturn tokenBuilder.toString();\n\t}", "@RequestMapping(value = \"/user/token\", method = RequestMethod.POST)\n public ResponseEntity fetchRestrictedUserToken(@RequestParam String userId) {\n User user = userManagementService.load(userId);\n if (user == null)\n throw new AccessDeniedException(\"Only existing / created users can have a token\");\n\n CreateJwtTokenRequest tokenRequest = new CreateJwtTokenRequest(JwtType.MSGING_CLIENT);\n tokenRequest.addClaim(JwtService.USER_UID_KEY, userId);\n tokenRequest.addClaim(JwtService.SYSTEM_ROLE_KEY, StandardRole.ROLE_FULL_USER.name());\n userLogger.logUserLogin(userId, UserInterfaceType.WHATSAPP); // keep an eye on how often this gets called (may become redundant)\n return ResponseEntity.ok(jwtService.createJwt(tokenRequest));\n }", "public String getUserToken() {\n if (userinfo == null)\n return null;\n return userinfo.token;\n }", "String generateUserRequestToken(String username, Collection<String> authorities);", "public static String generateToken(UserIdentity domainUser) {\n \t\n \tlong nowMillis = System.currentTimeMillis();\n Date now = new Date(nowMillis);\n \t\n Claims claims = Jwts.claims()\n \t\t.setSubject(domainUser.getUserName() )\n \t\t.setIssuer(\"RAP\")\n \t\t.setIssuedAt(now)\n \t\t.setAudience(\"backoffice\");\n claims.put(\"idmToken\", domainUser.getToken());\n\n long expMillis = nowMillis + (15 * ONE_MINUTE_IN_MILLIS); // set JWT to expire in 15 minutes.\n Date exp = new Date(expMillis);\n \n return Jwts.builder()\n .setClaims(claims)\n .signWith(SignatureAlgorithm.HS512, JwtUtils.jwtSecret)\n .setExpiration(exp)\n .compact();\n }", "public String generateAuthToken(final User user, final String tenant)\n\t{\n\t\tClaims claims = Jwts.claims().setSubject(user.getId().toString());\n\t\tclaims.put(\"username\", user.getUsername());\n\t\tclaims.put(\"groupIds\", user.getGroups().stream().map(Group::getId).collect(Collectors.toList()));\n\t\tclaims.put(\"tenant\", tenant);\n\t\treturn buildToken(claims, authTokenExp);\n\t}", "protected static String generateToken()\n\t{\n\t\treturn UUID.randomUUID().toString();\n\t}", "UserWithPersistedAuth getUserWithToken();", "public static Task<String> getUserToken(String userId) {\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .get()\n .continueWith(new Continuation<DocumentSnapshot, String>() {\n @Override\n public String then(@NonNull Task<DocumentSnapshot> task) {\n DocumentSnapshot result = task.getResult();\n if (result != null && result.contains(Const.USER_TOKEN_KEY)) {\n return (String) result.get(Const.USER_TOKEN_KEY);\n }\n return \"\";\n }\n });\n }", "public int generatePasswordResetToken(String userName) {\n\t\tPasswordResetToken resetToken = new PasswordResetToken();\n\t\tint token = resetToken.getToken();\n\t\tpasswordResetMap.put(userName, resetToken);\n\t\t\n\t\treturn token;\n\t}", "public String generateRefreshToken(final User user, final String tenant)\n\t{\n\t\tClaims claims = Jwts.claims().setSubject(user.getId().toString());\n\t\tclaims.put(\"password\", user.getPassword());\n\t\tclaims.put(\"tenant\", tenant);\n\t\treturn buildToken(claims, refreshTokenExp);\n\t}", "private String getPaymentToken() {\r\n\t\tString paymentToken = \"\";\r\n\t\tUserItem currentUserItem = getSimpleWorksUserSessionConfiguration().getCurrentUser();\r\n\t\tOrderItem orderItem = getSimpleWorksUserSessionConfiguration().getOrderItem();\r\n\t\tif (orderItem != null) {\r\n\t\t\tpaymentToken = \"\" + orderItem.getOrderId();\r\n\t\t\t if (currentUserItem != null){\r\n\t\t\t\t paymentToken += \"#\" + currentUserItem.getUserId();\r\n\t\t\t }\r\n\t\t}\r\n\t\treturn paymentToken;\r\n\t}", "public static String getToken() {\n String token = \"96179ce8939c4cdfacba65baab1d5ff8\";\n return token;\n }", "private String issueRefreshToken(UUID user, String deviceName) {\n String token = UUID.randomUUID().toString();\n String hash = BCrypt.hashpw(token, BCrypt.gensalt());\n\n dao.updateToken(user, deviceName, hash);\n\n return token;\n }", "public String getUserId() {\n if (this.isTokenValide()) {\n JWT jwt = new JWT(getToken());\n Claim claim = jwt.getClaim(\"user_id\");\n return claim.asString();\n } else {\n return \"\";\n }\n }", "public static String getToken(String username)\n\t{\n\t\tif(Application.getAccountLibrary().getAccount(username) == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tString token = StringUtils.getRandomStringOfLettersAndNumbers(10)\n\t\t\t\t.toUpperCase();\n\t\tusernames.put(token, username);\n\t\treturn token;\n\t}", "public Map<String,String> generateJWTTToken(User user){\n long timestamp = System.currentTimeMillis();\n String token = Jwts.builder().signWith(SignatureAlgorithm.HS256, Constants.API_SECRET_KEY)\n .setIssuedAt(new Date(timestamp))\n .setExpiration(new Date(timestamp + Constants.TOKEN_VALIDITY))\n .claim(\"user_id\", user.getUser_id())\n .claim(\"first_name\", user.getFirst_name())\n .claim(\"last_name\", user.getLast_name())\n .compact();\n Map<String, String> map = new HashMap<>();\n map.put(\"status\", \"200\");\n map.put(\"token\", token);\n map.put(\"user_id\", String.valueOf(user.getUser_id()));\n return map;\n }", "public String generateToken(HttpServletRequest request)\r\n\t{\r\n\t\treturn tokensManager.generateToken((HttpServletRequest) request);\r\n\t}", "public Pokemon.RequestEnvelop.AuthInfo.JWT getToken() {\n if (tokenBuilder_ == null) {\n return token_;\n } else {\n return tokenBuilder_.getMessage();\n }\n }", "public String generateAccessToken(User user, String tenant)\n\t{\n\t\tClaims claims = Jwts.claims().setSubject(user.getId().toString());\n\t\tclaims.put(\"password\", user.getPassword());\n\t\tclaims.put(\"tenant\", tenant);\n\t\treturn buildToken(claims, Integer.MAX_VALUE);\n\t}", "private String generateToken(LoginViewModel viewModel){\n \n String authenticationToken;\n \n try{\n Authentication authentication = authenticationManager.authenticate(\n new UsernamePasswordAuthenticationToken(viewModel.getUsername(), viewModel.getPassword()));\n \n SecurityContextHolder.getContext().setAuthentication(authentication);\n UserPrincipal principal = (UserPrincipal) authentication.getPrincipal();\n \n System.out.println(generateExpirationDate());\n authenticationToken = JWT\n .create()\n .withClaim(\"role\",\"ROLE_\" + principal.getRole())\n .withSubject(principal.getUsername())\n .withExpiresAt(generateExpirationDate())\n .sign(HMAC512(CommonSecurityConfig.SECRET.getBytes()));\n }catch (Exception e){\n System.out.println(e.getMessage());\n return null;\n }\n \n return authenticationToken;\n }", "public String generateRefreshToken(ApplicationUser user) {\n Date expiryDate = java.sql.Date.valueOf(LocalDate.now().plusDays(jwtConfig.getRefreshExpirationDateInMs()));\n return Jwts.builder()\n .setSubject(user.getUser().getUsername())\n .claim(\"authorities\", user.getAuthorities())\n .setIssuedAt(new Date(System.currentTimeMillis()))\n .setExpiration(expiryDate)\n .signWith(jwtSecretKey.secretKey())\n .compact();\n }", "@Override\n public String createJwtToken(String userId) {\n Calendar expiration = Calendar.getInstance();\n expiration.roll(Calendar.HOUR, 1);\n \n HashMap<String, Object> claims = new HashMap<>();\n claims.put(\"http://tapkey.net/oauth/token_exchange/client_id\", oauthClientId);\n\n return Jwts.builder()\n .addClaims(claims)\n .setSubject(userId)\n .setAudience(identityProviderAudience)\n .setIssuer(identityProviderIssuer)\n .setIssuedAt(new Date())\n .setExpiration(expiration.getTime())\n .signWith(keyService.getPrivateKey(), SignatureAlgorithm.RS256)\n .compact();\n }", "public UserAuthToken createUser(CreateUserRequest request);", "String getUsernameFromToken(String token);", "public String systemUserAuthToken() {\n if (systemUserAuthToken == null)\n systemUserAuthToken = generateTokenSystemUser(TEST_INIT_VALUES.adminEmail(), TEST_INIT_VALUES.password());\n return systemUserAuthToken;\n }", "private String getToken() {\n\t\tString numbers = \"0123456789\";\n\t\tRandom rndm_method = new Random();\n String OTP = \"\";\n for (int i = 0; i < 4; i++)\n {\n \tOTP = OTP+numbers.charAt(rndm_method.nextInt(numbers.length()));\n \n }\n return OTP;\n\t}", "private String newToken(String token) {\n UserDetails userDetails = new UserDetails();\r\n userDetails.setEmail(jwtUtils.extractEmail(token));\r\n userDetails.setUserType((String) jwtUtils.extractAllClaims(token).get(\"userType\"));\r\n return jwtUtils.generateToken(userDetails);\r\n }", "private String generateToken () {\n SecureRandom secureRandom = new SecureRandom();\n long longToken;\n String token = \"\";\n for ( int i = 0; i < 3; i++ ) {\n longToken = Math.abs( secureRandom.nextLong() );\n token = token.concat( Long.toString( longToken, 34 + i ) );//max value of radix is 36\n }\n return token;\n }", "public String getToken();", "String getPrimaryToken();", "public String generateAccessToken() {\n return accessTokenGenerator.generate().toString();\n }", "public interface TokenService {\n\n /**\n * Generate a user-based renewal token\n *\n * @param username The username for which the token will be valid\n * @return A renewal JWT for the user\n */\n String generateUserRenewalToken(String username);\n\n /**\n * Generate a unit-based renewal token\n *\n * @param unit The unit for which the token will be valid\n * @param expiration The optional expiration timestamp for the token (defaults to duration specified in application config)\n * @return A renewal JWT for the unit\n */\n String generateUnitRenewalToken(Unit unit, Instant expiration);\n\n /**\n * Generate a user-based request token\n *\n * @param username The username for which the token will be valid\n * @param authorities The list of authorities associated with the user\n * @return A request JWT for the user\n */\n String generateUserRequestToken(String username, Collection<String> authorities);\n\n /**\n * Generate a unit-based request token\n *\n * @param units The list of units for which the token will be valid\n * @return A request JWT for the units\n */\n String generateUnitRequestToken(Collection<String> units);\n}", "private static GitHub createToken(String aUser, String aPwd) {\n\t\tGitHub gh = null;\n\t\tString token = \"\";\n\n\t\ttry {\n\t\t\tif (aUser != null && aPwd != null) {\n\t\t\t\tLog.out(GHConnectionBuilder.class, \"Creating a token using basic authentication\");\n\t\t\t\tgh = GitHub.connectUsingPassword(aUser, aPwd);\n\n\t\t\t\tGHAuthorization gha = null;\n\n\t\t\t\ttry {\n\t\t\t\t\tgha = gh.createToken(null, TOKEN_NAME, null);\n\t\t\t\t\ttoken = gha.getToken();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLog.out(GHConnectionBuilder.class, \"Aborting the token generation... Using the default (shared) token...\", e);\n\t\t\t\t\tLog.out(GHConnectionBuilder.class, \"Please delete the auth token \" + TOKEN_NAME + \" from your profile\");\n\t\t\t\t\ttoken = DEFAULT_TOKEN;\n\t\t\t\t}\n\n\t\t\t\tupdateGitHubProps(token);\n\n\t\t\t} else {\n\t\t\t\tLog.out(GHConnectionBuilder.class, \"Using the default (shared) auth token because no credentials were provided. Download rate may be slower.\");\n\t\t\t\treturn GitHub.connectUsingOAuth(DEFAULT_TOKEN);\n\t\t\t}\n\n\t\t\tgh = GitHub.connectUsingOAuth(token);\n\t\t} catch (IOException e) {\n\t\t\tLog.out(GHConnectionBuilder.class, \"Could not build a connection\", e);\n\t\t}\n\n\t\treturn gh;\n\t}", "OAuth2Token getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "Pokemon.RequestEnvelop.AuthInfo.JWT getToken();", "java.lang.String getRemoteToken();", "String createPasswordResetToken(String username) throws UserNotFoundException;", "public Pokemon.RequestEnvelop.AuthInfo.JWT getToken() {\n return token_;\n }", "public String generateToken(Authentication authentication) {\n\t\tUser user=(User) authentication.getPrincipal();\t//Get user being authenticated (configured in security config)\n\t\tString userId= Long.toString(user.getId());\n\t\tDate now= new Date(System.currentTimeMillis());\n\t\tDate expiryTime= new Date(now.getTime()+SecurityConstants.TOKEN_EXPIRY);\n\t\t\n\t\tMap<String, Object> claims= new HashMap<>();\n\t\tclaims.put(\"id\", userId);\n\t\tclaims.put(\"username\", user.getUsername());\n\t\tclaims.put(\"fullname\", user.getFullName());\n\t\t//Role (IF IMPLEMENTED)\n\t\t\n\t\treturn Jwts.builder()\n\t\t\t\t.setSubject(userId)\n\t\t\t\t.setClaims(claims)\n\t\t\t\t.setIssuedAt(now)\n\t\t\t\t.setExpiration(expiryTime)\n\t\t\t\t.signWith(SignatureAlgorithm.HS512, SecurityConstants.SECRET)\n\t\t\t\t.compact();\n\t}", "@Test\r\n\tpublic void TestgenerateToken() {\r\n\t\tlog.info(env.getProperty(\"log.start\"));\r\n\t\tudetails = new User(\"admin\", \"admin\", new ArrayList<>());\r\n\t\tString generateToken = jwtutil.generateToken(udetails);\r\n\t\tassertNotNull(generateToken);\r\n\t\tlog.info(env.getProperty(\"log.end\"));\r\n\t}", "public TokenUser findTokenUser() {\n\t\treturn securityContextService != null && securityContextService.getAuthentication() != null\n\t\t\t\t? (TokenUser) securityContextService.getAuthentication().getDetails()\n\t\t\t\t: null;\n\t}", "User getUserByToken(HttpServletResponse response, String token) throws Exception;", "public interface JwtTokenService {\n /**\n * Create token for user\n *\n * @param user user, that needs a token\n * @return token\n */\n String createToken(User user);\n\n /**\n * Get token life duration\n *\n * @return token duration\n */\n Duration getTokenExpiredIn();\n\n /**\n * Parse token\n *\n * @param token received token\n * @return authenticated token\n */\n Authentication parseToken(String token);\n}", "public static String getTeacherToken() {\n\n RestAssured.baseURI = \"https://cybertek-reservation-api-qa.herokuapp.com\";\n\n Response response = given().log().all().\n param(\"email\", \"[email protected]\").\n param(\"password\", \"maxpayne\").\n get(\"/sign\");\n response.then().log().all().\n assertThat().statusCode(200);\n\n return response.jsonPath().get(\"accessToken\");\n\n }", "public static String generateToken() {\n return new Generex(PatternValidator.TOKEN_PATTERN).random();\n }", "public RefreshToken generateRefreshToken(){\n RefreshToken refreshToken = new RefreshToken();\n //Creates a 128bit random UUID. This serves as our refresh token\n refreshToken.setToken(UUID.randomUUID().toString());\n //Set creation timestampt\n refreshToken.setCreatedDate(Instant.now());\n\n return refreshTokenRepository.save(refreshToken);\n }", "private String issueToken(String username) {\n \n String token =TokenManagement.getTokenHS256(username,tokenSec,tokenduration);\n return token;\n }", "@RequestMapping(\"/generateToken\")\n @ApiOperation(value = \"Generates the JWT\", httpMethod = \"POST\")\n public ServiceResponse<String> generateToken(@RequestBody ServiceRequest<String> serviceRequest,\n HttpServletResponse response) {\n ServiceResponse<String> serviceResponse = new ServiceResponse<>();\n try {\n checkParameter(serviceRequest);\n long sixMinutes = 6 * 1000 * 60;\n String token = securityService.generateToken(serviceRequest.getParameter(), sixMinutes);\n handleResponse(serviceResponse, token, response);\n } catch (Exception e) {\n exceptionHandler.handleControllerException(serviceResponse, serviceRequest, e, getMethodName(), response);\n }\n return serviceResponse;\n }", "public AuthToken loginUser(){\n return null;\n }", "public String getToken(String name){\n\n return credentials.get(name, token);\n }", "@Override\n\tpublic VerificationToken findByUser(User user) {\n\t\treturn null;\n\t}", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "private String createJWT(String userName) {\n\t\tString jwtTokenString = null;\n\n\t\ttry {\n\t\t\t// create() uses default settings. \n\t\t\t// For other settings, specify a JWTBuilder element in server.xml\n\t\t\t// and call create(builder id)\n\t\t\tJwtBuilder builder = JwtBuilder.create(\"defaultJWT\");\n\n\t\t\tif (userName == null) userName = \"null\";\n\n\t\t\t// Put the user info into a JWT Token\n\t\t\tbuilder.subject(userName);\n\t\t\tbuilder.claim(\"upn\", userName);\n\n\t\t\t// Set the audience to our sample's value\n\t\t\tbuilder.claim(\"aud\", jwtAudience);\n\n\t\t\t//builder.claim(\"groups\", groups);\n\n\t\t\t//convention is the issuer is the url, but for demo portability a fixed value is used.\n\t\t\t//builder.claim(\"iss\", request.getRequestURL().toString());\n\t\t\tbuilder.claim(\"iss\", jwtIssuer);\n\n\t\t\tJwtToken theToken = builder.buildJwt();\t\t\t\n\t\t\tjwtTokenString = theToken.compact();\n\t\t} catch (Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t\tthrow new RuntimeException(t);\n\t\t}\n\n\t\treturn jwtTokenString;\n\t}", "private static String generateToken(Accessor accessor) {\n return generateHash(accessor.getConsumerId() + System.nanoTime());\n }", "public static String generateDeviceToken() throws EndlosException {\n\t\treturn hash(Utility.generateUuid() + DateUtility.getCurrentEpoch());\n\t}", "public Builder userToken(String userToken) {\n this.userToken = userToken;\n return this;\n }", "public static String createJwt(User user) {\n\n Map<String, String> claims = new HashMap<>();\n claims.put(\"userId\", Integer.toString(user.getId()));\n\n String jwt = Jwts.builder()\n .signWith(key)\n .setClaims(claims)\n .setIssuer(\"game\")\n .setIssuedAt(new Date())\n .setExpiration(new Date(System.currentTimeMillis() + 86400 * 1000))\n .setSubject(user.getName())\n .compact();\n\n return jwt;\n }", "RequestToken getOAuthRequestToken() throws MoefouException;", "@Test\r\n\tpublic void TestvalidateTokenWithuserId() {\r\n\t\tlog.info(env.getProperty(\"log.start\"));\r\n\t\tudetails = new User(\"admin\", \"admin\", new ArrayList<>());\r\n\t\tString generateToken = jwtutil.generateToken(udetails);\r\n\t\tBoolean validateToken = jwtutil.validateToken(generateToken, udetails);\r\n\t\tassertEquals(true, validateToken);\r\n\t\tlog.info(env.getProperty(\"log.end\"));\r\n\r\n\t}", "GetToken.Req getGetTokenReq();", "String getToken(String scope, String username, String password) throws AuthorizationException;", "public static Result token(String body) {\n\t\t\r\n\t\tArrayList<String> data = new Gson().fromJson(body, ArrayList.class);\r\n\t\tif(data == null) {\r\n\t\t\treturn new BadRequest(\"No payload data\");\r\n\t\t}\r\n\t\t\r\n\t\tString token = data.get(0);\r\n\t\tif(token == null || token.trim().equals(\"\")) {\r\n\t\t\treturn new BadRequest(\"Invalid payload data\");\r\n\t\t}\r\n\r\n\t\tString uname = data.get(1);\r\n\t\tif(uname == null || uname.trim().equals(\"\")) {\r\n\t\t\treturn new BadRequest(\"Invalid payload data\");\r\n\t\t}\r\n\t\t\r\n\t\tUser loggedUser = User.find(\"byUsername\", uname).first();\r\n\t\tif (loggedUser == null) {\r\n\t\t\treturn new BadRequest(\"Invalid payload data\");\r\n\t\t}\r\n\t\t\r\n\t\tif(!CsrfTokenUtils.checkToken(uname, token)) {\r\n\t\t\treturn new BadRequest(\"Invalid token\");\r\n\t\t}\r\n\r\n\t\tLong msgNum = userMsgNum.get(loggedUser.username);\r\n\t\tif(msgNum == null) {\r\n\t\t\tloggedUser.msgNum = 0L;\r\n\t\t\tuserMsgNum.put(loggedUser.username, loggedUser.msgNum);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tloggedUser.msgNum = Long.parseLong(msgNum.toString());\r\n\t\t}\r\n\r\n\t\tsession.put(\"user\", loggedUser.username);\r\n\t\tsession.put(\"userRole\", loggedUser.role.name);\r\n\t\tsession.put(\"userMsgNum\", loggedUser.msgNum);\r\n\t\t\r\n\t\ttoken = JWTUtils.generateJWT(loggedUser.username);\r\n\t\tString json = \"{\\\"role\\\": \\\"\" + loggedUser.role.name\r\n\t\t\t\t\t\t+ \"\\\", \\\"username\\\": \\\"\" + loggedUser.username\r\n\t\t\t\t\t\t+ \"\\\", \\\"msgNum\\\": \" + loggedUser.msgNum\r\n\t\t\t\t\t\t+ \", \\\"token\\\": \\\"\" + token + \"\\\"}\";\r\n\t\treturn new RenderText(json);\r\n\t}", "Mono<GenericToken> getToken();", "public void sendTokenEmailToUser(Long userid, String email, String token, Tokentype type) throws MessagingException;", "public static void getToken(final Callback<String> cb) {\n FirebaseUser u = FirebaseAuth.getInstance().getCurrentUser();\n if (u != null) {\n u.getIdToken(true).addOnCompleteListener(new OnCompleteListener<GetTokenResult>() {\n @Override\n public void onComplete(@NonNull Task<GetTokenResult> task) {\n if (task.getResult().getToken() != null) {\n cb.onComplete(task.getResult().getToken());\n } else {\n cb.onError(ERROR_CODE_TOKEN_NULL, ERROR_TOKEN_NULL);\n }\n }\n });\n } else {\n cb.onError(ERROR_CODE_USER_NULL, ERROR_USER_NULL);\n }\n }", "private String issueToken(String username) throws Exception {\n\t\tUUID uuid = UUID.randomUUID();\n\t\tString token = uuid.toString();\n\t\tEntityManagerFactory factory = Persistence.createEntityManagerFactory(\"ForumApp\");\n\t\tEntityManager em = factory.createEntityManager();\n\n\t\tEntityTransaction trans = em.getTransaction();\n\t\ttrans.begin();\n\t\tem.createQuery(\"UPDATE User set token = '\" + token + \"' WHERE username = '\" + username + \"'\").executeUpdate();\n\t\ttrans.commit();\n\t\t\n\t\tTypedQuery<User> q = em.createQuery(\"SELECT u FROM User u WHERE u.username = '\" + username + \"'\", User.class);\n\t\tUser user = q.getSingleResult();\n\t\t\n\t\tString json = new Gson().toJson(user);\n\n\t\t// Close the entity manager\n\t\tem.close();\n\t\tfactory.close();\n\n\t\treturn json;\n\t}", "public String getTokenId() {\n return tokenId;\n }", "public static String generateToken(HttpServletResponse response) {\n String token = cage.getTokenGenerator().next();\n String token0 = DigestUtils.shaHex(token);\n SessionCookieHolder.setCookie(response, \"c\", token0);\n return token;\n }", "String getToken();" ]
[ "0.83728784", "0.78741", "0.77710634", "0.77226347", "0.76728415", "0.76461196", "0.74613094", "0.7276168", "0.72501343", "0.7212195", "0.7158254", "0.7071309", "0.70528597", "0.70528597", "0.70528597", "0.70525086", "0.7034099", "0.69908893", "0.698231", "0.6945875", "0.6807314", "0.6802348", "0.67940986", "0.6787862", "0.6760196", "0.6703013", "0.6684659", "0.6675822", "0.6548079", "0.65421295", "0.64781374", "0.6467434", "0.6367594", "0.63554174", "0.6340471", "0.632646", "0.6323824", "0.63191503", "0.6313616", "0.6282984", "0.6248412", "0.62160075", "0.61794406", "0.6156114", "0.6137486", "0.61154824", "0.6110994", "0.60874635", "0.60730404", "0.6058198", "0.60572815", "0.60471255", "0.60210645", "0.59975314", "0.59582216", "0.59465516", "0.59432065", "0.59389234", "0.59389234", "0.59389234", "0.59389234", "0.59389234", "0.59389234", "0.5936117", "0.58971304", "0.5888663", "0.5880501", "0.5871553", "0.5846675", "0.5846407", "0.5830567", "0.58108884", "0.57994634", "0.579552", "0.5777067", "0.5767673", "0.5766325", "0.5762957", "0.5726528", "0.57258874", "0.57183886", "0.57183886", "0.57183886", "0.57122105", "0.57117385", "0.5708658", "0.57009536", "0.5697764", "0.56951845", "0.5691342", "0.5689519", "0.56858736", "0.5684592", "0.5680376", "0.5668293", "0.5665184", "0.5655907", "0.5651485", "0.5646505", "0.56340843" ]
0.61925787
42
FIXME red bomb disappears when hover over
public void clickExplode() { setBorder(UNLOCKED_BORDER); setIcon(HIT_MINE_PIC); setBackground(Color.RED); unlocked = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hover() {\n\t}", "public void hover();", "@Override\n\tprotected void onHover() {\n\n\t}", "private void displayEmptyHover() {\n if (strokeWeight == 0)\r\n noStroke();\r\n else\r\n stroke(0, 0, 0);\r\n strokeWeight(strokeWeight);\r\n hoverFill(boxColour);\r\n rect(x, y, w, h, 7);\r\n }", "@Override\r\npublic void mouseExited(MouseEvent arg0) {\n\tb1.setBackground(Color.pink);\r\n\t\r\n}", "@Override\r\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\tSim.setForeground(Color.blue);\r\n\t\t\t\t\t}", "@Override\r\npublic void mouseEntered(MouseEvent arg0) {\n\tb1.setBackground(Color.pink);\r\n\t\r\n}", "protected void doBright() {\r\n\t\talpha = 1.0f;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}", "public void mouseOver() {\n}", "public boolean isHovered();", "@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\tSim.setForeground(Color.blue);\r\n\t\t\t\t}", "@DISPID(-2147412112)\n @PropGet\n java.lang.Object onmouseover();", "@Override\r\n\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\t\tSim.setForeground(Color.DARK_GRAY);\r\n\t\t\t\t\t}", "public void setHovered(boolean hovered);", "@Override\n public void moverRaton(MouseEvent e) {}", "private void handleMouseHover(MouseEvent mouseEvent) {\n if (simulator.isEditable()) {\n if (!alive) {\n cell.setFill(Color.LIGHTGRAY);\n } else {\n cell.setFill(Color.DARKGRAY);\n }\n }\n }", "@Override\n public boolean mouseOver(int x, int y)\n {\n return false;\n }", "@Override\r\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n Play.setForeground(Color.blue);\r\n\t\t\t\t}", "@Override\n public void mouseReleased(MouseEvent arg0) {\n yourBoardPanel[xx][yy].setBackground(updateYourBoardHelper(xx, yy));\n //potential problem here during initialization of ships?\n \n }", "public void mouseMoved(MouseEvent ev)\n\t{\n\t if (timer!=null || manim==null || manim.snoopGeneration()!=null) return;\n\t Node n = manim.getNodeCloseToBottom(ev.getX(),ev.getY());\n\t if (n!=null) {\n\t\thilitNode(n,Color.red);\n\t\treturn;\n\t }\n\t n = manim.getNodeCloseToTop(ev.getX(),ev.getY());\n\t if (n!=null) {\n\t\thilitNode(n,Color.blue);\n\t\treturn;\n\t }\n\t unhilitNode();\n\t}", "@Override\r\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\tSim.setForeground(Color.darkGray);\r\n\t\t\t\t}", "@Override\n public void mouseExited(MouseEvent e) {\n setBorderPainted(false);\n setForeground(Color.BLACK);\n }", "@Override\n public void mouseHover(MouseEvent me) {\n }", "String getHoverDetail();", "public void mouseHoverOnTVsAndAppliancesn() {\n\t\t\n\t}", "public void displayHover() {\n if (textColour == null) {\r\n displayEmptyHover();\r\n return;\r\n }\r\n stroke(0, 0, 0);\r\n strokeWeight(strokeWeight);\r\n hoverFill(boxColour);\r\n if (strokeWeight != 0 && text != null) {\r\n rect(x, y, w, h, 7);\r\n }\r\n fill(textColour);\r\n textSize(textSize);\r\n text(text, x + xTextOffset, y + yTextOffset);\r\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\t\t\t\t\t\t\t\t\tjlb.setForeground(Color.black);\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\t\t\t\t\t\t\t\t\tjlb.setForeground(Color.black);\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\t\t\t\t\t\t\t\t\tjlb.setForeground(Color.black);\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\t\t\t\t\t\t\t\t\tjlb.setForeground(Color.black);\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\t\t\t\t\t\t\t\tjlb.setForeground(Color.black);\n\t\t\t\t\t\t\t\t}", "public void rollover(){\n\t\tgui.fill(gui.color(255,0,0),75);\n\t\tgui.noStroke();\n\t\tgui.ellipse(getTransformedPosition().x, getTransformedPosition().y, diameter +4, diameter + 4);\n\t}", "public boolean hovered() {\n return hovered;\n }", "@Override\n\tprotected void hover(){\n\t\tgvh.log.i(TAG, \"Drone hovering\");\n\t\tsetControlInput(0, 0, 0, 0);\n\t}", "public void mouseHover(MouseEvent me) {\n\n\t\t\t}", "@Override\n public void mouseEntered(MouseEvent e) {\n setBorderPainted(true);\n setForeground(Color.RED);\n }", "@Override\r\npublic void mousePressed(MouseEvent arg0) {\n\t\r\n\tb1.setBackground(Color.pink);\r\n\t\r\n}", "@Override\r\n\t\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\tRestartTournament.setForeground(Color.red);\r\n\t\t\t\t}", "public void drawPreviewHover()\n {\n int previewNumber = mouseToPreviewTile();\n if (previewNumber >= 0)\n {\n for (int i = 0; i < previewHover.length; i++)\n {\n previewHover[i] = false;\n }\n previewHover[previewNumber] = true;\n hoverTile = previewNumber;\n } else\n {\n for (int i = 0; i < previewHover.length; i++)\n {\n previewHover[i] = false;\n }\n hoverTile = -1;\n }\n }", "public void mousePressed()\n{\n if (m.getTileManager().getActiveTile()!=null)\n {\n if (m.getTileManager().getActiveTile().isHover())\n {\n if(!m.getTileManager().getBrushMode())\n m.getTileManager().getActiveTile().drawCell();\n else\n m.getTileManager().getActiveTile().drawCellWithBrush(m.getTileManager().getIsBlack());\n }\n }\n if (m.getTileManager().getHoverIndex()!=-1)\n {\n m.getTileManager().setActiveTile(m.getTileManager().getHoverIndex());\n }\n}", "@Override\r\n\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\tTile t=(Tile)arg0.getSource();\r\n\t\t\t\r\n\t\t\t//upon leaving a hover turns green background of tile back to the default\r\n\t\t\tif(t.getBackground().equals(Color.GREEN)) {\r\n\t\t\t\tt.setBackground(null);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\t\t((JComponent) e.getSource()).setBackground(null);\r\n\t\t\t\t\t\t((JComponent) e.getSource()).setBorder(BorderFactory.createEmptyBorder(0, 2, 0, 0));\r\n\t\t\t\t\t}", "public void drawCellHover()\n {\n int[] cell = mouseToCell();\n \n // if mouse is not inside tile area dont highlight anything\n if(showHover)\n {\n setHover(cell[0],cell[1]);\n fill(0,255,0,100);\n noStroke();\n \n if(brushSize == 1)\n {\n rect(firstCellPosition[0]+cell[0]*cellSize,firstCellPosition[1]+cell[1]*cellSize,cellSize-1,cellSize-1);\n }\n \n if(brushSize == 2)\n {\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 2; j++)\n {\n if(cell[0]+i < xCells && cell[1]+j < yCells)\n {\n rect(firstCellPosition[0]+(cell[0]+i)*cellSize,firstCellPosition[1]+(cell[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n \n if(brushSize == 3)\n {\n for(int i = -1; i < 2; i++)\n {\n for(int j = -1; j < 2; j++)\n {\n if(cell[0]+i < xCells && cell[1]+j < yCells &&\n cell[0]+i >= 0 && cell[1]+j >= 0 )\n {\n rect(firstCellPosition[0]+(cell[0]+i)*cellSize,firstCellPosition[1]+(cell[1]+j)*cellSize,cellSize-1,cellSize-1);\n }\n }\n }\n }\n }\n }", "public void hoverFill(Colour c) {\n int[] rgb = c.rgb(); //but it was easier to just add a few more methods to the box and BigBox classes, otherwise I would've had to add,\r\n fill(rgb[0] - 50, rgb[1] - 50, rgb[2] - 50); // exceptions to some loops in load<whateverBox> methods.\r\n }", "private void reactMain_region_digitalwatch_Display_glowing_GlowOff() {\n\t\tif (sCIButtons.topRightPressed) {\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.$NullState$;\n\n\t\t\tsCIDisplay.operationCallback.setIndiglo();\n\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.main_region_digitalwatch_Display_glowing_GlowOn;\n\t\t}\n\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n\tpublic void mouseExited(MouseEvent e) {\n\t\tJLabel j1 = (JLabel)e.getSource();\n\t\tj1.setForeground(Color.BLACK);\n\t}", "private void showShadow(Tile tile) {\n hoveredHex = tile.hex;\n hoverShadow.transform.setParent(tile.transform);\n }", "public void createPurpleBanHighlight() {\n\t\tpurpleBanHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tpurpleBanHighlight.setBackground(new Color(255, 217, 0, 120));\n\t\tbottomPanel.add(purpleBanHighlight, new Integer(1));\n\t\tpurpleBanHighlight.setBounds(1014, 29, 245, 168);\n\t\tpurpleBanHighlight.setVisible(false);\n\t}", "@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\tRestartTournament.setForeground(Color.blue);\r\n\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\t\t\t\t\t\t\t\t\tjlb.setForeground(Color.blue);\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\t\t\t\t\t\t\t\t\tjlb.setForeground(Color.blue);\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\t\t\t\t\t\t\t\t\tjlb.setForeground(Color.blue);\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\t\t\t\t\t\t\t\t\tjlb.setForeground(Color.blue);\n\t\t\t\t\t\t\t\t\t}", "public void hoverMouseOverElement(WebElement element) {\n log.traceEntry();\n try {\n Actions actions = new Actions(driver);\n if (webWaitsutil.isElementPresent(element)) {\n highlightElement(element);\n actions.moveToElement(element).perform();\n }\n } catch (Exception e) {\n log.error(\"Something went wrong [{}]\", e.getMessage());\n }\n log.traceExit();\n }", "private void mouseExitedHandler(java.awt.event.MouseEvent evt) {\n this.setHighlighted(false);\n }", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseExited(PInputEvent e) {\n\t\t\t\tif (draw){\n\t\t\t\t\tin.setPaint(Color.lightGray);\n\t\t\t\t}\n\t\t\t\telse if(removeline){\n\t\t\t\t\tfor(int i=0; i<links.size();i++){\n\t\t\t\t\t\tLink l = links.get(i);\n\t\t\t\t\t\tif (in == l.getNode1() || in == l.getNode2()){\n\t\t\t\t\t\t\tl.getNode1().setPaint(Color.lightGray);\n\t\t\t\t\t\t\tl.getNode2().setPaint(Color.lightGray);\n\t\t\t\t\t\t\tl.getPPath().setTransparency((float)1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "private void reactMain_region_digitalwatch_Display_glowing_GlowOn() {\n\t\tif (sCIButtons.topRightReleased) {\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.$NullState$;\n\n\t\t\ttimer.setTimer(this, 5, 2 * 1000, false);\n\n\t\t\tnextStateIndex = 3;\n\t\t\tstateVector[3] = State.main_region_digitalwatch_Display_glowing_GlowDelay;\n\t\t}\n\t}", "public void mouseEntered(java.awt.event.MouseEvent evt) {\n button.setForeground(coloursObject.getButtonTextHoverColour());//the colour of the text when hovered over\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\t\t\t\t\t\t\t\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\t\t\t\t\t\t\t\tjlb.setForeground(Color.blue);\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"solto ermano\");\n\t\t\t}", "public void mouseReleased(MouseEvent e)\n {\n //add a null ColorPoint to the points\n //to signify the end of a continuous\n //section when redrawing the image\n points.add(null);\n }", "@Override\n\tpublic void mouseExited(MouseEvent arg0) {\n\t\tJLabel jlb=(JLabel)arg0.getSource();\n\t\tjlb.setForeground(Color.black);\n\t}", "@DISPID(-2147412112)\n @PropPut\n void onmouseover(\n java.lang.Object rhs);", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public void mouseReleased(MouseEvent e) {\n\t\tif(debeColocar1) {\n \ttry {\n \t\tubicarBarco(e);\n \t} catch(NullPointerException f) {\n \t\tint color = 220;\n \t\tColor defecto = getBackground();\n \t\tfor(int i = 0; i < color ; i++) {\n \t\t\tsetBackground(new Color(i, 0, 0));\n \t\t\ttry {\n \t\t\t\tThread.sleep(1);\n \t\t\t}catch(InterruptedException j) {}\n \t\t}\n \t\tsetBackground(defecto);\n \t}\n }\n\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\tComponent com = (Component)e.getSource(); //마우스가 올라간 컴포넌트 알아냄.\r\n\t\t\tcom.setBackground(null);\r\n\t\t\t\r\n\t\t}", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}", "private void hoverOverSpeelVak(Node node)\n {\n int row = 0;\n int col = 0;\n\n try\n {\n row = GridPane.getRowIndex(node);\n col = GridPane.getColumnIndex(node);\n } catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.out.println(row + \", \" + col);\n }\n\n if (previousCol != -1 && previousRow != -1)\n {\n GraphicsContext gc = canvasSpeelveld[previousCol][previousRow].getGraphicsContext2D();\n gc.clearRect(0, 0, 30, 30);\n String teken = dc.geefVakOpPositie(previousRow, previousCol);\n vulIn(teken, gc);\n }\n //vulSpeelbordIn(spelbord);\n GraphicsContext gc = canvasSpeelveld[col][row].getGraphicsContext2D();\n tekenRechtHoek(gc, 0, 0, 30, 30, Color.RED);\n\n previousCol = col;\n previousRow = row;\n }", "protected void doLessLight() {\r\n\t\talpha = Math.max(0, alpha - 0.05f);\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}", "protected void doMoreLight() {\r\n\t\talpha = Math.min(1f, alpha + 0.05f);;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}", "public void createBlueBanHighlight() {\n\t\tblueBanHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tblueBanHighlight.setBackground(new Color(255, 217, 0, 120));\n\t\tbottomPanel.add(blueBanHighlight, new Integer(1));\n\t\tblueBanHighlight.setBounds(23, 29, 245, 135);\n\t}", "@Override\n public boolean shouldPaint() {\n return false;\n }", "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t\t\t}", "public void checkMouse(){\n if(Greenfoot.mouseMoved(null)){\n mouseOver = Greenfoot.mouseMoved(this);\n }\n //Si esta encima se volvera transparente el boton en el que se encuentra\n if(mouseOver){\n adjTrans(MAX_TRANS/2);\n }\n else{\n adjTrans(MAX_TRANS);\n }\n \n }", "@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\tsuper.mouseEntered(e);\r\n\t\t\t\t\tbrushToolHelper.hidePopup();\r\n\t\t\t\t}", "@Override\n public void mouseExited(MouseEvent e) {\n JLabel x = (JLabel) e.getSource();\n x.setForeground(Color.black);\n levelPanel.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }", "@Override\r\n\tprotected void draw() {\n\t\tgoodCabbage = new Oval(center.x - CABBAGE_RADIUS, center.y\r\n\t\t\t\t- CABBAGE_RADIUS, 2 * CABBAGE_RADIUS, 2 * CABBAGE_RADIUS,\r\n\t\t\t\tColor.red, true);\r\n\t\twindow.add(goodCabbage);\r\n\t}", "@Override\r\n\tpublic void paintComponent(Graphics g)\r\n {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(getForeground());\r\n\t\tg.fillOval(0,0, this.getWidth(),this.getHeight());\r\n }", "@Override\n\tpublic void mouseExited(MouseEvent e) {\n\t\tJLabel jl=(JLabel)e.getSource();\n\t\tjl.setForeground(Color.black);\n\t}" ]
[ "0.7183976", "0.70359844", "0.65124685", "0.63619566", "0.6273351", "0.6121007", "0.6116362", "0.61050534", "0.6103749", "0.60995346", "0.60950947", "0.60885817", "0.60753864", "0.60476524", "0.6046681", "0.60385036", "0.6028903", "0.60207176", "0.60073304", "0.60063535", "0.5984503", "0.59836715", "0.5964327", "0.59521824", "0.5945735", "0.59303504", "0.59286976", "0.59286976", "0.59286976", "0.59286976", "0.5904125", "0.58854085", "0.58524287", "0.5851135", "0.5834305", "0.5832597", "0.5830355", "0.5814431", "0.5812709", "0.5802594", "0.5760194", "0.57407564", "0.5738517", "0.5731816", "0.57097125", "0.5708327", "0.5708327", "0.570774", "0.5698868", "0.5695713", "0.56922257", "0.5691835", "0.5691835", "0.5691835", "0.5691835", "0.56822425", "0.5679199", "0.56738925", "0.56738806", "0.56723744", "0.567012", "0.56695145", "0.56575507", "0.56570274", "0.5650971", "0.56490934", "0.56466895", "0.56436706", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5640235", "0.5638921", "0.5626186", "0.56255704", "0.5616664", "0.5607595", "0.5605073", "0.559205", "0.55915517", "0.55865234", "0.55865234", "0.5578736", "0.5575626", "0.5574505", "0.55735344", "0.5569241", "0.5558847", "0.555813" ]
0.0
-1
beginusercode TODO Autogenerated method stub endusercode
public void getCosts() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo38117a() {\n }", "public void mo115190b() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void mo9848a() {\n }", "@Override\n\tpublic void returncode(int statecode) {\n\n\t}", "public void mo21791P() {\n }", "@Override\n\tpublic void orgasm() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "protected boolean func_70041_e_() { return false; }", "public void mo55254a() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public void mo21793R() {\n }", "public void mo12930a() {\n }", "public void mo21785J() {\n }", "public void mo4359a() {\n }", "public void mo3376r() {\n }", "public void mo21789N() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21825b() {\n }", "public void mo21782G() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void baocun() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void method_4270() {}", "private void kk12() {\n\n\t}", "public void mo21781F() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void salvar() {\n\r\n\t}", "public void mo1531a() {\n }", "public void mo21879u() {\n }", "protected void mo6255a() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void stg() {\n\n\t}", "public void mo9137b() {\n }", "public void mo9233aH() {\n }", "public void mo56167c() {\n }", "public void mo6081a() {\n }", "public void mo23813b() {\n }", "public int method_113() {\r\n return 0;\r\n }", "public void mo21780E() {\n }", "public void mo21779D() {\n }", "public void mo5097b() {\n }", "abstract protected void pre(int code);", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public abstract void mo70713b();", "public void mo6944a() {\n }", "public void mo21787L() {\n }", "void mo41086b();", "public abstract void mo27385c();", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "private stendhal() {\n\t}", "public final void mo1285b() {\n }", "public void mo97906c() {\n }", "void mo57277b();", "public void gored() {\n\t\t\n\t}", "public void mo21795T() {\n }", "public void mo44053a() {\n }", "public void mo21792Q() {\n }", "public void mo21786K() {\n }", "public void m23075a() {\n }", "public abstract int code();", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void retstart() {\n\t\t\n\t}", "public void skystonePos4() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo21783H() {\n }", "public void mo8738a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo5099c() {\n }", "public void mo21784I() {\n }", "private void m50366E() {\n }", "public void skystonePos6() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21878t() {\n }", "public final void mo8775b() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void start( )\n {\n // Implemented by student.\n }", "public final void mo11687c() {\n }", "void mo72113b();", "public boolean method_108() {\r\n return false;\r\n }", "@Override\r\n public void salir() {\n }", "public void method_6349() {\r\n super.method_6349();\r\n }", "void mo119582b();", "void berechneFlaeche() {\n\t}", "protected void aktualisieren() {\r\n\r\n\t}" ]
[ "0.6548732", "0.6518889", "0.64259833", "0.62637395", "0.623959", "0.62317336", "0.6194871", "0.6193032", "0.6190299", "0.6183939", "0.6182444", "0.6181498", "0.61758775", "0.6169592", "0.6166776", "0.61325103", "0.61153144", "0.6101467", "0.60934234", "0.6091851", "0.6084732", "0.606498", "0.60649645", "0.60649645", "0.60649645", "0.60649645", "0.60649645", "0.60649645", "0.60649645", "0.6060903", "0.605769", "0.6044871", "0.6039673", "0.60307825", "0.60301495", "0.6029566", "0.60226214", "0.60209167", "0.6019443", "0.60178447", "0.60133964", "0.60071045", "0.60051996", "0.600013", "0.59903586", "0.5988263", "0.59860754", "0.5975212", "0.59749186", "0.59639305", "0.5961432", "0.5959408", "0.5952502", "0.5944916", "0.5944883", "0.59388506", "0.59322256", "0.5931956", "0.592711", "0.5916227", "0.5910243", "0.5901127", "0.58932763", "0.58903223", "0.5885441", "0.587728", "0.5876255", "0.5870969", "0.5864771", "0.5864184", "0.5861499", "0.5858961", "0.58474976", "0.5843067", "0.5838985", "0.5838347", "0.5838053", "0.5836232", "0.5834454", "0.5834454", "0.5820894", "0.5819103", "0.5817337", "0.58172834", "0.58170587", "0.5814657", "0.5812433", "0.5812187", "0.580708", "0.58056635", "0.5804015", "0.58021", "0.5800087", "0.5798731", "0.57967025", "0.57923627", "0.57859015", "0.5782679", "0.5781671", "0.5768416", "0.57683796" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_b, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Part V: Kinematics of Swerve
public void drive(double speedX, double speedY, double rotation){ SwerveModuleState[] swerveModuleStates = swerveDriveKinematics.toSwerveModuleStates(new ChassisSpeeds(speedY, speedX, rotation)); //convert kinematics to states[] SwerveDriveKinematics.desaturateWheelSpeeds(swerveModuleStates, MAX_SPEED); //limits the speed setDesiredStates(swerveModuleStates); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GuaraKinematics() {\n\t\t// TODO Auto-generated constructor stub\n\t\trob = new GuaraRobot();\n\t\ta2 = rob.a2();\n\t\ta3 = rob.a3();\n\t\ta4 = rob.a4();\n\n\t}", "public void update(Vehicle v, float dt) {\nPoint2D.Float p = v.getPosition();\r\nPoint2D.Float tp = target.getPosition();\r\nPoint2D.Float desired_velocity = new Point2D.Float(tp.x - p.x , tp.y - p.y);\r\nVehicle.scale(desired_velocity, v.getMaxSpeed());\r\nv.updateSteering(desired_velocity.x, desired_velocity.y);\r\n}", "public static void applyPhysics(Drone drone, float dt) throws DroneCrashException, MaxAoAException {\r\n\t\t\r\n\t\t// stepsize bepalen\r\n\t\tfloat h;\r\n\t\tif (dt - drone.getPredictionMethod().getStepSize() >= 0) {\r\n\t\t\th = drone.getPredictionMethod().getStepSize();\r\n\t\t} else if (dt > 0) {\r\n\t\t\th = dt;\r\n\t\t} else {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\r\n\t\t// huidige versnellingen bepalen\r\n\t\tVector3f[] currentAccelerationsW = calculateAccelerations(drone, h);\r\n\t\t\r\n\t\t// snelheid voorspellen in functie van de huidige vernsellingen en posities\r\n\t\tVector3f[] newVelocities = drone.getPredictionMethod().predictVelocity(drone.getLinearVelocity(), drone.getAngularVelocity(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcurrentAccelerationsW[0], currentAccelerationsW[1], h);\r\n\t\t\r\n\t\t// nieuwe positie berekenen aan de hand van de nieuwe snelheid\r\n\t\tVector3f[] deltaPositions = calculatePositionDifferences(drone, newVelocities, h);\r\n\r\n\t\t// nieuwe snelheid opslaan\r\n\t\tdrone.setLinearVelocity(newVelocities[0]);\r\n\t\tdrone.setAngularVelocity(newVelocities[1]);\r\n\r\n\t\t// translatie en rotatie uitvoeren\r\n\t\tdrone.translate(deltaPositions[0]);\r\n\r\n\t\tif (!deltaPositions[1].equals(new Vector3f(0, 0, 0))) {\r\n\t\t\tVector3f rotationAxis = new Vector3f(0, 0, 0);\r\n\t\t\tdeltaPositions[1].normalise(rotationAxis);\r\n\t\t\tdrone.rotate(deltaPositions[1].length(), rotationAxis);\r\n\t\t}\r\n\r\n\t\t// checken of de drone crasht\r\n\t\tVector3f leftWingCenterOfMass = new Vector3f(0,0,0);\r\n\t\tVector3f.add(drone.transformToWorldFrame(drone.getLeftWing().getCenterOfMass()), drone.getPosition(), leftWingCenterOfMass);\r\n\t\tVector3f rightWingCenterOfMass = new Vector3f(0,0,0);\r\n\t\tVector3f.add(drone.transformToWorldFrame(drone.getRightWing().getCenterOfMass()),drone.getPosition(), rightWingCenterOfMass);\r\n\t\t\r\n\t\tif (drone.transformToWorldFrame(drone.getEnginePosition()).y + drone.getPosition().y <=\tgroundLevel) {\r\n\t\t\tthrow new DroneCrashException(\"Drone Crashed: the engine hit the ground!\");\r\n\t\t} if (drone.transformToWorldFrame(drone.getTailMassPosition()).y + drone.getPosition().y <= groundLevel) {\r\n\t\t\tthrow new DroneCrashException(\"Drone Crashed: the tail hit the ground!\");\r\n\t\t} if (leftWingCenterOfMass.y + drone.getPosition().y <= groundLevel) {\r\n\t\t\tthrow new DroneCrashException(\"Drone Crashed: the left wing hit the\tground!\");\r\n\t\t} if (rightWingCenterOfMass.y + drone.getPosition().y <= groundLevel) {\r\n\t\t\tthrow new DroneCrashException(\"Drone Crashed: the right wing hit the ground!\");\r\n\t\t}\r\n\t\tfor (Tyre tyre : drone.getTyres()) {\r\n\t\t\tif (tyre.getRadius() < tyre.getCompression()) {\r\n\t\t\t\tthrow new DroneCrashException(\"Drone Crashed: tyre compressed too much!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// recursieve oproep\r\n\t\tPhysicsEngine.applyPhysics(drone, (dt - h));\r\n\t}", "public void rk4sim(ArrayList<? extends ODEsolvable> bodies, Vector3D[][] kav, double dt) {\n //the increment is precalculated before updating the whole celestial bodies\n for(int i = 0; i < bodies.size(); i++) {\n if(bodies.get(i)!=null) {\n ODEsolvable planet = bodies.get(i);\n // System.out.println(planet.toString());\n kav[i] = rk4(planet.getCentralPos(), planet.getCentralVel(), dt, planet);\n }\n }\n\n //updating the celestial body position and velocity at the next time step\n for(int i = 0; i < bodies.size(); i++) {\n if(bodies.get(i) != null) {\n ODEsolvable planet = bodies.get(i);\n planet.setCentralPos(planet.getCentralPos().add(kav[i][0]));\n planet.setCentralVel(planet.getCentralVel().add(kav[i][1]));\n }\n }\n }", "public void set_knots_bezier() {\n int segments = nr_of_segments;\n int nr_of_points = points_per_segment;\n int i;\n surface_type = 1;\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i = i + 3) {\n u[i] = (i - 1) / 3;\n u[i + 1] = (i - 1) / 3;\n u[i + 2] = (i - 1) / 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i = i + 3) {\n v[i] = (i - 1) / 3;\n v[i + 1] = (i - 1) / 3;\n v[i + 2] = (i - 1) / 3;\n }\n\n u[segments - 4] = (segments - 5) / 3;\n u[segments - 3] = (segments - 5) / 3;\n u[segments - 2] = (segments - 5) / 3;\n u[segments - 1] = (segments - 5) / 3;\n\n v[nr_of_points - 4] = (nr_of_points - 5) / 3;\n v[nr_of_points - 3] = (nr_of_points - 5) / 3;\n v[nr_of_points - 2] = (nr_of_points - 5) / 3;\n v[nr_of_points - 1] = (nr_of_points - 5) / 3;\n\n }", "public wave() {\n initComponents();\n //velikost mreze\n n = 30;\n\n //pozicije\n u = new double[n][n];\n\n //hitrosti\n v = new double[n][n];\n\n //utezi\n w = new double[n][n];\n\n //zacetni pogoji za u in v\n //definiraj custom\n v[n / 2][n / 2] = - 0.1;\n u[n/2][n/2] = 1;\n //v[2*n/3][2*n/3] = 0.5;\n \n\n //hitrost valovanja\n c = 0.1;\n\n //faktor dusenja\n k = 0.001;\n\n //razlike med tockami\n h = 0.2;\n\n //pogoj za rob\n edgeCondition = 0.0;\n \n //ali animacija tece\n animating = false;\n \n currentTime = System.currentTimeMillis();\n }", "void do_physics(CAR car, double delta_t) {\n// sn = Math.sin(car.angle);\n// cs = Math.cos(car.angle);\n//\n// velocity.x = cs * car.velocity_wc.y + sn * car.velocity_wc.x;\n// velocity.y = cs * car.velocity_wc.x - sn * car.velocity_wc.y;\n//\n// double yawSpeed = 0.5 * car.cartype.wheelbase * car.angularvelocity;\n//\n// double rotationAngle = 0;\n// double sideSlip = 0;\n// if (velocity.x != 0) {\n// //car is moving forwards\n// rotationAngle = Math.atan(yawSpeed / velocity.x);\n// }\n//\n// if (velocity.x != 0) {\n// sideSlip = Math.atan(velocity.y / velocity.x);\n// }\n//\n// if (velocity.x == 0) {\n// car.angularvelocity = 0;\n// }\n//\n//\n// double slipAngleFront = sideSlip + rotationAngle - car.steerangle;\n// double slipAngleRear = sideSlip - rotationAngle;\n//\n// // weight per axle = half car mass times 1G (=9.8m/s^2)\n// double weight = car.cartype.mass * 9.8 * 0.5;\n//\n// Vector2D frontWheelLateralForce = new Vector2D();\n// frontWheelLateralForce.setX(0);\n// frontWheelLateralForce.setY(normalise(-MAX_GRIP, MAX_GRIP, CA_F * slipAngleFront));\n// frontWheelLateralForce.setY(frontWheelLateralForce.getY() * weight);\n//\n// if (front_slip == 1) {\n// frontWheelLateralForce.setY(frontWheelLateralForce.getY() * 0.5d);\n// }\n//\n// Vector2D rearWheelLateralForce = new Vector2D();\n// rearWheelLateralForce.setX(0);\n// rearWheelLateralForce.setY(normalise(-MAX_GRIP, MAX_GRIP, CA_R * slipAngleRear));\n// rearWheelLateralForce.setY(rearWheelLateralForce.getY() * weight);\n//\n// if (rear_slip == 1) {\n// rearWheelLateralForce.setY(rearWheelLateralForce.getY() * 0.5d);\n// }\n//\n//\n// Vector2D tractionForce = new Vector2D();\n// tractionForce.setX(100 * (car.throttle - car.brake * SGN(velocity.x)));\n// tractionForce.setY(0);\n//\n// if (rear_slip == 1) {\n// tractionForce.setX(tractionForce.getX() * 0.5d);\n// }\n//\n// Vector2D resistance = new Vector2D();\n// double rollingResistanceX = -RESISTANCE * velocity.x;\n// double rollingResistanceY = -RESISTANCE * velocity.y;\n// double dragResistanceX = -DRAG * velocity.x * ABS(velocity.x);\n// double dragResistanceY = -DRAG * velocity.y * ABS(velocity.y);\n// resistance.setX(rollingResistanceX + dragResistanceX);\n// resistance.setY(rollingResistanceY + dragResistanceY);\n//\n// // sum forces\n// Vector2D totalForce = new Vector2D();\n// double frontWheelLateralX = Math.sin(car.steerangle) * frontWheelLateralForce.getX();\n// double rearWheelLateralX = rearWheelLateralForce.getX();\n// double frontWheelLateralY = Math.cos(car.steerangle) * frontWheelLateralForce.getY();\n// double rearWheelLateralY = rearWheelLateralForce.getY();\n//\n// totalForce.setX(tractionForce.getX() + frontWheelLateralX + rearWheelLateralX + resistance.getX());\n// totalForce.setY(tractionForce.getY() + frontWheelLateralY + rearWheelLateralY + resistance.getY());\n//\n//\n// double frontTorque = frontWheelLateralForce.getY() * car.cartype.b;\n// double rearTorque = rearWheelLateralForce.getY() * car.cartype.c;\n// double torque = frontTorque - rearTorque;\n//\n// Vector2D acceleration = new Vector2D();\n// acceleration.setX(totalForce.getX() / car.cartype.mass);\n// acceleration.setY(totalForce.getY() / car.cartype.mass);\n// // Newton F = m.a, therefore a = F/m\n// //TODO: add inertia to the vehicle\n// double angularAcceleration = torque / car.cartype.inertia;\n//\n// acceleration.setX(normalise(acceleration.getX(), 0.1d));\n// acceleration.setY(normalise(acceleration.getY(), 0.1d));\n//\n//\n// Vector2D worldReferenceAcceleration = new Vector2D();\n// worldReferenceAcceleration.setX(cs * acceleration.getY() + sn * acceleration.getX());\n// worldReferenceAcceleration.setY(-sn * acceleration.getY() + cs * acceleration.getX());\n//\n// // velocity is integrated acceleration\n// Vector2D worldReferenceVelocity = new Vector2D();\n// worldReferenceVelocity.setX(car.velocity_wc.x + (delta_t * worldReferenceAcceleration.getX()));\n// worldReferenceVelocity.setY(car.velocity_wc.y + (delta_t * worldReferenceAcceleration.getY()));\n//\n// // position is integrated velocity\n// Vector2D newPosition = new Vector2D();\n// newPosition.setX(delta_t * worldReferenceVelocity.getX() + car.position_wc.x);\n// newPosition.setY(delta_t * worldReferenceVelocity.getY() + car.position_wc.y);\n//\n//\n// car.velocity_wc.x = normalise(worldReferenceVelocity.getX(), 0.1d);\n// car.velocity_wc.y = normalise(worldReferenceVelocity.getY(), 0.1d);\n//\n// if (car.velocity_wc.x == 0 && car.velocity_wc.y == 0) {\n// car.angularvelocity = 0;\n// } else {\n// car.angularvelocity += delta_t * angularAcceleration;\n// }\n//\n// car.angle += delta_t * car.angularvelocity;\n// car.position_wc.x = newPosition.getX();\n// car.position_wc.y = newPosition.getY();\n//\n// /**\n\n sn = Math.sin(car.angle);\n cs = Math.cos(car.angle);\n\n // SAE convention: x is to the front of the car, y is to the right, z is down\n // transform velocity in world reference frame to velocity in car reference frame\n velocity.x = cs * car.velocity_wc.y + sn * car.velocity_wc.x;\n velocity.y = -sn * car.velocity_wc.y + cs * car.velocity_wc.x;\n\n // Lateral force on wheels\n //\n // Resulting velocity of the wheels as result of the yaw rate of the car body\n // v = yawrate * r where r is distance of wheel to CG (approx. half wheel base)\n // yawrate (ang.velocity) must be in rad/s\n //\n yawspeed = car.cartype.wheelbase * 0.5 * car.angularvelocity;\n\n if (velocity.x == 0) // TODO: fix Math.singularity\n rot_angle = 0;\n else\n rot_angle = Math.atan(yawspeed / velocity.x);\n // Calculate the side slip angle of the car (a.k.a. beta)\n if (velocity.x == 0) // TODO: fix Math.singularity\n sideslip = 0;\n else\n sideslip = Math.atan(velocity.y / velocity.x);\n\n // Calculate slip angles for front and rear wheels (a.k.a. alpha)\n slipanglefront = sideslip + rot_angle - car.steerangle;\n slipanglerear = sideslip - rot_angle;\n\n // weight per axle = half car mass times 1G (=9.8m/s^2)\n weight = car.cartype.mass * 9.8 * 0.5;\n\n // lateral force on front wheels = (Ca * slip angle) capped to friction circle * load\n flatf.x = 0;\n flatf.y = CA_F * slipanglefront;\n flatf.y = Math.min(MAX_GRIP, flatf.y);\n flatf.y = Math.max(-MAX_GRIP, flatf.y);\n flatf.y *= weight;\n if (front_slip == 1)\n flatf.y *= 0.5;\n\n // lateral force on rear wheels\n flatr.x = 0;\n flatr.y = CA_R * slipanglerear;\n flatr.y = Math.min(MAX_GRIP, flatr.y);\n flatr.y = Math.max(-MAX_GRIP, flatr.y);\n flatr.y *= weight;\n if (rear_slip == 1)\n flatr.y *= 0.5;\n\n // longtitudinal force on rear wheels - very simple traction model\n ftraction.x = 100 * (car.throttle - car.brake * SGN(velocity.x));\n ftraction.y = 0;\n if (rear_slip == 1)\n ftraction.x *= 0.5;\n\n // Forces and torque on body\n\n // drag and rolling resistance\n resistance.x = -(RESISTANCE * velocity.x + DRAG * velocity.x * ABS(velocity.x));\n resistance.y = -(RESISTANCE * velocity.y + DRAG * velocity.y * ABS(velocity.y));\n\n // sum forces\n force.x = ftraction.x + Math.sin(car.steerangle) * flatf.x + flatr.x + resistance.x;\n force.y = ftraction.y + Math.cos(car.steerangle) * flatf.y + flatr.y + resistance.y;\n\n // torque on body from lateral forces\n torque = car.cartype.b * flatf.y - car.cartype.c * flatr.y;\n\n // Acceleration\n\n // Newton F = m.a, therefore a = F/m\n acceleration.x = force.x / car.cartype.mass;\n acceleration.y = force.y / car.cartype.mass;\n angular_acceleration = torque / car.cartype.inertia;\n\n // Velocity and position\n\n // transform acceleration from car reference frame to world reference frame\n acceleration_wc.x = cs * acceleration.y + sn * acceleration.x;\n acceleration_wc.y = -sn * acceleration.y + cs * acceleration.x;\n\n // velocity is integrated acceleration\n //\n car.velocity_wc.x += delta_t * acceleration_wc.x;\n car.velocity_wc.y += delta_t * acceleration_wc.y;\n\n // position is integrated velocity\n //\n car.position_wc.x += delta_t * car.velocity_wc.x;\n car.position_wc.y += delta_t * car.velocity_wc.y;\n\n\n // Angular velocity and heading\n\n // integrate angular acceleration to get angular velocity\n //\n car.angularvelocity += delta_t * angular_acceleration;\n\n // integrate angular velocity to get angular orientation\n //\n car.angle += delta_t * car.angularvelocity;\n\n }", "public void updateVelocity() {\n \t// Step 1: input power and convert the power to a force based on the starting velocity\n \tsetWeight();\n \tdouble trainMass = trainWeight*KG_PER_POUND;\n \t\n \t// this is ensuring that we never get a negative speed\n \tif (this.currentSpeed == 0) {\n \t\tthis.force = (this.powerIn)/1;\n \t} else {\n \t\tthis.force = (this.powerIn)/this.currentSpeed;\n \t}\n \tsetGrade();\n \t\n \t// Step 2: Calculate the slope of the train's current angle (Degrees = Tan-1 (Slope Percent/100))\n \tthis.slope = Math.atan2(this.grade,100);\n \tdouble angle = Math.toDegrees(this.slope);\n \t\n \t// Step 3: Calculate the forces acting on the train using the coefficient of friction\n \t// and the train's weight in lbs converted to kg divided over the wheels (where the force is technically\n \t// being applied times gravity (G)\n \tthis.normalForce = (trainMass/this.trainWheels) * G * Math.sin((angle*Math.PI)/180);\t// divide by 12 for the number of wheels\n \tthis.downwardForce = (trainMass/this.trainWheels) * G * Math.cos((angle*Math.PI)/180);\t// divide by 12 for the number of wheels\n\n \t// compute friction force\n \tthis.friction = (FRICTION_COEFFICIENT * this.downwardForce) + this.normalForce;\n \t\n \t// sum of the forces\n \tthis.totalForce = this.force - this.friction;\n \t \t\n \tthis.force = this.totalForce;\n \t\n \t// Step 4: Calculate acceleration using the F = ma equation, where m = the mass of the body moving\n \tthis.trainAcceleration = this.force/trainMass;\n \t\n \t// and have to check to make sure this acceleration does not exceed our max.\n \tif (this.trainAcceleration >= TRAIN_MAX_ACCELERATION * 1) {\t// time elapsed (one second)\n \t\t// set the acceleration as the max acceleration because we cannot exceed that\n \t\tthis.trainAcceleration = TRAIN_MAX_ACCELERATION * 1;\t// time elapsed (one second)\n \t}\n \t\n\t\temerBrake = this.getEBrake();\n \t// decelerates the train based on the values given in the spec sheet for the emergency brake\n \tif (emerBrake) {\n \t\tthis.trainAcceleration += (TRAIN_MAX_ACCELERATION_E_BRAKE*1);\n \t}\n \t\n \t// decelerates the train based onthe values given in the spec sheet for the service brake\n \tif(serviceBrake) {\n \t\tthis.trainAcceleration += (TRAIN_MAX_ACCELERATION_SERVICE_BRAKE*1);\n \t}\n \t\n \t// Step 5: Calculate the final speed by adding the old speed with the acceleration x the time elapsed (one second)\n \tthis.finalSpeed = this.currentSpeed + (this.trainAcceleration * 1);\n \t\n \t// NO NEGATIVE SPEEDS YINZ\n \tif(this.finalSpeed < 0) {\n this.finalSpeed = 0;\n }\n \t\n \t// resetting the current speed based on our calculations\n \tthis.currentSpeed = this.finalSpeed;\n \tthis.distTravelled = this.currentSpeed * 1; // speed times the time between clock ticks = distance travelled\n \t//System.out.println(finalSpeed);\n \t\n \tif(!(currentBlock == this.position.getCurrentBlock())) {\n \t\tmetersIn = 0;\n \t} else {\n \t\tmetersIn += this.distTravelled;\n \t}\n \tthis.position.moveTrain(this.distTravelled); // method call to tell the position class how far to move the train\n \t\n }", "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}", "private void setThrusts() {\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tPlayer player = players[i];\n\t\t\t\n\t\t\t// Apply drag always\n\t\t\ttanks[i].acceleration = tanks[i].velocity\n\t\t\t\t\t.scalarProduct(-tankDrag);\n\t\t\ttanks[i].angularAcceleration = -tanks[i].angularVelocity * tankSteeringDrag;\n\t\t\t\n\t\t\t// Skip if dead\n\t\t\tif (!tanks[i].isAlive()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Get skid steer button presses\n\t\t\tboolean leftPressed = player.getButton(BUTTON_LEFT).isPressed();\n\t\t\tboolean rightPressed = player.getButton(BUTTON_RIGHT).isPressed();\n\t\t\t\n\t\t\tif (leftPressed) {\n\t\t\t\tif (rightPressed) {\n\t\t\t\t\t// Forward\n\t\t\t\t\ttanks[i].acceleration.add(new Vector2D(tankThrust, tanks[i].angle, true));\n\t\t\t\t} else {\n\t\t\t\t\t// Left\n\t\t\t\t\t// tanks[i].angle -= Math.PI / stepsPerHalfTurn;\n\t\t\t\t\ttanks[i].angularAcceleration -= tankSteeringAccel;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (rightPressed) {\n\t\t\t\t\t// Right\n\t\t\t\t\t// tanks[i].angle += Math.PI / stepsPerHalfTurn;\n\t\t\t\t\ttanks[i].angularAcceleration += tankSteeringAccel;\n\t\t\t\t} else {\n\t\t\t\t\t// Stop\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Rotate velocity so that the tanks can't slide sideways\n\t\t\t/*Vector2D unit = new Vector2D(1d, tanks[i].angle, true);\n\t\t\tdouble velocityMagnitude = tanks[i].velocity.dotProduct(unit);\n\t\t\ttanks[i].velocity = new Vector2D(velocityMagnitude, tanks[i].angle, true);*/\n\t\t\ttanks[i].velocity.setAngle(tanks[i].angle);\n\t\t}\n\t}", "double motor_y () { return strut.span + DRIVING_FORCE_HEIGHT; }", "static float[] makeSwell(float x, float y, float z,\n float scale, float pt_size, float f0, float f1,\n float[] vx, float[] vy, float[] vz, int[] numv) {\n \n float d, xd, yd;\n float x0, y0, x1, y1, x2, y2, x3, y3, x4, y4;\n float sscale = 0.75f * scale;\n \n float[] mbarb = new float[4];\n mbarb[0] = x;\n mbarb[1] = y;\n \n float swell_height = (float) Math.sqrt(f0 * f0 + f1 * f1);\n \n int lenv = vx.length;\n int nv = numv[0];\n \n //determine the initial (minimum) length of the flag pole\n if (swell_height >= 0.1f) {\n // normalize direction\n x0 = f0 / swell_height;\n y0 = f1 / swell_height;\n \n float start_arrow = 0.9f * sscale;\n float end_arrow = 1.9f * sscale;\n float arrow_head = 0.3f * sscale;\n x1 = (x + x0 * start_arrow);\n y1 = (y + y0 * start_arrow);\n x2 = (x + x0 * end_arrow);\n y2 = (y + y0 * end_arrow);\n \n // draw arrow shaft\n vx[nv] = x1;\n vy[nv] = y1;\n vz[nv] = z;\n nv++;\n vx[nv] = x2;\n vy[nv] = y2;\n vz[nv] = z;\n nv++;\n \n mbarb[2] = x2;\n mbarb[3] = y2;\n \n xd = x2 - x1;\n yd = y2 - y1;\n \n x3 = x2 - 0.3f * (xd - yd);\n y3 = y2 - 0.3f * (yd + xd);\n x4 = x2 - 0.3f * (xd + yd);\n y4 = y2 - 0.3f * (yd - xd);\n \n // draw arrow head\n vx[nv] = x2;\n vy[nv] = y2;\n vz[nv] = z;\n nv++;\n vx[nv] = x3;\n vy[nv] = y3;\n vz[nv] = z;\n nv++;\n \n vx[nv] = x2;\n vy[nv] = y2;\n vz[nv] = z;\n nv++;\n vx[nv] = x4;\n vy[nv] = y4;\n vz[nv] = z;\n nv++;\n \n int shi = (int) (10.0f * (swell_height + 0.5f));\n float shf = 0.1f * shi;\n String sh_string = Float.toString(shf);\n int point = sh_string.indexOf('.');\n sh_string = sh_string.substring(0, point + 2);\n double[] start = {x, y - 0.25 * sscale, 0.0};\n double[] base = {0.5 * sscale, 0.0, 0.0};\n double[] up = {0.0, 0.5 * sscale, 0.0};\n VisADLineArray array =\n PlotText.render_label(sh_string, start, base, up, true);\n int nl = array.vertexCount;\n int k = 0;\n for (int i=0; i<nl; i++) {\n vx[nv] = array.coordinates[k++];\n vy[nv] = array.coordinates[k++];\n vz[nv] = array.coordinates[k++];\n nv++;\n }\n }\n else { // if (swell_height < 0.1)\n \n // wind < 2.5 kts. Plot a circle\n float rad = (0.7f * pt_size);\n \n // draw 8 segment circle, center = (x, y), radius = rad\n // 1st segment\n vx[nv] = x - rad;\n vy[nv] = y;\n vz[nv] = z;\n nv++;\n vx[nv] = x - 0.7f * rad;\n vy[nv] = y + 0.7f * rad;\n vz[nv] = z;\n nv++;\n // 2nd segment\n vx[nv] = x - 0.7f * rad;\n vy[nv] = y + 0.7f * rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x;\n vy[nv] = y + rad;\n vz[nv] = z;\n nv++;\n // 3rd segment\n vx[nv] = x;\n vy[nv] = y + rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x + 0.7f * rad;\n vy[nv] = y + 0.7f * rad;\n vz[nv] = z;\n nv++;\n // 4th segment\n vx[nv] = x + 0.7f * rad;\n vy[nv] = y + 0.7f * rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x + rad;\n vy[nv] = y;\n vz[nv] = z;\n nv++;\n // 5th segment\n vx[nv] = x + rad;\n vy[nv] = y;\n vz[nv] = z;\n nv++;\n vx[nv] = x + 0.7f * rad;\n vy[nv] = y - 0.7f * rad;\n vz[nv] = z;\n nv++;\n // 6th segment\n vx[nv] = x + 0.7f * rad;\n vy[nv] = y - 0.7f * rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x;\n vy[nv] = y - rad;\n vz[nv] = z;\n nv++;\n // 7th segment\n vx[nv] = x;\n vy[nv] = y - rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x - 0.7f * rad;\n vy[nv] = y - 0.7f * rad;\n vz[nv] = z;\n nv++;\n // 8th segment\n vx[nv] = x - 0.7f * rad;\n vy[nv] = y - 0.7f * rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x - rad;\n vy[nv] = y;\n vz[nv] = z;\n nv++;\n // System.out.println(\"circle \" + x + \" \" + y + \"\" + rad);\n mbarb[2] = x;\n mbarb[3] = y;\n }\n \n numv[0] = nv;\n return mbarb;\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}", "public IKQuadrupedModel() {\n\t\t/*\n\t\ttextureWidth = 16;\n\t\ttextureHeight = 16;\n\n\t\tbase = new ModelRenderer(this);\n\t\tbase.setRotationPoint(0.0F, 4.6F, 0.0F);\n\t\tbase.setTextureOffset(0, 0).addBox(-4.5F, -4.6F, -4.5F, 9.0F, 24.0F, 9.0F, 0.0F, false);\n\n\t\tnorth = new IKModelRenderer(this);\n\t\tnorth.setRotationPoint(0.0F, 0.4F, -4.5F);\n\t\tbase.addChild(north);\n\t\tnorth.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, -13.0F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\n\t\tnorth2 = new IKModelRenderer(this);\n\t\tnorth2.setRotationPoint(0.0F, 0.0F, -13.0F);\n\t\tnorth.addChild(north2);\n\t\tnorth2.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, -13.0F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\n\t\tnorth3 = new IKModelRenderer(this,0,0,-13);\n\t\tnorth3.setRotationPoint(0.0F, 0.0F, -13.0F);\n\t\tnorth2.addChild(north3);\n\t\tnorth3.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, -13.0F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\n\t\tsouth = new IKModelRenderer(this);\n\t\tsouth.setRotationPoint(0.0F, 0.4F, 4.5F);\n\t\tbase.addChild(south);\n\t\tsouth.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, 0.0F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\n\t\tsouth2 = new IKModelRenderer(this);\n\t\tsouth2.setRotationPoint(0.0F, 0.0F, 12.5F);\n\t\tsouth.addChild(south2);\n\t\tsouth2.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, 0.5F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\n\t\tsouth3 = new IKModelRenderer(this,0,0,13);\n\t\tsouth3.setRotationPoint(0.0F, 0.0F, 13.5F);\n\t\tsouth2.addChild(south3);\n\t\tsouth3.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, 0.0F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\n\t\twest = new IKModelRenderer(this);\n\t\twest.setRotationPoint(4.5F, 0.4F, 0.0F);\n\t\tbase.addChild(west);\n\t\t//setRotationAngle(west, 0.0F, -1.5708F, 0.0F);\n\t\twest.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, -13.0F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\n\t\twest2 = new IKModelRenderer(this);\n\t\twest2.setRotationPoint(0.0F, 0.0F, -13.0F);\n\t\twest.addChild(west2);\n\t\twest2.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, -13.0F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\n\t\twest3 = new IKModelRenderer(this,0,0,-13);\n\t\twest3.setRotationPoint(0.0F, 0.0F, -13.0F);\n\t\twest2.addChild(west3);\n\t\twest3.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, -13.0F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\n\t\teast = new IKModelRenderer(this);\n\t\teast.setRotationPoint(-4.5F, 0.4F, 0.0F);\n\t\tbase.addChild(east);\n\t\t//setRotationAngle(east, 0.0F, -1.5708F, 0.0F);\n\t\teast.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, 0.0F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\n\t\teast2 = new IKModelRenderer(this);\n\t\teast2.setRotationPoint(0.0F, 0.0F, 13.0F);\n\t\teast.addChild(east2);\n\t\teast2.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, 0.0F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\n\t\teast3 = new IKModelRenderer(this,0,0,13);\n\t\teast3.setRotationPoint(0.0F, 0.0F, 13.0F);\n\t\teast2.addChild(east3);\n\t\teast3.setTextureOffset(0, 0).addBox(-1.5F, -2.0F, 0.0F, 3.0F, 4.0F, 13.0F, 0.0F, false);\n\t\t*/\n\n\t\ttextureWidth = 128;\n\t\ttextureHeight = 128;\n\n\t\tTorso = new ModelRenderer(this);\n\t\tTorso.setRotationPoint(0.0F, 24.0F, 0.0F);\n\t\tTorso.setTextureOffset(0, 0).addBox(-6.0F, -28.0F, -10.0F, 12.0F, 9.0F, 23.0F, 0.0F, false);\n\n\t\tHead = new ModelRenderer(this);\n\t\tHead.setRotationPoint(0.0F, -23.0F, -10.0F);\n\t\tTorso.addChild(Head);\n\t\tHead.setTextureOffset(25, 32).addBox(-4.0F, -3.0F, -7.0F, 2.0F, 2.0F, 2.0F, 0.0F, false);\n\t\tHead.setTextureOffset(12, 18).addBox(-1.0F, -3.0F, -7.0F, 2.0F, 2.0F, 2.0F, 0.0F, false);\n\t\tHead.setTextureOffset(10, 14).addBox(2.0F, -3.0F, -7.0F, 2.0F, 2.0F, 2.0F, 0.0F, false);\n\t\tHead.setTextureOffset(0, 32).addBox(-5.0F, -4.0F, -5.0F, 10.0F, 5.0F, 5.0F, 0.0F, false);\n\n\t\tJaw = new ModelRenderer(this);\n\t\tJaw.setRotationPoint(0.0F, 2.4F, 0.0F);\n\t\tHead.addChild(Jaw);\n\t\tJaw.setTextureOffset(30, 32).addBox(-5.0F, -0.4F, -5.0F, 10.0F, 1.0F, 5.0F, 0.0F, false);\n\n\t\tFRLeg = new IKModelRenderer(this);\n\t\tFRLeg.setRotationPoint(-6.0F, -20.0F, -7.5F);\n\t\tTorso.addChild(FRLeg);\n\t\tsetRotationAngle(FRLeg, 0.0F, 0.0F, 0.7418F);\n\t\tFRLeg.setTextureOffset(18, 55).addBox(-1.75F, -2.0F, -1.0F, 3.0F, 11.0F, 2.0F, 0.1F, false);\n\n\t\tFRShin = new IKModelRenderer(this);\n\t\tFRShin.setRotationPoint(-0.3604F, 9.0265F, 0.0F);\n\t\tFRLeg.addChild(FRShin);\n\t\tsetRotationAngle(FRShin, 0.0F, 0.0F, -0.4363F);\n\t\tFRShin.setTextureOffset(10, 42).addBox(-1.3816F, -0.5961F, -1.0F, 3.0F, 12.0F, 2.0F, 0.0F, false);\n\n\t\tFRFoot = new IKModelRenderer(this,0,2,0);\n\t\tFRFoot.setRotationPoint(0.2F, 12.4F, -0.5F);\n\t\tFRShin.addChild(FRFoot);\n\t\tFRFoot.setTextureOffset(57, 0).addBox(-1.6F, -1.0F, -1.5F, 3.0F, 2.0F, 4.0F, 0.0F, false);\n\n\t\tFRLeg3 = new IKModelRenderer(this);\n\t\tFRLeg3.setRotationPoint(-6.0F, -20.0F, 1.5F);\n\t\tTorso.addChild(FRLeg3);\n\t\tsetRotationAngle(FRLeg3, 0.0F, 0.0F, 0.7418F);\n\t\tFRLeg3.setTextureOffset(30, 52).addBox(-1.75F, -2.0F, -1.0F, 3.0F, 11.0F, 2.0F, 0.1F, false);\n\n\t\tFRShin3 = new IKModelRenderer(this);\n\t\tFRShin3.setRotationPoint(-0.3604F, 9.0265F, 0.0F);\n\t\tFRLeg3.addChild(FRShin3);\n\t\tsetRotationAngle(FRShin3, 0.0F, 0.0F, -0.4363F);\n\t\tFRShin3.setTextureOffset(40, 40).addBox(-1.3816F, -0.5961F, -1.0F, 3.0F, 12.0F, 2.0F, 0.0F, false);\n\n\t\tFRFoot3 = new IKModelRenderer(this,0,2,0);\n\t\tFRFoot3.setRotationPoint(0.2F, 12.4F, -0.5F);\n\t\tFRShin3.addChild(FRFoot3);\n\t\tFRFoot3.setTextureOffset(50, 44).addBox(-1.6F, -1.0F, -1.5F, 3.0F, 2.0F, 4.0F, 0.0F, false);\n\n\t\tFRLeg6 = new IKModelRenderer(this);\n\t\tFRLeg6.setRotationPoint(6.0F, -20.0F, 1.5F);\n\t\tTorso.addChild(FRLeg6);\n\t\tsetRotationAngle(FRLeg6, 0.0F, 0.0F, -0.7418F);\n\t\tFRLeg6.setTextureOffset(20, 42).addBox(-1.25F, -2.0F, -1.0F, 3.0F, 11.0F, 2.0F, 0.1F, false);\n\n\t\tFRShin6 = new IKModelRenderer(this);\n\t\tFRShin6.setRotationPoint(0.3604F, 9.0265F, 0.0F);\n\t\tFRLeg6.addChild(FRShin6);\n\t\tsetRotationAngle(FRShin6, 0.0F, 0.0F, 0.4363F);\n\t\tFRShin6.setTextureOffset(0, 0).addBox(-1.6184F, -0.5961F, -1.0F, 3.0F, 12.0F, 2.0F, 0.0F, false);\n\n\t\tFRFoot6 = new IKModelRenderer(this,0,2,0);\n\t\tFRFoot6.setRotationPoint(-0.2F, 12.4F, -0.5F);\n\t\tFRShin6.addChild(FRFoot6);\n\t\tFRFoot6.setTextureOffset(0, 14).addBox(-1.4F, -1.0F, -1.5F, 3.0F, 2.0F, 4.0F, 0.0F, false);\n\n\t\tFRLeg4 = new IKModelRenderer(this);\n\t\tFRLeg4.setRotationPoint(-6.0F, -20.0F, 10.5F);\n\t\tTorso.addChild(FRLeg4);\n\t\tsetRotationAngle(FRLeg4, 0.0F, 0.0F, 0.7418F);\n\t\tFRLeg4.setTextureOffset(50, 50).addBox(-1.75F, -2.0F, -1.0F, 3.0F, 11.0F, 2.0F, 0.1F, false);\n\n\t\tFRShin4 = new IKModelRenderer(this);\n\t\tFRShin4.setRotationPoint(-0.3604F, 9.0265F, 0.0F);\n\t\tFRLeg4.addChild(FRShin4);\n\t\tsetRotationAngle(FRShin4, 0.0F, 0.0F, -0.4363F);\n\t\tFRShin4.setTextureOffset(30, 38).addBox(-1.3816F, -0.5961F, -1.0F, 3.0F, 12.0F, 2.0F, 0.0F, false);\n\n\t\tFRFoot4 = new IKModelRenderer(this,0,2,0);\n\t\tFRFoot4.setRotationPoint(0.2F, 12.4F, -0.5F);\n\t\tFRShin4.addChild(FRFoot4);\n\t\tFRFoot4.setTextureOffset(50, 38).addBox(-1.6F, -1.0F, -1.5F, 3.0F, 2.0F, 4.0F, 0.0F, false);\n\n\t\tFRLeg5 = new IKModelRenderer(this);\n\t\tFRLeg5.setRotationPoint(6.0F, -20.0F, 10.5F);\n\t\tTorso.addChild(FRLeg5);\n\t\tsetRotationAngle(FRLeg5, 0.0F, 0.0F, -0.7418F);\n\t\tFRLeg5.setTextureOffset(47, 0).addBox(-1.25F, -2.0F, -1.0F, 3.0F, 11.0F, 2.0F, 0.1F, false);\n\n\t\tFRShin5 = new IKModelRenderer(this);\n\t\tFRShin5.setRotationPoint(0.3604F, 9.0265F, 0.0F);\n\t\tFRLeg5.addChild(FRShin5);\n\t\tsetRotationAngle(FRShin5, 0.0F, 0.0F, 0.4363F);\n\t\tFRShin5.setTextureOffset(10, 0).addBox(-1.6184F, -0.5961F, -1.0F, 3.0F, 12.0F, 2.0F, 0.0F, false);\n\n\t\tFRFoot5 = new IKModelRenderer(this,0,2,0);\n\t\tFRFoot5.setRotationPoint(-0.2F, 12.4F, -0.5F);\n\t\tFRShin5.addChild(FRFoot5);\n\t\tFRFoot5.setTextureOffset(47, 13).addBox(-1.4F, -1.0F, -1.5F, 3.0F, 2.0F, 4.0F, 0.0F, false);\n\n\t\tFRLeg2 = new IKModelRenderer(this);\n\t\tFRLeg2.setRotationPoint(6.0F, -20.0F, -7.5F);\n\t\tTorso.addChild(FRLeg2);\n\t\tsetRotationAngle(FRLeg2, 0.0F, 0.0F, -0.7418F);\n\t\tFRLeg2.setTextureOffset(40, 54).addBox(-1.25F, -2.0F, -1.0F, 3.0F, 11.0F, 2.0F, 0.1F, false);\n\n\t\tFRShin2 = new IKModelRenderer(this);\n\t\tFRShin2.setRotationPoint(0.3604F, 9.0265F, 0.0F);\n\t\tFRLeg2.addChild(FRShin2);\n\t\tsetRotationAngle(FRShin2, 0.0F, 0.0F, 0.4363F);\n\t\tFRShin2.setTextureOffset(0, 42).addBox(-1.6184F, -0.5961F, -1.0F, 3.0F, 12.0F, 2.0F, 0.0F, false);\n\n\t\tFRFoot2 = new IKModelRenderer(this,0,2,0);\n\t\tFRFoot2.setRotationPoint(-0.2F, 12.4F, -0.5F);\n\t\tFRShin2.addChild(FRFoot2);\n\t\tFRFoot2.setTextureOffset(0, 56).addBox(-1.4F, -1.0F, -1.5F, 3.0F, 2.0F, 4.0F, 0.0F, false);\n\n\t\t/*\n textureWidth = 16;\n\t\ttextureHeight = 16;\n\t\tbase = new IKModelRenderer(this);\n\t\tbase.setRotationPoint(0.0F, 24.0F, 0.0F);\n\t\tbase.setTextureOffset(0, 0).addBox(-8.0F, -2.0F, -8.0F, 16.0F, 2.0F, 16.0F, 0.0F, false);\n\t\t\n\t\tarm = new IKModelRenderer(this);\n\t\tarm.setRotationPoint(0.0F, -2.0F, 0.0F);\n\t\tbase.addChild(arm);\n\t\tarm.setTextureOffset(0, 0).addBox(-1.5F, -16.0F, -1.5F, 3.0F, 16.0F, 3.0F, 0.0F, false);\n\t\t\n\t\telbow = new IKModelRenderer(this);\n\t\telbow.setRotationPoint(0.0F, -16.0F, 0.0F);\n\t\tarm.addChild(elbow);\n\t\telbow.setTextureOffset(0, 0).addBox(-1.5F, -16.0F, -1.5F, 3.0F, 16.0F, 3.0F, 0.0F, false);\n\n\t\tforearm = new IKModelRenderer(this,0,27,0);\n\t\tforearm.setRotationPoint(0.0F, -16.0F, 0.0F);\n\t\telbow.addChild(forearm);\n\t\tforearm.setTextureOffset(0, 0).addBox(-1.5F, -23.0F, -1.5F, 3.0F, 23.0F, 3.0F, 0.0F, false);\n\t\tforearm.setTextureOffset(0, 0).addBox(-2.5F, -27.0F, -2.5F, 5.0F, 4.0F, 5.0F, 0.0F, false);\n\t\t*/\n\t}", "void update() {\n for( int i= 0; i < masses.length; i++) {\n masses[i].posX += masses[i].vx*dt;\n masses[i].posY += masses[i].vy*dt;\n }\n\n for( int i = 0; i < springs.length; i++) {\n if( !springs[i].mass1.fixed ) {\n springs[i].mass1.vx += ( springs[i].forceX() + nx(springs[i].mass1)*Math.pow(dist(springs[i].mass1)/(width*Math.sqrt(2)),2) - 0.005*springs[i].mass1.vx ) * dt;\n springs[i].mass1.vy += ( springs[i].forceY() + ny(springs[i].mass1)*Math.pow(dist(springs[i].mass1)/(width*Math.sqrt(2)),2) - 0.005*springs[i].mass1.vy ) * dt;\n }\n\n if( !springs[i].mass2.fixed ) {\n springs[i].mass2.vx += ( (-1)*springs[i].forceX() + nx(springs[i].mass2)*Math.pow(dist(springs[i].mass1)/(width*Math.sqrt(2)),2) - 0.005*springs[i].mass2.vx ) * dt;\n springs[i].mass2.vy += ( (-1)*springs[i].forceY() + ny(springs[i].mass2)*Math.pow(dist(springs[i].mass1)/(width*Math.sqrt(2)),2) - 0.005*springs[i].mass2.vy ) * dt;\n }\n }\n }", "public void setVels(Fighter f1,boolean[] inputs, Platform plat)\r\n {\r\n //if the fighter is on the ground and pressed the up button\r\n if (inputs[0] == true && f1.getPos()[1] == plat.getY()- f1.getSize())\r\n {\r\n //set the upward momentum to the jump force\r\n f1.setMvmtVel(f1.getMvmtVel()[0], -j);\r\n }\r\n //if pressing the right button\r\n if (inputs[3] == true)\r\n {\r\n f1.setRight(true);\r\n //if it's moving left\r\n if (f1.getMvmtVel()[0] < 0){ \r\n f1.setMvmtVel(s, f1.getMvmtVel()[1]); //sets the horizontal momentum to s\r\n }\r\n else{\r\n f1.setMvmtVel(f1.getMvmtVel()[0] + s, f1.getMvmtVel()[1]); //sets the horizontal momentum to the current momentum + s\r\n }\r\n \r\n }\r\n\r\n //if pressing the left button\r\n else if (inputs[1] == true)\r\n {\r\n f1.setRight(false);\r\n //if it's moving right\r\n if (f1.getMvmtVel()[0] > 0){\r\n f1.setMvmtVel(-s, f1.getMvmtVel()[1]); //sets the horizontal momentum to -s\r\n }\r\n else{\r\n f1.setMvmtVel(f1.getMvmtVel()[0] - s, f1.getMvmtVel()[1]); //sets the horizontal momentum to the current momentum - s\r\n }\r\n }\r\n\r\n f1.setPos(f1.getPos()[0] + f1.getMvmtVel()[0],f1.getPos()[1] + f1.getMvmtVel()[1]); //changes the position based on their momentum\r\n f1.setMvmtVel(f1.getMvmtVel()[0]/f, f1.getMvmtVel()[1] + g); //decreases their momentum using friction and gravity\r\n\r\n\r\n }", "public void render() {\n float theta = velocity.heading2D() + radians(90);\n\n\n fill(255, 0, 0);\n stroke(255, 0, 0);\n strokeWeight(0.5f);\n pushMatrix();\n translate(position.x, position.y);\n rotate(theta);\n beginShape(QUAD);\n fill(255, 0, 0);\n vertex(r, -r*2);\n\n vertex(-r, -r*2);\n vertex(-r, r*2);\n vertex(r, r*2);\n\n endShape();\n beginShape(TRIANGLES);\n vertex(-r, -r*2);\n vertex(r, -r*2);\n vertex(0, -r*4);\n endShape();\n beginShape(TRIANGLES);\n vertex(-r, r*5);\n vertex(r, r*5);\n vertex(0, r*2);\n endShape();\n fill(0);\n stroke(255);\n fill(255);\n strokeWeight(1.7f*r);\n\n point(0, -r*2.5f);\n stroke(0);\n fill(0);\n strokeWeight(0.75f*r);\n point(0, -r*2.5f);\n\n\n popMatrix();\n textSize(6+(this.kidsHad/2));\n textMode(CENTER);\n stroke(0);\n text(\" g:\"+this.gen+\"/\"+kidsHad + \"/id: \" + (this.id+1), this.position.x, this.position.y);\n }", "@Override\n public void execute() {\n\n\n /* container.swerveControllerCommand =\n new SwerveControllerCommand(\n trajectory,\n drivetrain::getCurrentPose, \n DrivetrainConstants.DRIVE_KINEMATICS,\n\n // Position controllers\n new PIDController(DrivetrainConstants.P_X_Controller, 0, 0),\n new PIDController(DrivetrainConstants.P_Y_Controller, 0, 0),\n container.thetaController,\n drivetrain::setModuleStates, //Not sure about setModuleStates\n drivetrain);*/\n\n// Reset odometry to the starting pose of the trajectory.\ndrivetrain.resetOdometry(trajectory.getInitialPose());\n\n\n}", "@Override\n\tpublic void travel(float strafe, float vertical, float forward) {\n\t\tif (this.isInWater()) {\n\t\t\tthis.moveRelative(strafe, vertical, forward, 0.02F);\n\t\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\t\tthis.motionX *= 0.800000011920929D;\n\t\t\tthis.motionY *= 0.800000011920929D;\n\t\t\tthis.motionZ *= 0.800000011920929D;\n\t\t} else if (this.isInLava()) {\n\t\t\tthis.moveRelative(strafe, vertical, forward, 0.02F);\n\t\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\t\tthis.motionX *= 0.5D;\n\t\t\tthis.motionY *= 0.5D;\n\t\t\tthis.motionZ *= 0.5D;\n\t\t} else {\n\t\t\tfloat f = 0.91F;\n\n\t\t\tif (this.onGround) {\n\t\t\t\t//f = this.world.getBlockState(new BlockPos(MathHelper.floor(this.posX), MathHelper.floor(this.getEntityBoundingBox().minY) - 1, MathHelper.floor(this.posZ))).getBlock().slipperiness * 0.91F;\n\t\t\t\tBlockPos underPos = new BlockPos(MathHelper.floor(this.posX), MathHelper.floor(this.getEntityBoundingBox().minY) - 1, MathHelper.floor(this.posZ));\n\t\t\t\tIBlockState underState = this.world.getBlockState(underPos);\n\t\t\t\tf = underState.getBlock().getSlipperiness(underState, this.world, underPos, this) * 0.91F;\n\t\t\t}\n\n\t\t\tfloat f1 = 0.16277136F / (f * f * f);\n\t\t\tthis.moveRelative(strafe, vertical, forward, this.onGround ? 0.1F * f1 : 0.02F);\n\t\t\tf = 0.91F;\n\n\t\t\tif (this.onGround) {\n\t\t\t\t//f = this.world.getBlockState(new BlockPos(MathHelper.floor(this.posX), MathHelper.floor(this.getEntityBoundingBox().minY) - 1, MathHelper.floor(this.posZ))).getBlock().slipperiness * 0.91F;\n\t\t\t\tBlockPos underPos = new BlockPos(MathHelper.floor(this.posX), MathHelper.floor(this.getEntityBoundingBox().minY) - 1, MathHelper.floor(this.posZ));\n\t\t\t\tIBlockState underState = this.world.getBlockState(underPos);\n\t\t\t\tf = underState.getBlock().getSlipperiness(underState, this.world, underPos, this) * 0.91F;\n\t\t\t}\n\n\t\t\tthis.move(MoverType.SELF, this.motionX, this.motionY, this.motionZ);\n\t\t\tthis.motionX *= (double)f;\n\t\t\tthis.motionY *= (double)f;\n\t\t\tthis.motionZ *= (double)f;\n\t\t}\n\n\t\tthis.prevLimbSwingAmount = this.limbSwingAmount;\n\t\tdouble d1 = this.posX - this.prevPosX;\n\t\tdouble d0 = this.posZ - this.prevPosZ;\n\t\tfloat f2 = MathHelper.sqrt(d1 * d1 + d0 * d0) * 4.0F;\n\n\t\tif (f2 > 1.0F) {\n\t\t\tf2 = 1.0F;\n\t\t}\n\n\t\tthis.limbSwingAmount += (f2 - this.limbSwingAmount) * 0.4F;\n\t\tthis.limbSwing += this.limbSwingAmount;\n\t}", "public static void main(String[] args) {\n MeepMeep mm = new MeepMeep(800)\n // Set field image\n .setBackground(MeepMeep.Background.FIELD_ULTIMATE_GOAL_DARK)\n // Set theme\n .setTheme(new ColorSchemeRedDark())\n // Background opacity from 0-1\n .setBackgroundAlpha(1f)\n // Set constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width\n .setConstraints(99, 30, Math.toRadians(37.74), Math.toRadians(60), 37)\n .followTrajectorySequence(drive ->\n drive.trajectorySequenceBuilder(new Pose2d(-60, 48, 0))\n .lineTo(new Vector2d(56, 48))\n .addTemporalMarker(15.0,() -> {\n // do stuff\n })\n// .lineToConstantHeading(new Vector2d(56, 48))\n //drop wobble\n// .lineToConstantHeading(new Vector2d(56, 19))\n .addDisplacementMarker(() -> {\n // drop wobble goal\n //return Unit.INSTANCE;\n })\n .waitSeconds(1.5)\n // Get to wobble goal\n .lineToSplineHeading(new Pose2d(-12, 19, Math.toRadians(0)))\n // slowly approach wobble goal\n .lineTo(new Vector2d(-27, 19), new TranslationalVelocityConstraint(5))\n // grab wobble goal\n .addDisplacementMarker(() -> {\n // grab wobble goal\n //return Unit.INSTANCE;\n })\n .waitSeconds(2.0)\n .strafeTo(new Vector2d(56, 19))\n .lineToLinearHeading(new Pose2d(56, 36, Math.toRadians(-90)))\n .addDisplacementMarker(() -> {\n // drop wobble goal\n //return Unit.INSTANCE;\n })\n .strafeTo(new Vector2d(56, 30))\n .strafeTo(new Vector2d(12, 30))\n .waitSeconds(1.0)\n .build()\n )\n .start();\n\n/*\n\n .lineTo(new Vector2d(12, 48))\n .splineToConstantHeading(new Vector2d(12, 19), Math.toRadians(0))\n .splineToConstantHeading(new Vector2d(-18, 19), Math.toRadians(0))\n .lineTo(\n new Vector2d(-27, 19)\n// SampleMecanumDrive.getVelocityConstraint(slowerVelocity, DriveConstants.MAX_ANG_VEL, DriveConstants.TRACK_WIDTH),\n// SampleMecanumDrive.getAccelerationConstraint(DriveConstants.MAX_ACCEL)\n )\n .splineToConstantHeading(new Vector2d(12, 19), Math.toRadians(0))\n .splineToLinearHeading(new Pose2d(12, 36, Math.toRadians(-90)), Math.toRadians(0))\n .start()\n */\n }", "public void calculate(double totalTime, double timeStep, double robotTrackWidth)\n\t{\n\t\t/**\n\t\t * pseudo code\n\t\t * \n\t\t * 1. Reduce input waypoints to only essential (direction changing) node points\n\t\t * 2. Calculate how many total datapoints we need to satisfy the controller for \"playback\"\n\t\t * 3. Simultaneously inject and smooth the path until we end up with a smooth path with required number \n\t\t * of datapoints, and which follows the waypoint path.\n\t\t * 4. Calculate left and right wheel paths by calculating parallel points at each datapoint \n\t\t */\n\n\n\t\t//First find only direction changing nodes\n\t\tnodeOnlyPath = nodeOnlyWayPoints(origPath);\n\n\t\t//Figure out how many nodes to inject\n\t\tint[] inject = injectionCounter2Steps(nodeOnlyPath.length, totalTime, timeStep);\n\n\t\t//Iteratively inject and smooth the path\n\t\tfor(int i=0; i<inject.length; i++)\n\t\t{\n\t\t\tif(i==0)\n\t\t\t{\n\t\t\t\tsmoothPath = inject(nodeOnlyPath,inject[0]);\n\t\t\t\tsmoothPath = smoother(smoothPath, pathAlpha, pathBeta, pathTolerance);\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsmoothPath = inject(smoothPath,inject[i]);\n\t\t\t\tsmoothPath = smoother(smoothPath, 0.1, 0.3, 0.0000001);\t\n\t\t\t}\n\t\t}\n\n\t\t//Calculate left and right path based on center path\n\t\tleftRight(smoothPath, robotTrackWidth);\n\n\t\torigCenterVelocity = velocity(smoothPath, timeStep);\n\t\torigLeftVelocity = velocity(leftPath, timeStep);\n\t\torigRightVelocity = velocity(rightPath, timeStep);\n\n\t\t//Copy smooth velocities into fix Velocities\n\t\tsmoothCenterVelocity = doubleArrayCopy(origCenterVelocity);\n\t\tsmoothLeftVelocity = doubleArrayCopy(origLeftVelocity);\n\t\tsmoothRightVelocity = doubleArrayCopy(origRightVelocity);\n\n\t\t//Set final vel to zero\n\t\tsmoothCenterVelocity[smoothCenterVelocity.length-1][1] = 0.0;\n\t\tsmoothLeftVelocity[smoothLeftVelocity.length-1][1] = 0.0;\n\t\tsmoothRightVelocity[smoothRightVelocity.length-1][1] = 0.0;\n\n\t\t//Smooth velocity with zero final V\n\t\tsmoothCenterVelocity = smoother(smoothCenterVelocity, velocityAlpha, velocityBeta, velocityTolerance);\n\t\tsmoothLeftVelocity = smoother(smoothLeftVelocity, velocityAlpha, velocityBeta, velocityTolerance);\n\t\tsmoothRightVelocity = smoother(smoothRightVelocity,velocityAlpha, velocityBeta, velocityTolerance);\n\n\t\t//Fix velocity distance error\n\t\tsmoothCenterVelocity = velocityFix(smoothCenterVelocity, origCenterVelocity, 0.0000001);\n\t\tsmoothLeftVelocity = velocityFix(smoothLeftVelocity, origLeftVelocity, 0.0000001);\n\t\tsmoothRightVelocity = velocityFix(smoothRightVelocity, origRightVelocity, 0.0000001);\n\t}", "void think() {\n //get the output of the neural network\n decision = brain.output(vision);\n\n if (decision[0] > 0.8) {//output 0 is boosting\n boosting = true;\n } else {\n boosting = false;\n }\n if (decision[1] > 0.8) {//output 1 is turn left\n spin = -0.08f;\n } else {//cant turn right and left at the same time\n if (decision[2] > 0.8) {//output 2 is turn right\n spin = 0.08f;\n } else {//if neither then dont turn\n spin = 0;\n }\n }\n //shooting\n if (decision[3] > 0.8) {//output 3 is shooting\n shoot();\n }\n }", "public void tick()\r\n\t{\r\n\t\tsuper.tick();\r\n\t\t\r\n\t\tswitch(state) {\r\n\t\tcase ENTERING:\r\n\t\t\tif (speed() == 0) {\r\n\t\t\t\tsetSpeed(speed);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase STOPPED:\r\n\t\t\tif (speed() > 0) {\r\n\t\t\t\tsetSpeed(0);\r\n\t\t\t}\r\n\t\t\t//Remain in same state\r\n\t\t\tbreak;\r\n\t\tcase EXITING:\r\n\t\t\tif (speed() == 0) {\r\n\t\t\t\tsetSpeed(speed);\r\n\t\t\t}\r\n\t\t\t//turn();\r\n\t\t\t//Remain in same state\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t// Check to see if enity has entered a box\r\n\t\tBox box = getBox();\r\n\t\tif( box != null){\r\n\t\t//check to see if the box contains the vehicle, and check ot see if the pedsetrian is already in the box\r\n\t\t//if so add it to the box\r\n\t\t\tif( box.insideBox(this) && !inBox && state == State.EXITING){ \r\n\t\t\t\tbox.addEntity(this);\r\n\t\t\t\tinBox = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\r\n\t\t//Check for boundary crossing\r\n\t\tif ((x() < lane.road().getIntersection().getMinX() || x() > lane.road().getIntersection().getMaxX()) || (y() < lane.road().getIntersection().getMinY() || y() > lane.road().getIntersection().getMaxY())) {\r\n\t\t\tlane.removePedestrian(this);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "void find_steady_conditions () {\n // System.out.println(\"-- find_steady_conditions: \" + can_do_gui_updates);\n // double min_lift = parse_force_constraint(tf_tkoff_min_lift);\n double max_drag = parse_force_constraint(tf_tkoff_max_drag);\n boolean saved_flag = can_do_gui_updates;\n can_do_gui_updates = false;\n vpp.steady_flight_at_given_speed(5, 0);\n can_do_gui_updates = saved_flag;\n recomp_all_parts();\n\n\n // this animation idea alas does not work now... \n // //add a bit of animation in case the rider crosses the takeoff speed.\n // if (alt_val == 0 && foil_lift() >= load) { // need to raise up\n // while (alt_val < 70 && foil_lift() >= load) {\n // alt_val += 0.1;\n // loadPanel();\n // viewer.repaint();\n // // try { Thread.sleep(100); } catch (InterruptedException e) {}\n // saved_flag = can_do_gui_updates;\n // can_do_gui_updates = false;\n // vpp.steady_flight_at_given_speed(5, 0);\n // can_do_gui_updates = saved_flag;\n // }\n // }\n\n if (alt_val == 0 && foil_lift() >= load) { // need to raise up\n // viewer.start_raise = true; // this is experimentsl, has quirks....\n alt_val = 70;\n } else if (alt_val > 0 && foil_lift() < load) { // must splash\n // viewer.start_descend = true; // this is experimentsl, has quirks....\n alt_val = 0;\n }\n\n \n loadPanel();\n if (total_drag() > max_drag) \n dash.outTotalDrag.setForeground(Color.red);\n if (foil_lift() < load) \n dash.outTotalLift.setForeground(Color.red);\n }", "public static void updatePosition() {\n\t\tfor (int i = 0; i < TitanV4.planets.length; i++) { //compute forces between all celestial corpses\n\t\t\tfor(int j=i; j<TitanV4.planets.length; j++){\n\t\t\t\tif (i != j) {\n\t\t\t\t\tdouble upper = TitanV4.G*TitanV4.planets[i].getMass() * TitanV4.planets[j].getMass();\n\t\t\t\t\tdouble lower = TitanV4.planets[i].getPosition().distanceFrom(TitanV4.planets[j].getPosition());\n\t\t\t\t\tdouble gravitation = upper/lower;\n\t\t\t\t\tVector a = new Vector();\n\t\t\t\t\ta = TitanV4.planets[i].getPosition().substract(TitanV4.planets[j].getPosition()).normalize().multiply(-1);\n\n\t\t\t\t\tTitanV4.planets[i].force.add(a.multiply(gravitation));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//compute acceleration vector for each celestial corpse but the sun\n\t\tfor(int i=1; i<TitanV4.planets.length; i++){\n\t\t\tTitanV4.planets[i].acceleration = (TitanV4.planets[i].force.divide(TitanV4.planets[i].getMass()));\n\t\t}\n\n\t\t//calculate change in speed over deltaT\n\t\tfor(int i=1; i<TitanV4.planets.length; i++){\n\t\t\tVector oldVelocity = new Vector(TitanV4.planets[i].velocity);\n\t\t\tTitanV4.planets[i].velocity.add((TitanV4.planets[i].acceleration.multiply(TitanV4.deltaT)));\n\n\t\t\tVector posChange = new Vector();\n\t\t\tposChange = (oldVelocity.add(velocity).divide(2)).multiply(TitanV4.deltaT);\n\t\t\tTitanV4.planets[i].pos.add(posChange);\n\t\t}\n\t}", "private static double fds_h(Vec v) { return 2*ASTMad.mad(new Frame(v), null, 1.4826)*Math.pow(v.length(),-1./3.); }", "public VPhysicsSimple() {\n\t\tthis.particles = new ArrayList<VParticle>();\n\t\tthis.springs = new ArrayList<VSpring>();\n\t\tthis.behaviors = new ArrayList<BehaviorInterface>(1);\n\t\tthis.constraints = new ArrayList<VParticle>(10);\n\t\tsetNumIterations(50);\n\t\tsetfriction(0);\n\t}", "public void preStep(float invDT) {\r\n\r\n\t\t// calculate the spring's vector (pointing from body1 to body2) and length\r\n\t\tspring = new Vector2f(body2.getPosition());\r\n\t\tspring.add(r2);\r\n\t\tspring.sub(body1.getPosition());\r\n\t\tspring.sub(r1);\r\n\t\tspringLength = spring.length();\r\n\t\t\r\n\t\t// the spring vector needs to be normalized for applyImpulse as well!\r\n\t\tspring.normalise();\r\n\t\t\r\n\t\t// calculate the spring's forces\r\n\t\t// note that although theoretically invDT could never be 0\r\n\t\t// but here it can\r\n\t\tfloat springConst;\r\n\t\t\r\n\t\tif ( springLength < minSpringSize || springLength > maxSpringSize ) { \r\n\t\t\t// Pre-compute anchors, mass matrix, and bias.\r\n\t\t\tMatrix2f rot1 = new Matrix2f(body1.getRotation());\r\n\t\t\tMatrix2f rot2 = new Matrix2f(body2.getRotation());\r\n\t\r\n\t\t\tr1 = MathUtil.mul(rot1,localAnchor1);\r\n\t\t\tr2 = MathUtil.mul(rot2,localAnchor2);\r\n\t\t\t\r\n\t\t\t// the mass normal or 'k'\r\n\t\t\tfloat rn1 = r1.dot(spring);\r\n\t\t\tfloat rn2 = r2.dot(spring);\r\n\t\t\tfloat kNormal = body1.getInvMass() + body2.getInvMass();\r\n\t\t\tkNormal += body1.getInvI() * (r1.dot(r1) - rn1 * rn1) + body2.getInvI() * (r2.dot(r2) - rn2 * rn2);\r\n\t\t\tmassNormal = 1 / kNormal;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// The spring is broken so apply force to correct it\r\n\t\t\t// note that we use biased velocities for this\r\n\t\t\tfloat springImpulse =\r\n\t\t\t\tinvDT != 0 ? brokenSpringConst * (springLength - springSize) / invDT : 0;\r\n\t\t\t\r\n\t\t\tVector2f impulse = MathUtil.scale(spring, springImpulse);\r\n\t\t\tbody1.adjustBiasedVelocity(MathUtil.scale(impulse, body1.getInvMass()));\r\n\t\t\tbody1.adjustBiasedAngularVelocity((body1.getInvI() * MathUtil.cross(r1, impulse)));\r\n\r\n\t\t\tbody2.adjustBiasedVelocity(MathUtil.scale(impulse, -body2.getInvMass()));\r\n\t\t\tbody2.adjustBiasedAngularVelocity(-(body2.getInvI() * MathUtil.cross(r2, impulse)));\r\n\t\t\t\r\n\t\t\tisBroken = true;\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t} else if ( springLength < springSize ) {\r\n\t\t\tspringConst = compressedSpringConst;\r\n\t\t\tisBroken = false;\r\n\t\t} else { // if ( springLength >= springSize )\r\n\t\t\tspringConst = stretchedSpringConst;\r\n\t\t\tisBroken = false;\r\n\t\t}\r\n\t\t\r\n\t\tfloat springImpulse =\r\n\t\t\tinvDT != 0 ? springConst * (springLength - springSize) / invDT : 0;\r\n\r\n\t\t// apply the spring's forces\r\n\t\tVector2f impulse = MathUtil.scale(spring, springImpulse);\r\n\t\tbody1.adjustVelocity(MathUtil.scale(impulse, body1.getInvMass()));\r\n\t\tbody1.adjustAngularVelocity((body1.getInvI() * MathUtil.cross(r1, impulse)));\r\n\r\n\t\tbody2.adjustVelocity(MathUtil.scale(impulse, -body2.getInvMass()));\r\n\t\tbody2.adjustAngularVelocity(-(body2.getInvI() * MathUtil.cross(r2, impulse)));\r\n\t}", "public Robot(Case pos, int vitesse){\n \tthis.position=pos;\n \tthis.vitesse=(int) (vitesse/3.6);\n \tthis.enDeplacement=false; \n \tthis.destination=new LinkedList<Direction>();\n }", "public void turnLeft()\r\n\t{\r\n\t\t\r\n\t\theading -= 2; //JW\r\n\t\t//Following the camera:\r\n\t\t\t//heading -= Math.sin(Math.toRadians(15))*distance; \r\n\t\t\t//heading -= Math.cos(Math.toRadians(15))*distance;\r\n\t}", "public PlayerController(World world, ElementModel model) {\n super(world, model, BodyDef.BodyType.DynamicBody);\n\n state = new FloatState();\n\n this.width = imageWidth;\n this.height = imageHeight;\n\n //head\n FixtureInfo info = new FixtureInfo(new float[]{\n 62, 186,\n 32, 122,\n 57, 67,\n 98, 48,\n 160, 53,\n 207, 123,\n 193, 195,\n 62, 186\n }, width, height);\n\n info.physicsComponents(density, friction, restitution);\n\n info.collisionComponents(PLAYER_BODY, (short) (PLANET_BODY | PLAYER_BODY | COMET_BODY));\n\n createFixture(body, info);\n\n //corns\n info.vertexes = new float[]{\n 114, 49,\n 118, 33,\n 109, 19,\n 142, 13,\n 142, 26,\n 129, 33,\n 114, 49};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 191, 83,\n 207, 66,\n 215, 52,\n 219, 26,\n 241, 34,\n 232, 52,\n 219, 76,\n 191, 83};\n\n createFixture(body, info);\n\n //arms\n info.vertexes = new float[]{\n 61, 196,\n 23, 198,\n 3, 217,\n 21, 268,\n 61, 196};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 150, 229,\n 175, 285,\n 166, 316,\n 156, 330,\n 150, 229};\n\n createFixture(body, info);\n\n\n //legs\n info.vertexes = new float[]{\n 31, 332,\n 37, 370,\n 36, 401,\n 31, 416,\n 90, 418,\n 85, 403,\n 81, 374,\n 31, 332};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 107, 359,\n 102, 395,\n 106, 418,\n 161, 417,\n 144, 397,\n 107, 359,\n 152, 327};\n\n createFixture(body, info);\n\n\n //Belly\n info.vertexes = new float[]{\n 75, 219,\n 17, 283,\n 41, 346,\n 90, 364,\n 143, 330,\n 151, 280,\n 138, 227,\n 75, 219};\n\n createFixture(body, info);\n\n this.body.setGravityScale(0);\n this.body.setAngularDamping(0.7f);\n\n this.lost = false;\n }", "public void moveOneStep(double dt) {\r\n double movementX = this.p.getX() + dt * this.vel.getDx();\r\n double movementY = this.p.getY() + dt * this.vel.getDy();\r\n Line trajectory = new Line(this.p, new Point(movementX, movementY));\r\n CollisionInfo collInfo = gameE.getClosestCollision(trajectory);\r\n // if there is a collision point collInfo doesn't equal to null.\r\n if (collInfo != null) {\r\n double x = this.getX();\r\n double y = this.getY();\r\n Point collisionPoint = collInfo.collisionPoint();\r\n Collidable obj = collInfo.collisionObject();\r\n Rectangle r = obj.getCollisionRectangle();\r\n // Check if the ball hit on one of the corners block.\r\n if (collisionPoint.getY() == collisionPoint.getX()) {\r\n // If the ball hit on the top corners.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()\r\n || collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n // else the ball hit on the bottom corners.\r\n } else {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n }\r\n // Set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n return;\r\n }\r\n\r\n // If the ball hit on the left border block.\r\n if (collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY();\r\n // If the ball hit on the right border block.\r\n } else if (collisionPoint.getX() == r.getWidth() + r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY();\r\n\r\n }\r\n // If the ball hit on the top border block.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n x = collisionPoint.getX();\r\n // If the ball hit on the bottom border block.\r\n } else if (collisionPoint.getY() == r.getHeight() + r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n x = collisionPoint.getX();\r\n }\r\n // set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n // else move the ball one step.\r\n } else {\r\n this.p = this.getVelocity().applyToPoint(this.p, dt);\r\n }\r\n }", "public void direction()\n {\n if(!goLeft){\n horzVelocity = 1;\n }else{\n horzVelocity = -1;\n }\n }", "public void rotateServos() {\n if (gamepad1.x) { //change to y and x\n left.setPosition(.69); //.63 with other arms\n right.setPosition(.24); //.3 with other arms\n }\n \n if (gamepad1.y) {\n left.setPosition(0);\n right.setPosition(1);\n }\n }", "private void updatePhysics ( ECSEntity entity, long t )\n {\n // Constants.\n \n final double SCREEN_HEIGHT = 600.0;\n final double FRICTION_COEFFICIENT = 0.0001 / SCREEN_HEIGHT;\n final double ACCELERATION = 0.001 / SCREEN_HEIGHT;\n \n // Initialize working variables.\n \n double ax = 0.0;\n double ay = 0.0;\n \n // Retrieve the entity's components.\n \n this.transform = ( ComponentTransform ) entity.getComponent ( Constants.COMPONENT_TRANSFORM );\n this.physics = ( ComponentPhysics ) entity.getComponent ( Constants.COMPONENT_PHYSICS );\n \n // Initialize working variables.\n \n Vector2D a = new Vector2D ( this.physics.acceleration );\n Vector2D v = new Vector2D (); \n Vector2D d = new Vector2D ();\n Vector2D u = new Vector2D ();\n Vector2D dUp = new Vector2D ( 0.0, 1.0 );\n Vector2D dDown = new Vector2D ( 0.0, -1.0 );\n Vector2D dRight = new Vector2D ( 1.0, 0.0 );\n Vector2D dLeft = new Vector2D ( -1.0, 0.0 );\n double p = FRICTION_COEFFICIENT;\n double vMax = this.physics.vMax;\n \n // Calculate velocity.\n \n v.setVector ( a.scale ( t ) ); // Acceleration: a = v/t ↔ v = a·t (Newtonian acceleration).\n \n // Apply accelerator.\n \n if ( v.magnitude() < vMax / t )\n { \n if ( this.physics.accelerateUp ) { a.setVector ( a.add ( dUp.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateDown ) { a.setVector ( a.add ( dDown.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateRight ) { a.setVector ( a.add ( dRight.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateLeft ) { a.setVector ( a.add ( dLeft.scale ( ACCELERATION ) ) ); } \n } \n else\n { \n if ( this.physics.accelerateUp ) { a.setVector ( a.subtract ( dUp.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateDown ) { a.setVector ( a.subtract ( dDown.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateRight ) { a.setVector ( a.subtract ( dRight.scale ( ACCELERATION ) ) ); }\n if ( this.physics.accelerateLeft ) { a.setVector ( a.subtract ( dLeft.scale ( ACCELERATION ) ) ); }\n }\n \n // Calculate displacement. ( Distance to move in this time slice ).\n \n d.setVector ( v.scale ( t ) ); // Velocity: v = d/t ↔ d = v·t (Newtonian velocity).\n \n // Apply friction coefficient.\n \n double a2 = 4.0; // Friction amplifier. Used to speed up lateral deceleration, which improves the sense of control response experienced by the user.\n \n ax = a.getX ();\n ay = a.getY ();\n \n if ( this.physics.accelerateUp || this.physics.accelerateDown )\n {\n // If the user is currently accelerating up or down, then use the friction amplifier to speed up deceleration along the horizontal axis.\n \n if ( ax < 0 ) ax += p*a2;\n if ( ax > 0 ) ax -= p*a2;\n if ( ay < 0 ) ay += p;\n if ( ay > 0 ) ay -= p;\n }\n else if ( this.physics.accelerateLeft || this.physics.accelerateRight )\n {\n // If the user is currently accelerating left or right, then use the friction amplifier to speed up deceleration along the vertical axis.\n \n if ( ax < 0 ) ax += p;\n if ( ax > 0 ) ax -= p;\n if ( ay < 0 ) ay += p*a2;\n if ( ay > 0 ) ay -= p*a2;\n }\n else\n {\n // If the user is not accelerating in any direction, then just apply the normal friction coefficient in all direction.\n \n if ( ax < 0 ) { ax += p; if ( ax > 0.0 ) ax = 0.0; }\n if ( ax > 0 ) { ax -= p; if ( ax < 0.0 ) ax = 0.0; }\n if ( ay < 0 ) { ay += p; if ( ay > 0.0 ) ay = 0.0; }\n if ( ay > 0 ) { ay -= p; if ( ay < 0.0 ) ay = 0.0; }\n }\n \n a.setVector ( ax, ay );\n \n // Update physics.\n \n this.physics.acceleration.setVector ( a );\n this.physics.velocity.setVector ( v );\n \n // Update translation.\n \n this.transform.translation.setVector ( this.transform.translation.add ( d ) );\n }", "public Vector2d calculate(Vehicle v)\r\n\t{ \r\n\t\t// Zufallsvektor berechnen\r\n\t\tRandom rand = new Random();\r\n\t\tVector2d vect = new Vector2d(rand.nextInt(),rand.nextInt());\r\n\t\t\r\n\t\t// evtl. negative Werte\r\n\t\tif (rand.nextInt() > 0.5) vect.setX(vect.getX()*(-1));\r\n\t\tif (rand.nextInt() > 0.5) vect.setY(vect.getY()*(-1));\r\n\t\t\r\n\t\t// Vektor nur innerhalb der Variations-Stärke zulassen\r\n\t\tif (vect.length() > m_rate) { vect.normalize(); vect.scale(m_rate); }\t\t\t\r\n\t\t\r\n\t\t// Zufallsvektor zum Seek-Point addieren\r\n\t\tm_seekPoint=m_seekPoint.add(vect);\r\n\t\t\r\n\t\t// Neuen Punkt auf Kreis projezieren\r\n\t\tVector2d temp = new Vector2d(m_seekPoint.getX()-m_pos.getX(), m_seekPoint.getY()-m_pos.getY());\r\n\t\t\r\n\t\ttemp.normalize(); \r\n\t\ttemp.scale(m_r);\r\n\t\tm_seekPoint = m_pos.add(temp);\r\n\t\t\r\n\t\t// Umrechnen auf World-Koordinaten\r\n\t\tPoint2d seekpointworld = new Point2d(v.localToWorld(m_seekPoint));\r\n\t\t\r\n\t\t// Auf seekPoint zusteuern (seek-Behavior)\r\n\t\tSeek seekBehavior = new Seek(new Geometrie(seekpointworld), m_influence);\r\n\t\t \r\n\t\treturn seekBehavior.calculate(v); \t \t\r\n\t}", "public SwerveDrive() {\n //TODO:properly construct the swerve modules, and put then in an array, int already in Constants\n // frontLeft = new SwerveModule();\n // rearLeft = new SwerveModule();\n // rearRight = new SwerveModule();\n // frontRight = new SwerveModule();\n ////This may seem repetitive, but it makes clear which module is which.\n // swerveModules = new SwerveModule[]{\n // frontLeft,\n // rearLeft,\n // rearRight,\n // frontRight\n // };\n \n //TODO:Construct the IMU object, alreeady named imu\n\n }", "@SuppressWarnings(\"unused\")\n\tpublic void execute(){\n\t\tdouble mtrFrontRight;\n\t\tdouble mtrFrontLeft;\n\t\tdouble mtrBackRight;\n\t\tdouble mtrBackLeft;\n\t\t\n\t\tdouble speed = 3.0; //The variable we are assigning\n\t\tdouble yawHeading = 0; //Obtained from Robot class\n\t\t\n\t\tdouble getCurrentSetPoint = 0.0; //This Will be obtained via a variable set in the turn to heading class as it is obtained. (possible issues)\n\t\tdouble actualEncoderSetpoint; //Represents the value the encoder is actually at.\n\t\t\n\t\tdouble zeroHeading; //This is a weird one. it is there because of the odd difference calculations issue of say being 5 off of zero and heading being 355;\n\t\t\n\t\t\n\t\t//Switch structure stuff\n\t\tint forward = 0;\n\t\tint left = 1;\n\t\tint right = 2;\n\t\tint state = forward;\n\t\t\n\t\t\n\t\tif(getCurrentSetPoint == 0) {\n\t\t\tstate = forward;\n\t\t} else if(getCurrentSetPoint == 90) {\n\t\t\tstate = right;\n\t\t} else if(getCurrentSetPoint == 270) {\n\t\t\tstate = left;\n\t\t}\n\t\t\n\t\t//where the weirdness of zero heading comes into play.\n\t\tif(yawHeading > 180){\n\t\t\tzeroHeading = 360 - yawHeading;\n\t\t\tzeroHeading = -(zeroHeading);\n\t\t} else {\n\t\t\tzeroHeading = yawHeading;\n\t\t}\n\t\t\n\t\t//Here comes the fun math.\n\t\t// oh yeah and brackets are fun just saying.\n\t\t//try not to get cancer.\n\t\t\n\t\tswitch (state) {\n\t\t\t\n\t\t\tcase 0 :\n\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\tmtrFrontRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrBackRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\tmtrFrontLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\tmtrBackLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\tcase 1 :\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\t\tmtrBackRight = -(speed - ((zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\t\tmtrBackLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\t\tmtrFrontRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\t\tmtrFrontLeft = speed - ((-zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\tcase 2 : \n\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\tmtrBackRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrBackLeft = speed - ((-zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\tmtrFrontRight = -(speed - ((zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrFrontLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t}\n\t}", "public void thrust() {\n // Offset the angle since we drew the ship vertically\n float angle = heading - PI/2;\n // Polar to cartesian for force vector!\n PVector force = new PVector(cos(angle),sin(angle));\n force.mult(5); // original shiffman code =.5\n applyForce(force); \n // To draw booster\n thrust = true;\n }", "private void generatePrism() {\n\t\tdouble halfAltitude = Math.sin(Math.PI / 3); // The cross-section is an equilateral triangle with sides of length 2 units. The altitude is the height of the triangle with one edge horizontal\n\t\tverts = new Vector[] {new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3)};\n\t\tverts[0].setElements(new double[] {-1, -halfAltitude, -1});\n\t\tverts[1].setElements(new double[] {0, halfAltitude, -1});\n\t\tverts[2].setElements(new double[] {1, -halfAltitude, -1});\n\t\t// Use the same triangle of vertices but offset by 2 units along the z-axis\n\t\tverts[3].setElements(verts[0]);\n\t\tverts[4].setElements(verts[1]);\n\t\tverts[5].setElements(verts[2]);\n\t\tverts[3].setElement(2, 1);\n\t\tverts[4].setElement(2, 1);\n\t\tverts[5].setElement(2, 1);\n\t\t\n\t\tfaces = new int[][] {{0, 1, 2}, {0, 5, 3}, {0, 2, 5}, {0, 3, 4}, {0, 4, 1}, {1, 4, 5}, {1, 5, 2}, {3, 5, 4}};\n\t}", "public void driveAroundRoom(int vertexCount,int lenght)\n\t{\n\t\tint angle = calculateAngle(vertexCount);\n\t\t\n\t\t\n\t\t\t\n\t\t\t\tint turnCount = 0;\n\t\t\t\ttry\n\t\t\t\t{//hi\n\t\t\t\t\tMotor.A.forward();\n\t\t\t\t\tMotor.B.forward();\n\t\t\t\t\tThread.sleep(lenght*1000);\n\t\t\t\t\tMotor.A.stop();\n\t\t\t\t\tMotor.B.stop();\n\t\t\t\t\twhile(turnCount >= 3)\n\t\t\t\t\t{\n\t\t\t\t\tMotor.A.rotate(-angle,true);\n\t\t\t\t\tMotor.B.rotate(angle,true);\n\t\t\t\t\tturnCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(Exception threadException)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(threadException.getMessage());\n\t\t\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}", "private void updateBoundary() {\n //pos = _newPos ;\n heading = myRoute.getCurrentHeading() ;\n //System.out.println(\"heading=\"+heading);\n Point vertex = new Point(0,0) ;\n vertex.x = length/2 ;\n vertex.y = width/2 ;\n boundary[0] = transform(vertex) ;\n \n vertex.x = -length/2 ;\n vertex.y = width/2 ;\n boundary[1] = transform(vertex) ;\n \n vertex.x = -length/2 ;\n vertex.y = -width/2 ;\n boundary[2] = transform(vertex) ;\n \n vertex.x = length/2 ;\n vertex.y = -width/2 ;\n boundary[3] = transform(vertex) ;\n for (int i=0; i<4; i++) {\n xpoints[i] = boundary[i].x ;\n ypoints[i] = boundary[i].y ;\n }\n }", "public void setup() {\n size(1280,720,OPENGL);\n physics = new pma_PhysicsVerlet();\n // add gravity in positive Y direction\n physics.addBehavior(new pma_BehaviorForceGravity(new ga_Vector2(0,0.1f)));\n // set the stroke weight of the line\n strokeWeight(2);\n}", "public double update() {\n\t\t double time=System.currentTimeMillis();\n\t\t boolean update=false;\n\t\t \n\t\t// Keyboard handling\n\t\tif (scene.ready) {\n\t\t\tif (command==KeyEvent.VK_D) \n\t\t\t\tcamera.y_rot=camera.y_rot+0.02;\n\t\t\tif (command==KeyEvent.VK_A)\n\t\t\t\tcamera.y_rot=camera.y_rot-0.02;\n\t\t\tif (command==KeyEvent.VK_Q)\n\t\t\t\tcamera.z_rot=camera.z_rot-0.02;\n\t\t\tif (command==KeyEvent.VK_E)\n\t\t\t\tcamera.z_rot=camera.z_rot+0.02;\n\t\t\tif (command==KeyEvent.VK_R)\n\t\t\t\tcamera.x_rot=camera.x_rot+0.02;\n\t\t\tif (command==KeyEvent.VK_F)\n\t\t\t\tcamera.x_rot=camera.x_rot-0.02;\n\n\t\t\tif (command==KeyEvent.VK_W)\n\t\t\t\tcamera.translateWithRespectToView(0,0,250);\n\t\t\tif (command==KeyEvent.VK_S)\n\t\t\t\tcamera.translateWithRespectToView(0,0,-250);\n\t\t\tif (command==KeyEvent.VK_Z)\n\t\t\t\tcamera.translateWithRespectToView(-250,0,0);\n\t\t\tif (command==KeyEvent.VK_X)\n\t\t\t\tcamera.translateWithRespectToView(250,0,0);\n\t\t\tif (command==KeyEvent.VK_T)\n\t\t\t\tcamera.translateWithRespectToView(0,250,0);\n\t\t\tif (command==KeyEvent.VK_G)\n\t\t\t\tcamera.translateWithRespectToView(0,-250,0);\n\n\t\t\tif (command==KeyEvent.VK_J)\n\t\t\t\tvobject[0].rotate(0,-0.01,0);\n\t\t\tif (command==KeyEvent.VK_L)\n\t\t\t\tvobject[0].rotate(0,0.01,0);\n\t\t\tif (command==KeyEvent.VK_I)\n\t\t\t\tvobject[0].rotate(0.01,0.0,0);\n\t\t\tif (command==KeyEvent.VK_K)\n\t\t\t\tvobject[0].rotate(-0.01,0,0);\n\t\t\tif (command==KeyEvent.VK_U)\n\t\t\t\tvobject[0].rotate(0,0.00,-0.01);\n\t\t\tif (command==KeyEvent.VK_O)\n\t\t\t\tvobject[0].rotate(0.0,0,0.01);\n\n\t\t\tif (command==KeyEvent.VK_1) \n\t\t\t{scene.dot_field= !scene.dot_field;}\n\t\t\tif (command==KeyEvent.VK_2)\n\t\t\t{scene.wireframe= !scene.wireframe;}\n\t\t\tif (command==KeyEvent.VK_3)\n\t\t\t{scene.solid_poly= !scene.solid_poly;}\n\t\t\tif (command==KeyEvent.VK_4)\n\t\t\t{scene.hidden_face= !scene.hidden_face;}\n\t\t\tif (command==KeyEvent.VK_5)\n\t\t\t{scene.simple_shaded= !scene.simple_shaded;}\n\t\t\tif (command==KeyEvent.VK_6)\n\t\t\t{scene.z_sorted= !scene.z_sorted;}\n\t\t\tif (command==KeyEvent.VK_7)\n\t\t\t{scene.gouraud_shaded= !scene.gouraud_shaded;}\n\t\t\tif (command==KeyEvent.VK_8)\n\t\t\t{scene.fullstats= !scene.fullstats;}\n\n\t\t\tif (command==KeyEvent.VK_0 && scene.ready)\n\t\t\t{worldgrid.diamondSquare(1,roughness,1); \n\t\t\t}\n\n\t\t\tif (command==KeyEvent.VK_9) \n\t\t\t{scene.surface= !scene.surface;}\n\n\t\t\tif (command==KeyEvent.VK_P && scene.ready) {\n\t\t\t\t//Planet myplanet=new Planet(60);\n\t\t\t\tmyplanet.Iterate(0.1,1,1);\n\t\t\t\t//myplanet.scale(2000);\n\t\t\t\tvobject[0]=myplanet;\n\t\t\t}\n\n\t\t\tcommand=0;\n\t\t}\n\n\t\t// generic\n\n\t\tif (!scene.surface) {\t\n\t\t\tif (!scene.test) {\n\t\t\t\tvobject[0].rotate(0.000,0.002,0.000);\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvobject[0].rotate(0.008,0.005,0.01);\n\t\t\t}\n\t\t}\n\n\n\t\n\t\tif ((first_time) && (scene.surface)) {foreThoughtThread.start(); first_time=false; }\n\t\tupdateLighting();\n\t\treturn tick_time_seconds;\n\t}", "@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 }", "void controlVehicle(KeyEvent e) {\n\t\tswitch (e.getKeyCode()) {\n\t\tcase KeyEvent.VK_LEFT:\n\t\t\tss.move(-1);\n\t\t\tif(!mute)\t\t\t\t\t\t\t\t\t\t\t\t//play audio when not mute\n\t\t\t\tnew AudioLoader(\"audios/ding.wav\");\t\t\t\t\t//play now audio when spaceship as Vehicle\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_RIGHT:\n\t\t\tss.move(1);\n\t\t\tif(!mute)\t\t\t\t\t\t\t\t\t\t\t\t//play audio when not mute\n\t\t\t\tnew AudioLoader(\"audios/ding.wav\");\t\t\t\t\t//play now audio when spaceship as Vehicle\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_UP:\n\t\t\tss.move(-2);\n\t\t\tif(!mute)\t\t\t\t\t\t\t\t\t\t\t\t//play audio when not mute\n\t\t\t\tnew AudioLoader(\"audios/ding.wav\");\t\t\t\t\t//play now audio when spaceship as Vehicle\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_DOWN:\n\t\t\tss.move(2);\n\t\t\tif(!mute)\t\t\t\t\t\t\t\t\t\t\t\t//play audio when not mute\n\t\t\t\tnew AudioLoader(\"audios/ding.wav\");\t\t\t\t\t//play now audio when spaceship as Vehicle\n\t\t\tbreak;\t\t\n\t\tcase KeyEvent.VK_END :\n\t\t\tSystem.exit(0);\t\t\t\t\t\t\t\t\t\t//press key End to exit \n\t\t\tbreak;\n\t\tcase KeyEvent.VK_M:\n\t\t\tmute = !mute;\n\t\t\tbreak;\n\t\t}\n\t}", "public static void waltz() {\n //test code written by bokun: self rotation\n leftMotor.setSpeed(ROTATE_SPEED);\n rightMotor.setSpeed(ROTATE_SPEED);\n leftMotor.forward();\n rightMotor.backward();\n }", "VectorArray getNeutHar();", "void updateMotion(boolean altitudeLock)\n {\n \n ascendDescendLift:\n {\n // as pitch and roll increases, lift decreases by fall-off function.\n\t // thrust.y ranges from 0 to 1. at 1, almost perfectly balances gravity\n\t \n //thrust.y = MathHelper.cos(pitchRad) * MathHelper.cos(rollRad);\n thrust.y = MathHelper.cos(pitchRad) * MathHelper.cos(rollRad) * MathHelper.cos(rollRad);\n }\n\n forwardBack:\n {\n // as pitch increases, forward-back motion increases\n // but sin function was too touchy so using 1-cos\n float accel = 1f - MathHelper.cos(pitchRad);\n if (pitchRad > 0f) accel *= -1f;\n \n thrust.x = -fwd.x * accel;\n thrust.z = -fwd.z * accel;\n \n // also adjust y in addition to ascend/descend to simulate diving\n thrust.y += -fwd.y * accel * .3f;\n }\n\n strafeLeftRight:\n {\n // float strafe = -MathHelper.sin(roll);\n float strafe = 1f - MathHelper.cos(rollRad);\n if (rollRad > 0f) strafe *= -1f;\n\n // use perp of yaw and scale by roll\n thrust.x -= fwd.z * strafe;\n thrust.z += fwd.x * strafe;\n }\n\n // start with current velocity\n velocity.set((float)motionX, (float)motionY, (float)motionZ);\n\n // friction, very little!\n velocity.scale(FRICTION);\n\n // scale thrust by current throttle and delta time\n //thrust.normalize().scale(MAX_ACCEL * (1f + throttle) * deltaTime / .05f);\n thrust.normalize().scale(MAX_ACCEL * (1f + throttle) * deltaTime / .05f);\n\n // apply the thrust\n Vector3.add(velocity, thrust, velocity);\n\n // gravity is always straight down\n //if (!inWater && !onGround) velocity.y -= GRAVITY * deltaTime / .05f;\n velocity.y -= GRAVITY * deltaTime / .05f;\n\n // limit max velocity\n if (velocity.lengthSquared() > MAX_VELOCITY * MAX_VELOCITY)\n {\n velocity.scale(MAX_VELOCITY / velocity.length());\n }\n\n // apply velocity changes\n motionX = (double) velocity.x;\n motionY = (double) velocity.y;\n motionZ = (double) velocity.z;\n \n if (altitudeLock && riddenByEntity != null)\n {\n motionY *= .9;\n if (motionY < .00001) motionY = .0;\n }\n \n moveEntity(motionX, motionY, motionZ);\n }", "public void opretMedlem(KassererController kassererController, Hold hold) {\n Scanner scan = new Scanner(System.in);\n Motionist motionist;\n KonkurrenceSvømmer konkurrenceSvømmer;\n\n //Alle medlemmer\n System.out.println(\"Opret det nye medlem herunder: \");\n System.out.print(\"Skal det nye medlem registreres som konkurrencesvømmer, 'ja' eller 'nej': \");\n String svømmeType = scan.nextLine();\n\n System.out.print(\"Fulde navn: \");\n String navn = scan.nextLine();\n System.out.print(\"Alder: \");\n int alder = scan.nextInt();\n System.out.print(\"Har medlemmet en aktiv aktivitetsform? (true eller false): \");\n boolean aktivitetsform = scan.nextBoolean();\n System.out.print(\"Har medlemmet betalt? (true eller false): \");\n boolean betalt = scan.nextBoolean();\n\n //Motionist\n if (svømmeType.equals(\"nej\")) {\n motionist = new Motionist(navn, alder, aktivitetsform, betalt);\n if (motionist.getAlder() < 18) {\n System.out.println(\"Medlemmet er motionist og i kategorien juniormedlem.\");\n } else if (motionist.getAlder() >= 18) {\n System.out.println(\"Medlemmet er motionist og i kategorien seniormedlem.\");\n }\n System.out.println();\n System.out.print(motionist.toString());\n medlemmer.add(motionist);\n kassererController.kontingentBetaling(motionist);\n filHåndtering.filSkrivning(motionist);\n\n //Konkurrencesvømmer\n } else if (svømmeType.equals(\"ja\")) {\n konkurrenceSvømmer = new KonkurrenceSvømmer(navn, alder, aktivitetsform, betalt);\n if (konkurrenceSvømmer.getAlder() < 18) {\n hold.tilføjJuniorKonkurrencesvømmere(konkurrenceSvømmer);\n System.out.println(\"Medlemmet er konkurrencesvømmer i kategorien juniormedlem, og dermed tildelt ungdomsholdet.\");\n } else if (konkurrenceSvømmer.getAlder() >= 18) {\n hold.tilføjSeniorKonkurrencesvømmere(konkurrenceSvømmer);\n System.out.println(\"Medlemmet er konkurrencesvømmer i kategorien seniormedlem, og dermed tildelt seniorholdet.\");\n }\n konkurrenceSvømmer.svømmeDisciplin(konkurrenceSvømmer);\n System.out.println();\n System.out.print(konkurrenceSvømmer.toString());\n medlemmer.add(konkurrenceSvømmer);\n kassererController.kontingentBetaling(konkurrenceSvømmer);\n filHåndtering.filSkrivning(konkurrenceSvømmer);\n }\n }", "public void phaseOutMovement() {\n inertia_y();\n inertia_x();\n }", "private static void norm3JS() {\n\n // Drive\n axLeftX.setAxis(leftJoystick, 0); //Mecanum (Arcade) Left/Right turn\n axLeftY.setAxis(leftJoystick, 1); //Mecanum (Arcade) Fwd/Bkwd\n axRightX.setAxis(rightJoystick, 0); //Mecanum Rotate orientation\n axRightY.setAxis(rightJoystick, 1); //unassigned\n\n btnGyroReset.setButton(rightJoystick, 6); // reset gyro to 0\n\n btnHoldLeft.setButton(rightJoystick, 4); //??\n btnHoldCenter.setButton(rightJoystick,3); //??\n btnHoldRight.setButton(rightJoystick, 5); //??\n \n // Gear\n btnPickupGear.setButton(coJoystick, 2); // Pickup gear off floor\n btnPlaceGear.setButton(coJoystick, 5); // Place gear on ship peg\n \n // Shooter\n btnShooter.setButton(coJoystick, 1); // Start shooter then feeder(s)\n btnAgitator.setButton(coJoystick, 3); // Agitate the ball bin\n \n // Climb\n btnClimber.setButton(coJoystick, 8); // Climber rotating\n \n }", "protected void execute() {\n \n \t\n \t \n \t\n \n System.out.println((Timer.getFPGATimestamp()- starttime ) + \",\" + (RobotMap.motorLeftTwo.getEncPosition()) + \",\"\n + (RobotMap.motorLeftTwo.getEncVelocity()*600)/-4096 + \",\" + RobotMap.motorRightTwo.getEncPosition() + \",\" + (RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n /*if(endpoint > 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft+ angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight - angleorientation.getResult());\n }\n if(endpoint <= 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft- angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight + angleorientation.getResult());\n }*/\n System.out.println(this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition() + \"l\");\n System.out.println(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition() + \"r\");\n \n \n \t if(RobotMap.motorLeftTwo.getEncVelocity()!= velocityLeft)\n velocityLeft = RobotMap.motorLeftTwo.getEncVelocity(); \n velocityRight = RobotMap.motorRightTwo.getEncVelocity();\n SmartDashboard.putNumber(\"LeftWheelError\", (this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition()));\n SmartDashboard.putNumber(\"RightWheelError\",(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition()));\n SmartDashboard.putNumber(\"LeftWheelVelocity\", (RobotMap.motorLeftTwo.getEncVelocity())*600/4096);\n SmartDashboard.putNumber(\"RightWheelVelocity\",(RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n \n count++;\n \tangleorientation.updatePID(RobotMap.navx.getAngle());\n }", "public void render() {\n float theta = velocity.heading2D() + radians(90);\n\n\n fill(255, 0, 0);\n stroke(0, 0, 0);\n strokeWeight(0.5f);\n pushMatrix();\n translate(position.x, position.y);\n rotate(theta);\n beginShape(QUAD);\n fill(130);\n vertex(r, -r*2);\n\n vertex(-r, -r*2);\n vertex(-r, r*2);\n vertex(r, r*2);\n\n endShape();\n strokeWeight(0.5f);\n beginShape(TRIANGLES);\n vertex(r,-r*2);\n vertex(r*2.5f,r);\n vertex(r,r);\n endShape();\n strokeWeight(0.5f);\n beginShape(TRIANGLES);\n vertex(-r, -r*2);\n vertex(r, -r*2);\n vertex(0, -r*4);\n endShape();\n beginShape(TRIANGLES);\n vertex(-r, r*5);\n vertex(r, r*5);\n vertex(0, r*2);\n endShape();\n strokeWeight(1.7f*r);\n stroke(255);\n fill(255);\n point(0, -r*2.5f);\n stroke(0);\n fill(0);\n strokeWeight(0.75f*r);\n point(0, -r*2.5f);\n popMatrix();\n }", "public Drivetrain(){\r\n LeftSlave.follow(LeftMaster);\r\n RightSlave.follow(RightMaster);\r\n\r\n RightMaster.setInverted(true);\r\n LeftMaster.setInverted(true);\r\n\r\n gyro.reset();\r\n}", "private static void norm2JS() {\n\n // Drive\n axLeftX.setAxis(leftJoystick, 0); //Mecanum (Arcade) Left/Right turn\n axLeftY.setAxis(leftJoystick, 1); //Mecanum (Arcade) Fwd/Bkwd\n axRightX.setAxis(rightJoystick, 0); //Mecanum Rotate orientation\n axRightY.setAxis(rightJoystick, 1); //unassigned\n\n btnGyroReset.setButton(rightJoystick, 6); // reset gyro to 0\n\n btnHoldLeft.setButton(rightJoystick, 4); //??\n btnHoldCenter.setButton(rightJoystick,3); //??\n btnHoldRight.setButton(rightJoystick, 5); //??\n \n // Gear\n btnPickupGear.setButton(leftJoystick, 2); // Pickup gear off floor\n btnPlaceGear.setButton( leftJoystick, 5); // Place gear on ship peg\n \n // Shooter\n btnShooter.setButton( leftJoystick, 1); // Start shooter then feeder(s)\n btnAgitator.setButton(leftJoystick, 3); // Agitate the ball bin\n \n // Climb\n btnClimber.setButton(leftJoystick, 8); // Climber rotating\n\n }", "public void visionTurnPID(){\n double error = visionTargetPosition + Robot.vision.getYaw();\n double dt = Timer.getFPGATimestamp() - visionLastTimestamp;\n visionKF = Math.copySign(visionKF, error);\n\n if(Math.abs(error)<visionIZone){\n visionErrorSum = visionErrorSum + error * dt;\n }else{\n visionErrorSum = 0;\n }\n\n double errorRate = (error - visionLastError)/dt;\n\n Double outputTurn = visionKF + (visionKP * error) + (visionKI * visionErrorSum) + (visionKD * errorRate);\n teleopDrive(0, outputTurn);\n\n SmartDashboard.putNumber(\"Vision Turn Value\", outputTurn);\n\n visionLastTimestamp = Timer.getFPGATimestamp();\n visionLastError = error;\n \n \n }", "public void contractTransverseMuscle(int i, double force);", "void park(Vehicle v) {\n\t\t\tcurrentVehicle = v;\n\t\t}", "@Override\n public void execute() {\n swerve.drive(0, 0, \n turnPID.calculate(swerve.getHeadingDouble(), angleSetpoint) * Constants.Swerve.kMaxAngularSpeed\n , false);\n }", "public void washAndPark(Vehicle v) { \t\n \twash.washVehicle(v);\n \tparkVehicle(v);\n }", "double getVz() { return vel[2]; }", "private void calculateNextStepVelocityCell(int i, int j, int k, double currentTime) {\n\n // Retrieve the velocity components and depth of the cell\n double ui = u[i][j][k];\n double vi = v[i][j][k];\n double wi = w[i][j][k];\n double currentDepth = depth[k];\n\n // Calculate the grid\n // spacing in the depth dimension\n double deltaZPlus = (depth[k + 1] - currentDepth) / 2.0;\n double deltaZMinus = (currentDepth - depth[k - 1]) / 2.0;\n\n // Compute the gradients of velocity in each direction using central difference\n // scheme\n double du_dx = (u[i + 1][j][k] - u[i - 1][j][k]) / 2.0;\n double dv_dy = (v[i][j + 1][k] - v[i][j - 1][k]) / 2.0;\n double dw_dz = (w[i][j][k + 1] - w[i][j][k - 1]) / (deltaZPlus + deltaZMinus);\n\n // Compute the Laplacian of velocity in each direction using central difference\n // scheme\n double d2u_dx2 = (u[i + 1][j][k] - 2 * ui + u[i - 1][j][k]) / Math.pow((deltaX), 2);\n double d2v_dy2 = (v[i][j + 1][k] - 2 * vi + v[i][j - 1][k]) / Math.pow((deltaY), 2);\n double d2w_dz2 = (w[i][j][k + 1] - 2 * wi + w[i][j][k - 1])\n / (Math.pow(deltaZPlus, 2) + Math.pow(deltaZMinus, 2));\n\n // Retrieve the tidal forcing values at the current time step\n double tidalForcingX = this.tidalForcingX.get(i, j, k, currentTime);\n double tidalForcingY = this.tidalForcingY.get(i, j, k, currentTime);\n\n // Compute the next-step velocities using the Navier-Stokes equations with tidal\n // forcing\n double next_u = ui\n - (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * du_dx * d2u_dx2)\n + tidalForcingX;\n double next_v = vi\n - (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * dv_dy * d2v_dy2)\n + tidalForcingY;\n double next_w = wi\n - (timeStep * (ui * du_dx + vi * dv_dy + wi * dw_dz) - (timeStep / fluidDensity) * dw_dz * d2w_dz2);\n\n // Update the velocity components of the cell\n uNext[i][j][k] = next_u;\n vNext[i][j][k] = next_v;\n wNext[i][j][k] = next_w;\n }", "public void basicMotion() {\r\n\t\tPVector v = behavior.behavior(obj.getMotion());\r\n\t\tobj.getMotion().setVelocity(v);\r\n\t\t\r\n\t\tobj.getMotion().kinematicUpdate();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfloat x = obj.getMotion().getPosition().x;\r\n\t\tfloat y = obj.getMotion().getPosition().y;\r\n\t\tif(y <= turnCornerMin ) {\r\n\t\t\tbehavior.setDest(turnCornerMax,turnCornerMin);\r\n\t\t\t\t\r\n\t\t}\r\n\t\tif(x >= turnCornerMax) {\r\n\t\t\tbehavior.setDest(turnCornerMax, turnCornerMax);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif(y >= turnCornerMax) {\r\n\t\t\tbehavior.setDest(turnCornerMin, turnCornerMax);\r\n\t\t}\r\n\t\t\r\n\t\tif(x < turnCornerMin) {\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tobj.updateObjKinematics(x, y, obj.getMotion().getOrientation());\r\n\t}", "public static void init() {\n driveLeft = new VictorSP(1);\r\n LiveWindow.addActuator(\"Drive\", \"Left\", (VictorSP) driveLeft);\r\n \r\n driveRight = new VictorSP(0);\r\n LiveWindow.addActuator(\"Drive\", \"Right\", (VictorSP) driveRight);\r\n \r\n driveMotors = new RobotDrive(driveLeft, driveRight);\r\n \r\n driveMotors.setSafetyEnabled(false);\r\n driveMotors.setExpiration(0.1);\r\n driveMotors.setSensitivity(0.5);\r\n driveMotors.setMaxOutput(1.0);\r\n\r\n driveEncoderLeft = new Encoder(0, 1, true, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderLeft\", driveEncoderLeft);\r\n driveEncoderLeft.setDistancePerPulse(0.053855829);\r\n driveEncoderLeft.setPIDSourceType(PIDSourceType.kRate);\r\n driveEncoderRight = new Encoder(2, 3, false, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderRight\", driveEncoderRight);\r\n driveEncoderRight.setDistancePerPulse(0.053855829);\r\n driveEncoderRight.setPIDSourceType(PIDSourceType.kRate);\r\n driveFrontSonar = new Ultrasonic(4, 5);\r\n LiveWindow.addSensor(\"Drive\", \"FrontSonar\", driveFrontSonar);\r\n \r\n shooterMotor = new VictorSP(3);\r\n LiveWindow.addActuator(\"Shooter\", \"Motor\", (VictorSP) shooterMotor);\r\n \r\n climberMotor = new Spark(2);\r\n LiveWindow.addActuator(\"Climber\", \"Motor\", (Spark) climberMotor);\r\n \r\n gearGrabReleaseSolonoid = new DoubleSolenoid(0, 0, 1);\r\n LiveWindow.addActuator(\"Gear\", \"GrabReleaseSolonoid\", gearGrabReleaseSolonoid);\r\n \r\n powerPanel = new PowerDistributionPanel(0);\r\n LiveWindow.addSensor(\"Power\", \"Panel\", powerPanel);\r\n \r\n cameraMountpan = new Servo(4);\r\n LiveWindow.addActuator(\"CameraMount\", \"pan\", cameraMountpan);\r\n \r\n cameraMounttilt = new Servo(5);\r\n LiveWindow.addActuator(\"CameraMount\", \"tilt\", cameraMounttilt);\r\n \r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n\t\tdriveSonarFront = new SonarMB1010(0);\r\n\t\tLiveWindow.addSensor(\"Drive\", \"SonarFront\", driveSonarFront);\r\n\r\n\t\t//driveGyro = new GyroADXRS453();\r\n\t\tdriveGyro = new ADXRS450_Gyro();\r\n\t\tLiveWindow.addSensor(\"Drive\", \"Gyro\", driveGyro);\r\n\t\tdriveGyro.calibrate();\r\n\t}", "private void calculateTorque(){\n\t\ttau[0] = L * k * (w1*w1 - w3*w3);\r\n\t\t//Pitch torque\r\n\t\ttau[1] = L * k * (w2*w2 - w4*w4);\r\n\t\t//The total torque about the z axis is given by the sum of all the torques from each propeller.\r\n\t\ttau[2] = b * (w1*w1 - w2*w2 + w3*w3 - w4*w4);\r\n\t}", "public abstract float getMomentOfInertia();", "public void tankDrive() {\n\t\tif (fastBool) {\n\t\t\tmotorRB.set(joystickRYAxis);\n\t\t\tmotorRF.set(joystickRYAxis);\n\t\t\tmotorLB.set(-joystickLYAxis);\n\t\t\tmotorLF.set(-joystickLYAxis);\n\n\t\t} else {\n\t\t\tmotorRB.set(joystickRYAxis/2);\n\t\t\tmotorRF.set(joystickRYAxis/2);\n\t\t\tmotorLB.set(-joystickLYAxis/2);\n\t\t\tmotorLF.set(-joystickLYAxis/2);\n\t\t\t//System.out.println(strongBad.motorMultiplier);\n\t\t\t//SmartDashboard.putNumber(\"MM2\", strongBad.motorMultiplier);\n\n\t\t}\n\t}", "public Drivetrain() {\n leftFrontMotor.getPIDController().setP(leftkP);\n leftFrontMotor.getPIDController().setI(leftkI);\n leftFrontMotor.getPIDController().setD(leftkD);\n leftFrontMotor.getPIDController().setFF(leftkFF);\n\n leftBackMotor.getPIDController().setP(leftkP);\n leftBackMotor.getPIDController().setI(leftkI);\n leftBackMotor.getPIDController().setD(leftkD);\n leftBackMotor.getPIDController().setFF(leftkFF);\n\n rightFrontMotor.getPIDController().setP(rightkP);\n rightFrontMotor.getPIDController().setI(rightkI);\n rightFrontMotor.getPIDController().setD(rightkD);\n rightFrontMotor.getPIDController().setFF(rightkFF);\n\n rightBackMotor.getPIDController().setP(rightkP);\n rightBackMotor.getPIDController().setI(rightkI);\n rightBackMotor.getPIDController().setD(rightkD);\n rightBackMotor.getPIDController().setFF(rightkFF);\n }", "public void mecanumDrive(double forward, double turn, double strafe, double multiplier) {\n double vd = Math.hypot(forward, strafe);\n double theta = Math.atan2(forward, strafe) - (Math.PI / 4);\n turnPower = turn;\n\n// if(forward == 0 && strafe == 0 && turn == 0) {\n// Time.reset();\n// }\n//\n// double accLim = (Time.time()/1.07)*((0.62*Math.pow(Time.time(), 2))+0.45);\n//\n// if(forward < 0 || turn < 0 || strafe < 0) {\n//\n// }\n//\n// if(turn == 0) {\n// targetAngle = getImuAngle();\n// turnPower = pid.run(0.001, 0, 0, 10, targetAngle);\n// } else {\n// targetAngle = getImuAngle();\n// }\n\n double[] v = {\n vd * Math.sin(theta) - turnPower,\n vd * Math.cos(theta) + turnPower,\n vd * Math.cos(theta) - turnPower,\n vd * Math.sin(theta) + turnPower\n };\n\n double[] motorOut = {\n multiplier * (v[0] / 1.07) * ((0.62 * Math.pow(v[0], 2)) + 0.45),\n multiplier * (v[1] / 1.07) * ((0.62 * Math.pow(v[1], 2)) + 0.45),\n multiplier * (v[2] / 1.07) * ((0.62 * Math.pow(v[2], 2)) + 0.45),\n multiplier * (v[3] / 1.07) * ((0.62 * Math.pow(v[3], 2)) + 0.45)\n };\n\n fr.setPower(motorOut[0]);\n fl.setPower(motorOut[1]);\n br.setPower(motorOut[2]);\n bl.setPower(motorOut[3]);\n }", "public void solver(){\n\n tohSolver(noDisks,1,3,2);\n\n }", "public void set_knots_bspline() {\n int segments = nr_of_segments;\n int nr_of_points = points_per_segment;\n int i;\n surface_type = 2;\n\n u[0] = 0;\n u[1] = 0;\n u[2] = 0;\n u[3] = 0;\n v[0] = 0;\n v[1] = 0;\n v[2] = 0;\n v[3] = 0;\n\n for (i = 4; i < segments - 4; i++) {\n u[i] = i - 3;\n }\n\n for (i = 4; i < nr_of_points - 4; i++) {\n v[i] = i - 3;\n }\n\n u[segments - 4] = segments - 7;\n u[segments - 3] = segments - 7;\n u[segments - 2] = segments - 7;\n u[segments - 1] = segments - 7;\n\n v[nr_of_points - 4] = nr_of_points - 7;\n v[nr_of_points - 3] = nr_of_points - 7;\n v[nr_of_points - 2] = nr_of_points - 7;\n v[nr_of_points - 1] = nr_of_points - 7;\n }", "public void keyPressed(KeyEvent evt) {\n Vector3f translate = new Vector3f();\n Vector3f transball = new Vector3f();\n \n plane_trans.get( translate ); \n ball_trans.get( transball ); \n \n if (evt.getKeyChar()=='a') {\n Transform3D rotate = new Transform3D();\n rotate.rotY(Math.PI/36.0d);\n plane_trans.mul(rotate);\n \n //transball.x += 0.4f;\n \n \n \n }\n if (evt.getKeyChar()=='d') {\n Transform3D rotate = new Transform3D();\n rotate.rotY(-Math.PI/36.0d);\n plane_trans.mul(rotate);\n //transball.x -= 0.3f;\n }\n \n /*if (evt.getKeyChar()=='s') {\n Transform3D rotate = new Transform3D();\n rotate.rotX(-Math.PI/36.0d);\n plane_trans.mul(rotate);\n transball.y += 0.5f;\n }*/\n \n /*if (evt.getKeyChar()=='w') {\n Transform3D rotate = new Transform3D();\n rotate.rotX(Math.PI/36.0d);\n plane_trans.mul(rotate);\n transball.y -= 0.4f;\n \n }*/\n \n if (evt.getKeyChar()=='i') {\n //transball.x = 0.0f;\n //transball.y = -3.00f;\n //transball.z = 0.3f;\n plane_trans.set(new Vector3f(0.0f, 1.5f, 9985.0f));\n \n Transform3D rotate = new Transform3D();\n rotate.rotX(-Math.PI/3.0d);\n plane_trans.mul(rotate);\n }\n \n if(evt.getKeyChar()=='l'){\n stime = 2000;\n movement();\n \n \n }\n \n // (-5,5) (-5,-4) (5,-4) (5,5)\n // x varies from -5 to 5\n // y varies from 5 to -4\n \n /*if(transball.x< -5 || transball.x>5){\n transball.x = 0.0f;\n transball.y = -3.00f;\n }\n if(transball.y < -4 || transball.y>5){\n transball.x = 0.0f;\n transball.y = -3.00f;\n }*/\n \n \n //ball_trans.setTranslation( transball );\n //ballTG.setTransform(ball_trans);\n \n plane_trans.setTranslation( translate );\n planeTG.setTransform(plane_trans);\n \n // make a rectangle and usse its four coordinates to check where the ball is in the area or outside\n // resetball();\n \n \n \n }", "@Override\n public void teleopPeriodic() {\n\n double l = left.calculate((int)rightEnc.get());\n double r = right.calculate((int)rightEnc.get());\n\n double gyro_heading = gyro.getYaw(); // Assuming the gyro is giving a value in degrees\n double desired_heading = Pathfinder.r2d(left.getHeading()); // Should also be in degrees\n\n double angleDifference = Pathfinder.boundHalfDegrees(desired_heading - gyro_heading);\n double turn = 0.8 * (-1.0/80.0) * angleDifference;\n\n //left1.set(l + turn);\n //right1.set(r - turn);\n left1.set(0);\n right1.set(0);\n System.out.println(\"Get: \" + rightEnc.get() + \" Raw: \" + rightEnc.getRaw());\n\n }", "public void strafeLeftEnc()\r\n\t{\r\n//\t\tdrive.setPos(0, 0, -Config.Auto.encStrafeDistance, -Config.Auto.encStrafeDistance);\r\n//\t\tif(Math.abs(drive.getFrontEncDist() - Config.Auto.encStrafeDistance) < Config.Auto.encTolerance && Math.abs(drive.getBackEncDist() - Config.Auto.encStrafeDistance) < Config.Auto.encTolerance)\r\n//\t\t{\r\n//\t\t\tdrive.setPos(-Config.Auto.encDistanceBetweenTotes, -Config.Auto.encDistanceBetweenTotes, -Config.Auto.encStrafeDistance, -Config.Auto.encStrafeDistance);\r\n//\t\t\t\r\n//\t\t\tif(Math.abs(drive.getLeftEncDist() - Config.Auto.encDistanceBetweenTotes) < Config.Auto.encTolerance && Math.abs(drive.getRightEncDist() - Config.Auto.encDistanceBetweenTotes) < Config.Auto.encTolerance)\r\n//\t\t\t{\r\n//\t\t\t\tdrive.setPos(-Config.Auto.encDistanceBetweenTotes, -Config.Auto.encDistanceBetweenTotes, 0, 0);\r\n//\t\t\t\t\r\n//\t\t\t\tif((Math.abs(drive.getFrontEncDist()) < Config.Auto.encTolerance && Math.abs(drive.getBackEncDist()) < Config.Auto.encTolerance))\r\n//\t\t\t\t\tendRoutine();\t\t\t\t\r\n//\t\t\t}\r\n//\t\t}\r\n\t}", "void atras(){\n\t\tMotorA.stop();\n\t\tMotorB.setSpeed(700);\n\t\tMotorC.setSpeed(700);\n\t\t\n\t\tMotorB.backward();\n\t\tMotorC.backward();\n\t}", "public boolean parkVehicle(Vehicle ve){\r\n if (!fitVehicle(ve)){\r\n // return statement\r\n return false;\r\n }\r\n veh = ve;\r\n veh.parkSpots(this);\r\n // return statement\r\n return true;\r\n }", "public void force(Vector vector){\n double acceleration = vector.getMagnitude()/mass;\n //xspeed += (Math.abs(Main.game.getWidth()-x)/(Main.game.getWidth()*0.2))*acceleration*Math.cos(vector.getDirection());\n //yspeed += (Math.abs(Main.game.getHeight()-y)/(Main.game.getHeight()*0.2))*acceleration*Math.sin(vector.getDirection());\n xspeed += acceleration*Math.cos(vector.getDirection());\n if(acceleration>0)\n System.out.println(\"direction is \" + (180.0/3.14*vector.getDirection()) + \" and mag is \" + vector.getMagnitude());\n yspeed += acceleration*Math.sin(vector.getDirection());\n }", "@Override\npublic void teleopPeriodic() {\nm_robotDrive.arcadeDrive(m_stick.getRawAxis(5)* (-0.5), m_stick.getRawAxis(4)*0.5);\n}", "public void setKinematic(boolean kinematic) {\n this.kinematic = kinematic;\n if (kinematic) {\n rBody.setCollisionFlags(rBody.getCollisionFlags() | CollisionFlags.KINEMATIC_OBJECT);\n rBody.setActivationState(com.bulletphysics.collision.dispatch.CollisionObject.DISABLE_DEACTIVATION);\n } else {\n rBody.setCollisionFlags(rBody.getCollisionFlags() & ~CollisionFlags.KINEMATIC_OBJECT);\n rBody.setActivationState(com.bulletphysics.collision.dispatch.CollisionObject.ACTIVE_TAG);\n }\n }", "public void contractVentralMuscle(int i, double force);", "@Override\n public void loop() {\n\n double drive = gamepad1.left_stick_y;\n double strafe = gamepad1.left_stick_x;\n double rotate = -gamepad1.right_stick_x;\n\n findRobotPosition(); // Call Vuforia routines, get robot position\n\n // Intake Operator Actions\n if (gamepad1.a || gamepad1.b || gamepad1.x){ // Operator wants to control the intake\n if (gamepad1.a){ // A turns the intake on for bringing in rings\n intakeMotor.setPower(1);\n }\n else if (gamepad1.b) { // B reverses the intake\n intakeMotor.setPower(-1);\n\n } else if (gamepad1.x){ // X stops the intake\n intakeMotor.setPower(0);\n }\n }\n\n // Ring Shooter Operator Actions\n /*if (gamepad1.dpad_up || gamepad1.dpad_down){\n if (gamepad1.dpad_up) {\n if (ringVel <= 170000) {\n ringVel = ringVel + 10000;\n }\n } else if (gamepad1.dpad_down){\n if (ringVel >= 10000){\n ringVel = ringVel - 10000;\n } else{\n ringVel = 0;\n }\n }\n }\n */\n\n if (gamepad1.right_bumper){\n fireServo.setPosition(FIRE_SERVO);\n } else{\n fireServo.setPosition(STANDBY_SERVO);\n }\n if (gamepad1.left_trigger > 0.5){\n ringShooterMotor.setVelocity(ringVel);\n }else {\n ringShooterMotor.setPower(0);\n }\n\n // Wobble Goal acions here\n if (gamepad1.dpad_left || gamepad1.dpad_right || gamepad1.left_bumper){\n if(gamepad1.dpad_left){\n wobbleMotor.setTargetPosition(WOBBLE_GRAB);\n wobbleMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n wobbleMotor.setPower(.4);\n } else if (gamepad1.dpad_right){\n wobbleMotor.setTargetPosition(WOBBLE_CARRY);\n wobbleMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n wobbleMotor.setPower(.4);\n } else if (gamepad1.left_bumper) {\n wobbleMotor.setTargetPosition(WOBBLE_OVER_WALL);\n wobbleMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n wobbleMotor.setPower(.4);\n }\n }\n // Insert operator driving actions here\n if ((targetVisible) && (gamepad1.y)) {\n // Allow the operator to position the robot to shoot a ring if a target is visible\n alignRobotToShoot();\n }\n else {\n moveBot(drive, rotate, strafe, power); //Basic Robot-centric Frame Driving\n }\n\n // Telemetry Section\n //telemetry.addData(\"Ring Velocity\", ringVel);\n //telemetry.addData(\"Actual Velocity\", ringShooterMotor.getVelocity());\n telemetry.addData(\"Ring Motor Encoder\", ringShooterMotor.getCurrentPosition());\n telemetry.addData(\"Wobble Goal Encoder\", wobbleMotor.getCurrentPosition());\n telemetry.update();\n }", "private void UpdateTransform()\n\t{\t\n\t\tTransform transform = parent.transform;\n\t\t\n\t\tVector2 friction = Vector2.Scale(-frictionCoefficient,velocity);\n\t\tfloat angularFriction = -frictionCoefficient*angularVelocity;\n\t\t\n\t\t//Newton integration P = P + dP + acceleration * dt^2\n\t\ttransform.position.x += velocity.x + (acceleration.x *deltaTime*deltaTime) + friction.x;\n\t\ttransform.position.y += velocity.y + (acceleration.y *deltaTime*deltaTime) + friction.y;\n\t\ttransform.rotation += angularVelocity + angularAcceleration*deltaTime*deltaTime + angularFriction ;\n\t\t\n\t}", "@Override\n public void loop() {\n\n //double armRot = robot.Pivot.getPosition();\n\n double deadzone = 0.2;\n\n double trnSpdMod = 0.5;\n\n float xValueRight = gamepad1.right_stick_x;\n float yValueLeft = -gamepad1.left_stick_y;\n\n xValueRight = Range.clip(xValueRight, -1, 1);\n yValueLeft = Range.clip(yValueLeft, -1, 1);\n\n // Pressing \"A\" opens and closes the claw\n if (gamepad1.a) {\n\n if (robot.Claw.getPosition() < 0.7)\n while(gamepad1.a){\n robot.Claw.setPosition(1);}\n else if (robot.Claw.getPosition() > 0.7)\n while(gamepad1.a){\n robot.Claw.setPosition(0.4);}\n else\n while(gamepad1.a)\n robot.Claw.setPosition(1);\n }\n\n // Pressing \"B\" changes the wrist position\n if (gamepad1.b) {\n\n if (robot.Wrist.getPosition() == 1)\n while(gamepad1.b)\n robot.Wrist.setPosition(0.5);\n else if (robot.Wrist.getPosition() == 0.5)\n while(gamepad1.b)\n robot.Wrist.setPosition(1);\n else\n while(gamepad1.b)\n robot.Wrist.setPosition(1);\n }\n\n // Turn left/right, overrides forward/back\n if (Math.abs(xValueRight) > deadzone) {\n\n robot.FL.setPower(xValueRight * trnSpdMod);\n robot.FR.setPower(-xValueRight * trnSpdMod);\n robot.BL.setPower(xValueRight * trnSpdMod);\n robot.BR.setPower(-xValueRight * trnSpdMod);\n\n\n } else {//Forward/Back On Solely Left Stick\n if (Math.abs(yValueLeft) > deadzone) {\n robot.FL.setPower(yValueLeft);\n robot.FR.setPower(yValueLeft);\n robot.BL.setPower(yValueLeft);\n robot.BR.setPower(yValueLeft);\n }\n robot.FL.setPower(0);\n robot.FR.setPower(0);\n robot.BL.setPower(0);\n robot.BR.setPower(0);\n }\n\n\n telemetry.addData(\"Drive Encoder Ticks\", robot.FL.getCurrentPosition());\n telemetry.addData(\"Winch Encoder Ticks\", robot.Winch.getCurrentPosition());\n telemetry.addData(\"ColorArm Position\", robot.ColorArm.getPosition());\n telemetry.addData(\"Wrist Position\", robot.Wrist.getPosition());\n telemetry.addData(\"Claw Position\", robot.Claw.getPosition());\n telemetry.addData(\"Grip Position\", robot.Grip.getPosition());\n telemetry.addData(\"Color Sensor Data Red\", robot.Color.red());\n telemetry.addData(\"Color Sensor Data Blue\", robot.Color.blue());\n\n /*\n\n // This is used for an Omniwheel base\n\n // Group a is Front Left and Rear Right, Group b is Front Right and Rear Left\n float a;\n float b;\n float turnPower;\n if(!gamepad1.x) {\n if (Math.abs(xValueRight) <= deadzone && Math.abs(yValueRight) <= deadzone) {\n // And is used here because both the y and x values of the right stick should be less than the deadzone\n\n a = Range.clip(yValueLeft + xValueLeft, -1, 1);\n b = Range.clip(yValueLeft - xValueLeft, -1, 1);\n\n\n robot.FL.setPower(a);\n robot.FR.setPower(b);\n robot.BL.setPower(b);\n robot.BR.setPower(a);\n\n telemetry.addData(\"a\", \"%.2f\", a);\n telemetry.addData(\"b\", \"%.2f\", b);\n\n } else if (Math.abs(xValueRight) > deadzone || Math.abs(yValueRight) > deadzone) {\n\n // Or is used here because only one of the y and x values of the right stick needs to be greater than the deadzone\n turnPower = Range.clip(xValueRight, -1, 1);\n\n robot.FL.setPower(-turnPower);\n robot.FR.setPower(turnPower);\n robot.BL.setPower(-turnPower);\n robot.BR.setPower(turnPower);\n\n } else {\n\n robot.FL.setPower(0);\n robot.FR.setPower(0);\n robot.BL.setPower(0);\n robot.BR.setPower(0);\n }\n\n } else {\n\n if (Math.abs(xValueRight) <= deadzone && Math.abs(yValueRight) <= deadzone) {\n\n // And is used here because both the y and x values of the right stick should be less than the deadzone\n a = Range.clip(yValueLeft + xValueLeft, -0.6f, 0.6f);\n b = Range.clip(yValueLeft - xValueLeft, -0.6f, 0.6f);\n\n\n robot.FL.setPower(a);\n robot.FR.setPower(b);\n robot.BL.setPower(b);\n robot.BR.setPower(a);\n\n telemetry.addData(\"a\", \"%.2f\", a);\n telemetry.addData(\"b\", \"%.2f\", b);\n\n } else if (Math.abs(xValueRight) > deadzone || Math.abs(yValueRight) > deadzone) {\n\n // Or is used here because only one of the y and x values of the right stick needs to be greater than the deadzone\n turnPower = Range.clip(xValueRight, -1, 1);\n\n robot.FL.setPower(-turnPower);\n robot.FR.setPower(turnPower);\n robot.BL.setPower(-turnPower);\n robot.BR.setPower(turnPower);\n\n } else {\n\n robot.FL.setPower(0);\n robot.FR.setPower(0);\n robot.BL.setPower(0);\n robot.BR.setPower(0);\n }\n }\n\n\n if (gamepad1.dpad_up) {\n\n robot.Swing.setPower(.6);\n\n } else if (gamepad1.dpad_down) {\n\n robot.Swing.setPower(-.6);\n\n } else {\n\n robot.Swing.setPower(0);\n }\n\n if(gamepad1.a){\n\n robot.Claw.setPosition(.4);\n\n } else if(gamepad1.b){\n\n robot.Claw.setPosition(0);\n }\n\n if(gamepad1.left_bumper) {\n\n robot.Pivot.setPosition(armRot+0.0005);\n\n } else if(gamepad1.right_bumper) {\n\n robot.Pivot.setPosition(armRot-0.0005);\n\n } else{\n\n robot.Pivot.setPosition(armRot);\n }\n\n telemetry.addData(\"position\", position);\n\n */\n\n /*\n * Code to run ONCE after the driver hits STOP\n */\n }", "private void rv2Elements(VectorN r, VectorN v)\n\t{\n\t\tr.checkVectorDimensions(3);\n\t\tv.checkVectorDimensions(3);\n\t\t//Constants c = new Constants();\n\t\tVectorN evec = new VectorN(3); // e vector\n\t\tVectorN k = new VectorN(3); // unit vector in z direction\n\n\t\tthis.rv = new VectorN(r, v);\n\n\t\tdouble rmag = r.mag();\n\t\tdouble vmag = v.mag();\n\t\tdouble energy = vmag * vmag / 2.0 - this.mu / rmag;\n\n\t\tk.x[0] = 0.0;\n\t\tk.x[1] = 0.0;\n\t\tk.x[2] = 1.0;\n\n\t\tVectorN h = r.crossProduct(v);\n\t\tVectorN n = k.crossProduct(h);\n\n\t\tdouble rdotv = r.dotProduct(v);\n\n\t\tdouble q1 = (vmag * vmag - this.mu / rmag) / this.mu;\n\t\tdouble q2 = rdotv / this.mu;\n\n\t\tevec.x[0] = q1 * r.x[0] - q2 * v.x[0];\n\t\tevec.x[1] = q1 * r.x[1] - q2 * v.x[1];\n\t\tevec.x[2] = q1 * r.x[2] - q2 * v.x[2];\n\n\t\tthis.e = evec.mag();\n\n\t\tif (e != 1.0)\n\t\t{\n\t\t\tthis.a = -this.mu / (2.0 * energy);\n\t\t} else\n\t\t{\n\t\t\tthis.a = 1.0E30;\n\t\t\tSystem.out.println(\"parabolic orbit\");\n\t\t}\n\n\t\tthis.i = Math.acos(h.x[2] / h.mag()); // inclination\n\n\t\tthis.raan = Math.acos(n.x[0] / n.mag()); // raan\n\t\tif (n.x[1] < 0.0)\n\t\t{\n\t\t\tthis.raan = 2.0 * Constants.pi - raan;\n\t\t}\n\n\t\tthis.w = Math.acos(n.dotProduct(evec) / (n.mag() * e));\n\t\tif (evec.x[2] < 0.0)\n\t\t{\n\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t}\n\n\t\tif (i == 0.0) // equatorial orbit, things blow up\n\t\t{\n\t\t\t//\t\t System.out.println(\"KeplerElements: equatorial orbit, RAAN no good\");\n\t\t\tthis.raan = 0.0;\n\t\t\tthis.w = Math.acos(evec.x[0] / e);\n\t\t\tif (evec.x[1] < 0.0)\n\t\t\t{\n\t\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t\t}\n\t\t}\n\n\t\tif (i == Constants.pi) // equatorial orbit, things blow up\n\t\t{\n\t\t\t//\t\t System.out.println(\"KeplerElements: equatorial orbit, RAAN no good\");\n\t\t\tthis.raan = 0.0;\n\t\t\tthis.w = Math.acos(evec.x[0] / e);\n\t\t\tif (evec.x[1] > 0.0)\n\t\t\t{\n\t\t\t\tthis.w = 2.0 * Constants.pi - this.w;\n\t\t\t}\n\t\t}\n\n\t\tthis.ta = Math.acos(evec.dotProduct(r) / (e * rmag));\n\t\tif (rdotv < 0.0)\n\t\t{\n\t\t\tthis.ta = 2.0 * Constants.pi - this.ta;\n\t\t}\n\t}", "public void vivir(){\r\n\t\r\n\tAtacable algo42tmp;\r\n\t\r\n\tif (!(this.muerto)){\r\n\t\tfor(int i = 0; i <= this.velY; i++){\r\n\t\t\tthis.mover();\r\n\t\t}\r\n\t\t\r\n\t\talgo42tmp = zonaDeCombate.comprobarColisionAlgo42(this);\r\n\t\tif (algo42tmp != null){\r\n\t\t\talgo42tmp.recibirDanio(20); /**hacer q se muera*/\r\n\t\t\tthis.muerto = true;\r\n\t\t}\r\n\t\t\r\n\r\n\t\t}\r\n\t}", "public void simulationStep(int currentTime, int speed) {\n \t\t\n \t\tstudents[0][0].printAcutalState();\n \t\t\n \t\t// -------------------------------------------------\n \t\t// -------------- pre conditions -------------------\n \t\t// -------------------------------------------------\n \t\t\n \t\t// the new array for the calculated students, fill it with EmptyPalce\n \t\tIPlace[][] newState = new IPlace[students.length][students[0].length];\n \t\tfor (int y = 0; y < 5; y++) {\n \t\t\tfor (int x = 0; x < 7; x++) {\n \t\t\t\tnewState[y][x] = new EmptyPlace(properties.size());\n \t\t\t}\n \t\t}\n \t\t\n \t\t// -------------------------------------------------\n \t\t// -------- student independent calculations -------\n \t\t// -------------------------------------------------\n \t\t\n \t\tCalcVector preChangeVector = new CalcVector(properties.size());\n \t\tpreChangeVector.printCalcVector(\"Init\");\n \t\t\n \t\t// breakReaction ( inf(Break) * breakInf )\n \t\tdouble breakInf = 0.01;\n \t\tif (lecture.getTimeBlocks().getTimeBlockAtTime(currentTime / 60000).getType() == BlockType.pause) {\n \t\t\tlogger.info(\"Influenced by break\");\n \t\t\tpreChangeVector.addCalcVector(influence.getEnvironmentVector(EInfluenceType.BREAK_REACTION, breakInf));\n \t\t}\n \t\tpreChangeVector.printCalcVector(\"after break\");\n \t\t\n \t\t// timeDending ( inf(Time) * currentTime/1000 * timeInf )\n \t\tdouble timeInf = 0.001;\n \t\tdouble timeTimeInf = timeInf * currentTime / 1000;\n \t\tpreChangeVector.addCalcVector(influence.getEnvironmentVector(EInfluenceType.TIME_DEPENDING, timeTimeInf));\n \t\tpreChangeVector.printCalcVector(\"after time depending\");\n \t\t\n \t\t// -------------------------------------------------\n \t\t// ---------- iterate over all students ------------\n \t\t// -------------------------------------------------\n \t\tfor (int y = 0; y < students.length; y++) {\n \t\t\tfor (int x = 0; x < students[y].length; x++) {\n \t\t\t\tif (students[y][x] instanceof Student) {\n \t\t\t\t\tStudent student = (Student) students[y][x];\n \t\t\t\t\t// check if there was an interaction from the don\n \t\t\t\t\tEntry<Integer, Student> donInteraction = student.historyDonInputInInterval(currentTime - speed,\n \t\t\t\t\t\t\tcurrentTime);\n \t\t\t\t\tif (donInteraction != null) {\n \t\t\t\t\t\tstudent = donInteraction.getValue();\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// influence of the surrounding students\n \t\t\t\t\tCalcVector neighborInfl = getNeighborsInfluence(student, x, y);\n \t\t\t\t\t// output for one student (0,0) -> only for analyzing the simulation behavior\n \t\t\t\t\tif (y == 0 && x == 0)\n \t\t\t\t\t\tneighborInfl.printCalcVector(\"Neighbor\");\n \t\t\t\t\t\n \t\t\t\t\t// create a new vector which contains the pre calculates vector and the neighbor vector\n \t\t\t\t\tCalcVector preChangeVectorSpecial = neighborInfl.addCalcVector(preChangeVector).addCalcVector(\n \t\t\t\t\t\t\tneighborInfl);\n \t\t\t\t\t// output for one student (0,0) -> only for analyzing the simulation behavior\n \t\t\t\t\tif (y == 0 && x == 0)\n \t\t\t\t\t\tneighborInfl.printCalcVector(\"preChangeVectorSpecial = Neighbor + preChangeVector\");\n \t\t\t\t\t\n \t\t\t\t\t// create a new student and let him calculate a new change vector\n \t\t\t\t\tnewState[y][x] = student.clone();\n\t\t\t\t\t((Student) newState[y][x]).calcNextSimulationStep(preChangeVectorSpecial, influence, x, y);\n \t\t\t\t\tif (y == 0 && x == 0)\n \t\t\t\t\t\t((Student) newState[y][x]).printAcutalState();\n \t\t\t\t\t((Student) newState[y][x]).saveHistoryStates(currentTime);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t// -------------------------------------------------\n \t\t// -------------- post simulation ------------------\n \t\t// -------------------------------------------------\n \t\t\n \t\t// give the reference from newState to real students array\n \t\tstudents = newState;\n \t\t\n \t\t// notify all subscribers of the students array\n \t\tnotifyStudentsObservers();\n \t}", "protected void serverAiStep() {\n/* 539 */ super.serverAiStep();\n/* 540 */ updateSwingTime();\n/* */ \n/* 542 */ this.yHeadRot = this.yRot;\n/* */ }", "public void boingg(Player player) {\n if (player.getCircle().getBoundsInParent().intersects(right.getBoundsInParent())) {\n\n if ((int) player.normalVelocityX == 0) {\n player.normalVelocityX = 4;\n } else {\n player.normalVelocityX = Math.abs(player.normalVelocityX) * springiness;\n }\n\n } else if (player.getCircle().getBoundsInParent().intersects(left.getBoundsInParent())) {\n if ((int) player.normalVelocityX == 0) {\n player.normalVelocityX = -4;\n } else {\n player.normalVelocityX = Math.abs(player.normalVelocityX) * -springiness;\n }\n } else {\n player.normalVelocityX *= springiness;\n }\n\n player.normalVelocityY *= -springiness;\n player.angularVelocity *= -springiness;\n \n rectangle.setFill(AssetManager.springSkin(false));\n\n }", "public void propagate(double t0, double tf, Printable pr, boolean print_switch)\n\t{\n\t\tdouble[] temp = new double[6];\n\n\n\t\t// Determine step size\n\t\tdouble n = this.meanMotion();\n\t\tdouble period = this.period();\n\t\tdouble dt = period / steps;\n\t\tif ((t0 + dt) > tf) // check to see if we're going past tf\n\t\t{\n\t\t\tdt = tf - t0;\n\t\t}\n\n\t\t// determine initial E and M\n\t\tdouble sqrome2 = Math.sqrt(1.0 - this.e * this.e);\n\t\tdouble cta = Math.cos(this.ta);\n\t\tdouble sta = Math.sin(this.ta);\n\t\tdouble sine0 = (sqrome2 * sta) / (1.0 + this.e * cta);\n\t\tdouble cose0 = (this.e + cta) / (1.0 + this.e * cta);\n\t\tdouble e0 = Math.atan2(sine0, cose0);\n\n\t\tdouble ma = e0 - this.e * Math.sin(e0);\n\n\t\t// determine sqrt(1+e/1-e)\n\n\t\t//double q = Math.sqrt((1.0 + this.e) / (1.0 - this.e));\n\n\t\t// initialize t\n\n\t\tdouble t = t0;\n\n\t\tif (print_switch)\n\t\t{\n\t\t\ttemp = this.randv();\n\t\t\tpr.print(t, temp);\n\t\t}\n\n\t\twhile (t < tf)\n\t\t{\n\t\t\tma = ma + n * dt;\n\t\t\tdouble ea = solveKepler(ma, this.e);\n\n\t\t\tdouble sinE = Math.sin(ea);\n\t\t\tdouble cosE = Math.cos(ea);\n\t\t\tdouble den = 1.0 - this.e * cosE;\n\n\t\t\tdouble sinv = (sqrome2 * sinE) / den;\n\t\t\tdouble cosv = (cosE - this.e) / den;\n\n\t\t\tthis.ta = Math.atan2(sinv, cosv);\n\t\t\tif (this.ta < 0.0)\n\t\t\t{\n\t\t\t\tthis.ta = this.ta + 2.0 * Constants.pi;\n\t\t\t}\n\n\t\t\tt = t + dt;\n\n\t\t\ttemp = this.randv();\n\t\t\tthis.rv = new VectorN(temp);\n\n\t\t\tif (print_switch)\n\t\t\t{\n\t\t\t\tpr.print(t, temp);\n\t\t\t}\n\n\t\t\tif ((t + dt) > tf)\n\t\t\t{\n\t\t\t\tdt = tf - t;\n\t\t\t}\n\n\t\t}\n\t}", "private void UpdateVelocity()\n\t{\n\t\tVector2 currentPosition = new Vector2(parent.transform.position);\n\t\tVector2 newVelocity = Vector2.Add(currentPosition,previousPosition.negate());\n\t\tpreviousPosition = currentPosition;\n\t\t\n\t\tfloat currentRotation = parent.transform.rotation;\n\t\tangularVelocity = currentRotation - previousRotation;\n\t\tpreviousRotation = currentRotation;\n\t\t\n\t\tvelocity = newVelocity;\n\t}", "public static void setScene() {\n\n Shape ground = new Plane(vec3(0.0, -1.0, 0.0), vec3(0, 1, -0.2), new Diffuse(new Vec3(1,1,1), white));\n \n /* Shape globe1 = new Sphere(vec3(0.0, 2, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe2 = new Sphere(vec3(2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe3 = new Sphere(vec3(-2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n*/\n Shape globe1T = new Sphere(vec3(0.0, 2, -2.0), 0.3, new Diffuse(new Vec3(1,1,1), white));\n // Shape globe2T = new Sphere(vec3(-0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1),yellow));\n // Shape globe3T = new Sphere(vec3(0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1), yellow));\n\n \n \n Shape globe4 = new Sphere(vec3(0.0, 2, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe5 = new Sphere(vec3(2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe6 = new Sphere(vec3(-2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n \n Shape globe7 = new Sphere(vec3(0.0, 2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe8 = new Sphere(vec3(2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe9 = new Sphere(vec3(-2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe7D = new Sphere(vec3(0.0, -2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n\n Shape globeC = new Sphere(vec3(0.0, 0.0, -6.0), 1.0, new Diffuse(new Vec3(1,1,1), red));\n \n ArrayList<Shape> shapes = new ArrayList<>();\n shapes.add(bg);\n shapes.add(ground);\n shapes.add(globe1T);\n // shapes.add(globe2T);\n // shapes.add(globe3T);\n //shapes.add(globe4);\n //shapes.add(globe5);\n shapes.add(globe7);\n shapes.add(globe8);\n shapes.add(globe9);\n shapes.add(globe7D);\n shapes.add(globeC);\n gr = new Group(shapes);\n /////////////////////////////--------------------------------------\n \n \n }", "@Override\n protected void update(Engine engine) {\n\t\trs = (GL4RenderSystem) engine.getRenderSystem();\n\t\t\n\t\telapsTime += engine.getElapsedTimeMillis();\n\t\telapsTimeSec = Math.round(elapsTime/1000.0f);\n\t\telapsTimeStr = Integer.toString(elapsTimeSec);\n\t\t\n\t\t//player.update(elapsTimeSec);\n\t\tSceneNode dragon = engine.getSceneManager().getSceneNode(\"dragonNPCNode\");\n\t\t\n\t\tdIter++;\n\t\t//if(dIter == 200)\n\t\t//{\n\t\t\t//dir = dir*-1;\n\t\t\t//dIter = 0;\n\t\t//}\n\t\tif(dIter <= 200)\n\t\tdragon.moveBackward(dir);\n\t\t\n\t\tif(dIter > 200 && dIter <= 400 )\n\t\t\tdragon.moveLeft(dir);\n\t\t\n\t\tif(dIter > 400 && dIter <= 600 )\n\t\t\tdragon.moveForward(dir);\n\t\t\n\t\tif(dIter > 600 && dIter <= 800 )\n\t\t\tdragon.moveRight(dir);\n\t\t\n\t\tif(dIter == 800 )\n\t\t\tdIter = 0;\n\t\t//SkeletalEntity dragonSE =\n\t\t\t\t//(SkeletalEntity) engine.getSceneManager().getEntity(\"dragonSkeleton\");\n\t\t//dragonSE.update();\n\t\t\n\t\tfloat time = engine.getElapsedTimeMillis();\n\t\t\n\t\tfloat playerFloat[] = player.getNode().getLocalTransform().toFloatArray();\n\t\t//playerFloat[7] = player.getNode().getLocalPosition().y();\n\t\tdouble playerMat[] = toDoubleArray(playerFloat);\n\t\tMatrix4 mat3;\n\t\tmat3 = Matrix4f.createFrom(toFloatArray(player.getNode().getPhysicsObject().getTransform()));\n\t\t//player.getNode().setLocalPosition(playerFloat[3],mat3.value(1,3), playerFloat[11]);\n\t\t//double playerMat[] = toDoubleArray(player.getNode().getLocalTransform().toFloatArray());\n\t\tplayerFloat = player.getNode().getLocalTransform().toFloatArray();\n\t\t//playerFloat[7] = player.getNode().getLocalPosition().y();\n\t\tplayerFloat[7] = mat3.value(1,3);//set y coordinate to physics world\n\t\tplayerMat = toDoubleArray(playerFloat);\n\t\tSystem.out.println(\"player.getNode().getLocalTransform(): \" + player.getNode().getLocalTransform());\n\t player.getNode().getPhysicsObject().setTransform(playerMat);\n\t \n\t player.update(elapsTimeSec);\n\t SkeletalEntity manSE =\n \t\t(SkeletalEntity) engine.getSceneManager().getEntity(\"knightSkeleton\");\n \t\tmanSE.update();\n\n\t \n\t\tif (running)\n\t\t{ \n\t\t\tMatrix4 mat;\n\t\t\tphysicsEng.update(time);\n\t\t\tfor (SceneNode s : engine.getSceneManager().getSceneNodes())\n\t\t\t{ \n\t\t\t\t//if (s.getPhysicsObject() != null && s.getName() != player.getNode().getName())\n\t\t\t\t//if (s.getPhysicsObject() != null /*&& s.getName() != player.getNode().getName()*/)\n\t\t\t\t{ \n\t\t\t\t\tmat = Matrix4f.createFrom(toFloatArray(s.getPhysicsObject().getTransform()));\n\t\t\t\t\ts.setLocalPosition(mat.value(0,3),mat.value(1,3), mat.value(2,3));\n\t\t\t\t} \n\t\t\t} \n\t\t}\n\n\t\tdispStr=\"Time = \" + elapsTimeStr + \" Score: \"+player.getScore();\n\t\trs.setHUD(dispStr, 15, 15);\n\t\tif(player.isBoostActive()) dispStr+=\" Boost Active!\";\n\t\tim.update(elapsTime);\n\t\tprocessNetworking(elapsTime);\n\t\t\n\t\tcheckForCollisions();\n\t\t//player.update(elapsTimeSec);\n\t\tSystem.out.println(\"ball transform: \" + ball2Node.getLocalTransform() );\n\t\tSystem.out.println(\"ball physycs object transform: \" + ball2Node.getPhysicsObject().getTransform()[0] + ',' \n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[1] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[2] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[3] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[4] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[5] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[6] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[7] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[8] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[9] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[10] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[11] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[12] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[13] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[14] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[15] + ',');\n\t\tSystem.out.println(\"ball linear velocity: \" + ball2Node.getPhysicsObject().getLinearVelocity());\n\t\tif(distanceTo(player.getNode().getLocalPosition(),ball2Node.getLocalPosition()) <= 4)\n\t\t{\n\t\t\tball2Node.setLocalPosition(0,10,0);\n\t\t\tfloat velocityArray[] = { 0, 5, 0};\n\t\t\tball2Node.getPhysicsObject().setLinearVelocity(velocityArray);\n\t\t\tfloat floTemp[] = ball2Node.getLocalTransform().toFloatArray();\n\t\t\tdouble dubTemp[] = {(double)floTemp[0], (double)floTemp[1], (double)floTemp[2], (double)floTemp[3], (double)floTemp[4],\n\t\t\t\t\t(double)floTemp[5],(double)floTemp[6],(double)floTemp[7], (double)floTemp[8], (double)floTemp[9], (double)floTemp[10], (double)floTemp[11]\n\t\t\t\t\t\t\t, (double)floTemp[12], (double)floTemp[13], (double)floTemp[14], (double)floTemp[15] };\n\t\t\t\n\t\t\tdouble dubTemp2[] = toDoubleArray(floTemp);\n\n\n\t\t\t Matrix4 mat2;\n\t\t\tball2Node.getPhysicsObject().setTransform(dubTemp2);\n\t\t\t\n\t\t\t//mat2 = Matrix4f.createFrom(toDoubleArray( ball2Node.getLocalTransform().toFloatArray()))\n\t\t\t//ball2Node.getPhysicsObject().setTransform(dubTemp2);\n\t\t\t//ball2Node.setPhysicsObject(ball2PhysObj);\n\t\t\t//ball2Node.getPhysicsObject().getTransform().\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//player.playWalkAnimation();\n\t\t\n\t\t\n\t\t\n\t\t/*ball2Node.getPhysicsObject().setTransform(ball2Node.getLocalTransform());\n\t\t//ball2PhysObj.set\n\t\tphysicsEng.\n\t\ttemptf = toDoubleArray(ball1Node.getLocalTransform().toFloatArray());\n \tball1PhysObj = physicsEng.addSphereObject(physicsEng.nextUID(),\n \tmass, temptf, 2.0f);\n \tball1PhysObj.setBounciness(1.0f);\n \tball1Node.setPhysicsObject(ball1PhysObj);*/\n\t\t\n\t\t/* check if player jumped*/\n\t\t\n\t}", "protected void calcVelocity()\n\t{}", "public void applyForce()\r\n {\n\tVector2d v = new Vector2d();\r\n\tv.sub(x, R.getPosition());\r\n\tdouble L = v.length();\r\n\tv.normalize();\r\n\tVector2d vel = R.getVelocityLinear();//fragile ref\r\n\t//double vn = vel.dot(v);\r\n\tdouble k = Constants.STIFFNESS_STRETCH_DENSITY * R.getMass();\r\n\tv.scale( k*L ); //- 0.2*k*vn );//force\r\n\tR.applyWrenchW(v, 0);//at center of mass, so no torque\r\n\r\n\t/// DAMP RIGIDBODY MOTION\r\n\tv.set(vel);\r\n\tv.scale( -0.2 * k );\r\n\tR.applyWrenchW(v, 0);\r\n }", "@Override\n\tpublic double calculateVelocity() {\n\t\tdouble result = distance / time + velocitySame - velocityReverse;\n\t\treturn result;\n\t}", "public void onUpdate()\n {\n super.onUpdate();\n this.jumpMovementFactor = 0.0F;\n this.renderYawOffset = this.rotationPitch = this.rotationYaw = 0.0F;\n\n if (this.target != null && this.target instanceof EntityLiving)\n {\n EntityLiving var1 = (EntityLiving) this.target;\n\n if (var1.getHealth() <= 0 || !this.canEntityBeSeen(var1))\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n } else\n {\n if (this.target != null && this.target.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n\n if (this.target == null)\n {\n this.target = this.worldObj.getClosestPlayerToEntity(this, -1.0D);\n\n if (this.target == null)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n\n return;\n }\n }\n }\n\n if (this.posX == (double) this.getOrgX() && this.posY == (double) this.getOrgY() && this.posZ == (double) this.getOrgZ())\n {\n if (!this.isReformed())\n {\n this.setReformed(true);\n }\n\n this.stop();\n this.moveTimer = 0;\n }\n\n if (this.slider == null)\n {\n Vec3 var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n Vec3 var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n MovingObjectPosition var18 = this.worldObj.rayTraceBlocks(var16, var2);\n var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n if (var18 != null)\n {\n var2 = Vec3.createVectorHelper(var18.hitVec.xCoord, var18.hitVec.yCoord, var18.hitVec.zCoord);\n }\n\n if (!this.worldObj.isRemote)\n {\n Object var4 = null;\n List var15 = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(4.0D, 4.0D, 4.0D));\n double var6 = 0.0D;\n\n for (int var8 = 0; var8 < var15.size(); ++var8)\n {\n Entity var9 = (Entity) var15.get(var8);\n\n if (var9.canBeCollidedWith() && var9 != this)\n {\n float var10 = 0.3F;\n\n if (var9 instanceof EntitySlider)\n {\n this.slider = (EntitySlider) var9;\n var18 = null;\n }\n\n AxisAlignedBB var11 = var9.boundingBox.expand((double) var10, (double) var10, (double) var10);\n MovingObjectPosition var12 = var11.calculateIntercept(var16, var2);\n\n if (var12 != null)\n {\n double var13 = var16.distanceTo(var12.hitVec);\n\n if (var13 < var6 || var6 == 0.0D)\n {\n var6 = var13;\n }\n }\n }\n }\n }\n\n if (this.slider == null || this.slider.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n }\n } else if (this.slider.target != this.target)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n } else\n {\n this.fallDistance = 0.0F;\n double var17;\n double var5;\n double var3;\n\n if (this.gotMovement)\n {\n if (this.isCollided)\n {\n var17 = this.posX - 0.5D;\n var3 = this.boundingBox.minY + 0.75D;\n var5 = this.posZ - 0.5D;\n\n if (this.crushed)\n {\n this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, \"random.explode\", 3.0F, (0.625F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F);\n this.worldObj.playSoundAtEntity(this, \"aeboss.slider.collide\", 2.5F, 1.0F / (this.rand.nextFloat() * 0.2F + 0.9F));\n }\n\n this.stop();\n } else\n {\n if (this.speedy < 2.0F)\n {\n this.speedy += 0.035F;\n }\n\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n\n if (this.direction == 0)\n {\n this.motionY = (double) this.speedy;\n\n if (this.boundingBox.minY > (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY + 0.35D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 1)\n {\n this.motionY = (double) (-this.speedy);\n\n if (this.boundingBox.minY < (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY - 0.25D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 2)\n {\n this.motionX = (double) this.speedy;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 3)\n {\n this.motionX = (double) (-this.speedy);\n\n if (this.posX < (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 4)\n {\n this.motionZ = (double) this.speedy;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 5)\n {\n this.motionZ = (double) (-this.speedy);\n\n if (this.posZ < (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n }\n }\n } else\n {\n this.motionY = 0.0D;\n\n if (this.moveTimer > 0)\n {\n --this.moveTimer;\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n } else\n {\n var17 = Math.abs(this.posX - (this.reform ? (double) this.getOrgX() : this.target.posX));\n var3 = Math.abs(this.boundingBox.minY - (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY));\n var5 = Math.abs(this.posZ - (this.reform ? (double) this.getOrgZ() : this.target.posZ));\n\n if (var17 > var5)\n {\n this.direction = 2;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX))\n {\n this.direction = 3;\n }\n } else\n {\n this.direction = 4;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ))\n {\n this.direction = 5;\n }\n }\n\n if (var3 > var17 && var3 > var5 || var3 > 0.25D && this.rand.nextInt(5) == 0)\n {\n this.direction = 0;\n\n if (this.posY > (this.reform ? (double) this.getOrgY() : this.target.posY))\n {\n this.direction = 1;\n }\n }\n\n this.gotMovement = true;\n }\n }\n\n if (this.harvey > 0.01F)\n {\n this.harvey *= 0.8F;\n }\n }\n }", "public void moveOneStep() {\r\n\r\n // detects what direction the ball moves and switches it.\r\n double xDirection, yDirection;\r\n if (v.getDx() < 0) {\r\n xDirection = -r;\r\n } else {\r\n xDirection = r;\r\n }\r\n if (v.getDy() < 0) {\r\n yDirection = -r;\r\n } else {\r\n yDirection = r;\r\n }\r\n // if the ball is in the paddle because they move towards each other, the ball moves to the top of the paddle.\r\n Rectangle danger;\r\n // finding the paddle.\r\n for (Collidable c: environment.getCollidables()) {\r\n if (c.getCollisionRectangle().getUpperLeft().getY() == 550) {\r\n danger = c.getCollisionRectangle();\r\n // moving the ball up if its in the paddle.\r\n if (center.getY() > danger.getUpperLeft().getY()\r\n && center.getX() > danger.getUpperLeft().getX()\r\n && center.getX() < danger.getUpperRight().getX()) {\r\n this.center = new Point(center.getX(), danger.getUpperLeft().getY() - r);\r\n }\r\n }\r\n }\r\n Line yTrajectory = new Line(center.getX(), center.getY() + yDirection,\r\n center.getX() + v.getDx(), center.getY() + yDirection + v.getDy());\r\n Line xTrajectory = new Line(center.getX() + xDirection, center.getY(),\r\n center.getX() + v.getDx() + xDirection, center.getY() + v.getDy());\r\n // the collision is on the y field.\r\n if (environment.getClosestCollision(yTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(yTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(yTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(this.center.getX(),\r\n bangedPoint.getY() - yDirection - v.getDy());\r\n }\r\n // the collision is on the x field.\r\n if (environment.getClosestCollision(xTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(xTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(xTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(bangedPoint.getX() - xDirection - v.getDx(),\r\n this.center.getY());\r\n }\r\n this.center = this.getVelocity().applyToPoint(this.center);\r\n }", "public void updateTrifecta() {\n\n\t\taccelX = (xl.getX() - 0) * 9.8 * Math.cos(angleToForward * (Math.PI / 180.0)); //convert from g's\n\t\taccelY = (xl.getY() - 0) * 9.8 * Math.sin(angleToForward * (Math.PI / 180.0));\n\t\taccelZ = (xl.getZ() - 0) * 9.8;\n\t\t\n\t\t//velocity updated by acceleration integral\n\t\tvelX += accelX * dT;\n\t\tvelY += accelY * dT;\n\t\tvelZ += accelZ * dT;\n\t\t\n\t\t//position updated by velocity integral and adjusted for robot rotation\n\t\tposX += velX * dT;\n\t\tposY += velY * dT;\n\t\tposZ += velZ * dT;\n\t}", "@Override\n\tpublic void setup() {\n\t\tObjectSpace objectSpace = Blackboard.inst().getSpace(ObjectSpace.class, \"object\");\n\t\tList<PhysicsObject> objects = objectSpace.getCognitiveAgents();\n\n\t\tif (objects.size() != 2)\n\t\t\tthrow new RuntimeException(\"Need two agents in order to run PathScenario4!\");\n\t\t\n\t\t// first we determine the line between their two points.\n\t\tPhysicsObject obj1 = objects.get(0);\n\t\tPhysicsObject obj2 = objects.get(1);\n\t\t\t\t\n\t\tVec2 direction = obj1.getPPosition().sub(obj2.getPPosition());\n\t\tVec2 nDirection = new Vec2(direction);\n\t\tnDirection.normalize();\n\t\tfloat radians = (float) Math.atan2(nDirection.y, nDirection.x);\n\t\tfloat PI = (float) Math.PI;\n\t\tfloat PI2 = PI * 0.5f;\n\n\t\tfloat perp = radians + PI2;\n\t\tVec2 v = new Vec2((float) Math.cos(perp), (float) Math.sin(perp));\n\t\tVec2 offset1 = new Vec2(obj1.getPPosition().add(v));\n\n\t\tList<Vec2> waypoints1 = new ArrayList<Vec2>();\n\t\twaypoints1.add(obj2.getPPosition());\n\n\t\tList<Vec2> waypoints2 = new ArrayList<Vec2>();\n\t\twaypoints2.add(offset1);\n\t\t\n\t\t// Set positions and orientations\n\t\tobj1.getBody().setXForm(obj1.getPPosition(), radians + (float) Math.PI);\n\t\tobj2.getBody().setXForm(obj2.getPPosition(), radians);\n\n\t\tEventManager.inst().dispatch(new SetWaypoints(waypoints1, obj1));\n\t\tEventManager.inst().dispatch(new SetWaypoints(waypoints2, obj2));\n\t}" ]
[ "0.63469607", "0.57007176", "0.55774176", "0.5568193", "0.5547832", "0.5518839", "0.5473674", "0.54530257", "0.5450876", "0.54294974", "0.54073095", "0.54027003", "0.53577024", "0.53444076", "0.53435814", "0.5329422", "0.53283477", "0.5297201", "0.5294714", "0.52929586", "0.5262282", "0.52550364", "0.5254088", "0.5242701", "0.5238715", "0.5234796", "0.52275485", "0.5224452", "0.5202047", "0.5198642", "0.51952404", "0.51906556", "0.51882595", "0.51833624", "0.51788527", "0.5173855", "0.51724404", "0.5168779", "0.51616323", "0.5159213", "0.5147343", "0.5144266", "0.51420224", "0.5141713", "0.51312447", "0.5130264", "0.51293856", "0.51263773", "0.51194763", "0.5116195", "0.510813", "0.5104121", "0.5100698", "0.5100574", "0.5099096", "0.50989527", "0.5090596", "0.50874853", "0.5077869", "0.50769174", "0.5072063", "0.5071739", "0.5071738", "0.5069925", "0.50685596", "0.5065648", "0.50639206", "0.5059734", "0.5058235", "0.5057869", "0.5055513", "0.50541246", "0.50514", "0.5046429", "0.5035334", "0.50347763", "0.5032522", "0.50247943", "0.5024751", "0.50246495", "0.5024639", "0.501631", "0.50089395", "0.50042474", "0.5001077", "0.4997544", "0.49924755", "0.49887255", "0.4988139", "0.49874648", "0.49834332", "0.49823514", "0.49808317", "0.49776757", "0.49772966", "0.4973267", "0.4960408", "0.49502528", "0.49466935", "0.4946397", "0.49403" ]
0.0
-1
TODO Autogenerated method stub
public int sum(Integer x, Integer y) { return x+y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public int multi(Integer x, Integer y) { return x*y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public String methodInvoke() { return "1.1.1版本"; }
{ "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
getters and abstract setters
public abstract void setLoginInfo(@Nullable com.login.bean.UserInfo LoginInfo);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "public abstract void set(M newValue);", "public abstract void setValue(T value);", "String setValue();", "public void setAge(int age) { this.age = age; }", "@Override\n public void get() {}", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "public abstract void setValue(int value);", "@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\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "private interface Valuable extends Base {\n\t\tString getValue();\n\t\tvoid setValue(String value);\n\t}", "public abstract String get();", "public void setAge(int age);", "@Override\n\tpublic void set(T e) {\n\t\t\n\t}", "public abstract void setCarMake();", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public abstract void set(DataType x, DataType y, DataType z);", "public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "protected abstract void setValue(V value);", "public abstract void setInteger(int value);", "@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}", "public abstract void setNombre(java.lang.String newNombre);", "public void setdat()\n {\n }", "void setAge(int age);", "public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }", "public abstract void setCustomData(Object data);", "public void set(String name, Object value) {\n }", "@Override\n Derived get();", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "@Override\npublic void setAttributes() {\n\t\n}", "public abstract void setRate();", "public void setPrice(double price){this.price=price;}", "public T set(T obj);", "protected abstract void setMyName(String name);", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract void userValues();", "public void setX(int x) { this.x=x; }", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "private SetProperty(Builder builder) {\n super(builder);\n }", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}", "@Override\n\tpublic void setData() {\n\n\t}", "@Override\n\tpublic void setValue(Object object) {\n\n\t}", "@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 AbstractEstProxy(Est dto) {\n super(dto);\n\n // Setter arrays\n readObjectSetters = new java.util.concurrent.CopyOnWriteArrayList<com.poesys.db.dto.ISet>();\n }", "@Override\n public void setX(int x) {\n this.x=x;\n }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }", "public abstract void setValue(Context c, Object v) throws PropertyException;", "public void set() {\r\n\t\tage = 19;\r\n\t\tname = \"ΎΛ·»\";\r\n\t\theight = 161;\r\n\t\tsetWeight(50);\r\n\t\tSystem.out.println(getWeight());\r\n\t}", "public abstract void setValue(ELContext context,\n Object base,\n Object property,\n Object value);", "@Override\n String get();", "public int getAge() {return age;}", "@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}", "public void setEmployee(String employee)\r\n/* 43: */ {\r\n/* 44:47 */ this.employee = employee;\r\n/* 45: */ }", "abstract void assignOne();", "public void setValue(A value) {this.value = value; }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void get() {\n }", "@Test\n\tpublic void testSetters()\n\t{\n\t\tAIContext context = new AIContext(a, e); \n\t\tassertTrue(context.getCurrentState() instanceof NoWeaponState); \n\t\t\n\t\tcontext.setCurrentState(new DeadState(context));\n\t\tassertTrue(context.getCurrentState() instanceof DeadState);\n\t\t\n\t\tcontext.setCurrentState(new HasWeaponState(context));\n\t\tassertTrue(context.getCurrentState() instanceof HasWeaponState);\n\t\t\n\t\tcontext.setCurrentState(new OutOfAmmoState(context));\n\t\tassertTrue(context.getCurrentState() instanceof OutOfAmmoState);\n\t\t\n\t\tcontext.setCurrentState(new NoWeaponState(context));\n\t\tassertTrue(context.getCurrentState() instanceof NoWeaponState);\n\t}", "public abstract void setPoint(Point p);", "void set(T t);", "public abstract void setName(String name);", "public abstract void setName(String name);", "public void setValue(Object value) { this.value = value; }", "public void setGender(Gender_Tp gender) { this.gender = gender; }", "public abstract void setContent(Object o);", "public abstract void mutate();", "public abstract void setValueAction(Object value);", "private void assignment() {\n\n\t\t\t}", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "void setValue(T value);", "void setValue(T value);", "protected abstract void setName(String string);", "public abstract void set(String key, T data);", "public void setValue(Object value);", "public abstract Value getValue();", "public void setAge(int age)\r\n {\r\n this.age = age;\r\n }", "private void setData() {\n\n }", "protected void setAge(Age age) {\n this.age = age;\n }", "public void setValue(Object val);", "public void setAge(int age){\n this.age = age;\n }", "public void setNombre(String nombre) {this.nombre = nombre;}", "@Override\n protected void updateProperties() {\n }", "public abstract BaseQuantityDt setCode(String theCode);", "public interface ValueSetter<TEntity, T> {\n void setValue(TEntity entity, T value);\n}", "@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(LeastCommonNodeInput.class, configuration);\n\n\t}", "public void setModified();", "public Value restrictToSetter() {\n checkNotPolymorphicOrUnknown();\n if (setters == null)\n return theNone;\n Value r = new Value();\n r.setters = setters;\n return canonicalize(r);\n }", "private void set(int x, int i) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void setValue(String arg0, String arg1) {\n\t\t\n\t}", "void setValue(Object value);", "public void setName(String name){this.name=name;}", "@Test\n public void testSetAge() {\n System.out.println(\"Animal.setAge\");\n animal1.setAge(20);\n animal2.setAge(5);\n assertEquals(20, animal1.getAge());\n assertEquals(5, animal2.getAge());\n }", "public void setX(int x);", "public abstract void setCustomerAddress(Address address);", "public abstract M getValue();", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}" ]
[ "0.69815844", "0.6635031", "0.6496533", "0.6411286", "0.6397682", "0.6267466", "0.62011516", "0.6138512", "0.61306125", "0.61278534", "0.6127161", "0.6117235", "0.6111761", "0.6081368", "0.60647243", "0.6063969", "0.6038533", "0.60305554", "0.59379834", "0.5937182", "0.5914782", "0.5908913", "0.59083533", "0.58960676", "0.5893269", "0.5893198", "0.5890352", "0.58826435", "0.5874622", "0.5869126", "0.5867055", "0.5862791", "0.58588374", "0.5848509", "0.58474016", "0.58393896", "0.58393896", "0.58393896", "0.58028466", "0.57995987", "0.579628", "0.57938457", "0.57811743", "0.5780459", "0.5777279", "0.57685375", "0.5767588", "0.57610935", "0.5756405", "0.5755658", "0.57442886", "0.5741393", "0.5739455", "0.5738412", "0.5725086", "0.57186234", "0.5717287", "0.57145524", "0.5706258", "0.5705689", "0.57036114", "0.5702026", "0.57007384", "0.56875867", "0.5683889", "0.568315", "0.568315", "0.5672122", "0.5670603", "0.56658", "0.56639886", "0.56634533", "0.5662659", "0.56621027", "0.5647597", "0.5647597", "0.5646771", "0.5640983", "0.56400424", "0.563754", "0.5636876", "0.5633714", "0.56334764", "0.5630091", "0.5629305", "0.5622447", "0.56202894", "0.5605038", "0.56035745", "0.5593522", "0.5592818", "0.5591625", "0.55891585", "0.55851126", "0.5580346", "0.5575903", "0.55738616", "0.556805", "0.5559654", "0.55580544", "0.5557459" ]
0.0
-1
/ GUITrainers can teach subjects with specialism 4, they can also teach the same subjects as teachers therefore if the specialism isnt 4, it checks if a teacher can teach the subject
public boolean canTeach(Subject subject) { if (subject.getSpecialism() == 4) { return true; } else { return super.canTeach(subject); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean checkTeacher(Teacher t, String givenName, String givenSurname, String givenSubject) {\n\n if (t.getNome().toLowerCase().equals(givenName.toLowerCase())) {\n return true;\n }\n if (t.getCognome().toLowerCase().equals(givenSurname.toLowerCase())) {\n return true;\n }\n\n ArrayList<String> subjects = t.materie;\n\n for (String sub : subjects) {\n if (sub.toLowerCase().equals(givenSubject.toLowerCase())) {\n return true;\n }\n }\n return false;\n }", "@Test\r\n\tpublic void testGetSubjects() {\r\n\t\tassertTrue(teachu1.getSubjects().contains(sub1));\r\n\t\tassertFalse(teachu1.getSubjects().contains(sub2));\r\n\t}", "@Test\r\n\tpublic void testContainsSubject() {\r\n\t\tassertTrue(teachu1.containsSubject(sub1));\r\n\t\tassertFalse(teachu1.containsSubject(sub2));\r\n\t}", "@Test\r\n\tpublic void teachingUnitContainsPersons() {\r\n\t\tassertTrue(teachu1.containsPerson(\"ErK\"));\r\n\t\tassertTrue(teachu1.containsPerson(\"AlP\"));\r\n\t\tassertFalse(teachu1.containsPerson(\"MaP\"));\r\n\t}", "private void verifyTeacher() {\n\t\t\n\t\tchar[] password1 = tPasswordPF1.getPassword();\n\t\tchar[] password2 = tPasswordPF2.getPassword();\n\t\t\n\t\tif (newTeacher || tUpdateProfile) {\n\t\t\t\n\t\t\t//Teacher: FirstName\n\t\t\tif (tFirstNameTF.getText().isEmpty()) { \n\t\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: First\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\ttFirstNameTF.setBackground(Color.LIGHT_GRAY);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (!tFirstNameTF.getText().isEmpty() && tFirstNameTF.getBackground() == Color.LIGHT_GRAY) { \n\t\t\t\ttFirstNameTF.setBackground(Color.WHITE);\n\t\t\t}\n\t\t\t\n\t\t\t//Teacher: LastName\n\t\t\tif (tLastNameTF.getText().isEmpty()) {\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Last\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\ttLastNameTF.setBackground(Color.LIGHT_GRAY);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (!tLastNameTF.getText().isEmpty() && tLastNameTF.getBackground() == Color.LIGHT_GRAY) { \n\t\t\t\ttLastNameTF.setBackground(Color.WHITE);\n\t\t\t}\n\t\t\t\n\t\t\t//Teacher: SchoolName\n\t\t\tif (tSchoolNameTF.getText().isEmpty()) {\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: School\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\ttSchoolNameTF.setBackground(Color.LIGHT_GRAY);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (!tSchoolNameTF.getText().isEmpty() && tSchoolNameTF.getBackground() == Color.LIGHT_GRAY) { \n\t\t\t\ttSchoolNameTF.setBackground(Color.WHITE);\n\t\t\t}\n\t\t\t\n\t\t\t//Teacher: Username\n\t\t\tif (tUsernameTF.getText().isEmpty()) {\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Username\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\ttUsernameTF.setBackground(Color.LIGHT_GRAY);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (!tUsernameTF.getText().isEmpty() && tUsernameTF.getBackground() == Color.LIGHT_GRAY) { \n\t\t\t\ttUsernameTF.setBackground(Color.WHITE);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (newTeacher || tUpdateSecurity) {\n\t\t\t\n\t\t\t//Teacher: Password\n\t\t\tif (tPasswordPF1.getPassword().length == 0) {\n\t\t\t\tif (newTeacher) {\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Password\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttPasswordPF1.setBackground(Color.LIGHT_GRAY);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//Teacher: New Password\n\t\t\t\telse if (tUpdateSecurity) {\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: New Password\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttPasswordPF1.setBackground(Color.LIGHT_GRAY);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tPasswordPF1.getPassword().length != 0 && tPasswordPF1.getBackground() == Color.LIGHT_GRAY) { \n\t\t\t\ttPasswordPF1.setBackground(Color.WHITE);\n\t\t\t}\n\t\t\t//Teacher: Re-enter Password\n\t\t\tif (tPasswordPF2.getPassword().length == 0) {\n\t\t\t\tif (newTeacher) {\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Re-enter Password\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttPasswordPF2.setBackground(Color.LIGHT_GRAY);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//Teacher: Re-enter New Password\n\t\t\t\telse if (tUpdateSecurity) {\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Re-enter New Password\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttPasswordPF2.setBackground(Color.LIGHT_GRAY);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tPasswordPF2.getPassword().length != 0 && tPasswordPF2.getBackground() == Color.LIGHT_GRAY) { \n\t\t\t\ttPasswordPF2.setBackground(Color.WHITE);\n\t\t\t}\n\t\t\t\n\t\t\t//Teacher: Security Question 1\n\t\t\tif (tSecurityQ1TF.getText().isEmpty()) {\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Security Question 1\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\ttSecurityQ1TF.setBackground(Color.LIGHT_GRAY);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (!tSecurityQ1TF.getText().isEmpty() && tSecurityQ1TF.getBackground() == Color.LIGHT_GRAY) { \n\t\t\t\ttSecurityQ1TF.setBackground(Color.WHITE);\n\t\t\t}\n\t\t\t\n\t\t\t//Teacher: Security Question 2\n\t\t\tif (tSecurityQ2TF.getText().isEmpty()) {\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Security Question 2\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\ttSecurityQ2TF.setBackground(Color.LIGHT_GRAY);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (!tSecurityQ2TF.getText().isEmpty() && tSecurityQ2TF.getBackground() == Color.LIGHT_GRAY) { \n\t\t\t\ttSecurityQ2TF.setBackground(Color.WHITE);\n\t\t\t}\n\t\t\t\n\t\t\t//Teacher: Password Equivalency\n\t\t\tif (isPasswordCorrect(password1, password2) != true) {\n\t\t\t\tif (newTeacher) {\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"Passwords do not match!\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttPasswordPF1.setText(\"\");\n\t\t\t\t\ttPasswordPF2.setText(\"\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//Teacher: New Password Equivalency\n\t\t\t\telse if (tUpdateSecurity) {\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"New passwords do not match!\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttPasswordPF1.setText(\"\");\n\t\t\t\t\ttPasswordPF2.setText(\"\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Teacher: Old Password Equivalency\n\t\t\tif (tUpdateSecurity) {\n\t\t\t\t\n\t\t\t\tchar[] oldPassword1 = teacher.getPassword();\n\t\t\t\tchar[] oldPassword2 = tOldPasswordPF.getPassword();\n\t\t\t\t\n\t\t\t\tif (isPasswordCorrect(oldPassword1, oldPassword2) != true) {\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"Old passwords do not match!\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttOldPasswordPF.setText(\"\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (login == true && tUpdateProfile == false && tUpdateSecurity == false) {\n\t\t\treturn;\n\t\t} \n\t\t//Teacher: Update Profile Actions\n\t\telse if (tUpdateProfile) {\n\t\t\ttUpdateProfile = false;\n\t\t\tupdateTeacherProfileInfo();\n\t\t\tupdateTeacherPWindow.dispose();\n\t\t\ttPortalWindow.dispose();\n\t\t\tteacherPortalScreen();\n\t\t}\n\t\t//Teacher: Update Security Actions\n\t\telse if (tUpdateSecurity) {\n\t\t\ttUpdateSecurity = false;\n\t\t\tupdateTeacherSecurityInfo();\n\t\t\tupdateTeacherSWindow.dispose();\n\t\t\ttPortalWindow.dispose();\n\t\t\tteacherPortalScreen();\n\t\t}\n\t\t//Teacher: New User Actions\n\t\telse {\n\t\t\tnewTeacherWindow.dispose();\n\t\t\taddTeacher();\n\t\t\tcreateTempData();\n\t\t\tteacherPortalScreen();\n\t\t}\n\t}", "public static void subject(int course) {\r\n String subject1 = (\"physics\");\r\n String subject2 = (\"sap\");\r\n String subject3 = (\"cs\");\r\n //String subject4 = (\"N/A\");\r\n\r\n System.out.println(\r\n \"Please enter a number to choose a subject to study for. 1.)\" + subject1 + \" 2.)\" + subject2 + (\" 3.)\") + subject3\r\n + \".\");\r\n }", "public static void subjectPoints (String subject ,double subjectDegree){\n if((subjectDegree / 25) >= 2.0){\n //3hours subjects\n if(\n subject == \"Arabic1\" || subject == \"English1\" || subject == \"Islamic Culture1\" || subject == \"Basic Mathematics\" || subject == \"Calculus\" || subject == \"Islamic Culture2\" || subject == \"English2\" || subject == \"Arabic2\" || subject == \"programming Fundamentals\" || subject == \"Linear Algebra\" || subject == \"Probability And Statistics\" || subject == \"Human Computer Interaction1\" || subject == \"Information Technology Fundamentals\" || subject == \"Economics\" || subject == \"Computer Architecture\" || subject == \"Database Systems1\" || subject == \"Software Engineering1\" || subject == \"Human Computer Interaction2\" || subject == \"Cryptography And Information Security\" || subject == \"Algorithm Analysis And Design\" || subject == \"Software Engineering2\" || subject == \"Practical Training\" || subject == \"Database Systems3\" || subject == \"Information Security Applications\"\n ){\n currentSemesterPoint += ((subjectDegree / 25) * 3);\n TotalHoursPerSemester += 3;\n }\n\n //4hours subjects\n else if(\n subject == \"Physics\" || subject == \"Introduction To Computer Science\" || subject == \"Accounting Principles\" || subject == \"Information Technology Hardware\" || subject == \"Programming Methods1\" || subject == \"Programming Methods2\" || subject == \"DataStructures And Algorithms\" || subject == \"Operating Systems\" || subject == \"Artificial Intelligence\" || subject == \"Computer Networks And Communication\" || subject == \"Database Systems2\" || subject == \"Web Application Development1\" || subject == \"Elective Subject 1\" || subject == \"Information Technology Project Management\" || subject == \"Web Application Development2\" || subject == \"Mobile Computing\" || subject == \"Elective Subject2\"\n ){\n currentSemesterPoint += (subjectDegree / 25) * 4;\n TotalHoursPerSemester += 4;\n }\n\n //2hours subjects\n else if(subject == \"Human Communications\" || subject == \"Principles Of Management\" || subject == \"Sudanese Studies\" || subject == \"Research Methods\" || subject == \"Professional And Ethical Issues\"){\n currentSemesterPoint += ((subjectDegree / 25) * 2); \n TotalHoursPerSemester += 2;\n\n }\n //6hours subjects\n else if(subject == \"Graduation Project2\"){\n currentSemesterPoint += ((subjectDegree / 25) * 6); \n TotalHoursPerSemester += 6;\n }\n //remove this subject if it was a failure subjecet\n clearFailureSubjects(subject);\n } else {\n //set the current subject as failure subject\n setFailure(subject);\n }\n //add the current subject degree\n setDegreeSubject(subject , (subjectDegree / 25));\n //update global vars\n TotalSubjectsPoints += currentSemesterPoint;\n currentHours += TotalHoursPerSemester;\n }", "public Wrapper isTeacher() {\n Wrapper<HashMap<String, Boolean>> wrapper = new Wrapper();\n HashMap<String, Boolean> out = new HashMap<>();\n try {\n out.put(\"teacher\", user.isTeacher());\n wrapper.setData(out);\n wrapper.setSucces(true);\n } catch (Exception e) {\n wrapper.setSucces(false);\n wrapper.setMsg(e.toString());\n }\n return wrapper;\n }", "public boolean is_punctual(){\n if(this.get_punctuality() == 2){\n return true;\n } else {\n return false;\n }\n }", "@Test\r\n\t public void hasSubmitted4() {\n\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t \tthis.student.dropClass(\"gurender\", \"ecs60\", 2017);\r\n\t this.instructor.addHomework(\"sean\", \"ecs60\", 2017, \"p1\");\r\n\t this.student.submitHomework(\"gurender\", \"p1\", \"abc\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017));\r\n\t }", "boolean hasTutorial();", "boolean canCrit();", "@Test\r\n\t public void hasSubmitted6() {\n\t \tthis.admin.createClass(\"ecs60\",2019,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2019);\r\n\t this.instructor.addHomework(\"sean\", \"ecs60\", 2019, \"p1\");\r\n\t this.student.submitHomework(\"gurender\", \"p1\", \"abc\", \"ecs60\", 2019);\r\n\t assertFalse(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2019));\r\n\t }", "@Test\r\n\t public void hasSubmitted5() {\n\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \tthis.admin.createClass(\"ecs154\",2017,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t \t//this.student.dropClass(\"gurender\", \"ecs60\", 2017);\r\n\t this.instructor.addHomework(\"sean\", \"ecs60\", 2017, \"p1\");\r\n\t this.instructor.addHomework(\"sean\", \"ecs154\", 2017, \"h1\");\r\n\t this.student.submitHomework(\"gurender\", \"p1\", \"abc\", \"ecs154\", 2017);\r\n\t assertFalse(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs154\", 2017));\r\n\t }", "public boolean canCompete(String t){\n\t\tif(talents != null)\n\t\t{\n\t\t\tint i;\n\t\t\tfor(i = 0; i < talents.length; i++)\n\t\t\t\tif (talents[i] == t)\n\t\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n }", "@Override\n protected String isSpecificMissionValid() {\n if (!Ants.getWorld().getEnemyHills().contains(hill))\n return \"Enemy hill \" + hill + \" is no longer there\";\n return partialMission.isValid();\n }", "@Test\r\n\t public void hasSubmitted8() {\n\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t //\tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t this.instructor.addHomework(\"sean\", \"ecs60\", 2017, \"p1\");\r\n\t this.student.submitHomework(\"gurender\", \"p1\", \"abc\", \"ecs60\", 2017);\r\n\t\t assertFalse(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017));\r\n\t }", "@Test\r\n\t public void hasSubmitted7() {\n\t \tthis.admin.createClass(\"ecs60\",2015,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2015);\r\n\t this.instructor.addHomework(\"sean\", \"ecs60\", 2015, \"p1\");\r\n\t this.student.submitHomework(\"gurender\", \"p1\", \"abc\", \"ecs60\", 2015);\r\n\t assertFalse(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2015));\r\n\t }", "@Override\r\n\t\t\tpublic ExecuteResult execute(float deltaTime) {\n\t\t\t\tif(!man.getInfo().getSchool().isTeacherWork()){\r\n\t\t\t\t\treturn ExecuteResult.FALSE;\r\n\t\t\t\t}\r\n\t\t\t\treturn ExecuteResult.TRUE;\r\n\t\t\t}", "@Test\r\n\tpublic void testSetSubjects() {\r\n\t\tteachu1.setSubjects(newSubjects);\r\n\r\n\t\tassertTrue(teachu1.getSubjects().contains(sub2));\r\n\t\tassertFalse(teachu1.getSubjects().contains(sub1));\r\n\t}", "public boolean isForGenere();", "private boolean askForSuperviser(Person p) throws Exception {\n\n\t\treturn p.isResearcher() && (p.getInstitutionalRoleId() > 1);\n\t}", "public boolean syntaktischRichtig() \n\t{\n\t\tcounters = new int[37];\n\t\tmaxCount = 0;\n\t\tboolean breakIt = false;\n\t\tfor (char[] zeile : level) \n\t\t{\n\t\t\tfor (char elm : zeile) \n\t\t\t{\n\t\t\t\tint cti = charToInt(elm);\n\t\t\t\tif (cti == -1) \n\t\t\t\t{\n\t\t\t\t\tbreakIt = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else \n\t\t\t\t{\n\t\t\t\t\tcounters[cti]++;\n\t\t\t\t\tif (counters[cti] > 4 && elm != '-') {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tmaxCount++;\n\t\t\t}\n\t\t\tif (breakIt){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif (maxCount <= 144 && maxCount%2==0) \n\t\t{\n\t\t\tfor (int count : counters) \n\t\t\t{\n\t\t\t\tif (!(count % 2 == 0 || count % 4 == 0)) \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t} else \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean sucheMitspieler();", "public boolean canCompete(String t,int maxAge){\n\t\tif(talents != null)\n\t\t{\n\t\t\tint i;\n\t\t\tif (age <= maxAge)\n \t\tfor(i = 0; i < talents.length; i++)\n\t\t\t \tif (talents[i] == t)\n\t\t\t\t \treturn true;\n\t\t}\n\t\treturn false;\n }", "public void fixTeacherRating()\n {\n // put your code here\n if(profQuality < 5)\n profQuality++;\n }", "boolean hasHadithChapterIntro();", "public static boolean canLearn(Thing b,String s) {\r\n \t\tString order=getOrder(s);\r\n \t\treturn b.getStat(order)>0;\r\n \t\t//return RPG.test(b.getStat(RPG.ST_LEVEL), levels[type]);\r\n \t}", "private int choose_among_the_chapters_of_the_subject(String subject,String semester){\n\n int chapter=-1;\n File subject_index= new File(\"C://Manish//The_Test_Taker//All_Text_files//Quizes//\"+semester+\"//\"+subject+\"//Subject_index.txt\");\n Scanner chapter_read= null;\n try{\n chapter_read= new Scanner(subject_index);\n }catch(FileNotFoundException e){\n System.out.println(\"Some error occured while loading the questions.\");\n //chapter=choose_among_the_chapters_of_the_subject(subject,semester);\n return chapter;\n }\n float a[]= new float[4];\n if(subject.toUpperCase().equals(\"OOP\")){\n a= OOP;\n }else if(subject.toUpperCase().equals(\"DE\")){\n a=DE;\n }else if(subject.toUpperCase().equals(\"DSA\")){\n a=DSA;\n }\n\n //This will display the list of the chapters available in a subject by traversing the subject index of each subject\n String line_will_be_of_use_sometime=chapter_read.nextLine();\n while(!(line_will_be_of_use_sometime.equals(\"List of chapters:-\")))\n {\n line_will_be_of_use_sometime=chapter_read.nextLine();\n }\n int i=0;\n System.out.println(\"*************************************************************\");\n System.out.println(line_will_be_of_use_sometime);\n System.out.println(\"*************************************************************\");\n System.out.println(\"Chapter Name Status\");\n line_will_be_of_use_sometime=chapter_read.nextLine();\n int no_of_chapters=0;\n \n while(line_will_be_of_use_sometime.charAt(0)!='#'&&i<4){\n System.out.println(line_will_be_of_use_sometime +\" \"+(a[i]!=0?\"Attempted\":\"Yet to be Attempted\"));\n line_will_be_of_use_sometime=chapter_read.nextLine();\n no_of_chapters++;//To get the count of the chapters available\n i++;\n }\n System.out.println(\"************************************************\");\n\n\n //Asking user for his/her choice of Chapter.\n int chap;\n System.out.println(\"Enter the choice of the Chapter from above whose Quiz you want to take.\");\n //String chap1= input.next();\n //chap=Integer.parseInt(chap1);\n while(true){\n try{\n chap=input.nextInt();\n break;\n }catch(InputMismatchException e){\n System.out.println(\"Invalid Input. Please Enter your choice again.\");\n input.nextLine();\n }\n }\n if(chap>no_of_chapters){//If the user enters some wrong chapter_no then we'll call this function again and ask his/her to choose.\n System.out.println(\"You entered a wrong choice of Chapter.\");\n chapter=choose_among_the_chapters_of_the_subject(subject, semester);\n }else{\n if(a[chap-1]==0){\n chapter=chap;\n }else{\n System.out.println(\"You cannot attemp a quiz twice. Choose another chapter.\");\n chapter=choose_among_the_chapters_of_the_subject(subject, semester);\n }\n }\n chapter_read.close();\n return chapter;\n }", "public static void main(String[] args) {\n Learner[] learners = new Learner[2];\n learners[0] = new Student(0, \"batman\");\n learners[1] = new Student(1, \"spiderman\");\n\n Instructor instructor = new Instructor(500, \"Obama\");\n\n //instructor.lecture(learners, 3);\n instructor.teach(learners[0], 2); //outputs 2 because instructor taught for 2 hours\n System.out.println(learners[1].getTotalStudyTime()); //output 0 because this student hasnt learned anything\n\n\n }", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "@Test\r\n\t public void hasSubmitted1() {\n\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t // this.instructor.addHomework(\"sean\", \"ecs60\", 2017, \"p1\");\r\n\t this.student.submitHomework(\"gurender\", \"p1\", \"abc\", \"ecs60\", 2017);\r\n\t // assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2018));\r\n\t\t assertFalse(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017));\r\n\t }", "@Test\r\n\t public void hasSubmitted2() {\n\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t this.instructor.addHomework(\"sean\", \"ecs60\", 2017, \"p1\");\r\n\t this.student.submitHomework(\"gurender\", \"p1\", \"abc\", \"ecs61\", 2017); \r\n\t assertFalse(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs61\", 2017));\r\n\t }", "public static void main(String[] args) {\n\n Scanner input = new Scanner(System.in);\n\n ArrayList<Student> studentList = new ArrayList<Student>();\n ArrayList<Teacher> teacherList = new ArrayList<Teacher>();\n ArrayList<Courses> courseList = new ArrayList<Courses>();\n ArrayList studentCourseRegistered = new ArrayList();\n ArrayList teacherCourseRegistered = new ArrayList();\n long studentId = 101;\n long teacherId = 10100;\n long courseId = 1010010;\n boolean studentMoreCourse = false;\n boolean teacherMoreCourse = false;\n\n\n do {\n System.out.print(\"\\n\\n 1. Add Student\\n 2. Add Teacher\\n 3. Add Course\\n 4. List of students\\n 5. List of Teacher\\n 6. List of Courses\\n\");\n\n switch (input.nextInt()) {\n case 1:\n Student student = new Student();\n\n\n System.out.print(\"First Name: \");\n student.setFirstName(input.next());\n\n System.out.print(\"Last Name: \");\n student.setLastName(input.next());\n\n System.out.print(\"e-mail: \");\n student.setEmailAddress(input.next());\n\n do {\n\n System.out.println(\"Enter the course you want to register? \");\n String course = input.next();\n studentCourseRegistered.add(course);\n System.out.print(\"Do you want to add more? (y/n)\");\n if (input.next().equalsIgnoreCase(\"y\")) {\n studentMoreCourse = true;\n } else {\n student.setCourseList(studentCourseRegistered);\n System.out.println(\"--> \" + studentCourseRegistered);\n studentMoreCourse = false;\n break;\n }\n } while (studentMoreCourse);\n\n student.setId(studentId);\n studentId++;\n studentList.add(student);\n break; // optional\n\n case 2:\n Teacher teacher = new Teacher();\n\n System.out.print(\"First Name: \");\n teacher.setFirstName(input.next());\n\n System.out.print(\"Last Name: \");\n teacher.setLastName(input.next());\n\n System.out.print(\"e-mail: \");\n teacher.setEmailAddress(input.next());\n do {\n ArrayList courseRegistered = new ArrayList();\n System.out.print(\"Enter the course you teaching: \");\n String course = input.next();\n teacherCourseRegistered.add(course);\n System.out.print(\"Are you teaching more course? (y/n)\");\n if (input.next().equalsIgnoreCase(\"y\")) {\n teacherMoreCourse = true;\n } else {\n teacher.setCourseList(teacherCourseRegistered);\n teacherMoreCourse = false;\n break;\n }\n } while (teacherMoreCourse);\n teacher.setId(teacherId);\n teacherId++;\n\n teacherList.add(teacher);\n break; // optional\n\n case 3:\n Courses course = new Courses();\n\n System.out.print(\"Course Name: \");\n course.setCourseName(input.next());\n\n System.out.print(\"ID: \");\n course.setId(courseId);\n courseId++;\n courseList.add(course);\n break; // optional\n\n case 4:\n System.out.println(\"List of Students\");\n for (Student stList : studentList) {\n System.out.println(\"ID Number: \" + stList.getId() + \"\\n\" + \"First Name: \" + stList.getFirstName() + \"\\n\" + \"Last Name: \" + stList.getLastName() + \"\\n\" + \"Email: \" + stList.getEmailAddress());\n\n ArrayList stCour = stList.getCourseList();\n\n System.out.print(\"Takes: \");\n for (int i = 0; i < stCour.size(); i++) {\n System.out.print(stCour.get(i)+\" \");\n }\n }\n\n break; // optional\n case 5:\n System.out.println(\"List of Teachers\");\n for (Teacher tList : teacherList) {\n System.out.println(\"ID Number: \" + tList.getId() + \"\\n\" + \"First Name: \" + tList.getFirstName() + \"\\n\" + \"Last Name: \" + tList.getLastName() + \"\\n\" + \"Email: \" + tList.getEmailAddress() + \"\\n\");\n\n ArrayList stCour = tList.getCourseList();\n\n for (int i = 0; i < stCour.size(); i++) {\n System.out.print(stCour.get(i));\n }\n }\n break; // optional\n\n case 6:\n System.out.println(\"List of Courses\");\n for (Courses cList : courseList) {\n System.out.println(\"Course ID Number: \" + cList.getId() + \"\\n\" + \"Course Name: \" + cList.getCourseName() + \"\\n\");\n }\n break; // optional\n // You can have any number of case statements.\n default: // Optional\n\n }\n } while (true);\n }", "public boolean passed(){\n if (totalMark() == -1) {\n throw new IllegalArgumentException(\"Not enough marks to evaluate student\"); \n } else if (totalMark() >= 50){\n return true;\n }else{\n return false;\n }\n }", "public boolean isPerson (String lemma){\n \n if (lemma.equals(\"man\")){\n return true;\n }\n\n if (this.gNet != null){\n\n List < Synset > synsets ;\n synsets = this.gNet.getSynsets(lemma);\n /*\n * check if synsnet is empty, if not empty, just continue with the block below\n * else, run some morphological analysis, and retry synset.\n * \n * This only covers the person filter. Also need to cover what is and is not a subject expression\n */\n for (Synset synset: synsets){\n List<List<Synset>> hypernyms = synset.getTransRelatedSynsets(ConRel.has_hypernym);\n for (List<Synset> hypernym: hypernyms){\n for (Synset s: hypernym){\n // ID for human / person, not living being in general and ID for group\n if (s.getId() == 34063 || s.getId() == 22562){\n return true;\n }\n }\n\n }\n }\n return false;\n }\n return false;\n }", "boolean hasReqardTypeThirty();", "public SleepingTeacherAssistant(int numStudents) {\r\n // Spawn the TA thread.\r\n new Thread(new TeachingAssistant()).start();\r\n \r\n // Spawn the student threads.\r\n for (int i = 0; i < numStudents; i++)\r\n new Thread(new Student()).start();\r\n }", "public void test_ninjutsu()\n {\n if(this.strength>10) \n System.out.println(\"test ninjustsu reussi!\");\n\n else System.out.println(\"test ninjustsu perdu!\");;\n }", "public void eisagwgiSintagis() {\n\t\t//Elegw ean mporei na eisaxthei suntagi\n\t\tif(numOfMedicine != 0 && numOfDoctors != 0 && numOfPatient != 0 && numOfPrescription < 1000) \n\t\t{\n\t\t\ttmp_1 = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn giatrwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA IATROU: \");\n\t \t \tdoctor[i].print();\n\t \t \tSystem.out.println();\n\t\t\t}\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston giatro pou egrapse thn syntagh\n\t\t\ttmp_1 = sir.readPositiveInt(\"EPILEKSTE TON GIATRO POU EGGRAPSE THN SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o giatros pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors - 1)\n\t \t {\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"DEN YPARXEI GIATROS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\ti = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn asthenwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfPatient; i++)\n\t\t {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA ASTHENOUS: \");\n\t patient[i].print();\n\t System.out.println();\n\t\t }\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston as8enh gia ton opoio proorizetai i syntagh\n\t\t\ti = sir.readPositiveInt(\"EPILEKSTE TON ASTHENH GIA TON OPOIO PROORIZETAI H SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o as8enhs pou edwse o xristis\n\t\t\twhile(i < 0 || i > numOfPatient - 1)\n\t \t {\n\t\t\t\ti = sir.readPositiveInt(\"DEN YPARXEI ASTHENHS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\t// O xristis eisagei tn synoliko ar8mo farmakwn pou 8a exei h syntagh\n\t\t\tSystem.out.println();\n\t\t\ttmp_2= sir.readPositiveInt(\"EISAGETAI TON ARITHMO TWN FARMAKWN POU EPITHUMEITAI NA EXEI H SYNTAGH(1-6): \");\n\t\t\t// Elegxw an o ari8mos twn farmakwn pou edwse o xristis einai egkyros\n\t\t\twhile(tmp_2 < 0 || tmp_2 > 6)\n\t \t {\n\t\t\t\ttmp_2 = sir.readPositiveInt(\"PARAKALW KSANAEISAGETAI SYNOLIKO ARITHMO FARMAKWN(1-6): \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t// Apo8ikeuw tis times ston constructor Syntagi\n\t\t\tprescription[numOfPrescription] = new Syntagi(doctor[tmp_1], patient[i], sir.readDate(\"\\nEISAGETAI THN HMEROMHNIA EGGRAFHS THS SYNTAGHS: \"), tmp_2);\n\t\t\t\n\t\t\tprescription[numOfPrescription].dimiourgiaPinakaFarmakwn(); // Kalw tin methodo auti gia na dimiourgisw ton pinaka me ton arithmo twn farmakwn pou mou edwse o xrhsths\n\t\t\t\n\t\t\t// Emfanizw to synolo twn farmakwn\n\t\t\tfor(i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tmedicine[i].print();\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < tmp_2; i++)\n \t \t{\n\t\t\t\ta = i + 1; \n\t\t\t\t// An h syntagh apoteleitai apo perissotera tou enos farmaka tote...\n\t\t\t\tif(tmp_2 != 1)\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS \" + a + \"ou FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA \" + a + \"ou FARMAKOU: \");\n \t \t \tSystem.out.println();\n \t \t \t}\n\t\t\t\t// An h syntagh apoteleitai apo ena farmako tote...\n\t\t\t\telse\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA FARMAKOU: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t// Elegxw an o ari8mos pou edwse o xristis einai egkyros\n\t\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine - 1)\n \t \t \t{\n \t \t \t\ttmp_1 = sir.readPositiveInt(\"EISAGATAI LATHOS DEDOMENA!DWSTE KSANA TIMH: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t\n\t\t\t\tprescription[numOfPrescription].gemismaPinakaFarmakwn(i, medicine[tmp_1], tmp_3); // Kalw tin methodo auti gia na gemisw ton pinaka twn farmakwn pou dimiourgisa proigoumenws\n \t \t}\n\t\t\tnumOfPrescription++;\n\t\t}\n\t\t// Elegxw pote den mporei na eisaxthei syntagh\n\t\telse\n\t\t{\n\t\t\t// An oi syntages pou exoun eisaxthei xeperasan to epitrepto orio\n\t\t\tif(numOfPrescription >= 1000)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN MPOREITAI NA EISAGETAI ALLES SYNTAGES!EXEI KALIFTHEI O MEGISTOS ARITHMOS TOUS\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi, astheneis kai farmaka sto farmakeio\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0 && numOfMedicine == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI, ASTHENEIS KAI FARMAKA WSTE NA OLOKLIRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS, ASTHENEIS KAI FARMAKA!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi kai astheneis\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI ASTHENEIS!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi kai farmaka\n\t\t\telse if(numOfDoctors == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun astheneis kai farmaka\n\t\t\telse if(numOfPatient == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi\n\t\t\telse if (numOfDoctors == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n \t\t \t// An den yparxoun astheneis\n\t\t\telse\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t}\n\t}", "private boolean estPlein() {\n return (nbAssoc == associations.length);\n }", "public String is_punctual_friendly(){\n this.get_punctuality();\n\n return friendly[this.punctuality];\n }", "private boolean shouldRegisterUniversity(Progress progress) {\n return progress.name.equals(Progress.universityRegistration)\n || progress.name.equals(Progress.universityRegistrationResponseNegative)\n || progress.name.equals(Progress.universityRegistrationCanceled);\n }", "@Override\n public boolean isStudent() {\n return false;\n }", "void pass() {\r\n if (m1 >=35 && m2>=35 && m3>=35) {\r\n System.out.println(\"pass\");\r\n } else {\r\n System.out.println(\"fail\");\r\n }\r\n }", "Boolean getPartiallyCorrect();", "@Override\n\tprotected boolean checkFeasible(int r, int c, int v, int k, int dept) {\n\t\tboolean ok = super.checkFeasible(r, c, v, k, dept);\n\t\tif(!ok) return false;\n\t\t\n\t\tJuryInfo J = jury.get(r);\n\t\t\n\t\tfor(int rid = 1; rid <= rooms.size(); rid++) if(rid != v){\n\t\t\tint[] p = J.getJuryMemberIDs();\n\t\t\tfor(int j = 0; j < p.length; j++){\n\t\t\t\t\n\t\t\t\tif(p[j] > 0){\n\t\t\t\t\t//System.out.println(\"PartitionJuriesToRoomsTeacherNotMove::checkFeasible(\" + r + \",\" + c + \n\t\t\t\t\t\t\t\t//\",\" + v + \", occTeacherRoom[\" + rid + \"].get(\" + p[j] + \") = \" + occTeacherRoom[rid].get(p[j]));\n\t\t\t\t\tif(occTeacherRoom[rid].get(p[j]) > 0) return false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// check if the number of hust, nonHust assigned to room v exceed the upperbound\n\t\tint var_idx = 7*r+c;\n\t\tint nbHust = 0;\n\t\tint nbNonHust = 0;\n\t\tfor(int p = 0; p < 5; p++){\n\t\t\tif(x[r*7+p] > 0){\n\t\t\t\tint tid = x[r*7+p];\n\t\t\t\tif(p == 0 || p == 4){\n\t\t\t\t\tif(!nonHustOfRoom[v].contains(tid)) nbNonHust++;\n\t\t\t\t}else{\n\t\t\t\t\tif(!hustOfRoom[v].contains(tid)) nbHust++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(hustOfRoom[v].size() + nbHust > maxHustOfRoom.get(v)) ok = false;\n\t\t//if(!ok && k >= dept) System.out.println(\"TRY(\" + k + \"), var_idx = \" + var_idx + \", r = \" + r + \", c = \" + c + \", v = \" + v + \n\t\t\t\t//\", FALSE hustOfRoom[\" + v + \"].sz = \" + hustOfRoom[v].size() + \", nbHust = \" + nbHust);\n\t\tif(nonHustOfRoom[v].size() + nbNonHust > maxNonHustOfRoom.get(v)) ok = false;\n\t\t//if(!ok && k >= dept) System.out.println(\"TRY(\" + k + \"), var_idx = \" + var_idx + \", r = \" + r + \", c = \" + c + \", v = \" + v + \n\t\t\t\t//\", FALSE nonHustOfRoom[\" + v + \"].sz = \" + nonHustOfRoom[v].size() + \", nbNonHust = \" + nbNonHust);\n\t\t\n\t\treturn ok;\n\t}", "public static void main(String[] args) throws IOException {\n Scanner s = new Scanner(System.in);\n int t = Integer.parseInt(s.nextLine());\n for(int i=1;i<=t;i++){\n int n = Integer.parseInt(s.nextLine());\n Set<String> a = new HashSet<>();\n\n for(int j=0;j<n;j++) {\n String str = s.nextLine();\n if(str.equals(\"easy-medium\"))\n str=\"medium\";\n else if(str.equals(\"medium-hard\"))\n str=\"hard\";\n a.add(str);\n }\n System.out.println(a.size()<5?\"No\":\"Yes\");\n /*int a1=0,a2=0,a3=0,a4=0,a5=0;\n for(int k=0;k<n;k++){\n if(a.contains(\"cakewalk\"))\n a1++;\n if(a.contains(\"simple\"))\n a2++;\n if(a[k].equals(\"easy\"))\n a3++;\n if(a[k].equals(\"easy-medium\") || a[k].equals(\"medium\"))\n a4++;\n if(a[k].equals(\"medium-hard\") || a[k].equals(\"hard\"))\n a5++;\n }\n if(a1==1&&a2==1&&a3==1&&a4==1&&a5==1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n*/\n }\n }", "protected abstract boolean canGenerateScore();", "public static void main(String[] args){\n \n Scanner input=new Scanner(System.in);\n String modality,decision;\n short length=0;\n Questions thisSession=new Questions();\n System.out.println(\"\\nWelcome. This program is your personal teacher.\\nEach time you need to study for any subject, your teacher will help you.\"\n +\"\\nTo start you need to create your question set.\");\n thisSession.createQuestions(input);\n\n do{ \n modality=changeModality(input);\n switch(modality){\n \n case \"1\":\n System.out.println(\"Flaschard initializing...\");\n System.out.println(\"\\nWelcome to Flashcards!\" );\n learnWithFlaschcards(input, modality, thisSession);\n break;\n case \"2\":\n System.out.println(\"Number mania initializing...\"+\n \"\\nWelcome to Number Mania!\");\n numberManiaDifficulty(input);\n break;\n case \"3\":\n System.out.println(\"Russian roulette initializing...\"+\n \"\\nWelcome to Russian Roulette!\");\n russianRoulette(input, thisSession);\n break;\n case \"4\":\n System.out.println(\"Hangman Initializing...\"+\n \"\\nWelcome to Hangman!\");\n hangMan(input, thisSession);\n break;\n case \"5\":\n System.out.println(\"Rock, Paper, Scissor Initializing...\"+\n \"\\nWelcome to R.P.S!\");\n rPS(input, thisSession);\n break;\n case \"6\":\n thisSession.createQuestions(input);\n break;\n case \"exit\":\n System.out.println(\"Closing all current processes...\\n\"+\n \"Closing scanner...\");\n input.close();\n System.exit(400);\n break;\n default:\n System.out.println(\"Ingrese una opcion valida\");\n input.next();\n }\n }while (modality!=\"exit\");\n \n }", "public String checkNewQuestions() {\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString question = \"\";\n\n\t\tquestion += testGenerator.getQuestionText(questionNo);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 1);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 2);\n\n\t\tif(numAnswers >= 3) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 3);\n\t\t} \n\t\tif(numAnswers == 4) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 4);\n\t\t}\n\t\treturn question;\n\t}", "private boolean verifyStudyName() {\n\t\t\n\t\tif (subjectNameTF.getText().isEmpty()) { \n\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Subject Name\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\tsubjectNameTF.setBackground(Color.LIGHT_GRAY);\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "void teach();", "@Test(priority = 8, retryAnalyzer = Retry.class)\n\tpublic void VPORT_15_TeacherLoginScenarios() {\n\n\t\tString schoolAndCode[];\n\t\tString trackName;\n\t\tString tickeToReadURL;// = \"https://tickettoread.com/\";[https://www.tickettoread.com/choose/index.jsp]\n\t\tif(vportData.vportURL.contains(\"qa.\"))\n\t\t{\n\t\t\t tickeToReadURL = \"https://qa.tickettoread.com/choose/index.jsp\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttickeToReadURL = \"https://www.tickettoread.com/choose/index.jsp\";\n\t\t}\n\t\t// Create Track\n\t\t// Click the Add district button and enter the required details for\n\t\t// track creation\n\t\tvportloginpage.verifyLoginPage();\n\t\tvportloginpage.enterLoginCredentials(vportData.vportUsername, vportData.vportPassword);\n\t\tvporttrackfilterPage = (VportTrackFilterPage) vportloginpage.clickSignInButton(ReturnPage.FILTERPAGE);\n\n\t\taddedittrack = vporttrackfilterPage.clickAddDistrictbutton();\n\t\taddedittrack.verfyDistrictPage();\n\t\ttrackName = addedittrack.fillTrackDetails(vportData.Districtname, vportData.Address, vportData.DistCity,\n\t\t\t\tvportData.Country, vportData.State, vportData.ZipCode, vportData.userType, vportData.productName,\n\t\t\t\tvportData.Status,vportData.Year);\n\t\tvporttrackfilterPage = addedittrack.clickSaveChanges();\n\n\t\t// Filtering the track by providing details\n\t\tvporttrackfilterPage.verifyFilterPage();\n\t\tvporttrackfilterPage.trackFilters(vportData.productName, vportData.userType, vportData.alpha, trackName);\n\t\tvporttrackfilterPage.clickUpdateButton();\n\t\tvporttrackfilterPage.verifyTrackCreation(trackName);\n\n\t\t// Create school\n\t\tvporttrackfilterPage.trackFilters(vportData.productName, vportData.userType, vportData.alpha, trackName);\n\t\tvporttrackfilterPage.clickUpdateButton();\n\t\tvporttrackfilterPage.verifyTrackCreation(trackName);\n\t\t// String schoolName = config.getProperty(\"VPORT_002_SchoolName\");\n\t\t// To navigate to master page of track\n\t\tmasterDistrictTracksPage = vporttrackfilterPage.clickOnMasterIcon(trackName);\n\t\t// To Verify master page by 'District' tab is loaded\n\t\tmasterDistrictTracksPage.verifyMasterDistrictTracksPage();\n\t\t// To Navigate to School sub tab from District tab\n\t\tmasterDistrictTracksPage.navigateToSchoolsSubtab();\n\t\t// To verify Schools sub tab is loaded\n\t\tmasterDistrictTracksPage.verifySchoolsSubtab();\n\t\t// Creating a school and store the name and Details in App.Properties\n\t\tschoolAndCode = masterDistrictTracksPage.CreateSchool(vportData.schoolName, vportData.Code, vportData.Address1,\n\t\t\t\tvportData.SchoolCity, vportData.zipCode);\n\t\t// verifying school is created correctly with the given data\n\t\t// (data+random)\n\t\tmasterDistrictTracksPage.verifySchoolDetails(schoolAndCode[0], schoolAndCode[1], vportData.SchoolCity);\n\n\t\t// Activating School\n\t\tvporttrackfilterPage = masterDistrictTracksPage.navigateToFiltersPage();\n\t\t// To click on Track name to open track and it returns Contacts page\n\t\tdistrictTrackContactsPage = vporttrackfilterPage.clickonTrackName(trackName);\n\t\t// To verify Contacts page is loaded\n\t\tdistrictTrackContactsPage.verifyDistrictTrackContactsPage(trackName);\n\n\t\t// to click on School Tracks tab to navigate to SchoolTracks page and it\n\t\t// returns school tracks page object\n\t\tdistrictTrackSchoolTracksPage = districtTrackContactsPage.clickSchoolTrackstab();\n\t\t// To verify schoolTracks page is loaded\n\t\tdistrictTrackSchoolTracksPage.verifySchoolTracksTab(trackName);\n\t\t// To find a required school to activate from the list of schools\n\t\tdistrictTrackSchoolTracksPage.findSchool(schoolAndCode[0]);\n\t\t// Verifies Inherit buttons are disabled before activating school\n\t\tdistrictTrackSchoolTracksPage.verifyInheritRadiobuttonsStatus(schoolAndCode[0], false);\n\t\t// To activate the school\n\t\tdistrictTrackSchoolTracksPage.activateSchoolAndSave(schoolAndCode[0]);\n\t\t// Verifies Inherit buttons are enabled after activating school\n\t\tdistrictTrackSchoolTracksPage.verifyInheritRadiobuttonsStatus(schoolAndCode[0], true);\n\n\t\t// Create teacher and Add classes to the teacher\n\t\tdistrictAdminHomepage = districtTrackSchoolTracksPage.clickPIIcon(trackName);\n\t\t// Selects school from school dropdown\n\t\tdistrictAdminHomepage.selectSchoolFromDropdown(schoolAndCode[0]);\n\t\t// Navigate to My school tab after selecting a class from classes\n\t\t// dropdown and verifies it\n\t\tdistrictAdminMySchoolPage = districtAdminHomepage.clickOnMySchoolTab();\n\t\tdistrictAdminMySchoolPage.verifyMySchoolPage(schoolAndCode[0]);\n\t\t// Navigate to Teachers and classes tab and verifies it\n\t\tdistrictAdminMySchoolPage.navigateToTeachersAndClassesSubtab();\n\t\tdistrictAdminMySchoolPage.verifyTeachersAndClassesSubtab();\n\t\t// long strRandom = System.currentTimeMillis();\n\t\t// Adds teacher and edit the user name and password\n\t\tString lastname = districtAdminMySchoolPage.addTeacher(vportData.teacherLastName, vportData.teacherFirstName,\n\t\t\t\tvportData.teacherEmail);\n\t\tString teacherID = districtAdminMySchoolPage.editTeacherandSave(lastname, vportData.teacherUserId, vportData.teacherPassword);\n\n\t\t// Add classes to school and verifies schools in schools drop down and\n\t\t// classes section\n\t\t// Also add the class names to properties file\n\t\tString classes[] = districtAdminMySchoolPage.addClassesandSave(lastname, vportData.class1, vportData.class2,\n\t\t\t\tvportData.class3);\n\t\tdistrictAdminMySchoolPage.verifyAddedClasses(lastname, vportData.class1, vportData.class2, vportData.class3);\n\t\tdistrictAdminMySchoolPage.verifyClassesinClassesDropdown(lastname, vportData.class1, vportData.class2,\n\t\t\t\tvportData.class3);\n\n\t\t//Scenario 1 - TEACHER LOGIN WITHOUT STUDENTS IN THE CLASS & WITHOUT STAFF LICENSES\n\n\t\tgetDriver().get(tickeToReadURL);\n\t\tteacherLoginScenarios = new TeacherLoginScenarios(getDriver());\n\t\tteacherLoginScenarios.loginIntoAppication(teacherID);\n\t\tteacherLoginScenarios.verifyLogin(tickeToReadURL);\n\n\n\t\t//*** Pre condition for second Scenario *****\n\t\t//adding staff Licenses to the track\n\t\tgetDriver().get(vportData.vportURL);\n\t\tvportloginpage.verifyLoginPage();\t\n\t\tvportloginpage.enterLoginCredentials(vportData.vportUsername, vportData.vportPassword);\n\t\tvporttrackfilterPage = (VportTrackFilterPage) vportloginpage.clickSignInButton(ReturnPage.FILTERPAGE);\n\t\tvporttrackfilterPage.trackFilters(vportData.productName, vportData.userType, vportData.alpha, trackName);\n\t\tvporttrackfilterPage.clickUpdateButton();\n\t\tvporttrackfilterPage.verifyTrackCreation(trackName);\n\t\t// To click on Track name to open track and it returns Contacts page\n\t\tdistrictTrackContactsPage = vporttrackfilterPage.clickonTrackName(trackName);\n\t\tdistrictmaterialspage = districtTrackContactsPage.clickMaterialsTab();\n\t\tdistrictmaterialspage.verifyMaterialsPage();\n\t\tdistrictmaterialspage.verifyAvailableLicencesOnMaterialsPage();\n\t\tdistrictmaterialspage.addAndVerifyLicences(vportData.licencegradelevel, vportData.licenceseatcount,\n\t\t\t\tvportData.reasonforaddinglicence, vportData.addLicenceAlertMessage,\n\t\t\t\tvportData.reasonForCreatingLicenceImagePath);\n\t\tdistricttracktechnologypage = districtmaterialspage.clickOnTechnologyTab();\n\t\tdistricttracktechnologypage.verifyTechnologyPage();\n\t\tdistricttracktechnologypage.verifyAssessmentPlansAndEnabledRadioButtons();\n\n\t\t//Scenario 2 - Verify teacher login without students in the class \n\n\t\tgetDriver().get(tickeToReadURL);\n\t\tteacherLoginScenarios = new TeacherLoginScenarios(getDriver());\n\t\tteacherLoginScenarios.loginIntoAppication(teacherID);\n\t\tteacherLoginScenarios.verifyLogin(tickeToReadURL);\n\t}", "public static void main(String args[]) {\n boolean hasSATscore = true;\n boolean hasHighSchoolTranscript = true;\n boolean isInternational=false;\n boolean hasTOFELscore=false;\n\n /*\n * logical_step2: Check if the applicant is eligible to apply to the university\n * logical_step_details: the applicant must have a SAT score, a high school transcript and must have TOEFL score\n * if is an international student.\n * question_1: What does the following block of code do?\n * answer 1: Check if the applicant is eligible to apply to the university\n * question_2: What is the data type of the variable isElig?\n * answer 2: isElig is a Boolean data type\n * question_3: What is the value of: !isInternational. (value assigned above)\n * answer_3: the value of !isInternational is true\n * question_4: What is the output the following block of code?\n * answer_4: the code displays the following statement \"You eligibility requirement has been evaluated to :true\"\n */\n\n /*\n * stm_comment: isElig contains result of logical operation between the variables. logical and (&&), logical or(||) and not operator is used \n * question_1: Please explain how the value of isElig evaluated.\n * answer_1: isElig contains result of logical operation between the variables\n * question_2: Please state the operators used in the code block below.\n * answer_2: logical and (&&), logical or(||) and not operator is used .\n *\n */\n\n boolean isElig = hasSATscore && hasHighSchoolTranscript && (!isInternational || (isInternational && hasTOFELscore));\n System.out.println(\" Your eligibility requirement has been evaluated to :\" +isElig );\n\n\n }", "private void obtainProblem(){\n followers = frame.getFollowers();\n followers = Math.min(followers, CreatureFactory.getStrongestMonster().getFollowers() * Formation.MAX_MEMBERS);\n maxCreatures = frame.getMaxCreatures();\n heroes = frame.getHeroes();//is this field needed?\n prioritizedHeroes = frame.getHeroes(Priority.ALWAYS);\n //create boss formation\n LinkedList<Creature> list = new LinkedList<>();\n list.add(frame.getBoss());\n bossFormation = new Formation(list);\n containsRandomBoss = bossFormation.containsRandomHeroes();\n yourRunes = frame.getYourRunes();\n for (int i = 0; i < Formation.MAX_MEMBERS; i++){\n //System.out.println(yourRunes[i]);\n if (!(yourRunes[i] instanceof Nothing)){\n hasRunes = true;\n //System.out.println(\"hasRunes\");\n break;\n }\n }\n \n NHWBEasy = heroes.length == 0 && prioritizedHeroes.length == 0 && frame.getBoss().getMainSkill().WBNHEasy() && !hasRunes && !containsRandomBoss;\n \n }", "boolean isSetSubject();", "public boolean hasSpecial(){\n return (alg.containSpecial(input.getText().toString()));\n }", "public boolean tienePapel()\n {\n //COMPLETE\n return this.hojas > 0;\n }", "public static void main(String[] args) {\n Student student1 = new Student(12106078756L, \"Ole Pettersen\",\n \"Storgt 3, 7001 Trondheim\", 1234567L);\n Student student2 = new Student(12125678756L, \"Per Hansen\",\n \"Storgt 13, 7001 Trondheim\", 1234557L);\n Ansatt læreren = new Ansatt(15107078056L, \"Hanne Hansen\",\n \"Storgt 13, 7001 Trondheim\", 50);\n Personregister registeret = new Personregister();\n registeret.registrerNyPerson(læreren);\n registeret.registrerNyPerson(student1);\n registeret.registrerNyPerson(student2);\n registeret.registrerNyttFag(12106078756L, \"HiST-LO172D\"); // student1\n registeret.registrerNyttFag(12125678756L, \"HiST-LO451D\"); // student2\n student2.registrerNyttFag(\"HiST-LO451D\");\n student1.settKarakter(\"HiST-LO451D\", 'C');\n student2.settKarakter(\"HiST-LO451D\", 'B');\n registeret.settKarakter(12106078756L, \"HiST-LO445D\", 'F');\n\n char søk1 = registeret.finnKarakter(12125678756L, \"HiST-LO172D\"); // ugyldig fagnr for denne studenten\n char søk2 = registeret.finnKarakter(12125678756L, \"HiST-LO451D\");\n char søk3 = registeret.finnKarakter(12106078756L, \"HiST-LO451D\");\n char søk4 = registeret.finnKarakter(12106078756L, \"HiST-LO445D\");\n registeret.endreLønn(15107078056L, 52); // endrer lærerlønnen via registeret\n\n if (søk1 == 'Y' && søk2 == 'B' && søk3 == 'C' && søk4 == 'F' && læreren.getLønnstrinn() == 52) {\n System.out.println(\"Testkjøring ok.\");\n } else {\n System.out.println(\"Testkjøring ikke ok. Skal være Y B C F 52, det var: \"\n + søk1 + \" \" + søk2 + \" \" + søk3 + \" \" + søk4 + \" \" + læreren.getLønnstrinn());\n }\n }", "boolean hasDrugLumn();", "boolean hasDrugLumn();", "public static void main(String[] args) {\nint tamil = 75;\r\nint english = 50;\r\nif((tamil>=35)||(english>=35))\r\n System.out.println(\"You are passed in english and tamil\");\r\nelse\r\n\tSystem.out.println(\"You are failed!\");\r\n\t}", "private boolean canAccept(Planet planet, Person person) {\n Skillset peS = person.getSkills();\n Skillset plS = planet.getSkills();\n return peS.getAgriculture() >= plS.getAgriculture() && peS\n .getMedicine() >= plS.getMedicine() && peS.getTechnology() >= plS\n .getTechnology();\n }", "private boolean hardCode(int index, boolean isCourse)\n\t{\n\t\tboolean isValid = testValue;\n\n\t\tif(isCourse)\n\t\t{\n\t\t\tCourses course = parser.coursesVector.get(index);\n\t\t\t\n\t\t\t//for the CPSC 813/913 courses\t\n\t\t\tif((course.getCourseNumber().equals(\"813\") || course.getCourseNumber().equals(\"913\")) && course.getDepartment().equals(\"CPSC\"))\n\t\t\t{\n\t\t\t\tisValid = child.assign13(index, parser.labSlotsVector.get(course.getPartAssign().get(0))) && course.constr(child, index) && parser.labSlotsVector.get(course.getPartAssign().get(0)).constr(child, index, !isCourse);\t\t\t\t\n\t\t\t}\n\n\t\t\telse if (course.getPartAssign().size() > 0)\n\t\t\t{//do the partial assignment\n\t\t\t\tisValid = child.assign(index, parser.courseSlotsVector.get(course.getPartAssign().get(0)), isCourse) && course.constr(child, index) && parser.courseSlotsVector.get(course.getPartAssign().get(0)).constr(child, index, isCourse);\n\t\t\t}\n\n\t\t\t//System.out.println(course);\n\t\t} \n\t\telse //its a lab\n\t\t{\n\t\t\tLabs lab = parser.labsVector.get(index) ;\n\t\t\n\t\t\tif (lab.getPartAssign().size() > 0)\n\t\t\t{//do the partial assignment\n\t\t\t\tisValid = child.assign(index, parser.labSlotsVector.get(lab.getPartAssign().get(0)), isCourse) && lab.constr(child, index) && parser.labSlotsVector.get(lab.getPartAssign().get(0)).constr(child, index, isCourse);\n\t\t\t}\t\t\n\n\t\t\t//System.out.println(lab);\n\t\t}//end if-else (not a lecture)\t\t\n\t\t\n\t\treturn isValid;\n\t}", "public boolean inflictStaffTrance() {\n /**\n * A Staff has 20% chance of inflicting trance.\n */\n if (this.getWeapon() instanceof Staff) {\n int seed = 100;\n Random random = new Random(seed);\n int value = random.nextInt(seed);\n return value < 21;\n }\n\n return false;\n }", "public boolean muerteInesperada() {\n r = new Random();\r\n return Float.compare(r.nextFloat(), probMuerte) <= 0;\r\n }", "public static void target() {\n Scanner escaner = new Scanner(System.in);\n Random aleatorio = new Random();\n int cantidadParticipantesTarget;\n int decisionTiro;\n int probabilidadesTiro;\n int[] punteosParticipantesTarget = new int[4];\n String[] nombresParticipantesTarget = new String[4];\n boolean decisionNumeroParticipantes;\n\n do {\n System.out.println(\"Bienvenido al juego de Target\");\n System.out.println(\"El juego consiste en tiros hacia un tablero de 5 zonas\");\n System.out.println(\"Zonas: 0,10,20,30,40 puntos respectivamente\");\n System.out.println(\"El juego se basa en probabilidades y la descripciones del tiro\");\n System.out.println(\"Puedes elegir el tipo que creas mas conveniente para ganar\");\n System.out.println(\"Gana el primero a llegar a 200 puntos, y si ambos llegan al mismo tiempo ambos ganan\");\n System.out.println(\"Intenta jugarlo\");\n System.out.println(\" xxxxxxxxxxxxxxx \");\n System.out.println(\" x x \");\n System.out.println(\" xx xxxxxxxxxxxxx xx \");\n System.out.println(\" xxx x x xxx \");\n System.out.println(\" xxxx x xxxxxxxxx x xxxx \");\n System.out.println(\" xxxxx x x x x xxxxx \");\n System.out.println(\" xxxxx x x x x x xxxxx \");\n System.out.println(\" xxxxx x x x x xxxxx \");\n System.out.println(\" xxxx x xxxxxxxxx x xxxx \");\n System.out.println(\" xxx x x xxx \");\n System.out.println(\" xx xxxxxxxxxxxxx xx \");\n System.out.println(\" x x \");\n System.out.println(\" xxxxxxxxxxxxxxx \");\n System.out.println(\"Cuantos jugadores participaran? (minimo 1 persona, maximo 4 personas)\");\n cantidadParticipantesTarget = Integer.parseInt(escaner.nextLine());\n\n //Ciclo y condicion que nos permite saber si la cantidad de jugadores estan establecidas en el limite\n if ((cantidadParticipantesTarget > 0) && (cantidadParticipantesTarget < 5)) {\n decisionNumeroParticipantes = true;\n } else {\n System.out.println(\"Parece que has salido del rango de participantes admitidos, vuelve a ingresar\");\n decisionNumeroParticipantes = false;\n }\n\n } while (decisionNumeroParticipantes == false);\n\n System.out.println(\"\\n\\n\\n\\n\");\n //ingresamos los nombres y los asignamos a nuestra variable global, depende de cuantos jugadores esten jugando esa sera su magnitud\n for (int contador = 0; contador < cantidadParticipantesTarget; contador++) {\n System.out.println(\"Ingrese el Nombre del Jugador No.-\" + (contador + 1));\n nombresParticipantesTarget[contador] = asignarNombres();\n }\n System.out.println(\"\\n\\n\\n\\n\");\n\n decisionNumeroParticipantes = true;\n\n//Ciclo que empieza el juego en General, no terminara hasta que decisionNumeroParticipantes = false\n while (decisionNumeroParticipantes == true) {\n\n //Este for nos indica los turnos de los participantes, con magnitud de cantidadParticipantesTarget que son los participantes establecidos\n for (int turno = 0; turno < cantidadParticipantesTarget; turno++) {\n System.out.println(\"\\n\\nTURNO DE \" + nombresParticipantesTarget[turno]);\n System.out.println(\"Tipo de Tiro Descripcion Resultado del Tiro\");\n System.out.println(\"(Ingresa el valor mostrado) \\n\");\n System.out.println(\" 1 Rapido con el dardo arriba Al centro o fallo completo\");\n System.out.println(\" del brazo \");\n System.out.println(\" 2 Controlado con el dardo arriba En zonas de 10,20 o 30 puntos\");\n System.out.println(\" del brazo\");\n System.out.println(\" 3 Con el dardo bajo el brazo En cualquier zona incluyendo fallo completo\");\n decisionTiro = Integer.parseInt(escaner.nextLine());\n\n //decision del tipo de tiro segun la descripcion\n //para decidir estos tiros utilizamos la variable probabilidadesTiro para determinar el destino del tiro y lo asignamos segun cada caso\n switch (decisionTiro) {\n\n case 1:\n System.out.println(nombresParticipantesTarget[turno] + \" ha usado tipo de tiro 1\");\n probabilidadesTiro = aleatorio.nextInt(2) + 1;\n if (probabilidadesTiro == 1) {\n System.out.println(\"FUE TIRO AL CENTRO, PERFECTO!\");\n System.out.println(\"Obtienes 40 puntos\");\n punteosParticipantesTarget[turno] += 40;\n } else {\n System.out.println(\"OH NO!, HAS FALLADO POR COMPLETO EL TIRO\");\n System.out.println(\"Obtienes 0 puntos\");\n }\n\n break;\n\n case 2:\n probabilidadesTiro = aleatorio.nextInt(3) + 1;\n System.out.println(nombresParticipantesTarget[turno] + \" ha usado tipo de tiro 2\");\n\n switch (probabilidadesTiro) {\n case 1:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 10 PUNTOS, BIEN HECHO!\");\n punteosParticipantesTarget[turno] += 10;\n break;\n\n case 2:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 20 PUNTOS, MUY BIEN HECHO!\");\n punteosParticipantesTarget[turno] += 20;\n break;\n\n default:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 30 PUNTOS, GENIAL!\");\n punteosParticipantesTarget[turno] += 30;\n }\n break;\n\n default:\n System.out.println(nombresParticipantesTarget[turno] + \" ha usado tipo de tiro 3\");\n probabilidadesTiro = aleatorio.nextInt(5) + 1;\n\n switch (probabilidadesTiro) {\n case 1:\n System.out.println(\"FUE TIRO AL CENTRO, PERFECTO!\");\n System.out.println(\"Obtienes 40 puntos\");\n punteosParticipantesTarget[turno] += 40;\n break;\n\n case 2:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 30 PUNTOS, GENIAL!\");\n punteosParticipantesTarget[turno] += 30;\n break;\n\n case 3:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 20 PUNTOS, MUY BIEN HECHO!\");\n punteosParticipantesTarget[turno] += 20;\n break;\n\n case 4:\n System.out.println(\"HAS ACERTADO EN LA ZONA DE 10 PUNTOS, BIEN HECHO!\");\n punteosParticipantesTarget[turno] += 10;\n break;\n\n default:\n System.out.println(\"OH NO!, HAS FALLADO POR COMPLETO EL TIRO\");\n System.out.println(\"Obtienes 0 puntos\");\n }\n }\n }\n\n//Despues de cada turno mostramos la tabla de jugadores, el punteo que llevan , y su estado es decir si han ganado o no\n System.out.println(\"\\n\\n\");\n System.out.println(\" Jugador Punteo Estado\");\n for (int contador = 0; contador < cantidadParticipantesTarget; contador++) {\n System.out.print(nombresParticipantesTarget[contador] + \" \" + punteosParticipantesTarget[contador]);\n\n if (punteosParticipantesTarget[contador] >= 200) {\n System.out.println(\" HA GANADO\");\n decisionNumeroParticipantes = false;\n asignarPunteo(1, nombresParticipantesTarget[contador]);\n } else {\n System.out.println(\" NO HA GANADO\");\n }\n\n }\n escaner.nextLine();\n\n }\n\n System.out.println(\"FIN DEL JUEGO\");\n\n }", "@Test\r\n\t public void hasSubmitted3() {\n\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t this.instructor.addHomework(\"sean\", \"ecs60\", 2017, \"p1\");\r\n\t this.student.submitHomework(\"gurender\", \"p1\", \"abc\", \"ecs60\", 2017);\r\n\t this.student.dropClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertTrue(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017));\r\n\t }", "public boolean assignManuscript(Manuscript theManuscript){\r\n\t\tboolean wasAssigned = true;\r\n\t\t\r\n\t\t//Condition 1: check if Reviewer is a coauthor on this manuscript \r\n\t\t//Condition 2: check if Reviewer is over review limit\r\n\t\t\r\n\t\t//separate these tests and throw exceptions\r\n\t\t//also need to add a check for if this reviewer is already assigned to this manuscript.\r\n\t\tif ((isReviewerAnAuthor(theManuscript) != true) || (isOverReviewLimit(theManuscript.getConferenceID()) == true)) {\r\n\t\t\twasAssigned = false;\t\t\t\r\n\t\t} else {\r\n\t\t\tif(isReviewerAssignedToConference(theManuscript.getConferenceID()) == false) {\r\n\t\t\t\tHashSet<UUID> currentManuList = this.myConferencesAndAssignedManuscriptsList.get(theManuscript.getConferenceID());\r\n\t\t\t\t// TODO: check if manuscript already exists within list\r\n\t\t\t\tcurrentManuList.add(theManuscript.getMyID());\r\n\t\t\t\t// save manuscript to DB\r\n\t\t\t\tnew ManuscriptDatabase().saveManuscriptToDatabase(theManuscript);\r\n\t\t\t\t// add manuscript to associated conference of manuscript and save to DB, save account to DB as well\r\n\t\t\t\tthis.myConferencesAndAssignedManuscriptsList.put(theManuscript.getConferenceID(), currentManuList);\r\n\t\t\t\tAccount updatedAcct = new AccountDatabase().getAccountByReviewer(this);\r\n\t\t\t\tupdatedAcct.setReviewer(this);\r\n\t\t\t\twasAssigned = true;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tHashSet<UUID> newManuList = new HashSet<UUID>();\r\n\t\t\t\tnewManuList.add(theManuscript.getMyID());\r\n\t\t\t\t// save manuscript to DB\r\n\t\t\t\tnew ManuscriptDatabase().saveManuscriptToDatabase(theManuscript);\r\n\t\t\t\t// add manuscript to associated conference of manuscript and save to DB, save account to DB as well\r\n\t\t\t\tthis.myConferencesAndAssignedManuscriptsList.put(theManuscript.getConferenceID(), newManuList);\r\n\t\t\t\tAccount updatedAcct = new AccountDatabase().getAccountByReviewer(this);\r\n\t\t\t\tupdatedAcct.setReviewer(this);\r\n\t\t\t\twasAssigned = true;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn wasAssigned;\r\n\t}", "@Override\n\tpublic int insertTeacher(Sy05 record) {\n\t\treturn 0;\n\t}", "@Test\n\tpublic void testAdicionaDisciplinaAoTutor() {\n\t\t\n\t\ttutorUm.adicionarDisciplina(\"Teoria dos Grafos\", 5);\n\t\n\t}", "public static void main(String[] args) {\n\t\tScanner keyboard= new Scanner(System.in);\r\nSystem.out.print(\"Enter a number:\");\r\nString word1,word2 = null,word3 = null,word4; //Create four string for four outputs\r\nint number = keyboard.nextInt();\r\nif(number%15==0){ word1=\"special\";}//check weather it is special\r\nelse { word1=\"not special\";}\r\nif( number>999){word3=\"big\";}//check weather it is big\r\nelse{word3=\"not big\";}\r\nif(number%5==0&&number%6==0&&number%18!=0){word2=\"weird\";} //check weather it is weird\r\nelse{word2=\"not weird\";}\r\nif(word3==\"big\"||word2==\"weird\"){word4=\"scary\";}//check weather it is scary\r\nelse{word4=\"not scary\";}\r\n \r\n// strings ae compared in oder to check the all possible outcome combinations\r\n//Then outcomes are printed as given in the sample test cases\r\n\r\nif(word1==\"special\" && word4!=\"scary\"){\r\n\tSystem.out.println(number+\" is \"+\" \"+word1+\", but \"+word4+\".\");\r\n}\r\nif(word1==\"special\" && word3!=\"big\"&& word2==\"weird\"){\r\n\tSystem.out.println(number+\" is \"+word1+\", \"+word2+\", \"+word4+\", but \"+word3+\".\");\r\n}\r\nif(word1==\"special\" && word3==\"big\" && word2!=\"weird\"){\r\n\tSystem.out.println(number+\" is \"+word1+\" , \"+word3+\", \"+word4+\", but \"+word2+\".\");\r\n}\r\nif(word1!=\"special\" && word3==\"big\" && word2!=\"weird\"){\r\n\tSystem.out.println(number+\" is \"+word3+\", \"+word4+\", but \"+word2+\".\");\r\n}\r\nif(word1!=\"special\" && word3!=\"big\" && word2==\"weird\"){\r\n\tSystem.out.println(number+\" is \"+word2+\", \"+word4+\", but \"+word3+\".\");\r\n}\r\nif(word1!=\"special\" && word3!=\"big\" && word2!=\"weird\"){\r\n\tSystem.out.println(number+\" is \"+word4+\".\");\r\n}\r\nif(word1==\"special\" && word3==\"big\" && word2==\"weird\"){\r\n\tSystem.out.println(number+\" is \"+word1+\", \"+word3+\", \"+word2+\", \"+word4+\".\");\r\n}\r\n\r\n\r\nkeyboard.close();\r\n\t}", "public String printAcceptance(int school){\n int letterPicker = (int) (Math.random()*10);\n String accLetter = acceptanceLetter[letterPicker];\n if (school == 0){\n accLetter += \"Greendale..?\";\n }\n if (school == 1){\n accLetter += \"Harvard!\";\n }\n if (school == 2){\n accLetter += \"MIT!\";\n }\n return accLetter;\n }", "public static boolean hasTeacherAccess(final String username)\n\t{\n\t\tif (!username2accesses.containsKey(username)) return false;\n\t\tfinal List<Access> accesses = username2accesses.get(username);\n\t\tfor (final Access access : accesses)\n\t\t{\n\t\t\tRole role = access.getRole();\n\t\t\tif (role.equals(Role.DEAN) || role.equals(Role.DEAN_OF_STUDIES) || role.equals(Role.LECTURER))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean isUtilityFailure(){\n\n if (this.selectedTrain.getAC() == -1||\n this.selectedTrain.getHeat() == -1 || this.selectedTrain.getLights() == -1\n || this.selectedTrain.getLeftDoor() == -1 || this.selectedTrain.getRightDoor() == -1){\n return true; // there is a utility failure..\n }\n\n return false; // there isn't a utility failure\n }", "@Override\n public boolean isSubject() {\n return false;\n }", "public void firstSem4() {\n chapter = \"firstSem4\";\n String firstSem4 = \"You're sitting at your computer - you can't sleep, and your only companions are \"+student.getRmName()+\"'s \" +\n \"snoring and Dave Grohl, whose kind face looks down at you from your poster. Your head is buzzing with everything you've \" +\n \"seen today.\\tA gentle 'ding' sounds from your computer, and you click your email tab. It's a campus-wide message \" +\n \"from the president, all caps, and it reads as follows:\\n\\t\" +\n \"DEAR STUDENTS,\\n\" +\n \"AS YOU MAY HAVE HEARD, THERE HAVE BEEN SEVERAL CONFIRMED INTERACTIONS WITH THE CAMPUS BEAST. THESE INTERACTIONS\" +\n \" RANGE FROM SIGHTINGS (17) TO KILLINGS (6). BE THIS AS IT MAY, REST ASSURED THAT WE ARE TAKING EVERY NECESSARY \" +\n \"PRECAUTION TO ENSURE STUDENT WELL-BEING. WE ARE ALL DEDICATED TO MAKING \"+(student.getCollege().getName()).toUpperCase()+\n \" A SAFE, INCLUSIVE ENVIRONMENT FOR ALL. TO CONTRIBUTE, I ASK THAT YOU DO YOUR PART, AND REPORT ANY SIGHTINGS, MAIMINGS,\" +\n \" OR KILLINGS TO PUBLIC SAFETY WITHIN A REASONABLE AMOUNT OF TIME. ENJOY YOUR STUDIES!\\nTOODOLOO,\\nPRESIDENT DOUG\";\n getTextIn(firstSem4);\n }", "public static void main(String[] args){\n\t\tPersonalData data1= new PersonalData(1982,01,11,234567890);\n\t\tPersonalData data2= new PersonalData(1992,10,19,876543210);\n\t\tPersonalData data3= new PersonalData(1989,04,27,928374650);\n\t\tPersonalData data4= new PersonalData(1993,07,05,819463750);\n\t\tPersonalData data5= new PersonalData(1990,11,03,321678950);\n\t\tPersonalData data6= new PersonalData(1991,11,11,463728190);\n\t\tStudent student1=new Student(\"Ali Cantolu\",5005,50,data1);\n\t\tStudent student2=new Student(\"Merve Alaca\",1234,60,data2);\n\t\tStudent student3=new Student(\"Gizem Kanca\",5678,70,data3);\n\t\tStudent student4=new Student(\"Emel Bozdere\",8902,70,data4);\n\t\tStudent student5=new Student(\"Merter Kazan\",3458,80,data5);\n\n\t\t//A course (let us call it CSE141) with a capacity of 3 is created\n\t\tCourse CSE141=new Course(\"CSE141\",3);\n\n\t\t//Any 4 of the students is added to CSE141.\n\t\tif (!CSE141.addStudent(student1)) System.out.println(student1.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student2)) System.out.println(student2.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student3)) System.out.println(student3.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student4)) System.out.println(student4.toString()+ \" is not added\");\n\n\n\t\t//All students of CSE141 are printed on the screen.\n System.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n CSE141.list();\n\n //The capacity of CSE141 is increased.\n CSE141.increaseCapacity();\n\n //Remaining 2 students are added to CSE141.\n\t \tCSE141.addStudent(student4);\n\t \tCSE141.addStudent(student5);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Student with ID 5005 is dropped from CSE141.\n\t \tCSE141.dropStudent(student1);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Number of students enrolled to CSE141 is printed.\n\t \tSystem.out.println(\"\\nNumber of students enrolled to \"+CSE141.getCourseName()+\": \" + CSE141.getNumberOfStudents());\n\n\t \t//Birth year of best student of CSE141 is printed on the screen. (You should use getYear() method of java.util.Date class.)\n\t \tSystem.out.println(\"\\nBirth year of best student of CSE141 is \"+CSE141.getBestStudent().getPersonalData().getBirthDate().getYear());\n\n\t \t//A new course (let us call it CSE142) is created.\n\t \tCourse CSE142=new Course(\"CSE142\");\n\n\t \t//All students currently enrolled in CSE141 are added to CSE142. (You should use getStudents() method).\n\t \tStudent[] students = CSE141.getStudents();\n\t \tfor(int i=0;i<CSE141.getNumberOfStudents();i++)\n\t \t\tCSE142.addStudent(students[i]);\n\n\t \t//All students of CSE141 are removed from the course.\n\t \tCSE141.clear();\n\n\t \t//Student with ID 5005 is dropped from CSE141 and result of the operation is printed on the screen.\n\t \tSystem.out.println(\"\\nThe result of the operation 'Student with ID 5005 is dropped from \"+CSE141.getCourseName()+\"' is: \"+CSE141.dropStudent(student1));\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//Best student of CSE142 is dropped from CSE142.\n\t \tCSE142.dropStudent(CSE142.getBestStudent());\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//GPA of youngest student of CSE142 is printed on the screen.\n\t\tSystem.out.println(\"\\nThe Youngest Student's (\"+CSE142.getYoungestStudent()+\") GPA is \"+CSE142.getYoungestStudent().GPA());\n\n\t \t//Courses CSE141 and CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE141.getCourseName()+\":\\n\" + CSE141.toString());\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE142.getCourseName()+\":\\n\" + CSE142.toString());\n\t }", "boolean hasReqardTypeThree();", "@Override\n\tpublic void teach() {\n\t\tSystem.out.println(\"Im your math teacher\");\n\t}", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n TechnicalInformation technicalInformation0 = lovinsStemmer0.getTechnicalInformation();\n assertFalse(technicalInformation0.hasAdditional());\n }", "public boolean isAccepted1(String word) {\r\n\t return (tranzition_extended(word)==3) ;\r\n\r\n }", "public static void main(String args[]) {\n Scanner s = new Scanner(System.in);\n int T = s.nextInt();\n\n for(int i = 0; i < T; i++) {\n \n int hardness = s.nextInt();\n float carbon = s.nextFloat();\n int ts = s.nextInt();\n \n int grade = 5;\n \n boolean a = hardness > 50;\n boolean b = carbon < 0.7f;\n boolean c = ts > 5600;\n \n if (a && b && c) {\n grade = 10;\n } else if(a && b) {\n grade = 9;\n } else if(b && c) {\n grade = 8;\n } else if(a && c) {\n grade = 7;\n } else if(a || b || c) {\n grade = 6;\n }\n \n System.out.println(grade);\n }\n }", "private void checkForJudgeAndTeam(IInternalContest contest) {\n Account account = contest.getAccounts(ClientType.Type.TEAM).firstElement();\n assertFalse(\"Team account not generated\", account == null);\n assertFalse(\"Team account not generated\", account.getClientId().equals(Type.TEAM));\n \n account = contest.getAccounts(ClientType.Type.JUDGE).firstElement();\n assertFalse(\"Judge account not generated\", account == null);\n assertFalse(\"Team account not generated\", account.getClientId().equals(Type.TEAM));\n\n }", "public boolean createPermutationSchedule() {\n listOfCoursesPermutation = permutationOfCourseList(activeCourseList);\n\n boolean returnBool = true;\n for (int i = 0; i < listOfCoursesPermutation.size(); i++) {\n if (!simpleDesigner(listOfCoursesPermutation.get(i))) {\n returnBool = false;\n }\n }\n return returnBool;\n }", "public void Senority(){\r\n\t\t\r\n\t\tif (age >= 65){\r\n\t\t\tSystem.out.println(\"\\nI'm a senior citizen\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"\\nI'm not old enough to be classified as a senior by Medicare!\");\r\n\t\t}\r\n\t}", "public boolean addCourse(String user, String course){\n String[] tokens = usersRepository.getclassString(user).split(\" \");\r\n String[] courseids = new String[tokens.length];\r\n String courseid = classesRepository.getClassCourseid(course);\r\n for(int i =0; i < tokens.length; i++){\r\n courseids[i] = classesRepository.getClassCourseid(tokens[i]);\r\n }\r\n for(int f =0; f < tokens.length; f++) {\r\n if(courseids[f] == null){\r\n continue;\r\n }\r\n if(courseids[f].equals(courseid)){\r\n return false;\r\n }\r\n }\r\n //check for course space\r\n if(!classesRepository.checkCourseSpace(course)){\r\n return false;\r\n }\r\n\r\n //check here for prereqs\r\n //get student records\r\n String studentrecord = usersRepository.findUserRecords(user);\r\n String studentgrade = usersRepository.findUserGrades(user);\r\n String[] tokenrecords;\r\n String[] tokengrades;\r\n if(studentrecord==null){\r\n tokenrecords = new String[0];\r\n tokengrades = new String[0];\r\n }else{\r\n tokenrecords = studentrecord.split(\" \");\r\n tokengrades = studentgrade.split(\" \");\r\n }\r\n //get course prereq\r\n String[] prereqs = classesRepository.getCoursePrereqs(courseid);\r\n //compare all token records with course prereqs, must be in records without d or f\r\n boolean meetsreq1 = true, meetsreq2 = true;\r\n if(prereqs[0] != null){\r\n meetsreq1=false;\r\n }\r\n if(prereqs[1] != null){\r\n meetsreq2=false;\r\n }\r\n for(int s = 0; s < tokenrecords.length; s++){\r\n if(!tokengrades[s].equals(\"D\") && !tokengrades[s].equals(\"F\")){\r\n if(prereqs[0] != null){\r\n if(prereqs[0].equals(tokenrecords[s])){\r\n meetsreq1 = true;\r\n }\r\n }\r\n if(prereqs[1] != null){\r\n if(prereqs[1].equals(tokenrecords[s])){\r\n meetsreq2 = true;\r\n }\r\n }\r\n }\r\n\r\n }\r\n if(meetsreq1 && meetsreq2){\r\n usersRepository.addCourse(user, course);\r\n return true;\r\n }\r\n return false;\r\n }", "boolean hasHadithChapterNo();", "@Test\n public void testGetClassAssociatedTeacher() {\n System.out.println(\"getClassAssociatedTeacher\");\n School instance = new School();\n instance.setTeachers(teachers);\n instance.setTeacherClass(teacherClass);\n instance.setClasses(classes);\n\n assertEquals(classes, instance.getClassAssociatedTeacher(teacher));\n System.out.println(\"PASS with associated teacher\");\n\n assertEquals(0, instance.getClassAssociatedTeacher(teacher2).size());\n System.out.println(\"PASS with unassociated teacher\");\n\n System.out.println(\"PASS ALL\");\n }", "public boolean generate() {\n System.out.println(\"Before generating, up to how many courses would you take at once?\");\n maxClassesAtOnce = obtainIntSafely(1, 8, \"This must be a positive integer less than 8\");\n\n int option = optionQuestion(\"Would you like to compute a list of possible schedules \"\n + \" via simple tree (1), permutation tree (2), or semi-permutation tree (3). \"\n + \"\\n WARNING: PERMUTATION TREE CAN BE VERY SLOW AND SHOULD ONLY BE \"\n + \"USED WITH A SMALL SELECTION OF CLASSES \\n Option 3 is Recommended\", 3);\n\n Boolean returnBool = true;\n\n switch (option) {\n case 1:\n returnBool = simpleDesigner(activeCourseList);\n break;\n case 2:\n returnBool = createPermutationSchedule();\n break;\n case 3:\n returnBool = createSemiPermutationSchedule();\n break;\n }\n if (!returnBool) {\n System.out.println(\"Impossible to make a schedule\");\n }\n return returnBool;\n }", "public static void main(String[] args) {\n\n\t\tboolean allergy=true;\n\t\t\n\t\tboolean petAllergy=false;\n\t\tboolean peanatAllergy=true;\n\t\tboolean pollenAllergy=false;\n\t\t\n\t\t\n\t\t\n\tif (allergy) {\n\t\tSystem.out.println(\"Lets do further check\");\n\t\tif (petAllergy) {\n\t\t\tSystem.out.println(\"Please no cats or dogs in the house\");\n\t\t\n\t\t\n\t\t} else if (peanatAllergy){\n\t\t\tSystem.out.println(\"Dont eat peanat butter\");\n\t\t}else if (pollenAllergy) {\n\t\t\tSystem.out.println(\"Dont clean \");}\n\t}else {\n\t\tSystem.out.println(\"You are lucky\");\n\t}\n\t\n\tSystem.out.println(\"-----------Example 2----------\");\n\t\n\t/*\n\t * If todays is friday we will watch movie but would like to check the date\n\t * if date is 13--> watching scary movie\n\t * and if its is not--> i will watch comedy, action\n\t * \n\t * if no Friday --> i am studying\n\t */\n\t\n\tboolean Friday=false;\n\tint date=4;\n\tboolean monday=true;\n\t\n\tif (Friday) {\n\t\tif (date==13) {\n\t\t\tSystem.out.println(\"We will watch a scary movie\");\n\t\t\n\t\t}else {\n\t\t\tSystem.out.println(\"Watch a comedy\");\n\t\t}\n\t\t\n\t\t\n\t}else {\n\t\t\n\t\tif(monday) {\n\t\tSystem.out.println(\"I am not studying,Im working\");\n\t}else {\n\t\tSystem.out.println(\"I have class at Syntax\");\n\t}\n\t}\n\t\n\tSystem.out.println(\"----------Example 3------\");\n\t/*\n\t * check if assignment is completed\n\t * if assignment is complited:\n\t * if score >90--> great job\n\t * if score >80--> good job;\n\t * if score >70--> please study more\n\t */\n\t\n\tboolean assignment=false;\n\tint score=92;\n\t\n\tif (assignment) {\n\t\tif(score>90) {\n\t\t\tSystem.out.println(\"Great job!\");\n\t\t}else if (score>80) {\n\t\t\tSystem.out.println(\"Good job\");\n\t\t}else if (score>70) {\n\t\t\tSystem.out.println(\"Pleaase study more\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Good job for trying,but must study!\");\n\t\t}\n\t\t\n\t\t\n\t}else {\n\t\tSystem.out.println(\"You should always complete all assignments\");\n\t}\n\t\n\t}", "public boolean isSpecial()\r\n\t{\r\n\t\t\r\n\t\treturn special;\r\n\t}", "boolean isIntroduced();", "private static Set<Subject> findEquivalentSubjects(SubjectInfo subjectInfo, Subject targetSubject) {\n Set<Subject> subjects = new HashSet<Subject>();\n //first to try if this is a person \n AuthUtils.findPersonsSubjects(subjects, subjectInfo, targetSubject);\n if(subjects.isEmpty() || subjects.size() == 1) {\n //the return subjects from looking persons is o or 1. This means it can be group or a person without any groups.\n //let's try the group\n findEquivalentSubjectsForGroup(subjects, subjectInfo, targetSubject);\n }\n return subjects;\n }", "private static void init(String[] subjectsSupported) {\r\n\t\tgenerateUnis();\r\n\t\tgenerateCourses();\r\n\t\trankCourses();\r\n\t}", "public boolean canGiveMarks(String player, int nMarks) {\n Iterator i = this.marks.iterator();\n String temp;\n int counter = 0;\n\n while (i.hasNext()) {\n temp = (String) i.next();\n if (temp.equals(player))\n counter++;\n }\n\n return (counter + nMarks <= 3);\n }", "boolean hasSuit();", "private boolean isValidMidtermExam(double midtermExam)\n\t{\n\t\treturn midtermExam >= 0 && midtermExam <= 100;\n\t}", "private void addTeacher() {\n\t\t\n\t\tString lastName = tLastNameTF.getText();\n\t\tString firstName = tFirstNameTF.getText();\n\t\tString schoolName = tSchoolNameTF.getText();\n\t\tString userName = tUsernameTF.getText();\n\t\tchar[] password = tPasswordPF1.getPassword();\n\t\tString sA1 = tSecurityQ1TF.getText();\n\t\tString sQ1 = (String)tSecurityList1.getSelectedItem();\n\t\tString sA2 = tSecurityQ2TF.getText();\n\t\tString sQ2 = (String)tSecurityList2.getSelectedItem();\n\t\t\n\t\tteacher = new Teacher(lastName, firstName, schoolName, userName, password, sA1, sQ1, sA2, sQ2);\n\t\t\n\t\t//Add teacher to database \n\t\t\n\t}" ]
[ "0.5882998", "0.58770305", "0.5820243", "0.5737892", "0.57281655", "0.5723291", "0.5635364", "0.5509926", "0.5495992", "0.54618126", "0.5443917", "0.5416847", "0.5372524", "0.53481174", "0.5346091", "0.5323215", "0.5316099", "0.53109205", "0.530738", "0.5300733", "0.5282885", "0.5270824", "0.5270603", "0.5263532", "0.52319115", "0.5230973", "0.5220388", "0.5214967", "0.5212597", "0.52125823", "0.52109563", "0.5209911", "0.52030754", "0.5194329", "0.51935256", "0.51923203", "0.51863384", "0.5183395", "0.51805043", "0.51787025", "0.51721245", "0.5163575", "0.5158429", "0.5157338", "0.5154143", "0.515322", "0.5136076", "0.5134495", "0.51243204", "0.5122824", "0.51212156", "0.51173514", "0.51165926", "0.51135296", "0.5111396", "0.5109733", "0.5108689", "0.51072365", "0.5104967", "0.51042575", "0.50916994", "0.50916994", "0.5088234", "0.5088055", "0.50768805", "0.5072726", "0.50683385", "0.50604683", "0.5056894", "0.5054038", "0.5049858", "0.5044814", "0.5041557", "0.50317377", "0.50290805", "0.50266784", "0.50221646", "0.50221175", "0.5016807", "0.5016164", "0.5011271", "0.5008393", "0.50077677", "0.50049514", "0.50017834", "0.49978375", "0.49968642", "0.49946195", "0.49942693", "0.49938244", "0.4992784", "0.49835134", "0.49831223", "0.49690536", "0.49689385", "0.49651235", "0.49594235", "0.4954196", "0.4951861", "0.49488682" ]
0.7434818
0
Avvio del thread e gestione de i messagi in arrivo sul server da client o server
@Override public void run() { try { for(;;) { String mex = DalServer.readLine(); if(mex != null) System.out.println(mex); } } catch (Exception ex) { ex.toString(); System.exit(1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void Thread() {\n\n Thread thread = new Thread ( new Runnable() {\n \n @Override\n public void run() {\n \n String mensagem = \"\";\n\n try {\n \n InputStreamReader isr = new InputStreamReader(socket.getInputStream());\n BufferedReader br = new BufferedReader(isr);\n\n while ((mensagem = br.readLine()) != null) {\n\n enviarMensagem(mensagem);\n }\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n }\n });\n //para iniciar a thread\n thread.start();\n }", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\t//让改线程可以接受到客户端的信息;\n\t\t\ttry {\n//\t\t\t\tThread.sleep(2000);\n\t\t\tObjectInputStream ois=new ObjectInputStream(s.getInputStream());\n\t\t\tMessage message=(Message) ois.readObject();\n\t\t\tSystem.out.println(message.getSender()+\"给\"+message.getGetter()+\"说\"+message.getCon());\n\t\t\t//这里进行转发;\n\t\t\t/*\n\t\t\t * 转发时出现错误;???????????已解决;\n\t\t\t */\n\t\t\t//取得接收人的通讯线程;\n\t\t\tServerConnectClient scClient=ManageQQClientTh.getClientThread(message.getGetter());\n\t\t\tObjectOutputStream oos=new ObjectOutputStream(scClient.s.getOutputStream());\n\t\t\t\toos.writeObject(message);\n\t\t\n\t\t\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tServerSocket servidor = new ServerSocket(8888);\n\t\t\t\n\t\t\tString nick,ip,mensaje;\n\t\t\t\n\t\t\tPaquete paquete_recibido;\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\n\t\t\tSocket miSocket = servidor.accept();\n\t\t\t\n\t\t\tObjectInputStream paquete_datos = new ObjectInputStream(miSocket.getInputStream());\n\t\t\t\n\t\t\tpaquete_recibido =(Paquete) paquete_datos.readObject();\n\t\t\t\n\t\t\tnick = paquete_recibido.getNick();\n\t\t\t\n\t\t\tip = paquete_recibido.getIp();\n\t\t\t\n\t\t\tmensaje = paquete_recibido.getMensaje();\n\t\t\t\n\t\t\t\n\t\t\t/*DataInputStream flujo_entrada = new DataInputStream(miSocket.getInputStream());\n\t\t\t\n\t\t\tString mensaje = flujo_entrada.readUTF();\n\t\t\t\n\t\t\tareatexto.append(\"\\n\" + mensaje);\n\t\t\t*/\n\t\t\t\n\t\t\tareatexto.append(\"\\n\" +nick +\": \"+mensaje +\" para: \"+ ip);\n\t\t\t\n\t\t\t\n\t\t\tmiSocket.close();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\t//creamos un server socket que se conecte al puerto 9999\r\n\t\t\tServerSocket servidor = new ServerSocket(9999);\r\n\t\t\t//instanciamos variables y un array list\r\n\t\t\tString nick, ip, mensaje;\r\n\t\t\t\r\n\t\t\tArrayList<String> listaIp = new ArrayList<String>();\r\n\t\t//y la clase paquete envio\r\n\t\t\tPaqueteEnvio paquete_recibido;\r\n\t\t\t\r\n\t\t\t//creamos un bucle infinito para que siempre este a la escucha\r\n\t\t\twhile(true) {\r\n\t\t\t\t//aceptamos la conexion\r\n\t\t\tSocket misocket = servidor.accept();\r\n\t\t\t//creamos una object inputstream para desmigar el paquete que nos viene del cliente\r\n\t\t\tObjectInputStream paquete_datos = new ObjectInputStream(misocket.getInputStream());\r\n\t\t\t//lo leemos\r\n\t\t\tpaquete_recibido = (PaqueteEnvio) paquete_datos.readObject();\r\n\t\t\t//lo desmigamos en variables con los metodos get\r\n\t\t\tnick = paquete_recibido.getNick();\r\n\t\t\t\r\n\t\t\tip = paquete_recibido.getIp();\r\n\t\t\t\r\n\t\t\tmensaje = paquete_recibido.getMensaje();\r\n\t\t\t\r\n\t\t\t//DataInputStream flujo_entrada = new DataInputStream(misocket.getInputStream());\r\n\t\t\t\r\n\t\t\t//String mensaje_texto = flujo_entrada.readUTF();\r\n\t\t\t\r\n\t\t\t//areatexto.append(\"\\n\"+mensaje_texto);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// diferenciamos los mensaje si es dimerente de \" online\" el mensaje\r\n\t\t\t if(!mensaje.equals(\" online\")) {\r\n\t\t\t\t //y si el id es diferente de \"Grupo\"\r\n\t\t\t\t if(!ip.equals(\"Grupo\")) {\r\n\t\t\t\t\t// mostramos el texto\r\n\t\t\t\t\t areatexto.append(\"\\n\"+ nick +\": \"+mensaje+\" para \"+ip);\r\n\t\t\t\t//creamos el socket con la ip recivida para enviar el mensaje\r\n\t\t\t\t\t Socket enviaDestinatario = new Socket(ip, 9090);\r\n\t\t\t\t//creamos el object stream \r\n\t\t\t\t\t ObjectOutputStream paqueteReenvio = new ObjectOutputStream(enviaDestinatario.getOutputStream());\r\n\t\t\t\t//escribimos en el\r\n\t\t\t\t\t paqueteReenvio.writeObject(paquete_recibido);\r\n\t\t\t\t//cerramos todo\r\n\t\t\t\t\t paqueteReenvio.close();\r\n\t\t\t\t\r\n\t\t\t\t\t enviaDestinatario.close();\r\n\t\t\t\t\r\n\t\t\t\t\t misocket.close();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t else {//en caso de ser \"Grupo\" hacemos exactamente lo mismo que antes menos por una cosa, primero mostramos texto\r\n\t\t\t\t\t areatexto.append(\"\\n Grupo-->\"+ nick +\": \"+mensaje+\" para grupo\");\r\n\t\t\t\t\t //creamos un bucle foreach en el que enviamos a cada ip del array el mensaje\r\n\t\t\t\t\t for(String z:listaIp) {\r\n\t\t\t\t\t\t //el socket lo creamos con z \r\n\t\t\t\t\t\t \tSocket enviaDestinatario = new Socket(z, 9090);\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \tnick = \"Grupo--->\"+nick;\r\n\t\t\t\t\t\t \t//le decimos que concatene el nick con el texto grupo para que el cliente sepa de donde viene el mensaje y que njo es algro privado\r\n\t\t\t\t\t\t \tpaquete_recibido.setNick(nick);\r\n\t\t\t\t\t\t\t//objetos de salida\r\n\t\t\t\t\t\t\tObjectOutputStream paqueteReenvio = new ObjectOutputStream(enviaDestinatario.getOutputStream());\r\n\t\t\t\t\t\t\t//escribimos\r\n\t\t\t\t\t\t\tpaqueteReenvio.writeObject(paquete_recibido);\r\n\t\t\t\t\t\t\t//cerramos todo\r\n\t\t\t\t\t\t\tpaqueteReenvio.close();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tenviaDestinatario.close();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tmisocket.close();\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t\t\t\t \r\n\t\t\t\t \t\r\n\t\t\t\t \t\r\n\t\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse {// si el texto recibido seria \" online\" seria una peticion de conexion\r\n\t\t\t\t\r\n\t\t\t\t//-----------------DETECTA ONLINE--------------------\r\n\t\t\t\t//cojemos la ip de el mensajero\r\n\t\t\t\tInetAddress localizacion =misocket.getInetAddress();\r\n\t\t\t\t//la almacenamos\r\n\t\t\t\tString IpRemota = localizacion.getHostAddress();\r\n\t\t\t\t\r\n\t\t\t\t//System.out.println(\"Online \"+IpRemota);\r\n\t\t\t\t//la a�adimos al array list\r\n\t\t\t\tlistaIp.add(IpRemota);\r\n\t\t\t\t//escribimos en el objeto con el metodo setIps\r\n\t\t\t\tpaquete_recibido.setIps(listaIp);\r\n\t\t\t\t//creamos el bucle foreach\r\n\t\t\t\tfor(String z:listaIp) {\r\n\t\t\t\t\t//mostramos los usuarios conectados en el array\r\n\t\t\t\t\tareatexto.append(\"\\n Usuario conectado: \"+z);\r\n\t\t\t\t\t//creamos el socket para cada destinatario y enviamos la informacion\r\n\t\t\t\t\tSocket enviaDestinatario = new Socket(z, 9090);\r\n\t\t\t\t\t\r\n\t\t\t\t\tObjectOutputStream paqueteReenvio = new ObjectOutputStream(enviaDestinatario.getOutputStream());\r\n\t\t\t\t\t\r\n\t\t\t\t\tpaqueteReenvio.writeObject(paquete_recibido);\r\n\t\t\t\t\t\r\n\t\t\t\t\tpaqueteReenvio.close();\r\n\t\t\t\t\t\r\n\t\t\t\t\tenviaDestinatario.close();\r\n\t\t\t\t\t\r\n\t\t\t\t\tmisocket.close();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//---------------------------------------------------\r\n\t\t\t\t\r\n\t\t\t} \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void run() {\n\t\tInetSocketAddress remoteAddr = (InetSocketAddress) socket.getRemoteSocketAddress();\n\t\tChatServer.log(\"[server] connected by client[\" + remoteAddr.getAddress().getHostAddress() + \":\" + remoteAddr.getPort());\n\t\t\n\t\ttry {\n\t\t\t//2. 스트림 얻기\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream(), \"utf-8\"));\n\t\t PrintWriter writer = new PrintWriter(new OutputStreamWriter(socket.getOutputStream() ,\"utf-8\"),true);\n\t\t \n\t\t while(true) {\n\t\t \tString request = reader.readLine();\n\t\t \tSystem.out.println(request);\n\t\t \tif(request == null) {\n\t\t \t\tChatServer.log(\"클라이언트로 부터 연결 끊김\");\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \tString[] tokens = request.split(\":\");\n\t\t \t// Join:둘리 일때 - 0은 Join 1은 둘리\n\t\t \tif(\"join\".equals(tokens[0])) {\n\t\t \t\tnickname = tokens[1]; \n\t\t \t\tdoJoin(nickname + \"님이 입장하였습니다.\", writer);\n\t\t \t}else if(\"message\".equals(tokens[0])) {\n\t\t \t\t\n\t\t \t\tdoMessage(nickname + \":\" + tokens[1] );\n\t\t \t}else if(\"quit\".equals(tokens[0])) {\n\t\t \t\tdoQuit(nickname + \"님이 퇴장하였습니다.\", writer);\n\t\t \t}else {\n\t\t \t\tChatServer.log(\"에러: 알수 없는 요청(\" + tokens[0] + \")\");\n\t\t \t}\n\t\t }\n\t\t\n\t\t} catch (SocketException e) {\n\t\t\tChatServer.log(nickname);\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void toThread() {\n\t\t// TODO Auto-generated method stub\n\t\tnew Thread(this).start();\n\t\tclient.start();\n\t}", "@Override\n public void onClick(View v) {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n clientThread.sendMessage(\"Que\");\n }\n });\n\n\n// new Thread(new ClientSend()).start();\n\n }", "@Override\r\n public void run()\r\n {\n boolean centinela = true;\r\n\r\n // Mientras el otro jugador no pierda se procede con:\r\n while (centinela)\r\n {\r\n try\r\n {\r\n // Se crea un lector para el puerto y se revisa/lee que hay en el mismo\r\n BufferedReader buffer = new BufferedReader(new InputStreamReader(socketCliente.getInputStream()));\r\n String mensaje = buffer.readLine();\r\n\r\n // Luego, trataremos de segmentar el mensaje que se recibio\r\n String[] tokens = mensaje.split(\" \");\r\n\r\n // Si el mensaje posee un elemento entonces\r\n if (tokens.length == 1)\r\n {\r\n // Si el unico token/elemento es la palabra: \"Ganaste!\" entonces\r\n if (tokens[0].equals(\"Ganaste!\"))\r\n {\r\n // Se levanta/marca la variable de victoria para este jugador\r\n gano = true;\r\n\r\n // Y se procede a terminar este ciclo, el cual a su vez terminara el hilo\r\n centinela = false;\r\n }\r\n }\r\n\r\n // Si el mensaje posee dos elementos entonces\r\n if (tokens.length == 2)\r\n {\r\n // Damos por iniciada la partida\r\n partidaEnProceso = true;\r\n }\r\n\r\n // Por otro lado, si el mensaje posee tres elementos entonces\r\n if (tokens.length == 3)\r\n {\r\n // Es porque el otro jugador acabo de eliminar un enemigo, y ahora me corresponde a mi eliminarlo (pasarselo a el de nuevo), por lo que leo cual era el tipo y espero que el generador lo cree\r\n enemigoTransferido = Integer.parseInt(tokens[2]);\r\n }\r\n }\r\n catch (IOException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "@Override\n // Methode run die bei Aufruf des Threads gestartet wird\n public void run() {\n //Endlosschleife zum abhören was der Server sedent. Neuen InputStream erzeugen und in Anzeigefenster ausgeben\n while(schleife == 1){\n \n try {\n // Methode online gibt die Nutzernamen der online-verfügabaren Usern zurück vom Server. Die eigene Methode schriebt diese in die UserListe. \n online(remote.online());\n in = new DataInputStream(s.getInputStream());\n\n String lesen = in.readUTF();\n \n\n // Trennt den Einkommenden String am \":\" um Username von der Nachricht zu trennen\n String [] nachrichten = lesen.split(\":\");\n \n //Überprüfen ob ein Header namens VERBINDUNG geschickt wird um entsprechend zu reagieren\n if(nachrichten[0].equals(\"VERBINDUNG\")){\n //Aufruf einer MessageBox, dass Verbindung aufgenommen werden möchte.\n int eingabe = JOptionPane.showConfirmDialog(null,\n \"Wollen sie eine Verbindung mit \" + nachrichten[1] +\" aufbauen?\",\n \"Verbindungsanfrage\",\n JOptionPane.YES_NO_CANCEL_OPTION);\n //Überprüfen der Eingabe in die Messagebox\n //Wenn 'Ja' gedrückt wurde\n if(eingabe == 0){\n //UserListe sperren\n UserListe.setEnabled(false);\n //Verbinden mit User- Button auf trennen stellen\n UserVerbinden.setText(\"Trennen von User\");\n //Offline Anzeigen um weitere Anfragen zu unterbinden\n remote.zeigeOff(UserName.getText());\n //Rückantwort,dass Verbindung aufgebaut werden soll!\n remote.verbindenUser(\"VERBINDEN\", UserName.getText(), nachrichten[1]);\n //Übergabe des Namens des Chat-Partners in die globale Variable \n ZielUser= nachrichten[1];\n \n }else{\n remote.verbindenUser(\"TRENNEN\", UserName.getText() ,nachrichten[1] );\n \n } \n //Wenn die Nachricht den Header 'TRENNEN' enthält, entweder bei beendigung oder bei ablehnen der Verbindung\n }else if(nachrichten[0].equals(\"TRENNEN\")){\n //Nachricht ausgeben, dass getrennt wird bzw. abgelehnt wurde\n Anzeigefeld.append(\"Verbindung von \"+ nachrichten[1]+ \" wurde getrennt/abgelehnt! \\n\");\n //UserListe entsperren\n UserListe.setEnabled(true);\n //Verbinden mit User- Button auf Verbinden stellen\n UserVerbinden.setText(\"Verbinden mit User\");\n //wieder als online Anzeigen \n remote.verbinden(UserName.getText());\n \n //wird aufgerufen wenn VERBINDEN als Header mitgegeben wird\n }else if(nachrichten[0].equals(\"VERBINDEN\")){\n //Ausgabe dass Schlüsselaustausch stattfinden kann\n Anzeigefeld.append(\"Schlüssel wird an \"+nachrichten[1]+ \" gesendet \\n\");\n\n //Den eigenen AES Schlüssel mit öffentlichem Schlüssel des Gegenübers verschlüsseln\n EncryptAES(nachrichten[1]);\n \n //Aufruf der Methode zum Schlüsselaustausch. Überträgt byte[] des Schlüssels\n AESanServer(nachrichten[1]); \n \n //wird aufgerufen wenn der Header KEY mitgegeben wird.\n }else if(nachrichten[0].equals(\"KEY\")){\n \n // Aufruf der Methode Decrypt AES mit der Methode vom Server holeAES\n DecryptAES(remote.schluesselTausch(UserName.getText(), nachrichten[1]));\n \n //Senden-Button freigeben\n Senden.setEnabled(true);\n \n // Anzeigen, das Schlüssel erhalten wurde und Kommunikation starten kann\n Anzeigefeld.append(\"Key von \"+ nachrichten[1] +\" erhalten. Kommunikation kann starten! \\n\");\n \n \n\n \n }\n \n \n // Gibt die Nachricht die verschlüsselt vom Server kommt, entschlüsselt aus!\n Anzeigefeld.append(nachrichten[0] + \": \"+ aes.entschlüsseln(aes.SchlüsselAusDatei(), nachrichten[1])+ \"\\n\");\n\n } catch (IOException ex) {\n Logger.getLogger(ClientGui.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(ClientGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n}", "public void connexionServeur() {\r\n\r\n\t\tString serverIp = JOptionPane\r\n\t\t\t\t.showInputDialog(\"Entrez le nom du serveur.\");\r\n\t\ttry {\r\n\t\t\tsocket = new Socket(serverIp, 4456);\r\n\t\t\tlogger.info(\"Connexion au socket serveur.\");\r\n\r\n\t\t\tThread t = new Thread(new EnvoiPresence(socket));\r\n\t\t\tt.start();\r\n\r\n\t\t\tThread t2 = new Thread(new ReceptionListUser(socket, mainView));\r\n\t\t\tt2.start();\r\n\r\n\t\t} catch (ConnectException e) {\r\n\t\t\tJOptionPane.showMessageDialog(new Frame(),\r\n\t\t\t\t\t\"Le serveur Draw Me An Idea n'est pas lancé\", \"Erreur\", 1);\r\n\t\t\tSystem.exit(0);\r\n\t\t} catch (UnknownHostException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void run() {\n try {\n while (true) {\n Socket socket = listener.accept();\n try {\n \t\n\t\t\t\t\tDataInputStream in = new DataInputStream(\n\t\t\t\t\t\t\tsocket.getInputStream());\n\t\t\t\t\tBufferedReader d = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(in));\n\n\t\t\t\t\tString msg = d.readLine();\n\t\t\t\t\t\n third.notifyAllClients(msg);\n \n d.close();\n in.close();\n } finally {\n socket.close();\n }\n }\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n finally {\n try {\n\t\t\t\tlistener.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n\t}", "public void run(){\r\n\r\n\t\tString message = new String();\r\n\t\t\r\n\t\t\r\n\t\twhile(escoltant){\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tsClient = sServer.accept();\r\n\t\t\t\t\r\n\t\t\t\tdataIn = new ObjectInputStream(sClient.getInputStream());\r\n\t\t\t\t\r\n\t\t\t\tdataOut = new ObjectOutputStream(sClient.getOutputStream());\r\n\t\t\t\t//objectOut = new ObjectOutputStream(sClient.getOutputStream());\r\n\t\t\t\t\r\n\t\t\t\tmessage = (String)dataIn.readObject();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (message.startsWith(\"ADD\")){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif(Logica.addUser(message)){\r\n\t\t\t\t\t\tdataOut.writeObject(\"OK\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tdataOut.writeObject(\"KO\");\r\n\t\t\t\t\t}\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (message.startsWith(\"LOG\")){\r\n\t\t\t\t\tdataOut.writeObject(Logica.checkUser(message));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.equals(\"MAPES\")){\r\n\t\t\t\r\n\t\t\t\t\tdataOut.writeObject(Logica.enviaEscenaris());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.startsWith(\"GUANYADA\")){\r\n\t\t\t\t\t\r\n\t\t\t\t\tConectorDB.insertPartidaGuanyada();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.startsWith(\"PERDUDA\")){\r\n\t\t\t\t\t\r\n\t\t\t\t\tConectorDB.insertPartidaPerduda();\r\n\t\t\t\t}\r\n\t\t\t\tdataIn.close();\r\n\t\t\t\tdataOut.close();\r\n\t\t\t\t\r\n\t\t\t\tsClient.close();\r\n\t\t\t}catch(IOException e){\r\n\t\t\t\t\r\n\t\t\t} catch (ClassNotFoundException 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\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (!client.isClosed()) {\n\t\t\t\t\tSystem.out.println(\"is socket connected\" + client.isConnected());\n\t\t\t\t\tInputStreamReader reader;\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\treader = new InputStreamReader(client.getInputStream());\n\t\t\t\t\t\tBufferedReader buf = new BufferedReader(reader);\n\t\t\t\t\t\tString msg = buf.readLine();\n\t\t\t\t\t\tif (msg != null) {\n\t\t\t\t\t\t\tSystem.out.println(\"server:\" + msg.toString());\n\t\t\t\t\t\t\tString ContextMsg = \"来自被连接的回复:\" + client.getInetAddress() + \"\\n\" + msg.toString();\n\t\t\t\t\t\t\ttextList.add(ContextMsg);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}", "public void recibirMensajesServidor(){\n String mensaje;\n try {\n entradaDatos = new DataInputStream(socket.getInputStream());\n } catch (IOException ex) {\n mostrarMensaje(\"Error al crear el stream de entrada: \" + ex.getMessage());\n } catch (NullPointerException ex) {\n mostrarMensaje(\"El socket no se creo correctamente. \");\n }\n \n // Bucle infinito que recibe mensajes del servidor\n boolean conectado = true; \n while (conectado) {\n try {\n mensaje = entradaDatos.readUTF();\n mostrarMensaje(mensaje);\n } catch (IOException ex) {\n mostrarMensaje(\"Error al leer del stream de entrada: \" + ex.getMessage());\n conectado = false;\n } catch (NullPointerException ex) {\n mostrarMensaje(\"El socket no se creo correctamente. \");\n conectado = false;\n }\n }\n }", "@Override\n public void run() {\n while(true){\n //----------------ACCIONES QUE REALIZA EL HILO-----------------------\n if(isActive()){\n \n try {\n socket = serverSocket.accept(); //Espera una nueva conexion\n socket.setSoTimeout(10000); //Se espera recibir informacion durante 10 segundos\n dataInput = new BufferedReader(new InputStreamReader(socket.getInputStream()));//Se recibe informacion\n String data = dataInput.readLine();\n System.out.println(data);\n //Se disparan recien aqui las transiciones para evitar inconvenientes en caso de TimeOut\n monitor.disparar(transitions.get(0));\n monitor.disparar(transitions.get(1));//Se guarda en base de datos\n dataBase.insertEventWeb(data);\n monitor.disparar(transitions.get(2));\n } \n catch (SocketTimeoutException ex) { //En caso que haya expirado el TimeOut tengo que \n System.out.println(\"El tiempo a expirado\");\n }\n catch (IOException ex) {\n System.out.println(\"Error en Socket\");\n }\n try {\n socket.close();\n } \n catch (IOException ex) {\n System.out.println(\"Error al cerrar Socket\");\n }\n }\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\n\t\t\t\tURL url = new URL(\"http://ecshopxax.sinaapp.com/js/index.js\");\n\t\t\t\tURLConnection connection = url.openConnection();\n\t\t\t\tInputStream is = connection.getInputStream();\n\t\t\t\tbyte[] bs = new byte[1024];\n\t\t\t\tint len = 0;\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\twhile ((len = is.read(bs)) != -1) {\n\t\t\t\t\tString str = new String(bs, 0, len);\n\t\t\t\t\tsb.append(str);\n\t\t\t\t}\n\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = 0x15;\n\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.clear();\n\n\t\t\t\t// bundle.putString(\"recv_server\", new String(buffer));\n\t\t\t\tbundle.putString(\"text1\", sb.toString());\n\n\t\t\t\tmsg.setData(bundle);\n\n\t\t\t\tmyHandler.sendMessage(msg);\n\n\t\t\t\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void run()\r\n\t\t{\n\t\t\ttheVMKClient.sendMessageToServer(m);\r\n\t\t}", "public void run(){\n try {\n dg=new Client(server_ip);\n dg.setVisible(true);\n do{\n \n String smessage=dg.dis.readUTF();\n dg.jTextArea1.append(\"server :- \"+smessage+\"\\n\\n\");\n \n }while(true);\n } catch (IOException ex) {\n Logger.getLogger(Cinit.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "public synchronized void mensajeRecibido(int tipo, Serializable mensaje) {\n\n System.out.println(\"ControladorServidor : mensajeRecibido : tipo=\" + tipo + \" mensaje=\" + mensaje);\n log.info(\"ControladorServidor : mensajeRecibido : tipo=\" + tipo + \" mensaje=\" + mensaje);\n /*Tipos de mensajes:\n * 1- Mensaje de Chat\n * 2- Mensaje de Jugada o Informacion de Salas y mesas\n * 3- Mensaje de Entrada en mesa\n * 4- Mensaje de Salida de Mesa\n * 5- Cierre de conexión\n * 6- Mensaje de Entrada en Sala\n * 7- Mensaje de Salida de Sala\n *\n */\n if (tipo == TipoMensaje.MENSAJE_CHAT) {\n MensajeChat mensajeChat = ((MensajeChat) mensaje);\n System.out.println(\"server \" + mensajeChat.get_usuario());\n GestorChatServidor.getInstance(this).dejamensaje(mensajeChat);\n\n } else if (tipo == TipoMensaje.MENSAJE_JUGADA) {\n MensajeJugada mensajeJugada = ((MensajeJugada) mensaje);\n GestorJuegosServidor.getInstance(this).dejamensaje(mensajeJugada);\n //TODO Devolver la confirmacion de la jugada\n\n } else if (tipo == TipoMensaje.ENTRADA_MESA) {\n\n MensajeMesa m = (MensajeMesa) mensaje;\n if (GestorUsuarios.getInstancia(this).insertarJugadorEnMesa(m.getUsuario(), m.getMesa())) //Envio mensaje de confimacion de la entrada en la mesa\n {\n enviarMensajeMesa(m.getUsuario(), m);//necesito saber en qué mesa se ha insertado el cliente. Quito null y envio mensaje de vuelta\n } else {\n enviarMensajeMesa(m.getUsuario(), m);//TODO mirar porque devuelve false\n }\n } else if (tipo == TipoMensaje.SALIDA_MESA) {\n\n MensajeMesa m = (MensajeMesa) mensaje;\n GestorUsuarios.getInstancia(this).eliminarJugadorEnMesa(m.getUsuario());\n\n } else if (tipo == TipoMensaje.CERRAR_CONEXION) {\n //TODO cierre de conexion\n } else if (tipo == TipoMensaje.ENTRADA_SALA) {\n MensajeSala m = (MensajeSala) mensaje;\n GestorUsuarios.getInstancia(this).insertarJugadorEnSala(m.getUsuario(), m.getSala());\n\n //envío mensaje de vuelta para confirmarle al usuario que ha entrado en la sala\n enviarMensajeSala(m.getUsuario(), m);\n\n //envío la info de todas las mesas de la sala.\n enviarMesasDeUnaSala(m.getUsuario(), m.getSala());\n\n } else if (tipo == TipoMensaje.SALIDA_SALA) {\n\n MensajeSala m = (MensajeSala) mensaje;\n GestorUsuarios.getInstancia(this).eliminarJugadorEnSala(m.getUsuario());\n }\n\n\n\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tRecieveSocketOfClient(SocketForClient);\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "public void run() {\n try {\n // 대화명 입력 받기\n printWriter.println(\"대화명을 입력하세요\");\n userId = bufferedReader.readLine();\n\n // 서버에서 각 클라이언트에 대화명 출력\n chatGUIServer.broadCast(\"[\" + userId + \"]\" + \"님이 입장했습니다.\");\n\n // 무한 대기하며 입력한 메세지를 각 클라이언트에 계속 전달\n while ((strSend = bufferedReader.readLine()) != null) {\n chatGUIServer.broadCast(\"[\" + userId + \"]: \" + strSend);\n }\n } catch (Exception e) {\n // 접속자 퇴장시 v에서 해당 클라이언트 스레드 제거\n chatGUIServer.removeThread(this); // this: ServerThread 객체, 접속 클라이언트\n // 서버에서 각 클라이언트에 출력\n chatGUIServer.broadCast(\"[\" + userId + \"]\" + \"님이 퇴장했습니다.\");\n\n // 콘솔에 퇴장 클라이언트 IP 주소 출력\n System.out.println(socket.getInetAddress() + \"의 연결이 종료됨!\");\n }\n }", "@Override\n public void run() {\n try {\n while(!this.socket.isClosed()) {\n System.out.println(\"Unicast Server Ok\");\n Socket distant = this.socket.accept();\n System.out.println(\"Connexion établie\");\n Discussion discussion =new Discussion(distant);\n discussion.addObserver(this);\n chatRooms.put(distant.getInetAddress(), discussion);\n new Thread(discussion).start();\n }\n } catch (IOException e) {\n System.out.println(\"Erreur socket unicast\");\n }\n }", "public void talk() {\n\t try{\t\n\t \twhile(exit) {\n\t\t \t\t//Definizione stream per la comunicazione\n\t\t \t\ttastiera = new BufferedReader(new InputStreamReader(System.in));\n\t\t \t\tout = new DataOutputStream(connection.getOutputStream());\n\t\t\t\t in = new DataInputStream(connection.getInputStream());\n\t\t\t\t \n\t\t \t\t//Invio messaggio\n\t\t\t\t System.out.println(\"Inserisci il messaggio da mandare al server: \\n\");\n\t\t\t\t mess = tastiera.readLine();\n\t\t\t\t\tout.writeUTF(mess + \"\\n\");\n\t\t\t\t\t\n\t\t\t\t\t//Ricezione risposta server\n\t\t\t\t\tservermess = in.readUTF();\n\t\t\t System.out.println(\"Risposta dal server: \"+servermess);\n\t\t\t if(mess.equals(\"FINE\")) {\n\t\t\t \texit = false;\n\t\t\t }\n\t\t\t\t}\n\t\t }\n\t\t catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t }\n\t \tfinally {\n\t\t\t try {\n\t\t\t\t if (connection!=null)\n\t\t\t\t {\n\t\t\t\t connection.close();\n\t\t\t\t System.out.println(\"Connessione chiusa!\");\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t catch(IOException e){\n\t\t\t System.err.println(\"Errore nella chiusura della connessione!\");\n\t\t\t }\n\t \t}\t\n \t}", "@Override\n public void run() {\n FILEPREFIX = \".//files\"+serverID + \"//\";\n ClientMessage = (Message) socketRead();\n ServerMessage = getReturnMessage(ClientMessage);\n //System.out.println(\"client\"+ClientMessage.getFrom()+\"message : \"+ClientMessage.getContent());\n File file = new File(FILEPREFIX + ClientMessage.getFileName());\n switch (ClientMessage.getType()){\n case \"enquiry\"://return the list of file\n ServerMessage.setContent(ListAllFile());\n break;\n case \"read\"://read the last line\n System.out.println(ClientMessage.getFrom() + \": Reading...\");\n ServerMessage.setContent(\"Reading: \"+ReadLastLine(file));\n System.out.println(\"Reading \"+ClientMessage.getContent());\n break;\n case \"write\"://write to the end of file\n System.out.println(ClientMessage.getFrom() + \": writing...\");\n try{\n WriteLastLine(file,ClientMessage.getContent());\n }catch (IOException e) {\n System.out.println(\"write error\");\n }\n\n ServerMessage.setContent(\"writing: \"+ReadLastLine(file));\n System.out.println(\"Writing \"+ClientMessage.getContent());\n break;\n default://unknown command\n System.out.println(ClientMessage.getType());\n ServerMessage.setContent(\"Error\");\n System.out.println(ClientMessage.getFrom() + \": Wrong type\");\n break;\n }\n socketWrite(ServerMessage);\n\n try {//close the socket connection\n client.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void run(){\n\t\t/*\n\t\ttry {\t\n\t\t\tclient_ip=parentIp;\n\t\t\tpingskt = new Socket(parentIp,TCP_Port);\n\t\t\tin = new BufferedReader(new InputStreamReader(pingskt.getInputStream()));\n\t\t\tout = new PrintWriter(pingskt.getOutputStream(),true);\n\t\t}catch(Exception e){ \n\t\t\tSystem.out.println(\"Error in Catch TCPSender.java line no 96 \");\t\n\t\t}\n\t\t(bufferReaderThread=new Thread(){\n \tpublic void run(){\n\t\t\t\tsynchronized(in){\n \twhile(!tcpsend_Flag){\n try{\n\t\t\t\t String str=\"\";\n if((str=in.readLine())!=null) {\n\t\t\t\t\t\t\t\tif((str!=null) && (!str.equals(\"\"))) {\n\t\t\t\t\t\t\t\t\tif(str.startsWith(\"BackupTreeCource_id\")){\n\t\t\t\t\t\t\t\t\t\tstr=str.replaceAll(\"BackupTreeCource_id\",\"\");\t\t\n\t\t\t\t\t\t\t\t\t\tString str1[]=str.split(\"@\");\n\t\t\t\t\t\t\t\t\t\tlog.setString(\"str1[1] TCPClient \"+str1[1]);\n\t\t\t\t\t\t\t\t\t\tTCPUtil.getController().getString(str1[0],str1[1]);\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else if(str.startsWith(\"SetUserList=\")){\n\t\t\t\t\t\t\t\t\t\tString courseid=str.replaceAll(\"SetUserList=\",\"\");\n\t\t\t\t\t\t\t\t\t}else if(str.startsWith(\"UserList=\")){\n\t\t\t\t\t\t\t\t\t\tString courseid_data=str.replaceAll(\"UserList=\",\"\");\n\t\t\t\t\t\t\t\t\t\tString data[]=courseid_data.split(\"#\");\n\t\t\t\t\t\t\t\t\t\tUserListUtil.getContriller().addDataForVector(data[0],data[1]);\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\tint temp=str.indexOf(\",\",0);\n\t\t\t\t\t\t\t\t\tString courseid=str.substring(0,temp);\n\t\t\t\t\t\t\t\t\ttemp=temp+1;\n \t\t\tstr=str.substring(temp,str.length());\n\t\t\t\t\t\t\t\t\tMyHashTable temp_ht=RuntimeDataObject.getController().getMyHashTable();\n\t\t\t\t\t\t\t\t\tif(temp_ht.getStatus(courseid)) {\n BufferMgt te=temp_ht.getValues(courseid);\n //te.putByte(str,client_ip,\"ch_wb\");\n } else if(!temp_ht.getStatus(courseid)) {\n BufferMgt bm= new BufferMgt();\n temp_ht.setValues(courseid,bm);\n //bm.putByte(str,client_ip,\"ch_wb\");\n }\n\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbufferReaderThread.yield();\n \tbufferReaderThread.sleep(100);\n }catch(Exception e){\n\t\t\t\t\t\t\tcleancourseID();\n\t\t\t\t\t\t\tfor (int l=0;l<course_id.size();l++) {\n\t\t\t\t\t\t\t\tString courseid=course_id.get(l).toString();\n\t\t\t\t\t\t\t\tTCPClient.getController().setcourseID(courseid);\n\t\t\t\t\t\t\t\tMyHashTable tempht=RuntimeDataObject.getController().getUserListMyHashTable();\n\t\t\t\t\t\t\t\tVectorClass vectorclass=tempht.getCourseIdUserListVector(courseid);\n\t\t\t\t\t\t\t\tVector v=vectorclass.getBackupTreeValue();\n \t\t\tlog.setString(\"Backup Tree value-------------\"+v.toString())\n; \t\t\tif((v.get(0).toString()).equals(\"#GParent\")){\n \t\t\tString str=v.get(0).toString();\n str=str.replaceAll(\"#GParent\",\"\");\n\t\t\t\t\t\t\t\t\tsetparentIp(str);\n }\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.gc();\t\t\t\n TCPClient.getController().start();\n\t\t\t\n\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\tlog.setString(\" inputStream \"+e.getMessage());\n\t\t\t\t\t\t\tlog.setString(\" TCPClient in inputStream \"+e.getMessage());\n\t\t\t\t\t\t\ttcpsend_Flag=true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tprintWriterThread.interrupt();\n \t printWriterThread.stop();\n\t\t\t\t\t\t\tbufferReaderThread.interrupt();\n bufferReaderThread.stop();\n\t \t \ttry { \n\t\t\t\t\t\t\t\tpingskt.close();\n\t\t\t\t\t\t\t\tpingskt=null;\n\t \t\t\t\t\t}catch(Exception ex ){\n\t\t\t\t\t\t\t\tlog.setString(\"Error in to catch in TCPClient!! \"+ex.getMessage());\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tSystem.gc(); \t \n\t\t\t\t\t\t\tprintWriterThread=null;\n\t\t\t\t\t\t\tbufferReaderThread=null;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n \t}).start();\n\t\t\n\t\t(printWriterThread =new Thread(){\n \tpublic void run(){\n\t\t\t\tsynchronized(out){\n\t \twhile(!tcpsend_Flag){\n \t \ttry{\n\t\t\t\t\t\t\tif(ipnumber != course_id.size()){\n\t\t\t\t\t\t\t\tipnumber=course_id.size();\n\t\t\t\t\t\t\t\tout.println(\"Cource_id\"+course_id.get(ipnumber-1));\t\n\t\t\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tMyHashTable temp_ht=RuntimeDataObject.getController().getMyHashTable();\n\t\t\t\t\t\t\t\tfor(int i=0;i<course_id.size();i++) {\n\t\t\t\t\t\t\t\t\tTCPUtil.getController().getString(course_id.get(i).toString(),\"#Parent\"+client_ip);\n\t\t\t\t\t\t\t\t\tif(temp_ht.getStatus(course_id.get(i).toString())) {\n \t\tBufferMgt buffer_mgt=temp_ht.getValues(course_id.get(i).toString());\n \t \t\t\t\t\tString str=(buffer_mgt.sendData(client_ip,\"ch_wb\")).toString();\n \t \t\tif(str !=null ){\n\t\t\t\t\t\t\t\t\t\t\tstr=course_id.get(i)+\",\"+str;\n\t\t\t\t \t\tout.println(str);\n \t \t\t\tout.flush();\n \t \t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcountint++;\n \t\tout.flush();\t\n\t\t\t\t\t\t\tSystem.gc();\n\t\t\t\t\t\t\tprintWriterThread.yield();\n \t printWriterThread.sleep(100);\n\t\t\t\t\t\t}catch(Exception ex){\n\t\t\t\t\t\t\tSystem.gc();\t\n\t\t\t\t\t\t\tlog.setString(\"Error in TCPClient class in outputStream \");\n\t\t\t\t\t\t}\n \t\t}\n\t\t\t\t}\n \t}\n\t\t}).start();*/\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n\t\t\t\t\n\t \tSocket s=new Socket(\"192.168.3.176\",9000);\n\t \tBufferedReader reader=new BufferedReader(new InputStreamReader(s.getInputStream()));\n\t \tString info=reader.readLine();\t \n\t \ttext.setText(\"服务器收到的消息:\"+info); \t\n\t reader.close();\n\t s.close();\n\t }catch(Exception e){\n\t \te.printStackTrace();\n//\t \tSystem.out.print(c);\n\t //\ttext.setText(\"出错了\"); \n\t }\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tLog.v(TAG,\"connect to server...\");\n\t\t\t\tsocket=new Socket(\"140.116.246.200\",4000+id);\n\t\t\t\tout=socket.getOutputStream();\n\t\t\t\tin=socket.getInputStream();\n\t\t\t\tLog.v(TAG,\"connect!!\");\n\t\t\t\n\t\t\t\tsendData(\"ask#\");\n\t\t\t\tUIHr.post(refreshUI); \t\n\t\t\t\tresult=new Integer(readData());\n\t\t\t\tUIHr.post(refreshUI); \t\t\n\t\t\t\tsendData(\"over#\");\n\t\t\t\tsocket.close();\n\t\t\t} catch (UnknownHostException e) {e.printStackTrace();} \n\t\t\tcatch (IOException e) {e.printStackTrace();}\n\t\t}", "public void run()\r\n\t{\r\n\t\t\r\n\t\tint i,tam;\r\n\r\n\t\tfinal int puerto = 6250;\r\n\t\tbyte[] buffer;\r\n\t\tSystem.out.println(\"--- Servidor iniciado ---\\n\");\t\r\n\r\n\r\n\t\ttry\r\n\t\t{\t\r\n\t\t\tDatagramSocket socket = new DatagramSocket(puerto);\r\n\t\t\tDatagramPacket peticion;\r\n\t\t\tDatagramPacket respuesta;\r\n\t\t\tInetAddress direccion;\r\n\t\t\tint puertoCliente;\r\n\r\n\t\t\tString[] tiempo;\r\n\t\t\tString mensaje,envio = \"\";\r\n\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Nueva iteracion, puerto: \" + puerto);\r\n\t\t\t\t//System.out.println(\"Nueva iteracion, puerto: \" + puertoCliente);\r\n\t\t\t\ttam = 0;\r\n\t\t\t\ttiempo = new String[4];\r\n\t\t\t\ttiempo = this.reloj.getFormatTime();\r\n\r\n\t\t\t\t// Recibe un mensaje de algun cliente, este puede estar solicitando la hora de algun reloj o la modificacion\r\n\t\t\t\tbuffer = new byte[100];\r\n\t\t\t\tpeticion = new DatagramPacket(buffer,buffer.length);\r\n\t\t\t\tsocket.receive(peticion);\r\n\t\t\t\tmensaje = new String(peticion.getData());\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(peticion.getAddress());\r\n\t\t\t\tSystem.out.println(mensaje);\r\n\t\t\t\tif(mensaje.charAt(1) == '$')\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\ttam = 12;\r\n\t\t\t\t\tSystem.out.println(\"Mensaje para pedir la hora\");\r\n\t\t\t\t\tenvio = tiempo[3] + \":\" + tiempo[2] + \":\" + tiempo[1] + \":\" + tiempo[0];\r\n\t\t\t\t}\r\n\t\t\t\telse if (mensaje.charAt(1) == '%')\r\n\t\t\t\t{\r\n\t\t\t\t\ttam = 26;\r\n\t\t\t\t\tSystem.out.println(\"Libro recibido.\");\r\n\t\t\t\t\tString[] tiempo_recibido = {mensaje.split(\":\")[1],mensaje.split(\":\")[2],mensaje.split(\":\")[3],mensaje.split(\":\")[4]};\r\n\t\t\t\t\tenvio = \"Gracias, vuelva pronto :).\";\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthis.st = this.Conect.conn.createStatement();\r\n\t\t\t\t\t\tthis.rs = this.st.executeQuery(\"SELECT idUsuario FROM usuario WHERE IP = INET6_ATON('\"+ peticion.getAddress().getHostAddress() +\"')\");\r\n\t\t\t\t\t\twhile(this.rs.next())\r\n\t\t {\r\n\t\t \tthis.Conect.terminar_pedidos(this.rs.getInt(1),tiempo_recibido);\r\n\t\t }\r\n\t\t\t\t\t}catch(Exception ex) {\r\n\t\t System.out.println(\"Error: \" + ex);\r\n\t\t }\r\n\t\t\t\t}else if(mensaje.charAt(1) == '#')\r\n\t\t\t\t{\r\n\t\t\t\t\tint confirmado = JOptionPane.showConfirmDialog(null, \"Se solicito un reinicio de pedidos\", \"Sin libros\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\tif (JOptionPane.OK_OPTION == confirmado)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthis.Reiniciar();\r\n\t\t\t\t\t\tenvio = \"Oki\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tenvio = \"Nop\";\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\ttam = 100;\r\n\t\t\t\t\ttry\r\n\t\t {\r\n\t\t this.st = this.Conect.conn.createStatement();\r\n\t\t int opcion = this.Conect.asignar_libro(mensaje,peticion.getAddress().getHostAddress());\r\n\t\t if(opcion != -1)\r\n\t\t {\r\n\t\t \tthis.rs = this.st.executeQuery(\"SELECT * FROM libro where idLibro = \" + opcion);\r\n\t\t\t while(this.rs.next())\r\n\t\t\t {\r\n\r\n\t\t\t java.sql.Blob blob = rs.getBlob(\"Portada\");\r\n\t\t\t System.out.println(this.rs.getString(\"Nombre\"));\r\n\t\t\t envio = this.rs.getString(\"Nombre\") + \"&\" + this.rs.getString(\"Autor\") + \"&\" + this.rs.getFloat(\"Precio\") + \"&\";\r\n\t\t\t this.Ventana.setTitle(this.rs.getString(\"Nombre\"));\r\n\t\t\t InputStream in = blob.getBinaryStream(); \r\n\t\t\t BufferedImage image = ImageIO.read(in);\r\n\t\t\t ImageIcon imageIcon = new ImageIcon(image.getScaledInstance(240, 330, Image.SCALE_SMOOTH));\r\n\r\n\t\t\t this.Ventana.setTitle(this.rs.getString(\"Nombre\"));\r\n\t\t\t this.Ventana.texto[0].setText(\"Autor: \" + this.rs.getString(\"Autor\"));\r\n\t\t\t this.Ventana.texto[1].setIcon(imageIcon);\r\n\t\t\t }\r\n\t\t }\r\n\t\t else\r\n\t\t \tenvio = \"Todos los libros estan apartados\";\r\n\t\t \r\n\r\n\t\t }catch(Exception ex) {\r\n\t\t System.out.println(\"Error: \" + ex);\r\n\t\t }\r\n\t\t\t\t}\r\n\t\t\t\tif(mensaje.charAt(2) == ':' && mensaje.charAt(1) != '%' && peticion.getPort() == 6969)\r\n\t\t\t\t{\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Ajuste automatico UTC\");\r\n\t\t\t\t\t\tString[] tiempo_recibido = {mensaje.split(\":\")[0],mensaje.split(\":\")[1],mensaje.split(\":\")[2]};\r\n\t\t\t\t\t\tSystem.out.println(\"Hora: \"+tiempo_recibido[2]);\r\n\t\t\t\t\t\tSystem.out.println(\"min: \"+tiempo_recibido[1]);\r\n\t\t\t\t\t\tSystem.out.println(\"sec: \"+tiempo_recibido[0]);\r\n\t\t\t\t\t\treloj.setTime(Integer.parseInt(tiempo_recibido[2]),Integer.parseInt(tiempo_recibido[1]),Integer.parseInt(tiempo_recibido[0]),0);\r\n\t\t\t\t\t}catch(Exception ex) {\r\n\t\t System.out.println(\"Error: \" + ex);\r\n\t\t }\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tbuffer = new byte[tam];\r\n\t\t\t\t\tbuffer = envio.getBytes();\r\n\t\t\t\t\tpuertoCliente = peticion.getPort();\r\n\t\t\t\t\tdireccion = peticion.getAddress();\r\n\r\n\t\t\t\t\tmensaje = tiempo[3] + \":\" + tiempo[2] + \":\" + tiempo[1] + \":\" + tiempo[0];\r\n\t\t\t\t\tthis.Enviar_mensaje(mensaje,new byte[8],direccion);\r\n\r\n\t\t\t\t\tSystem.out.println(\"Mensaje enviado: \" + envio);\r\n\t\t\t\t\trespuesta = new DatagramPacket(buffer,buffer.length,direccion,puertoCliente);\r\n\t\t\t\t\tsocket.send(respuesta);\r\n\t\t\t\t\tbuffer = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}", "@Override\n protected TCPClient doInBackground(String... message) {\n mTcpClient = new TCPClient(new TCPClient.OnMessageReceived() {\n @Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n //this method calls the onProgressUpdate\n publishProgress(message);\n }\n },SERVER_IP,SERVERPORT);\n mTcpClient.run();\n\n return null;\n }", "@Override\n\tpublic void run()\n\t{\n\t\tif(socket != null && !socket.isClosed() && socket.isConnected())\n\t\t{\n\t\t\tSendMessage(ApplicationManager.Instance().GetName(), MessageType.clientData);\n\t\t\tApplicationManager.textChat.writeGreen(\"Connected to \" + connectionInfo.ServerAdress);\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\twhile (IsConnected) \n\t\t {\n\t\t Message message = (Message) in.readObject();\n\t\t\t\t\t\n\t\t if(!IsConnected)\n\t\t \tbreak;\n\t\t \t\n\t\t if(message == null)\n\t\t {\n\t\t \tIsConnected = false;\n\t\t \tbreak;\n\t\t }\n\t\t \n\t\t HandleMessage(message); \n\t\t }\n\t\t\t \n\t\t\t} \n\t\t\tcatch (SocketException | EOFException e) {\n\t\t\t\tif(IsConnected)\n\t\t\t\tApplicationManager.textChat.writeGreen(\"Server go down!\");\n\t\t\t}\n\t\t\tcatch (IOException | ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tApplicationManager.Instance().Disconnect();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tApplicationManager.textChat.writeGreen(\"Cannot connect!\");\n\t\t\tApplicationManager.Instance().Disconnect();\n\n\t\t}\n\t}", "public void run() {\n\t\ttry {\n\t\t\tin = new BufferedReader(new InputStreamReader(cliente.getInputStream()));\n\t\t\tmOut = new PrintWriter(new BufferedWriter(new OutputStreamWriter(cliente.getOutputStream())), true);\n\n\t\t\tint comparar = idCliente(); //recibe id del cliente\n\t\t\tif(comparar==0) { \n\t\t\t\t//ENVIA id PARA EL CLIENTE\n\t\t\t\tthis.tcpServidor.maxCliente++;\n\t\t\t\tenviarMensaje(\"ID;\"+this.tcpServidor.maxCliente);\n\t\t\t\t//ENVIA maxCliente A TODAS LAS REPLICAS\n\t\t\t\tfor (HiloReplica h : this.tcpServidor.hiloReplica) {\n\t\t\t\t\th.enviarMensaje(\"MAXCLIENTE;\"+this.tcpServidor.maxCliente);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.idCliente = comparar; //GUARDA id DEL CLIENTE\n\t\t\t}\n\t\n\t\t\tSystem.out.println(\"Cliente \"+this.idCliente+\" conectado a Balanceado \"+this.tcpServidor.id);\n\t\t\t\n\t\t\tpeticionDeCliente();\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t//System.out.println(\"HiloCliente\" + \": Error\" + e);\n\t\t}\n\t}", "public void run() {\r\n try {\r\n while (true) {\r\n Socket serverClient = serverSocket.accept(); //server accept the contentServerId connection request\r\n ServerClientThread sct = new ServerClientThread(serverClient, lamportClock, feeds, timers); //send the request to a separate thread\r\n sct.start();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void run(){\n\t\t\tObjectReader readerClient = new ObjectReader(in, clientInetAddress);\r\n\t\t\treaderClient.start();\r\n\t\t\t\r\n\t\t\t// Constantly checks msgToSend for messages and sends them\r\n\t\t\twhile(true){\r\n\t\t\t\ttry{\r\n\t\t\t\t\t// Send message\r\n\t\t\t\t\tif(msgToSend.length() != 0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tout.writeObject(new DataObject(DataObject.STRING, msgToSend.toString()));\r\n\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\tmsgToSend.setLength(0);\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\tcatch(IOException ioe){\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void run() {\r\n\t\t\tString[] line;\r\n\t\t\tString msg = \"\";\r\n\t\t\ttry {\r\n\t\t\t\tString time1 = dispTime.format(System.currentTimeMillis());\r\n\t\t\t\t// parse the time to the date format\r\n\t\t\t\tdate1 = dispTime.parse(time1);\r\n\t\t\t\t/*\r\n\t\t\t\t * check for the whole message line and split it with : the\r\n\t\t\t\t * first element is username the second is connect/disconnect\r\n\t\t\t\t * message and if the client clicks on connect button it sends\r\n\t\t\t\t * connect message and if client hits disconnect button it sends\r\n\t\t\t\t * disconnect message all the messages are splitted with :,if\r\n\t\t\t\t * the message is to broadcast all current users then :Chat is\r\n\t\t\t\t * used at the end read the inputstream\r\n\t\t\t\t */\r\n\t\t\t\twhile ((msg = in.readLine()) != null) {\r\n\t\t\t\t\t// split the line with :\r\n\t\t\t\t\tline = msg.split(\":\");\r\n\t\t\t\t\tString usern = line[1];// get username\r\n\r\n\t\t\t\t\tif (line[3].equals(\"Connect\")) {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * if the request is connect then add the username to\r\n\t\t\t\t\t\t * arraylist users\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tusers.add(usern);\r\n\t\t\t\t\t} else if (line[3].equals(\"Disconnect\")) {\r\n\t\t\t\t\t\ttextarea.append(usern + \" has disconnected.\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// else if (line[3].equals(\"Chat\"))\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * the message coming from server is in HTTP format then\r\n\t\t\t\t\t\t * extract the message only and display it on users\r\n\t\t\t\t\t\t * window\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ttextarea.append(line[1] + line[2] + \"\\n\");\r\n\t\t\t\t\t\ttextarea.setCaretPosition(textarea.getDocument().getLength());\r\n\t\t\t\t\t}\r\n\t\t\t\t} // try\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@Override\n public void run() { \n \n String received; \n while (true) { \n try { \n\n // receive the messages from clients\n received = dis.readUTF();\n ChatServer.writeOnThreads(received);\n\n } catch (IOException e) {\n try { \n this.dis.close(); \n this.dos.close(); \n\n } catch(IOException e1) { \n e1.printStackTrace(); \n } \n } \n } \n }", "public void run()\n {\n \n try {\n String Msg = \"\";\n ArrayList<String> tokens=new ArrayList<String>();\n while ((Msg = this.reader.readLine())!=null)\n {\n if(!tokens.isEmpty())\n {\n //not empty,clear.\n tokens.clear();\n\n }\n //check the msg\n System.out.println(\"Inside while, Received msg in client handler:\"+Msg);\n //all the meta datas are separated using :\n tokens.addAll(Constants.tokens(Msg, \":\"));\n //if it's a login request\n if(tokens.contains(Constants.LOGIN_ID))\n {\n this.userID=tokens.get(1);//the 2nd string of this format LOGIN_ID:username:password\n this.password=tokens.get(2);\n this.client_delegate.validate(this);\n }\n //if it's a log out request.\n if(tokens.contains(Constants.LOGOUT_ID))\n {\n this.client_delegate.logout(this);\n }\n //public room message\n if(tokens.contains(Constants.PUBLIC_ROOM))\n {\n \n if(tokens.get(1).contains(\"file\"))\n {\n //there is smiley,but the parts were separated due to the presence of an internal : after word 'file'\n this.client_delegate.sendMessage(tokens.get(1)+\":\"+tokens.get(2));\n }\n else\n {\n //the message is without smiley...\n this.client_delegate.sendMessage(tokens.get(1));\n }\n \n }\n //private message\n if(tokens.contains(Constants.MESSAGE_ID))\n {\n //private message\n if(tokens.get(2).contains(\"file\"))\n {\n //there is smiley,but the parts were separated due to the presence of an internal : after word 'file'\n this.client_delegate.sendMessageFromThisTo(tokens.get(1), tokens.get(2)+\":\"+tokens.get(3), tokens.get(4));\n }\n else\n {\n //the message is without smiley...\n this.client_delegate.sendMessageFromThisTo(tokens.get(1), tokens.get(2), tokens.get(3));\n }\n }\n if(tokens.contains(Constants.FILE))\n {\n this.client_delegate.sendFileTo(tokens.get(1), Integer.parseInt(tokens.get(2)), tokens.get(3));\n }\n \n \n\n }\n } catch (Exception ex) {\n System.out.printf(\"Error parsing message from client:%s.\",this.userID);\n }\n }", "public void run() // cette methode doit obligatoirement etre implementuee a cause de l'interface Runnable\n\t{\n\t\tSocket sockCLI;\n\t\ttry\n\t\t{\n\t\t\tServerSocket socketEcoute = new ServerSocket(portCLI);\n\t\t\tSystem.out.println(\"----------------------------------------\");\n\t\t\tSystem.out.println(\"Attend client CLI sur le port : \"+ portCLI);\n\t\t\tSystem.out.println(\"----------------------------------------\");\n\t\t\tlogger.log(Level.WARNING,\"Attente client CLI sur le port: \" + portCLI);\n\t\t while (true)\n\t\t {\n\t\t\t\tSocket sc = socketEcoute.accept(); // un client se connecte, un nouveau thread client est lance\n\t\t\t\tlogger.log(Level.WARNING,\"Nouveau client CLI\");\n \t\t\tlogger.log(Level.INFO,\"IP client CLI: \" +sc.getRemoteSocketAddress());\n\t\t\t\tif (nbCLI == 0)\n\t\t\t\t{\n \t\t\t\tlogger.log(Level.INFO,\"timeout actif\");\n\t\t\t\t\tsc.setSoTimeout(180*1000);\n\t\t\t\t\t_clientCLI = new CLI_TCP_Thread(sc, _socketServ);\n\t\t\t\t\t_clientCLI.start();\n\t\t\t\t\tnbCLI = 1;\n\t\t\t\t} else {\n \t\t\t\tlogger.log(Level.WARNING,\"un client est deja connecte - fermeture de la connection\");\n \t\t\t\tPrintWriter output = new PrintWriter(sc.getOutputStream());\n\t\t\t\t\toutput.println(\"Server CLI-> Connection refusée : un client est déjà connecté!\");\n\n \t\t\t\ttry \n\t \t\t\t{\n\t \t\t\t\toutput.close();\n\t\t\t \t\tsc.close();\n\t\t\t\t\t\tSystem.out.println (\"CLI\" + Thread.currentThread() + \" : Logout !!! \");\n\t \t\t\t\t} \n\t \t\t\t\tcatch (IOException e)\n\t \t\t\t{\n\t \t\t\t}\n\t\t\t\t}\n \t\t\t\n\t\t }\n\t\t}\n\t catch (Exception e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\t\t\t\t// here the messageReceived method is implemented\r\n\t\t\t\tpublic void messageReceived(String message) {\n\t\t\t\t\tpublishProgress(message);\r\n\t\t\t\t\t// serverMessage[0] = message;\r\n\r\n\t\t\t\t\tserverMessage[count] = message;\r\n\r\n\t\t\t\t\t// count++;\r\n\t\t\t\t\tLog.i(\"TAG\", count + \"辞獄拭辞 閤精 葵: \" + serverMessage[count]);\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Log.i(\"TAG\", \"0腰属閤精 葵: \" + serverMessage[0]);\r\n\t\t\t\t\t * Log.i(\"TAG\", \"1腰属 閤精 葵: \" + serverMessage[1]);\r\n\t\t\t\t\t */\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}", "@Override\r\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\r\n switch(msg.what){\r\n case baglanti:\r\n\r\n ConnectedThread connectedThread = new ConnectedThread((BluetoothSocket)msg.obj);\r\n Toast.makeText(getApplicationContext(), \"Baglandi\",Toast.LENGTH_LONG).show();\r\n String s = \"successfully connected\";\r\n break;\r\n case mesajoku:\r\n byte[] readBuf = (byte[])msg.obj;\r\n String string = new String(readBuf);\r\n Toast.makeText(getApplicationContext(), string, Toast.LENGTH_LONG).show();\r\n break;\r\n }\r\n }", "public Thread messageHandler(boolean isGUI, ClientView clientView) {\n Gson gson = new Gson();\n this.isGUI = isGUI;\n return new Thread(() -> {\n MessageEnvelope envelope = null;\n try {\n do {\n String inputMessage = (String)serverInput.readObject();\n envelope = gson.fromJson(inputMessage, MessageEnvelope.class);\n if (envelope.getType() != MessageType.PING) {\n synchronized (messageQ) {\n messageQ.add(inputMessage);\n messageQ.notifyAll();\n }\n if (!isGUI && envelope.getType().equals(MessageType.ENDGAME)) {\n EndGameMessage endGameMessage = gson.fromJson(envelope.getMessage(), EndGameMessage.class);\n if (!endGameMessage.isWinner() && !endGameMessage.getPlayer().isEmpty()) {\n clientView.endRead(true);\n }\n }\n }\n } while (!socket.isClosed() && !view.isQuitting());\n } catch (IOException | ClassNotFoundException e) {\n // If this branch is executed when the user is not really quitting, there was a server disconnection.\n // If the user is quitting, this thread is terminated (catches the exception because of the socket closing),\n // due to viewRun socket.close() call (should do nothing)\n if (!view.isQuitting()) {\n // Line needed to avoid another do..while iteration in viewRun()\n view.setQuitting(true);\n EndGameMessage message = new EndGameMessage(\"\", null);\n MessageEnvelope finalEnvelope = new MessageEnvelope(MessageType.ENDGAME, gson.toJson(message, EndGameMessage.class));\n try {\n serverInput.close();\n clientOutput.close();\n socket.close();\n synchronized (messageQ) {\n messageQ.add(gson.toJson(finalEnvelope, MessageEnvelope.class));\n messageQ.notifyAll();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n if (!isGUI) {\n clientView.endRead(false);\n }\n }\n }\n });\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLog.d(\"shows\",\"shw \"+i++);\n\n\t\t\t\t//SendMsg\n\t\t\t\tnameValuePairs= new ArrayList<NameValuePair>(3);\n\t\t\t\tdb=new ChattyData(con);\n\t\t\t\tCursor c=db.getUnsent();\n\t\t\t\tif(c!=null)\n\t\t\t\t{\n\t\t\t\t c.moveToFirst();\n\t\t\t\t try{c.getString(1).equals(\"\");\n\t\t\t\t sno=c.getInt(0);\n\t\t\t\t\tLog.d(\"sno\",sno+\"\");\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"from\", pref.getString(\"id\", \"\")));\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"to\", c.getString(1)));\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"msg\", c.getString(2)));\n\t\t\t\t SendMsg sendMsg=new SendMsg(con,sno);\n\t\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t\t\tsendMsg.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\t\telse\tsendMsg.execute(nameValuePairs);\n\t\t\t\t }\n\t\t\t\t catch(Exception e){}\n\t\t\t\t}\n\t\t\t\tdb.close();\n\t\t\t\tLog.d(\"shows\",\"sno \"+sno+\"\");\n\t\t\t\t\n\t\t\t\t//NewMsg\n\t\t\t\tnameValuePairs= new ArrayList<NameValuePair>(1);\n\t\t\t\ttry{\n\t\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"id\", pref.getString(\"id\", \"\")));\n\t\t\t\t\tNewMsg newMsg=new NewMsg(con);\n\t\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t\t\tnewMsg.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\t\telse\tnewMsg.execute(nameValuePairs);\n\t\t\t\t}catch(Exception e){}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//new ReadMsg().execute();\n\t\t\t\t\n\t\t\t\t/*AddChat myTask = new AddChat(this);\n\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t myTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\telse\n\t\t\t\t myTask.execute(nameValuePairs);*/\n\t\t\t}", "public void start() {\n try {\n Socket socket = new Socket(conf.getServerIp(), conf.getServerPort());\n\n java.io.InputStream is = socket.getInputStream();\n BufferedReader reader = new BufferedReader(new java.io.InputStreamReader(is));\n\n readerThread = new MessageReader(reader);\n new Thread(readerThread).start();\n\n java.io.OutputStream os = socket.getOutputStream();\n PrintWriter writer = new PrintWriter(os);\n writerThread = new MessageWriter(writer);\n new Thread(writerThread).start();\n\n while (serverMessages.empty()) {\n //Do nothing\n }\n\n ServerMessage serverMessage = serverMessages.pop();\n if (!serverMessage.getMessageType().equals(ServerMessage.MessageType.HELO)) {\n System.out.println(\"Expecting a HELO message but received: \" + serverMessage.toString());\n } else {\n System.out.println(\"Please fill in your username: \");\n Scanner scanner = new Scanner(System.in);\n String username = scanner.nextLine();\n\n\n ClientMessage heloMessage = new ClientMessage(ClientMessage.MessageType.HELO, username);\n clientMessages.push(heloMessage);\n\n while (serverMessages.empty()) {\n }\n\n\n isConnected = validateServerMessage(heloMessage, serverMessages.pop());\n if (!isConnected) {\n System.out.println(\"Error logging into server\");\n } else {\n System.out.println(\"Successfully connected to server.\");\n System.out.println(\"(Type '/quit' to close connection and stop application.)\");\n System.out.println(\"Type a broadcast message: \");\n nonblockReader = new NonblockingBufferedReader(new BufferedReader(new java.io.InputStreamReader(System.in)));\n\n\n while (isConnected) {\n String line = nonblockReader.readLine();\n if (line != null) {\n ClientMessage clientMessage;\n if (line.equals(\"/quit\")) {\n clientMessage = new ClientMessage(ClientMessage.MessageType.QUIT, username + \" left the server\");\n isConnected = false;\n\n Thread.sleep(500L);\n } else if (line.startsWith(\"/msg\") && line.split(\" \").length > 1) {\n //Split the message first\n String[] splittedline = line.split(\" \");\n String senderUsername = splittedline[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n line = line.replace(\"/msg \" + splittedline[1] + \" \", \"\");\n\n //Check if we have an encryptionsession with the user or not\n if (encryptionSessionHashMap.containsKey(senderUsername)) {\n //We have an encryptionsession, so we can just send the message\n String encryptedLine = encryptionSessionHashMap.get(senderUsername).encryptMessage(line);\n clientMessage = new ClientMessage(ClientMessage.MessageType.ENCR, senderUsername + \" \" + encryptedLine);\n System.out.println(\"(You -> \" + senderUsername + \"): \" + line);\n } else {\n //We don't have an encryptionsession yet, so we create one\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(senderUsername, encryptionSession);\n clientMessage = new ClientMessage(ClientMessage.MessageType.KEYS, senderUsername + \" \" + encryptionSession.getPublicKey());\n savedMessage.put(senderUsername, line);\n }\n } else {\n System.out.println(\"You cannot send a message to yourself\");\n clientMessage = null;\n }\n } else if (line.startsWith(\"/file\") && line.split(\" \").length == 3) {\n //Split the message first\n String[] splitLine = line.split(\" \");\n String senderUsername = splitLine[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n String fileBase64String = new FileTransfer(splitLine[2], senderUsername).sendFile();\n clientMessage = new ClientMessage(ClientMessage.MessageType.FILE, fileBase64String);\n System.out.println(\"You have send \" + splitLine[2] + \" to \" + senderUsername);\n } else {\n System.out.println(\"You cannot send a file to yourself\");\n clientMessage = null;\n }\n\n } else {\n clientMessage = new ClientMessage(ClientMessage.MessageType.BCST, line);\n System.out.println(line);\n }\n\n if (clientMessage != null) {\n clientMessages.push(clientMessage);\n }\n }\n if (!serverMessages.empty()) {\n ServerMessage received = serverMessages.pop();\n\n\n if (received.getMessageType().equals(ServerMessage.MessageType.BCST)) {\n System.out.println(received.getPayload());\n }\n\n //Check if we received an encrypted message\n else if (received.getMessageType().equals(ServerMessage.MessageType.ENCR)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedMessage = splitMessage[1];\n\n //If we have a session with this user, we can decrypt the message\n if (encryptionSessionHashMap.containsKey(sender)) {\n System.out.println(\"(\" + sender + \" -> You): \" + encryptionSessionHashMap.get(sender).decryptMessage(encryptedMessage));\n }\n }\n\n //If this is the first time, we have to share keys\n else if (received.getMessageType().equals(ServerMessage.MessageType.KEYS)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedKey = splitMessage[1];\n\n //Check if we send the first message or not\n if (encryptionSessionHashMap.containsKey(sender)) {\n encryptionSessionHashMap.get(sender).decryptKey(encryptedKey);\n\n //After saving the aes key, we have to resend our first message\n String msg = savedMessage.get(sender);\n if (msg != null) {\n String encryptedLine = encryptionSessionHashMap.get(sender).encryptMessage(msg);\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.ENCR, sender + \" \" + encryptedLine);\n clientMessages.push(responseMessage);\n System.out.println(\"(You -> \" + sender + \"): \" + msg);\n savedMessage.remove(sender);\n }\n }\n\n //We send our aes key when we didn't send the message first\n else {\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(sender, encryptionSession);\n String aesKey = encryptionSession.encryptKey(encryptedKey);\n\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.KEYS, sender + \" \" + aesKey);\n clientMessages.push(responseMessage);\n }\n }\n\n //Check if the message is a file\n else if (received.getMessageType().equals(ServerMessage.MessageType.FILE)) {\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String base64String = splitMessage[2];\n\n new FileTransfer(base64String, splitMessage[0], true).readFile();\n System.out.println(\"You have received \" + splitMessage[1] + \" from \" + sender);\n }\n }\n }\n }\n\n disconnect();\n System.out.println(\"Client disconnected!\");\n }\n } catch (IOException e) {\n System.out.println(\"Ouch! Could not connect to server!\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void run() {\n if (this.clientInterfaceTCP.getConnected())\n this.clientInterfaceTCP.sendString(this.messageToSend);\n }", "@Override\n public void onConnected(Bundle connectionHint) {\n //Requires a new thread to avoid blocking the UI\n new SendToDataLayerThread(\"/message_path\", message + \" \" + Calendar.getInstance()).start();\n Log.i(TAG, \"sent, onConnected\" + message);\n Toast.makeText(getApplicationContext(),message,Toast.LENGTH_SHORT).show();\n }", "@Override\n public void run() {\n while(true){\n try{\n Socket s = server.accept();\n String i = new DataInputStream(s.getInputStream()).readUTF();\n if(clientColl.containsKey(i)){\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"You Are Already Registered....!!\");\n }else{\n clientColl.put(i, s);\n txt.append(sdf.format(date) + \" \" + i + \" Joined !\\n\");\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"\");\n new MsgRead(s,i).start();\n new PrepareClientList().start();\n }\n \n }catch(Exception ex){\n ex.printStackTrace();\n }\n }\n \n }", "public void run (){ //el metodo run pertenece a extend Thread\n //Recibimos los mensajes por el puerto 5000\n try {\n socket = new DatagramSocket(7000);\n while (true){ //que siempre lo haga\n byte[] buffer = new byte[100];\n //empaquetamos el datagrama\n DatagramPacket packet = new DatagramPacket( buffer, buffer.length);\n socket.receive(packet);\n String mensajeEntrante = new String(packet.getData()).trim(); //trim parte el packet.get data\n \n // Reenvio de mensaje version Cristian:\n // Obtener el ip automaticamente\n //dividimos el string por : y obtenemos e[0] la ip y [1] el puerto\n SocketAddress iport= packet.getSocketAddress();\n String i = iport.toString();\n String red = i.replace(\"/\", \"\");\n String[] portip = red.split(\":\");\n String ip = portip[0];\n String port = portip[1];\n System.out.println(mensajeEntrante);\n observer.recibirMensaje(mensajeEntrante, ip, port);\n \n }\n } catch (SocketException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n}", "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 start() throws SocketException {\n serverSocket = new DatagramSocket(port);\n serverThread = new Thread(new Runnable() {\n public void run() {\n\n\n\n try{\n while(true) {\n byte[] receiveBuffer = new byte[BUFFER_SIZE];\n\n DatagramPacket receivePacket = new DatagramPacket(receiveBuffer,BUFFER_SIZE);\n serverSocket.receive(receivePacket);\n\n if(drop()) continue;\n\n String receiveString = new String(receivePacket.getData());\n receiveString = trim(receiveString);\n\n\n UUID uuid = Message.getUUIDFromMessageString(receiveString);\n int timestamp = Message.getTimestampFromMessageString(receiveString);\n int type = Message.getTypeFromMessageString(receiveString);\n int port = Message.getPortFromMessageString(receiveString);\n MachineInfo.MachineState state = Message.getStateFromMessageString(receiveString);\n\n\n \n\n SocketAddress sa = receivePacket.getSocketAddress();\n String[] address = sa.toString().split(\":\");\n if(address[0].startsWith(\"/\")) {\n address[0] = address[0].substring(1);\n }\n\n MachineInfo machineInfo = new MachineInfo(address[0], port);\n machineInfo.setUUID(uuid).setTimestamp(timestamp).setState(state);\n\n EventMessage em = null;\n \n if(type == 0 ) { // join message\n if(DistributedMachine.isContactServer()) {\n machineInfo.setStateConnected();\n em = new EventMessage(EventMessage.EventType.Join);\n em.setMachineInfo(machineInfo);\n }\n logger.info(\"Received a join message\");\n } else if(type == 1) { //leave message\n em = new EventMessage(EventMessage.EventType.Leave);\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a leave message\");\n } else if(type == 2) { //sync message\n em = new EventMessage(EventMessage.EventType.Sync);\n em.setMemberList(Message.getMemberListfromMessageString(receiveString));\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a sync message\");\n } else if(type == 3) { //ping message\n em = new EventMessage(EventMessage.EventType.Ping);\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a ping\");\n } else if(type == 4) { //receive pingack\n em = new EventMessage(EventMessage.EventType.Ping_ACK);\n em.setMachineInfo(machineInfo);\n logger.info(\"Received a pingack\");\n }\n \n else if (type == -1){\n logger.error(\"Receive an unknown type message\");\n }\n\n if(em != null) {\n eventMessageQueue.add(em);\n }\n\n\n logger.info(\"Receive \" + receiveString);\n// System.out.println();\n// System.out.println(receiveString);\n// System.out.print(\">\");\n }\n } catch(Exception ex) {\n logger.info(ex.toString());\n }\n }\n });\n\n serverThread.start();\n }", "@Override\n\tpublic void run(){\n\t\ttry{\n\t\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\twhile(true){\n\t\t\t\ttry{\t\t\t\t\t\n\t\t\t\t\tmethReception(in);\n\t\t\t\t\texeBdd();\n\t\t\t\t\tmethEnvoie();\n\t\t\t\t}catch(IllegalArgumentException | ExecutionException | InterruptedException a){\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(a.getMessage());\t\t\t\t\n\t\t \tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Fin des comunucations avec :\" + socket.getPort());\n\t\t\tAuthentification.CLIENTS.remove(this);\n\t\t\tsocket.close();\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"problème BufferedReader du ChatServeur\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\tString msg=\"\";\n\t\t\twhile((msg=br.readLine())!=null){\n\t\t\t\tSystem.out.println((server?\"Client\":\"Server\")+\": \"+msg);\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\t}", "public void Subscribe(Integer busLineID, final ConfigurationActivity configurationActivity) { // subscribe se ena buslineID\n Socket requestSocket = null;\n ObjectOutputStream out = null; // Gets and sends streams\n ObjectInputStream in = null;\n\n try {\n Client client = new Client();\n client.brokers = Subscriber.this.brokers;\n\n subscribedLists.add(busLineID);\n subscribedThreads.put(busLineID, client);\n\n int hash = HashTopic(busLineID);\n\n int no = FindBroker(hash);\n\n requestSocket = connectWithTimeout(no, TIMEOUT);\n\n subscribedSockets.put(busLineID, requestSocket);\n\n out = new ObjectOutputStream(requestSocket.getOutputStream());\n in = new ObjectInputStream(requestSocket.getInputStream());\n\n String s = in.readUTF();\n\n out.writeUTF(\"subscriber\");\n\n out.flush();\n\n s = in.readUTF();\n\n out.writeUTF(\"subscribe\");\n\n out.flush();\n\n String msg = String.valueOf(busLineID);\n out.writeUTF(msg);\n out.flush();\n\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 4;\n MapsActivity.mainHandler.sendMessage(message);\n\n configurationActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n configurationActivity.updateGUI();\n }\n });\n\n\n while (true) {\n s = in.readUTF();\n visualizeData(s);\n\n message = MapsActivity.mainHandler.obtainMessage();\n message.what = 5;\n message.obj = s;\n\n MapsActivity.mainHandler.sendMessage(message);\n }\n } catch (SocketTimeoutException ex) {\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 8;\n message.obj = busLineID;\n MapsActivity.mainHandler.sendMessage(message);\n ex.printStackTrace();\n\n subscribedLists.remove(busLineID);\n\n if (requestSocket != null) {\n disconnect(requestSocket, out, in);\n }\n } catch (Exception ex) {\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 7;\n message.obj = ex.toString();\n MapsActivity.mainHandler.sendMessage(message);\n ex.printStackTrace();\n\n if (requestSocket != null) {\n disconnect(requestSocket, out, in);\n }\n }\n }", "public void run(){\n //wait for clients to connect to the server and start a new thread,\n //then continue waiting.\n while(true) {\n //create the packet to accept a message\n byte[] buf = new byte[bufSize];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n try {\n //receive a message from the client\n datagramSocket.receive(packet);\n } catch (IOException e) {\n System.err.println(\"Error receiving datagram packet\");\n } catch (Exception e){\n serverGUI.displayText(\"Error: There is an issue with your connection. Please restart the program.\");\n }\n //Start a new thread for this client\n ServerThread servant = new ServerThread(mainServer, packet, serverGUI);\n servant.start();\n }\n }", "public void fromMicroServer() throws Exception {\n \tbyte[] buf = new byte[1024];\n\t\tDatagramPacket dp = new DatagramPacket(buf, 1024);\n\t\ttry{\n\t\t\ttoMicroServer.receive(dp);\n\t\t\trecieve = true;\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"Connection timed out, retrying...\");\n\t\t\trecieve = false;\n\t\t\treturn;\n\t\t}\n str = new String(dp.getData(), 0, dp.getLength());\n\t\tSystem.out.printf(\"Child about to send message: %s \\n\", str);\n\n }", "public void run() {\n\t\ttry {\n\t\t\tout = new PrintWriter(client.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\ts.getMessage(this, inputLine);\n\t\t\t\tSystem.out.println(inputLine);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to host\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }", "@Override\n public void run() {\n try {\n boolean autoFlush = true;\n fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n toClient = new PrintWriter(clientSocket.getOutputStream(), autoFlush);\n } catch (IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n for (String entry : communicationWhenStarting) {\n sendMsg(entry);\n }\n while (connected) {\n try {\n Message msg = new Message(fromClient.readLine());\n updateClientAction(msg);\n } catch (IOException ioe) {\n disconnectClient();\n throw new MessageException(ioe);\n }\n }\n }", "public void processStart(){\n initWorkerQueue();\n DataBean serverArgs = new DataBean();\n serverArgs.setValue(\"mode\",\"server\");\n serverArgs.setValue(\"messagekey\",\"72999\");\n serverArgs.setValue(\"user\",\"auth\");\n serverArgs.setValue(\"messagechannel\",\"/esb/system\");\n messageClient = new MessageClient(this,serverArgs);\n Helper.writeLog(1,\"starting message server\");\n messageClient.addHandler(this);\n \n }", "@Override\n public void run() {\n Message message = new Message();\n message.what=1;\n handler.sendMessage(message);\n }", "public synchronized void send(final String _mes) {\r\n\t\t// new Thread(new Runnable() {\r\n\t\t// @Override\r\n\t\t// public void run() {\r\n\t\tif (!closed) {\r\n\t\t\toutput.write(_mes + \"\\r\\n\");\r\n\t\t\toutput.flush();\r\n\t\t}\r\n\t\t// }\r\n\t\t// }).run();\r\n\t}", "private void receiveAndDispatchMessage() {\n String response = null;\n try {\n while((response = bufferedReader.readLine()) != null) {\n System.out.println(\"received message from server: \" + response);\n String messageKind = \"\";\n if(response.contains(\":\")) {\n messageKind = response.substring(0, response.indexOf(\":\"));\n } else {\n messageKind = response;\n }\n Bundle bundle = new Bundle();\n bundle.putString(\"response\", response);\n switch (messageKind) {\n case ClientMessageKind.SIGNUPDENIED:\n case ClientMessageKind.SIGNUPOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNUPACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNUPACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.SIGNINDENIED:\n case ClientMessageKind.SIGNINOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNINACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNINACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMDRIVER:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMPASSENGER:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERDEST:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.STARTRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n } else if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.ENDRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERENDSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERENDSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEPASSENGERPROFILEDENIED:\n case ClientMessageKind.UPDATEPASSENGERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEDRIVERPROFILEDENIED:\n case ClientMessageKind.UPDATEDRIVERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n default:\n break;\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "static void sendMsg(String msg){\r\n for(ServerThread t: threads){\r\n t.sendMsgToClient(msg);\r\n }\r\n }", "@Override\r\n\tpublic void run() {\n\t\tString msg;\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t\tBufferedReader inFromClient =\r\n\t\t\t\t new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n\t\t\t\t DataOutputStream outToClient = new DataOutputStream(socket.getOutputStream());\r\n\t\t\t\t \r\n\t\t\t\t String clientSentence;\r\n\t\t\t\t while((clientSentence = inFromClient.readLine())!=null)\r\n\t\t\t\t {\t\r\n\t\t\t\t\t System.out.println(\"Received: \" + clientSentence);\r\n\t\t\t\t\t System.out.println(\"port: \" + socket.getPort());\r\n\r\n\t\t\t\t\t String newsentence = clientSentence + '\\n';\r\n\t\t\t\t\t outToClient.writeBytes(\"Server: \"+newsentence);\r\n\t\t\t\t\t \r\n\t\t\t\r\n\t\t\t\t }\r\n//\t\t\t\t \r\n//\t\t\t\t\treader.close();\r\n//\t\t\t\t\tinFromClient.close();\r\n//\t\t\t\t\toutToClient.close();\r\n//\t\t\t\t\tsocket.close();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SocketException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Client has Disconnected\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttextsent=0;\n\t\t\t\t\t\t\t\t\tesocket = new Socket(TestConnection.ip, TestConnection.port);\n\n\t\t\t\t\t\t\t\t// Log.e(\"ClientActivity\", \"C: Sending command.\");\n\t\t\t\t\t\t\t\t\tedos=new DataOutputStream(esocket.getOutputStream());\n\t\t\t\t\t\t\t\t\tedis=new DataInputStream(esocket.getInputStream());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\tedos.writeUTF(\"DOUBT\");\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 \n\t\t\t\t\t\t\t// \tif(TestConnection.username!=null)\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.username);\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.roll);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.macid);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etopic.getText().toString()); // SEND\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SUBJECT\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etext.getText().toString()); // SEND\n\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// MESSAGE\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Sending imageflag\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//Image sending\n\t\t\t\t\t\t\t\t\tif(AudioMainActivity.imageflag!=1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tedos.writeUTF(\"send_image\");\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"send_image\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tAudioMainActivity.imageflag=1;\n\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\tsendFile(filedp);\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\telse\n\t\t\t\t\t\t\t\t\t{edos.writeUTF(\"not_send_image\");\n\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"not_send_image\");\n\t\t\t\t\t\t\t\t\tString ifdone =edis.readUTF();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(ifdone.equals(\"not_done\"))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\t\tsendFile(filedp);\n\t\t\t\t\t\t\t\t\t\tLog.e(\"ZABARDASTI\",\"Image Sent\");\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\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\tfinal String msgServer = edis.readUTF(); // RECEIVE\n\t\t\t\t\t\t\t\t\tLog.e(\"Confirmation\", \"msgServer=\"+msgServer);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CONFIRMATION\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// IF MESSAGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// RECEIVED BY\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SERVER\n\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\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tif (msgServer.contains(\"received\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this, \"Doubt Sent\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t\temerdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\ttextsent=1;\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\tAudioMainActivity.doubt.add(etopic.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.textMessage.add(etext.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.count=5-AudioMainActivity.doubt.size();\n\t\t\t\t\t\t\t\t\t\t\t\t//counter.setText(\"Doubts Remaining : \"+count);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Server Error! Doubt not sent!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//doubtSubject.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t//doubtText.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(true);\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}\n\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\tif (esocket != null) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t// close socket connection after using it\n\t\t\t\t\t\t\t\t\t\tesocket.close();\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\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}", "public void start()\n {\n isRunning = true;\n try\n {\n //metoden opretter en ny socket for serveren på den valgte port\n ServerSocket serverSocket = new ServerSocket(port);\n //mens serveren kører venter den på en client\n while (isRunning)\n {\n serverDisplay(\"Serveren venter på clienter på port: \" + port);\n //accepterer clienten på socketen\n Socket socket = serverSocket.accept();\n\n if (!isRunning)\n {\n break;\n }\n // laver en ny thread til clienten med socketen der er blevet accepteret\n HandleClientThread handleClientThread = new HandleClientThread(socket);\n\n // her blever tråden tilføjet til arryet af clienter\n clientThreadArrayList.add(handleClientThread);\n // Starer handleclient tråden som håndtere clienter\n handleClientThread.start();\n }\n try\n {\n //Her lukker serveren socketen\n serverSocket.close();\n for (int i = 0; i < clientThreadArrayList.size() ; i++)\n {\n HandleClientThread hct = clientThreadArrayList.get(i);\n try\n {\n hct.inputStream.close();\n hct.outputStream.close();\n hct.socket.close();\n }\n catch (IOException e)\n {\n System.out.println(\"Uknowen command \" + e);\n }\n }\n }\n catch (Exception e)\n {\n serverDisplay(\"Kunne ikke lukke serveren og clienterne pga. \" + e);\n }\n }\n catch (IOException e)\n {\n String message = dateFormat.format(new Date()) + \"Fejl på ny server socket\" + e + \"\\n\";\n serverDisplay(message);\n }\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tServerSocket servClient = new ServerSocket(9090);\n\t\t\tSocket client;\n\t\t\tString id, msg;\n\t\t\tPackageToSend packageReceived;\n\t\t\twhile(true) {\n\t\t\t\tclient = servClient.accept();\n\t\t\t\tObjectInputStream inStream = \n\t\t\t\t\t\tnew ObjectInputStream(\n\t\t\t\t\t\t\t\tclient.getInputStream());\n\t\t\t\tpackageReceived = (PackageToSend) inStream.readObject();\n\t\t\t\tid = packageReceived.getId();\n\t\t\t\tmsg = packageReceived.getMsg();\n\t\t\t\tthis.textArea.append(id + \": \" + msg + \"\\n\");\n\t\t\t\tinStream.close();\n\t\t\t\tclient.close();\n\t\t\t}\n\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "private void run() throws IOException {\n\n Socket socket = new Socket(\"localhost\", 8678);\n in = new BufferedReader(new InputStreamReader(\n socket.getInputStream()));\n\n // Process all messages from server, according to the protocol.\n\n while (true) {\n String line = in.readLine();\n if (line.startsWith(\"SUBMIT\")) {\n new MessageThread(socket).start();\n }\n else if (line.startsWith(\"NAMEACCEPTED\")) {\n System.out.println(\"Success\");;\n } else if (line.startsWith(\"MESSAGE\")) {\n System.out.println(line);\n }\n }\n }", "public void run(){\n\tSystem.out.println(\"ServerListenerThread started!\");\n\t\t\t\twhile (parent.isWorking)\n\t\t\t\t{\n\n\t\t\t\t\tint t=0;\n\t\t\t\t\tString user = null,message=null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tt =Integer.parseInt(parent.inputStream.readLine());\n\t\t\t\t\t\tuser=parent.inputStream.readLine();\n\t\t\t\t\t\tmessage=parent.inputStream.readLine();\n\t\t\t\t\t\tif(t==MessageType.WILL)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\">\"+user+\" wants to play!\");\n\t\t\t\t\t\t\tparent.parent.addWaiter(parent,user);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(t==MessageType.PRIVATE || t==MessageType.MOVE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"Inside message from: \"+user);\n\t\t\t\t\t\t\tparent.parent.sendPlayed(t,user,message);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparent.parent.sendMessage(t, user, message);\n\t\t\t\t\t\t\tif(!parent.socket.isConnected())break;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\n\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Recevied a message from: \"+user+\": \"+message);\n\n\t\t\t\t}\n\t\t\t//END\n\t\t\tsynchronized(this)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tparent.inputStream.close();\n\t\t\t\t\tparent.outputStream.close();\n\t\t \tparent.socket.close();\n\t\t \tSystem.out.println(\"ServerListenerThread closed!\");\n\t\t }\n\t\t catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\t\t\t}\n}", "private void sendMessageToClient(String messageToClient){\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n output.println(\"\\n\" + \"Server: \" + messageToClient);\n output.flush();\n }\n });\n }", "private void runProgram() {\n\n try {\n ServerSocket ss = new ServerSocket(8088);\n Dispatcher dispatcher = new Dispatcher(allmsg,allNamedPrintwriters,clientsToBeRemoved);\n Cleanup cleanup = new Cleanup(clientsToBeRemoved,allClients);\n cleanup.start();\n dispatcher.start();\n logger.initializeLogger();\n\n while (true) {\n Socket client = ss.accept();\n InputStreamReader ir = new InputStreamReader(client.getInputStream());\n PrintWriter printWriter = new PrintWriter(client.getOutputStream(),true);\n BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String input = br.readLine();\n System.out.println(input);\n String name = input.substring(8);\n logger.logEventInfo(name + \" has connected to the chatserver!\");\n allClients.put(name,client);\n allNamedPrintwriters.put(name,printWriter);\n ClientHandler cl = new ClientHandler(name,br, printWriter, allmsg);\n Thread t = new Thread(cl);\n t.start();\n allmsg.add(\"ONLINE#\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void run() {\n\t\n\t\tboolean finMsg = false;\n\n \n \n\t\ttry {\n\t\t\t\n\t\t DataInputStream is = new DataInputStream(socket.getInputStream());\n DataOutputStream os = new DataOutputStream(socket.getOutputStream()); \n\t\t\t\n\t\t\twhile (!finMsg) {\n\t\t\t\t\n\t\t\tString[] client_Msg = is.readUTF().split(\" \");\n\t\t\t\t\n\t\t\tswitch (client_Msg[1]) {\n\t\t\t\n\t\t\t\tcase \"REG\":\n\t\t\t\t\thandleRegister(client_Msg, os);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase \"RDY\":\n\t\t\t\t\thandleReady(client_Msg, os);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase \"MOV\":\n\t\t\t\t\thandleMove(client_Msg, os);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\tcase \"FIN\":\n\t\t\t\t\tsocket.close();\n\t\t\t\t\tfinMsg=true;\n\t\t\t\t\tbreak;\n\t\t\t \n\t\t\t\n\t\t\t\t}\n\t\t\n\t\t \n\t\t\t}\n\t\t\t\t\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treMsg = withClient.getInputStream();\r\n\t\t\t\t\t\tbyte[] reBuffer = new byte[500];\r\n\t\t\t\t\t\treMsg.read(reBuffer);\r\n\t\t\t\t\t\tString msg = new String(reBuffer);\r\n\t\t\t\t\t\tmsg = msg.trim();\r\n\t\t\t\t\t\tif (msg.indexOf(\"/bye\") == 0) {\r\n\t\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tAnalysis.ckMsg(mySin, msg);\r\n\t\t\t\t\t\t}\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\tendCat();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\tpublic void run() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t//Get a list of pairs. The pair will be a chunkname with a chunkserver \r\n\t\t/*for(Pair<String, String> p: EventFactory.hostToFiles.getChunkLocations(message.getContent())){\r\n\t\t\tSystem.out.println(\"The location is: \" + p.getKey() + \" and the chunkname is: \" + p.getValue());\r\n\t\t\t\r\n\t\t\t//actual code will contact chunk servers and tell them to read and forward the file to the client\r\n\t\t\tMessage forwardToClient = new Message(\"ForwardChunkToClient\");\r\n\t\t\t//chunkname, servername, port\r\n\t\t\tforwardToClient.setContent(p.getKey());\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tTCPSender sender = new TCPSender(new Socket(p.getValue().split(\" \")[0], Integer.parseInt(p.getValue().split(\" \")[1])));\r\n\t\t\t\tsender.sendData(forwardToClient);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t} catch (NumberFormatException 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 (UnknownHostException 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 (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\t\r\n\t\t}*/\r\n\t\t//Send the list to the client so it can request the chunks from chunkServers\r\n\t\t//Any other way seems like it would be beyond a pain. \r\n\t\tLinkedList<String> fileAndHosts = new LinkedList<String>();\r\n\t\tfor(PairStrings p: EventFactory.hostToFiles.getChunkLocations(message.getContent())) {\r\n\t\t\tString fileAndHost = p.getValue() + \" \" + p.getKey();\r\n\t\t\tfileAndHosts.add(fileAndHost);\r\n\t\t}\r\n\t\t\r\n\t\tMessage getFromChunkServers = new Message(\"RequestChunksFromServers\");\r\n\t\t\r\n\t\t//If the list is empy, the no file was found, report invalid.\r\n\t\tif(fileAndHosts.size() == 0) {\r\n\t\t\tgetFromChunkServers.setList(fileAndHosts);\r\n\t\t\tgetFromChunkServers.setContent(\"invalid\" + \" \" + message.getContent());\r\n\t\t} else {\r\n\t\t\tgetFromChunkServers.setList(fileAndHosts);\r\n\t\t\tgetFromChunkServers.setContent(\"valid\" + \" \" + message.getContent());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tTCPSender sender = new TCPSender(new Socket(message.getSenderHostName(), message.getSenderPort()));\r\n\t\t\tsender.sendData(getFromChunkServers);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tSocket cliente = null;\n\t\t\t\t\tArrayList<Data> dataReceived;\n\t\t\t\t\tlong initialTime = System.currentTimeMillis();\n\t\t\t\t\twhile(!observer.isClosed())\n\t\t\t\t\t{\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"esperando atualizacao do Subject: \");\n\t\t\t\t\t\t\tcliente = observer.accept();\n\t\t\t\t\t\t\tSystem.out.println(\"Observer conectado: \"+cliente.getInetAddress().getHostAddress());\n\t\t\t\t\t\t\tObjectInputStream input = new ObjectInputStream(cliente.getInputStream());\n\t\t\t\t\t\t\ttry \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdataReceived= (ArrayList<Data>) input.readObject();\n\t\t\t\t\t\t\t\tSystem.out.println(\"Tempo decorrido desde a ultima \"\n\t\t\t\t\t\t\t\t\t\t+ \"atualizacao \" + (System.currentTimeMillis()-initialTime));\n\t\t\t\t\t\t\t\tinitialTime = System.currentTimeMillis();\n\t\t\t\t\t\t\t\tinput.close();\n\t\t\t\t\t\t\t\tcliente.close();\n\t\t\t\t\t\t\t\tfor(Data it:dataReceived) {\n\t\t\t\t\t\t\t\t\tCliente.this.point(it.getFramePos(), it.getPosX(), it.getPosY(),\n\t\t\t\t\t\t\t\t\t\t\tit.getColor(), it.getSize());\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} catch (ClassNotFoundException 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} catch (IOException e1) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tcliente.close();\n\t\t\t\t\t\t\t\tthis.run();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n public void run() {\n Message message = mHandler.obtainMessage(1);\n mHandler.sendMessage(message);\n }", "public void run() {\n\t\t\tPrintWriter out = null;\n\t\t\ttry {\n\n\t\t\t\t/*\n\t\t\t\t * byte[] buf = new byte[2048]; DatagramPacket packet = new\n\t\t\t\t * DatagramPacket(buf, buf.length);\n\t\t\t\t * System.out.print(\"Server: Receiving\\n\");\n\t\t\t\t * incomingUDP.receive(packet);\n\t\t\t\t * \n\t\t\t\t * System.out.print(\"Receiving successful packet with :\" +\n\t\t\t\t * packet.getLength() + \"kb\");\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tout = new PrintWriter(new OutputStreamWriter(\n\t\t\t\t\t\tincoming.getOutputStream()));\n\n\t\t\t\t// inform the server of this new client\n\t\t\t\tServerNMS.this.addClient(out);\n\n\t\t\t\tout.print(\"Welcome to AndyChat! \");\n\t\t\t\tout.println(\"Enter BYE to exit.\");\n\t\t\t\tout.flush();\n\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tincoming.getInputStream()));\n\t\t\t\tfor (;;) {\n\t\t\t\t\tString msg = in.readLine();\n\t\t\t\t\tif (msg == null) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msg.trim().equals(\"BYE\"))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tSystem.out.println(\"Received: \" + msg\n\t\t\t\t\t\t\t\t+ \"With size is: \" + msg.getBytes().length\n\t\t\t\t\t\t\t\t+ \"bytes\");\n\t\t\t\t\t\t// broadcast the receive message\n\t\t\t\t\t\tServerNMS.this.broadcast(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tincoming.close();\n\n\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t\t}\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Override\n public void run(){\n try {\n while(true) {\n Thread.sleep(10);\n\n InputStream inputStream = socket.getInputStream();\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\n OutputStream outputStream = socket.getOutputStream();\n PrintWriter printWriter = new PrintWriter(outputStream, true);\n\n // Konwersja ze strumienia na stringa\n String fromClient = bufferedReader.readLine();\n if(fromClient != null) {\n\n System.out.println(\"From client: \" + fromClient);\n String serverResponse = Commands.serverAction(fromClient);\n printWriter.println(serverResponse);\n printWriter.flush();\n System.out.println(\"Server respond: \" + serverResponse);\n break;\n\n }\n }\n }catch (IOException | InterruptedException e) {\n System.out.println(\"Connection lost\");\n try {\n socket.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n\n\n }", "@Override\n public void run() {\n try {\n socket = new Socket(\"192.168.0.165\", 2000);\n out = new PrintWriter(socket.getOutputStream());\n in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n ReadThread readThread = new ReadThread();\n readThread.start();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n boolean done = false;\n\n while (!done) {\n if (message != null) {\n try {\n out.print(message);\n out.flush();\n message = null;\n } catch (Exception e) {\n e.printStackTrace();\n try {\n socket.close();\n in.close();\n out.close();\n done = true;\n } catch (IOException d) {\n e.printStackTrace();\n }\n }\n }\n }\n disconnect();\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tInputStream inputStream = mSocket.getInputStream();\n\t\t\tint leng;\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tByteArrayBuffer[] data = {new ByteArrayBuffer(1024 * 32)};\n\t\t\twhile((leng = inputStream.read(buffer)) != -1 && mConected)\n\t\t\t{\n\t\t\t\tif(mConected)\n\t\t\t\t{\n\t\t\t\t\tdata[0].append(buffer, data[0].length(), leng);\n\t\t\t\t\tprocessMessage(data);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(TAG, \"Cannot set InputStream\\nNetwork error\");\n\t\t\tevent.connectionLost();\n\t\t} catch (ProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tevent.connectionLost();\n\t\t}\n\t}", "@Override\n public void run()\n {\n while (true)\n {\n\n // create output stream attached to the socket\n\n // read message from client.\n try\n {\n Message message = (Message) inFromClient.readObject();\n System.out.println(\"Message from Client: \" + message);\n\n // Send reply to client.\n Message replyMessage = new Message(message.getId(), message.getBody().toUpperCase());\n\n for (int i = 0; i < mb.numberofclients(); i++)\n {\n mb.getConnection(i).returnMessage().writeObject(message);\n\n }\n list.add(message);\n db2.Write(list);\n\n }\n catch (Exception ex)\n {\n \n }\n }\n\n }", "public static void main(String[] args) throws Exception {\n //TcpClient client = new TcpClient();\n System.out.println(\"Client Started\"); \n \n //test for infinite messages\n //client.infiniteHiTest();\n \n //test for 10 lac messages\n //client.definedForTest(1000000);\n \n //5000 messages with 45 sec delay\n //client.sendDataInDelay(5000,45000);\n \n \n Socket clientSocket = new Socket(\"localhost\", TcpServer.PORT); \n DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());\n \n outToServer.writeUTF(\"HI from non mina\");\n outToServer.flush();\n \n \n \n \n \n //client.connector.dispose(true);\n \n }", "protected void sendMessageToServer(MessageSecure m)\r\n\t{\r\n\t\tnew MessageSenderThread(m).start();\r\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tif (MyServer.flag)\n\t\t{\n\t\t\tTool.getPrintWriter()\n\t\t\t\t\t.println(\"Accept : 3D is online . \\nServer : \" + MyServer.getU3DSocket().size() + \" Connect . \");\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// return;\n\t\t} else\n\t\t{\n\t\t\tTool.getPrintWriter().println(\"Accept : Server : \" + MyServer.getSocketList().size() + \" Connect . \");\n\t\t\tTool.getPrintWriter().println(\"Accept : 用户端非3d连接.\");\n\t\t\tTool.getPrintWriter().println(\"Accept : 测试是否空 : \" + (client == null));\n\t\t\tnew Client(client);\n\t\t}\n\t}", "public void run() {\n\t\tPrintWriter out = null;\r\n\t\ttry {\r\n\t\t\tout = new PrintWriter(clientSocket.getOutputStream(), true);\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\tBufferedReader in = null;\r\n\t\ttry {\r\n\t\t\tin = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\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\t\tString inputLine, outputLine;\r\n\t\tProtocol kkp = new Protocol();\r\n\r\n\t\toutputLine = kkp.processInput(null);\r\n\t\tout.println(outputLine);\r\n\t\t// Leo continuamente e interactuo\r\n\t\ttry {\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n//\t\t\t\toutputLine = kkp.processInput(inputLine);\r\n\t\t\t\toutputLine = inputLine;\r\n\t\t\t\tout.println(outputLine);\r\n\t\t\t\tif (outputLine.equals(\"Bye.\")){\r\n\t\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t\t}\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\t\ttry {\r\n\t\t\t// Cierro la entrada y salida\r\n\t\t\tout.close();\r\n\t\t\tin.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} finally{\r\n\t\t\tlog.info(\"Clientes activos: \"+ (taskExecutor.getThreadPoolExecutor().getActiveCount()-1));\t\t\t\r\n\t\t}\r\n\t}", "public void run() {\r\n\t\ttry {\r\n\t\t\toutput = clientSocket.getOutputStream();\r\n\t\t\tinput = clientSocket.getInputStream();\r\n\t\t// send initial message on connect\r\n\t\t\tsendMessage(new common.messages.KVAdminMessage(\"connect\", \"CONNECT_SUCCESS\", \"\", \"\")); \r\n\r\n\t\t\r\n\t\t\twhile(isOpen) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Receive the KV Message from Client and check if it is valid\r\n\t\t\t\t\tcommon.messages.KVMessage latestMsg = receiveMessage();\r\n\t\t\t\t\tif (latestMsg.validityCheck() == null) {\r\n\t\t\t\t\t\t// If it is valid Handle the message by calling the function in KVServer\r\n\t\t\t\t\t\tcommon.messages.KVMessage returnMsg = m_server.handleClientMessage(latestMsg);\r\n\t\t\t\t\t\tif (returnMsg.validityCheck() == null) {\r\n\t\t\t\t\t\t\t// If returned KVMessage was valid send it back to the client\r\n\t\t\t\t\t\t\tif (returnMsg.getStatus().equals(\"SERVER_STOPPED\") || returnMsg.getStatus().equals(\"SERVER_WRITE_LOCK\") || returnMsg.getStatus().equals(\"SERVER_NOT_RESPONSIBLE\")){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg.getHeader() + \" was not processed by Server.\");\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\tSystem.out.println(\"Last command from client \" + latestMsg.getHeader() + \" was Successfully Processed by Server!\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsendMessage(returnMsg);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// If returned KVMessage is not valid it will have all blank fields\r\n\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg + \" encountered a problem on Server side!\");\r\n\t\t\t\t\t\t\tsendMessage(returnMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if (latestMsg.getHeader().trim().equals(\"\")) {\r\n\t\t\t\t\t\t//echo empty messages\r\n\t\t\t\t\t\tsendMessage(latestMsg);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// If it is a bad message output error and echo it back to the client\r\n\t\t\t\t\t\tlogger.debug(\"Message from Client was not valid, sending errorous message back to client\");\r\n\t\t\t\t\t\tlogger.debug(latestMsg.getError());\r\n\t\t\t\t\t\tsendMessage(new common.messages.KVAdminMessage(latestMsg.getHeader(), \"FAILED\", latestMsg.getKey(), latestMsg.getValue()));\r\n\t\t\t\t\t}\r\n\t\t\t\t/* connection either terminated by the client or lost due to \r\n\t\t\t\t * network problems*/\t\r\n\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\tlogger.error(\"Connection lost!\");\r\n\t\t\t\t\tisOpen = false;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tlogger.error(\"Error! Connection could not be established!\", ioe);\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tif (clientSocket != null) {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t\toutput.close();\r\n\t\t\t\t\tclientSocket.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tlogger.error(\"Error! Unable to tear down connection!\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"Ausgangs-Puffer: \");\n//\t\t\t\t\tfor(int i=0; i<Message.length; i++)\tSystem.out.printf(\"0x%02X \", eeipClient.O_T_IOData[i]);\n//\t\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\t\t\t\t\t\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k>=3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\teeipClient.ForwardClose();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttimerflag1=false;\n\t\t\t\t\t\tMessagerec[0]=1;\n\t\t\t\t\t\tstate2=3;\n\t\t\t\t\t\tk=0;\n\t\t\t\t\t\tthis.cancel();\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n\tpublic void run()\n\t{\n\t\tSocket clientSocket;\n\t\tMemoryIO serverIO;\n\t\t// Detect whether the listener is shutdown. If not, it must be running all the time to wait for potential connections from clients. 11/27/2014, Bing Li\n\t\twhile (!super.isShutdown())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait and accept a connecting from a possible client residing on the coordinator. 11/27/2014, Bing Li\n\t\t\t\tclientSocket = super.accept();\n\t\t\t\t// Check whether the connected server IOs exceed the upper limit. 11/27/2014, Bing Li\n\t\t\t\tif (MemoryIORegistry.REGISTRY().getIOCount() >= ServerConfig.MAX_SERVER_IO_COUNT)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the upper limit is reached, the listener has to wait until an existing server IO is disposed. 11/27/2014, Bing Li\n\t\t\t\t\t\tsuper.holdOn();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If the upper limit of IOs is not reached, a server IO is initialized. A common Collaborator and the socket are the initial parameters. The shared common collaborator guarantees all of the server IOs from a certain client could notify with each other with the same lock. Then, the upper limit of server IOs is under the control. 11/27/2014, Bing Li\n//\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator(), ServerConfig.COORDINATOR_PORT_FOR_MEMORY);\n\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator());\n\t\t\t\t// Add the new created server IO into the registry for further management. 11/27/2014, Bing Li\n\t\t\t\tMemoryIORegistry.REGISTRY().addIO(serverIO);\n\t\t\t\t// Execute the new created server IO concurrently to respond the client requests in an asynchronous manner. 11/27/2014, Bing Li\n\t\t\t\tsuper.execute(serverIO);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\t\tInputStream istream = null;\n\t\ttry {\n\t\t\tistream = (this.socket).getInputStream();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t DataInputStream dstream = new DataInputStream(istream);\n\t \n\t username = null;\n\t try {\n\t \tusername = dstream.readLine();\n\t \tSystem.out.println(username + \" on server side! (username)\");\n\t \tthis.masterServer.addUserName(username);\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 // pause thread to read in from client.\n\t\tString friendUsername = null;\n\t try {\n\t \tfriendUsername = dstream.readLine();\n\t \tSystem.out.println(friendUsername + \" on server side!!!!! (friendUsername)\");\n\t \tfindFriendsThread(friendUsername);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t try {\n\t\t\tdstream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t try {\n\t\t\tistream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t //this.masterServer.addUserName(username);\n\t \n\t}", "private void sendReceiveRes(){\n\t}", "public void run() {\n\t\tPrintWriter escritor = null;\n\t\tBufferedReader lector = null;\n\n\t\t//In \n\t\tFileInputStream fis = null;\n\t\tBufferedInputStream bis = null;\n\n\t\t//Out\n\t\tOutputStream os = null;\n\n\n\n\t\ttry {\n\t\t\tescritor = new PrintWriter(socket.getOutputStream(), true);\n\t\t\tlector = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\t//procesar(lector, escritor);\n\n\t\t\tconexion = true;\n\n\t\t\tpruebaProcesar(lector, escritor);\n\t\t\tconexion = !socket.isClosed();\n\n\t\t\t//String seguir = lector.readLine();\n\t\t\tSystem.out.println(\"Pureba\");\n\n\t\t\tescritor.close();\n\t\t\tlector.close();\n\t\t\tsocket.close();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n protected TCPClient doInBackground(String... message) {\n mTcpClient = new TCPClient(new TCPClient.OnMessageReceived() {\n @Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n //this method calls the onProgressUpdate\n publishProgress(message);\n }\n });\n mTcpClient.run();\n\n return null;\n }", "@Override\n protected TCPClient doInBackground(String... message) {\n mTcpClient = new TCPClient(new TCPClient.OnMessageReceived() {\n @Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n //this method calls the onProgressUpdate\n publishProgress(message);\n }\n });\n mTcpClient.run();\n\n return null;\n }", "@Override\n protected TCPClient doInBackground(String... message) {\n mTcpClient = new TCPClient(new TCPClient.OnMessageReceived() {\n @Override\n //here the messageReceived method is implemented\n public void messageReceived(String message) {\n //this method calls the onProgressUpdate\n publishProgress(message);\n }\n });\n mTcpClient.run();\n\n return null;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tserveurConnect.add(client.getNomClient() + \" / \" + client.getClientSocket().getRemoteSocketAddress()\n\t\t\t\t\t\t+ \" déconnecté\");\n\n\t\t\t\tCompte c = new Compte(client.getNomClient(), client.getPassClient());\n\t\t\t\tComptes.remove(c);\n\n\t\t\t\tclients.remove(clientThreads.indexOf(client));\n\t\t\t\tSystem.out.println(\"erreur\" + clientThreads.indexOf(client));\n\t\t\t\tclientThreads.remove(clientThreads.indexOf(client));\n\t\t\t}", "public void run() {\n ServerSocket serverSocket = null;\n try {\n serverSocket = new ServerSocket(8823);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // running infinite loop for getting\n // client request\n while (true)\n {\n Socket socket = null;\n\n try\n {\n // socket object to receive incoming client requests\n socket = serverSocket.accept();\n\n //System.out.println(\"A new client is connected : \" + socket);\n\n // obtaining input and out streams\n InputStream inputStream = new DataInputStream(socket.getInputStream());\n OutputStream outputStream = new DataOutputStream(socket.getOutputStream());\n\n //System.out.println(\"Assigning new thread for this client\");\n\n // create a new thread object\n Thread t = new ClientHandler(socket, inputStream, outputStream);\n\n // Invoking the start() method\n t.start();\n\n }\n catch (Exception e){\n try {\n socket.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n e.printStackTrace();\n }\n }\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\ttry{\n\t\tServerEncoderDecoder encodeco = new ServerEncoderDecoder();\n\t\t\n\t\t\tbyte[] datatoWrite = new byte[2000];\n\t\t\t\tdatatoWrite = encodeco.encodeData(packet);\n\t\t\tserverConnection.getOutput().println(new String(datatoWrite));\n\t\t\tString ack = serverConnection.getInput().readLine();\n\t\t\tif(ack.equals(\"ACK\")){\n\t\t\t\t//System.out.println(\"ACK for request obtained\");\n\t\t\t\tCoordinator.incrementCounter();\n\t\t\t}\n\t\t\n\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@Override\n public void run() {\n try {\n //create a socket using sever name or IP and port\n socket = new Socket(serverName, serverPort);\n // set up stream\n start();\n //if everything is good, enable controls on GUI\n send.setEnabled(true); // setup buttons\n tf.setEnabled(true);\n connect.setEnabled(false);\n //catch execeptions if any\n } catch (UnknownHostException uhe) {\n display(\"Host unknown: \" + uhe.getMessage()); // Alert not the right host/ IP\n } catch (IOException ioe) {\n display(\"Unexpected exception: \" + ioe.getMessage());\n }\n //keep listening to incoming messages\n while (true) { // the infinite loop\n try {\n while (!bufferInput.ready()) { // when steam ready to read\n }\n String output = bufferInput.readLine(); // Received the data from socket\n while (output != null) \n {append(output + \"\\n\");\n output = bufferInput.readLine();} } \n catch (IOException ioe) {ioe.getMessage();}\t\n \t\t\t}\t\t }", "public void run(){\n\t\ttry{\n\t\t\t// Get client socket.\n\t\t\tSocket client = server.getClientSocket();\n\t\t\t// Get the inputstream from the socket\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\tString line;\n\t\t\twhile(true){\n\t\t\t\tif(client.isClosed()){\n\t\t\t\t\tSystem.out.println(\"The client is offline. Chat finished.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tline= reader.readLine();\n\t\t\t\t\tif(line.equals(\"bye\")){\n\t\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t\t\tSystem.out.println(\"Chat finished.\");\n\t\t\t\t\t\tclient.close();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Client: \");\n\t\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treader.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void run() {\n while (LANSyncServer.IS_CLIENT_ALIVE) {\n try {\n LANSyncServer.smsserver.sendMessage(HandleProcess.REFRESH_REQUEST_MESSAGE);\n Thread.sleep(6000);\n } catch (InterruptedException ex) {\n Logger.getLogger(SyncRequestServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "@Override\n\tpublic void run()\n\t{\n\t\ttry\n\t\t{\n\t\t\tInputStream is=socket.getInputStream();\n\t\t\t\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\tbyte[] buffer=new byte[200];\n\t\t\t\t\n\t\t\t\tint length=is.read(buffer);//这里也会阻塞,等待流中的数据写入\n\t\t\t\t\n\t\t\t\tString word=new String(buffer,0,length);\n\t\t\t\t\n\t\t\t\t//在这里解析下 如果是某个用户发来的退出信息,则调用函数管理socket,删除当前用户实体,并且广播当前所有用户列表,\n\t\t\t\tString[] words=word.split(\"#\");\n\t\t\t\t//System.out.println(\"#分割后有几段\"+words.length);\n\t\t\t\tif (words.length==3)//尾巴貌似不算。。\n\t\t\t\t{\n\t\t\t\t\t //如果是退出指令\n\t\t\t\t\n\t\t\t\t\tif (words[1].equals(\"exit\"))\n\t\t\t\t\t{\n//\t\t\t\t\t\tSystem.out.println(\"进入退出指令\");\n\t\t\t\t\t\t//找这个\n\t\t\t\t\t\tString exitname=words[2];\n\t\t\t\t\t\t//QQServer.al //中有没有Cliententy .name\n\t\t\t\t\t\tfor (Iterator iterator = QQServer.al.iterator(); iterator.hasNext();)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tQQServer.Cliententy cliententy = (Cliententy) iterator.next();\n\t\t\t\t\t\t\tif (cliententy.name.equals(exitname))\n\t\t\t\t\t\t\t{\n\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tQQServer.al.remove(cliententy);//这样删除这个节点\n\t\t\t\t\t\t\t\tcliententy.socket.close();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n//\t\t\t\t\t\t\n//\t\t\t\t\t\tfor (Iterator iterator = QQServer.al.iterator(); iterator\n//\t\t\t\t\t\t\t\t.hasNext();)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tSystem.out.println(( (Cliententy) iterator.next()).name);\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t\t//并通知各个客户端修改当前list\n\t\t\t\t\t\tQQServer.notifyusers();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//把当前线程也要关闭\n\t\t\t\t\t\tThread.currentThread().interrupt();//中断此线程\n\t\t\t\t\t\t\n\t\t\t\t\t}//if退出指令\n\t\t\t\t\t\n\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}//这是指令\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t//这里说明它是普通的指令\n\t\t\t\tSystem.out.println(\"转发广播用户信息:\"+word);\n\t\t\t\t//这里转给输出流就好了嘛 \n\t\t\t\tqqServerOutputThread.broadcast(word);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public void run() {\n try {\n String receivedMessage = \"\";\n \t\twhile (!receivedMessage.startsWith(this.PSEUDO+\" left.\")) {\n \n byte[] buf = new byte[256];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n \n clientSocket.receive(packet);\n receivedMessage = new String(packet.getData(), packet.getOffset(), packet.getLength());\n\n conversation.append(receivedMessage + \"\\n\");\n\n \t\t}\n \t\tSystem.exit(0);\n\n \t} catch (Exception e) {\n \tSystem.err.println(\"Error in ReceptionClientThread:\" + e); \n }\n }", "@Override\r\n\tpublic void onMessage(Message rcvMessage) {\n\r\n\t\tObjectMessage msg = null;\r\n\t\ttry {\r\n\r\n\t\t\tLOGGER.warning(\"Inicio\");\r\n\t\t\tThread.sleep(3000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tLOGGER.warning(\"Desapachado.\");\r\n\r\n\t}" ]
[ "0.73428", "0.7212352", "0.71411526", "0.70550954", "0.6837244", "0.6835466", "0.6810074", "0.6807823", "0.6750933", "0.6717037", "0.670644", "0.6705688", "0.6705164", "0.66998494", "0.669763", "0.66968733", "0.66913766", "0.6683761", "0.6682571", "0.66536844", "0.6648824", "0.6641632", "0.66323704", "0.65906024", "0.6582946", "0.6574124", "0.6567488", "0.6564601", "0.65526855", "0.651879", "0.65187657", "0.6513475", "0.6499726", "0.6498504", "0.64976597", "0.6494842", "0.64928573", "0.64857435", "0.6455202", "0.6451317", "0.6437087", "0.6432326", "0.64291877", "0.64288", "0.64135313", "0.6398301", "0.63906807", "0.63881505", "0.63766843", "0.6369069", "0.63642234", "0.6356552", "0.6340244", "0.63310486", "0.6329938", "0.6329734", "0.6327193", "0.6322109", "0.63151705", "0.6311967", "0.63112587", "0.63100195", "0.63073283", "0.6305444", "0.6303179", "0.62988514", "0.6294478", "0.62897205", "0.62785494", "0.62614447", "0.6249512", "0.6247464", "0.6242381", "0.62389755", "0.62376577", "0.62308645", "0.62244505", "0.62191534", "0.62119657", "0.62106806", "0.62059665", "0.6202131", "0.61953896", "0.6185404", "0.6184154", "0.61836827", "0.61817974", "0.6180768", "0.617184", "0.6163497", "0.6163497", "0.6163497", "0.6162762", "0.61560893", "0.6154872", "0.61407703", "0.6138718", "0.6131257", "0.6128538", "0.61245", "0.6120898" ]
0.0
-1
Ensure that this.subDevices is never null and is always mutable
public Config setSubDevices(Set<DeviceCredential> subDevices) { this.subDevices = subDevices == null ? new HashSet<>() : new HashSet<>(subDevices); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addSubDevice(PhysicalDevice subDevice, String id);", "public void setHaveSub(){\n\t\tthis.haveSub = true;\n\t}", "public static void setCoreSub(ArrayList<Subject> aCoreSub) {\n coreSub = aCoreSub;\n }", "public final void setSubSystem(SubSystem subSystem){\n this.peripheralSubSystem = subSystem;\n }", "void setUnused(){\n assert this.used == true;\n\n //let the parent pointer remain\n this.hf = 0;\n this.used = false;\n\n }", "@Override\n public boolean isMutable() {\n return true;\n }", "void addDeviceComplete(boolean hasOtherDevices);", "@Override\n public boolean isMutable()\n {\n return true;\n }", "public DeviceChanged(@NotNull AudioDevice audioDevice) {\n super(null);\n Intrinsics.checkNotNullParameter(audioDevice, \"device\");\n this.a = audioDevice;\n }", "public DeviceListChanged(@NotNull List<? extends AudioDevice> list) {\n super(null);\n Intrinsics.checkNotNullParameter(list, \"devices\");\n this.a = list;\n }", "@Override\r\n\tpublic boolean OC_supportSub()\r\n\t{\n\t\treturn false;\r\n\t}", "@Override\n public void updateWithoutObservations(SensingDevice sensingDevice) {\n\n }", "@Override\n\tpublic void brokenSubscription() {\n\t\t\n\t}", "public IDevice[] getDevices() { return devices; }", "public void setSubQueue(SubQueue subQueue) {\n this.subQueue = subQueue;\n }", "@Test @Ignore\r\n public void testSubListSetAll() {\r\n ObservableList list = createObservableList(true);\r\n int from = 2;\r\n int to = 6;\r\n List subList = list.subList(from, to);\r\n int subSize = subList.size();\r\n List itemsOfSubList = new ArrayList(subList);\r\n// itemsOfSubList.remove(0);\r\n ListChangeReport report = new ListChangeReport(list);\r\n subList.retainAll(itemsOfSubList);\r\n assertEquals(\"wrong assumption: implementation is clever enough to detect retain same\",\r\n 1, report.getEventCount());\r\n Change c = report.getLastChange();\r\n LOG.info(\"changed list: \" + list);\r\n prettyPrint(c);\r\n assertEquals(\"single change\" , 1, getChangeCount(c));\r\n assertEquals(\"removed\", subSize, getRemovedSize(c));\r\n assertEquals(\"added\" , subSize, getAddedSize(c));\r\n assertTrue(\"single replace\" + c, wasSingleReplaced(c));\r\n }", "private void updateDeviceList() {\r\n\t\tavailableCams.removeAllElements();\r\n\t\tavailableCams.addElement(NO_CAMERA);\r\n\t\t\r\n\t\tmediaSrc.updateDeviceList();\r\n\t\tfor(CameraController c : mediaSrc.getAvailableCameras()) {\r\n\t\t\tavailableCams.addElement(c);\r\n\t\t}\r\n\t\t\r\n\t\tif(mediaSrc.getActiveCamera() != null) {\r\n\t\t\tavailableCams.setSelectedItem(mediaSrc.getActiveCamera());\r\n\t\t} else {\r\n\t\t\tavailableCams.setSelectedItem(NO_CAMERA);\r\n\t\t}\r\n\t}", "private void setSubProfiles(Vector subs)\n {\n subProfiles = subs;\n }", "private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onDevicesReceived(OnReceiverDevicesEvent event){\n //if(!devicesListAdapter.isEmpty()) devicesListAdapter.clear(); // clear old names\n\n\n devicesListAdapter.removeAll();\n Log.d(\"P2P\", \"Found something on events!\");\n //Toast.makeText(getContext(), \"Found something\", Toast.LENGTH_LONG).show();\n Collection<WifiP2pDevice> devs = event.getDevices().getDeviceList();\n devsList.addAll(devs);\n\n\n\n for(int i = 0; i < devsList.size(); i++){\n\n if(!devicesListAdapter.hasItem(devsList.get(i))){\n Log.d(\"P2P\", \"Device Found: \" + devsList.get(0).deviceName);\n devicesListAdapter.add(devsList.get(i).deviceName);\n devicesListAdapter.notifyDataSetChanged();\n }\n\n }\n\n\n }", "private void handleSimSubscriptionInfoChanged() {\n if (!this.mIsSimBindEnable) {\n Assert.isMainThread();\n Log.v(\"KeyguardUpdateMonitor\", \"onSubscriptionInfoChanged()\");\n List completeActiveSubscriptionInfoList = this.mSubscriptionManager.getCompleteActiveSubscriptionInfoList();\n if (completeActiveSubscriptionInfoList != null) {\n Iterator it = completeActiveSubscriptionInfoList.iterator();\n while (it.hasNext()) {\n Log.v(\"KeyguardUpdateMonitor\", \"SubInfo:\" + ((SubscriptionInfo) it.next()));\n }\n } else {\n Log.v(\"KeyguardUpdateMonitor\", \"onSubscriptionInfoChanged: list is null\");\n }\n List<SubscriptionInfo> subscriptionInfo = getSubscriptionInfo(true);\n ArrayList arrayList = new ArrayList();\n for (int i = 0; i < subscriptionInfo.size(); i++) {\n SubscriptionInfo subscriptionInfo2 = subscriptionInfo.get(i);\n if (refreshSimState(subscriptionInfo2.getSubscriptionId(), subscriptionInfo2.getSimSlotIndex())) {\n arrayList.add(subscriptionInfo2);\n }\n }\n for (int i2 = 0; i2 < arrayList.size(); i2++) {\n SimData simData = this.mSimDatas.get(Integer.valueOf(((SubscriptionInfo) arrayList.get(i2)).getSubscriptionId()));\n for (int i3 = 0; i3 < this.mCallbacks.size(); i3++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i3).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onSimStateChanged(simData.subId, simData.slotId, simData.simState);\n }\n }\n }\n callbacksRefreshCarrierInfo();\n }\n }", "@java.lang.Override\n public boolean hasDeviceSettings() {\n return deviceSettings_ != null;\n }", "public List getDevices() {\n return devices;\n }", "public void getDevices(final Subscriber<List<Device>> devicesSubscriber) {\n if (smartThingsService==null) {\n devicesSubscriber.onError(new Throwable(\"Please login to SmartThings before trying to get devices\"));\n return;\n }\n Observable.combineLatest(smartThingsService.getSwitchesObservable(), smartThingsService.getLocksObservable(), new Func2<List<Device>, List<Device>, List<Device>>() {\n @Override\n public List<Device> call(List<Device> switches, List<Device> locks) {\n List<Device> devices = new ArrayList<>();\n devices.addAll(switches);\n devices.addAll(locks);\n return devices;\n }\n }).doOnError(new Action1<Throwable>() {\n @Override\n public void call(Throwable throwable) {\n devicesSubscriber.onError(throwable);\n }\n }).doOnCompleted(new Action0() {\n @Override\n public void call() {\n //\n }\n }).subscribe(new Action1<List<Device>>() {\n @Override\n public void call(List<Device> devices) {\n devicesSubscriber.onNext(devices);\n }\n });\n }", "private void updateDevicesList() {\n\n netDevicesPanel.removeAll();\n\n netManager.getRecentlySeenDevices().forEach(device -> {\n netDevicesPanel.add(new DevicePanel(device));\n });\n\n netDevicesPanel.revalidate();\n netDevicesPanel.repaint();\n }", "public device() {\n\t\tsuper();\n\t}", "public boolean getHaveSub() { return haveSub;}", "public abstract void setSubIssues(List<? extends IssueAbstract> issues);", "private HardwareDeviceRental(){\r\n\r\n this.initializeComponent();\r\n hardwares= new ArrayList<HardwareDevice>();\r\n\r\n }", "public void setOccupied(){\n this.isEmpty = false;\n }", "protected void reInitializeSubController() {\n- boolean wasFlagSet = getThreadContext().setIsReinitializingSubControllers();\n- try {\n- TestElement currentElement = getCurrentElement();\n- if (currentElement != null) {\n- if (currentElement instanceof Sampler) {\n- nextIsASampler((Sampler) currentElement);\n- }", "@ForOverride\n public void onNotInUse(InternalSubchannel internalSubchannel) {\n }", "private void onDevicesListUpdate(Map<String, Boolean> newValue, Map<String, Boolean> oldValue) {\n newValue = newValue == null ? Collections.<String, Boolean>emptyMap() : newValue;\n oldValue = oldValue == null ? Collections.<String, Boolean>emptyMap() : oldValue;\n\n for (Map.Entry<String, Boolean> entry : newValue.entrySet()) {\n String entryKey = entry.getKey();\n if (!oldValue.containsKey(entryKey) && !(entryKey).equals(getMyDeviceId())) {\n onDeviceConnected(entryKey, entry.getValue());\n }\n }\n\n for (Map.Entry<String, Boolean> entry : oldValue.entrySet()) {\n String entryKey = entry.getKey();\n if (!newValue.containsKey(entryKey) && !(entryKey).equals(getMyDeviceId())) {\n onDeviceDisconnected(entryKey, entry.getValue());\n }\n }\n }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void setSubArray(com.walgreens.rxit.ch.cda.StrucDocSub[] subArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(subArray, SUB$2);\n }\n }", "public void sub() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->sub() unimplemented!\\n\");\n }", "private void checkMutability()\n\t{\n\t\tif (immutable)\n\t\t{\n\t\t\tthrow new UnsupportedOperationException(\"Map is immutable\");\n\t\t}\n\t}", "public static <T> void monitorSubset(final PrismsSession session,\n\t\tfinal PrismsProperty<T []> superSetProp, final PrismsProperty<T []> subSetProp)\n\t{\n\t\tsession.addPropertyChangeListener(superSetProp, new PrismsPCL<T []>()\n\t\t{\n\t\t\tpublic void propertyChange(PrismsPCE<T []> evt)\n\t\t\t{\n\t\t\t\tT [] subSet = session.getProperty(subSetProp);\n\t\t\t\tfinal boolean [] modified = new boolean [] {false};\n\t\t\t\tsubSet = ArrayUtils.adjust(subSet, evt.getNewValue(),\n\t\t\t\t\tnew ArrayUtils.DifferenceListener<T, T>()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic boolean identity(T o1, T o2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn o1 == o2;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic T added(T o, int idx, int retIdx)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic T removed(T o, int idx, int incMod, int retIdx)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmodified[0] = true;\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic T set(T o1, int idx1, int incMod, T o2, int idx2, int retIdx)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn o1;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\tif(modified[0])\n\t\t\t\t\tsession.setProperty(subSetProp, subSet);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String toString()\n\t\t\t{\n\t\t\t\treturn session.getApp().getName() + \" Subset Enforcer: \" + superSetProp + \":\"\n\t\t\t\t\t+ subSetProp;\n\t\t\t}\n\t\t});\n\t}", "@ForOverride\n public void onInUse(InternalSubchannel internalSubchannel) {\n }", "public void notifyBaseObservers() {\n notifyBaseObservers(null);\n }", "@Override\n protected boolean usesNoRefReads() {\n return true;\n }", "public void setSubscriber(SubscriberAndDeviceInformation subscriber) {\n this.subscriber = subscriber;\n }", "private void onAccess() {\n ctx.itHolder().checkWeakQueue();\n\n checkRemoved();\n }", "public void testSetSubLearner()\n {\n VectorThresholdInformationGainLearner<String> subLearner = null;\n RandomSubVectorThresholdLearner<String> instance = new RandomSubVectorThresholdLearner<String>();\n assertSame(subLearner, instance.getSubLearner());\n\n subLearner = new VectorThresholdInformationGainLearner<String>();\n instance.setSubLearner(subLearner);\n assertSame(subLearner, instance.getSubLearner());\n\n subLearner = new VectorThresholdInformationGainLearner<String>();\n instance.setSubLearner(subLearner);\n assertSame(subLearner, instance.getSubLearner());\n\n subLearner = null;\n instance.setSubLearner(subLearner);\n assertSame(subLearner, instance.getSubLearner());\n\n subLearner = new VectorThresholdInformationGainLearner<String>();\n instance.setSubLearner(subLearner);\n assertSame(subLearner, instance.getSubLearner());\n }", "void refresh() {\n List<IDevice> list = Lists.newArrayList();\n// if (fan == null) {\n// ToastUtils.showShort(R.string.dev_invalid_error);\n// } else {\n// list.add(fan);\n// if (stove != null) {\n// list.add(stove);\n// }\n// }\n list = Plat.deviceService.queryDevices();\n adapter.loadData(list);\n }", "void replaceDevices(Set<String> devices) {\n availableDevices = devices;\n resetSelectedDevice();\n }", "void resetSelectedDevice() {\n selectedDevice = null;\n userSelectedDevice = null;\n }", "public void setDevices(Integer devices) {\r\n this.devices = devices;\r\n }", "private void subscribeVariantData() {\n mProductDetailsViewModel.getVariants().observe(this, integerObjectHashMap -> {\n mUnitId = (String) integerObjectHashMap.get(ONE);\n mStoreId = (String) integerObjectHashMap.get(TWO);\n ArrayList<VariantsData> variantsData = (ArrayList<VariantsData>) integerObjectHashMap.get(\n THREE);\n mOffersListData = (PdpOfferData) integerObjectHashMap.get(FOUR);\n mAvailableCount = (Integer) integerObjectHashMap.get(FIVE);\n // mCartCount=(Integer)integerObjectHashMap.get(SIX);\n mAvailableCount = (Integer) integerObjectHashMap.get(FIVE);\n if (variantsData != null) {\n mVariantsData.clear();\n mVariantsData.addAll(variantsData);\n mPdpVariantsAdapter.notifyDataSetChanged();\n }\n });\n }", "public void clear() {\n mLeDevices.clear();\n }", "public boolean isFull() {\r\n\t\treturn subChannel != null;\r\n\t}", "@Override\r\n\tpublic boolean sameIdentityAs(Device other) {\n\t\treturn false;\r\n\t}", "protected void initStorageDevices() throws OBStorageException, OBException {\r\n OBStorageConfig conf = new OBStorageConfig();\r\n conf.setTemp(false);\r\n conf.setDuplicates(false);\r\n conf.setBulkMode(! isFrozen());\r\n conf.setIndexType(IndexType.HASH);\r\n this.A = fact.createOBStoreLong(\"A\", conf );\r\n if (!this.isFrozen()) {\r\n conf = new OBStorageConfig();\r\n conf.setTemp(false);\r\n conf.setDuplicates(false);\r\n conf.setBulkMode(false);\r\n conf.setRecordSize(fixedRecordSize);\r\n if(fixedRecord){\r\n conf.setIndexType(IndexType.FIXED_RECORD);\r\n }\r\n this.preFreeze = fact.createOBStore(\"pre\", conf);\r\n }\r\n }", "private void clearSubframes() {\n subframes_ = emptyProtobufList();\n }", "public void updateSubscriberList(String subtype,List subList){\r\n if (subscriberList.containsKey(subtype)) {\r\n subscriberList.get(subtype).addAll(subList);\r\n } else {\r\n subscriberList.put(subtype, subList);\r\n }\r\n }", "private void ensureChangesAllowed() {\n if (lifecycle.started() == false) {\n throw new IllegalStateException(\"Can't make changes to indices service, node is closed\");\n }\n }", "public void setStorageDeviceProtected() { throw new RuntimeException(\"Stub!\"); }", "public void remove(InnerSubscription<T> innerSubscription) {\r\n InnerSubscription<T>[] innerSubscriptionArr;\r\n InnerSubscription[] innerSubscriptionArr2;\r\n do {\r\n innerSubscriptionArr = (InnerSubscription[]) this.subscribers.get();\r\n int length = innerSubscriptionArr.length;\r\n if (length == 0) {\r\n break;\r\n }\r\n int i = -1;\r\n int i2 = 0;\r\n while (true) {\r\n if (i2 >= length) {\r\n break;\r\n } else if (innerSubscriptionArr[i2] == innerSubscription) {\r\n i = i2;\r\n break;\r\n } else {\r\n i2++;\r\n }\r\n }\r\n if (i >= 0) {\r\n if (length == 1) {\r\n innerSubscriptionArr2 = EMPTY;\r\n } else {\r\n InnerSubscription[] innerSubscriptionArr3 = new InnerSubscription[(length - 1)];\r\n System.arraycopy(innerSubscriptionArr, 0, innerSubscriptionArr3, 0, i);\r\n System.arraycopy(innerSubscriptionArr, i + 1, innerSubscriptionArr3, i, (length - i) - 1);\r\n innerSubscriptionArr2 = innerSubscriptionArr3;\r\n }\r\n } else {\r\n return;\r\n }\r\n } while (!this.subscribers.compareAndSet(innerSubscriptionArr, innerSubscriptionArr2));\r\n }", "void onRestoreDevices() {\n synchronized (mConnectedDevices) {\n for (int i = 0; i < mConnectedDevices.size(); i++) {\n DeviceInfo di = mConnectedDevices.valueAt(i);\n AudioSystem.setDeviceConnectionState(\n di.mDeviceType,\n AudioSystem.DEVICE_STATE_AVAILABLE,\n di.mDeviceAddress,\n di.mDeviceName,\n di.mDeviceCodecFormat);\n }\n }\n }", "public void ensureEmptied() {\n }", "void reinitialize() {\n super.reinitialize();\n head = tail = null;\n }", "@Test\n\tpublic void testSetSliceWithoutUpdate() {\n\t}", "public static ArrayList<Subject> getCoreSub() {\n return coreSub;\n }", "public final void setSub(final Subscriber sub)\r\n {\r\n this.sub_ = sub;\r\n }", "@Override\n protected void validateRegisteredDevice(MultifactorDevice device) throws Exception {\n assertThat(device.getBackup(), is(Boolean.TRUE));\n }", "public void setSubNet(PetriNetModel m) {\n //subModel = m;\n }", "public void setDevices(Peripheral[] devices) {\r\n\tthis.deviceList.clear();\r\n\tif (devices != null) {\r\n\t int numEl = devices.length;\r\n\t for (int i = 0; i < numEl; i++) {\r\n\t\tthis.deviceList.add(devices[i]);\r\n\t }\r\n\t}\r\n }", "public boolean add(InnerSubscription<T> innerSubscription) {\r\n InnerSubscription[] innerSubscriptionArr;\r\n InnerSubscription[] innerSubscriptionArr2;\r\n do {\r\n innerSubscriptionArr = (InnerSubscription[]) this.subscribers.get();\r\n if (innerSubscriptionArr == TERMINATED) {\r\n return false;\r\n }\r\n int length = innerSubscriptionArr.length;\r\n innerSubscriptionArr2 = new InnerSubscription[(length + 1)];\r\n System.arraycopy(innerSubscriptionArr, 0, innerSubscriptionArr2, 0, length);\r\n innerSubscriptionArr2[length] = innerSubscription;\r\n } while (!this.subscribers.compareAndSet(innerSubscriptionArr, innerSubscriptionArr2));\r\n return true;\r\n }", "public boolean hasSubscribers() {\n return state.current.psm.array().length > 0;\n }", "public DeviceMoverTree(String name, DeviceMover root, DeviceMover[] sub) {\n\t\tthis.name = name;\n\t\tthis.root = root;\n\t\tthis.sub = sub;\n\t\t\n\t\tsubEndpointTable = new Hashtable();\n\t\trootEndpointSet = new HashSet();\n\t\trootEndpointSet = createNameSet(root);\n\t\tHashSet rootNameSet = createNameSet(root);\n\t\t\n\t\tfor(int i=0; i<sub.length; i++) {\n\t\t\n\t\t\tString[] subName = sub[i].getLocationNames();\n\t\t\tboolean connected = false;\n\t\t\tboolean endpoint = false;\n\t\t\tfor(int j=0; j<subName.length; j++) {\n\t\t\t\trootEndpointSet.remove(subName[j]);\n\t\t\t\tif(rootNameSet.contains(subName[j])) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif(!connected) {\n\t\t\t\t\t\t\tPosition pos = new Position(\n\t\t\t\t\t\t\t\troot.getLocationPosition(subName[j]));\n\t\t\t\t\t\t\tpos=pos.sub(sub[i].getLocationPosition(subName[j]));\n\t\t\t\t\t\t\tpos=pos.add(sub[i].getPosition());\n\t\t\t\t\t\t\tsub[i].setPosition(pos);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\n// TODO: mit epsilon testen\n//\t\t\t\t\t\t\tif(!sub[i].getLocationPosition(subName[j]).equals(\n//\t\t\t\t\t\t\t\troot.getLocationPosition(subName[j]))) {\n//\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\n//\t\t\t\t\t\t\t\t\t\"the location '\" + subName[j] +\n//\t\t\t\t\t\t\t\t\t\"' of sub device mover '\" +\n//\t\t\t\t\t\t\t\t\tsub[i].getName() +\n//\t\t\t\t\t\t\t\t\t\"' has not the same position as the root\");\n//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconnected = true;\n\t\t\t\t\t}\n\t\t\t\t\tcatch(UnknownLocationException e) {\n\t\t\t\t\t\tthrow new IllegalArgumentException(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif(subEndpointTable.containsKey(subName[j])) {\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"the location '\" +\n\t\t\t\t\t\t\tsubName[j] + \"' of sub device mover '\" +\n\t\t\t\t\t\t\tsub[i].getName() + \"' had been added before.\");\n\t\t\t\t\t}\n\t\t\t\t\tsubEndpointTable.put(subName[j], sub[i]);\n\t\t\t\t\tendpoint = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!connected) {\n\t\t\t\tthrow new IllegalArgumentException(\"the sub device mover '\" +\n\t\t\t\t\tsub[i].getName() + \"' had not been connected\");\n\t\t\t}\n\t\t\tif(!endpoint) {\n\t\t\t\tthrow new IllegalArgumentException(\"the sub device mover '\" +\n\t\t\t\t\tsub[i].getName() + \"' did not add any end point location.\");\n\t\t\t}\n\t\t}\n\t}", "void onStoreValidateExclusiveFeatureUpdate(Context ctx, Subscriber oldSub, Subscriber newSub)\r\n\t{\r\n\t\tif (!oldSub.getSubscriberType().equals(newSub.getSubscriberType())\r\n\t\t\t&& !oldSub.getState().equals(newSub.getState()))\r\n\t\t{\r\n\t\t\tif (oldSub.getState() != SubscriberStateEnum.SUSPENDED && oldSub.getState() != SubscriberStateEnum.EXPIRED)\r\n\t\t\t{\r\n\t\t\t\tthrow new IllegalStateException(\"Not allowed to change subscriber type and state and the same time.\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "public void shouldNotGc() {\n reachabilityReferenceChain = new Reference(\n new SoftReference(\n new Reference(\n new WeakReference(\n new SoftReference(\n new PhantomReference(new Object(), referenceQueue))))));\n }", "protected synchronized void clearChanged() {\n changed = false;\n }", "protected final <T extends Phrase> void requiredComponentVisited(Phrase superPhrase, List<T> subPhrases) {\n for ( Phrase subPhrase : subPhrases ) {\n mkEmptyOrDisabledCheck(superPhrase, subPhrase);\n subPhrase.accept(mainVisitor);\n }\n }", "public UnitsComponent() {\n\t\ttry {\n\t\t\tsetHardwareUnitString(\"\");\n\t\t\tsetUserUnits(\"\");\n\t\t} catch (DeviceException e) {\n\t\t\tlogger.error(\"Code logic error:\", e);\n\t\t}\n\t\tuserUnitHasBeenExplicitlySet = false;\n\t\thardwareUnitHasBeenExplicitlySet = false;\n\t}", "public void forceUpdate() {\n if (mLocalManager == null) {\n Log.e(TAG, \"forceUpdate() Bluetooth is not supported on this device\");\n return;\n }\n if (BluetoothAdapter.getDefaultAdapter().isEnabled()) {\n final Collection<CachedBluetoothDevice> cachedDevices =\n mLocalManager.getCachedDeviceManager().getCachedDevicesCopy();\n for (CachedBluetoothDevice cachedBluetoothDevice : cachedDevices) {\n update(cachedBluetoothDevice);\n }\n } else {\n removeAllDevicesFromPreference();\n }\n }", "private Subscriber<BluetoothDevice> prepareConnectionSubscriber() {\n Subscriber<BluetoothDevice> subscriber = new Subscriber<BluetoothDevice>() {\n @Override\n public void onCompleted() {\n mProgressDialog.dismiss();\n finish();\n }\n\n @Override\n public void onError(Throwable e) {\n mProgressDialog.dismiss();\n Toast.makeText(SearchDevicesActivity.this, R.string.error_unable_to_connect, Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onNext(BluetoothDevice device) {\n Log.d(BtApplication.TAG, \"Connection Subscriber: \" + device.getName());\n AppSettings.putDeviceMacAddress(device.getAddress());\n }\n };\n return subscriber;\n }", "public void syncDevice() {\n JCuda.cudaDeviceSynchronize();\n }", "@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }", "private synchronized void beginRegistration() {\n if (mDeviceRegistering == null && mDevicesToRegister.size() > 0) {\n mDeviceRegistering = mDevicesToRegister.remove(0);\n if (!connectToDevice(mDeviceRegistering)) {\n endRegistration();\n }\n } else if (mDeviceRegistering == null && mDevicesToRegister.size() == 0) {\n // Run out of devices, so revert wifi connection\n resetWifiConnection();\n } else {\n // registering a device\n }\n }", "protected void checkState()\n {\n if (getParentNode() != null)\n {\n throw new IllegalStateException(\n \"Node cannot be modified when added to a parent!\");\n }\n }", "protected DynamicDeviceGroup() {\n\t}", "@Override\n public void clear() {\n checkNotDeleted();\n super.clear();\n }", "protected void fetchMySmartDevices() {\n setIsLoading(true);\n getCompositeDisposable().add(getDataManager()\n .getAllSmartDevices()\n .subscribeOn(getSchedulerProvider().io())\n .observeOn(getSchedulerProvider().ui())\n .subscribe(mySmartDevices -> {\n mySmartDevicesListLiveData.setValue(mySmartDevices);\n\n setIsLoading(false);\n }, throwable -> {\n setIsLoading(false);\n }));\n }", "@Test\n\tpublic void testReadyNoDevices() {\n\t\tModel contact = addContactSensor(true, false);\n\t\tstageDisarmed(addressesOf(contact));\n\t\tremoveModel(contact);\n\t\t\n\t\talarm.bind(context);\n\t\tassertInactive();\n\t}", "private void deviceUpdated() {\n if (!mIsCreate) {\n mSyncthingService.getApi().editDevice(mDevice, getActivity(), this);\n }\n }", "protected void init() {\n try {\n updateDevice();\n } catch (Exception e) {\n RemoteHomeManager.log.error(42,e);\n }\n }", "public static void exeededDevices(Boolean is)throws Exception{\n getSessionData().setMaxDevices(is);\n }", "@Test\r\n public void testImmutableObservableList() {\r\n ObservableList data = createObservableList(true);\r\n ImmutableObservableList immutable = new ImmutableObservableList<>(data);\r\n ListChangeReport report = new ListChangeReport(immutable);\r\n immutable.setBackingList(null);\r\n assertEquals(1, report.getEventCount());\r\n assertTrue(\"expected single removed\", wasSingleRemoved(report.getLastChange()));\r\n report.clear();\r\n immutable.setBackingList(data);\r\n assertEquals(1, report.getEventCount());\r\n assertTrue(\"expected singe added\", wasSingleAdded(report.getLastChange()));\r\n report.clear();\r\n ObservableList other = FXCollections.observableArrayList(\"onxe\", \"tewo\", \"other\");\r\n immutable.setBackingList(other);\r\n assertEquals(1, report.getEventCount());\r\n// report.prettyPrint();\r\n assertTrue(\"expected single replaced\", wasSingleReplaced(report.getLastChange()));\r\n }", "@Override\n public Object getData() {\n return devices;\n }", "public SubscriberAndDeviceInformation getSubscriber() {\n return subscriber;\n }", "final void makeNonRecursive() { this.unboundedBoundSymbols = null; }", "public DeviceDescription() {\n //Initialize lists\n this.capabilities = new ArrayList<>();\n this.attachments = new ArrayList<>();\n }", "@Test\n public void equalsSelfTest() {\n assertEquals(device, device);\n }", "private void ensureCapacity() {\n if ( top + 1 < storage.length ) {\n return;\n }\n storage = Arrays.copyOf( storage, storage.length * 2 );\n }", "private BLESyncConnection() {\n mContext = null;\n mBluetoothDevice = null;\n }", "@Test\n public void onChildrenChanged_notCalledWhenNotSubscribed2() throws Exception {\n final String subscribedMediaId =\n SUBSCRIBE_ID_NOTIFY_CHILDREN_CHANGED_TO_ONE_WITH_NON_SUBSCRIBED_ID;\n final CountDownLatch latch = new CountDownLatch(1);\n\n final BrowserCallback controllerCallbackProxy = new BrowserCallback() {\n @Override\n public void onChildrenChanged(MediaBrowser browser, String parentId,\n int itemCount, LibraryParams params) {\n // Unexpected call.\n fail();\n latch.countDown();\n }\n };\n\n LibraryResult result = createBrowser(null, controllerCallbackProxy)\n .subscribe(subscribedMediaId, null)\n .get(TIMEOUT_MS, TimeUnit.MILLISECONDS);\n assertEquals(RESULT_SUCCESS, result.getResultCode());\n\n // The MediaLibrarySession in MockMediaLibraryService is supposed to call\n // notifyChildrenChanged(ControllerInfo) in its callback onSubscribe(),\n // but with a different media ID.\n // Therefore, onChildrenChanged() should not be called.\n assertFalse(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS));\n }", "@Override\n public void updateGeneric() {\n if (getRange() <= 0)\n DistanceSensorNonOpIssue.reportIssue(this, getSubsystemName());\n else\n DistanceSensorNonOpIssue.resolveIssue(this);\n }", "public boolean isSetDeviceName() {\n return this.deviceName != null;\n }" ]
[ "0.53750396", "0.53304887", "0.5277488", "0.52430874", "0.5160478", "0.5095499", "0.5055252", "0.49683344", "0.49230915", "0.49070576", "0.48832157", "0.48630658", "0.48580858", "0.4844809", "0.483982", "0.48386985", "0.4837009", "0.48037276", "0.4789998", "0.4789669", "0.47841105", "0.47315446", "0.47163036", "0.47148246", "0.47028336", "0.46931177", "0.4677131", "0.46722507", "0.46453676", "0.46416658", "0.46343783", "0.4627403", "0.46273008", "0.4612445", "0.45928332", "0.4585795", "0.45839053", "0.45791885", "0.45653597", "0.45649573", "0.45596996", "0.45582247", "0.4554481", "0.4553273", "0.4544687", "0.45399565", "0.45344454", "0.4522924", "0.4522841", "0.45214012", "0.4517312", "0.45082903", "0.45031565", "0.44862473", "0.44862026", "0.4481873", "0.44762293", "0.44722044", "0.4471032", "0.44619247", "0.4453417", "0.44416928", "0.44416168", "0.44358906", "0.44355658", "0.4434175", "0.44336113", "0.44244573", "0.44190115", "0.4414288", "0.44123578", "0.44074273", "0.44059402", "0.44057223", "0.4398881", "0.43919173", "0.43904373", "0.43872243", "0.43830103", "0.43759853", "0.4375289", "0.4375269", "0.43724337", "0.43720376", "0.43719164", "0.43640068", "0.43625355", "0.43584898", "0.43526834", "0.43495622", "0.43474585", "0.43465632", "0.43449345", "0.4344447", "0.43430752", "0.43411434", "0.43378276", "0.43355507", "0.4334412", "0.43257987" ]
0.63375884
0
Write code here that turns the phrase above into concrete actions
@When("^customer clicks on the login link$") public void customer_clicks_on_the_login_link() throws Throwable { throw new PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "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 interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "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 appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Then("^customer is navigated to login form page$") public void customer_is_navigated_to_login_form_page() throws Throwable { throw new PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "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 interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "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 appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@When("^customer enters valid email and valid password$") public void customer_enters_valid_email_and_valid_password() throws Throwable { throw new PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "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 interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "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 appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@When("^click on login button$") public void click_on_login_button() throws Throwable { throw new PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "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 interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "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 appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
Write code here that turns the phrase above into concrete actions
@Given("^customer is on home page$") public void customer_is_on_home_page() throws Throwable { throw new PendingException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "public void action() {\n }", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public abstract ActionInMatch act();", "void determineNextAction();", "public void executeAction( String actionInfo );", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "public static int complexAction(String str)\n {\n if (str.equalsIgnoreCase(\"Play\") || str.equalsIgnoreCase(\"Start\") || str.equalsIgnoreCase(\"Begin\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Pause\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"QUIT\"))\n {\n return 3;\n }\n else\n { return 0;} \n }", "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "private String convertAction(String action) {\n\t\treturn action.toLowerCase();\n\t}", "abstract public void performAction();", "IWDAction wdCreateAction(WDActionEventHandler eventHandler, String text);", "String replaceParserMessage(Entity e, String action);", "private void generateKeywordActions(List<Keyword> keywords) {\n \t\t\n \t}", "public abstract String getIntentActionString();", "public void action() {\n action.action();\n }", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public static int simpleAction(String str)\n {\n if (str.equalsIgnoreCase(\"Y\") || str.equalsIgnoreCase(\"Yes\")) //your actions are yes\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"N\") || str.equalsIgnoreCase(\"No\")) // your actions are no\n {\n return 0;\n }\n else\n {\n return 2;\n }\n }", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void processAction(CIDAction action);", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "Expression getActionSentence();", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void doAction(){}", "public void act() {\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public abstract boolean resolveAction(String str, Bundle bundle);", "public void actionButton(String text);", "public final java_cup.runtime.Symbol CUP$Asintactico$do_action_part00000001(\n int CUP$Asintactico$act_num,\n java_cup.runtime.lr_parser CUP$Asintactico$parser,\n java.util.Stack CUP$Asintactico$stack,\n int CUP$Asintactico$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$Asintactico$result;\n\n /* select the action based on the action number */\n switch (CUP$Asintactico$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 300: // FEATURE_WORD ::= CARETOSTANDARDS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 301: // FEATURE_WORD ::= DARE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 302: // FEATURE_WORD ::= DOMINANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 303: // FEATURE_WORD ::= HARDNESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 304: // FEATURE_WORD ::= APPREHESION error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 305: // FEATURE_WORD ::= INDEPENDENCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 306: // FEATURE_WORD ::= LIVELINESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 307: // FEATURE_WORD ::= OPENNESSTOCHANGE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 308: // FEATURE_WORD ::= PERFECTIONISM error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 309: // FEATURE_WORD ::= PRIVACY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 310: // FEATURE_WORD ::= REASONING error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 311: // FEATURE_WORD ::= SELFCONTROL error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 312: // FEATURE_WORD ::= SELFSUFFICIENCY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 313: // FEATURE_WORD ::= SENSITIVITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 314: // FEATURE_WORD ::= SOCIABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 315: // FEATURE_WORD ::= STABILITY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 316: // FEATURE_WORD ::= STRESS error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 317: // FEATURE_WORD ::= SURVEILLANCE error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 318: // FEATURE_WORD ::= error PARENTH2 \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Syntax Error: FEATURE WORD expected. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"FEATURE_WORD\",36, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 319: // CTRL_STR ::= LOOP_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 320: // CTRL_STR ::= IF_STR \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"CTRL_STR\",17, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 321: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 322: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-8)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 323: // IF_STR ::= IF error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 324: // IF_STR ::= IF error PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 325: // IF_STR ::= IF PARENTH1 COND CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Rigth parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 326: // IF_STR ::= IF PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 327: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY error \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.peek()).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-6)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 328: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY ELSE BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 329: // IF_STR ::= IF PARENTH1 COND PARENTH2 CURLY_BR1 BODY CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Else malformed. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"IF_STR\",22, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-7)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 330: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 331: // LOOP_STR ::= LOOP error COND PARENTH2 CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-4)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 332: // LOOP_STR ::= LOOP PARENTH1 COND error CURLY_BR1 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-2)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 333: // LOOP_STR ::= LOOP PARENTH1 COND PARENTH2 error BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left curly brace '{' expected after condition clause. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-5)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 334: // LOOP_STR ::= LOOP PARENTH1 COND BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-1)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Right Parenthesis expected ')'. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 335: // LOOP_STR ::= LOOP COND PARENTH2 BODY \n {\n Object RESULT =null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)).value;\n\t\tparser.ManejadorDeErrores.add(new Error1(\"ES\",eleft-1,eright,\"Syntax Error: Left Parenthesis expected '('. Line: \"+(eleft+1)+\", column: \"+(eright+2)+\".\"));\n CUP$Asintactico$result = parser.getSymbolFactory().newSymbol(\"LOOP_STR\",28, ((java_cup.runtime.Symbol)CUP$Asintactico$stack.elementAt(CUP$Asintactico$top-3)), ((java_cup.runtime.Symbol)CUP$Asintactico$stack.peek()), RESULT);\n }\n return CUP$Asintactico$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$Asintactico$act_num+\"found in internal parse table\");\n\n }\n }", "private void appendAction(int action) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(context.getString(action));\n \t}", "@Override\n public void act() {\n }", "private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }", "public abstract String intercept(ActionInvocation invocation) throws Exception;", "void showOthersActions(String message);", "public void performAction();", "protected abstract void action(Object obj);", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "String getAction();", "String getAction();", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public abstract boolean checkAction(String str);", "public int showPossibleActions(String[] string);", "public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\nif (displayable == list) {//GEN-BEGIN:|7-commandAction|1|15-preAction\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|15-preAction\n // write pre-action user code here\nlistAction ();//GEN-LINE:|7-commandAction|2|15-postAction\n // write post-action user code here\n} else if (command == exitCommand) {//GEN-LINE:|7-commandAction|3|20-preAction\n // write pre-action user code here\nexitMIDlet ();//GEN-LINE:|7-commandAction|4|20-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|5|46-preAction\n} else if (displayable == searchList) {\nif (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|46-preAction\n // write pre-action user code here\nsearchListAction ();//GEN-LINE:|7-commandAction|6|46-postAction\n // write post-action user code here\n} else if (command == backCommand2) {//GEN-LINE:|7-commandAction|7|54-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|8|54-postAction\n // write post-action user code here\n} else if (command == okCommand1) {//GEN-LINE:|7-commandAction|9|51-preAction\n // write pre-action user code here\nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|10|51-postAction\n \n String sTerm = (String) searches.elementAt(searchList.getSelectedIndex());\n \n String artist = sTerm.substring(0, sTerm.indexOf(\";\"));\n String song = sTerm.substring(sTerm.indexOf(\";\")+1);\n this.seatchText(artist,song);\n artistTf.setString(artist);\n songTF.setString(song);\n}//GEN-BEGIN:|7-commandAction|11|36-preAction\n} else if (displayable == seatchform) {\nif (command == backCommand) {//GEN-END:|7-commandAction|11|36-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|12|36-postAction\n // write post-action user code here\n} else if (command == okCommand) {//GEN-LINE:|7-commandAction|13|31-preAction\n // write pre-action user code here\n \nswitchDisplayable (null, getTextTB ());//GEN-LINE:|7-commandAction|14|31-postAction\n searches.insertElementAt(artistTf.getString()+\";\"+songTF.getString(), 0);\n recUtil.updateRecord(searches);\n this.seatchText(artistTf.getString(),songTF.getString());\n}//GEN-BEGIN:|7-commandAction|15|40-preAction\n} else if (displayable == textTB) {\nif (command == backCommand1) {//GEN-END:|7-commandAction|15|40-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|7-commandAction|16|40-postAction\n // write post-action user code here\n} else if (command == startC) {//GEN-LINE:|7-commandAction|17|43-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|7-commandAction|18|43-postAction\n // write post-action user code here\n}//GEN-BEGIN:|7-commandAction|19|7-postCommandAction\n}//GEN-END:|7-commandAction|19|7-postCommandAction\n // write post-action user code here\n}", "private void Log(String action) {\r\n\t}", "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 interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public String parseBattleAction() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Attack (A)\");\n\t\tSystem.out.println(\"Spell (S)\");\n\t\tSystem.out.println(\"Equip/Unequip/Use Item (E)\");\n\t\tboolean isValidMove = false;\n\t\tString s = null;\n\t\twhile(!isValidMove) {\n\t\t\t s = parseString().toUpperCase();\n\t\t\t\n\t\t\tswitch(s) {\n\t\t\t\tcase \"A\":\t\n\t\t\t\tcase \"S\":\n\t\t\t\tcase \"E\":\n\t\t\t\tcase \"P\":\n\t\t\t\t\tisValidMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintErrorParse();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act();", "static void perform_ori(String passed){\n\t\tint type = type_of_ori(passed);\n\t\tif(type==1)\n\t\t\tori_with_acc(passed);\n\t}", "public void action(BotInstance bot, Message message);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "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 appendAction(int action, String additional) {\n \t\tContext context = Settlers.getInstance().getContext();\n \t\tappendAction(String.format(context.getString(action), additional));\n \t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "@Override\n protected void doAct() {\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "IWDAction wdCreateNamedAction(WDActionEventHandler eventHandler, String name, String text);", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public static int actions(String str)\n {\n if (str.equalsIgnoreCase(\"Shop\") || str.equalsIgnoreCase(\"S\"))\n {\n return 0;\n }\n else if (str.equalsIgnoreCase(\"Fight\") || str.equalsIgnoreCase(\"F\"))\n {\n return 1;\n }\n else if (str.equalsIgnoreCase(\"Rest\") || str.equalsIgnoreCase(\"R\"))\n {\n return 2;\n }\n else if (str.equalsIgnoreCase(\"Gamble\") || str.equalsIgnoreCase(\"G\"))\n {\n return 3;\n }\n else if (str.equalsIgnoreCase(\"Account\") || str.equalsIgnoreCase(\"A\"))\n {\n return 4;\n }\n else if (str.equalsIgnoreCase(\"Museum\") || str.equalsIgnoreCase(\"M\"))\n {\n return 5;\n }\n else if (str.equalsIgnoreCase(\"Quest\") || str.equalsIgnoreCase(\"Q\"))\n {\n return 6;\n }\n else if (str.equalsIgnoreCase(\"SumbitScore\") || str.equalsIgnoreCase(\"submit\") || str.equalsIgnoreCase(\"submit score\") || str.equalsIgnoreCase(\"SS\")) \n {\n return 7;\n }\n else \n {\n return 8;\n }\n }", "public final java_cup.runtime.Symbol CUP$parser$do_action_part00000000(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= translation_unit EOF \n {\n Object RESULT =null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // primary_expression ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // primary_expression ::= constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // primary_expression ::= string \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // primary_expression ::= LPAREN expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // primary_expression ::= generic_selection \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"primary_expression\",1, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // constant ::= I_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // constant ::= F_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // constant ::= ENUMERATION_CONSTANT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant\",2, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // enumeration_constant ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumeration_constant\",3, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // string ::= STRING_LITERAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // string ::= FUNC_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"string\",4, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // generic_selection ::= GENERIC LPAREN assignment_expression COMMA generic_assoc_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_selection\",5, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // generic_assoc_list ::= generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // generic_assoc_list ::= generic_assoc_list COMMA generic_association \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_assoc_list\",6, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // generic_association ::= type_name COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // generic_association ::= DEFAULT COLON assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"generic_association\",7, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // postfix_expression ::= primary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // postfix_expression ::= postfix_expression LBRACK expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // postfix_expression ::= postfix_expression LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // postfix_expression ::= postfix_expression LPAREN argument_expression_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // postfix_expression ::= postfix_expression DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // postfix_expression ::= postfix_expression PTR_OP IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // postfix_expression ::= postfix_expression INC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // postfix_expression ::= postfix_expression DEC_OP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // postfix_expression ::= LPAREN type_name LPAREN LBRACE initializer_list LBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // postfix_expression ::= LPAREN type_name RPAREN LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"postfix_expression\",8, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // argument_expression_list ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // argument_expression_list ::= argument_expression_list COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"argument_expression_list\",9, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // unary_expression ::= postfix_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // unary_expression ::= INC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // unary_expression ::= DEC_OP unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // unary_expression ::= unary_operator cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // unary_expression ::= SIZEOF unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // unary_expression ::= SIZEOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // unary_expression ::= ALIGNOF LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_expression\",71, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // unary_operator ::= AND \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // unary_operator ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // unary_operator ::= PLUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // unary_operator ::= MINUS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // unary_operator ::= COMP \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // unary_operator ::= NOT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"unary_operator\",12, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // cast_expression ::= unary_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // cast_expression ::= LPAREN type_name RPAREN cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"cast_expression\",14, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // multiplicative_expression ::= cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // multiplicative_expression ::= multiplicative_expression MULT cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // multiplicative_expression ::= multiplicative_expression DIV cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // multiplicative_expression ::= multiplicative_expression MOD cast_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"multiplicative_expression\",15, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // additive_expression ::= multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // additive_expression ::= additive_expression PLUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // additive_expression ::= additive_expression MINUS multiplicative_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"additive_expression\",16, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // shift_expression ::= additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // shift_expression ::= shift_expression LEFT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // shift_expression ::= shift_expression RIGHT_OP additive_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"shift_expression\",17, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // relational_expression ::= shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // relational_expression ::= relational_expression LT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // relational_expression ::= relational_expression GT shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // relational_expression ::= relational_expression LE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // relational_expression ::= relational_expression GE_OP shift_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"relational_expression\",74, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // equality_expression ::= relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // equality_expression ::= equality_expression EQ_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // equality_expression ::= equality_expression NE_OP relational_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"equality_expression\",18, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // and_expression ::= equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // and_expression ::= and_expression AND equality_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"and_expression\",19, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // exclusive_or_expression ::= and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // exclusive_or_expression ::= exclusive_or_expression XOR and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"exclusive_or_expression\",20, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // inclusive_or_expression ::= exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // inclusive_or_expression ::= inclusive_or_expression OR exclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"inclusive_or_expression\",75, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // logical_and_expression ::= inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // logical_and_expression ::= logical_and_expression AND_OP inclusive_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_and_expression\",21, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // logical_or_expression ::= logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // logical_or_expression ::= logical_or_expression OR_OP logical_and_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"logical_or_expression\",22, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // conditional_expression ::= logical_or_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // conditional_expression ::= logical_or_expression QUESTION expression COLON conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"conditional_expression\",23, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // assignment_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // assignment_expression ::= unary_expression assignment_operator assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_expression\",11, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // assignment_operator ::= EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // assignment_operator ::= MUL_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // assignment_operator ::= DIV_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // assignment_operator ::= MOD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // assignment_operator ::= ADD_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // assignment_operator ::= SUB_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // assignment_operator ::= LEFT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // assignment_operator ::= RIGHT_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // assignment_operator ::= AND_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // assignment_operator ::= XOR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // assignment_operator ::= OR_ASSIGN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"assignment_operator\",69, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // expression ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // expression ::= expression COMMA assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression\",10, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // constant_expression ::= conditional_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"constant_expression\",24, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // declaration ::= declaration_specifiers SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // declaration ::= declaration_specifiers init_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration\",76, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // declaration_specifiers ::= storage_class_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // declaration_specifiers ::= storage_class_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // declaration_specifiers ::= type_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // declaration_specifiers ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // declaration_specifiers ::= type_qualifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // declaration_specifiers ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // declaration_specifiers ::= function_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // declaration_specifiers ::= function_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // declaration_specifiers ::= alignment_specifier declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // declaration_specifiers ::= alignment_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_specifiers\",25, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // init_declarator_list ::= init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // init_declarator_list ::= init_declarator_list COMMA init_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator_list\",26, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // init_declarator ::= declarator EQ initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // init_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"init_declarator\",30, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // storage_class_specifier ::= TYPEDEF \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // storage_class_specifier ::= EXTERN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // storage_class_specifier ::= STATIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // storage_class_specifier ::= THREAD_LOCAL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // storage_class_specifier ::= AUTO \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // storage_class_specifier ::= REGISTER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"storage_class_specifier\",27, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // type_specifier ::= VOID \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // type_specifier ::= CHAR \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // type_specifier ::= SHORT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // type_specifier ::= INT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // type_specifier ::= LONG \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // type_specifier ::= FLOAT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // type_specifier ::= DOUBLE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // type_specifier ::= SIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // type_specifier ::= UNSIGNED \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // type_specifier ::= BOOL \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // type_specifier ::= COMPLEX \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // type_specifier ::= IMAGINARY \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // type_specifier ::= atomic_type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // type_specifier ::= struct_or_union_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // type_specifier ::= enum_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // type_specifier ::= TYPEDEF_NAME \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_specifier\",28, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // struct_or_union_specifier ::= struct_or_union LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // struct_or_union_specifier ::= struct_or_union IDENTIFIER LBRACE struct_declaration_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // struct_or_union_specifier ::= struct_or_union IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union_specifier\",32, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // struct_or_union ::= STRUCT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // struct_or_union ::= UNION \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_or_union\",33, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // struct_declaration_list ::= struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // struct_declaration_list ::= struct_declaration_list struct_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration_list\",34, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // struct_declaration ::= specifier_qualifier_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // struct_declaration ::= specifier_qualifier_list struct_declarator_list SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // struct_declaration ::= static_assert_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declaration\",35, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // specifier_qualifier_list ::= type_specifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // specifier_qualifier_list ::= type_specifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 141: // specifier_qualifier_list ::= type_qualifier specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 142: // specifier_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"specifier_qualifier_list\",37, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 143: // struct_declarator_list ::= struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 144: // struct_declarator_list ::= struct_declarator_list COMMA struct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator_list\",38, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 145: // struct_declarator ::= COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 146: // struct_declarator ::= declarator COLON constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 147: // struct_declarator ::= declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"struct_declarator\",39, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 148: // enum_specifier ::= ENUM LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 149: // enum_specifier ::= ENUM LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 150: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 151: // enum_specifier ::= ENUM IDENTIFIER LBRACE enumerator_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 152: // enum_specifier ::= ENUM IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enum_specifier\",40, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 153: // enumerator_list ::= enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 154: // enumerator_list ::= enumerator_list COMMA enumerator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator_list\",41, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 155: // enumerator ::= enumeration_constant EQ constant_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 156: // enumerator ::= enumeration_constant \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"enumerator\",42, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 157: // atomic_type_specifier ::= ATOMIC LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"atomic_type_specifier\",43, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 158: // type_qualifier ::= CONST \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 159: // type_qualifier ::= RESTRICT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 160: // type_qualifier ::= VOLATILE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 161: // type_qualifier ::= ATOMIC \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier\",29, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 162: // function_specifier ::= INLINE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 163: // function_specifier ::= NORETURN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_specifier\",44, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 164: // alignment_specifier ::= ALIGNAS LPAREN type_name RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 165: // alignment_specifier ::= ALIGNAS LPAREN constant_expression RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"alignment_specifier\",45, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 166: // declarator ::= pointer direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 167: // declarator ::= direct_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declarator\",31, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 168: // direct_declarator ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 169: // direct_declarator ::= LPAREN declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 170: // direct_declarator ::= direct_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 171: // direct_declarator ::= direct_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 172: // direct_declarator ::= direct_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 173: // direct_declarator ::= direct_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 174: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 175: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 176: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 177: // direct_declarator ::= direct_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 178: // direct_declarator ::= direct_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 179: // direct_declarator ::= direct_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 180: // direct_declarator ::= direct_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 181: // direct_declarator ::= direct_declarator LPAREN identifier_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_declarator\",47, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 182: // pointer ::= MULT type_qualifier_list pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 183: // pointer ::= MULT type_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 184: // pointer ::= MULT pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 185: // pointer ::= MULT \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"pointer\",46, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 186: // type_qualifier_list ::= type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 187: // type_qualifier_list ::= type_qualifier_list type_qualifier \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_qualifier_list\",50, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 188: // parameter_type_list ::= parameter_list COMMA ELLIPSIS \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 189: // parameter_type_list ::= parameter_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_type_list\",48, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 190: // parameter_list ::= parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 191: // parameter_list ::= parameter_list COMMA parameter_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_list\",70, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 192: // parameter_declaration ::= declaration_specifiers declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 193: // parameter_declaration ::= declaration_specifiers abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 194: // parameter_declaration ::= declaration_specifiers \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"parameter_declaration\",51, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 195: // identifier_list ::= IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 196: // identifier_list ::= identifier_list COMMA IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"identifier_list\",49, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 197: // type_name ::= specifier_qualifier_list abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 198: // type_name ::= specifier_qualifier_list \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"type_name\",13, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 199: // abstract_declarator ::= pointer direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 200: // abstract_declarator ::= pointer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 201: // abstract_declarator ::= direct_abstract_declarator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"abstract_declarator\",52, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 202: // direct_abstract_declarator ::= LPAREN abstract_declarator RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 203: // direct_abstract_declarator ::= LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 204: // direct_abstract_declarator ::= LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 205: // direct_abstract_declarator ::= LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 206: // direct_abstract_declarator ::= LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 207: // direct_abstract_declarator ::= LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 208: // direct_abstract_declarator ::= LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 209: // direct_abstract_declarator ::= LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 210: // direct_abstract_declarator ::= LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 211: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 212: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK MULT RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 213: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 214: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 215: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 216: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list STATIC assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 217: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK type_qualifier_list RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 218: // direct_abstract_declarator ::= direct_abstract_declarator LBRACK assignment_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 219: // direct_abstract_declarator ::= LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 220: // direct_abstract_declarator ::= LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 221: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 222: // direct_abstract_declarator ::= direct_abstract_declarator LPAREN parameter_type_list RPAREN \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"direct_abstract_declarator\",53, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 223: // initializer ::= LBRACE initializer_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 224: // initializer ::= LBRACE initializer_list COMMA RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 225: // initializer ::= assignment_expression \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer\",36, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 226: // initializer_list ::= designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 227: // initializer_list ::= initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 228: // initializer_list ::= initializer_list COMMA designation initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 229: // initializer_list ::= initializer_list COMMA initializer \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"initializer_list\",54, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 230: // designation ::= designator_list EQ \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designation\",55, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 231: // designator_list ::= designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 232: // designator_list ::= designator_list designator \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator_list\",56, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 233: // designator ::= LBRACK constant_expression RBRACK \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 234: // designator ::= DOT IDENTIFIER \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"designator\",57, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 235: // static_assert_declaration ::= STATIC_ASSERT LPAREN constant_expression COMMA STRING_LITERAL RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"static_assert_declaration\",58, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 236: // statement ::= labeled_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 237: // statement ::= compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 238: // statement ::= expression_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 239: // statement ::= selection_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 240: // statement ::= iteration_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 241: // statement ::= jump_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"statement\",59, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 242: // labeled_statement ::= IDENTIFIER COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 243: // labeled_statement ::= CASE constant_expression COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 244: // labeled_statement ::= DEFAULT COLON statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"labeled_statement\",60, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 245: // compound_statement ::= LBRACE RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 246: // compound_statement ::= LBRACE block_item_list RBRACE \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"compound_statement\",61, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 247: // block_item_list ::= block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 248: // block_item_list ::= block_item_list block_item \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item_list\",62, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 249: // block_item ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 250: // block_item ::= statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"block_item\",63, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 251: // expression_statement ::= SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 252: // expression_statement ::= expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"expression_statement\",66, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 253: // selection_statement ::= IF LPAREN expression RPAREN statement ELSE statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 254: // selection_statement ::= IF LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 255: // selection_statement ::= SWITCH LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"selection_statement\",64, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 256: // iteration_statement ::= WHILE LPAREN expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-4)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 257: // iteration_statement ::= DO statement WHILE LPAREN expression RPAREN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 258: // iteration_statement ::= FOR LPAREN expression_statement expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 259: // iteration_statement ::= FOR LPAREN expression_statement expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 260: // iteration_statement ::= FOR LPAREN declaration expression_statement RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-5)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 261: // iteration_statement ::= FOR LPAREN declaration expression_statement expression RPAREN statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"iteration_statement\",72, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-6)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 262: // jump_statement ::= GOTO IDENTIFIER SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 263: // jump_statement ::= CONTINUE SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 264: // jump_statement ::= BREAK SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 265: // jump_statement ::= RETURN SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 266: // jump_statement ::= RETURN expression SEMICOLON \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"jump_statement\",65, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 267: // translation_unit ::= external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 268: // translation_unit ::= translation_unit external_declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"translation_unit\",0, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 269: // external_declaration ::= function_definition \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 270: // external_declaration ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"external_declaration\",67, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 271: // function_definition ::= declaration_specifiers declarator declaration_list compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-3)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 272: // function_definition ::= declaration_specifiers declarator compound_statement \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"function_definition\",68, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-2)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 273: // declaration_list ::= declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 274: // declaration_list ::= declaration_list declaration \n {\n Object RESULT =null;\n\n CUP$parser$result = parser.getSymbolFactory().newSymbol(\"declaration_list\",73, ((java_cup.runtime.Symbol)CUP$parser$stack.elementAt(CUP$parser$top-1)), ((java_cup.runtime.Symbol)CUP$parser$stack.peek()), RESULT);\n }\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$parser$act_num+\"found in internal parse table\");\n\n }\n }", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public void act() \n {\n canSeeAlex();\n }", "@Override\n public void action(Jugador jugador) {\n\n }", "public void actionOffered();", "public final java_cup.runtime.Symbol CUP$LuaGrammarCup$do_action(\r\n int CUP$LuaGrammarCup$act_num,\r\n java_cup.runtime.lr_parser CUP$LuaGrammarCup$parser,\r\n java.util.Stack CUP$LuaGrammarCup$stack,\r\n int CUP$LuaGrammarCup$top)\r\n throws java.lang.Exception\r\n {\r\n /* Symbol object for return from actions */\r\n java_cup.runtime.Symbol CUP$LuaGrammarCup$result;\r\n\r\n /* select the action based on the action number */\r\n switch (CUP$LuaGrammarCup$act_num)\r\n {\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 112: // string ::= LONGSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 111: // string ::= CHARSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 110: // string ::= NORMALSTRING \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"string\",11, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 109: // number ::= HEX \r\n {\r\n Object RESULT =null;\r\n\t\tint hleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint hright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject h = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = h;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 108: // number ::= INT \r\n {\r\n Object RESULT =null;\r\n\t\tint ileft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint iright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject i = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Integer.parseInt(i.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 107: // number ::= FLOAT \r\n {\r\n Object RESULT =null;\r\n\t\tint fleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint fright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject f = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = Float.parseFloat(f.toString());\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 106: // number ::= EXP \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT = e; \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"number\",10, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 105: // unop ::= SHARP \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 104: // unop ::= NOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 103: // unop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"unop\",8, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 102: // binop ::= OR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 101: // binop ::= AND \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 100: // binop ::= NEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 99: // binop ::= EQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 98: // binop ::= MAIEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 97: // binop ::= MAIOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 96: // binop ::= MINEQ \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 95: // binop ::= MINOR \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 94: // binop ::= DOTDOT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 93: // binop ::= MOD \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 92: // binop ::= EXPON \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 91: // binop ::= DIVIDE \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 90: // binop ::= MULT \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 89: // binop ::= MINUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 88: // binop ::= PLUS \r\n {\r\n Object RESULT =null;\r\n\t\tint opleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).left;\n\t\tint opright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()).right;\n\t\tObject op = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.peek()).value;\n\t\tRESULT=op;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"binop\",7, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 87: // fieldsep ::= COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 86: // fieldsep ::= SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldsep\",19, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 85: // field ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 84: // field ::= VAR_NAME ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 83: // field ::= LBRACK exp RBRACK ASSIGN exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"field\",26, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 82: // fieldlist ::= fieldlist fieldsep field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found fieldlist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 81: // fieldlist ::= field \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found a field\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"fieldlist\",18, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 80: // tableconstructor ::= LCURLY fieldlist RCURLY \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"table constructor\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 79: // tableconstructor ::= LCURLY RCURLY \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"tableconstructor\",27, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 78: // parlist ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 77: // parlist ::= namelist COMMA TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 76: // parlist ::= namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"parlist\",16, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 75: // funcbody ::= LPAREN parlist RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody with par\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 74: // funcbody ::= LPAREN RPAREN block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"functionbody\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcbody\",13, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 73: // function ::= FUNCTION funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"function\",14, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 72: // args ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 71: // args ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 70: // args ::= LPAREN explist RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args (explist)\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 69: // args ::= LPAREN RPAREN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"args ()\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"args\",23, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 68: // functioncall ::= prefixexp COLON VAR_NAME args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 67: // functioncall ::= prefixexp args \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"function call\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"functioncall\",17, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 66: // prefixexp ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->functioncall\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 65: // prefixexp ::= var \r\n {\r\n Object RESULT =null;\r\n\t\t System.out.println(\"prefixexp->var\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"prefixexp\",21, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 64: // exp_member ::= unop exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 63: // exp_member ::= TRIDOT \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 62: // exp_member ::= tableconstructor \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 61: // exp_member ::= prefixexp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 60: // exp_member ::= function \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 59: // exp_member ::= string \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 58: // exp_member ::= number \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found number\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 57: // exp_member ::= TRUE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 56: // exp_member ::= FALSE \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 55: // exp_member ::= NIL \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member\",33, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 54: // exp_member_recoursive ::= exp_member binop exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found binop exp\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 53: // exp_member_recoursive ::= exp_member \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_member_recoursive\",35, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 52: // exp ::= exp_member_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp\",5, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 51: // exp_recoursive ::= exp COMMA exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"exp_recoursive\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 50: // exp_recoursive ::= exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"exp_recoursive\",34, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 49: // explist ::= exp_recoursive \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found explist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"explist\",12, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 48: // namelist ::= namelist COMMA VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"namelist\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 47: // namelist ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"namelist\",36, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 46: // var ::= prefixexp DOT VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 45: // var ::= prefixexp LBRACK exp RBRACK \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 44: // var ::= VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"var\",22, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 43: // varlist ::= varlist var COMMA \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 42: // varlist ::= var \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"varlist\",24, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 41: // dot_var_name ::= DOT VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 40: // dot_var_name ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"dot_var_name\",42, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 39: // funcname ::= VAR_NAME dot_var_name COLON VAR_NAME \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 38: // funcname ::= VAR_NAME dot_var_name \r\n {\r\n Object RESULT =null;\r\n\t\tint varleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint varright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject var = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"funcname:\" + var); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"funcname\",15, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 37: // break_stat ::= BREAK SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 36: // break_stat ::= BREAK \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"break stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"break_stat\",38, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 35: // return_stat ::= RETURN explist SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 34: // return_stat ::= RETURN SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 33: // return_stat ::= RETURN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return with explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 32: // return_stat ::= RETURN \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"return stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"return_stat\",37, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 31: // last_stat ::= break_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 30: // last_stat ::= return_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"last_stat\",9, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 29: // for_stat ::= FOR namelist IN explist DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat in\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 28: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-10)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 27: // for_stat ::= FOR VAR_NAME ASSIGN exp COMMA exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"for stat\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"for_stat\",39, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-8)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 26: // if_recoursive ::= if_recoursive ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 25: // if_recoursive ::= ELSEIF exp THEN block \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_recoursive\",41, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 24: // if_stat ::= IF exp THEN block if_recoursive ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-7)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 23: // if_stat ::= IF exp THEN block ELSE block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-6)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 22: // if_stat ::= IF exp THEN block if_recoursive END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-5)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 21: // if_stat ::= IF exp THEN block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"if_stat\",40, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 20: // stat ::= LOCAL namelist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 19: // stat ::= LOCAL namelist \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 18: // stat ::= LOCAL FUNCTION VAR_NAME funcbody \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 17: // stat ::= FUNCTION funcname funcbody \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"found Function stat\"); \r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 16: // stat ::= for_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 15: // stat ::= if_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 14: // stat ::= REPEAT block UNTIL exp \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 13: // stat ::= WHILE exp DO block END \r\n {\r\n Object RESULT =null;\r\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).right;\n\t\tObject e = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-3)).value;\n\t\tint bleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint bright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject b = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tSystem.out.println(\"while statement\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-4)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 12: // stat ::= DO block END \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 11: // stat ::= functioncall \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 10: // stat ::= varlist ASSIGN explist \r\n {\r\n Object RESULT =null;\r\n\t\tSystem.out.println(\"varlist assign explist\");\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat\",2, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 9: // block ::= chunk \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"block\",1, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 8: // stat_recoursive ::= stat SEMI stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-2)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 7: // stat_recoursive ::= stat stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 6: // stat_recoursive ::= stat SEMI \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 5: // stat_recoursive ::= stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"stat_recoursive\",30, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 4: // chunk ::= \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 3: // chunk ::= last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 2: // chunk ::= stat_recoursive last_stat \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 1: // $START ::= chunk EOF \r\n {\r\n Object RESULT =null;\r\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).right;\n\t\tObject start_val = (Object)((java_cup.runtime.Symbol) CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)).value;\n\t\tRESULT = start_val;\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"$START\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.elementAt(CUP$LuaGrammarCup$top-1)), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n /* ACCEPT */\r\n CUP$LuaGrammarCup$parser.done_parsing();\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /*. . . . . . . . . . . . . . . . . . . .*/\r\n case 0: // chunk ::= stat_recoursive \r\n {\r\n Object RESULT =null;\r\n\r\n CUP$LuaGrammarCup$result = parser.getSymbolFactory().newSymbol(\"chunk\",0, ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), ((java_cup.runtime.Symbol)CUP$LuaGrammarCup$stack.peek()), RESULT);\r\n }\r\n return CUP$LuaGrammarCup$result;\r\n\r\n /* . . . . . .*/\r\n default:\r\n throw new Exception(\r\n \"Invalid action number found in internal parse table\");\r\n\r\n }\r\n }", "static void actionPrompt() {\n prompt:\n while (true) {\n String line = \"\";\n System.out.println(\"\\nWhat do you want to do: (S)ave, (F)ill, (L)ine, (V)isible, (Q)uit: \");\n while (line.length() < 1)\n line = scan.nextLine().toUpperCase();\n char action = line.charAt(0);\n switch (action) {\n case 'Q':\n break prompt;\n case 'V':\n visible(); break;\n case 'L':\n line(); break;\n case 'F':\n fill(); break;\n case 'S':\n save(); break;\n default:\n System.out.println(\"Not a valid command.\");\n }\n }\n }", "@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"fipa-sl\");\n\t\t\tmsgRx.setOntology(\"blocks-ontology\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tContentElementList elementList = (ContentElementList) contentManager\n\t\t\t\t\t\t.extractContent(msgRx);\n\n\t\t\t\tIterator elementIterator = elementList.iterator();\n\n\t\t\t\twhile (elementIterator.hasNext()) {\n\t\t\t\t\tAction action = (Action) elementIterator.next();\n\t\t\t\t\t((Environment) myAgent).getWorld().getActionList().add((Executable) (action.getAction()));\n//\t\t\t\t\t((Executable) (action.getAction()))\n//\t\t\t\t\t\t\t.execute((Environment) myAgent);\n\t\t\t\t}\n\n\t\t\t} catch (UngroundedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CodecException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (OntologyException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tblock();\n\t\t}\n\t\t\n\t}", "public void setAction(String action) { this.action = action; }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "@Override\n\t\t\tpublic void performAction(PrintWriter pw) {\n\t\t\t\t\n\t\t\t\tString hello = \"helloworld\";\n\t\t\t\t\n\t\t\t\tpw.println(hello);\n\t\t\t\t\n\t\t\t}", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }" ]
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.6035597", "0.6035597", "0.60223806", "0.6011715", "0.5994028", "0.5986706", "0.5973847", "0.59363747", "0.59299153", "0.59274375", "0.5925999", "0.59236354", "0.5900132", "0.58874744", "0.5880966", "0.5860396", "0.5858362", "0.5852421", "0.5834586", "0.5807131", "0.5794122", "0.57809204", "0.5775529", "0.5772291", "0.57655984", "0.5762837", "0.57587755", "0.5758653", "0.5752396", "0.5749633", "0.5743911", "0.5743911", "0.5743657", "0.5743657", "0.5740693", "0.57326096", "0.5722666", "0.5708811", "0.5706221", "0.57024294", "0.56944466", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5692927", "0.5685764", "0.56807494", "0.5661615", "0.5650216", "0.5650081", "0.56464934", "0.5645747", "0.5641903", "0.5627175", "0.5619585", "0.5615084", "0.5601284", "0.5599514", "0.55944145", "0.55931157", "0.55916977", "0.55916977", "0.55916977", "0.5590322", "0.55799615", "0.55674374", "0.55666804", "0.5555143", "0.5554079", "0.55520636", "0.5545089", "0.5543725", "0.55414605", "0.55311835", "0.5530412", "0.55255187", "0.55118287" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { List<query_status_Bean> query_status_list=new query_status_Dao().select(); request.setAttribute("query_status_list", query_status_list); request.getRequestDispatcher("query_status_list_jsp.jsp").forward(request, response); }
{ "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
WebDriver driver = new ChromeDriver();
@BeforeClass public static void initDriver() { String baseUrl = "https://www.snaptravel.com/search?encrypted_user_id=5xqebwRCiWusH08KS2yJKA&otp=5549929985"; driver.get(baseUrl); System.out.println("In testing"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private WebDriver getDriver() {\n return new ChromeDriver();\n }", "public void setChromeDriver(){\n System.setProperty(\"webdriver.chrome.driver\", browserDriverPath);\n seleniumDriver = new ChromeDriver();\n }", "public static WebDriver chrome()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\Chrome\\\\chromedriver.exe\");\r\n\t\tgk = new ChromeDriver();\r\n\t\treturn gk;\r\n\t}", "public void getDriver() {\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver = new ChromeDriver();\n\t}", "@BeforeClass\n public static void instanceDriver() {\n ChromeOptions options = ConfigUtil.chromeOptions();\n driver = new ChromeDriver(options);\n wait = new WebDriverWait(driver, WEB_DRIVER_TIMEOUT);\n }", "@Test\r\n\tpublic void f()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C://Data_Program//Selenium_Dependencies//chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t}", "public static WebDriver startChrome() {\n\t\treturn new ChromeDriver();\n\t}", "@BeforeMethod(alwaysRun = true)\n public void browserSetup(){\n driver = new ChromeDriver();\n }", "public WebDriver initializeDriver() {\n System.setProperty(\"webdriver.chrome.driver\", projectPath + \"//src//main//resources//chromedriver\");\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n return driver;\n }", "private WebDriver createChromeDriver() {\n\t\tsetDriverPropertyIfRequired(\"webdriver.chrome.driver\", \"chromedriver.exe\");\n\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"disable-plugins\");\n\t\toptions.addArguments(\"disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\n\t\t\n\t\t_driver = new ChromeDriver(options);\n\t\treturn _driver;\n\t}", "public GoogleAutomation() {\n\t\t\n\t\t//The setProperty() method of Java system class sets the property of the system which is indicated by a key.\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"driver//chromedriver.exe\");\n\t\t\n\t\t//initilize webDriver \n\t\twebDriver = new ChromeDriver();\n\t}", "public static WebDriver setUp() {\n\t\n \t\n \tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\"); //if it doesn't work we can check with user.dir...\n \tdriver = new ChromeDriver(); //launch the Browser it opens empty page\n \tdriver.manage().window().maximize();\n \tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); //to wait globally\n \tdriver.get(\"http://166.62.36.207/humanresources/symfony/web/index.php/auth/login\");\n \t \n \treturn driver; //return object of the driver \t\n}", "public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}", "public void browser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/Driver/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();// maximize the window\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\n\t}", "@Before\r\n\tpublic void OpenChrome() {\n\t\tconfig = new ConfigReader();\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",config.getChromePath());\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\texPages = new ExpediaPages(driver);\r\n\t}", "@Before\n public void Setup() { //this is done before every test, chrome driver is saved in a specific location\n\n System.setProperty(\"webdriver.chrome.driver\",\n Constant.CROMEDRIVER);\n\n driver = new ChromeDriver();\n }", "public static void initializer() \n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\HP-PC\\\\Downloads\\\\Kahoot\\\\chromedriver.exe\" );\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://www.sathya.in/\");\n\t}", "@BeforeTest\r\n\tpublic void launch()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Yogini\\\\chromedriver\\\\chromedriver.exe\"); //location of browser in local drive\r\n\t\tWebDriver driver = new ChromeDriver(); \r\n\t\tdriver.get(tobj.url);\r\n\t\tSystem.out.println(\"Before test, browser is launched\");\r\n\t}", "@BeforeMethod\n\tpublic void registerChromeDriver() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\"/Users/shwetasharma/Documents/softwares/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tutil = new Utils(driver);\n\t\t// Put a Implicit wait, this means that any search for elements on the\n\t\t// page\n\t\t// could take the time the implicit wait is set for before throwing\n\t\t// exception\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t// Launch the Applitools hackathon Website\n\t\tdriver.get(\"https://demo.applitools.com/hackathon.html\");\n\t\tdriver.manage().window().maximize();\n\n\t}", "public void setup(){\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"//Users//bpat12//Downloads//chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tSystem.out.println(\"launch browser\");\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.get(url);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\r\n\t\tWebDriver driver =new ChromeDriver();\r\n\t\t\r\n\t\t\r\n\r\n\t}", "@BeforeClass\n public static void setup() {\n String driverPath = \"\";\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n }", "@BeforeTest\n public void setup() {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\User\\\\IdeaProjects\\\\LoginToJira\\\\chromedriver.exe\");\n // Create a new instance of the Chrome driver\n this.driver = new ChromeDriver();\n }", "@BeforeClass\n public static void setup(){\n WebDriverManager.chromedriver().setup();\n webDriver = new ChromeDriver();\n webDriver.manage().window().maximize();\n webDriver.manage().timeouts().implicitlyWait(3000, TimeUnit.MILLISECONDS);\n }", "public static WebDriver getLocalChromeDriver() {\n WebDriverManager.chromedriver().setup();\n return new ChromeDriver();\n }", "@Test\n public void test() throws MalformedURLException {\n System.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\drivers\\\\chromedriver.exe\"); \n WebDriver driver=new ChromeDriver();\n // WebDriver driver=new RemoteWebDriver(url,cap);\n driver.manage().window().maximize(); \n driver.get(\"https://curiedoctorapp.firebaseapp.com\");\n System.out.println(\"The title is\"+ driver.getTitle());\n driver.quit();\n \n }", "@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\COMPAQ\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\n\nWebDriver driver =new ChromeDriver();\n\n//WebDriverWait wait = new WebDriverWait(driver, 40);\n\n driver.get(\"http://qatestingtips.com/\");\n\t\n\n}", "public GAfterSearch(WebDriver chromeDriver) {\n super.chromeDriver = chromeDriver;\n }", "@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }", "@Before\n public void start() {\n\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n //driver.manage().window().maximize();\n wait = new WebDriverWait(driver, 10);\n }", "public Selenium(String chromePath) {\n this.browserDriverPath = chromePath; \n }", "public void setUpMethod(){\n driver = WebDriverFactory.getDriver(\"Chrome\");\n //maximize the page\n driver.manage().window().maximize();\n //implicit wait\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n }", "public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}", "public WebDriver LaunchChromeBrowserReturnIt() {\n\t\ttry {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\"/TestSuit/lib/chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver(); // Launch chrome\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn driver;\n\n\t}", "@BeforeClass\n public static void startDriver() throws Exception {\n ChromeDriverManager.getInstance().setup();\n\n //Selenium chrome driver\n driver = new ChromeDriver();\n js = (JavascriptExecutor) driver;\n wait = new WebDriverWait(driver, 10);\n }", "@ BeforeTest \n\tpublic void Amazon() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\resources\\\\chromedriver.exe\"); // to make the path portable create folder reources and put the element to it \n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.amazon.com/\");\n\t\tSystem.out.println(driver.getCurrentUrl());\t\n\t\tdriver.manage().window().maximize();\n\n}", "private void setWebdriver() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir + fileSeparator + \"lib\" + fileSeparator + \"chromedriver.exe\");\n\t\tcapability = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"disable-infobars\");\n\t\tcapability.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tdriver = new ChromeDriver(capability);\n\t\tdriver.manage().deleteAllCookies();\n\t\t_eventFiringDriver = new EventFiringWebDriver(driver);\n\t\t_eventFiringDriver.get(getUrl());\n\t\t_eventFiringDriver.manage().window().maximize();\n\n\t}", "@Before\n public void setWebDriver() throws IOException {\n System.setProperty(\"webdriver.chrome.driver\", DRIVER_PATH);\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"start-maximized\");\n driver = new ChromeDriver(chromeOptions);\n }", "public RegisterPage(WebDriver driver){ this.driver = driver; }", "@Given(\"I set up my Chrome Driver\")\n\tpublic void i_am_on_Magalu_HomePage() {\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:/Users/gocruz/eclipse-workspace/portal.compras/chromedriver.exe\");\n\t\tdriver = new ChromeDriver(options);\n\n\t}", "@Before\r\n\tpublic void setup() {\r\n\t\tSystem.out.println(\"Before\");\r\n\t\t//System.setProperty(\"webdriver.chrome.driver\", \"C:/Users/Admin/Desktop/Chromedriver.exe\");\r\n\t\t//driver = new ChromeDriver();\r\n\t}", "@BeforeClass\n\tpublic void beforeClass() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\browserDrivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\texplicitWait = new WebDriverWait(driver, 10);\n\t\tjsExecutor = (JavascriptExecutor) driver;\n//\t\texplicitWait = new WebDriverWait(driver, 30);\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n//\t driver.manage().window().maximize();\n\t}", "@BeforeMethod\n\tpublic void setUp() {\n\t\tString driverByOS = \"\";\n\t\tif (System.getProperty(\"os.name\").equals(\"Windows 10\")) {\n\t\t\tdriverByOS = \"Drivers/chromedriver.exe\";\n\t\t} \n\t\telse {\n\t\t\tdriverByOS = \"Drivers/chromedriver\";\n\t\t}\n\t\t//para saber en qué sistema Operativo estamos corriendo el proyecto.\n\t\tSystem.out.println(System.getProperty(\"os.name\"));\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverByOS);\n\t\t//Utilizando headless browser HB\n\t\t/*-HB\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\tchromeOptions.addArguments(\"--headless\");\n\t\tdriver = new ChromeDriver(chromeOptions);\n\t\tHB-*/\n\t\tdriver = new ChromeDriver();\n\t\t//driver.manage().window().maximize(); //esto es para maximizar la ventana del navegador\n\t\t//driver.manage().window().fullscreen(); //esto es para poner en fullscreen la ventana del navegador\n\t\t/*driver.manage().window().setSize(new Dimension(200,200));\n\t\tfor (int i = 0; i <= 800; i++) {\n\t\t\tdriver.manage().window().setPosition(new Point(i,i));\n\t\t}*/\n\t\t//driver.manage().window().setPosition(new Point(800,200)); //posicionando la ventana del navegador\n\t\tdriver.navigate().to(\"http://newtours.demoaut.com/\");\n\t\t//Este codigo de abajo permite abrir otra ventana en el navegador\n\t\t//JavascriptExecutor javaScriptExecutor = (JavascriptExecutor)driver;\n\t\t//String googleWindow = \"window.open('http://www.google.com')\";\n\t\t//javaScriptExecutor.executeScript(googleWindow);\n\t\t//tabs = new ArrayList<String> (driver.getWindowHandles());\n\t\t/*try {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//Helpers helper = new Helpers();\n\t\t//helper.sleepSeconds(4);\n\t}", "public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // create object for using selenium driver;\n WebDriver driver=new ChromeDriver();\n\n //open browser\n driver.get(\"http://amazon.com\");// bumu exlaydu\n //driver.get(\"http://google.com\");\n // open website\n System.out.println(driver.getTitle());\n\n\n\n\n }", "public static void main(String[] args) {\nString browser=\"ff\";\nif (browser.equals(\"chrome\")) {\n\tWebDriverManager.chromedriver().setup();\n\t// System.setProperty(\"webdriver.chrome.driver\", \"/Users/user/Downloads/chromedriver\");\n\tdriver=new ChromeDriver();\n}\nelse if (browser.equals(\"ff\")) {\n\tWebDriverManager.firefoxdriver().setup();\n\tdriver=new FirefoxDriver();\n}\nelse\n\tif (browser.equals(\"IE\")) {\n\t\tWebDriverManager.iedriver().setup();\n\t\tdriver=new InternetExplorerDriver();\n\t}\n\telse\n\t\tif (browser.equals(\"opera\")) {\n\t\t\tWebDriverManager.operadriver().setup();\n\t\t\tdriver=new OperaDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"no defined driver\");\n\t\t}\n\n\ndriver.get(\"https://google.com\");\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n\t}", "public static void main(String[] args) {\n WebDriver driver = WebDriverFactory.getDriver(\"chrome\");\n driver.manage().window().maximize();\n\n\n }", "private static WebDriver driver() {\n\t\treturn null;\r\n\t}", "public void initialization()\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Mrunal\\\\chromedriver.exe\");\n\t\n\t\tif(prop.getProperty(\"browser\").contains(\"chrome\"))\n\t\t driver = new ChromeDriver();\n\t\t \n\t\t driver.manage().deleteAllCookies();\n\t\t driver.manage().timeouts().pageLoadTimeout(2000, TimeUnit.MILLISECONDS);\n\t\t driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n\n\t\t driver.get(prop.getProperty(\"url\"));\n\t\t driver.manage().window().maximize();\n\t\t driver.manage().timeouts().implicitlyWait(8, TimeUnit.SECONDS);\n\t\t \n\t}", "@BeforeClass\r\n public void beforeClass() {\n \tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\Tuan\\\\Downloads\\\\chromedriver.exe\");\r\n \tdriver = new ChromeDriver();\r\n \tdriver.get(\"http://daominhdam.890m.com/\");\r\n\t}", "public static void setChromeDriverProperty() {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\automation_new_code\\\\onfs.alip.accounting\\\\BrowserDriver/chromedriver.exe\");\n\t\t}", "@BeforeMethod\n public void acilis() {\n// WebDriverManager.chromedriver().setup();\n// driver = new ChromeDriver();\n Driver.getDriver().manage().window().maximize();\n Driver.getDriver().manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n System.out.println(\"TestNG\");\n actions = new Actions(Driver.getDriver());\n }", "public Page(WebDriver webDriver) {\n this.webDriver = webDriver;\n\t}", "private void initialize() {\n int implicitWaitTime = 20;\n int explicitWaitTime = 30;\n int waitSleepTime = 10;\n\n ChromeDriverManager.getInstance(CHROME).setup();\n// FirefoxDriverManager.getInstance(FIREFOX).setup();\n this.webDriver = new ChromeDriver();\n this.webDriver.manage().window().maximize();\n this.webDriver.manage().timeouts().implicitlyWait(implicitWaitTime, TimeUnit.SECONDS);\n webDriverWait = new WebDriverWait(webDriver, explicitWaitTime,waitSleepTime);\n }", "@BeforeClass\n\t public void beforeClass() {\n\t System.setProperty(\"webdriver.chrome.driver\", \"F:\\\\Git\\\\GIT_Repositories\\\\Selenium_Project\\\\Drivers\\\\chromedriver.exe\");\n\t driver = new ChromeDriver();\n\t \n\t \n\t }", "@Test\n public void test1(){\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver2 = new ChromeDriver();\n\n\n\n driver2.get(url);\n bekle(2000);\n driver2.quit();\n\n\n\n }", "@BeforeClass\n\tpublic void beforeClass() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\browserDrivers\\\\chromedriver.exe\");\n//\t\t ChromeOptions options = new ChromeOptions();\n//\t\t options.addExtensions(new File(\".\\\\browserExtensions\\\\UltraSurf-VPN_v1.6.0.crx\"));\t \n\t\tdriver = new ChromeDriver();\n\n\t\t// Driver ID\n\n\t\t// wait to apply statuses of element (visible/ invisible/ presence/ clickable)\n\t\texplicitWait = new WebDriverWait(driver, 30);\n\n\t\t// ep kieu tuong minh (Reference casting)\n\t\tjsExecutor = (JavascriptExecutor) driver;\n\n\t\t// wait to find element (findElement / findElements)\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\n\t}", "@BeforeTest\r\n\tpublic void beforeTest() throws MalformedURLException {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PDC2B-Training.pdc2b\\\\Downloads\\\\Selenium Drivers\\\\BrowserDriver\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(5000, TimeUnit.SECONDS);\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"./browser/chromedriver.exe\");\r\n\t\t//DesiredCapabilities cap=new DesiredCapabilities();\r\n\t\t\r\n\t\tChromeOptions co=new ChromeOptions();\r\n\t\tco.addArguments(\"--disable-infobars\");\r\n\t\t//co.addArguments(\"--headless\");\r\n\t\tWebDriver driver=new ChromeDriver(co);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.close();\r\n\r\n\t}", "@Given(\"^Initialize the browser with Chrome$\")\r\n\tpublic void initialize_the_browser_with_Chrome() throws Throwable {\n\t\tdriver = DriverManager.getDriverInstance(\"chrome\", 20);\r\n\t\tSystem.out.println(\"Launched Chrome\");\r\n\t}", "public ELogin(WebDriver driver)\r\n{\r\n\tthis.driver =driver;\r\n\t//System.out.println(\"Elogin as been instantiated\");\r\n}", "@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }", "public void chromeLaunch() {\n\t\tSystem.setProperty(key, value);\n\t\ts=new ChromeDriver();\n\t\ts.manage().window().maximize();\n\t\ts.navigate().to(url);\n\t}", "public Start (WebDriver driver) {\n\t\tthis.driver=driver;\n\t}", "private void setChromeDriver() throws Exception {\n\t\t// boolean headless = false;\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\tchromePrefs.put(\"download.default_directory\", BasePage.myTempDownloadsFolder);\n\t\tchromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\n\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\tchromeOptions.addArguments(\"--disable-extensions\");\n\t\tchromeOptions.addArguments(\"start-maximized\");\n\n\t\t/*\n\t\t * To set headless mode for chrome. Would need to make it conditional\n\t\t * from browser parameter Does not currently work for all tests.\n\t\t */\n\t\t// chromeOptions.setHeadless(true);\n\n\t\tif (runLocation.toLowerCase().equals(\"smartbear\")) {\n\t\t\tReporter.log(\"-- SMARTBEAR: standard capabilities. Not ChromeOptions\", true);\n\t\t\tcapabilities = new DesiredCapabilities();\n\t\t} else {\n\t\t\tcapabilities = DesiredCapabilities.chrome();\n\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\t\t}\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t \n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" Chrome-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "@Test\r\n\tpublic void tc1(){\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tdriver=new ChromeDriver();\r\n\t\tdriver.get(\"https://www.seleniumhq.org/download/\");\r\n\t\tString title = driver.getTitle();\r\n\t\tSystem.out.println(title);\r\n\t\tdriver.close();\r\n\t}", "public static ChromeDriver intiChrome() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/ChromeServer/chromedriver.exe\");\n\t\t// WebDriver driver = new ChromeDriver();\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t// 设置为 headless 模式 (必须)\n\t\t// chromeOptions.addArguments(\"--headless\");\n\t\t// 设置浏览器窗口打开大小 (非必须)\n\t\t// chromeOptions.addArguments(\"--window-size=1980,1068\");\n\t\tChromeDriver driver = new ChromeDriver(chromeOptions);\n\t\treturn driver;\n\t}", "private static WebDriver launchChrome()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\tURL chromeDriverURL = BrowserDriver.class.getResource(\"/drivers/chromedriver.exe\");\n\t\tFile file = new File(chromeDriverURL.getFile()); \n\t\tSystem.setProperty(ChromeDriverService.CHROME_DRIVER_EXE_PROPERTY, file.getAbsolutePath());\n\t\t\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t\toptions.addArguments(\"--ignore-certificate-errors\");\n\t\t\n\t\treturn new ChromeDriver(options);\n\t\t}\n\t}", "@BeforeMethod\n public void setupMethod(){\n driver = WebDriverFactory.getDriver(\"chrome\");\n //maximize the page\n driver.manage().window().maximize();\n //implicit wait\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n //get the page\n driver.get(\"http://practice.cybertekschool.com/dropdown\");\n }", "public static void main(String[] args) {\n String str = getDriver(\"chrome\");\n System.out.println(str);\n\n }", "@BeforeTest //special type of testng method which alway run before.\r\n\t\t\tpublic void openBrowser() {\r\n\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.get(\"https://locator.chase.com/\");\r\n\t\t\t}", "public void open() {\n setWebDriver();\n }", "@BeforeClass\n\tpublic void initializebrowser() throws InterruptedException {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", Chrome);\n\t\t// driver = new ChromeDriver(); \n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\t\toptions.addArguments(\"--disable-popup-blocking\");\n\t\tdriver = new ChromeDriver(options);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(common.URL);\n\t\tThread.sleep(3000);\n\n\t\t\n\t\t/*DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t \n\t\t //Method and Description - void setCapability(java.lang.String capabilityName, boolean value)\n\t\t capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\t \n\t\t //Among the facilities provided by the System class are standard input, standard output, and error output streams; access to externally defined \"properties\"; a means of loading files and libraries; and a utility method for quickly copying a portion of an array.\n\t\t System.setProperty(\"webdriver.ie.driver\", common.IE);\n\t\t \n\t\t //InternetExplorerDriver(Capabilities capabilities)\n\t\t WebDriver driver = new InternetExplorerDriver(capabilities);\n\t\t \n\t\t driver.manage().window().maximize();\n\t\t driver.get(common.URL);\n\t\t Thread.sleep(3000);*/\n\t\t\n\t}", "@BeforeTest\n\n public void setup() {\n\n \t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Lenovo 1\\\\eclipse-workspace\\\\firstTestProject\\\\src\\\\test\\\\resources\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n\n /* System.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Users\\\\Lenovo 1\\\\eclipseprojects\\\\seleniumTestProject\\\\src\\\\test\\\\resources\\\\geckodriver.exe\");\n driver = new FirefoxDriver();*/\n\n\n// System.setProperty(\"webdriver.chrome.driver\", \"/home/ushani/Selenium_ProjectWS/TwoBulls/seleniumTestProject/src/test/resources/chromedriver\");\n// WebDriver driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\n driver.get(\"http://www.google.com\");\n }", "public Flight(WebDriver driver){\n this.driver=driver;\n wait = new WebDriverWait(driver,10);\n\n\n }", "private void initChromeDriver(String appUrl) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"Drivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(appUrl);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t}", "@BeforeClass\n\tpublic void nav()\n\t{\n\t\tChromeOptions chromeoptions = new ChromeOptions();\n\t\tchromeoptions.addArguments(\"--start-maximized\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"c:\\\\Program Files\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.americanexpress.com/\");\n\t}", "public static void startChromeDriver() {\r\n\t\tswitch (operatingSystem.toLowerCase().split(\" \")[0]) {\r\n\t\tcase \"windows\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriver.exe\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"linux\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriverLinux\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mac\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriverMac\");\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Operating system not supported.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static WebDriver setupDriver()\r\n\t{\r\n\t driver = getWebDriver();\r\n\t return driver;\r\n\t}", "public Page(WebDriver driver) {\n this.driver = driver;\n }", "@BeforeTest\n public void setup() {\n\n String browser = Environment.getProperties().browser().toString().toLowerCase();\n\n switch (browser) {\n \n case \"firefox\":\n FirefoxOptions options = new FirefoxOptions(); \n if(Environment.getProperties().headless()){\n options.addArguments(\"--headless\");\n }\n driver = new FirefoxDriver();\n break;\n \n default:\n ChromeOptions optionsChrome = new ChromeOptions();\n if(Environment.getProperties().headless()){\n optionsChrome.addArguments(\"--headless\");\n } \n driver = new ChromeDriver(optionsChrome);\n break;\n } \n\n driver.manage().window().maximize();\n }", "@Test \n public void executSessionThree(){\n System.out.println(\"open the browser: chrome III\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "@Before\n public void setUp() throws Exception {driver = new ChromeDriver();\n// baseUrl = \"https://www.google.com/\";\n// driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n// \n \n\t \n\t baseUrl = \"https://mern-crud.herokuapp.com\";\n\t\t\t\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/usr/bin/chromedriver\");\n\t\t\t\n\t\t\tdriver = new ChromeDriver();\n\t\t\t\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t\t\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t\n }", "public void loadDriver() {\n\t\t\n\t\t//get() method is used to open an URL and it will wait till the whole page gets loaded.\n\t\twebDriver.get(\"https://www.google.co.in/\");\n\t}", "public WebDriver getWebdriver() {\n return driver.get();\n }", "@BeforeMethod(alwaysRun=true)// @BeforeMethod\r\n\tpublic void test_before()throws Exception{\r\n\t\t// WebDriver driver;\t\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",driverPath_Chrome); // System.setProperty(\"webdriver.gecko.driver\",driverPath_Firefox);\r\n\t\tdriver = new ChromeDriver(); // driver = new FirefoxDriver(); // \r\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(baseURL_LC); //driver.get(baseURL_LC);// driver.get(baseGoogle); // driver.get(baseUK);\r\n//\t\tJavascriptExecutor js = (JavascriptExecutor) driver;\r\n\t}", "@Before\n public void startingTests() throws Exception {\n // from Sample 1:\n String libWithDriversLocation = System.getProperty(\"user.dir\") + \"\\\\lib\\\\\";\n System.setProperty(\"webdriver.chrome.driver\", libWithDriversLocation + \"chromedriver.exe\");\n // declaration above:\n driver = new ChromeDriver();\n\n //open page:\n driver.get(base_url);\n }", "public static void initialization() {\n\t\tSystem.out.println(\"**Open initialization**\");\r\n\t\tString browserName = props.getProperty(\"browser\");\r\n\t\tSystem.out.println(\"Browser User = \" + browserName + \" URL = \" + props.getProperty(\"url\"));\r\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/Selenium Automation/chromedriver/chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\r\n\t\tdriver.get(props.getProperty(\"url\"));\r\n\t\tSystem.out.println(\"**Close initialization**\");\r\n\t}", "@Before\n public void start() {\n\n /* WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n //WebDriverWait wait = new WebDriverWait(driver,30); Explicit wait\n // driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n */\n driver.manage().window().maximize();\n\n\n homePage = new HomePage(driver);\n loginPage = new LoginPage(driver);\n shoppingcartpage = new ShoppingCartPage(driver);\n checkoutPage = new CheckoutPage(driver);\n\n }", "public static void main(String asrgs[]) {\r\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\tWebDriver driver=new ChromeDriver();\r\n\tdriver.navigate().to(\"https://www.facebook.com/\");\r\n\tdriver.findElement(By.name(\"email\")).sendKeys(\"[email protected]\");\r\n\tdriver.findElement(By.name(\"pass\")).sendKeys(\"Sainaga@5\");\r\n\tdriver.findElement(By.name(\"login\")).click();\r\n\tdriver.findElement(By.className(\"_6s5d _71pn _-kb segoe\")).click();\r\n \r\n}", "protected WebDriver getDriver() {\n return Web.getDriver(Browser.CHROME, server.getURL() + \"TEST\", By.className(\"AuO\"));\n }", "public BrowserActions(WebDriver driver){\r\n\t\tthis.driver=driver;\r\n\t}", "@BeforeMethod\n\tpublic void setUp()\n\t{\n\t\tdriver = utilities.WebDriverFactory.Open(\"chrome\");\n\t\tdriver.get(webUrl);\n\t\tdashboardPage = new DashboardPageObject(driver);\n\t\t\n\t}", "public Homepage(WebDriver driver) {\n\t\tthis.driver=driver;\n\t}", "public static void setDriver(WebDriver webDriver) {\n driver = webDriver;\n }", "@BeforeClass\n public void BeforeTest(){\n Configuration.browser = \"Chrome\";\n\n }", "public static void main(String[] args) throws Exception{\n\n WebDriverManager.chromedriver().setup();\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"http://practice.cybertekschool.com/open_new_tab\");\n\n Thread.sleep(4000);\n\n //driver.close(); //expected to close the original one\n driver.quit(); //all window will be closed\n\n\n\n\n }", "@Test \n public void executSessionOne(){\n\t System.out.println(\"open the browser: chrome\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "@Before\n public void setUp() throws Exception {\n URL = \"https://www.facebook.com/\";\n\t//baseUrl = \"https://www.katalon.com/\";\n System.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Documentos\\\\Java Drivers\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n // driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n }", "public LoginPage(WebDriver _driver) {\n driver = _driver;\n }", "@BeforeClass\r\n\tpublic void browser() {\r\n\tdriver = new FirefoxDriver();\r\n\t}" ]
[ "0.82115024", "0.8072474", "0.8054619", "0.8009727", "0.7757982", "0.77381927", "0.7711436", "0.77039593", "0.7563572", "0.7532492", "0.7484464", "0.740001", "0.73492575", "0.734629", "0.7291202", "0.72894996", "0.7254091", "0.7246925", "0.7219103", "0.7212545", "0.7201065", "0.71886086", "0.7174359", "0.7166187", "0.71614736", "0.71607536", "0.715762", "0.7154213", "0.713304", "0.7127521", "0.7097686", "0.7091238", "0.7053899", "0.70280194", "0.70218754", "0.7010437", "0.6976939", "0.6975843", "0.69723743", "0.6965692", "0.6962304", "0.6947557", "0.69404405", "0.6936067", "0.6905111", "0.690331", "0.6893718", "0.6882571", "0.6876837", "0.68750817", "0.6874453", "0.68727964", "0.68720937", "0.68483824", "0.68294317", "0.68203247", "0.68111956", "0.68102735", "0.68000484", "0.679784", "0.6796023", "0.6795236", "0.67892486", "0.67856455", "0.6785634", "0.67816883", "0.6778859", "0.67502826", "0.6746948", "0.67435867", "0.67046523", "0.66849136", "0.66828436", "0.6674653", "0.66673803", "0.6665746", "0.66642064", "0.6651812", "0.66351205", "0.663366", "0.66332275", "0.663213", "0.6629564", "0.6627771", "0.6623828", "0.66235065", "0.6622882", "0.66210264", "0.6613218", "0.66087294", "0.6605775", "0.6589891", "0.65880513", "0.65849346", "0.65805846", "0.6576918", "0.65736884", "0.6570292", "0.656125", "0.65547615", "0.65486187" ]
0.0
-1
The Factory for the model. It provides a create method for each nonabstract class of the model.
public interface RmFactory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ RmFactory eINSTANCE = ru.capralow.dt.conversion.plugin.core.rm.impl.RmFactoryImpl.init(); /** * Returns a new object of class '<em>Registration Module</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Registration Module</em>'. * @generated */ RegistrationModule createRegistrationModule(); /** * Returns a new object of class '<em>Exchange Plan Content</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Exchange Plan Content</em>'. * @generated */ ExchangePlanContent createExchangePlanContent(); /** * Returns a new object of class '<em>Registration Rule</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Registration Rule</em>'. * @generated */ RegistrationRule createRegistrationRule(); /** * Returns a new object of class '<em>Object Selection Rule</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Object Selection Rule</em>'. * @generated */ ObjectSelectionRule createObjectSelectionRule(); /** * Returns a new object of class '<em>Exchange Plan Selection Rule</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Exchange Plan Selection Rule</em>'. * @generated */ ExchangePlanSelectionRule createExchangePlanSelectionRule(); /** * Returns the package supported by this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the package supported by this factory. * @generated */ RmPackage getRmPackage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "TestModelFactory getTestModelFactory();", "public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public SqliteModelFactoryImpl()\n {\n super();\n }", "public PetrinetmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "ModelsFactory getModelsFactory();", "public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}", "protected abstract IModel<T> createModel(T object);", "public interface ConfigModelFactory\n{\n\t/**\n\t * Create an instance of the <code>ConfigModel</code>\n\t *\n\t * @return an instance of the configuration model\n\t */\n\tConfigModel createInstanceOfConfigModel();\n\n\t/**\n\t * Create an instance of the <code>InstanceModel</code>\n\t *\n\t * @return an instance of the instance model\n\t */\n\tInstanceModel createInstanceOfInstanceModel();\n\n\t/**\n\t * Create an instance of the <code>CsticModel</code>\n\t *\n\t * @return an instance of the characteristic model\n\t */\n\tCsticModel createInstanceOfCsticModel();\n\n\t/**\n\t * Create an instance of the <code>CsticValueModel</code>\n\t *\n\t * @param valueType\n\t * The containing Cstic value type\n\t * @return an instance of the characteristic value model\n\t */\n\tCsticValueModel createInstanceOfCsticValueModel(int valueType);\n\n\t/**\n\t * Create an instance of the <code>CsticGroupModel</code>\n\t *\n\t * @return an instance of the characteristic group model\n\t */\n\tCsticGroupModel createInstanceOfCsticGroupModel();\n\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel createInstanceOfPriceModel();\n\n\t/**\n\t * Create an instance of the <code>SolvableConflictModel</code>\n\t *\n\t * @return an instance of the Solvable Conflict Model\n\t */\n\tSolvableConflictModel createInstanceOfSolvableConflictModel();\n\n\t/**\n\t * Create an instance of the <code>ConflictingAssumptionModel</code>\n\t *\n\t * @return an instance of the Conflicting Assumption Model\n\t */\n\tConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel getZeroPriceModel();\n\n\t/**\n\t * Create an instance of the <code>PriceSummaryModel</code>\n\t *\n\t * @return an instance of the price summary model\n\t */\n\tPriceSummaryModel createInstanceOfPriceSummaryModel();\n\n\t/**\n\t * @return a builder to construct {@link ProductConfigMessage} objects\n\t */\n\tdefault ProductConfigMessageBuilder createProductConfigMessageBuilder()\n\t{\n\t\treturn new ProductConfigMessageBuilder();\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t * uses the <code>DEFAULT</code> ProductConfigMessageSourceSubType\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tdefault ProductConfigMessage createInstanceOfProductConfigMessage(final String message, final String key,\n\t\t\tfinal ProductConfigMessageSeverity severity, final ProductConfigMessageSource source)\n\t{\n\t\treturn createInstanceOfProductConfigMessage(message, key, severity, source, ProductConfigMessageSourceSubType.DEFAULT);\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @param subType\n\t * optional sub type of the message source\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tProductConfigMessage createInstanceOfProductConfigMessage(String message, String key, ProductConfigMessageSeverity severity,\n\t\t\tProductConfigMessageSource source, ProductConfigMessageSourceSubType subType);\n\n\n\t/**\n\t * Create an instance of the <code>VariantConditionModel</code>\n\t *\n\t * @return an instance of the variant condition model\n\t */\n\tVariantConditionModel createInstanceOfVariantConditionModel();\n\n\t/**\n\t * @return class name of the {@link PriceSummaryModel} implementation\n\t */\n\tString getTargetClassNamePriceSummaryModel();\n\n\n\t/**\n\t * @return class name of the {@link PriceModel} implementation\n\t */\n\tString getTargetClassNamePriceModel();\n\n\t/**\n\t * @return class name of the {@link CsticGroupModel} implementation\n\t */\n\tString getTargetClassNameCsticGroupModel();\n\n\t/**\n\t * @return class name of the {@link CsticValueModel} implementation\n\t */\n\tString getTargetClassNameCsticValueModel();\n\n\t/**\n\t * @return class name of the {@link CsticModel} implementation\n\t */\n\tString getTargetClassNameCsticModel();\n\n\t/**\n\t * @return class name of the {@link InstanceModel} implementation\n\t */\n\tString getTargetClassNameInstanceModel();\n\n\t/**\n\t * @return class name of the {@link ConfigModel} implementation\n\t */\n\tString getTargetClassNameConfigModel();\n\n\t/**\n\t * @return class name of the {@link SolvableConflictModel} implementation\n\t */\n\tString getTargetClassNameSolvableConflictModel();\n\n\t/**\n\t * @return class name of the {@link ConflictingAssumptionModel} implementation\n\t */\n\tString getTargetClassNameConflictingAssumptionModel();\n\n\t/**\n\t * @return class name of the {@link VariantConditionModel} implementation\n\t */\n\tString getTargetClassNameVariantConditionModel();\n}", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "public interface ModelFactory <ModelObject> {\n public void createElement(ModelObject object);\n}", "EisModel createEisModel();", "BehaviouralModelFactory getBehaviouralModelFactory();", "CsticModel createInstanceOfCsticModel();", "public abstract void create();", "InstanceModel createInstanceOfInstanceModel();", "public M create(P model);", "void create(Model model) throws Exception;", "public void create(){}", "public static MusicModel createModel() {\n return new MusicModelImpl();\n }", "public interface AbstractFactory {\n /**\n * Create cpu cpu.\n *\n * @return the cpu\n */\n Cpu createCpu();\n\n /**\n * Create main board main board.\n *\n * @return the main board\n */\n MainBoard createMainBoard();\n}", "public Model createBaseModel() {\n return ModelFactory.createDefaultModel();\n }", "public interface AbstractFactory<T> {\n /**\n * Create a new Object of type T\n * @return the created object\n */\n T create();\n}", "private ConcreteFactory() {}", "DataModel createDataModel();", "public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public interface Factory<T> {\n T create();\n}", "T create();", "T create();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public static SqliteModelFactory init()\n {\n try\n {\n SqliteModelFactory theSqliteModelFactory = (SqliteModelFactory)EPackage.Registry.INSTANCE.getEFactory(SqliteModelPackage.eNS_URI);\n if (theSqliteModelFactory != null)\n {\n return theSqliteModelFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new SqliteModelFactoryImpl();\n }", "interface Factory {\r\n /**\r\n * Create an instance of an agenda view model with the given saved\r\n * instance state.\r\n *\r\n * @param savedInstanceState previously saved state of the view model\r\n * @return the created agenda view model\r\n */\r\n AgendaViewModel create(Bundle savedInstanceState);\r\n }", "private EntityFactory() {}", "Klassenstufe createKlassenstufe();", "public interface Factory {\n Product create();\n}", "public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }", "@Override\n\tpublic void create() {\n\n\t}", "public abstract void create(T t);", "For createFor();", "CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }", "public static Factory factory() {\n return ext_dbf::new;\n }", "public interface Factory {\r\n}", "PriceModel createInstanceOfPriceModel();", "ZenModel createZenModel();", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public interface Creator<T> {\n\t\tpublic T create() throws APIException;\n\n\t\tpublic void destroy(T t);\n\n\t\tpublic boolean isValid(T t);\n\n\t\tpublic void reuse(T t);\n\t}", "public EntityFactoryImpl() {\n\t\tsuper();\n\t}", "DomainModel createDomainModel();", "@Override\n\tpublic void create () {\n\n\t}", "public interface Factory {\n LeiFeng createLeiFeng();\n}", "public void create() {\n\t\t\n\t}", "public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static PetrinetmodelFactory init() {\r\n\t\ttry {\r\n\t\t\tPetrinetmodelFactory thePetrinetmodelFactory = (PetrinetmodelFactory)EPackage.Registry.INSTANCE.getEFactory(PetrinetmodelPackage.eNS_URI);\r\n\t\t\tif (thePetrinetmodelFactory != null) {\r\n\t\t\t\treturn thePetrinetmodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new PetrinetmodelFactoryImpl();\r\n\t}", "protected abstract ENTITY createEntity();", "public static UsermodelFactory init() {\r\n\t\ttry {\r\n\t\t\tUsermodelFactory theUsermodelFactory = (UsermodelFactory)EPackage.Registry.INSTANCE.getEFactory(UsermodelPackage.eNS_URI);\r\n\t\t\tif (theUsermodelFactory != null) {\r\n\t\t\t\treturn theUsermodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new UsermodelFactoryImpl();\r\n\t}", "ConfigModel createInstanceOfConfigModel();", "public abstract T create(T obj);", "public static Factory factory() {\n return ext_h::new;\n }", "public interface DebuggerModelFactory\n\t\textends ExtensionPoint, ConfigurableFactory<DebuggerObjectModel> {\n\n\t/**\n\t * Get the priority for selecting this factory by default for the given program\n\t * \n\t * <p>\n\t * A default factory is selected when the current factory and the last successful factory are\n\t * incompatible with the current program, or if this is the very first time connecting. Of those\n\t * factories compatible with the current program, the one with the highest priority (larger\n\t * numerical value) is selected. If none are compatible, then the current selection is left as\n\t * is.\n\t * \n\t * <p>\n\t * Note that negative priorities imply the factory is not compatible with the given program or\n\t * local system.\n\t * \n\t * @param program the current program, or null\n\t * @return the priority, higher values mean higher priority\n\t */\n\tdefault int getPriority(Program program) {\n\t\treturn 0;\n\t}\n\n\t/**\n\t * Check if this factory is compatible with the local system and given program.\n\t * \n\t * <p>\n\t * <b>WARNING:</b> Implementations should not likely override this method. If one does, it must\n\t * behave in the same manner as given in this default implementation: If\n\t * {@link #getPriority(Program)} would return a non-negative result for the program, then this\n\t * factory is compatible with that program. If negative, this factory is not compatible.\n\t * \n\t * @param program the current program, or null\n\t * @return true if compatible\n\t */\n\tdefault boolean isCompatible(Program program) {\n\t\treturn getPriority(program) >= 0;\n\t}\n}", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "public interface IFactory {\n IUser createUser();\n IDepartment createDepartment();\n}", "public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}", "public interface SerializerFactory<T> {\n\t\n\t/** the method creates a new MessageSerializer.\n\t * \n\t * @return new object that implements the MessageSerializer interface. \n\t */\n MessageSerializer<T> create();\n}", "public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "Factory<? extends T> buildPersonFactory(String type);", "public PedidoFactoryImpl() {\n\t\tsuper();\n\t}", "public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public interface Creator {\n public abstract Item factoryMethod();\n public abstract Item factoryMethod(String name);\n public abstract Item factoryMethod(String name, List<Flower> flowerList);\n}", "public abstract ProductFactory getFactory();", "public Model() {\n\t}", "public Model() {\n\t}", "public LanterneFactoryImpl() {\n\t\tsuper();\n\t}", "public interface Factory {\n Animal createAnimal();\n}", "public interface AbstractFactory {\n Bmw produceBmw();\n Benz produceBenz();\n}", "public MystFactoryImpl()\r\n {\r\n super();\r\n }", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "public interface IFactory<T extends MaterialCastingRecipe> {\n T create(ResourceLocation id, String group, @Nullable Ingredient cast, int itemCost, IMaterialItem result,\n boolean consumed, boolean switchSlots);\n }", "private VegetableFactory() {\n }", "protected MoneyFactory() {\n\t}", "public EnotationFactoryImpl() {\n\t\tsuper();\n\t}", "public Model() {\n this(DSL.name(\"model\"), null);\n }", "public EcoreFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public TypeAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = TypePackage.eINSTANCE;\n\t\t}\n\t}", "interface Create {}", "public GameDomainFactory() {\r\n\t\t\r\n\t\tCreateGameDomain = new HashMap<String, GameDomainFactory.gameDomainCreator>();\r\n\t\tCreateGameDomain.put(\"TicTacToe\" , new ticTacToeCreator());\r\n\t\tCreateGameDomain.put(\"Reversi\", new CreatorReversi());\r\n\t}", "public abstract <T> T create(Object object, Class<T> clazz);", "public EcoreFactoryImpl() {\n super();\n }", "public static Factory factory() {\n return text::new;\n }", "public FvFactoryImpl() {\n\t\tsuper();\n\t}", "public abstract Product productFactory(String type);" ]
[ "0.7157852", "0.7157852", "0.7157852", "0.7157852", "0.7157852", "0.7157852", "0.7157852", "0.7075211", "0.7052549", "0.6984592", "0.69750196", "0.6965814", "0.695733", "0.6949335", "0.6860817", "0.6811919", "0.6807112", "0.67560583", "0.66955787", "0.6657461", "0.66552806", "0.6640411", "0.6596438", "0.65802574", "0.6572565", "0.65555227", "0.6535025", "0.64830405", "0.64762676", "0.645034", "0.6446122", "0.6431445", "0.6420894", "0.6403374", "0.6400217", "0.6390039", "0.6390039", "0.63683116", "0.63491917", "0.63469124", "0.6346017", "0.63069355", "0.63028663", "0.62939924", "0.6288995", "0.62751126", "0.62649167", "0.6250288", "0.6234472", "0.6228728", "0.62257624", "0.62239295", "0.6219866", "0.6213856", "0.6212809", "0.6203706", "0.6193087", "0.6166883", "0.61650544", "0.61543196", "0.61433613", "0.61420864", "0.61401206", "0.6134167", "0.6118072", "0.6079459", "0.60663754", "0.6061953", "0.6061121", "0.60444385", "0.60365975", "0.6028043", "0.6026783", "0.60211986", "0.6019484", "0.60134465", "0.6001109", "0.59871733", "0.59812367", "0.5980188", "0.59482604", "0.59482604", "0.59395367", "0.5938079", "0.5935634", "0.5932902", "0.59254193", "0.5922234", "0.5919365", "0.59029996", "0.5900611", "0.5896163", "0.5894429", "0.5892627", "0.5877438", "0.5871638", "0.58640623", "0.58635736", "0.5861423", "0.5860146", "0.5856709" ]
0.0
-1
Returns a new object of class 'Registration Module'.
RegistrationModule createRegistrationModule();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RegistrationInfo getRegistrationInfo();", "Module createModule();", "public IUser getRegistrator(){\n\t\treturn User.get().\n\t\t\t\tsetPerson(Person.get()\n\t\t\t\t\t\t.setFirstname(\"Regisytator\")\n\t\t\t\t\t\t.setLastname(\"Registrator\")\n\t\t\t\t\t\t.setEmail(\"[email protected]\")\n\t\t\t\t\t\t.build()\n\t\t\t\t\t\t)\n\t\t\t\t.setAccount(Account.get()\n\t\t\t\t\t\t.setLogin(\"registrator\")\n\t\t\t\t\t\t.setPassword(\"registrator\")\n\t\t\t\t\t\t.setRole(\"REGISTRATOR\")\n\t\t\t\t\t\t.setStatus(\"ACTIVE\")\n\t\t\t\t\t\t.setCommunity(\"Україна\")\n\t\t\t\t\t\t.build()\n\t\t\t\t\t\t.setData(\"\")\n\t\t\t\t\t\t.setRegisterNumber(\"14\")\n\t\t\t\t\t\t.setRegistratorNumber(\"804:23:17:026:79000:\")\n\t\t\t\t\t\t.setVolumeNumber(\"12345\")\n\t\t\t\t\t\t)\n\t\t\t\t.build();\t\n\t}", "@ModelAttribute(\"user\")\n public UserRegistration userRegistration() {\n return new UserRegistration();\n }", "Module module() {\n return module;\n }", "private static Registrant makeNewRegistrantFromUserInput() {\n\t\tString input_name = getResponseTo(\"Enter registant's first and Last name: \");\r\n\t\tRegistrant new_Registrant = new Registrant(input_name);\r\n\t\treturn new_Registrant;\r\n\t}", "public Register() {\n }", "public PluginRegister getRegisterManager(){\n return pluginRegister;\n }", "public Register() {\n\n this.literatureRegister = new ArrayList<>();\n }", "Registries createExtension();", "public static RegistrationVO getRegistrationVO() {\r\n\t\treturn registrationVO;\r\n\t}", "public void register(RegistrationData d) {}", "public Module build() {\n return new Module(moduleCode, moduleTitle, academicYear, semester,\n students, tags);\n }", "RegistrationRule createRegistrationRule();", "private reg1() {\n }", "public RegistryCreator() {\n this.vehicleRegistry = new VehicleRegistry();\n this.inspectionResultRegistry = new InspectionResultRegistry();\n }", "public String getRegistrationType() {\n\t\treturn registrationType;\n\t}", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "public entities.Torrent.RegistrationRequest.Builder getRegistrationRequestBuilder() {\n\n onChanged();\n return getRegistrationRequestFieldBuilder().getBuilder();\n }", "ModuleDefine createModuleDefine();", "public void register(){\n }", "public Register() {\n\t\tsuper();\n\t}", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "public Registracija() {\n initComponents();\n }", "public abstract void register();", "private SIModule(){}", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "public Register() {\n \n initComponents();\n \n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n return getRegistrationResponse();\n }", "public ConfirmRegister build() {\r\n\t\t\treturn new ConfirmRegister(this);\r\n\t\t}", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "public Register() {\n initComponents();\n \n }", "@java.lang.Override\n public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n return getRegistrationRequest();\n }", "public EntryReeferMuatBean() {\n registration = new Registration();\n registration.setMasterCustomer(new MasterCustomer());\n registration.setPlanningVessel(new PlanningVessel());\n registration.getPlanningVessel().setPreserviceVessel(new PreserviceVessel());\n registration.getPlanningVessel().getPreserviceVessel().setMasterVessel(new MasterVessel());\n }", "public Module module() {\n ////\n return module;\n }", "public void setRegistration( String registration ) {\n this.registration = registration;\n }", "static void register() {\n }", "RegisterParam getRegister();", "void register();", "private Module createModule() throws Exception\n {\n Map headerMap = m_archive.getCurrentRevision().getManifestHeader();\n\n // Create the module instance.\n ModuleImpl module = new ModuleImpl(\n getFramework().getLogger(),\n getFramework().getConfig(),\n getFramework().getResolver(),\n this,\n Long.toString(getBundleId())\n + \".\" + m_archive.getCurrentRevisionNumber().toString(),\n headerMap,\n m_archive.getCurrentRevision().getContent(),\n getFramework().getBundleStreamHandler(),\n getFramework().getBootPackages(),\n getFramework().getBootPackageWildcards());\n\n // Verify that the bundle symbolic name + version is unique.\n if (module.getManifestVersion().equals(\"2\"))\n {\n Version bundleVersion = module.getVersion();\n bundleVersion = (bundleVersion == null) ? Version.emptyVersion : bundleVersion;\n String symName = module.getSymbolicName();\n\n Bundle[] bundles = getFramework().getBundles();\n for (int i = 0; (bundles != null) && (i < bundles.length); i++)\n {\n long id = ((BundleImpl) bundles[i]).getBundleId();\n if (id != getBundleId())\n {\n String sym = bundles[i].getSymbolicName();\n Version ver = ((ModuleImpl)\n ((BundleImpl) bundles[i]).getCurrentModule()).getVersion();\n if ((symName != null) && (sym != null) && symName.equals(sym) && bundleVersion.equals(ver))\n {\n throw new BundleException(\n \"Bundle symbolic name and version are not unique: \"\n + sym + ':' + ver, BundleException.DUPLICATE_BUNDLE_ERROR);\n }\n }\n }\n }\n\n return module;\n }", "protected Registry createRegistry() {\n return new JndiRegistry();\n }", "public Successful_Registration() {\n initComponents();\n }", "private RegisterUser() {\n\n }", "public entities.Torrent.RegistrationResponse getRegistrationResponse() {\n if (registrationResponseBuilder_ == null) {\n return registrationResponse_ == null ? entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n } else {\n return registrationResponseBuilder_.getMessage();\n }\n }", "@Override\n public java.lang.AutoCloseable createInstance() {\n logger.info(\"Creating the Registry Handler Implementation Instance...\");\n\n DataBroker dataBrokerService = getDataBrokerDependency();\n RpcProviderRegistry rpcProviderRegistry = getRpcRegistryDependency();\n RegistryHandlerProvider provider = new RegistryHandlerProvider(dataBrokerService, rpcProviderRegistry);\n\n logger.info(\"Creating the Registry Handler Implementation created...\");\n\n return provider;\n }", "public SyncRegistrationEntity() {\n\t\tsuper();\n\t}", "MemberRegistration getLocalRegistration()\n {\n if (cohortRegistry != null)\n {\n return cohortRegistry.getLocalRegistration();\n }\n\n return null;\n }", "public RegistrationPage() {\t\t\r\n\t\tdriver = DriverManager.getThreadSafeDriver();\r\n\t\tPageFactory.initElements(driver, this);\r\n\t}", "Registry getRegistry();", "Registry getRegistry();", "public RegCita() {\n\t\tinitialize();\n\t}", "public UserRegistration() {\n // JPA benötigt einen Default-Konstruktor!\n }", "public RoleRegister get(){\n\t\t{ // TODO This code is not elegant\n\t\t\tif(rr.pkgs==null || rr.pkgs.size()==0){ \n\t\t\t\t//this.pkgs = new String[0]; \n\t\t\t\trr.pkgs = new LinkedList<String>();\n\t\t\t\trr.pkgs.add(\"\");\n\t\t\t}\n\t\t\tif(rr.pkgs.size()==0){ \n\t\t\t\tthrow new IllegalArgumentException(\"Supply at least one package perfix.\"); \n\t\t\t}\n\t\t\t//setMatchType(MatchType.STARTS_WITH);\n\t\t}\n\t\t\n\t\tif(rr.onlyFor!=null){ // BLOCK Remove classes to exclude\n\t\t\trr.computedOnlyFor.addAll(rr.onlyFor);\n\t\t\tfor(String o : rr.onlyFor){\n\t\t\t\tfor(String e : rr.excludeGiven){\n\t\t\t\t\tif(o.startsWith(e)){\n\t\t\t\t\t\t rr.computedOnlyFor.remove(o);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\trr.built = true;\n\t\tRoleRegister ret = rr;\n\t\trr = null;\n\t\t\n\t\treturn ret;\n\t}", "public RegistrationInteractor(String s){\n\t\tthis.theUser = new User();\n\t}", "public interface RegistrationService {\n\n\t/**\n\t * Return the stored registration information.\n\t *\n\t * @return RegistrationInfo\n\t */\n\tpublic RegistrationInfo getRegistrationInfo();\n\t\n\t/**\n\t * Stores the registration information. <b>Note:</b> At least one course and an employment status must be chosen.\n\t * This validation is done prior to calling this method. It is done in the RegistrationServlet.doPost() method.\n\t *\n\t * @param name - name of the registrant\n\t * @param email - email of the registrant\n\t * @param courses - courses selected, at least one course is required\n\t * @param employmentStatus - employment status, this is required\n\t * @param hotel - hotel accommodation\n\t * @param parking - parking permit\n\t */\n\tpublic void setRegistrationInfo(String name,\n\t\t\t\t\t\t\t\t\tString email,\n\t\t\t\t\t\t\t\t\tList<String> courses,\n\t\t\t\t\t\t\t\t\tString employmentStatus,\n\t\t\t\t\t\t\t\t\tString hotel,\n\t\t\t\t\t\t\t\t\tString parking);\n\t/**\n\t * Returned the stored cost information.\n\t *\n\t * @return CostInfo\n\t */\n\tpublic CostInfo getCostInfo();\n\t\n\t/**\n\t * Removes a selected course.\n\t *\n\t * @param course - name of the course to remove\n\t */\n\tpublic void removeCourse(String course);\n\t\n\t/**\n\t * Return the courses as a String array.\n\t *\n\t * @return String[]\n\t */\n\tpublic String[] getCourses();\n}", "Registry getRegistry( );", "public LandingPage registerNewAccount(){\n\t\taction.WaitForWebElement(linkRegisterNewAccount)\n\t\t\t .Click(linkRegisterNewAccount);\n\t\treturn this;\n\t}", "public Registration() {\r\n initComponents();\r\n handler = new ClientSocketHandler();\r\n }", "@Override\n\tprotected void customizeRegistration(Dynamic registration) {\n\tsuper.customizeRegistration(registration);\n\t}", "private void registerModule(Module module) {\n \t\tif (module.register()) {\n \t\t\t_availableModules.add(module);\n \t\t}\n \t}", "@Override\n\tpublic String getRegistrationTag() {\n\t\treturn registrationTag;\n\t}", "Register.Req getRegisterReq();", "ModuleDefinition createModuleDefinition();", "public Register() {\n initComponents();\n }", "public Register() {\n initComponents();\n }", "public Register() {\n initComponents();\n }", "public Register() {\n initComponents();\n }", "public RegisterNewData() {\n }", "public ResponseRegister() {\n }", "public RNPushNotificationRegistrationService() {\n super();\n s_instance = this;\n }", "@java.lang.Override\n public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }", "public Register()\n {\n // initialise instance variables\n star = new AllMedia();\n\n }", "entities.Torrent.RegistrationResponse getRegistrationResponse();", "public static SimpleModule getModule() {\n SimpleModule module = new SimpleModule();\n module.addSerializer(HttpHeaders.class, new HttpHeadersSerializer());\n return module;\n }", "public interface Module extends Pluggable {\n\t\n\t/**\n\t * Return the module type. Module type can be a value like Mywork, Support, Cowork, etc.\n\t * @return\n\t */\n\tModuleType type();\n\t\n\t/**\n\t * Return true if the module is in subscription. \n\t * @return true if the module is in subscription\n\t */\n\tboolean isOpened();\n\t\n\t/**\n\t * Return true if the module is enabled by a company administrator.\n\t * @return true if the module is enabled by a company administrator\n\t */\n\tboolean isEnabled();\n\t\n\t/**\n\t * Return the home page uri representing an entry point of module.\n\t * @return the home page uri\n\t */\n\tString home();\n\n\t/**\n\t * Return company and user option information like whether option configuration is provided and option configuration uri if any. \n\t * @return company and user option configuration information\n\t */\n\tModuleOption option();\n\t\n\t/**\n\t * Return volume configuration information\n\t * @return\n\t */\n\tModuleComponent volume();\n\t\n\t/**\n\t * Return statistics information\n\t * @return\n\t */\n\tModuleComponent statistics();\n\t\n\t/**\n\t * Return renderer\n\t */\n\tModuleRenderer render();\n\t\n}", "public Register() {\n user = new User();\n em = EMF.createEntityManager();\n valid = false;\n }", "public static void register(GCMRegistrationRequest request,\n APIResponseHandler<GenericSuccessModel> response) {\n\n APIConnection.send(API_PATH + \"register\", request, GenericSuccessModel.class, response);\n }", "private Registry() {\n dbgLog.fine(\"Registry constructor is called\");\n }", "protected void __register()\n {\n }", "protected void __register()\n {\n }", "public LiteratureRegister() {\n litRegister = new HashSet<>();\n }", "public entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder() {\n if (registrationRequestBuilder_ != null) {\n return registrationRequestBuilder_.getMessageOrBuilder();\n } else {\n return registrationRequest_ == null ?\n entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n }\n }", "public REG(Reg r) {\n\t\treg = r;\n\t}", "public entities.Torrent.RegistrationResponseOrBuilder getRegistrationResponseOrBuilder() {\n if (registrationResponseBuilder_ != null) {\n return registrationResponseBuilder_.getMessageOrBuilder();\n } else {\n return registrationResponse_ == null ?\n entities.Torrent.RegistrationResponse.getDefaultInstance() : registrationResponse_;\n }\n }", "private AeRegistration() {\n\t\tnotifications = new HashMap<String, List<JSONObject>>();\n\t\tsubscriptions = new HashMap<String,String>();\n\t\tsubscribedToResourcesSet = new HashMap<String,String>();\n\t\tsubscriptionsPerSessions = new HashMap<String, Set<String>>();\n\t}", "Register.Res getRegisterRes();", "public String getRegistrationId() {\n\t\treturn registrationId;\n\t}", "entities.Torrent.RegistrationRequest getRegistrationRequest();", "public entities.Torrent.RegistrationRequest getRegistrationRequest() {\n if (registrationRequestBuilder_ == null) {\n return registrationRequest_ == null ? entities.Torrent.RegistrationRequest.getDefaultInstance() : registrationRequest_;\n } else {\n return registrationRequestBuilder_.getMessage();\n }\n }", "public ModuleInfo() {\r\n this.types = new ArrayList<>();\r\n this.typeByName = new HashMap<>();\r\n }", "entities.Torrent.RegistrationRequestOrBuilder getRegistrationRequestOrBuilder();", "public StudentRegistration() {\n initComponents();\n }", "public DeploymentModule() {\n\t\tsuper(DeploymentModule.class.getSimpleName());\n\t}", "public modGenRoomControl() {\r\n //construct MbModule\r\n super();\r\n roomObjects = new HashMap(32);\r\n gui = new GUI();\r\n //we depend on the RemoteControl-module\r\n addDependency(\"RemoteControl\");\r\n //we depend on the ARNE-module\r\n addDependency(\"ARNE\");\r\n //register our packet data handler\r\n setPacketDataHandler(new PacketDataHandler());\r\n //we have a html-interface, so lets register it\r\n setHTMLInterface(new HTMLInterface());\r\n }", "ModulePackage createModulePackage();", "public UserRegistry getUserRegistry();", "@Override\r\n\tpublic void register() {\n\t\t\r\n\t}" ]
[ "0.628508", "0.6259543", "0.61343974", "0.6043633", "0.60058755", "0.5989915", "0.59811354", "0.5934901", "0.59229726", "0.59139526", "0.58959705", "0.58954966", "0.5895361", "0.5883366", "0.58613896", "0.5853116", "0.5828612", "0.5803229", "0.5801879", "0.57894003", "0.57732016", "0.5709885", "0.5708014", "0.5693272", "0.5682988", "0.56827486", "0.56519556", "0.56414896", "0.5623101", "0.56137913", "0.5609676", "0.5598896", "0.5596821", "0.55947655", "0.55897826", "0.5562259", "0.55543613", "0.55344933", "0.5532137", "0.5521206", "0.5518251", "0.5515959", "0.5513637", "0.5505973", "0.5505459", "0.5504452", "0.54997313", "0.54993105", "0.5492894", "0.54765064", "0.54708993", "0.5470838", "0.5470838", "0.54677665", "0.54531044", "0.54490924", "0.54461825", "0.5443686", "0.5438602", "0.54358107", "0.5433536", "0.54288006", "0.542521", "0.5424337", "0.5413841", "0.54122114", "0.5407551", "0.5407551", "0.5407551", "0.5407551", "0.5406214", "0.5399003", "0.53930193", "0.5391906", "0.53726035", "0.53610206", "0.53558135", "0.535509", "0.53508973", "0.534847", "0.53329986", "0.5328915", "0.5328915", "0.53260905", "0.53237474", "0.53155327", "0.53150463", "0.5312313", "0.53047484", "0.5304305", "0.52928245", "0.52848446", "0.52830076", "0.5273638", "0.52707714", "0.52655494", "0.52562094", "0.52544236", "0.5249797", "0.5247655" ]
0.8405642
0
Returns a new object of class 'Exchange Plan Content'.
ExchangePlanContent createExchangePlanContent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static DeliveryWrapper createDeliveryWrapper(TasOffer tasOffer)throws ManagerBeanException{\r\n\t\tOffer offer = tasOffer.getOffer();\r\n\t\tList<ITransferObject> offerLines = getOfferLines(offer);\r\n\t\t\r\n\t\tDeliveryWrapper deliveryWrapper = new DeliveryWrapper();\r\n\t\t\r\n\t\tDelivery delivery = new Delivery();\r\n\t\tCustomer customer = new Customer();\r\n\t\tcustomer.setRegistry(offer.getTarget().getRegistry());\r\n\t\tdelivery.setCustomer(customer);\r\n\t\tdelivery.setIssueTime(offer.getIssueDate());\r\n\t\tdelivery.setSeries(offer.getSeries());\r\n\t\tdelivery.setNumber(offer.getNumber());\r\n\t\tdelivery.setSecurityLevel(SecurityLevel.OFFICIAL);\r\n\t\tdelivery.setStatus(DeliveryStatus.PENDING);\r\n\t\t\r\n\t\tdeliveryWrapper.setDelivery(delivery);\r\n\t\t\r\n\t\tList<DeliveryDetail> lines = new ArrayList<DeliveryDetail>();\r\n\t\tIterator iter = offerLines.iterator();\r\n\t\tDeliveryController deliveryController = (DeliveryController)AonUtil.getController(DELIVERY_CONTROLLER_NAME);\r\n\t\twhile (iter.hasNext()){\r\n\t\t\tOfferDetail offerDetail = (OfferDetail)iter.next();\r\n\t\t\t\r\n\t\t\tDeliveryDetail deliveryDetail = new DeliveryDetail();\r\n\t\t\tdeliveryDetail.setDelivery(delivery);\r\n\t\t\tdeliveryDetail.setDiscountExpression(offerDetail.getDiscountExpression());\r\n\t\t\tdeliveryDetail.setItem(offerDetail.getItem());\r\n\t\t\tdeliveryDetail.setDescription(offerDetail.getDescription());\r\n\t\t\tdeliveryDetail.setPrice(offerDetail.getPrice());\r\n\t\t\tdeliveryDetail.setQuantity(offerDetail.getQuantity());\r\n\t\t\tdeliveryDetail.setWarehouse(new Warehouse());\r\n\t\t\tdeliveryDetail.getWarehouse().setId(deliveryController.getWarehouseId());\r\n\t\t\t\r\n\t\t\tlines.add(deliveryDetail);\r\n\t\t}\r\n\t\tdeliveryWrapper.setLines(lines);\r\n\r\n\t\treturn deliveryWrapper;\r\n\t}", "ShipmentPackageContent createShipmentPackageContent();", "public Content createContent();", "public Plan() {\n }", "public PurchaseRequestAttachmentContent() {\r\n }", "abstract public Content createContent();", "public ExchangeDesk(){\n }", "public ExchangeInfo() {\n super();\n }", "public PlanPage() {\n this( new PageParameters() );\n }", "public abstract Object getContent();", "private void createExportExchanges(){\r\n\t\tComposite composite = createParent(getFieldEditorParent(), \"Exchanges\");\r\n\t\tuseExportComponentExchange = new BooleanFieldEditor(CapellaDocgenPreferenceConstant.DOCGEN_EXPORT__COMPONENT_EXCHANGE, \r\n\t\t\t\t Messages.EXPORT__COMPONENT_EXCHANGE_FIELD_LABEL, composite);\r\n\t\t\r\n\t\tuseExportFunctionalExchange = new BooleanFieldEditor(CapellaDocgenPreferenceConstant.DOCGEN_EXPORT__FUNCTIONAL_EXCHANGE, \r\n\t\t\t\t Messages.EXPORT__FUNCTIONAL_EXCHANGE_FIELD_LABEL, composite);\r\n\t\t\r\n\t\tuseExportPhysicalLink = new BooleanFieldEditor(CapellaDocgenPreferenceConstant.DOCGEN_EXPORT__PHYSICAL_LINK, \r\n\t\t\t\t Messages.EXPORT__PHYSICAL_LINK_FIELD_LABEL, composite);\r\n\t}", "protected IContentProvider createContentProvider() {\r\n\t\treturn new ProjectAndSourceFolderContentProvider(this);\r\n\t}", "public GetPlanItemResponseBuilder() {\r\n getPlanItemResponse = new GetPlanItemResponse();\r\n }", "public DataSummaryOverviewPageModContentFactoryImpl() {\n\t\tsuper();\n\t}", "public ContentSlotForPageDTO()\n\t{\n\t\tsuper();\n\t}", "public CMObject newInstance();", "public WaypointCardBase<?> getContent() {\n return this.content.getValue();\n }", "ContentFactory getContentFactory();", "public String getContentObj() {\n return contentObj;\n }", "com.unitedtote.schema.totelink._2008._06.program.ExchangeWagers xgetExchange();", "ShipmentItemBilling createShipmentItemBilling();", "protected abstract Content newContent();", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Class<TePlanOverview> getEntityClass() {\n\t\treturn TePlanOverview.class;\n\t}", "private static DeliveryWrapper createDeliveryWrapper(SupportOrder supportOrder){\r\n\t\tDeliveryWrapper deliveryWrapper = new DeliveryWrapper();\r\n\t\t\r\n\t\tDelivery delivery = new Delivery();\r\n\t\tCustomer customer = new Customer();\r\n\t\tcustomer.setRegistry(supportOrder.getTarget().getRegistry());\r\n\t\tdelivery.setCustomer(customer);\r\n\t\tdelivery.setIssueTime(supportOrder.getStartDate());\r\n\t\tdelivery.setSeries(null);\r\n\t\tdelivery.setNumber(0);\r\n\t\tdelivery.setSecurityLevel(SecurityLevel.OFFICIAL);\r\n\t\tdelivery.setStatus(DeliveryStatus.PENDING);\r\n\t\t\r\n\t\tdeliveryWrapper.setDelivery(delivery);\r\n\t\t\r\n\t\treturn deliveryWrapper;\r\n\t}", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter()\n {\n return null;\n }", "public Adapter createEObjectAdapter() {\n return null;\n }", "public Adapter createEObjectAdapter() {\n return null;\n }", "ExchangePlanSelectionRule createExchangePlanSelectionRule();", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public Adapter createEObjectAdapter()\r\n {\r\n return null;\r\n }", "public Content() {\n\t}", "public Adapter createEObjectAdapter() {\r\n return null;\r\n }", "public Serializable getObject() throws OpenwireException {\n if (object == null && getContent() != null) {\n try {\n Buffer content = getContent();\n InputStream is = new ByteArrayInputStream(content);\n if (isCompressed()) {\n is = new InflaterInputStream(is);\n }\n DataInputStream dataIn = new DataInputStream(is);\n ClassLoadingAwareObjectInputStream objIn = new ClassLoadingAwareObjectInputStream(dataIn);\n try {\n object = (Serializable)objIn.readObject();\n } catch (ClassNotFoundException ce) {\n throw new OpenwireException(\"Failed to build body from content. Serializable class not available to broker. Reason: \" + ce, ce);\n } finally {\n dataIn.close();\n }\n } catch (IOException e) {\n throw new OpenwireException(\"Failed to build body from bytes. Reason: \" + e, e);\n }\n }\n return this.object;\n }", "public Contract create(){\n\t\treturn new Contract();\n\t}", "public static MailArtefact createMailArtefact(JSONObject searchMailObject) {\n\t\tJSONObject mailSource = searchMailObject.getJSONObject(ElasticSearchConnector.SOURCE);\n\t\t\n\t\tMailArtefact art = new MailArtefact( String.valueOf(mailSource.getInt(ElasticSearchConnector.ID)) );\n\t\tart.setSubject(mailSource.getString(ElasticSearchConnector.SUBJECT));\n\t\tart.setContent(mailSource.getString(ElasticSearchConnector.TEXTCONTENT));\n\t\t\n\t\treturn art;\n\t}", "public ContentKj () {\n\t\tsuper();\n\t}", "public DayPlanFragment() {\n\t}", "public Object getContent() {\n return null;\n }", "public ProducerPlan()\r\n\t{\r\n\t\tgetLogger().info(\"Created: \"+this);\r\n\t}", "public Exchange getExchange() {\r\n return exchange;\r\n }", "public GetPlanItemResponse build() {\r\n return getPlanItemResponse;\r\n }", "public ReadPlanFrame() {\r\n\t\tReadPlan read = new ReadPlan();\r\n\t\tsetTitle(\"Plan dnia\");\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(950,70,550,200);\r\n\t\tContainer contentPane = new JPanel();\r\n\t\tcontentPane.setLayout(null);\r\n\t\tsetContentPane(contentPane);\r\n\t\tthis.add(read.getInfo_file());\r\n\t\tthis.add(read.getText());\r\n\t\tthis.add(read.getOdczytaj());\r\n\t}", "private static Message createMessage(Exchange exchange) {\n Endpoint ep = exchange.get(Endpoint.class);\n Message msg = null;\n if (ep != null) {\n msg = new MessageImpl();\n msg.setExchange(exchange);\n if (ep.getBinding() != null) {\n msg = ep.getBinding().createMessage(msg);\n }\n }\n return msg;\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.GetBillInfo param,\r\n boolean optimizeContent, javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.GetBillInfo.MY_QNAME, factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "QuoteItem createQuoteItem();", "Delivery createDelivery();", "public Component getContentPanel() {\n\t\tsetDetailedDescription(helpType);\n\t\tsetExitButton();\n\t\tsetPanelOverview();\n\t\tsetFont();\n\n\t\treturn contentPanel;\n\t}", "@Override\n protected Serializable getContentObject() {\n return result;\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(\r\n org.apache.axiom.soap.SOAPFactory factory,\r\n org.tempuri.HISWebServiceStub.GetBaseCardPrice param,\r\n boolean optimizeContent, javax.xml.namespace.QName elementQName)\r\n throws org.apache.axis2.AxisFault {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody()\r\n .addChild(param.getOMElement(\r\n org.tempuri.HISWebServiceStub.GetBaseCardPrice.MY_QNAME,\r\n factory));\r\n\r\n return emptyEnvelope;\r\n } catch (org.apache.axis2.databinding.ADBException e) {\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n }", "public ZFrame getContent ()\n {\n return content;\n }", "public ZFrame getContent ()\n {\n return content;\n }", "public PurchaseRequestAttachmentContent(Integer id) {\r\n super(id);\r\n }", "private CommunityChestCard createCommunityChestElement(Element eElement) {\r\n\t\treturn new CommunityChestCard(\r\n\t\t\tInteger.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t,eElement.getElementsByTagName(\"description\").item(0).getTextContent()\r\n\t\t\t,Card.Type.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent())\r\n\t\t\t,eElement.getElementsByTagName(\"amount\").item(0).getTextContent()\r\n\t\t);\r\n\t}", "public Plan getPlan(String planName);", "public ExchangeNode(PlanNodeId id, PlanNode inputNode) {\n super(id, inputNode, EXCHANGE_NODE, StatisticalType.EXCHANGE_NODE);\n offset = 0;\n limit = -1;\n this.conjuncts = Collections.emptyList();\n children.add(inputNode);\n computeTupleIds();\n }", "public static ObjectInstance getComplexTypeObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 1);\n properties.put(\"theLabel\", getComplexTypeMBean().getTheLabel());\n properties.put(\"complexitem\", getComplexTypeMBean()\n .getComplexClass().toString());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'ComplexType' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new ComplexType().getClass().getName());\n }" ]
[ "0.5609199", "0.5587006", "0.55212796", "0.5407325", "0.5403594", "0.52866536", "0.5277673", "0.52323973", "0.5167183", "0.51315254", "0.51155907", "0.50919837", "0.50652826", "0.5043829", "0.50274354", "0.50208336", "0.50206697", "0.5014908", "0.50067306", "0.49997053", "0.4996325", "0.49839687", "0.49609908", "0.49609908", "0.49609908", "0.49609908", "0.49609908", "0.49609908", "0.49609908", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49551448", "0.49299043", "0.49153647", "0.49104735", "0.49104735", "0.49104735", "0.49104735", "0.49104735", "0.49104735", "0.49104735", "0.49104735", "0.49021152", "0.49021152", "0.48933053", "0.48877805", "0.48877805", "0.48877805", "0.48877805", "0.48877805", "0.48877805", "0.4876049", "0.48722243", "0.4868859", "0.48602173", "0.48168638", "0.48164588", "0.4801597", "0.47929382", "0.47897285", "0.4768616", "0.4749303", "0.47427812", "0.47336155", "0.4722094", "0.47132844", "0.47089788", "0.47080234", "0.47051632", "0.47050664", "0.47042653", "0.47042653", "0.4701943", "0.46921748", "0.469138", "0.46870965", "0.46861115" ]
0.8500813
0
Returns a new object of class 'Registration Rule'.
RegistrationRule createRegistrationRule();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Rule createRule();", "Rule createRule();", "Rule createRule();", "public RuleConfiguration() {\n\t\trule = new Rule();\n\t}", "private static Registrant makeNewRegistrantFromUserInput() {\n\t\tString input_name = getResponseTo(\"Enter registant's first and Last name: \");\r\n\t\tRegistrant new_Registrant = new Registrant(input_name);\r\n\t\treturn new_Registrant;\r\n\t}", "RegistrationModule createRegistrationModule();", "public SingleRuleBuilder newRule() {\n return new SingleRuleBuilder();\n }", "@Override\r\n public RuleDefinition build() {\r\n return new RuleDefinition(this);\r\n }", "ModelRule createModelRule();", "@ModelAttribute(\"user\")\n public UserRegistration userRegistration() {\n return new UserRegistration();\n }", "AssignmentRule createAssignmentRule();", "ModuleRule createModuleRule();", "protected AbstractAddAdapterRule createTestableRule() {\n return new AddAdapterRule();\n }", "public IUser getRegistrator(){\n\t\treturn User.get().\n\t\t\t\tsetPerson(Person.get()\n\t\t\t\t\t\t.setFirstname(\"Regisytator\")\n\t\t\t\t\t\t.setLastname(\"Registrator\")\n\t\t\t\t\t\t.setEmail(\"[email protected]\")\n\t\t\t\t\t\t.build()\n\t\t\t\t\t\t)\n\t\t\t\t.setAccount(Account.get()\n\t\t\t\t\t\t.setLogin(\"registrator\")\n\t\t\t\t\t\t.setPassword(\"registrator\")\n\t\t\t\t\t\t.setRole(\"REGISTRATOR\")\n\t\t\t\t\t\t.setStatus(\"ACTIVE\")\n\t\t\t\t\t\t.setCommunity(\"Україна\")\n\t\t\t\t\t\t.build()\n\t\t\t\t\t\t.setData(\"\")\n\t\t\t\t\t\t.setRegisterNumber(\"14\")\n\t\t\t\t\t\t.setRegistratorNumber(\"804:23:17:026:79000:\")\n\t\t\t\t\t\t.setVolumeNumber(\"12345\")\n\t\t\t\t\t\t)\n\t\t\t\t.build();\t\n\t}", "TGGRule createTGGRule();", "public RuleBasedValidator() {\n globalRules = new ArrayList();\n rulesByProperty = new HashMap();\n }", "public RoleRegister get(){\n\t\t{ // TODO This code is not elegant\n\t\t\tif(rr.pkgs==null || rr.pkgs.size()==0){ \n\t\t\t\t//this.pkgs = new String[0]; \n\t\t\t\trr.pkgs = new LinkedList<String>();\n\t\t\t\trr.pkgs.add(\"\");\n\t\t\t}\n\t\t\tif(rr.pkgs.size()==0){ \n\t\t\t\tthrow new IllegalArgumentException(\"Supply at least one package perfix.\"); \n\t\t\t}\n\t\t\t//setMatchType(MatchType.STARTS_WITH);\n\t\t}\n\t\t\n\t\tif(rr.onlyFor!=null){ // BLOCK Remove classes to exclude\n\t\t\trr.computedOnlyFor.addAll(rr.onlyFor);\n\t\t\tfor(String o : rr.onlyFor){\n\t\t\t\tfor(String e : rr.excludeGiven){\n\t\t\t\t\tif(o.startsWith(e)){\n\t\t\t\t\t\t rr.computedOnlyFor.remove(o);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\trr.built = true;\n\t\tRoleRegister ret = rr;\n\t\trr = null;\n\t\t\n\t\treturn ret;\n\t}", "private reg1() {\n }", "public RegistrationInfo getRegistrationInfo();", "public SingleRuleBuilder newRule(String name) {\n return new SingleRuleBuilder(name);\n }", "public REG(Reg r) {\n\t\treg = r;\n\t}", "@Override\n\tpublic void reportRuleInstantiation(Rule rule) {\n\t\t\n\t}", "public EmailValidation create(EmailValidation user);", "public static RegistrationVO getRegistrationVO() {\r\n\t\treturn registrationVO;\r\n\t}", "public void create(Rule event);", "Rule getRule();", "public RegistryCreator() {\n this.vehicleRegistry = new VehicleRegistry();\n this.inspectionResultRegistry = new InspectionResultRegistry();\n }", "@Test\n public void createRule() {\n // BEGIN: com.azure.messaging.servicebus.servicebusrulemanagerclient.createRule\n RuleFilter trueRuleFilter = new TrueRuleFilter();\n CreateRuleOptions options = new CreateRuleOptions(trueRuleFilter);\n ruleManager.createRule(\"new-rule\", options);\n // END: com.azure.messaging.servicebus.servicebusrulemanagerclient.createRule\n\n ruleManager.close();\n }", "X509RegistrationResultParser()\n {\n }", "@Override\n\tpublic RecurrenceRule newRecurrence(String frequency) {\n\t\treturn null;\n\t}", "public Validation() {\n }", "public void registerRule(Project p) throws ClassNotFoundException,\n\t\t\t\tInstantiationException, IllegalAccessException {\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tClass cRule = Class.forName(sRuleClassName);\n\t\t\tif (FSTTerminalCompositionRule.class.isAssignableFrom(cRule)) {\n\t\t\t\tCompositionRuleRegistry.getInstance(p).registerRule(sRuleID,\n\t\t\t\t\t\t(FSTTerminalCompositionRule) cRule.newInstance());\n\t\t\t} else {\n\t\t\t\tthrow new IllegalArgumentException(\"Class \" + sRuleClassName\n\t\t\t\t\t\t+ \" is not a valid rule class.\");\n\t\t\t}\n\t\t}", "private RuleDefinition() {\r\n \tthis.id = null;\r\n \tthis.name = null;\r\n \tthis.namespace = null;\r\n this.description = null;\r\n \tthis.typeId = null;\r\n \tthis.propId = null;\r\n this.active = true;\r\n \tthis.proposition = null;\r\n \tthis.actions = null;\r\n \tthis.attributes = null;\r\n this.versionNumber = null;\r\n }", "public DictAccountRegistration getRegistration()\n {\n return registration;\n }", "Schule createSchule();", "public AccrualRule(){}", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "public IRule getCopy()\r\n\t{\r\n\t\tList<ICondition> theConditions = new ArrayList<ICondition>();\r\n\t\ttheConditions.addAll(this.conditions);\r\n\t\tIRule rule = new Rule(theConditions);\r\n\t\treturn rule;\r\n\t}", "@Override\n\tpublic RecurrenceRule newRecurrence(String frequency, int interval) {\n\t\treturn null;\n\t}", "public EntryReeferMuatBean() {\n registration = new Registration();\n registration.setMasterCustomer(new MasterCustomer());\n registration.setPlanningVessel(new PlanningVessel());\n registration.getPlanningVessel().setPreserviceVessel(new PreserviceVessel());\n registration.getPlanningVessel().getPreserviceVessel().setMasterVessel(new MasterVessel());\n }", "public FetchRule() {\n }", "PropertyRule createPropertyRule();", "ComponentRuleType createComponentRuleType();", "public ConfirmRegister build() {\r\n\t\t\treturn new ConfirmRegister(this);\r\n\t\t}", "public TypeCheckerProofRule getRule ( ) ;", "CmdRule createCmdRule();", "UserRegistrationResponse registrationPost(RegistrationForm registrationForm);", "public interface CourseRegFactory\n{\n\n /**\n * Test the existence of an instance\n * @param name The name of the instance to test the existence of\n * @return \n */\n public boolean exists(String name) throws IOException;\n\n /**\n * Create a new instance\n * @param edma_name The name of the instance to create\n * @param schoolInfo The initial values for the singleton SchoolInfo\n * @return \n */\n public CourseRegInstance newInstance(String edma_name, SchoolInfo schoolInfo) throws IOException;\n\n /**\n * Get an instance from its name\n * @param name The name of the instance to get\n * @return \n */\n public CourseRegInstance getInstance(String name) throws IOException;\n\n /**\n * Delete an instance\n * @param name The name of the instance to delete\n * @return <tt>true</tt> if the instance was deleted\n */\n public boolean deleteInstance(String name) throws IOException;\n\n}", "User registration(User user);", "@PostMapping(value = \"/rest/appregistration\")\r\n \t@ResponseStatus(HttpStatus.CREATED)\r\n \t@ResponseBody\r\n \tpublic ResponseEntity createRegistration(@RequestBody RegistrationDto regObject) {\n \t\t\r\n \t\tRegistrationDto registrationDto = new RegistrationDto();\r\n\r\n\r\n \t\treturn new ResponseEntity(registrationDto, HttpStatus.OK);\r\n \t}", "public static RegistryOperations createInstance(Configuration conf) {\n return createInstance(\"RegistryOperations\", conf);\n }", "E7Rule createE7Rule();", "public RuleRegistrySet( RuleRegistry... ruleRegistries )\n {\n this( Arrays.asList( ruleRegistries ) );\n }", "public InboundSecurityRules() {\n }", "E1Rule createE1Rule();", "TRule createTRule();", "public FlowRule() {\r\n }", "public ChargeRule() {\n logger = new LoggingTool(this);\n }", "public ChangeRegistrationResponse() {\r\n super(FunctionID.CHANGE_REGISTRATION.toString());\r\n }", "RegExConstraint createRegExConstraint();", "public Rule(String nombre, String descripcion) {\r\n\r\n\t\tthis.nombre = nombre;\r\n\t\tthis.descripcion = descripcion;\r\n\t}", "public UserRegistration() {\n // JPA benötigt einen Default-Konstruktor!\n }", "public GroupValidator()\n {\n this(new HashMap<Object, IValidator>());\n }", "public JavaJRExpressionFactoryImpl()\n {\n super();\n }", "FieldRuleType createFieldRuleType();", "public RegisteredConstraintLinkValidator() {\r\n\t\tsetDomainID(RegisteredConstraintLinkValidator.class.getName());\r\n\t}", "private RuleDefinition(Builder builder) {\r\n this.id = builder.getId();\r\n this.name = builder.getName();\r\n this.namespace = builder.getNamespace();\r\n this.typeId = builder.getTypeId();\r\n this.propId = builder.getPropId();\r\n this.description = builder.getDescription();\r\n this.active = builder.isActive();\r\n\r\n if (builder.getProposition() != null) {\r\n this.proposition = builder.getProposition().build();\r\n } else {\r\n this.proposition = null;\r\n }\r\n \r\n List<ActionDefinition> actionList = new ArrayList<ActionDefinition> ();\r\n if (builder.getActions() != null){\r\n \tfor (ActionDefinition.Builder b : builder.actions){\r\n \t\tactionList.add(b.build());\r\n \t}\r\n this.actions = Collections.unmodifiableList(actionList);\r\n } else {\r\n this.actions = Collections.emptyList();\r\n }\r\n if (builder.attributes != null){\r\n \tthis.attributes = Collections.unmodifiableMap(builder.getAttributes());\r\n } else {\r\n \tthis.attributes = null;\r\n }\r\n this.versionNumber = builder.getVersionNumber();\r\n }", "@Override\r\n\tpublic Validation<Escala> getValidation() {\n\t\treturn new EscalaValidation();\r\n\t\t\r\n\t}", "public String getRegistrationType() {\n\t\treturn registrationType;\n\t}", "RuleCatalog createRuleCatalog();", "public interface Rule<T> {\n\n /**\n * Validate the supplied target object.\n *\n * @param regData the object that is to be validated (can be null)\n * @param errors contextual state about the validation process\n */\n void validate(T regData, Errors errors);\n}", "public ValidationRule getRule()\r\n {\r\n return rule;\r\n }", "@Test\r\n public void testAddRule() throws Exception{\r\n System.out.println(\"addRule\");\r\n RuleSetImpl instance = new RuleSetImpl(\"Test\", true);\r\n instance.addRule(new RegExRule(\".*\", \"string\"));\r\n instance.addRule(new RegExRule(\"a.*\", \"aString\"));\r\n List<Rule> rules = instance.getRules();\r\n assertTrue(rules.size()==2);\r\n }", "public RegCita() {\n\t\tinitialize();\n\t}", "public LicenseExpiryDateValidator(DriverRegistration registration) {\n super(registration);\n }", "protected abstract Class<? extends ValidationRule> ruleBeingTested();", "E4Rule createE4Rule();", "@Override\r\n\tpublic User1 userRegistration() {\n\t\treturn null;\r\n\t}", "public AtRule build() {\n return new AtRule(this);\n }", "public Register() {\n }", "RecordTypeRule createRecordTypeRule();", "@Override\n public Validation create(Validation value) {\n return null;\n }", "public Schedule create() {\n\n\t\tSchedule result;\n\n\t\tresult = new Schedule();\n\n\t\treturn result;\n\t}", "public void addRegistration(Registration registration) {\r\n studentRegList.add(registration);\r\n }", "E12Rule createE12Rule();", "@Override\n\tpublic void validate(CarRegistrationNumber object) {\n\t}", "ExprRule createExprRule();", "E9Rule createE9Rule();", "public void RegisterCourse(RegCourse a){\n\t\t//CODE HERE\n\t\tRegCourse clone = a.clone();\n\t\tregisteredCourses.add(clone);\n\t\t\n\t\t//System.out.println(registeredCourses.get(0).isCompletedCourse());\n\t\n\t}", "public entities.Torrent.RegistrationResponse.Builder getRegistrationResponseBuilder() {\n\n onChanged();\n return getRegistrationResponseFieldBuilder().getBuilder();\n }", "public LicenseIssueDateValidator(DriverRegistration registration) {\n super(registration);\n }", "Cancion createCancion();", "E2Rule createE2Rule();", "public static Rules instance() throws ViatraQueryException {\n if (INSTANCE == null) {\n \tINSTANCE = new Rules();\n }\n return INSTANCE;\n }", "public interface Rules {\n\n public String getName();\n public String getSalary();\n}", "ConstRule createConstRule();", "DeclRule createDeclRule();", "public interface RegistrationService {\n\n\t/**\n\t * Return the stored registration information.\n\t *\n\t * @return RegistrationInfo\n\t */\n\tpublic RegistrationInfo getRegistrationInfo();\n\t\n\t/**\n\t * Stores the registration information. <b>Note:</b> At least one course and an employment status must be chosen.\n\t * This validation is done prior to calling this method. It is done in the RegistrationServlet.doPost() method.\n\t *\n\t * @param name - name of the registrant\n\t * @param email - email of the registrant\n\t * @param courses - courses selected, at least one course is required\n\t * @param employmentStatus - employment status, this is required\n\t * @param hotel - hotel accommodation\n\t * @param parking - parking permit\n\t */\n\tpublic void setRegistrationInfo(String name,\n\t\t\t\t\t\t\t\t\tString email,\n\t\t\t\t\t\t\t\t\tList<String> courses,\n\t\t\t\t\t\t\t\t\tString employmentStatus,\n\t\t\t\t\t\t\t\t\tString hotel,\n\t\t\t\t\t\t\t\t\tString parking);\n\t/**\n\t * Returned the stored cost information.\n\t *\n\t * @return CostInfo\n\t */\n\tpublic CostInfo getCostInfo();\n\t\n\t/**\n\t * Removes a selected course.\n\t *\n\t * @param course - name of the course to remove\n\t */\n\tpublic void removeCourse(String course);\n\t\n\t/**\n\t * Return the courses as a String array.\n\t *\n\t * @return String[]\n\t */\n\tpublic String[] getCourses();\n}", "public static RuleGroup createInstance(Element e){\n\t\tString groupName = e.getAttributeValue(\"name\");\r\n\t\t\r\n\t\tRuleGroup currGroup = new RuleGroup(groupName);\r\n\t\t\r\n\t\t//add child groups\r\n\t\tList<Element> groupElements = e.getChildren(\"group\");\r\n\t\t\r\n\t\tfor(Element groupElement: groupElements)\r\n\t\t\tcurrGroup.addSubGroup(createInstance(groupElement));\r\n\t\t\r\n\t\t//add rules\r\n\t\tList<Element> ruleElements = e.getChildren(\"rule\");\r\n\t\tfor(Element ruleElement: ruleElements){\r\n\t\t\tRules ruleObject = Rules.createInstance(ruleElement);\r\n\t\t\tif(ruleObject != null)\r\n\t\t\t\tcurrGroup.addRuleNode(new RuleNode(ruleObject));\r\n\t\t}\r\n\t\t\r\n\t\treturn currGroup;\r\n\t\t\r\n\t}", "public Rule toModelType() throws IllegalValueException {\n if (this.type == null) {\n throw new IllegalValueException(\n String.format(MISSING_FIELD_MESSAGE_FORMAT, RuleType.class.getSimpleName()));\n }\n if (this.value == null) {\n throw new IllegalValueException(\n String.format(MISSING_FIELD_MESSAGE_FORMAT, Rule.class.getSimpleName()));\n }\n\n try {\n switch (RuleType.valueOf(type)) {\n case NOTIFICATION:\n return new NotificationRule(value);\n default:\n throw new IllegalValueException(Rule.MESSAGE_RULE_INVALID);\n }\n } catch (IllegalArgumentException e) {\n throw new IllegalValueException(Rule.MESSAGE_RULE_INVALID);\n }\n }" ]
[ "0.62597525", "0.62597525", "0.62597525", "0.61311275", "0.5873996", "0.57455635", "0.5652705", "0.5636986", "0.55889493", "0.5573713", "0.556203", "0.5507128", "0.54747033", "0.54715943", "0.5389903", "0.5360555", "0.5358787", "0.5356115", "0.5283772", "0.52537656", "0.5252234", "0.5251655", "0.5242186", "0.52396107", "0.52174604", "0.5204526", "0.519088", "0.51871765", "0.5156608", "0.5148336", "0.513489", "0.5130997", "0.5121828", "0.5069438", "0.50613064", "0.5059843", "0.50555587", "0.5054182", "0.50515366", "0.5047828", "0.5047615", "0.50467384", "0.5042865", "0.5037763", "0.5013594", "0.5008979", "0.5002565", "0.49994165", "0.49970037", "0.49912834", "0.49877366", "0.49741036", "0.49699372", "0.49528086", "0.4949033", "0.49482015", "0.49404138", "0.49395564", "0.4937759", "0.48993668", "0.48957458", "0.4895081", "0.48673004", "0.4860888", "0.48594669", "0.48500535", "0.4849482", "0.48491842", "0.4848282", "0.48434454", "0.48429993", "0.4840494", "0.48363853", "0.48337325", "0.48288968", "0.48218954", "0.4813383", "0.4809907", "0.48057133", "0.4800141", "0.47988316", "0.47986135", "0.47967482", "0.4796732", "0.47951967", "0.4793368", "0.47908673", "0.47894567", "0.4784666", "0.47745025", "0.47729972", "0.47673652", "0.47654265", "0.47634453", "0.47581998", "0.47491527", "0.47444198", "0.47432637", "0.47429618", "0.47419184" ]
0.7883724
0
Returns a new object of class 'Object Selection Rule'.
ObjectSelectionRule createObjectSelectionRule();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ExchangePlanSelectionRule createExchangePlanSelectionRule();", "protected Tool createSelectionTool() {\n return new SelectionTool(view());\n }", "protected void createSelection() {\r\n\t\tsel = new GraphSelection();\r\n\t}", "ResourceSelection createResourceSelection();", "Rule createRule();", "Rule createRule();", "Rule createRule();", "AssignmentRule createAssignmentRule();", "public IRule getCopy()\r\n\t{\r\n\t\tList<ICondition> theConditions = new ArrayList<ICondition>();\r\n\t\ttheConditions.addAll(this.conditions);\r\n\t\tIRule rule = new Rule(theConditions);\r\n\t\treturn rule;\r\n\t}", "ExprRule createExprRule();", "ObjectDeclaration objects( Predicate<? super ObjectAssembly> specification );", "public Object clone() {\n return new RelevantObjectsCommand(name, \n relevantStateVariables, \n relevantObjects,\n relevancyRelationship);\n }", "ModelRule createModelRule();", "OBJECT createOBJECT();", "CmdRule createCmdRule();", "Object create(Object source);", "private Selector() { }", "private Selector() { }", "slco.Object getObject2();", "public ASTQuery subCreate(){\r\n\t\tASTQuery ast = create();\r\n\t\tast.setGlobalAST(this);\r\n\t\tast.setNSM(getNSM());\r\n\t\treturn ast;\r\n\t}", "public ListSelection()\n {\n super( DocumentType.CALC );\n }", "private Operation selector(Scope scope, Vector queue)\r\n {\r\n Operation root;\r\n\r\n root = new Operation();\r\n\r\n if (nextSymbol == Keyword.DOTSY)\r\n {\r\n lookAhead();\r\n\r\n root.operator = nextSymbol;\r\n\r\n if (nextSymbol == Keyword.IDENTSY)\r\n {\r\n root.name = nextToken;\r\n lookAhead();\r\n root.left = argumentsOpt(scope, null, queue);\r\n }\r\n else if (nextSymbol == Keyword.SUPERSY)\r\n {\r\n matchKeyword(Keyword.SUPERSY);\r\n root.left = arguments(scope, null, queue);\r\n }\r\n else\r\n {\r\n matchKeyword(Keyword.NEWSY);\r\n root.left = innerCreator(scope, queue);\r\n }\r\n }\r\n else\r\n {\r\n root.operator = nextSymbol;\r\n matchKeyword(Keyword.LBRACKETSY);\r\n follower.add(Keyword.RBRACKETSY);\r\n unresolved.add(\"JavaArray\");\r\n root.left = expression(scope, queue);\r\n follower.remove(follower.size() - 1);\r\n matchKeyword(Keyword.RBRACKETSY);\r\n }\r\n\r\n return root;\r\n }", "Object getSelection();", "public Selector() {\n }", "SelectSubSet createSelectSubSet();", "public interface Rule {\r\n\r\n\tString getTargetedPropertyName();\r\n\tboolean hasFinished();\r\n\tObject nextValue();\r\n\tObject[] getValues();\r\n\tpublic void setValues(Object[] values);\r\n\t\r\n}", "Assignment createAssignment();", "Assignment createAssignment();", "private AbstractSelection<?> constructSingleSelect(CriteriaBuilderImpl cb, CriteriaQueryImpl<?> q, Tree selectDef) {\n \t\t// constructor select\n \t\tif (selectDef.getType() == JpqlParser.NEW) {\n \t\t\tfinal String className = new Qualified(selectDef.getChild(0)).toString();\n \n \t\t\tfinal List<Selection<?>> childSelections = Lists.newArrayList();\n \t\t\tfinal Tree arguments = selectDef.getChild(1);\n \t\t\tfor (int i = 0; i < arguments.getChildCount(); i++) {\n \t\t\t\tfinal Tree argumentDef = arguments.getChild(i);\n \n \t\t\t\tchildSelections.add(this.getExpression(cb, q, argumentDef, null));\n \t\t\t}\n \n \t\t\ttry {\n \t\t\t\tfinal Class<?> clazz = this.metamodel.getEntityManagerFactory().getClassloader().loadClass(className);\n \t\t\t\treturn cb.construct(clazz, childSelections.toArray(new Selection[childSelections.size()]));\n \t\t\t}\n \t\t\tcatch (final ClassNotFoundException e) {\n \t\t\t\tthrow new PersistenceException(\"Cannot load class: \" + className + \", line \" + selectDef.getLine() + \":\" + selectDef.getCharPositionInLine());\n \t\t\t}\n \t\t}\n \n \t\t// object type\n \t\tif (selectDef.getType() == JpqlParser.OBJECT) {\n \t\t\tfinal String alias = selectDef.getChild(0).getText();\n \t\t\treturn this.getAliased(q, alias);\n \t\t}\n \n \t\treturn this.getExpression(cb, q, selectDef, null);\n \t}", "slco.Object getObject1();", "private static void DoSelection()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tString selection = \"o_orderdate > Str (\\\"1996-12-19\\\") && o_custkey < Int (100)\";\n\n\t\tHashMap<String, String> exprs = new HashMap<String, String>();\n\t\texprs.put(\"att1\", \"o_orderkey\");\n\t\texprs.put(\"att2\", \"(o_totalprice * Float (1.5)) + Int (1)\");\n\t\texprs.put(\"att3\", \"o_orderdate + Str (\\\" this is my string\\\")\");\n\t\texprs.put(\"att4\", \"o_custkey\");\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Selection(inAtts, outAtts, selection, exprs, \"orders.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "E1Rule createE1Rule();", "ExprListRule createExprListRule();", "private PR1Model.Shape getSelection() { return selection.get(); }", "StatementRule createStatementRule();", "Rule getRule();", "public Object clone() {\n\t\treturn new RelExpr((Term)getTerm(0).clone(), op, (Term)getTerm(1).clone());\n\t}", "public LinkedList <AbsAttraction> filter(ISelect s){\r\n return new LinkedList <AbsAttraction>(); \r\n }", "public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}", "E3Rule createE3Rule();", "public interface ObjectAction {\n\t/**\n\t * Get menu filter associated with the tool\n\t */\n\tpublic ObjectMenuFilter getMenuFilter();\n\n\t/**\n\t * Sets menu filter for the tool\n\t */\n\tpublic void setMenuFilter(ObjectMenuFilter filter);\n\n\t/**\n\t * Get tool type\n\t */\n\tpublic int getToolType();\n\n\t/**\n\t * Check if this action is applicable to given node\n\t * \n\t * @param node\n\t * node object\n\t * @return true if applicable\n\t */\n\tpublic boolean isApplicableForNode(AbstractNode node);\n}", "public MovableObject lightClone()\n\t\t{\n\t\t\tfinal MovableObject clone = new MovableObject();\n\t\t\tclone.assCount = this.assCount;\n\t\t\tclone.associatable = this.associatable;\n\t\t\tclone.bound = this.bound;\n\t\t\tclone.coords = new int[this.coords.length];\n\t\t\tfor(int i=0; i < this.coords.length; i++)\n\t\t\t\tclone.coords[i] = this.coords[i];\n\t\t\tclone.highlighted = this.highlighted;\n\t\t\tclone.hotSpotLabel = this.hotSpotLabel;\n\t\t\tclone.keyCode = this.keyCode;\n\t\t\tclone.label = this.label;\n\t\t\tclone.maxAssociations = this.maxAssociations;\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Rectangle(coords[0]-3,coords[1]-3,coords[2]+6,coords[3]+6);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tclone.obj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t\tclone.pos = new Point(this.pos.x,this.pos.y);\n\t\t\tclone.shape = this.shape;\n\t\t\tclone.startPos = this.startPos;\n\t\t\tclone.value = this.value;\n\n\t\t\treturn clone;\n\t\t}", "public RTTIClass select(ClassFilter filter);", "public T caseSelectionList(SelectionList object) {\n\t\treturn null;\n\t}", "E4Rule createE4Rule();", "Oracion createOracion();", "public NodeConstraints createNodeConstraintsObject() {\n NodeConstraints c = new NodeConstraints(getClass().getCanonicalName(), getReturnTypes(), numChildren, NodeConstraints.ERC);\n Object[] args = getConstructorArgs();\n if (args != null) {\n c.setArgs(args);\n }\n return c;\n }", "public interface IContentSelection\n{\n \n /**\n * Returns true if this object has a selected part, false otherwise.\n * \n * @return true if a selected part is within this object, false otherwise.\n */\n public abstract boolean hasSelection();\n \n /**\n * Returns the selection start within this object.\n * \n * @return start position in atoms.\n */\n public abstract int getSelectionStart();\n \n /**\n * Returns the selection end within this object.\n * \n * @return end position in atoms.\n */\n public abstract int getSelectionEnd();\n \n /**\n * Removes all selections from this object. No content is removed.\n */\n public abstract void clearSelection(TextAppearance appearance);\n \n /**\n * Removes everything that is selected including the content of this object.\n */\n public abstract void removeSelection(IContentFactory factory,\n TextAppearance appearance);\n \n /**\n * Selected the parts between the to atom positions.\n * \n * @param start\n * start position in atoms\n * @param end\n * end position in atoms\n */\n public abstract void setSelection(int start, int end,\n TextAppearance appearance);\n \n}", "public FetchRule() {\n }", "public static Rules instance() throws ViatraQueryException {\n if (INSTANCE == null) {\n \tINSTANCE = new Rules();\n }\n return INSTANCE;\n }", "PropertyRule createPropertyRule();", "@Override\r\n\tprotected Component[] createToggledComponents() throws ThinklabException {\r\n\t\tHbox classel = new Hbox();\r\n\r\n\t\tclassel.setWidth(\"100%\");\r\n\t\t\r\n\t\tWindow wc = new Window();\r\n\t\twc.setWidth(\"100%\");\r\n\t\twc.setBorder(\"normal\");\r\n\t\t\r\n\t\tclassel.appendChild(new Label(\"restrict type to \"));\r\n\t\tclassel.appendChild(new ObjectClassSelector(conceptID, indentLevel));\r\n\t\t\r\n\t\t/* TODO we must track the recursion level and insert an \"indent\" component if > 0 */\r\n\t\t\r\n\t\tInstanceSelector subc = new InstanceSelector(indentLevel);\r\n\t\tsubc.setConcept(conceptID);\r\n\t\tsubc.setWidth(\"100%\");\r\n\t\tobjComponent = subc;\r\n\t\t\r\n\t\tVbox amo = new Vbox(); amo.setWidth(\"100%\");\r\n\t\tHbox uff = new Hbox(); uff.setWidth(\"100%\");\r\n\t\r\n\t\tamo.appendChild(classel);\r\n\t\tamo.appendChild(subc);\r\n\t\twc.appendChild(amo);\r\n\t\t\r\n\t\tif (indentLevel > 0) {\r\n\t\t\tSeparator sep = new Separator(\"vertical\");\r\n\t\t\tsep.setWidth((30*indentLevel) + \"px\");\r\n\t\t\tuff.appendChild(sep);\r\n\t\t}\r\n\t\tuff.appendChild(wc);\r\n\t\t\r\n\t\tComponent[] c = new Component[1];\r\n\t\tc[0] = uff;\r\n\t\t\r\n\t\treturn c;\r\n\t\t\r\n\t}", "public Object getSelection() {\n return selection;\n }", "public Object caseToolDefinition(ToolDefinition object) {\n\t\treturn null;\n\t}", "E2Rule createE2Rule();", "org.apache.xmlbeans.impl.xb.xsdschema.SelectorDocument.Selector addNewSelector();", "Comparison createComparison();", "Comparison createComparison();", "@Test\n public void testRuleClass() throws Exception {\n\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addRuleClass( CoerceInputsRule.class );\n\n HepPlanner planner = new HepPlanner( programBuilder.build() );\n\n planner.addRule( new CoerceInputsRule( LogicalUnion.class, false, AlgFactories.LOGICAL_BUILDER ) );\n planner.addRule( new CoerceInputsRule( LogicalIntersect.class, false, AlgFactories.LOGICAL_BUILDER ) );\n\n checkPlanning( planner, \"(select name from dept union select ename from emp) intersect (select fname from customer.contact)\" );\n }", "RuleCatalog createRuleCatalog();", "public T caseComparisonValidationRuleDeclaration(ComparisonValidationRuleDeclaration object)\n {\n return null;\n }", "public interface Selectable {\n\n /**\n * Initializes the current selection to begin with the character at (x, y).\n * @return true if action resulted in change of selection.\n */\n boolean selectAt(double x, double y);\n\n /**\n * Extends the current selection to the character at (x, y)..\n * @return true if action resulted in change of selection.\n */\n boolean selectTo(double x, double y);\n\n /**\n * Selects the entire contents of the GraphicsNode at (x, y).\n * @return true if action resulted in change of selection.\n */\n boolean selectAll(double x, double y);\n\n /**\n * Get the current text selection.\n * @return an object containing the selected content.\n */\n Object getSelection();\n\n /**\n * Return a shape in user coords which encloses the current selection.\n */\n Shape getHighlightShape();\n}", "public interface RuleConstruction extends SelectRule, DeleteRule, UpdateRule {\n\n /**\n * Check whether word is key-word\n *\n * @param word - word\n * @return false - word is not key-word\n * true - word is key-word\n */\n boolean isNotKeyWord(String word);\n\n /**\n * Check whether word is By-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isByCorrect(int currentIndex, List<String> words);\n\n /**\n * Check whether word is And-word or Or-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isAndOrCorrect(int currentIndex, List<String> words);\n\n /**\n * Check whether word is Between-word\n *\n * @param currentIndex - word index\n * @param words - list of words\n * @return true - word is correct\n * false - word is not correct\n */\n boolean isBetweenCorrect(int currentIndex, List<String> words);\n}", "public T caseQueryRule(QueryRule object)\n {\n return null;\n }", "E11Rule createE11Rule();", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }", "protected Criteria createCriteriaInternal() {\n Criteria criteria = new Criteria(this);\n return criteria;\n }", "public abstract Objective createObjective(Scoreboard parent,\n String identifier,\n String title);", "Select createSelect();", "RentalObject createRentalObject();", "E9Rule createE9Rule();", "public StudyClass getCopy(){\r\n String nc = className;\r\n String[] rc = roomConstraint.clone();\r\n return new StudyClass(internalId, classNum, nc, sks, rc, tConstraint.getCopy());\r\n }", "private InternalRefactoringProcessor(List<EObject> selection){\r\n\t\t\t\tsuper(getParent(), selection, applyRefactoring());\t\t\t\t\r\n\t\t}", "JDefinedClass objectFactory();", "public void select(Object obj, boolean selectionFlag);", "public ReflectionOperator(Object object) {\n this.object = object;\n }", "public Object clone() {\t\n\t\tGrille o = new Grille();\t\t//On créé une nouvelle grille\n\t\to.score=this.score;\n\t\tfor (Case i : this.grille){\n\t\t\tCase i2= (Case) i.clone();\t//On copie chaque case de la grille\n\t\t\ti2.setGrille(o);\n\t\t\to.grille.add(i2);\t\t\t//On les ajoute à la nouvelle grille\n\t\t}\n\t\t// on renvoie le clone\n\t\treturn o;\n\t}", "SourceControl create();", "public SingleRuleBuilder newRule() {\n return new SingleRuleBuilder();\n }", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "protected Criteria createCriteriaInternal() {\n\t\tCriteria criteria = new Criteria();\n\t\treturn criteria;\n\t}", "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 }" ]
[ "0.6054424", "0.59237593", "0.589746", "0.5892156", "0.5689193", "0.5689193", "0.5689193", "0.5569599", "0.55437875", "0.5417734", "0.5396685", "0.53819865", "0.5297669", "0.5271747", "0.52504534", "0.5243292", "0.51344585", "0.51344585", "0.51326025", "0.51275736", "0.51255864", "0.5110398", "0.50618404", "0.505484", "0.50518996", "0.5025132", "0.50176185", "0.50176185", "0.5005609", "0.4999694", "0.49993572", "0.49953303", "0.499314", "0.49816447", "0.49749455", "0.49643114", "0.49598166", "0.49540862", "0.49318406", "0.49134204", "0.48859727", "0.48842528", "0.4878185", "0.4876172", "0.4869779", "0.486581", "0.48614827", "0.4845258", "0.48430142", "0.48425606", "0.48366836", "0.4819049", "0.48071876", "0.4801817", "0.47988325", "0.47946128", "0.47944468", "0.47944468", "0.47936386", "0.47868648", "0.47830415", "0.4778608", "0.4771175", "0.47650415", "0.47609168", "0.4751601", "0.4751601", "0.4751601", "0.4751601", "0.4751601", "0.4750069", "0.474436", "0.47377697", "0.47336113", "0.47313172", "0.47273967", "0.4724909", "0.47193858", "0.47172415", "0.47042003", "0.47040024", "0.46993312", "0.469092", "0.469092", "0.469092", "0.469092", "0.469092", "0.469092", "0.469092", "0.469092", "0.469092", "0.469092", "0.469092", "0.469092", "0.469092", "0.46880084", "0.46880084", "0.46880084", "0.46880084", "0.46880084" ]
0.8764681
0
Returns a new object of class 'Exchange Plan Selection Rule'.
ExchangePlanSelectionRule createExchangePlanSelectionRule();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ExchangePlanContent createExchangePlanContent();", "ObjectSelectionRule createObjectSelectionRule();", "ExprRule createExprRule();", "E7Rule createE7Rule();", "E11Rule createE11Rule();", "E12Rule createE12Rule();", "AssignmentRule createAssignmentRule();", "E10Rule createE10Rule();", "E4Rule createE4Rule();", "Assignment createAssignment();", "Assignment createAssignment();", "E3Rule createE3Rule();", "E2Rule createE2Rule();", "E1Rule createE1Rule();", "TRule createTRule();", "public Plan() {\n }", "E9Rule createE9Rule();", "Rule createRule();", "Rule createRule();", "Rule createRule();", "E5Rule createE5Rule();", "public MesPlanAssignment getByErpBillNo(String erpBillNo);", "Expression createExpression();", "ProductPlan getProductPlan();", "ExprListRule createExprListRule();", "public ProducerPlan()\r\n\t{\r\n\t\tgetLogger().info(\"Created: \"+this);\r\n\t}", "public DiffPlanOutline() {\n\t\tsuper(\"DIFF_PLAN_OUTLINE\", org.jooq.examples.oracle.sys.Sys.SYS, org.jooq.examples.oracle.sys.packages.DbmsXplan.DBMS_XPLAN, org.jooq.impl.SQLDataType.VARCHAR);\n\n\t\tsetReturnParameter(RETURN_VALUE);\n\t\taddInParameter(SQL_TEXT);\n\t\taddInParameter(OUTLINE1);\n\t\taddInParameter(OUTLINE2);\n\t\taddInParameter(USER_NAME);\n\t}", "public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }", "Expr createExpr();", "E6Rule createE6Rule();", "E8Rule createE8Rule();", "public IDetectionAlgorithm createInstance();", "public ExchangeDesk(){\n }", "private Equation createEquation() throws MainApplicationException {\r\n\t\tEquation equation = new Equation(false,\r\n\t\t\t\t\"a+b=c\", \r\n\t\t\t\tfalse, \r\n\t\t\t\tnew Parametre(), \r\n\t\t\t\t\"Insérer Propriété\",\r\n\t\t\t\t\"Insérer commentaire\");\r\n\t\tequation.setIsModifiable(true);\r\n\t\treturn equation;\r\n\t}", "Schule createSchule();", "Expression() { }", "StatementRule createStatementRule();", "protected void createSelection() {\r\n\t\tsel = new GraphSelection();\r\n\t}", "E13Rule createE13Rule();", "public FlowRule() {\r\n }", "public static Rules instance() throws ViatraQueryException {\n if (INSTANCE == null) {\n \tINSTANCE = new Rules();\n }\n return INSTANCE;\n }", "Assign createAssign();", "ResourceSelection createResourceSelection();", "public Edge build() {\n Utilities.checkArgument(this.first != null, \"First vertex cannot be null\");\n Utilities.checkArgument(this.cost != null, \"Cost of edge cannot be null\");\n\n return new Edge(this.first, this.second, this.cost);\n }", "RuleCatalog createRuleCatalog();", "public OrderRules() {\n this(DSL.name(\"order_rules\"), null);\n }", "public interface EvaluatorFactory {\n Evaluator createEvaluator(RelationalOperator operator);\n}", "public Expression() {\r\n }", "public LeaseChargeRule_VO(Integer aLeaserule) {\n this.leaserule = aLeaserule;\n}", "private WorkflowPlan choosePlan(Set<WorkflowPlan> evaluatedPlans) {\n WorkflowPlan plan = evaluatedPlans.iterator().next();\n return plan;\n }", "CmdRule createCmdRule();", "public ExpressionPatternModel() {\n }", "public Plan getPlan(String planName);", "ModelRule createModelRule();", "public IRule getCopy()\r\n\t{\r\n\t\tList<ICondition> theConditions = new ArrayList<ICondition>();\r\n\t\ttheConditions.addAll(this.conditions);\r\n\t\tIRule rule = new Rule(theConditions);\r\n\t\treturn rule;\r\n\t}", "private RuleDefinition() {\r\n \tthis.id = null;\r\n \tthis.name = null;\r\n \tthis.namespace = null;\r\n this.description = null;\r\n \tthis.typeId = null;\r\n \tthis.propId = null;\r\n this.active = true;\r\n \tthis.proposition = null;\r\n \tthis.actions = null;\r\n \tthis.attributes = null;\r\n this.versionNumber = null;\r\n }", "public FetchRule() {\n }", "public Phase1Edge toPhase1Edge(){\n Phase1Edge r = new Phase1Edge();\n r.eo = eo;\n r.ep = new ArrayList<>();\n for (int i = 0; i < 12; i++) {\n r.ep.add(0);\n }\n for (int i = 0; i < 12; i++) {\n r.ep.set(ep.perm.get(i), (i<4 || i>=8)?1:0);\n }\n return r;\n }", "public XmlAdaptedRule() {}", "Delivery createDelivery();", "public ExpansionCostConfigRecord() {\n\t\tsuper(ExpansionCostConfig.EXPANSION_COST_CONFIG);\n\t}", "public ScheduleExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}", "Eq createEq();", "private IAssignmentElement createAssignment() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\tfinal IEvent event = createEvent(mch, \"event\");\n\t\treturn event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t}", "@Override\r\n\tpublic EvaluationDTO create(EvaluationDTO e) {\n\t\treturn null;\r\n\t}", "public Contract create(){\n\t\treturn new Contract();\n\t}", "public RulesEngineInner() {\n }", "public abstract ModulePlans plans();", "public com.vodafone.global.er.decoupling.binding.request.PriceplanType createPriceplanType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PriceplanTypeImpl();\n }", "public Schedule create() {\n\n\t\tSchedule result;\n\n\t\tresult = new Schedule();\n\n\t\treturn result;\n\t}", "public RuleConfiguration() {\n\t\trule = new Rule();\n\t}", "com.unitedtote.schema.totelink._2008._06.program.ExchangeWagers xgetExchange();", "protected AbstractAddAdapterRule createTestableRule() {\n return new AddAdapterRule();\n }", "@Override\r\n protected Object formBackingObject(HttpServletRequest request) {\r\n \tCreateRuleCommand command = new CreateRuleCommand(caaersRulesEngineService,reportDefinitionDao, organizationDao, studyDao);\r\n command.setRuleManager(SecurityUtils.checkAuthorization(UserGroupType.ae_rule_and_report_manager));\r\n \r\n \tString sourcePage = (String) findInRequest(request, \"from\");\r\n \r\n if(StringUtils.equals(sourcePage, \"list\")){\r\n String ruleSetId = (String) findInRequest(request, \"ruleSetId\");\r\n gov.nih.nci.cabig.caaers.domain.RuleSet domainRuleSet = ruleSetDao.getById(Integer.parseInt(ruleSetId));\r\n if(domainRuleSet != null) command.setCaaersRuleSet(domainRuleSet);\r\n RuleSet rs = caaersRulesEngineService.getRuleSet(domainRuleSet.getRuleBindURI());\r\n if(rs != null) command.setRuleSet(rs);\r\n }\r\n \t\r\n \treturn command;\r\n }", "CaseBlockRule createCaseBlockRule();", "protected TemSourceAccountingLine initiateAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setDocumentNumber(getDocumentNumber());\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setSequenceNumber(new Integer(1));\n accountingLine.setCardType(TemConstants.ADVANCE);\n if (this.allParametersForAdvanceAccountingLinesSet()) {\n accountingLine.setChartOfAccountsCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_CHART));\n accountingLine.setAccountNumber(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_ACCOUNT));\n accountingLine.setFinancialObjectCode(getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE));\n }\n return accountingLine;\n }\n catch (InstantiationException ie) {\n LOG.error(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Could not instantiate new advance accounting line of type: \"+getAdvanceAccountingLineClass().getName(), ie);\n }\n catch (IllegalAccessException iae) {\n LOG.error(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName());\n throw new RuntimeException(\"Illegal access attempting to instantiate advance accounting line of class \"+getAdvanceAccountingLineClass().getName(), iae);\n }\n }", "public static RuleGroup createInstance(Element e){\n\t\tString groupName = e.getAttributeValue(\"name\");\r\n\t\t\r\n\t\tRuleGroup currGroup = new RuleGroup(groupName);\r\n\t\t\r\n\t\t//add child groups\r\n\t\tList<Element> groupElements = e.getChildren(\"group\");\r\n\t\t\r\n\t\tfor(Element groupElement: groupElements)\r\n\t\t\tcurrGroup.addSubGroup(createInstance(groupElement));\r\n\t\t\r\n\t\t//add rules\r\n\t\tList<Element> ruleElements = e.getChildren(\"rule\");\r\n\t\tfor(Element ruleElement: ruleElements){\r\n\t\t\tRules ruleObject = Rules.createInstance(ruleElement);\r\n\t\t\tif(ruleObject != null)\r\n\t\t\t\tcurrGroup.addRuleNode(new RuleNode(ruleObject));\r\n\t\t}\r\n\t\t\r\n\t\treturn currGroup;\r\n\t\t\r\n\t}", "@Override\r\n public RuleDefinition build() {\r\n return new RuleDefinition(this);\r\n }", "public ASTQuery subCreate(){\r\n\t\tASTQuery ast = create();\r\n\t\tast.setGlobalAST(this);\r\n\t\tast.setNSM(getNSM());\r\n\t\treturn ast;\r\n\t}", "com.unitedtote.schema.totelink._2008._06.program.ExchangeWagers.Enum getExchange();", "public Object clone()\n {\n return new ReportConstraints(this);\n }", "public ProjectOfferPOExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "Rule getRule();", "public static OnSetClause create(Expression expression) {\n OnSetClause clause = new OnSetClause();\n clause.addAssignment(expression);\n return clause;\n }", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public Adapter createEObjectAdapter() {\r\n\t\treturn null;\r\n\t}", "public void createEnterZoneRule(){\n// ECAAgent.getDefaultECAAgent().createRule(\"enterZoneRule_\"+name,enterZone,\"MAKEFITS.Track.C_enterTheZone\",\"MAKEFITS.Track.A_enterTheZone\",1,CouplingMode.IMMEDIATE ,Context.RECENT);\n ECAAgent.getDefaultECAAgent().createRule(\"enterZoneRule_\"+name,enterZone,\"MAKEFITS.Track.C_enterTheZone\",\"MAKEFITS.Track.A_enterTheZone\",1,CouplingMode.IMMEDIATE ,ParamContext.RECENT);\n // ECAAgent.getDefaultECAAgent().createRule(\"enterZoneRule_\"+name,enterZone,\"MAKEFITS.Track.C_enterTheZone\",\"MAKEFITS.Track.A_enterTheZone\",1,CouplingMode.IMMEDIATE ,ParamContext.CHRONICLE);\n }", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}", "public Adapter createEObjectAdapter() {\n\t\treturn null;\n\t}" ]
[ "0.5948299", "0.5753271", "0.57096237", "0.5705499", "0.57048064", "0.5577085", "0.5529224", "0.546976", "0.5466646", "0.5465081", "0.5465081", "0.54116184", "0.5395719", "0.53198236", "0.53153664", "0.52719545", "0.5262769", "0.5198117", "0.5198117", "0.5198117", "0.51526845", "0.5149439", "0.5133539", "0.5129441", "0.5053397", "0.5042332", "0.50371456", "0.50089824", "0.49743462", "0.49678764", "0.49501652", "0.49430424", "0.49008697", "0.4893921", "0.48872548", "0.48845404", "0.4875267", "0.48719248", "0.48701388", "0.48435062", "0.48363435", "0.48269412", "0.482105", "0.4818232", "0.48035824", "0.48013783", "0.47777686", "0.47752827", "0.47547853", "0.47546884", "0.47458544", "0.47380814", "0.4729747", "0.47275215", "0.47218218", "0.472024", "0.46931413", "0.4691679", "0.4674632", "0.46730182", "0.46707162", "0.4668712", "0.46555823", "0.46513912", "0.46511623", "0.46503082", "0.46503034", "0.4645922", "0.46434152", "0.4641177", "0.46257913", "0.46190846", "0.4615685", "0.46121386", "0.46057284", "0.46038505", "0.45907107", "0.45848003", "0.45801216", "0.4575456", "0.45665368", "0.45651928", "0.4558996", "0.45492432", "0.45462582", "0.45462582", "0.45462582", "0.45462582", "0.45462582", "0.45462582", "0.45462582", "0.453914", "0.45371154", "0.45371154", "0.45371154", "0.45371154", "0.45371154", "0.45371154", "0.45371154", "0.45371154" ]
0.86410606
0
Returns the package supported by this factory.
RmPackage getRmPackage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PackageType getRequiredPackage();", "public PackageNode getPackage();", "java.lang.String getPackage();", "public String getPackageName();", "public String getPackageName() {\n return pkg;\n }", "String getPackageName();", "public DsByteString getPackage() {\n return m_strPackage;\n }", "java.lang.String getPackageName();", "public String getPackageName() {\n\t\treturn pkgField.getText();\n\t}", "private static String getPackage() {\n\t\tPackage pkg = EnergyNet.class.getPackage();\n\n\t\tif (pkg != null) {\n\t\t\tString packageName = pkg.getName();\n\n\t\t\treturn packageName.substring(0, packageName.length() - \".api.energy\".length());\n\t\t}\n\n\t\treturn \"ic2\";\n\t}", "io.deniffel.dsl.useCase.useCase.Package getPackage();", "public String getPackageInfomartion() {\n\t\treturn packageInfomartion;\n\t}", "protected abstract String getPackageName();", "default String getPackageName() {\n return declaringType().getPackageName();\n }", "public String getPackageName() {\n return packageName.get();\n }", "String getPackager();", "public Short getPackageType() {\n\t\treturn packageType;\n\t}", "public static String getPackageName() {\n return CELibHelper.sPackageName;\n }", "String getPackage() {\n return mPackage;\n }", "public String getBasePackage() {\n\t\treturn this.basePackage;\n\t}", "String pkg();", "public static String getPackageName() {\n return mPackageName;\n }", "public String getAppPackage() {\n\t\treturn fnh.getOutputAppPackage();\n\t}", "public abstract String getTargetPackage();", "public abstract String getTargetPackage();", "public java.lang.Boolean getServicePackageInfoSupported() {\r\n return servicePackageInfoSupported;\r\n }", "EisPackage getEisPackage();", "private String getPkgName () {\n return context.getPackageName();\n }", "@NonNull\n RepoPackage getPackage();", "public UMLPackageBean getPackage() {\n return umlPkg;\n }", "public String getPackagedJava();", "public String getPackageName() {\n return packageName;\n }", "public String getPackageName() {\n return packageName;\n }", "PiviPackage getPiviPackage();", "public Package.Builder getBuilder() {\n return pkgBuilder;\n }", "public String getPackageName() {\n\t\treturn this.PackageName;\n\t}", "public String getPackaging();", "public String getPackageName() {\n\t\treturn packageName;\n\t}", "public String getPackage() {\n return carrierPackage;\n }", "public abstract String packageName();", "PackageConfiguration getPackageConfiguration();", "protected final Product getProduct() {\n Product.Builder product = new Product.Builder()\n .implementationTitle(getClass())\n .implementationVersion(getClass());\n Optional.ofNullable(getClass().getPackage())\n .flatMap(p -> Optional.ofNullable(p.getSpecificationVersion()))\n .map(specVersion -> \"(specification \" + specVersion + \")\")\n .ifPresent(product::comment);\n return product.build();\n }", "public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }", "public PersistedBmmPackage getPackage(String packageName) {\n return packages.get(packageName.toUpperCase());\n }", "public abstract String getAndroidPackage();", "NfrPackage getNfrPackage();", "@NonNull\n public String getPackageName() {\n return mPackageName;\n }", "public String getBasePackage() {\n\t\treturn DataStore.getInstance().getBasePackage();\n\t}", "public static String getBukkitPackage() {\n return Bukkit.getServer().getClass().getPackage().getName().split(\"\\\\.\")[3];\n }", "boolean hasPackageName();", "public String getPackageName() {\n Object ref = packageName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n }\n }", "ApiPackage getApiPackage();", "public String getPackageName() {\n final var lastDotIdx = name.lastIndexOf('.');\n\n if (lastDotIdx > 0) {\n return name.substring(0, lastDotIdx);\n } else {\n throw new CodeGenException(String.format(\"Couldn't determine package name of '%s'\", name));\n }\n }", "public String getPackageName() {\n if (mPackageName == null) {\n try {\n mPackageName = mSessionBinder.getPackageName();\n } catch (RemoteException e) {\n Log.d(TAG, \"Dead object in getPackageName.\", e);\n }\n }\n return mPackageName;\n }", "public String getPackageName() {\n Object ref = packageName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "IrSpecificPackage getIrSpecificPackage();", "public String getPackages() {\n\t\treturn this.packages;\n\t}", "public String getPackageName() {\n return mAppEntry.info.packageName;\n }", "com.google.protobuf.ByteString\n getPackageBytes();", "public static String getCraftBukkitPackage() {\n \t\t// Ensure it has been initialized\n \t\tgetMinecraftPackage();\n \t\treturn CRAFTBUKKIT_PACKAGE;\n \t}", "NgtPackage getNgtPackage();", "public String getProductPack() {\n return (String)getAttributeInternal(PRODUCTPACK);\n }", "public String getModelPackageStr() {\n\t\tString thepackage = getModelXMLTagValue(\"package\");\n\t\treturn thepackage != null ? thepackage + \".\" : \"\";\n\t}", "VmPackage getVmPackage();", "String packageName() {\n return name;\n }", "private PackageService getPackageService() {\n\t\treturn packageService;\n\t}", "private Package_c getPackage(final String name) {\n\t\tPackage_c communication = Package_c.PackageInstance(modelRoot,\n\t\t\t\tnew ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tPackage_c selected = (Package_c) candidate;\n\t\t\t\t\t\treturn selected.getName().equals(name);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\treturn communication;\n\t}", "ParkingPackage getParkingPackage();", "public int getWMCPackaged(){\r\n\t\t \r\n\t\treturn mccabe.getWMCPackage();\t\t\r\n\t}", "private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }", "PackageClause getPackageClause();", "NassishneidermanPackage getNassishneidermanPackage();", "public String getPackageDesc() {\n\t\treturn packageDesc;\n\t}", "public String getPkgId() {\n return pkgId;\n }", "public String getVersionsSupported();", "public static String getMinecraftPackage() {\n \t\t// Speed things up\n \t\tif (MINECRAFT_FULL_PACKAGE != null) {\n \t\t\treturn MINECRAFT_FULL_PACKAGE;\n \t\t}\n \n \t\tfinal Server craftServer = Bukkit.getServer();\n \n \t\t// This server should have a \"getHandle\" method that we can use\n \t\tif (craftServer != null) {\n \t\t\ttry {\n \t\t\t\tfinal Class<?> craftClass = craftServer.getClass();\n \t\t\t\tfinal Method getHandle = craftClass.getMethod(\"getHandle\");\n \n \t\t\t\tfinal Class<?> returnType = getHandle.getReturnType();\n \t\t\t\tfinal String returnName = returnType.getCanonicalName();\n \n \t\t\t\t// The return type will tell us the full package, regardless of\n \t\t\t\t// formating\n \t\t\t\tCRAFTBUKKIT_PACKAGE = getPackage(craftClass.getCanonicalName());\n \t\t\t\tMINECRAFT_FULL_PACKAGE = getPackage(returnName);\n \t\t\t\treturn MINECRAFT_FULL_PACKAGE;\n \n \t\t\t} catch (final SecurityException e) {\n \t\t\t\tthrow new RuntimeException(\n \t\t\t\t\t\t\"Security violation. Cannot get handle method.\", e);\n \t\t\t} catch (final NoSuchMethodException e) {\n \t\t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\t\"Cannot find getHandle() method on server. Is this a modified CraftBukkit version?\",\n \t\t\t\t\t\te);\n \t\t\t}\n \n \t\t} else {\n \t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\"Could not find Bukkit. Is it running?\");\n \t\t}\n \t}", "protected EPackage getEPackage() {\r\n return Wps10Package.eINSTANCE;\r\n }", "CommunicationsprogramsPackage getCommunicationsprogramsPackage();", "Shipment_Package getShipment_Package();", "TggPackage getTggPackage();", "List<String> getSystemPackages();", "public boolean isPackage()\n {\n ensureLoaded();\n return m_flags.isPackage();\n }", "public String getSupportedVersion() {\n return supportedVersion;\n }", "ICpPackInfo getPackInfo();", "TypePackage getTypePackage();", "public String getPackingType() {\n return (String)getAttributeInternal(PACKINGTYPE);\n }", "GramaticaPackage getGramaticaPackage();", "default String getPackageId() {\n return getIdentifier().getPackageId();\n }", "Quality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();", "MatchModelPackage getMatchModelPackage();", "public String getProjectPackageName() {\n\t\treturn projectPackageName;\n\t}", "ICpPack getPack();", "public PackageName getRootPackageName() {\n return rootPackageName;\n }", "public GeoPackage getGeoPackage() {\n\t\treturn this.geoPackage;\n\t}", "ReactNativePackage getReactNativePackage();", "HiphopsPackage getHiphopsPackage();", "protected UMLPackage getUMLPackage() {\r\n return currentPackage;\r\n }", "MystPackage getMystPackage();", "public Short getPackageSeries() {\n\t\treturn packageSeries;\n\t}", "public String getPackageId()\n {\n return packageId;\n }", "ThingMLPackage getThingMLPackage();" ]
[ "0.7031596", "0.6824025", "0.6818806", "0.6752645", "0.67181015", "0.6704875", "0.6698022", "0.6678774", "0.6635858", "0.6556546", "0.65183675", "0.6501405", "0.6496429", "0.6481852", "0.6376274", "0.63505894", "0.6338929", "0.63388515", "0.6327788", "0.6314242", "0.63126606", "0.6282504", "0.6273947", "0.625018", "0.625018", "0.6246106", "0.6218379", "0.62113875", "0.61974704", "0.6187816", "0.6176801", "0.6166096", "0.6166096", "0.61538076", "0.61370236", "0.61311126", "0.6119505", "0.6110087", "0.6095738", "0.60568917", "0.60403836", "0.6006883", "0.5988912", "0.59846574", "0.5971428", "0.596663", "0.59435695", "0.59422004", "0.5939782", "0.5931478", "0.59234554", "0.59193766", "0.5917696", "0.5896124", "0.58916557", "0.5884717", "0.5883739", "0.5870814", "0.58519596", "0.584893", "0.58416474", "0.584001", "0.5839548", "0.5827061", "0.5818055", "0.58170223", "0.5803712", "0.5787864", "0.5782273", "0.5762003", "0.57582545", "0.575813", "0.5757836", "0.5753817", "0.5746635", "0.57362497", "0.57329035", "0.57273763", "0.57260066", "0.57190484", "0.57188034", "0.57182175", "0.57047856", "0.57030493", "0.5689773", "0.56865156", "0.56835216", "0.5674978", "0.56738055", "0.56653726", "0.56578237", "0.5646589", "0.56433535", "0.5642557", "0.563893", "0.5638249", "0.56340986", "0.563228", "0.56135017", "0.5610743", "0.5606374" ]
0.0
-1
System.out.println("FileUploadServlet.storeInSession: " + request.getParameterMap());
@SuppressWarnings("unchecked") protected void storeInSession(HttpServletRequest request, HttpServletResponse response) throws IOException { ServletFileUpload upload = new ServletFileUpload(factory); try { if(ServletFileUpload.isMultipartContent(request)){ List<FileItem> fileItemList = upload.parseRequest(request); // JsonNode jparams = JacksonUtils.toNode(request.getParameter("params")); response.setContentType("text/html"); for(FileItem fileItem : fileItemList){ if(fileItem.isFormField()){ // Constants.LOGGER.info("FileUploadServlet.storeInSession - file item is form field::: " + fileItem); } else{ Constants.LOGGER.info("FileUploadServlet.storeImageInSession.NOT formField " + fileItem); // ImageFile imageFile = webClientBean.storeImageInUploads(fileItem); String id = UUID.randomUUID().toString(); request.getSession().setAttribute(id, fileItem); response.getWriter().print("<textarea>{target: 'SESSION',id: '" + id + "'}</textarea>"); } } } } catch (Exception exp) { Constants.LOGGER.error(exp.getMessage(),exp); JacksonUtils.serialize(EntityModel.createErrorMessage("FileUpload Exception", exp.getMessage()), response.getWriter()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void storeParameters(SessionSrvc session, HttpServletRequest req)\n {\n for (Enumeration paramNames = req.getParameterNames(); paramNames.hasMoreElements();)\n {\n\t String name = (String) paramNames.nextElement();\n\t // req.getSession().putValue(name, req.getParameter(name));\n\t session.putLocalValue(name, req.getParameter(name));\n }\n }", "public void doPost(HttpServletRequest request,\n HttpServletResponse response) throws ServletException, IOException\n\t{\n\tresponse.setContentType(\"text/html\");\n\tMap params = request.getParameterMap();\n\tfor(Object key :params.entrySet())\n\t{\n\tSystem.out.println(\"key:::\"+key);\n\t}\n\tSystem.out.println(\"uploads:::::::::::::::\"+request.getParameter(\"__UPLOADS\"));\n\t/*List<FileUpload> uploads = (List<FileUpload>) request.getParameter(\"__UPLOADS\");\n\tSystem.out.println(uploads.size());*/\n\t// Actual logic goes here.\n\tPrintWriter out = response.getWriter();\n\tSystem.out.println(\"<h1>\" + message + \"</h1>\");\n\tout.println(\"<h1>\" + message + \"</h1>\");\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected void storeInSessionHTML5(HttpServletRequest request, HttpServletResponse response) throws IOException {\n//\t\tSystem.out.println(\"FileUploadServlet.storeInSessionHTML5: \" + request.getParameterMap());\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\ttry {\n\t\t\tif(ServletFileUpload.isMultipartContent(request)){\n\t\t\t\tList<FileItem> fileItemList = upload.parseRequest(request);\n\t\t\t\tList<Map<String,Object>> jsonResponse = new ArrayList<Map<String,Object>>();\n\t\t\t\tresponse.setContentType(\"text/json\");\n\t\t\t\t\n\t\t\t\tfor(FileItem fileItem : fileItemList){\n\t\t\t\t\tif(fileItem.isFormField()){\n\t\t\t\t\t\tlogger.info(\"FileUploadServlet.storeInSessionHTML5 - file item is form field::: \" + fileItem);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tlogger.info(\"FileUploadServlet.storeInSessionHTML5.NOT formField \" + fileItem);\n\t\t\t\t\t\tString id = UUID.randomUUID().toString();\n\t\t\t\t\t\trequest.getSession().setAttribute(id, fileItem);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//-- FireFox/HTML5\n\t\t\t\t\t\tMap<String,Object> o = generateJsonResponse(fileItem);\n\t\t\t\t\t\to.put(\"sessionAttributeId\", id);\n\t\t\t\t\t\tjsonResponse.add(o);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Json list\n\t\t\t\tJacksonUtils.serialize(jsonResponse, response.getWriter());\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exp) {\n\t\t\tConstants.LOGGER.error(exp.getMessage(),exp);\n\t\t\tJacksonUtils.serialize(EntityModel.createErrorMessage(\"FileUpload Exception\", exp.getMessage()), response.getWriter());\n\t\t} \n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(req.getSession().getAttribute(\"attr\"));\n\t\treq.getSession().setAttribute(\"attr\", req.getParameter(\"session\"));\n\t\tSystem.out.println(req.getSession().getAttribute(\"attr\"));\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected void storeInSessionFlashOrHTML5(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\ttry {\n\t\t\tif(ServletFileUpload.isMultipartContent(request)){\n\t\t\t\tList<FileItem> fileItemList = upload.parseRequest(request);\n\t\t\t\tList<Map<String,Object>> jsonResponse = new ArrayList<Map<String,Object>>();\n\t\t\t\tStringBuilder stringResponse = new StringBuilder();\n\t\t\t\t\n\t\t\t\tString params = request.getParameter(\"params\");\n\t\t\t\t\n\t\t\t\tJsonNode jparams = JacksonUtils.toNode(params);\n\t\t\t\tString method = jparams.get(\"method\").getTextValue();//request.getParameter(\"method\"); \n\t\t\t\tlogger.info(\"Upload file, METHOD: \" + method);\n\t\t\t\t\n\t\t\t\tif(\"flash\".equals(method)){\n\t\t\t\t\tresponse.setContentType(\"text/plain\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tresponse.setContentType(\"text/json\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(FileItem fileItem : fileItemList){\n\t\t\t\t\tif(fileItem.isFormField()){\n\t\t\t\t\t\tConstants.LOGGER.info(\"FileUploadServlet.storeInSessionFlashOrHTML5 - file item is form field::: \" + fileItem);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tConstants.LOGGER.info(\"FileUploadServlet.storeInSessionFlashOrHTML5.NOT formField \" + fileItem);\n//\t\t\t\t\t\tImageFile imageFile = webClientBean.storeImageInUploads(fileItem);\n\t\t\t\t\t\tString id = UUID.randomUUID().toString();\n\t\t\t\t\t\trequest.getSession().setAttribute(id, fileItem);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//--- RESPONSE - \n\t\t\t\t\t\tif(\"flash\".equals(method)){\n\t\t\t\t\t\t\tstringResponse.append(generateFlashResponse(fileItem, id));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t//-- FireFox/HTML5\n\t\t\t\t\t\t\tMap<String,Object> o = generateJsonResponse(fileItem);\n\t\t\t\t\t\t\to.put(\"fileItemId\", id);\n\t\t\t\t\t\t\tjsonResponse.add(o);\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\tif(\"flash\".equals(method)){\n\t\t\t\t\tresponse.getWriter().print(stringResponse);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tJacksonUtils.serialize(jsonResponse, response.getWriter());\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exp) {\n\t\t\tConstants.LOGGER.error(exp.getMessage(),exp);\n\t\t\tJacksonUtils.serialize(EntityModel.createErrorMessage(\"FileUpload Exception\", exp.getMessage()), response.getWriter());\n\t\t} \n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected void storeInSessionFlash(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\ttry {\n\t\t\tif(ServletFileUpload.isMultipartContent(request)){\n\t\t\t\tList<FileItem> fileItemList = upload.parseRequest(request);\n\t\t\t\tMap<String,Object> jsonResponse = new HashMap<String,Object>();\n\t\t\t\tresponse.setContentType(\"text/json\");\n\t\t\t\tfor(FileItem fileItem : fileItemList){\n\t\t\t\t\tif(fileItem.isFormField()){\n\t\t\t\t\t\tlogger.info(\"FileUploadServlet.storeInSessionFlash - file item is form field::: \" + fileItem);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tlogger.info(\"FileUploadServlet.storeInSessionFlash.NOT formField \" + fileItem);\n\t\t\t\t\t\tString id = UUID.randomUUID().toString();\n\t\t\t\t\t\trequest.getSession().setAttribute(id, fileItem);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//--- RESPONSE - \n\t\t\t\t\t\tjsonResponse = generateJsonResponse(fileItem);\n\t\t\t\t\t\tjsonResponse.put(\"id\", id);\n\t\t\t\t\t\tjsonResponse.put(\"sessionAttributeId\", id);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//IE is very sensitive on the response\n\t\t\t\tJacksonUtils.serialize(jsonResponse, response.getWriter());\n\t\t\t\t\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exp) {\n\t\t\tlogger.error(exp.getMessage(),exp);\n\t\t\tJacksonUtils.serialize(EntityModel.createErrorMessage(\"Problem Uploading Audio\", exp.getMessage()), response.getWriter());\n\t\t} \n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, IOException\n {\n response.setContentType(\"text/html\");\n Map params = request.getParameterMap();\n for(Object key :params.entrySet())\n {\n \t System.out.println(\"key:::\"+key);\n }\n System.out.println(\"uploads:::::::::::::::\"+request.getParameter(\"__UPLOADS\"));\n\t\t/*List<FileUpload> uploads = (List<FileUpload>) request.getParameter(\"__UPLOADS\");\n\t\tSystem.out.println(uploads.size());*/\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n System.out.println(\"<h1>\" + message + \"</h1>\");\n out.println(\"<h1>\" + message + \"</h1>\");\n }", "public void doPost(HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, java.io.IOException {\n isMultipart = ServletFileUpload.isMultipartContent(request);\n response.setContentType(\"text/html\");\n java.io.PrintWriter out = response.getWriter();\n if (!isMultipart) {\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet upload</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<p>No file uploaded</p>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n return;\n }\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // maximum size that will be stored in memory\n //factory.setSizeThreshold(maxMemSize);\n // Location to save data that is larger than maxMemSize.\n //factory.setRepository(new File(\"c:\\\\temp\"));\n\n // Create a new file upload handler\n ServletFileUpload upload = new ServletFileUpload(factory);\n // maximum file size to be uploaded.\n //upload.setSizeMax(maxFileSize);\n try {\n // Parse the request to get file items.\n List fileItems = upload.parseRequest(request);\n // Process the uploaded file items\n Iterator i = fileItems.iterator();\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet upload</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n HttpSession session = request.getSession(true);\n String feedType = null;\n String redirectTo = null;\n String companyKey = session.getAttribute(\"companyKey\").toString();\n String userKey = session.getAttribute(\"userKey\").toString();\n String departmentKey = null;\n String isFeedCompanyWide = null;\n String feedTitle = null;\n String feedDescription = null;\n String fileName = null;\n FileItem forFile = null;\n while (i.hasNext()) {\n FileItem fi = (FileItem) i.next();\n if (fi.isFormField()) {\n if (fi.getFieldName().equals(\"feedType\")) {\n feedType = fi.getString();\n } else if (fi.getFieldName().equals(\"departmentKey\")) {\n departmentKey = fi.getString();\n } else if (fi.getFieldName().equals(\"isFeedCompanyWide\")) {\n isFeedCompanyWide = fi.getString();\n } else if (fi.getFieldName().equals(\"feedTitle\")) {\n feedTitle = fi.getString();\n } else if (fi.getFieldName().equals(\"feedDescription\")) {\n feedDescription = fi.getString();\n } else if (fi.getFieldName().equals(\"redirectTo\")) {\n redirectTo = fi.getString();\n }\n } else if (!fi.isFormField()) {\n forFile = fi;\n }\n }\n SmProperties.folderPath = request.getRealPath(\"\")+ File.separator + \"cropData\" + File.separator;\n if (redirectTo.equals(\"newsroom\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") + \"/user feed/\" +\n \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") + File.separator +\"user feed\"+ File.separator +\n \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n response.sendRedirect(\"home.jsp\");\n } else if (redirectTo.equals(\"myFeed\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") + \"/user feed/\"+ \n \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") +File.separator+ \"user feed\"+File.separator\n + \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n response.sendRedirect(\"homeMyFeeds.jsp\");\n } else if (redirectTo.equals(\"internalFeed\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") +\"/department feed/\"\n + \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") +File.separator+ \"user feed\"+File.separator\n + \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n response.sendRedirect(\"corporate.jsp\");\n } else if (redirectTo.equals(\"announcement\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") +\"/department feed/\"\n + \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") +File.separator+ \"user feed\"+File.separator\n + \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n MemoryTest.test(\"footer start\");\n System.gc();\n MemoryTest.test(\"footer end\");\n response.sendRedirect(\"corporateDepartmentPage.jsp?open=announcement&key=\" + departmentKey);\n }\n } catch (Exception ex) {\n ErrorMaster.insert(\"Exception at CreateFeed : \" + ex.getMessage());\n }\n }", "private void userUpload(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n\tString s=getServletContext().getRealPath(\"\");\r\n\tSystem.out.println(\"realpath:\"+s);\r\n\tString loginid=request.getParameter(\"usern\");\r\n\t\t System.out.println(\"from servlet:\"+loginid);\r\n\t\t Part filePart = request.getPart(\"file\");\r\n\t\t \r\n\t\t UserFunctions uf=new UserFunctionsImpl();\r\n\t\t \r\n\t\tif( uf.uploadFile(loginid,filePart,appPath,SAVE_DIR))\r\n\t\t{\r\n\t\t\tArrayList<String>al=uf.listAllFiles(loginid);\r\n\t\t\tSystem.out.println(al);\r\n\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"successupload.jsp\"); \r\n\t\t\trequest.setAttribute(\"list\", al); \r\n\t dispatcher.forward(request, response);\r\n\t\t}\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t}", "public Map<String,String[]> getParameterMap() {\n if (isMultipart()) {\n Map parameterMap = new HashMap();\n Enumeration names = this.multipart.getParameterNames();\n \n while (names.hasMoreElements()) {\n String name = (String) names.nextElement();\n parameterMap.put(name, getParameterValues(name));\n }\n \n return parameterMap;\n }\n else {\n return super.getParameterMap();\n }\n }", "private void fileUpload(HttpServletRequest request, HttpServletResponse response) {\n\t \ttry {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * String appPath = request.getServletContext().getRealPath(\"\");\r\n\t\t\t\t\t * System.out.println(appPath); String savePath = appPath + File.separator +\r\n\t\t\t\t\t * SAVE_DIR; System.out.println(savePath);\r\n\t\t\t\t\t */\r\n\t \t\t\r\n\t \t\t//String appPath = getServletContext().getRealPath(SAVE_DIR);\r\n\t \t\tSystem.out.println(appPath);\r\n\t \t\t String savePath = appPath + \"//\" +SAVE_DIR; \r\n\t \t\t System.out.println(savePath);\r\n\t\t\t\t\t\tCollection<Part>cp= request.getParts();\r\n\t \t String fileName = up.fileUpload(cp,appPath);\r\n\t \t System.out.println(fileName);\r\n\t \t \r\n\t \t request.setAttribute(\"message\", \"The file \"+fileName+\" has been uploaded successfully!\");\r\n\t \t RequestDispatcher dispatcher = request.getRequestDispatcher(\"success.jsp\");\r\n\t \t dispatcher.forward(request, response);\r\n\t}catch(Exception ex) {\r\n System.out.println(ex);\r\n }\r\n\t }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\t // configures upload settings\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // sets memory threshold - beyond which files are stored in disk\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n // sets temporary location to store files\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\n ServletFileUpload upload = new ServletFileUpload(factory);\n \n \n // constructs the directory path to store upload file\n // this path is relative to application's directory\n String uploadPath = getServletContext().getRealPath(\"\") + File.separator + UPLOAD_DIRECTORY;\n // creates the directory if it does not exist\n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n int keySize= 0,iterationCount=0;\n String salt =\"\",passphrase=\"\",ciphertext=\"\",iv=\"\",fileData=\"\",Cdata=\"\",plainTextArea1=\"\";\n List<FileItem> formItems;\n String fileName =\"\";\n\t\ttry {\n\t\t\tformItems = upload.parseRequest(request);\n\t\t\tfor (FileItem item : formItems) {\n\t\t\t // processes only fields that are not form fields\n\t\t\t if (!item.isFormField()) {\n\t\t\t fileName = new File(item.getName()).getName();\n\t\t\t try {\n\t\t\t\t\t\tfileData = item.getString();\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 } else {\n\t\t\t //here...\n\t\t\t String fieldname = item.getFieldName();\n\t\t\t String fieldvalue = item.getString();\n\t\t\t \n\t\t\t if (fieldname.equals(\"passphrase\")) {\n\t\t\t \tpassphrase = fieldvalue;\n\t\t\t } else if (fieldname.equals(\"plainTextArea\")) {\n\t\t\t \tciphertext = fieldvalue;\n\t\t\t }else if (fieldname.equals(\"plainTextArea1\")) {\n\t\t\t \tplainTextArea1 = fieldvalue;\n\t\t\t }else if (fieldname.equals(\"secretKeys\")) {\n\t\t\t \tCdata = fieldvalue;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t} catch (FileUploadException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n\t\ttry {\n\t\t\tSystem.out.println(Cdata);\n\t\t\tString keysData = RSACryptoUtil.decryptWebPIN(Cdata);\n\t\t\tSystem.out.println(keysData);\n\t\t\tString[] dataAry = keysData.split(\"@@@\"); \n\t\t\tkeySize = Integer.valueOf(dataAry[4]);\n\t\t\titerationCount = Integer.valueOf(dataAry[3]);\n\t\t\tsalt = String.valueOf(dataAry[0]);\n\t\t\tiv = String.valueOf(dataAry[1]);\n\t\t\tpassphrase = String.valueOf(dataAry[2]);\n\t\t}catch (Exception e) {\n\t response.setStatus(HttpServletResponse.SC_OK);\n\t response.getWriter().print(\"Security keys tampered!\");\n\t\t}\n\t\t\t\t\n\t AesUtil aesUtil = new AesUtil(keySize, iterationCount);\n\t String plaintext = aesUtil.decrypt(salt, iv, passphrase, ciphertext);\n\t String fileDataIs = aesUtil.decrypt(salt, iv, passphrase, fileData);\n\t String replaceStr = \"\";\n\t if(fileName.endsWith(\".txt\"))\n\t \treplaceStr =\"data:text/plain;base64,\";\n\t else if(fileName.endsWith(\".js\"))\n\t \treplaceStr =\"data:application/javascript;base64,\";\n\t else if(fileName.endsWith(\".jpeg\") || fileName.endsWith(\".jpg\") )\n\t \treplaceStr=\"data:image/jpeg;base64,\";\n\t else if(fileName.endsWith(\".png\"))\n\t \treplaceStr=\"data:image/png;base64,\";\n\t \n\t \n\t if(!fileName.endsWith(\".jpeg\") && !fileName.endsWith(\".jpg\") && !fileName.endsWith(\".png\"))\n\t FileUtils.writeStringToFile(new File(uploadPath+File.separator+fileName), new String(Base64.decodeBase64(fileDataIs.replaceAll(replaceStr, \"\").getBytes())));\n\t else{\n\t \tbyte[] data = Base64.decodeBase64(fileDataIs.replaceAll(replaceStr, \"\"));\n\t try (OutputStream stream = new FileOutputStream(\"D:/sudhakar/eclipse-jee-luna-R-win32-x86_64/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Encryption/image_upload/\"+fileName)) {\n\t \t\tstream.write(data);\n\t \t}\n\t }\n \n response.setStatus(HttpServletResponse.SC_OK);\n response.getWriter().print(plaintext+\":\"+plainTextArea1);\n }", "Map<String, String[]> getParameterMap();", "public String doUploadFile(Map<String,Object> mapInfo);", "public Map getParameterMap() {\n return params;\n }", "protected Map<String,String> getParametersMap(HttpServletRequest request) {\n\t\tMap<String,String> map = new HashMap<String,String>();\n\t\t\n\t\tEnumeration<String> paramNames = request.getParameterNames() ;\n\t\t\n\t\twhile ( paramNames.hasMoreElements() ) {\n\t\t\tString name = paramNames.nextElement() ;\n\t\t\tString value = request.getParameter(name) ;\n\t\t\tmap.put(name, value);\n\t\t}\n\t\treturn map ;\n\t}", "protected Map<String, Object> paserRequetToHashMap(HttpServletRequest req){\n\t\t\n\t\tMap<String,Object> params = new HashMap<>();\n\t\t\n\t\tEnumeration<?> enumber = req.getParameterNames();\n\n\t\twhile (enumber.hasMoreElements()) {\n\t\t\tString key = enumber.nextElement().toString();\n\t\t\tObject value = req.getParameter(key);\n\t\t\tparams.put(key, value); \n\t\t}\n\t\t\n\t\t\n\t\treturn params;\n\t}", "@ToDoVulnerability //This needs to validate the parameters for injection\n private Map<String, String> getUpParams(HttpServletRequest req)\n {\n Map<String, String> params = new HashMap<>();\n Enumeration<String> en = req.getParameterNames();\n while(en.hasMoreElements())\n {\n String name = en.nextElement();\n if(name.startsWith(\"up_\"))\n params.put(name, req.getParameter(name));\n }\n return params;\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n { \n ResponseType rt = ResponseType.Success;\n Exception caughtException = null;\n try\n {\n // Check the settings have been loaded\n Settings settings;\n if((settings = PALS_SettingsListener.getSettings()) == null)\n throw new SettingsException(SettingsException.Type.FailedToLoad, null);\n // Build request\n // -- Fetch session identifier\n String sessid = getCookie(request, SESSION_COOKIE_NAME);\n // -- Build relative url of request\n String relUrl = (String)request.getAttribute(PALS_RequestsFilter.REQUEST_ATTRIBUTE_NAME_ORIGINALURL);\n // -- Prepare remote request wrapper\n RemoteRequest dataRequest = new RemoteRequest(sessid, relUrl, request.getRemoteAddr());\n // -- Add request fields\n for(Map.Entry<String,String[]> param : request.getParameterMap().entrySet())\n dataRequest.setFields(param.getKey(), param.getValue());\n // -- Add request files (and possibly fields)\n if(ServletFileUpload.isMultipartContent(request))\n {\n ServletFileUpload uploads = new ServletFileUpload();\n try\n {\n FileItemIterator itFile = uploads.getItemIterator(request);\n // Iterate each upload item\n File file;\n FileItemStream fis;\n FileOutputStream fos;\n InputStream is;\n long size;\n int bytesRead;\n byte[] data;\n while(itFile.hasNext())\n {\n fis = itFile.next();\n is = fis.openStream();\n if(!fis.isFormField() && fis.getName() != null && fis.getName().length() > 0)\n {\n file = new File(\n Storage.getPath_tempWebFile(settings.getStr(\"storage/path\"), request.getRemoteAddr())\n ).getCanonicalFile();\n // Write data to disk\n size = 0;\n fos = new FileOutputStream(file);\n data = new byte[1024];\n while((bytesRead = is.read(data)) != -1)\n {\n fos.write(data, 0, bytesRead);\n size += bytesRead;\n }\n fos.flush();\n fos.close();\n // Add to request\n dataRequest.setFile(fis.getFieldName(), new UploadedFile(fis.getName(), fis.getContentType(), size, file.getName()));\n }\n else\n {\n // Not a file - a field...\n dataRequest.setAddFields(fis.getFieldName(), Streams.asString(is));\n }\n }\n }\n catch(FileUploadException ex)\n {\n System.err.println(\"Failed to receive upload from user '\" + request.getRemoteAddr() + \"' ~ \" + ex.getMessage());\n }\n }\n\n // Communicate to node using RMI\n // -- Fetch host\n RMI_Host rmiHost = PALS_SettingsListener.fetchHost(); \n // -- Setup the socket and connect\n SSL_Factory sfact = PALS_SettingsListener.getRMISockFactory();\n Registry r;\n if(sfact != null)\n r = LocateRegistry.getRegistry(rmiHost.getHost(), rmiHost.getPort(), sfact);\n else\n r = LocateRegistry.getRegistry(rmiHost.getHost(), rmiHost.getPort());\n // -- Bind to our version of the interface\n RMI_Interface ri = (RMI_Interface)r.lookup(RMI_Interface.class.getName());\n RemoteResponse dataResponse = ri.handleWebRequest(dataRequest);\n \n // Handle response\n // -- Transfer header data\n if(dataResponse.isHeadersAvailable())\n {\n for(Map.Entry<String,String> kv : dataResponse.getHeaders().entrySet())\n response.setHeader(kv.getKey(), kv.getValue());\n }\n // -- Update the session ID cookie\n Cookie cookieSess = new Cookie(SESSION_COOKIE_NAME, dataResponse.getSessionID());\n cookieSess.setPath(\"/\");\n cookieSess.setMaxAge(dataResponse.isSessionPrivate() ? 3600 : 600);\n response.addCookie(cookieSess);\n // -- Check for redirect\n String redirect = dataResponse.getRedirectUrl();\n if(redirect != null)\n {\n if(!redirect.startsWith(\"/\"))\n redirect = \"/\" + redirect;\n response.sendRedirect(request.getContextPath() + redirect);\n }\n else\n {\n // -- Handle response type\n response.setContentType(dataResponse.getResponseType());\n // -- Set response code\n response.setStatus(dataResponse.getResponseCode());\n // -- Handle response data\n {\n byte[] buffer = dataResponse.getBuffer();\n if(buffer != null && buffer.length != 0)\n {\n ServletOutputStream sos = response.getOutputStream();\n sos.write(buffer);\n sos.flush();\n }\n else\n rt = ResponseType.Error_NoOutput;\n }\n }\n // Note: nothing else can be sent now; thus do not set any\n // cookies or headers at this point.\n \n // Destroy any temp files\n String tempFolder = Storage.getPath_tempWeb(settings.getStr(\"storage/path\"));\n File file;\n for(UploadedFile uf : dataRequest.getFiles())\n {\n file = new File(tempFolder + \"/\" + uf.getTempName());\n if(file.exists() && file.isFile())\n file.delete();\n }\n }\n catch(RemoteException ex)\n {\n System.err.println(\"RMI RemoteException ~ \" + ex.getMessage() + \"!\");\n rt = ResponseType.Error_RMI;\n caughtException = ex;\n }\n catch(NotBoundException ex)\n {\n System.err.println(\"RMI NotBoundException ~ \" + ex.getMessage() + \"!\");\n rt = ResponseType.Error_RMI;\n caughtException = ex;\n }\n catch(SettingsException ex)\n {\n System.err.println(\"Settings exception ~ \" + ex.getMessage() + \"!\");\n rt = ResponseType.Error_Settings;\n caughtException = ex;\n }\n // Check if we have handled the response correctly, else output a message to the user\n if(rt == ResponseType.Success)\n return;\n // An error has occurred...\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter pw = response.getWriter();\n pw.println(\"<!DOCTYPE html><html><head><title>PALS - Communication Issue</title></head><body>\");\n pw.println(\"<h1>Error</h1>\");\n // Output humam message\n switch(rt)\n {\n case Error_RMI:\n pw.println(\"<p>Communication issue, please try again...</p>\");\n pw.println(\"<h2>Network Administrators</h2>\");\n pw.println(\"<p>The system is unable to communicate with the node process, check it is running!</p>\");\n break;\n case Error_NoOutput:\n pw.println(\"<p>Communication issue, please try again...</p>\");\n pw.println(\"<h2>Network Administrators</h2>\");\n pw.println(\"<p>No data for the web-page was returned from the node; check templates and plugins are loading correctly.</p>\");\n break;\n case Error_Settings:\n pw.println(\"<p>Error occurred reading settings...</p>\");\n pw.println(\"<h2>Network Administrators</h2>\");\n pw.println(\"<p>Ensure the file at WEB-INF/web.config as been correctly configured.</p>\");\n break;\n }\n // Output debug information\n if(caughtException != null && PALS_SettingsListener.getSettings().getBool(\"debug\", false))\n {\n pw.println(\"<h2>Debug Data</h2>\");\n pw.println(\"<p>\");\n caughtException.printStackTrace(pw);\n pw.println(\"</p>\");\n }\n // Dispose and end\n pw.println(\"</body></html>\");\n pw.flush();\n pw.close();\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n HttpSession session = new HttpSession() {\n public long getCreationTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String getId() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public long getLastAccessedTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public ServletContext getServletContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setMaxInactiveInterval(int interval) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public int getMaxInactiveInterval() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public HttpSessionContext getSessionContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Enumeration<String> getAttributeNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String[] getValueNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setAttribute(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void putValue(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void invalidate() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public boolean isNew() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n };\n try {\n String bsubmit = request.getParameter(\"submit\");\n String inUsername = request.getParameter(\"username\");\n String inPassword = request.getParameter(\"password\");\n if (bsubmit != null) {\n UserDAO userDAO = new UserDAO();\n User user = userDAO.findUserByNameAndPassword(inUsername, inPassword);\n if (user == null) {\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Sorry, invalid username or password\");\n out.write(\".');\\n\");\n out.write(\"setTimeout(function(){window.location.href='login.jsp'},1000);\");\n out.write(\"</script>\\n\");\n } else {\n if (user.getUserName().equals(inUsername) && user.getPassword().equals(inPassword)) {\n session = request.getSession();\n session.setAttribute(\"userId\", String.valueOf(user.getId()));\n session.setAttribute(\"userName\", user.getUserName());\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Thank you! You are login with \");\n out.write(user.getUserName());\n out.write(\" account.');\\n\");\n out.write(\"setTimeout(function(){window.location.href='index.jsp'},1000);\");\n out.write(\"</script>\\n\");\n }\n }\n\n }\n\n } finally {\n out.close();\n }\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint carID = Integer.parseInt(request.getParameter(\"carID\"));\n\t\tString name = request.getParameter(\"nameCar\").toString();\n\t\tint nsx = Integer.parseInt(request.getParameter(\"productDate\"));\n\t\tlong price = Long.parseLong(request.getParameter(\"price\"));\n\t\tint quantityStock = Integer.parseInt(request.getParameter(\"quantityStock\"));\n\t\tString description = request.getParameter(\"description\").toString();\n\t\tString brand = request.getParameter(\"brand\").toString();\n\t\tString imageCar = \"\";\n\t\tString fileName = request.getParameter(\"photo\");\n\t\t\t DiskFileItemFactory factory = new DiskFileItemFactory();\n\t\t\t\t// sets memory threshold - beyond which files are stored in disk\n\t\t\t\tfactory.setSizeThreshold(MEMORY_THRESHOLD);\n\t\t\t\t// sets temporary location to store files\n\t\t\t\tfactory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\t\t\n\t\t\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\t\t\t// sets maximum size of upload file\n\t\t\t\tupload.setFileSizeMax(MAX_FILE_SIZE);\n\t\t\n\t\t\t\t// sets maximum size of request (include file + form data)\n\t\t\t\tupload.setSizeMax(MAX_REQUEST_SIZE);\n\t\t\n\t\t\t\t// constructs the directory path to store upload file\n\t\t\t\t// this path is relative to application's directory\n\t\t\t\n\n\t\t\t\ttry{\n\t\t\t\t\tList<Part> fileParts = request.getParts().stream().filter(part -> \"photo\".equals(part.getName())).collect(Collectors.toList()); // Retrieves <input type=\"file\" name=\"file\" multiple=\"true\">\n\t\t \t\tString uploadPath = \"C:\\\\Users\\\\AnhXtanh\\\\workspace\\\\hungptit\\\\WebContent\\\\\" + UPLOAD_DIRECTORY;\n\t\t \t\tFile uploadDir = new File(uploadPath);\n\t\t \t\tif (!uploadDir.exists()) {\n\t\t\t\t\t\tuploadDir.mkdir();\n\t\t\t\t\t}\n\t\t \t\tfor (Part filePart : fileParts) {\n\t\t\t\t imageCar = Paths.get(filePart.getSubmittedFileName()).getFileName().toString(); // MSIE fix.\n\t\t\t\t System.out.println(imageCar);\n\t\t\t\t String filePath = uploadPath + File.separator + imageCar;\n\t\t\t\t filePart.write(uploadPath);\n\t\t\t\t } \n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\trequest.setAttribute(\"message\", \"There was an error: \" + ex.getMessage());\n\t\t\t\t}\n\t\t\t\tif (imageCar.equals(\"\")) {\n\t\t\t\t\tCar car = new Car (name, description, brand, nsx, price, quantityStock);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcardao.updateCarNoneImage(car, carID);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tCar car = new Car (name, description, brand, nsx, price, quantityStock, imageCar);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcardao.updateCar(car, carID);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tArrayList<Car> listCar;\n\t\t\t\ttry {\n\t\t\t\t\tlistCar = cardao.findAllCar();\n\t\t\t\t\trequest.setAttribute(\"cars\", listCar);\n\t\t\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"/WEB-INF/view/listCars.jsp\");\n\t\t\t\t\trd.forward(request, response);\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\r\n PrintWriter writer = response.getWriter();\r\n String userName = request.getParameter(\"userName\");\r\n HttpSession session = request.getSession();\r\n if (userName != \"\" && userName != null){\r\n \r\n session.setAttribute(\"savedUserName\", userName);\r\n }\r\n \r\n writer.println(\" Request parameter has username as \" + userName);\r\n writer.println(\" Session parameter has username \" + (String) session.getAttribute(\"savedUserName\"));\r\n //out.println(\"Hello \" + userName);\r\n \r\n }", "@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\treturn null;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\n\t\tpublic Map getParameterMap() {\n\t\t\treturn null;\n\t\t}", "final void request(HttpServletRequest request) {\n \n // Find the session ID in the cookies\n String sessionId = null;\n Cookie[] cookies = request.getCookies();\n int cookieCount = (cookies == null) ? 0 : cookies.length;\n for (int i = 0; i < cookieCount && sessionId == null; i++) {\n Cookie cookie = cookies[i];\n String name = cookie.getName();\n if (\"SessionId\".equals(name)) {\n sessionId = cookie.getValue();\n }\n }\n \n HttpSession session = request.getSession(true);\n _currentSession.set(session);\n \n // If the session ID is not found in the cookies, create a new one\n if (sessionId == null) {\n \n sessionId = session.getId();\n setProperty(sessionId, Boolean.FALSE);\n }\n \n // Fill the input parameters\n HashMap inputParameters = new HashMap();\n Enumeration params = request.getParameterNames();\n while (params.hasMoreElements()) {\n String name = (String) params.nextElement();\n String value = request.getParameter(name);\n if (\"\".equals(value) || name.equals(getSessionId())) {\n value = null;\n }\n inputParameters.put(name, value);\n }\n setProperty(\"_inputs\", inputParameters);\n }", "private static void logInfo(Request req, Path tempFile) throws IOException, ServletException {\n System.out.println(\"Uploaded file '\" + getFileName(req.raw().getPart(\"uploaded_file\")) + \"' saved as '\" + tempFile.toAbsolutePath() + \"'\");\n }", "@Override\n\tpublic Map getParameterMap() {\n\t\treturn null;\n\t}", "@Override \r\nprotected void doPost(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "public Map<String, String[]> getParaMap() {\n\t\treturn request.getParameterMap();\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tHttpSession session = req.getSession();\r\n\t\tConnection c = null;\r\n\t\tResultSet rs = null;\r\n\t\tString result = \"Fail\";\r\n\t\tString userImageKey = \"\";\r\n\t\tint resultid = -1;\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\tUser user = userService.getCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tMap<String,List<BlobKey>> blobs = blobstoreService.getUploads(req);\r\n\t\t\tIterator<String> names = blobs.keySet().iterator();\r\n\t\t\twhile(names.hasNext()) {\r\n\t\t\t\tString name = names.next();\r\n\t\t\t\tif (name.equals(\"userImage\")) {\r\n\t\t\t\t\tList<BlobKey> blobkeys = blobs.get(name);\r\n\t\t\t\t\tif (blobkeys.size() > 0) {\r\n\t\t\t\t\t\tBlobKey blobkey = blobkeys.get(0);\r\n\t\t\t\t\t\tuserImageKey = blobkey.getKeyString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tString name = req.getParameter(\"name\");\r\n\t\t\tif (name == null || name.equals(\"\") ) {\r\n\t\t\t\tname = \"UserName\";\r\n\t\t\t}\r\n\t\t\tString registrationId = req.getParameter(\"regid\");\r\n\t\t\tif (registrationId == null) {\r\n\t\t\t\tregistrationId = \"\";\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tDriverManager.registerDriver(new AppEngineDriver());\r\n\t\t\t\tc = DriverManager.getConnection(\"jdbc:google:rdbms://dongjawebapp:boarddb/boarddb\");\r\n\t\t\t\tString query = \"SELECT id,imagekey FROM usertbl WHERE userid = ?\";\r\n\t\t\t\tPreparedStatement stmt = c.prepareStatement(query);\r\n\t\t\t\tstmt.setString(1, user.getEmail());\t\t\r\n\t\t\t\trs = stmt.executeQuery();\r\n\t\t\t\tif (rs.next()) {\r\n\t\t\t\t\t// update user info\r\n\t\t\t\t\tint userid = rs.getInt(\"id\");\r\n\t\t\t\t\tresultid = userid;\r\n\t\t\t\t\tif (userImageKey.equals(\"\")) {\r\n\t\t\t\t\t\tuserImageKey = rs.getString(\"imagekey\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t\t\r\n\t\t\t\t\tString statement = \"UPDATE usertbl SET userid = ?, username = ?, imagekey = ?, registrationid = ? WHERE id = ?\";\r\n\t\t\t\t\tPreparedStatement upstmt = c.prepareStatement(statement);\r\n\t\t\t\t\tupstmt.setString(1, user.getEmail());\r\n\t\t\t\t\tupstmt.setString(2, name);\r\n\t\t\t\t\tupstmt.setString(3, userImageKey);\r\n\t\t\t\t\tupstmt.setString(4, registrationId);\r\n\t\t\t\t\tupstmt.setInt(5, userid);\r\n\t\t\t\t\tupstmt.executeUpdate();\r\n\t\t\t\t\tif (session.getAttribute(\"userid\") == null) {\r\n\t\t\t\t\t\tsession.setAttribute(\"userid\", userid);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresult = \"Success\";\r\n\t\t\t\t\tresultid = userid;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// insert user info\r\n\t\t\t\t\tString statementFormat = \"INSERT INTO usertbl(userid,username,imagekey,registrationid) VALUES('%s','%s','%s','%s')\";\r\n\t\t\t\t\tString statement = String.format(statementFormat, user.getEmail(),name,userImageKey,registrationId);\r\n\t\t\t\t\tStatement instmt = c.createStatement();\r\n\t\t\t\t\tinstmt.executeUpdate(statement,Statement.RETURN_GENERATED_KEYS);\r\n\t\t\t\t\tResultSet rs2 = instmt.getGeneratedKeys();\r\n\t\t\t\t\tif (rs2.next()) {\r\n\t\t\t\t\t\tint userid = rs2.getInt(1);\r\n\t\t\t\t\t\tsession.setAttribute(\"userid\", userid);\r\n\t\t\t\t\t\tresult = \"Success\";\r\n\t\t\t\t\t\tresultid = userid;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tresult = \"Fail\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tresult = \"Fail\";\r\n\t\t\t} finally {\r\n\t\t\t\tif (c != null) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tc.close();\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tresult = \"NotLogin\";\r\n\t\t}\r\n\r\n\t req.setAttribute(\"result\", result);\r\n\t req.setAttribute(\"resultid\", resultid);\r\n\t try {\r\n req.getRequestDispatcher(\"/UploadResult.jsp\").forward(req, resp);\r\n } catch (ServletException e) {\r\n }\r\n\t\t\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String codeLabWorker1 = \"\";\n if (!ServletFileUpload.isMultipartContent(request)) {\n\t\t PrintWriter writer = response.getWriter();\n\t\t writer.println(\"Error: enctype=multipart/form-data\");\n\t\t writer.flush();\n\t\t return;\n\t\t}\n\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n \n ServletFileUpload upload = new ServletFileUpload(factory); \n upload.setFileSizeMax(MAX_FILE_SIZE);\n upload.setSizeMax(MAX_REQUEST_SIZE);\n String uploadPath = getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n \n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n try {\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n if (formItems != null && formItems.size() > 0) {\n File storeFile = null;\n String codeResult = \"\";\n String codeLabWorker = \"\"; \n String dateToday = getDateToday();\n String time = getTime();\n for (FileItem item : formItems) { \n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n storeFile = new File(filePath);\n System.out.println(filePath);\n item.write(storeFile); \n }else{\n String fieldName = item.getFieldName();\n String fieldValue = item.getString();\n if (fieldName.equals(\"codeLabWorker\")) {\n codeLabWorker = fieldValue;\n codeLabWorker1=codeLabWorker;\n }else if (fieldName.equals(\"codeResult\")) {\n codeResult = fieldValue;\n }\n } \n }\n //Enviar a guardar\n LabWorkerDB labDB = new LabWorkerDB();\n labDB.updateResult(codeLabWorker, storeFile, dateToday, time, codeResult);\n JOptionPane.showMessageDialog(null,\"Se guardo con exito\");\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null,ex);\n } \n request.setAttribute(\"username\", codeLabWorker1);\n \n request.getRequestDispatcher(\"/labWorkerGUI/principallabWorker.jsp\").forward(request, response);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession sess = request.getSession(true); // starts a new session\n String name = request.getParameter(\"user\");\n name = Jsoup.clean(name, Whitelist.simpleText());\n ArrayList<Board> boards = new ArrayList<Board>();\n sess.setAttribute(\"user\", name); // set some session attributes\n sess.setAttribute(\"boards\", boards);\n request.getRequestDispatcher(\"readFile\").forward(request, response);\n \n \n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException\r\n {\r\n \r\n\r\n// get next incident id\r\n int maxIncidentID = 0;\r\n String msg_title= \"\";\r\n String msg_description= \"\";\r\n String time= \"\";\r\n String latLong = \"\";\r\n String userID=\"\";\r\n String password=\"\";\r\n ArrayList<String> imagePaths = new ArrayList<String>();\r\n List<FileItem> items = null;\r\n // run a query to insert a row with the incident id (already received) and latlong and message details and image paths.\r\n \r\n String currTime = new Timestamp(new Date().getTime()).toString();\r\n String name = currTime.replaceAll(\"\\\\:|\\\\-|\\\\s+|\\\\.\", \"\");\r\n System.out.println(name);\r\n String sImagePath = \"C:/incidentImages/\"+name+\"/\";\r\n boolean success = ( new File(sImagePath)).mkdirs();\r\n if (success) {\r\n System.out.println(\"Directory: \" + sImagePath + \" created\");\r\n } \r\n new File(sImagePath);\r\n try\r\n {\r\n items = new ServletFileUpload(new\r\n DiskFileItemFactory()).parseRequest(request);\r\n for (FileItem item : items)\r\n {\r\n if(item.getFieldName().equals(\"message\"))\r\n {\r\n// File dataFile = new\r\n// File(sImagePath+System.currentTimeMillis());\r\n msg_description = item.getString();\r\n /*FileWriter v = new FileWriter(dataFile);\r\n v.append(sVal);\r\n v.close();*/\r\n }\r\n \r\n if(item.getFieldName().equals(\"latitude\"))\r\n {\r\n /*File dataFile = new File(sImagePath+\"gps_\"+System.currentTimeMillis() +\".txt\");\r\n String sVal = item.getString();\r\n FileWriter v = new FileWriter(dataFile);\r\n v.append(sVal);\r\n v.close();*/\r\n latLong = item.getString();\r\n }\r\n if(item.getFieldName().equals(\"longitude\"))\r\n { \r\n latLong = latLong + \",\" + item.getString(); \r\n }\r\n \r\n if(item.getFieldName().equals(\"message_title\"))\r\n { \r\n msg_title = item.getString();\r\n }\r\n \r\n if(item.getFieldName().equals(\"reporting_time\"))\r\n { \r\n time = item.getString();\r\n }\r\n \r\n if(item.getFieldName().equals(\"uid\"))\r\n {\r\n userID=item.getString();\r\n }\r\n \r\n if(item.getFieldName().equals(\"pass\"))\r\n {\r\n password=item.getString();\r\n }\r\n if (item.getFieldName().equals(\"image\"))\r\n {\r\n String fileName = item.getName();\r\n //String fileContentType = item.getContentType();\r\n InputStream fileContent = item.getInputStream();\r\n\r\n BufferedImage bImageFromConvert = ImageIO.read(fileContent);\r\n imagePaths.add(sImagePath+fileName);\r\n \r\n File vImageFile = new File(sImagePath+fileName);\r\n\r\n ImageIO.write(bImageFromConvert, \"jpg\", vImageFile);\r\n //Image img = ImageIO.read(new File(sImagePath+fileName)).getScaledInstance(100, 100, BufferedImage.SCALE_SMOOTH);\r\n \r\n BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB);\r\n img.createGraphics().drawImage(ImageIO.read(vImageFile).getScaledInstance(100, 100, Image.SCALE_SMOOTH),0,0,null);\r\n ImageIO.write(img, \"jpg\", new File(sImagePath+fileName+\"_thumb.jpg\"));\r\n\r\n }\r\n \r\n }\r\n } catch (Exception e) {\r\n throw new ServletException(\"Cannot parse multipart request.\", e);\r\n }\r\n maxIncidentID = insertIncidentMsg(msg_title,msg_description,time,latLong,imagePaths);\r\n processRequest(request, response);\r\n\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException, ClassNotFoundException, SQLException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n InputStream inputStream = null; // input stream of the upload file\r\n \r\n String name=request.getParameter(\"name\"); \r\n \r\n Part filePart = request.getPart(\"blah\");\r\n if (filePart != null) {\r\n // prints out some information for debugging\r\n \r\n //obtains input stream of the upload file\r\n //the InputStream will point to a stream that contains\r\n //the contents of the file\r\n inputStream = filePart.getInputStream();\r\n }\r\n Connection con;\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n \r\n con=(Connection)DriverManager.getConnection(\"jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=convertToNull\", \"root\",\"1234\");\r\n out.println(\"Database Connected\");\r\n PreparedStatement pst;\r\n pst=con.prepareStatement(\"update table logintable(img) VALUESb(?) where name=?\");\r\n pst.setString(1,inputStream); \r\n pst.setString(2,name);\r\n int i= pst.executeUpdate();\r\n \r\n response.sendRedirect(\"index.html\"); \r\n \r\n }\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tString data = convertStreamToString(req.getInputStream());\r\n\t\t\r\n\t\tGson gson = new Gson();\r\n\t\tSession session = gson.fromJson(data, Session.class);\r\n\r\n\t\tresp.setContentType(\"text/plain\");\r\n\t\tPrintWriter out = resp.getWriter();\r\n\t\tif(session != null) {\t\t\r\n\t\t\t\r\n\t\t\tout.flush();\r\n\r\n\t\t\tOfyUtil.insertSessionEntry(session);\r\n\t\t}\r\n\t}", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tboolean isMultipart = ServletFileUpload.isMultipartContent(request);\r\n\r\n\t\tif (!isMultipart) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Create a factory for disk-based file items\r\n\t\tDiskFileItemFactory factory = new DiskFileItemFactory();\r\n\r\n\t\t// Sets the size threshold beyond which files are written directly to\r\n\t\t// disk.\r\n\t\tfactory.setSizeThreshold(MAX_MEMORY_SIZE);\r\n\r\n\t\t// Sets the directory used to temporarily store files that are larger\r\n\t\t// than the configured size threshold. We use temporary directory for\r\n\t\t// java\r\n\t\tfactory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\r\n\r\n\t\t// constructs the folder where uploaded file will be stored\r\n\t\t// String uploadFolder = getServletContext().getRealPath(\"\")\r\n\t\t// + File.separator + DATA_DIRECTORY;\r\n\r\n\t\tString[] route = getServletContext().getRealPath(\"\").split(Pattern.quote(File.separator));\r\n\t\tStringBuffer uploadFolderSb = new StringBuffer();\r\n\t\t// uploadFolderSb.append(File.separator);\r\n\t\tfor (int i = 0; i < route.length - 2; i++) {\r\n\t\t\tuploadFolderSb.append(route[i]);\r\n\t\t\tuploadFolderSb.append(File.separator);\r\n\t\t}\r\n\r\n\t\tuploadFolderSb.append(\"docroot\");\r\n\t\tuploadFolderSb.append(File.separator + DATA_DIRECTORY);\r\n\t\tString uploadFolder = uploadFolderSb.toString();\r\n\r\n\t\t// String uploadFolderRel = getServletContext().getContextPath()\r\n\t\t// + File.separator + DATA_DIRECTORY;\r\n//\t\tString uploadFolderRel = \"\\\\\" + DATA_DIRECTORY;\r\n\t\t// Create a new file upload handler\r\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\r\n\r\n\t\t// Set overall request size constraint\r\n\t\tupload.setSizeMax(MAX_REQUEST_SIZE);\r\n\t\tList<String> webLinks = new ArrayList<String>();\r\n\t\tString publishedYear = \"0000\";\r\n\t\tString title = \"\";\r\n\t\tString isbn = \"0\";\r\n\t\tString pagesCount = \"0\";\r\n\t\tString author = \"0\";\r\n\t\tLong userAppId = null;\r\n\t\ttry {\r\n\t\t\t// Parse the request\r\n\t\t\tList items = upload.parseRequest(request);\r\n\t\t\tIterator iter = items.iterator();\r\n\t\t\twhile (iter.hasNext()) {\r\n\t\t\t\tFileItem item = (FileItem) iter.next();\r\n\r\n\t\t\t\tif (!item.isFormField()) {\r\n\t\t\t\t\tString fileName = new File(item.getName()).getName();\r\n\t\t\t\t\tString filePath = uploadFolder + File.separator + fileName;\r\n\t\t\t\t\tString fileRelPath = \r\n\t\t\t\t\t\t\t//uploadFolderRel + \r\n\t\t\t\t\t\t\tFile.separator\r\n\t\t\t\t\t\t\t+ fileName;\r\n\t\t\t\t\tFile uploadedFile = new File(filePath);\r\n\r\n\t\t\t\t\t// saves the file to upload directory\r\n\t\t\t\t\titem.write(uploadedFile);\r\n\t\t\t\t\tString finalPath = fileRelPath.replace(\"//\", \"/\");\r\n\t\t\t\t\twebLinks.add(finalPath);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (item.getFieldName().equals(\r\n\t\t\t\t\t\t\tConstants.BLOB_PUBLISHED_YEAR)) {\r\n\t\t\t\t\t\tpublishedYear = item.getString();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.BLOB_TITLE)) {\r\n\t\t\t\t\t\ttitle = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.ISBN)) {\r\n\t\t\t\t\t\tisbn = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.PAGES_COUNT)) {\r\n\t\t\t\t\t\tpagesCount = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.BLOB_AUTHOR)) {\r\n\t\t\t\t\t\tauthor = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.BLOB_UPLOADER)) {\r\n\t\t\t\t\t\tuserAppId = Long.parseLong(item.getString());\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\tProfessor professor = ((GWTServiceImpl) gwtServiceImpl)\r\n\t\t\t\t\t.findProfessor(userAppId);\r\n\t\t\tLocalBook localBook = new LocalBook(professor, author, isbn,\r\n\t\t\t\t\tpagesCount, publishedYear, title);\r\n//\t\t\tString absPath = getServletContext().getRealPath(\"\").substring(0,\r\n//\t\t\t\t\t52)\r\n//\t\t\t\t\t+ File.separator + \"docroot\" + File.separator;\r\n\t\t\tList<String> imagesWebLinks = convert(uploadFolder\r\n\t\t\t\t\t+ webLinks.get(0),uploadFolder);\r\n\t\t\tlocalBook.setWebLinks(imagesWebLinks);\r\n\t\t\tprofessor.getBooks().add(localBook);\r\n\t\t\tsaveUser((Professor) professor);\r\n\t\t\t// displays done.jsp page after upload finished\r\n\t\t\t// getServletContext().getRequestDispatcher(\"/done.jsp\").forward(request,\r\n\t\t\t// response);\r\n\r\n\t\t} catch (FileUploadException ex) {\r\n\t\t\tthrow new ServletException(ex);\r\n\t\t} catch (ProfessorNotFoundException pnfe) {\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tthrow new ServletException(ex);\r\n\t\t}\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException { \r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n \r\n HttpSession session = request.getSession(true); \r\n Inmobiliaria inmobiliaria= (Inmobiliaria) session.getAttribute(\"inmobiliaria\"); \r\n if(inmobiliaria==null) inmobiliaria = Inmobiliaria.darObjeto(); \r\n session.setAttribute(\"inmobiliaria\", inmobiliaria);\r\n \r\n MultipartFormDataRequest mrequest = null; \r\n RequestDispatcher dispatcher = null; \r\n UploadBean upBean = null;//UploadBean es una libreria que se usa para poder llevar objetos al servidor en este caso la imagen \r\n \r\n String operacion = null; \r\n String mensaje = null;\r\n String url = null;\r\n \r\n try{ \r\n \r\n mrequest= new MultipartFormDataRequest(request); //le indicamos que recoga todo lo que nos esta mandando el .jsp \r\n operacion = mrequest.getParameter(\"btn_aceptar\");\r\n \r\n if ((operacion != null) && (operacion.equalsIgnoreCase(\"Agregar\"))) { \r\n \r\n //recuperar campos de texto:\r\n String dir = mrequest.getParameter(\"txt_direccion\"); \r\n String barrio = mrequest.getParameter(\"txt_barrio\"); \r\n String tel = mrequest.getParameter(\"txt_telefono\"); \r\n String tipo = mrequest.getParameter(\"dpd_tipoInmueble\"); \r\n String categoria = mrequest.getParameter(\"dpd_categoria\"); \r\n String tamanio = mrequest.getParameter(\"txt_tamano\"); \r\n int precio = Integer.parseInt(mrequest.getParameter(\"txt_precio\")); \r\n String ciudad = mrequest.getParameter(\"dpd_ciudad\"); \r\n \r\n String imagen = dir.replaceAll(\" \",\"\")+\".jpg\"; \r\n //-------------------- \r\n \r\n //enviar datos:\r\n try {\r\n \r\n inmobiliaria.adicionarInmueble(barrio, dir, tel, tipo, tamanio, precio, imagen, categoria, ciudad); \r\n mensaje = inmobiliaria.getMensaje(); \r\n \r\n if(mensaje.equals(\"El inmueble se adicionó con Exito\")){\r\n //recuperar archivo (imagen): \r\n Hashtable files = mrequest.getFiles();\r\n if ((files != null) && (!files.isEmpty())) { \r\n UploadFile file = (UploadFile) files.get(\"uploadfile\");\r\n \r\n file.setFileName(imagen);\r\n upBean = new UploadBean(); \r\n\r\n upBean.setFolderstore(\"D:\\\\DOCUMENTOS\\\\UMARIANA\\\\proyNetbeans\\\\Inmobiliaria\\\\web\\\\images\\\\inmuebles\\\\\"); \r\n upBean.store(mrequest, \"uploadfile\"); //Con el Store le decimos al MultipartFormRequest que obtenta tambien la imagen \r\n\r\n } else {\r\n System.out.println(\"<li>No uploaded files\");\r\n }\r\n //----------------------------------------------------- \r\n }\r\n \r\n } catch (Exception e) {\r\n out.println(e.getMessage());\r\n }\r\n \r\n \r\n url = \"AgregarInmueble.jsp\";\r\n \r\n session.setAttribute(\"mensaje\", mensaje);\r\n session.setAttribute(\"url\", url);\r\n\r\n response.sendRedirect(\"./Mensajes.jsp\"); \r\n \r\n }//if de (operacion) \r\n \r\n //modificar un inmueble:\r\n if ((operacion != null) && (operacion.equalsIgnoreCase(\"Modificar\"))) {\r\n String dirOriginal = mrequest.getParameter(\"txt_dir_original\"); //direccion original del inmueble \r\n \r\n String dir = mrequest.getParameter(\"txt_direccion\"); \r\n String barrio = mrequest.getParameter(\"txt_barrio\"); \r\n String tel = mrequest.getParameter(\"txt_telefono\"); \r\n String tipo = mrequest.getParameter(\"dpd_tipoInmueble\"); \r\n String categoria = mrequest.getParameter(\"dpd_categoria\"); \r\n String tamanio = mrequest.getParameter(\"txt_tamano\"); \r\n int precio = Integer.parseInt(mrequest.getParameter(\"txt_precio\")); \r\n String ciudad = mrequest.getParameter(\"dpd_ciudad\"); \r\n String imagenOriginal = dirOriginal.replaceAll(\" \",\"\")+\".jpg\";\r\n String imagenNueva = dir.replaceAll(\" \",\"\")+\".jpg\";\r\n \r\n try {\r\n //eliminar archivo anterior:\r\n String imagenCambiada = mrequest.getParameter(\"imagenCambiada\"); \r\n if(imagenCambiada.equals(\"1\")){\r\n String ruta=\"D:/DOCUMENTOS/UMARIANA/proyNetbeans/Inmobiliaria/web/images/inmuebles/\"+imagenOriginal;\r\n inmobiliaria.eliminarArchivo(ruta);\r\n } \r\n else imagenNueva = imagenOriginal;\r\n \r\n inmobiliaria.modificarInmueble(barrio, dir, tel, tipo, categoria, tamanio, precio, ciudad, imagenNueva, dirOriginal); \r\n \r\n //recuperar archivo (imagen): \r\n Hashtable files = mrequest.getFiles();\r\n if ((files != null) && (!files.isEmpty())) { \r\n UploadFile file = (UploadFile) files.get(\"uploadfile\"); \r\n file.setFileName(imagenNueva);\r\n upBean = new UploadBean(); \r\n upBean.setFolderstore(\"D:\\\\DOCUMENTOS\\\\UMARIANA\\\\proyNetbeans\\\\Inmobiliaria\\\\web\\\\images\\\\inmuebles\\\\\"); \r\n upBean.store(mrequest, \"uploadfile\"); //Con el Store le decimos al MultipartFormRequest que obtenga tambien la imagen \r\n\r\n } else {\r\n out.write(\"es null\");\r\n } \r\n \r\n } catch (Exception e) {\r\n }\r\n \r\n mensaje = inmobiliaria.getMensaje();\r\n url = \"AdministrarInmuebles.jsp\";\r\n \r\n session.setAttribute(\"url\", url);\r\n session.setAttribute(\"mensaje\", mensaje);\r\n \r\n response.sendRedirect(\"./Mensajes.jsp\"); \r\n \r\n \r\n }//if(modificar)\r\n \r\n }catch( UploadException exc){\r\n System.out.println(\"Error en lo primero: \"+exc.getMessage());\r\n } \r\n \r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\nprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n}", "public Enumeration<String> getParameterNames() {\n if ( isMultipart() ) {\n return this.multipart.getParameterNames();\n }\n else {\n return super.getParameterNames();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException, FileUploadException, Exception {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n /* TODO output your page here. You may use following sample code. */\r\n \r\n \r\n String coso = request.getParameter(\"Productos\");\r\n out.println(coso);\r\n /*sacando los FileItem del ServletFileUpload en una lista */\r\n \r\n \r\n \r\n// DataFecha fechanac = new DataFecha();\r\n// conectar con=new conectar();\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n// String nick = request.getParameter(\"Nick\");\r\n// String nombre = request.getParameter(\"Nombre\");\r\n// String apellido = request.getParameter(\"Apellido\");\r\n// String email = request.getParameter(\"Email\");\r\n \r\n \r\n// String contraseña = request.getParameter(\"Contrasena\");\r\n// String verificar = request.getParameter(\"Verificar\");\r\n// String dia = request.getParameter(\"day\");\r\n// String mes = request.getParameter(\"month\");\r\n// String año = request.getParameter(\"year\");\r\n// String imagen = request.getParameter(\"file\");\r\n// String tipo = request.getParameter(\"tipo\");\r\n// String lp = request.getParameter(\"Sitio Web\");\r\n// String nc = request.getParameter(\"Nombre Compania\");\r\n \r\n \r\n \r\n } finally {\r\n out.close();\r\n }\r\n }", "@Override\r\npublic void setSession(Map<String, Object> arg0) {\n\t\r\n}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\r\n\t\tSystem.out.println(\"doPost\");\r\n\t\t\r\n\t\tint yourMaxRequestSize = 100 * 1024 * 1024; // 1M\r\n\t\tint yourMaxMemorySize = 100 * 1024;\r\n\t\t\r\n\t\t// form field 의 데이터(String)\r\n\t\tString id = \"\";\r\n\t\tString title = \"\";\r\n\t\tString content = \"\";\r\n\r\n\t\t// file data\r\n\t\tString filename = \"\";\r\n\r\n\t\t\r\n\t\tString path = req.getServletContext().getRealPath(\"/upload\");\r\n\t\t\r\n\t\t\r\n\t\t// String path = \"d:\\\\tmp\";\r\n\t\t/*\r\n\t\tSystem.out.println(path);\r\n\t\tMultipartRequest mreq = new MultipartRequest(req, path);\r\n\t\tEnumeration t = mreq.getParameterNames();\r\n\t\t*/\r\n\t\t/*\r\n\t\twhile(t.hasMoreElements()) {\r\n\t\t\tString name = (String)t.nextElement();\r\n\t\t\tString conver =new String(mreq.getParameter(name).getBytes(\"8859_1\"), \"UTF-8\");\r\n\t\t\tSystem.out.println(name + \" : \" + mreq.getParameter(name) + \" : \" + conver);\r\n\t\t}\r\n\t\t*/\r\n\t\tboolean isMultipart = ServletFileUpload.isMultipartContent(req);\r\n\t\tSystem.out.println(isMultipart);\r\n\t\tif(isMultipart){\r\n\t\t\r\n\t\t// FileItem 을 생성하는 함수\r\n\t\t DiskFileItemFactory factory = new DiskFileItemFactory();\r\n\t\t \r\n\t\t factory.setSizeThreshold(yourMaxMemorySize);\r\n\t\t factory.setRepository(new File(path));\r\n\t\t \r\n\t\t ServletFileUpload upload = new ServletFileUpload(factory);\r\n\t\t upload.setSizeMax(yourMaxRequestSize);\r\n\t\t \r\n\t\t // list저장\r\n\t\t List<FileItem> items = null;\r\n\t\ttry {\r\n\t\t\titems = upload.parseRequest(req);\r\n\t\t} catch (FileUploadException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t Iterator<FileItem> it = items.iterator();\r\n\t\t \r\n\t\t while(it.hasNext()){\r\n\t\t \r\n\t\t FileItem item = it.next();\r\n\t\t // id, title, content\r\n\t\t if(item.isFormField()){\r\n\t\t if(item.getFieldName().equals(\"id\")){\r\n\t\t \tid = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"title\")){\r\n\t\t title = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"content\")){\r\n\t\t content = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t }\r\n\t\t // file\r\n\t\t else{\r\n\t\t if(item.getFieldName().equals(\"fileload\")){\r\n\t\t filename = processUploadFile(item, path);\r\n\t\t System.out.println(\"path:\" + path);\r\n\t\t } \r\n\t\t } \r\n\t\t }\r\n\t\t \r\n\t}\r\n\t\tiReferRoomDao dao = ReferRoomDao.getInstance();\r\n\r\n\t\tboolean isS = dao.add_ReferR(new ReferRoomDto(id, title, content, filename));\r\n\t\t\r\n\t\tresp.sendRedirect(\"ReferListCtlr\");\r\n\t}", "@Override\r\n\tpublic void setSession(Map<String, Object> map) {\r\n\t\t sessionMap=(SessionMap<String, Object>)map;\r\n\t\t\r\n\t}", "protected void doPost(HttpServletRequest request,\n HttpServletResponse response) throws ServletException, IOException {\n String userName = request.getParameter(\"userName\");\n String password = request.getParameter(\"password\");\n\n try {\n // constructs SQL statement\n String sql = \"INSERT INTO users(name,password) VALUES ('\"+ userName + \"','\"+ \n password +\"')\";\n // String sql = \"Insert into gallery(name, description, valu\"\n PreparedStatement statement = conn.prepareStatement(sql);\n // statement.setString(1, taskName);\n // statement.setString(2, taskDesc);\n\n //if (inputStream != null) {\n // fetches input stream of the upload file for the blob column\n // statement.setBlob(3, inputStream);\n // }\n statement.executeUpdate(sql);\n // sends the statement to the database server\n //int row = statement.executeUpdate();\n // if (row > 0) {\n // message = \"Image is uploaded successfully into the Database\";\n // }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n // sets the message in request scope\n // request.setAttribute(\"Message\", message);\n\n // forwards to the message page\n // getServletContext().getRequestDispatcher(\"/gallery.xhtml\").forward(\n // request, response);\n response.sendRedirect(\"welcome.xhtml\");\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tServletContext sc = getServletContext();\n\t\tString path = sc.getRealPath(\"/WEB-INF/classes/settings.properties\");\n\t\tProperties props = new Properties();// 读取文件类型创建对象。\n\t\tprops.load(new FileInputStream(path));\n\t\tString fdfsUrl = props.getProperty(\"fdfsUrl\");\n\t\t// System.out.println(value);//结果:a2\n\t\tString callback = request.getParameter(\"callback\");\n\t\tString result = \"login\";\n\t\tProxyClient client = SessionUtil.getClient(request.getSession());\n\t\tMap<String, Object> map = new HashMap<>();\n\t\tif (client == null) {\n\t\t\t// 跳转到登录页面\n\t\t\tmap.put(\"net\", -1);\n\t\t\tmap.put(\"msg\", result);\n\t\t} else {\n\t\t\tList<Message> list = client.receiveMessage();\n\t\t\tBASE64Encoder encoder = new sun.misc.BASE64Encoder();\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tString attachment = list.get(i).getAttachment();\n\t\t\t\tif (!\"\".equals(attachment) && attachment != null) {\n\t\t\t\t\tJSONObject jsonObject = JSONObject.fromObject(attachment);\n\t\t\t\t\tif (jsonObject.containsKey(\"thumbnail\")) {\n\t\t\t\t\t\tString thumbnail = jsonObject.get(\"thumbnail\").toString();\n\t\t\t\t\t\tString format = thumbnail.split(\"\\\\.\")[1];\n\t\t\t\t\t\tString tppath = thumbnail.replace(\"M00\", fdfsUrl);\n\t\t\t\t\t\tFile file = new File(tppath);\n\t\t\t\t\t\tString dataUrl = null;\n\t\t\t\t\t\tif (file.exists()) {\n\t\t\t\t\t\t\tBufferedImage bi;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tbi = ImageIO.read(file);\n\t\t\t\t\t\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\t\t\t\t\t\tImageIO.write(bi, format, baos);\n\t\t\t\t\t\t\t\tbyte[] bytes = baos.toByteArray();\n\t\t\t\t\t\t\t\tdataUrl = encoder.encodeBuffer(bytes).trim();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (dataUrl != null) {\n\t\t\t\t\t\t\tdataUrl = \"data:image/\" + format + \";base64,\" + dataUrl;\n\t\t\t\t\t\t\tjsonObject.put(\"thumbnail\", dataUrl);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlist.get(i).setAttachment(jsonObject.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\tmap.put(\"net\", client.getSynced()); // 网络状态声明\n\t\t\tmap.put(\"msg\", list); // 消息内容\n\t\t\tGson json = new Gson();\n\t\t\tresult = json.toJson(map);\n\t\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\t\tPrintWriter out = response.getWriter();\n\t\t\tif (callback != null && callback.length() > 0) {\n\t\t\t\t// 以jsonp方式处理\n\t\t\t\tresponse.setHeader(\"Content-type\", \"application/x-javascript;charset=utf-8\");\n\t\t\t\tout.print(callback + \"(\" + result + \");\");\n\t\t\t} else {\n\t\t\t\t// 直接返回json\n\t\t\t\tresponse.setContentType(\"text/json;charset=UTF-8\");\n\t\t\t\tout.print(result);\n\t\t\t}\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t}\n\t}", "public ServletRequest getServletRequest() {\n/* 85 */ return this.request;\n/* */ }", "protected Object formBackingObject(HttpServletRequest request) throws ServletException {\r\n \t\t\r\n \t\treturn \"\";\r\n \t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "private Map<String, String> getParams(final HttpServletRequest request) {\n final Map<String, String> params = new HashMap<>();\n for (final Map.Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\n params.put(entry.getKey(), entry.getValue()[0]);\n }\n return params;\n }", "protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response) throws ServletException, IOException {\n \trequest.setCharacterEncoding(\"UTF-8\");\r\n String name = request.getParameter(\"name\");\r\n float price=Float.parseFloat(request.getParameter(\"price\"));\r\n String description=request.getParameter(\"description\");\r\n System.out.println(\"name\"+name);\r\n System.out.println(\"price\"+price);\r\n System.out.println(\"description:\"+description);\r\n InputStream inputStream = null; // input stream of the upload file\r\n \r\n // obtains the upload file part in this multipart request\r\n Part filePart = request.getPart(\"photo\");\r\n if (filePart != null) {\r\n \tItem item=new Item();\r\n // prints out some information for debugging\r\n System.out.println(filePart.getSize());//得到文件大小\r\n System.out.println(filePart.getContentType());//得到文件类型(这里上传的是图片)\r\n System.out.println(filePart.getSubmittedFileName());//得到文件名字\r\n String filename=filePart.getSubmittedFileName();\r\n // obtains input stream of the upload file\r\n inputStream = filePart.getInputStream();\r\n OutputStream outputStream = null;\r\n try{\r\n \trequest.setAttribute(\"Message\", \"成功\");\r\n \t//上传图片的保存路径\r\n String filepath=\"E:\\\\workspace\\\\SchoolTrade\\\\WebContent\\\\uploaddata\\\\\"+filename;\r\n File file=new File(filepath);\r\n \toutputStream=new FileOutputStream(file);\r\n byte[] bytes = new byte[1024];\r\n int num = 0;\r\n while ((num = inputStream.read(bytes)) != -1) {\r\n outputStream.write(bytes, 0, num);\r\n outputStream.flush();\r\n }\r\n HttpSession session=request.getSession();\r\n User user=(User)session.getAttribute(\"user\");\r\n item.setOwnerName(user.getName());\r\n item.setPic(filePart.getSubmittedFileName());\r\n item.setName(name);\r\n item.setDescription(description);\r\n item.setPrice(price);\r\n \r\n }catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \te.printStackTrace();\r\n \trequest.setAttribute(\"Message\", \"失败\");\r\n \tSystem.out.println(\"复制文件出现错误\");\r\n \tinputStream=null;\r\n \toutputStream=null;\r\n getServletContext().getRequestDispatcher(\"/failMessage.jsp\").forward(request, response);\r\n\t\t\t}finally {\r\n\t\t\t\tif(inputStream!=null){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tinputStream.close();\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\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\tif(outputStream!=null){\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\toutputStream.close();\r\n\t\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\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\tItemService itemService=new ItemServiceImplement();\r\n\t\t\t\titemService.uploadItem(item);\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n }\r\n getServletContext().getRequestDispatcher(\"/successMessage.jsp\").forward(request, response);\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n String title = \"Reading All Request Parameters\";\n\n\tout.println(\"<head><title>ShowParameters Servlet</title></head>\");\n\n out.println(\"<BODY BGCOLOR=\\\"#FDF5E6\\\">\\n\" +\n \"<H1 ALIGN=CENTER>\" + title + \"</H1>\\n\" +\n \"<TABLE BORDER=1 ALIGN=CENTER>\\n\" +\n \"<TR BGCOLOR=\\\"#FFAD00\\\">\\n\" +\n \"<TH>Parameter Name<TH>Parameter Value(s)\");\n\n Enumeration paramNames = request.getParameterNames();\n\n \twhile(paramNames.hasMoreElements())\n \t{\n \t \tString paramName = (String)paramNames.nextElement();\n \t \tout.print(\"<TR><TD>\" + paramName + \"<TD>\");\n\n \t\tString[ ] paramValues = request.getParameterValues(paramName);\n\n \t\tif (paramValues.length == 1)// array is one entry long? contains only empty string\n \t\t{\n \t\tString paramValue = paramValues[0];\n \t\tif (paramValue.length() == 0)\t//parameter has no value\n \t\t\t out.println(\"<I>No Value</I>\"); //displays in italic\n \t\telse\n \t\t\tout.println(paramValue);\n \t\t}\n \t\telse\t\t\t//parameter has multiple values\n \t\t{\n \t\tout.println(\"<UL>\");\n \t\tfor(int i=0; i<paramValues.length; i++)\n \t\t{\n \t\t\tout.println(\"<LI>\" + paramValues[i]);\t\t//values are dislayed\n \t\t}\n\n \t\tout.println(\"</UL>\");\n \t\t}\n \t}\n\n \tout.println(\"</TABLE>\\n</BODY></HTML>\");\n } finally { \n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException{\n response.setContentType(\"text/html;charset=UTF-8\");\n\n HttpSession session = request.getSession(true);\n WebUser user = (WebUser) session.getAttribute(\"loggedInUser\");\n String capacity = request.getParameter(\"capacity\");\n int wsCapacity = Integer.parseInt(capacity);\n String workshopId = request.getParameter(\"workshopId\");\n int wsId = Integer.parseInt(workshopId);\n String token = user.getToken();\n int staffId = user.getStaffId();\n SettingDAO sDAO = new SettingDAO();\n String isSuccess = sDAO.editServiceCapacity(staffId, token, wsId, wsCapacity);\n\n if (isSuccess.length() == 0) {\n session.setAttribute(\"success\", \"Service Capacity Updated!\");\n response.sendRedirect(\"Settings.jsp\");\n } else {\n session.setAttribute(\"fail\", isSuccess);\n response.sendRedirect(\"Settings.jsp\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n HttpSession session = request.getSession();\r\n\r\n boolean adminSession;\r\n try {\r\n adminSession = (Boolean) session.getAttribute(\"mainAdminSession\");\r\n } catch (Exception e) {\r\n LOGGER.log(Level.INFO, \"Main admin session is null\");\r\n LOGGER.log(Level.INFO, \"Requesting dispatch to forward to: index.jsp\");\r\n request.getRequestDispatcher(\"index.jsp\").forward(request, response);\r\n return;\r\n }\r\n\r\n if (adminSession == false) {\r\n try {\r\n adminSession = (Boolean) session.getAttribute(\"subAdminSession\");\r\n } catch (Exception e) {\r\n LOGGER.log(Level.INFO, \"Sub admin session is null\");\r\n LOGGER.log(Level.INFO, \"Requesting dispatch to forward to: index.jsp\");\r\n request.getRequestDispatcher(\"index.jsp\").forward(request, response);\r\n return;\r\n }\r\n }\r\n\r\n //Check session type\r\n LOGGER.log(Level.INFO, \"Checking session type\");\r\n if (adminSession == false) {\r\n //Admin session not established\r\n LOGGER.log(Level.INFO, \"Admin session not established hence not responding to the request\");\r\n\r\n String path = (String) session.getAttribute(\"home\");\r\n LOGGER.log(Level.INFO, \"Path is: {0}\", path);\r\n String destination = \"/WEB-INF/views\" + path + \".jsp\";\r\n try {\r\n LOGGER.log(Level.INFO, \"Dispatching request to: {0}\", destination);\r\n request.getRequestDispatcher(destination).forward(request, response);\r\n } catch (ServletException | IOException e) {\r\n LOGGER.log(Level.INFO, \"Request dispatch failed\");\r\n }\r\n\r\n } else if (adminSession == true) {\r\n //Admin session established\r\n LOGGER.log(Level.INFO, \"Admin session established hence responding to the request\");\r\n\r\n String path = request.getServletPath();\r\n String destination;\r\n Map<RatingTypeDetail, List<RatingDetails>> ratingTypeAndValuesMap = new HashMap<>();\r\n\r\n switch (path) {\r\n case \"/addRating\":\r\n\r\n //Read in details for the rating\r\n LOGGER.log(Level.INFO, \"Reading in details for the rating\");\r\n rating = new RatingDetails();\r\n rating.setActive(true);\r\n rating.setRatingType(RatingTypeDetail.getRatingType(Short.parseShort(request.getParameter(\"ratingType\"))));\r\n if (rating.getRatingType().equals(RatingTypeDetail.PERCENTAGE)) {\r\n rating.setRating(request.getParameter(\"ratingValue\") + \"%\");\r\n } else {\r\n rating.setRating(request.getParameter(\"ratingValue\"));\r\n }\r\n\r\n //Send the details to the entity manager for recording in the database\r\n LOGGER.log(Level.INFO, \"Sending the details to the entity manager for recording in the database\");\r\n try {\r\n ratingService.addRating(rating);\r\n } catch (InvalidArgumentException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Retrieve the new list of rating records from the database\r\n LOGGER.log(Level.INFO, \"Retrieving the new list of rating records from the database\");\r\n try {\r\n ratingTypeAndValuesMap = ratingService.retrieveRatings();\r\n } catch (InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Avail the ratings session\r\n LOGGER.log(Level.INFO, \"Availing the ratings in session\");\r\n session.setAttribute(\"ratingTypeAndValuesMap\", ratingTypeAndValuesMap);\r\n\r\n //Display the new list of rating records\r\n generateTableBody(ratingTypeAndValuesMap, session, response);\r\n return;\r\n\r\n case \"/editRating\":\r\n\r\n //Read in details for the rating\r\n LOGGER.log(Level.INFO, \"Reading in details for the rating\");\r\n rating = new RatingDetails();\r\n rating.setActive(true);\r\n rating.setId(Short.parseShort(request.getParameter(\"ratingId\")));\r\n rating.setRatingType(RatingTypeDetail.getRatingType(Short.parseShort(request.getParameter(\"ratingType\"))));\r\n if (rating.getRatingType().equals(RatingTypeDetail.PERCENTAGE)) {\r\n rating.setRating(request.getParameter(\"ratingValue\") + \"%\");\r\n } else {\r\n rating.setRating(request.getParameter(\"ratingValue\"));\r\n }\r\n\r\n //Send the details to the entity manager for recording in the database\r\n LOGGER.log(Level.INFO, \"Sending the details to the entity manager for record update in the database\");\r\n try {\r\n ratingService.editRating(rating);\r\n } catch (InvalidArgumentException | InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Retrieve the new list of rating records from the database\r\n LOGGER.log(Level.INFO, \"Retrieving the new list of rating records from the database\");\r\n try {\r\n ratingTypeAndValuesMap = ratingService.retrieveRatings();\r\n } catch (InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Display the new list of rating records\r\n generateTableBody(ratingTypeAndValuesMap, session, response);\r\n return;\r\n\r\n case \"/removeRating\":\r\n\r\n //Send the details to the entity manager for record removal from the database\r\n LOGGER.log(Level.INFO, \"Sending the details to the entity manager for record removal from the database\");\r\n try {\r\n ratingService.removeRating(Short.parseShort(request.getParameter(\"ratingId\")));\r\n } catch (InvalidArgumentException | InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Retrieve the new list of rating records from the database\r\n LOGGER.log(Level.INFO, \"Retrieving the new list of rating records from the database\");\r\n try {\r\n ratingTypeAndValuesMap = ratingService.retrieveRatings();\r\n } catch (InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Display the new list of rating records\r\n generateTableBody(ratingTypeAndValuesMap, session, response);\r\n\r\n return;\r\n }\r\n destination = \"WEB-INF/views\" + path + \".jsp\";\r\n try {\r\n LOGGER.log(Level.INFO, \"Dispatching request to: {0}\", destination);\r\n request.getRequestDispatcher(destination).forward(request, response);\r\n } catch (ServletException | IOException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(\"redirection_failed\"));\r\n LOGGER.log(Level.INFO, bundle.getString(\"redirection_failed\"), e);\r\n }\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "HttpServletRequest getCurrentRequest();", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n String url = ERROR;\r\n boolean valid = true;\r\n try {\r\n\r\n boolean isMultiPart = ServletFileUpload.isMultipartContent(request);\r\n if (!isMultiPart) {\r\n url = INVALID;\r\n } else {\r\n FileItemFactory factory = new DiskFileItemFactory();\r\n ServletFileUpload upload = new ServletFileUpload(factory);\r\n List items = null;\r\n try {\r\n items = upload.parseRequest(request);\r\n } catch (FileUploadException e) {\r\n LOGGER.error(\"Error at CreateProductController: \" + e.toString());\r\n }\r\n Iterator iter = items.iterator();\r\n Hashtable params = new Hashtable();\r\n String fileName = null;\r\n while (iter.hasNext()) {\r\n FileItem item = (FileItem) iter.next();\r\n if (item.isFormField()) {\r\n params.put(item.getFieldName(), item.getString());\r\n } else {\r\n try {\r\n String itemName = item.getName();\r\n fileName = itemName.substring(itemName.lastIndexOf(\"\\\\\") + 1);\r\n String RealPath = getServletContext().getRealPath(\"/\") + \"images\\\\\" + fileName;\r\n File saveFile = new File(RealPath);\r\n File destFile = new File(RealPath);\r\n if (destFile.exists()) {\r\n destFile.delete();\r\n item.write(saveFile);\r\n } else {\r\n item.write(saveFile);\r\n }\r\n } catch (Exception e) {\r\n LOGGER.error(\"Error at CreateProductController: \" + e.toString());\r\n }\r\n }\r\n }\r\n String name = (String) params.get(\"txtName\");\r\n String priceString = (String) params.get(\"txtPrice\");\r\n String description = (String) params.get(\"txtDescription\");\r\n String quantityString = (String) params.get(\"txtQuantity\");\r\n String createDateString = (String) params.get(\"txtCreateDate\");\r\n String expireDateString = (String) params.get(\"txtExpireDate\");\r\n String categoryID = (String) params.get(\"txtCategoryID\");\r\n String status = \"active\";\r\n ProductError error = new ProductError();\r\n ProductDAO dao = new ProductDAO();\r\n HttpSession session = request.getSession();\r\n UserDTO user = (UserDTO) session.getAttribute(\"USER_INFO\");\r\n double price = 0;\r\n int quantity = 0;\r\n if (name.isEmpty()) {\r\n valid = false;\r\n error.setName(\"Name can't be empty\");\r\n }\r\n if (priceString.isEmpty()) {\r\n valid = false;\r\n error.setPrice(\"Price can't be empty\");\r\n }\r\n if (description.isEmpty()) {\r\n valid = false;\r\n error.setDescription(\"Description can't be empty\");\r\n }\r\n if (quantityString.isEmpty()) {\r\n valid = false;\r\n error.setQuantity(\"Quantity can't be empty\");\r\n }\r\n\r\n if (createDateString.isEmpty()) {\r\n valid = false;\r\n error.setCreateDate(\"CreateDate can't be empty\");\r\n }\r\n if (expireDateString.isEmpty()) {\r\n valid = false;\r\n error.setExpireDate(\"ExpireDate can't be empty\");\r\n }\r\n\r\n if (valid == true) {\r\n price = Double.parseDouble(priceString);\r\n quantity = Integer.parseInt(quantityString);\r\n\r\n if (price < 0) {\r\n valid = false;\r\n error.setPrice(\"Price can't be negative\");\r\n }\r\n\r\n if (price > 500) {\r\n valid = false;\r\n error.setPrice(\"Price can't be Over 500\");\r\n }\r\n if (quantity < 0) {\r\n valid = false;\r\n error.setQuantity(\"Quantity can't be negative\");\r\n }\r\n\r\n if (quantity == 0) {\r\n status = \"inactive\";\r\n }\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n Date creDate = formatter.parse(createDateString);\r\n Date exDate = formatter.parse(expireDateString);\r\n Date today = new Date();\r\n\r\n if (creDate.after(today)) {\r\n status = \"inactive\";\r\n }\r\n\r\n if (exDate.equals(today) || exDate.before(today)) {\r\n status = \"inactive\";\r\n }\r\n\r\n if (creDate.after(exDate) || exDate.before(creDate)) {\r\n valid = false;\r\n error.setCreateDate(\"Create date can't be over expire date\");\r\n error.setExpireDate(\"Expire date can't be before create date\");\r\n }\r\n\r\n if (valid == true) {\r\n String uniqueID = null;\r\n do {\r\n uniqueID = UUID.randomUUID().toString();\r\n } while (dao.checkProductIDExist(uniqueID));\r\n ProductDTO dto = new ProductDTO(uniqueID, name, fileName, categoryID, price, quantity, description, createDateString, expireDateString, \"\", status);\r\n if (dao.insertNewProduct(dto)) {\r\n String logID = null;\r\n do {\r\n logID = UUID.randomUUID().toString();\r\n } while (dao.checkLogIDExist(uniqueID));\r\n LogDTO log = new LogDTO(logID, user.getUserID(), uniqueID, \"\");\r\n\r\n if (dao.insertNewLog(log)) {\r\n url = SUCCESS;\r\n request.setAttribute(\"NOTE\", \"A new product has been created\");\r\n } else {\r\n url = INVALID;\r\n request.setAttribute(\"PRODUCT_INFO\", dto);\r\n request.setAttribute(\"NOTE\", \"Unable to create product\");\r\n }\r\n\r\n } else {\r\n url = INVALID;\r\n request.setAttribute(\"PRODUCT_INFO\", dto);\r\n request.setAttribute(\"NOTE\", \"Unable to create product\");\r\n }\r\n } else {\r\n request.setAttribute(\"ERROR_PRODUCT\", error);\r\n url = INVALID;\r\n }\r\n\r\n } else {\r\n request.setAttribute(\"ERROR_PRODUCT\", error);\r\n url = INVALID;\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n LOGGER.error(\"Error at CreateProductController: \" + e.toString());\r\n } finally {\r\n request.getRequestDispatcher(url).forward(request, response);\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n PrintWriter out = null;\n JSONObject outputObject = new JSONObject();\n try {\n \n HashMap<String,String> bigItemIds = new HashMap<>();\n Iterator mIterator = bigItemIds.keySet().iterator();\n out = response.getWriter();\n // Create a factory for disk-based file items\n DiskFileItemFactory factory = new DiskFileItemFactory();\n\n // Configure a repository (to ensure a secure temp location is used)\n ServletContext servletContext = this.getServletConfig().getServletContext();\n File repository = (File) servletContext.getAttribute(\"javax.servlet.context.tempdir\");\n factory.setRepository(repository);\n\n // Create a new file upload handler\n ServletFileUpload upload = new ServletFileUpload(factory);\n // Parse the request\n List<FileItem> items = upload.parseRequest(request);\n \n final String moveId = UUID.randomUUID().toString();\n final MovesDb movesDb = new MovesDb();\n // Process the uploaded items\n Iterator<FileItem> iter = items.iterator();\n while (iter.hasNext()) {\n FileItem item = iter.next();\n\n if (item.isFormField()) {\n \n System.out.println(\"Form field\" +item.getString());\n \n bigItemIds = processFormField(new JSONObject( item.getString()), out,moveId,movesDb);\n mIterator = bigItemIds.keySet().iterator();\n System.out.println(\"ITEM ID SIZE \"+bigItemIds.size());\n \n } else {\n //processUploadedFile(item);\n System.out.print(\"Photo Field\");\n String key = (String) mIterator.next();\n File mFile = new File(bigItemIds.get(key));\n item.write(mFile);\n \n \n \n \n }\n }\n new Thread(){\n \n public void run(){\n pushMovetoMailQueue moveToMailQueue= new pushMovetoMailQueue();\n moveToMailQueue.pushMoveToMailQueue(movesDb);\n }\n }.start();\n outputObject = new JSONObject();\n try {\n outputObject.put(Constants.JSON_STATUS, Constants.JSON_SUCCESS);\n outputObject.put(Constants.JSON_MSG,Constants.JSON_GET_QUOTE);\n } catch (JSONException ex1) {\n Logger.getLogger(doSignUp.class.getName()).log(Level.SEVERE, null, ex1);\n }\n \n out.println(outputObject.toString());\n \n \n \n \n }catch(Exception ex){\n \n outputObject = new JSONObject();\n try {\n outputObject.put(Constants.JSON_STATUS, Constants.JSON_FAILURE);\n outputObject.put(Constants.JSON_MSG,Constants.JSON_EXCEPTION);\n } catch (JSONException ex1) {\n Logger.getLogger(doSignUp.class.getName()).log(Level.SEVERE, null, ex1);\n }\n \n out.println(outputObject.toString());\n Logger.getLogger(doSignUp.class.getName()).log(Level.SEVERE, null, ex);\n }finally{\n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n String accion = request.getParameter(\"action_form\");\r\n //String accion = request.getParameter(\"action_form\");\r\n \r\n if(accion.equals(\"ingreso_art\")){\r\n response.sendRedirect(\"ingresarArticulo.jsp\");\r\n }else{\r\n request.getSession().setAttribute(\"categoria\", accion); \r\n response.sendRedirect(\"index.jsp\");\r\n }\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet TakerInfo</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet TakerInfo at \" + accion + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n HttpSession session=request.getSession(); \n /*\n *Change the directory. Must be absolute. \n */\n String UPLOAD_DIRECTORY = \"C:\\\\Users\\\\Yuta\\\\Documents\\\\NetBeansProjects\\\\hoamisgit\\\\web\\\\ourFiles\\\\uploads\";\n if(ServletFileUpload.isMultipartContent(request)){\n try {\n List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);\n for(FileItem item : multiparts){\n if(!item.isFormField()){\n File a = new File(UPLOAD_DIRECTORY + File.separator + item.getName());\n String name = a.getName();\n String loc = UPLOAD_DIRECTORY + File.separator + item.getName();\n User user = (User)session.getAttribute(\"UserObj\");\n \n if (a.exists()){\n //session.setAttribute(\"message\", \"File Already exists\");\n }\n else{\n // session.setAttribute(\"message\", \"File Uploaded Successfully\");\n item.write( new File(UPLOAD_DIRECTORY + File.separator + name));\n }\n \n \n Document document = new Document(name, loc, new Folder(Integer.parseInt(String.valueOf(session.getAttribute(\"curFolder\")))), user);\n System.out.println(\"Document ID: \"+document.getDescription());\n System.out.println(\"Folder ID: \"+document.getFolder().getFolderID());\n if(DocumentDAO.checkDuplicateDoc(document)){\n if(evaluateSize(item)){\n if(name.length() <=45){\n DocumentDAO.addDocument(document);\n session.setAttribute(\"message\", \"File Uploaded Successfully\");\n }\n else{\n session.setAttribute(\"message\", \"File Name too long [45 Characters]\");\n }\n }\n else{\n session.setAttribute(\"message\", \"File Size Exceeds Limit [100MB]\");\n } \n }\n else{\n session.setAttribute(\"message\", \"File Already exists\");\n }\n }\n } //File uploaded successfully\n } catch (Exception ex) {\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n } \n response.sendRedirect(\"HomeDocu?fid=\"+String.valueOf(session.getAttribute(\"curFolder\")));\n }\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n // recupero la session\r\n HttpSession session = request.getSession(true);\r\n //traigo los valores del JSp mostrar\r\n String accion = request.getParameter(\"ACCION\");\r\n //si quiere agregar\r\n if (\"AGREGAR\".equals(accion)) {\r\n // llamo al metodo listar\r\n List<Perfil> lista = perfilListar();\r\n //lo guardo en la sesion\r\n session.setAttribute(\"Lista_Perfil\", lista);\r\n //redirije al JSP Agregar\r\n Util.Util.dispatcher(request, response, \"/usuario/AgregarUsuario.jsp\");\r\n } else if (\"ELIMINAR\".equals(accion)) {\r\n //redirije al JSP eliminar\r\n Util.Util.dispatcher(request, response, \"/usuario/EliminarUsuario.jsp\");\r\n } else if (\"MODIFICAR\".equals(accion)) {\r\n //traigo los valores a modificar\r\n String rut = request.getParameter(\"rutmod\");\r\n String nombre = request.getParameter(\"nombremod\");\r\n String apellidoPaterno = request.getParameter(\"apPatMod\");\r\n String apellidoMaterno = request.getParameter(\"apMatMod\");\r\n String fechaNacimiento = request.getParameter(\"fecha\");\r\n String correo = request.getParameter(\"correoMod\");\r\n String password = request.getParameter(\"passwordMod\");\r\n String idPerfil = request.getParameter(\"perfilMod\");\r\n\r\n Date f = Util.Util.stringADate(fechaNacimiento);\r\n int i = Integer.parseInt(idPerfil);\r\n //creo el objeto usuario\r\n Usuario u = new Usuario(rut, nombre, apellidoPaterno, apellidoMaterno, f, correo, password, i);\r\n //lo guardo en la sesion\r\n session.setAttribute(\"Usuario\", u);\r\n //llamo al metodo listar perfiles\r\n List<Perfil> lista = perfilListar();\r\n //lo guardo en la sesion\r\n session.setAttribute(\"Lista_Perfil\", lista);\r\n Util.Util.dispatcher(request, response, \"/usuario/ModificarUsuario.jsp\");\r\n // si quiere eliminar\r\n } //si quiere volver al menu\r\n else if (\"VOLVER\".equals(accion)) {\r\n //redirije al JSP del menu\r\n\r\n String tipoUsuario = (String) session.getAttribute(\"TIPO_USUARIO\");\r\n if (\"adm\".equals(tipoUsuario)) {\r\n Util.Util.dispatcher(request, response, \"/administrador/MenuAdmin.jsp\");\r\n } else {\r\n Util.Util.dispatcher(request, response, \"/usuario/MenuUsuario.jsp\");\r\n }\r\n }\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet UsuarioServletInicial</title>\");\r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet UsuarioServletInicial at \" + request.getContextPath() + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "@RequestMapping(value = \"/session_form.htm\",method = RequestMethod.GET)\r\n\tpublic String sessionForm(ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\tUserController.protectRoute(session,response);\r\n\t\t\r\n\t\treturn \"home\";\r\n\t}", "public HttpServletRequest getServletRequest()\r\n/* 39: */ {\r\n/* 40: 74 */ return this.servletRequest;\r\n/* 41: */ }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n\r\n if (request.getParameterValues(\"btLongin\") != null) {\r\n Iterator it2 = null;\r\n Person e = new Person();\r\n PersonController eC = new PersonController();\r\n\r\n e.setEmail(request.getParameter(\"txtEmail\"));\r\n e.setPassword(request.getParameter(\"txtPassword\"));\r\n \r\n HttpSession sessionU= request.getSession();\r\n if (eC.login(e) == true) { \r\n eC.getPerson(e);\r\n it2 = eC.getEmployeeList().iterator();\r\n if(it2.hasNext())\r\n {\r\n e=(Person)it2.next();\r\n sessionU.setAttribute(\"session\", e.getCode());\r\n sessionU.setAttribute(\"session2\", e.getName());\r\n sessionU.setAttribute(\"session3\", e.getAddress());\r\n sessionU.setAttribute(\"session4\", e.getNumber());\r\n sessionU.setAttribute(\"session5\", e.getLastName());\r\n eC = null;\r\n if(e.getName()!= null){\r\n sessionU.setAttribute(\"show\", \"si\");\r\n }else {\r\n sessionU.setAttribute(\"show\", \"no\");\r\n }\r\n response.sendRedirect(\"forms/Home.jsp\");\r\n }\r\n \r\n \r\n \r\n \r\n\r\n } else {\r\n e = null;\r\n eC = null;\r\n response.sendRedirect(\"forms/Login_1.jsp\");\r\n\r\n }\r\n }\r\n\r\n }\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // detecta si es una carga multimedia\n if (!ServletFileUpload.isMultipartContent(request)) {\n // detente si no\n PrintWriter writer = response.getWriter();\n writer.println (\"Error: el formulario debe contener enctype = multipart / form-data\");\n writer.flush();\n return;\n }\n\n // Configurar parámetros de carga\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // Establecer los archivos temporales de umbral de memoria se generarán y almacenarán en el directorio temporal\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n // Establecer el directorio de almacenamiento temporal\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\n ServletFileUpload upload = new ServletFileUpload(factory);\n\n // Establecer el valor máximo de carga de archivos\n upload.setFileSizeMax(MAX_FILE_SIZE);\n\n // Establecer el valor máximo de solicitud (incluidos los datos de archivo y formulario)\n upload.setSizeMax(MAX_REQUEST_SIZE);\n\n // procesamiento chino\n upload.setHeaderEncoding(\"UTF-8\");\n\n // Construye una ruta temporal para almacenar archivos cargados\n // Esta ruta es relativa al directorio actual de la aplicación\n String uploadPath = request.getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n\n // Crear si el directorio no existe\n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n\n try {\n // Analiza el contenido solicitado para extraer los datos del archivo\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n\n if (formItems != null && formItems.size() > 0) {\n // iterar sobre los datos del formulario\n for (FileItem item : formItems) {\n // manejar campos que no están en el formulario\n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n File storeFile = new File(filePath);\n // Salida de la ruta de carga del archivo en la consola\n System.out.println(filePath);\n // guardar archivo en el disco duro\n item.write(storeFile);\n request.setAttribute (\"mensaje\", \"¡Archivo cargado correctamente!\");\n hilo = new HiloCargadeDatos(storeFile);\n hilo.start();\n }\n }\n }\n } catch (Exception ex) {\n request.setAttribute (\"mensaje\", \"Mensaje de error:\" + ex.getMessage ());\n }\n\n // Nos redirigimos a la página para que nos muestre los errores\n request.getServletContext().getRequestDispatcher(\"/subir.jsp\").forward(request, response);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n request.setCharacterEncoding(\"UTF-8\");\n \n HttpSession session = request.getSession();\n \n String totalApartments = request.getParameter(\"apartment_count\");\n String boxPosition = request.getParameter(\"box_position\");\n String energyPoint = request.getParameter(\"point_energy\");\n String note = request.getParameter(\"note\"); \n String exit = request.getParameter(\"exit\");\n String save = request.getParameter(\"save\");\n String status = request.getParameter(\"status\");\n \n if (save != null) { \n rDAO = new ReportDAOImpl();\n tDAO = new TaskDAOImpl();\n long taskId = Long.parseLong(save);\n task = tDAO.getTask(taskId);\n report = new Report();\n report.setReportAddress(task.getAddress());\n report.setTotalApartments(Integer.parseInt(totalApartments));\n report.setBoxPosition(boxPosition);\n report.setPointEnergy(energyPoint);\n report.setNote(note);\n rDAO.insertReport(taskId, report);\n if (\"exec\".equals(status)) {\n task.setTaskStatus(TaskStatusEnum.COMPLETED);\n tDAO.updateStatus(task);\n }\n if (\"cancel\".equals(status)) {\n task.setTaskStatus(TaskStatusEnum.CANCELED);\n tDAO.updateStatus(task);\n } \n session.setAttribute(\"tasks\", tDAO.getAllToExecutor(task.getExecutor()));\n request.setAttribute(\"tasks\", session.getAttribute(\"tasks\")); \n request.getRequestDispatcher(\"/fitter_page/fitter_page.jsp\").forward(request, response); \n } \n if (exit != null) { \n request.setAttribute(\"tasks\", session.getAttribute(\"tasks\")); \n request.getRequestDispatcher(\"/fitter_page/fitter_page.jsp\").forward(request, response); \n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n\n final String gameName = request.getParameter(Constants.GAME_NAME_ATTRIBUTE_NAME);\n final String creatorName = SessionUtils.getSessionUsername(request);\n final Part filePart = request.getPart(\"file\"); // Retrieves <input type=\"file\" name=\"file\">\n final String fileName = getSubmittedFileName(filePart);\n\n try {\n InputStream fileContent = filePart.getInputStream();\n File outputTempFile = InputFileUtils.inputStreamToFile(fileContent, DIRECTORY_NAME, FILE_NAME_START + tempSaveCounter++, \"xml\");\n\n GameConfig gameConfig = new GameConfig();\n gameConfig.load(outputTempFile);\n Game game = gameConfig.initiateGameFromGenerated();\n\n int currentGameVersion = SessionUtils.getGameVersion(request);\n\n processGameRecord(gameName, creatorName, game, currentGameVersion);\n\n request.getSession().setAttribute(Constants.GAME_NAME_ATTRIBUTE_NAME, gameName);\n request.getSession().setAttribute(Constants.PLAYER_TYPE_ATTRIBUTE, Player.Type.PLAYER_ONE);\n System.out.println(\"GameRecord inserted successfully\");\n\n response.sendRedirect(Constants.GAME_URI);\n //DEBUG: System.out.println(\"The game \" + gameName + \" was saved on session \" + request.getSession().toString());\n } catch (RecordAlreadyExistsException e) {\n // player is already in game, transfer to its game\n //request.getSession().setAttribute(Constants.GAME_NAME_ATTRIBUTE_NAME, gameName);\n response.sendRedirect(Constants.DUPLICATE_GAME_URI);\n\n } catch (JAXBException | ConfigException e) {\n // error in parsing file\n handleErrorInParsingFile(request, response, fileName, e);\n }\n }", "public abstract FullResponse onServeFormParams(Map<String, List<String>> formParams);", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet savepic</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet savepic at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "public void init( ){\n\t filePath = \n\t getServletContext().getInitParameter(\"file-upload\"); \n\t }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n String url=PREPARE_SHOP_PAGE_CONTROLLER;\r\n HttpSession session=request.getSession();\r\n try {\r\n AccountDTO account=(AccountDTO)session.getAttribute(\"ACCOUNT\");\r\n if(account!=null && account.isAdmin()){\r\n boolean isMultipart=ServletFileUpload.isMultipartContent(request);\r\n if(isMultipart){\r\n List items=(List)request.getAttribute(\"listFileItem\");\r\n Iterator iter=items.iterator();\r\n Map<String,String> params=new HashMap<String, String>();\r\n String image=\"\";\r\n while(iter.hasNext()){\r\n FileItem item=(FileItem)iter.next();\r\n if(item.isFormField()){\r\n params.put(item.getFieldName(), item.getString());\r\n }else{\r\n try{\r\n byte[] data=item.get();\r\n image=Base64.encodeBase64String(data);\r\n } catch (Exception ex) {\r\n log(\"ERROR at CreateProductServlet: \"+ex.getMessage());\r\n }\r\n \r\n }\r\n }\r\n String proID=params.get(\"proID\");\r\n String cateID=params.get(\"cateID\");\r\n String proName=params.get(\"proName\");\r\n int quantity=Integer.parseInt(params.get(\"quantity\"));\r\n String description=params.get(\"description\");\r\n int price=Integer.parseInt(params.get(\"price\")); \r\n boolean status=params.get(\"status\").equals(\"1\");\r\n ProductDAO proDAO=new ProductDAO();\r\n boolean result;\r\n if(image.isEmpty()){\r\n result =proDAO.updateProduct(proID, cateID, proName, quantity, description, price,status);\r\n }else{\r\n result =proDAO.updateProduct(proID, cateID, proName, quantity, image, description, price,status);\r\n }\r\n \r\n if(result){ \r\n Date currentTime=new Date();\r\n Timestamp updateDate=new Timestamp(currentTime.getTime());\r\n String activity=\"Update_Product: \"+proID;\r\n String userID=account.getUserID();\r\n HistoryDAO historyDAO=new HistoryDAO();\r\n String id=\"\"+historyDAO.countTotal()+1;\r\n historyDAO.addToHistory(id, userID, updateDate, activity); \r\n url=PREPARE_PRODUCT_PAGE_CONTROLLER.concat(\"?proID=\"+proID);\r\n }\r\n }\r\n }\r\n \r\n } catch (NamingException ex) {\r\n Logger.getLogger(UpdateProductServlet.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(UpdateProductServlet.class.getName()).log(Level.SEVERE, null, ex);\r\n }finally{\r\n response.sendRedirect(url);\r\n out.close();\r\n }\r\n }", "@Override\n public String getServletInfo() {\n return \"Handles file upload data from application/octet-stream, and multipart/form-data.\";\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n HttpSession session=request.getSession();\n response.setHeader(\"Cache-Control\",\"no-store\"); //HTTP 1.1\n response.setHeader(\"Pragma\",\"no-cache\"); //HTTP 1.0\n response.setDateHeader(\"Expires\", 0);\n response.setDateHeader(\"Last-Modified\", 0); \n try {\n boolean isMultipart = ServletFileUpload.isMultipartContent( request );\n if ( !isMultipart )\n {\n String modo=request.getParameter(\"modo\"); \n if(modo.equals(\"abrirPdf\")) {\n //if(objetoSesion.isSuperAdministrador() || objetoSesion.getPerfilSelected().getCoreDerechoSistemaList().toString().indexOf(\"D_VER_DEPOSITO\")>-1){ \n CoreDocumento documento=documentoEJBLocal.find(Integer.parseInt(request.getParameter(\"coreDocumentoId\")));\n response.setContentType(\"application/pdf\"); \n response.setHeader(\"Content-Disposition\",\"attachment; filename=\\\"\" + documento.getNombreArchivo() + \"\\\"\"); \n response.getOutputStream().write(documento.getDocumento());\n //}else\n // response.getWriter().println(\"{\\\"success\\\":false,\\\"msg\\\":\\\"Usted no cuenta con los permisos necesarios.\\\"}\");\n }\n }else{ \n ServletFileUpload upload = new ServletFileUpload(); \n try\n {\n byte[] bytes=null;\n String name=null;\n Integer documentoId=null;\n FileItemIterator iter = upload.getItemIterator( request );\n while ( iter.hasNext() )\n {\n FileItemStream item = iter.next();\n String fieldName = item.getFieldName();\n if ( fieldName.equals( \"PDFFile\" ) )\n {\n name=item.getName();\n String[] aname=name.split(\"Id=\");\n bytes = IOUtils.toByteArray( item.openStream() ); \n documentoId=Integer.parseInt(aname[1]);\n }else if(fieldName.equals( \"coreDocumentoId\" ))\n documentoId=Integer.parseInt(Streams.asString(item.openStream()));\n }\n if(documentoId!=null){\n CoreDocumento documento=documentoEJBLocal.find(documentoId);\n documento.setDocumento(bytes);\n response.getWriter().print(documentoEJBLocal.persistir(documento,\"editar\"));\n }\n }\n catch ( IOException ex )\n {\n throw ex;\n }\n catch ( Exception ex )\n {\n throw new ServletException( ex );\n }\n\n }\n }catch (Exception e) {\n if(request.getParameter(\"modo\")==null || request.getParameter(\"modo\").equals(\"listaDocumentos\"))\n response.getWriter().print(\"{\\\"data\\\":[],\\\"total\\\":0}\"); \n else\n response.getWriter().print(\"{\\\"success\\\":false,\\\"msg\\\":\\\"Error al realizar la operacion.\\\"}\");\n }\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n String fileName = \"\";\n byte[] data = null;\n\n FileItemFactory factory = new DiskFileItemFactory();\n ServletFileUpload upload = new ServletFileUpload(factory);\n List /* FileItem */ items = upload.parseRequest(request);\n Iterator iterator = items.iterator();\n\n out.println(\"<html><head><style>body{ font-family: helvetica;</style></head><body><h1>MD5</h1><table border='1'>\");\n\n while(iterator.hasNext()) {\n FileItem fileItem = (FileItem) iterator.next();\n if (! fileItem.isFormField() /*&& fileItem.getName().length() > 0 */) {\n fileName = fileItem.getName();\n data = fileItem.get();\n out.println(\"<tr><td>\" + fileName + \"</td><td>\" + md5sum(data) + \"</td></tr>\");\n }\n }\n\n out.println(\"</table></body></html>\");\n }\n catch (FileUploadException ex) {\n throw new IOException(ex);\n }\n finally {\n out.close();\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here---value-\");\n processRequest(request, response);\n \n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n\r\n String empImgPath = request.getSession(false).getAttribute(\"empImgPath\").toString();\r\n InputStream inputStream = null;\r\n Employee employee = new Employee();\r\n\r\n String process = request.getParameter(\"action\");\r\n String id = request.getParameter(\"id\");\r\n String password = null;\r\n String oldPassword = null;\r\n String oldAvatar = null;\r\n String avatar = null;\r\n\r\n try {\r\n if (\"update_employee\".equals(process)) {\r\n\r\n String username = request.getParameter(\"username\");\r\n String nic = request.getParameter(\"nic\");\r\n String first_name = request.getParameter(\"first_name\");\r\n String last_name = request.getParameter(\"last_name\");\r\n String gender = request.getParameter(\"gender\");\r\n String address_line_01 = request.getParameter(\"address_line_01\");\r\n String address_line_02 = request.getParameter(\"address_line_02\");\r\n String city = request.getParameter(\"city\");\r\n String zip = request.getParameter(\"zip\");\r\n String country = request.getParameter(\"country\");\r\n String contact_number = request.getParameter(\"contact_number\");\r\n String department = request.getParameter(\"department\");\r\n String privilege_mode = request.getParameter(\"privilege_mode\");\r\n String newPassword = request.getParameter(\"password\");\r\n \r\n ResultSet res1 = Employee.readEmployeeProfile(username);\r\n while (res1.next()) {\r\n oldPassword = res1.getString(\"password\");\r\n oldAvatar = res1.getString(\"avatar\");\r\n }\r\n\r\n // obtains the upload file part in this multipart request\r\n Part filePart = request.getPart(\"avatar\");\r\n\r\n if (filePart.getSubmittedFileName() != \"\") {\r\n\r\n // obtains input stream of the upload file\r\n inputStream = filePart.getInputStream();\r\n\r\n // Change the output path accordingly\r\n OutputStream output = new FileOutputStream(empImgPath+id+\".png\");\r\n byte[] buffer = new byte[1024];\r\n while (inputStream.read(buffer) > 0) {\r\n output.write(buffer);\r\n }\r\n \r\n avatar = \"../User/Images/\" + id + \".png\";\r\n\r\n } else {\r\n avatar = oldAvatar;\r\n }\r\n\r\n // If the password is null, old password will be new password\r\n if (\"\".equals(newPassword)) {\r\n password = oldPassword;\r\n } else {\r\n HashPassword hashPassword = new HashPassword(newPassword);\r\n password = hashPassword.generatePassword();\r\n }\r\n\r\n Integer updateEmployee = employee.updateEmployee(id, username, nic, first_name, last_name, gender, address_line_01, address_line_02, city, zip, country, contact_number, avatar, department, privilege_mode, password);\r\n\r\n if (updateEmployee > 0) {\r\n\r\n ResultSet res = Employee.readEmployeeProfile(username);\r\n while (res.next()) {\r\n\r\n // Read table fields and set to session variables\r\n request.getSession().setAttribute(\"p_id\", res.getString(\"id\"));\r\n request.getSession().setAttribute(\"p_username\", res.getString(\"username\"));\r\n request.getSession().setAttribute(\"p_nic\", res.getString(\"nic\"));\r\n request.getSession().setAttribute(\"p_first_name\", res.getString(\"first_name\"));\r\n request.getSession().setAttribute(\"p_last_name\", res.getString(\"last_name\"));\r\n request.getSession().setAttribute(\"p_id\", res.getString(\"id\"));\r\n request.getSession().setAttribute(\"p_address_line_1\", res.getString(\"address_line_1\"));\r\n request.getSession().setAttribute(\"p_address_line_2\", res.getString(\"address_line_2\"));\r\n request.getSession().setAttribute(\"p_city\", res.getString(\"city\"));\r\n request.getSession().setAttribute(\"p_zip\", res.getString(\"zip\"));\r\n request.getSession().setAttribute(\"p_country\", res.getString(\"country\"));\r\n request.getSession().setAttribute(\"p_contact_number\", res.getString(\"contact_number\"));\r\n request.getSession().setAttribute(\"p_avatar\", res.getString(\"avatar\"));\r\n request.getSession().setAttribute(\"p_gender\", res.getString(\"gender\"));\r\n request.getSession().setAttribute(\"p_department\", res.getString(\"department\"));\r\n request.getSession().setAttribute(\"p_privilege_mode\", res.getString(\"privilege_mode\"));\r\n\r\n }\r\n\r\n // Clearing cache to avoid old avatar shown as the new avatar\r\n response.setHeader(\"Cache-Control\", \"no-cache, no-store, must-revalidate\"); // HTTP 1.1.\r\n response.setHeader(\"Pragma\", \"no-cache\"); // HTTP 1.0.\r\n response.setDateHeader(\"Expires\", 0); // Proxies.\r\n request.getSession().setAttribute(\"message\", \"Profile successfully updated\");\r\n response.sendRedirect(\"Dashboard\");\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n out.print(e);\r\n }\r\n\r\n }\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n// params.put(\"email\", email);\n// params.put(\"password\", password);\n\n params.put(\"user_id\",session.getStringSessionData(\"uid\"));\n\n return params;\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n PrintWriter writer = null;\n InputStream is = null;\n FileOutputStream fos = null;\n\n try {\n writer = response.getWriter();\n } catch (IOException ex) {\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n }\n\n boolean isMultiPart = ServletFileUpload.isMultipartContent(request);\n\n if (isMultiPart) {\n log(\"Content-Type: \" + request.getContentType());\n // Create a factory for disk-based file items\n DiskFileItemFactory diskFileItemFactory = new DiskFileItemFactory();\n\n /*\n * Set the file size limit in bytes. This should be set as an\n * initialization parameter\n */\n diskFileItemFactory.setSizeThreshold(1024 * 1024 * 10); //10MB.\n\n\n // Create a new file upload handler\n ServletFileUpload upload = new ServletFileUpload(diskFileItemFactory);\n\n List items = null;\n\n try {\n items = upload.parseRequest(request);\n } catch (FileUploadException ex) {\n log(\"Could not parse request\", ex);\n }\n\n ListIterator li = items.listIterator();\n\n while (li.hasNext()) {\n FileItem fileItem = (FileItem) li.next();\n if (fileItem.isFormField()) {\n if (debug) {\n processFormField(fileItem);\n }\n } else {\n writer.print(processUploadedFile(fileItem));\n }\n }\n }\n\n if (\"application/octet-stream\".equals(request.getContentType())) {\n log(\"Content-Type: \" + request.getContentType());\n String filename = request.getHeader(\"X-File-Name\");\n\n try {\n is = request.getInputStream();\n fos = new FileOutputStream(new File(realPath + filename));\n IOUtils.copy(is, fos);\n response.setStatus(HttpServletResponse.SC_OK);\n writer.print(\"{success: true}\");\n } catch (FileNotFoundException ex) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n writer.print(\"{success: false}\");\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n } catch (IOException ex) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n writer.print(\"{success: false}\");\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n } finally {\n try {\n fos.close();\n is.close();\n } catch (IOException ignored) {\n }\n }\n\n writer.flush();\n writer.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n CalendarDB cdb = new CalendarDB();\n ArrayList<Calendar> cT = new ArrayList<Calendar>();\n ArrayList<Calendar> calist = cdb.getCurrentYearDetails();//gets the phases/today/crop yr\n Integer cropyear = calist.get(0).getYear();\n cT = cdb.getPhases(cropyear);\n if (cT != null) {\n HttpSession session = request.getSession();\n session.setAttribute(\"phase\", cT);\n for(int i=0;i<cT.size();i++){\n session.setAttribute(\"test\"+i, cT.get(i).getDatepickers()+\" - \"+cT.get(i).getDatepickere());\n }\n ServletContext context = getServletContext();\n RequestDispatcher rd = context.getRequestDispatcher(\"/Calendar.jsp\"); \n rd.forward(request, response);\n } else {\n ServletContext context = getServletContext();\n RequestDispatcher rd = context.getRequestDispatcher(\"/index.jsp\");\n rd.forward(request, response);\n }\n }\n }", "@Override\n\tpublic void setSession(Map<String, Object> map) {\n\t\tsessionMap=(SessionMap<String, Object>) map;\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n\n HttpSession session = request.getSession(true);\n AuthTest testauth = new AuthTest();\n boolean authExist = testauth.auth(session);\n\n if (authExist) {\n\n try {\n String idRequest = request.getParameter(\"id_request\");\n HashMap<Integer, Request> history = (HashMap<Integer, Request>) session.getAttribute(\"history\");\n if (idRequest == null || history == null) {\n\n request.getRequestDispatcher(\"/WEB-INF/history.jsp\").forward(request, response);\n } else {\n try {\n\n int id = Integer.parseInt(idRequest);\n Request req = history.get(id);\n if (req == null) {\n throw new ObjectNotFoundException(\"history\", \"request_id\", idRequest);\n }\n session.setAttribute(\"request\", req);\n request.getRequestDispatcher(\"/WEB-INF/details.jsp\").forward(request, response);\n// response.sendRedirect(\"WEB-INF/details.jsp\");\n } catch (NumberFormatException ex) {\n throw new InvalidArgumentException(\"id_request\", idRequest);\n }\n }\n\n } catch (InvalidArgumentException | ObjectNotFoundException ex) {\n Logger.getLogger(Monitor.class.getName()).log(Level.SEVERE, null, ex);\n request.setAttribute(\"error\", ex);\n request.getRequestDispatcher(\"/WEB-INF/error.jsp\").forward(request, response);\n } catch (Exception ex) {\n Logger.getLogger(Monitor.class.getName()).log(Level.SEVERE, null, ex);\n request.setAttribute(\"error\", new UnexpectedErrorException(ex));\n request.getRequestDispatcher(\"/WEB-INF/error.jsp\").forward(request, response);\n }\n } else {\n request.getRequestDispatcher(\"/WEB-INF/errorAuth.jsp\").forward(request, response);\n }\n }", "@Override\n\tpublic void setSession(Map<String, Object> map) {\n\t\tthis.session=map;\n\t\t\n\t}", "protected void processRequest(HttpServletRequest req, HttpServletResponse resp)\n throws ServletException, IOException {\n resp.setContentType(\"text/html\");\n\n // This PrintWriter allows us to write data to the HTTP \n // response body that is going to be sent to the client.\n PrintWriter sendToClient = resp.getWriter();\n \n // UI form\n sendToClient.write(\n \"<br><form name='formvideo' method='POST' target='_self'>\" +\n \"<fieldset><legend>Test Data</legend>\" +\n \"<table><tr>\" +\n \"<td><label for='name'>Name:&nbsp;</label></td>\" +\n \"<td><input type='text' name='name' id='name' size='64' maxlength='64' /></td>\" +\n \"</tr><tr>\" +\n \"<td><label for='school'>School:&nbsp;</label></td>\" +\n \"<td><input type='text' name='school' id='school' size='64' maxlength='256' /></td>\" +\n \"</tr><tr>\" +\n \"<td><label for='major'>Major:&nbsp;</label></td>\" +\n \"<td><input type='text' name='major' id='major' size='64' maxlength='256' /></td>\" +\n \"</tr><tr> \"+\n \n \"<td><label for='year'>Year of Admission:&nbsp;</label></td>\" +\n \"<td><input type='text' name='year' id='year' size='16' maxlength='256' /></td>\" +\n \n \"</tr><tr>\" +\n \n \"<td style='text-align: right;' colspan=2><input type='submit' value='Add' /></td>\" +\n \"</tr></table></fieldset></form></br>\" );\n \n // Loop through all of the stored videos and print them out\n // for the client to see.\n for (Student v : this.students) {\n \n // For each video, write its name and URL into the HTTP\n // response body\n sendToClient.write(\"<b>\"+v.getName() +\"</b>\"+ \" : \" + v.getSchool() +\"--\"+v.getMajor()+ \" (<i>\" + v.getYear() + \" </i>) at \"+v.getIP() +\"<br />\" );\n }\n sendToClient.write(\"<font size=\\\"4\\\" > <i> This application is created by Meng Yang at UESTC on 2014-10-05.</i></font>\");\n sendToClient.write(\"</body></html>\");\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response); \n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n try {\n\n HttpSession session = request.getSession();\n if (request.getServletPath().equals(\"/LoginServlet\")) {\n\n // setting user as logged in\n User user = new User();\n user.pass = request.getParameter(\"password\");\n user.username = request.getParameter(\"username\");\n\n UserListFile ulf = UserListFile.getInstance(getServletContext());\n user = ulf.loginUser(user);\n\n // setting user as logged in\n session.setAttribute(\"isLoggedIn\", true);\n session.setAttribute(\"username\", user.username);\n session.setAttribute(\"email\", user.email);\n session.setAttribute(\"isAdmin\", user.isAdmin);\n\n ServletContext context = getServletContext();\n RequestDispatcher dispatcher = context.getRequestDispatcher(\"/jsp/login.jsp\");\n dispatcher.forward(request, response);\n\n } else {\n\n // setting user as logged out\n session.removeAttribute(\"isLoggedIn\");\n session.removeAttribute(\"username\");\n session.removeAttribute(\"email\");\n\n ServletContext context = getServletContext();\n RequestDispatcher dispatcher = context.getRequestDispatcher(\"/jsp/logout.jsp\");\n dispatcher.forward(request, response);\n\n }\n } catch (Exception ex) {\n throw new ServletException(getServletContext().getContextPath());\n// throw new ServletException(ex);\n }\n }", "@Override\n\tpublic void saveRequest(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\tif (!justUseSavedRequestOnGet || \"GET\".equals(request.getMethod())) {\n\t\t\tDefaultSavedRequest savedRequest = new DefaultSavedRequest(request,\n\t\t\t\t\tportResolver);\n\n\t\t\tif (createSessionAllowed || request.getSession(false) != null) {\n\t\t\t\t// Store the HTTP request itself. Used by\n\t\t\t\t// AbstractAuthenticationProcessingFilter\n\t\t\t\t// for redirection after successful authentication (SEC-29)\n\t\t\t\trequest.getSession().setAttribute(WebAttributes.SAVED_REQUEST,\n\t\t\t\t\t\tsavedRequest);\n\t\t\t\tlogger.debug(\"DefaultSavedRequest added to Session: \"\n\t\t\t\t\t\t+ savedRequest);\n\t\t\t}\n\t\t}\n\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String name = (String)request.getAttribute(\"name\");\n if(name==null){\n RequestDispatcher rd1 = request.getRequestDispatcher(\"/Login.jsp\");\n rd1.forward(request, response);\n }\n List<Notes> notes;\n try{\n ArrayOfNotes notesobj = getNotes(name);\n notes = notesobj.getNotes(); \n }\n catch(Exception e){\n notes=null;\n }\n \n \n request.setAttribute(\"notes\", notes);\n request.setAttribute(\"name\", name);\n RequestDispatcher rd = request.getRequestDispatcher(\"/Home.jsp\");\n rd.forward(request, response);\n }", "public FileUploadServlet() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "@Override\n public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {\n response.setHeader(\"Content-Type\", \"application/json\");\n Enumeration<String> attributes = request.getSession().getAttributeNames();\n while (attributes.hasMoreElements()) {\n String attribute = (String) attributes.nextElement();\n System.out.println(attribute+\" : \"+request.getSession().getAttribute(attribute));\n }\n }", "private Map<String, String> getParameters(HttpServletRequest request) {\n Map<String, String> params = new HashMap<>();\n for (Map.Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\n String paramName = entry.getKey();\n if (!Arrays.asList(NOT_PARAM_FIELDS).contains(paramName)) {\n String paramValue = null != entry.getValue() ? String.join(Constants.COMMA, entry.getValue()) : Constants.EMPTY_STRING;\n params.put(paramName, paramValue);\n }\n }\n return params;\n }", "public void setSession(Map map) {\n\t\tthis.sessionMap=map;\n\t}", "@RequestMapping(value = \"/prep_log_form.htm\",method = RequestMethod.GET)\r\n\tpublic String prepLogForm(ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\t\r\n\t\tmap.put(\"user\", new User());\r\n\t\treturn \"login_form\";\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n int geekid = Integer.parseInt(request.getParameter(\"geekid\"));\n if (ServletFileUpload.isMultipartContent(request)) {\n try {\n\n List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);\n\n for (FileItem item : multiparts) {\n\n if (!item.isFormField()) {\n item.write(new File(UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\"));\n\n }\n \n String fileName = UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\";\n\n }\n\n //File uploaded successfully\n request.setAttribute(\"message\", \"File Uploaded Successfully\");\n\n } catch (Exception ex) {\n\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n\n }\n\n } else {\n\n request.setAttribute(\"message\",\n \"Sorry this Servlet only handles file upload request\");\n\n }\n\n request.getRequestDispatcher(\"/result.jsp\").forward(request, response);\n\n }" ]
[ "0.69690686", "0.6674149", "0.6619859", "0.6611374", "0.64141744", "0.63853234", "0.62417847", "0.62258893", "0.60406286", "0.5948716", "0.58877623", "0.5854434", "0.58006847", "0.57917005", "0.5760776", "0.5748245", "0.57444626", "0.5723334", "0.5714398", "0.5707848", "0.5702017", "0.56878316", "0.5683945", "0.5669853", "0.56653905", "0.5650883", "0.56347674", "0.5630901", "0.55967975", "0.5581705", "0.55659497", "0.5562246", "0.5550957", "0.5549468", "0.5546605", "0.5521828", "0.5505584", "0.5479932", "0.5466067", "0.5455662", "0.5448797", "0.54461646", "0.5441807", "0.542478", "0.54219526", "0.5405902", "0.54057413", "0.5396089", "0.53923696", "0.53913593", "0.53841925", "0.5382832", "0.5374735", "0.537065", "0.53703654", "0.5360747", "0.5360726", "0.535525", "0.53480476", "0.5346402", "0.53367066", "0.53292155", "0.5326082", "0.53240675", "0.53163826", "0.53099775", "0.53099775", "0.5299402", "0.5298688", "0.5298649", "0.5290376", "0.5289687", "0.5289557", "0.5283545", "0.5273901", "0.5258579", "0.52448195", "0.5241591", "0.52357495", "0.5227767", "0.52264017", "0.5218218", "0.5218204", "0.5211842", "0.5211463", "0.5209266", "0.52043355", "0.5203914", "0.51962876", "0.5195818", "0.5185307", "0.5184669", "0.5183087", "0.5181962", "0.5177727", "0.51730686", "0.5168138", "0.51668453", "0.51666117", "0.5165777" ]
0.6816484
1
System.out.println("FileUploadServlet.storeInSessionFlashOrHTML5: " + request.getParameterMap());
@SuppressWarnings("unchecked") protected void storeInSessionFlashOrHTML5(HttpServletRequest request, HttpServletResponse response) throws IOException { ServletFileUpload upload = new ServletFileUpload(factory); try { if(ServletFileUpload.isMultipartContent(request)){ List<FileItem> fileItemList = upload.parseRequest(request); List<Map<String,Object>> jsonResponse = new ArrayList<Map<String,Object>>(); StringBuilder stringResponse = new StringBuilder(); String params = request.getParameter("params"); JsonNode jparams = JacksonUtils.toNode(params); String method = jparams.get("method").getTextValue();//request.getParameter("method"); logger.info("Upload file, METHOD: " + method); if("flash".equals(method)){ response.setContentType("text/plain"); } else{ response.setContentType("text/json"); } for(FileItem fileItem : fileItemList){ if(fileItem.isFormField()){ Constants.LOGGER.info("FileUploadServlet.storeInSessionFlashOrHTML5 - file item is form field::: " + fileItem); } else{ Constants.LOGGER.info("FileUploadServlet.storeInSessionFlashOrHTML5.NOT formField " + fileItem); // ImageFile imageFile = webClientBean.storeImageInUploads(fileItem); String id = UUID.randomUUID().toString(); request.getSession().setAttribute(id, fileItem); //--- RESPONSE - if("flash".equals(method)){ stringResponse.append(generateFlashResponse(fileItem, id)); } else{ //-- FireFox/HTML5 Map<String,Object> o = generateJsonResponse(fileItem); o.put("fileItemId", id); jsonResponse.add(o); } } } if("flash".equals(method)){ response.getWriter().print(stringResponse); } else{ JacksonUtils.serialize(jsonResponse, response.getWriter()); } } } catch (Exception exp) { Constants.LOGGER.error(exp.getMessage(),exp); JacksonUtils.serialize(EntityModel.createErrorMessage("FileUpload Exception", exp.getMessage()), response.getWriter()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n\tprotected void storeInSessionHTML5(HttpServletRequest request, HttpServletResponse response) throws IOException {\n//\t\tSystem.out.println(\"FileUploadServlet.storeInSessionHTML5: \" + request.getParameterMap());\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\ttry {\n\t\t\tif(ServletFileUpload.isMultipartContent(request)){\n\t\t\t\tList<FileItem> fileItemList = upload.parseRequest(request);\n\t\t\t\tList<Map<String,Object>> jsonResponse = new ArrayList<Map<String,Object>>();\n\t\t\t\tresponse.setContentType(\"text/json\");\n\t\t\t\t\n\t\t\t\tfor(FileItem fileItem : fileItemList){\n\t\t\t\t\tif(fileItem.isFormField()){\n\t\t\t\t\t\tlogger.info(\"FileUploadServlet.storeInSessionHTML5 - file item is form field::: \" + fileItem);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tlogger.info(\"FileUploadServlet.storeInSessionHTML5.NOT formField \" + fileItem);\n\t\t\t\t\t\tString id = UUID.randomUUID().toString();\n\t\t\t\t\t\trequest.getSession().setAttribute(id, fileItem);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//-- FireFox/HTML5\n\t\t\t\t\t\tMap<String,Object> o = generateJsonResponse(fileItem);\n\t\t\t\t\t\to.put(\"sessionAttributeId\", id);\n\t\t\t\t\t\tjsonResponse.add(o);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Json list\n\t\t\t\tJacksonUtils.serialize(jsonResponse, response.getWriter());\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exp) {\n\t\t\tConstants.LOGGER.error(exp.getMessage(),exp);\n\t\t\tJacksonUtils.serialize(EntityModel.createErrorMessage(\"FileUpload Exception\", exp.getMessage()), response.getWriter());\n\t\t} \n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected void storeInSessionFlash(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\ttry {\n\t\t\tif(ServletFileUpload.isMultipartContent(request)){\n\t\t\t\tList<FileItem> fileItemList = upload.parseRequest(request);\n\t\t\t\tMap<String,Object> jsonResponse = new HashMap<String,Object>();\n\t\t\t\tresponse.setContentType(\"text/json\");\n\t\t\t\tfor(FileItem fileItem : fileItemList){\n\t\t\t\t\tif(fileItem.isFormField()){\n\t\t\t\t\t\tlogger.info(\"FileUploadServlet.storeInSessionFlash - file item is form field::: \" + fileItem);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tlogger.info(\"FileUploadServlet.storeInSessionFlash.NOT formField \" + fileItem);\n\t\t\t\t\t\tString id = UUID.randomUUID().toString();\n\t\t\t\t\t\trequest.getSession().setAttribute(id, fileItem);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//--- RESPONSE - \n\t\t\t\t\t\tjsonResponse = generateJsonResponse(fileItem);\n\t\t\t\t\t\tjsonResponse.put(\"id\", id);\n\t\t\t\t\t\tjsonResponse.put(\"sessionAttributeId\", id);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//IE is very sensitive on the response\n\t\t\t\tJacksonUtils.serialize(jsonResponse, response.getWriter());\n\t\t\t\t\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exp) {\n\t\t\tlogger.error(exp.getMessage(),exp);\n\t\t\tJacksonUtils.serialize(EntityModel.createErrorMessage(\"Problem Uploading Audio\", exp.getMessage()), response.getWriter());\n\t\t} \n\t}", "public void doPost(HttpServletRequest request,\n HttpServletResponse response) throws ServletException, IOException\n\t{\n\tresponse.setContentType(\"text/html\");\n\tMap params = request.getParameterMap();\n\tfor(Object key :params.entrySet())\n\t{\n\tSystem.out.println(\"key:::\"+key);\n\t}\n\tSystem.out.println(\"uploads:::::::::::::::\"+request.getParameter(\"__UPLOADS\"));\n\t/*List<FileUpload> uploads = (List<FileUpload>) request.getParameter(\"__UPLOADS\");\n\tSystem.out.println(uploads.size());*/\n\t// Actual logic goes here.\n\tPrintWriter out = response.getWriter();\n\tSystem.out.println(\"<h1>\" + message + \"</h1>\");\n\tout.println(\"<h1>\" + message + \"</h1>\");\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected void storeInSession(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\ttry {\n\t\t\tif(ServletFileUpload.isMultipartContent(request)){\n\t\t\t\tList<FileItem> fileItemList = upload.parseRequest(request);\n//\t\t\t\tJsonNode jparams = JacksonUtils.toNode(request.getParameter(\"params\"));\n\t\t\t\tresponse.setContentType(\"text/html\");\n\t\t\t\tfor(FileItem fileItem : fileItemList){\n\t\t\t\t\tif(fileItem.isFormField()){\n//\t\t\t\t\t\tConstants.LOGGER.info(\"FileUploadServlet.storeInSession - file item is form field::: \" + fileItem);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tConstants.LOGGER.info(\"FileUploadServlet.storeImageInSession.NOT formField \" + fileItem);\n//\t\t\t\t\t\tImageFile imageFile = webClientBean.storeImageInUploads(fileItem);\n\t\t\t\t\t\tString id = UUID.randomUUID().toString();\n\t\t\t\t\t\trequest.getSession().setAttribute(id, fileItem);\n\t\t\t\t\t\t\n\t\t\t\t\t\tresponse.getWriter().print(\"<textarea>{target: 'SESSION',id: '\" + id + \"'}</textarea>\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exp) {\n\t\t\tConstants.LOGGER.error(exp.getMessage(),exp);\n\t\t\tJacksonUtils.serialize(EntityModel.createErrorMessage(\"FileUpload Exception\", exp.getMessage()), response.getWriter());\n\t\t} \n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, IOException\n {\n response.setContentType(\"text/html\");\n Map params = request.getParameterMap();\n for(Object key :params.entrySet())\n {\n \t System.out.println(\"key:::\"+key);\n }\n System.out.println(\"uploads:::::::::::::::\"+request.getParameter(\"__UPLOADS\"));\n\t\t/*List<FileUpload> uploads = (List<FileUpload>) request.getParameter(\"__UPLOADS\");\n\t\tSystem.out.println(uploads.size());*/\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n System.out.println(\"<h1>\" + message + \"</h1>\");\n out.println(\"<h1>\" + message + \"</h1>\");\n }", "protected void storeParameters(SessionSrvc session, HttpServletRequest req)\n {\n for (Enumeration paramNames = req.getParameterNames(); paramNames.hasMoreElements();)\n {\n\t String name = (String) paramNames.nextElement();\n\t // req.getSession().putValue(name, req.getParameter(name));\n\t session.putLocalValue(name, req.getParameter(name));\n }\n }", "public void doPost(HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, java.io.IOException {\n isMultipart = ServletFileUpload.isMultipartContent(request);\n response.setContentType(\"text/html\");\n java.io.PrintWriter out = response.getWriter();\n if (!isMultipart) {\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet upload</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<p>No file uploaded</p>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n return;\n }\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // maximum size that will be stored in memory\n //factory.setSizeThreshold(maxMemSize);\n // Location to save data that is larger than maxMemSize.\n //factory.setRepository(new File(\"c:\\\\temp\"));\n\n // Create a new file upload handler\n ServletFileUpload upload = new ServletFileUpload(factory);\n // maximum file size to be uploaded.\n //upload.setSizeMax(maxFileSize);\n try {\n // Parse the request to get file items.\n List fileItems = upload.parseRequest(request);\n // Process the uploaded file items\n Iterator i = fileItems.iterator();\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet upload</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n HttpSession session = request.getSession(true);\n String feedType = null;\n String redirectTo = null;\n String companyKey = session.getAttribute(\"companyKey\").toString();\n String userKey = session.getAttribute(\"userKey\").toString();\n String departmentKey = null;\n String isFeedCompanyWide = null;\n String feedTitle = null;\n String feedDescription = null;\n String fileName = null;\n FileItem forFile = null;\n while (i.hasNext()) {\n FileItem fi = (FileItem) i.next();\n if (fi.isFormField()) {\n if (fi.getFieldName().equals(\"feedType\")) {\n feedType = fi.getString();\n } else if (fi.getFieldName().equals(\"departmentKey\")) {\n departmentKey = fi.getString();\n } else if (fi.getFieldName().equals(\"isFeedCompanyWide\")) {\n isFeedCompanyWide = fi.getString();\n } else if (fi.getFieldName().equals(\"feedTitle\")) {\n feedTitle = fi.getString();\n } else if (fi.getFieldName().equals(\"feedDescription\")) {\n feedDescription = fi.getString();\n } else if (fi.getFieldName().equals(\"redirectTo\")) {\n redirectTo = fi.getString();\n }\n } else if (!fi.isFormField()) {\n forFile = fi;\n }\n }\n SmProperties.folderPath = request.getRealPath(\"\")+ File.separator + \"cropData\" + File.separator;\n if (redirectTo.equals(\"newsroom\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") + \"/user feed/\" +\n \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") + File.separator +\"user feed\"+ File.separator +\n \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n response.sendRedirect(\"home.jsp\");\n } else if (redirectTo.equals(\"myFeed\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") + \"/user feed/\"+ \n \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") +File.separator+ \"user feed\"+File.separator\n + \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n response.sendRedirect(\"homeMyFeeds.jsp\");\n } else if (redirectTo.equals(\"internalFeed\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") +\"/department feed/\"\n + \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") +File.separator+ \"user feed\"+File.separator\n + \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n response.sendRedirect(\"corporate.jsp\");\n } else if (redirectTo.equals(\"announcement\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") +\"/department feed/\"\n + \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") +File.separator+ \"user feed\"+File.separator\n + \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n MemoryTest.test(\"footer start\");\n System.gc();\n MemoryTest.test(\"footer end\");\n response.sendRedirect(\"corporateDepartmentPage.jsp?open=announcement&key=\" + departmentKey);\n }\n } catch (Exception ex) {\n ErrorMaster.insert(\"Exception at CreateFeed : \" + ex.getMessage());\n }\n }", "private void fileUpload(HttpServletRequest request, HttpServletResponse response) {\n\t \ttry {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * String appPath = request.getServletContext().getRealPath(\"\");\r\n\t\t\t\t\t * System.out.println(appPath); String savePath = appPath + File.separator +\r\n\t\t\t\t\t * SAVE_DIR; System.out.println(savePath);\r\n\t\t\t\t\t */\r\n\t \t\t\r\n\t \t\t//String appPath = getServletContext().getRealPath(SAVE_DIR);\r\n\t \t\tSystem.out.println(appPath);\r\n\t \t\t String savePath = appPath + \"//\" +SAVE_DIR; \r\n\t \t\t System.out.println(savePath);\r\n\t\t\t\t\t\tCollection<Part>cp= request.getParts();\r\n\t \t String fileName = up.fileUpload(cp,appPath);\r\n\t \t System.out.println(fileName);\r\n\t \t \r\n\t \t request.setAttribute(\"message\", \"The file \"+fileName+\" has been uploaded successfully!\");\r\n\t \t RequestDispatcher dispatcher = request.getRequestDispatcher(\"success.jsp\");\r\n\t \t dispatcher.forward(request, response);\r\n\t}catch(Exception ex) {\r\n System.out.println(ex);\r\n }\r\n\t }", "private void userUpload(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n\tString s=getServletContext().getRealPath(\"\");\r\n\tSystem.out.println(\"realpath:\"+s);\r\n\tString loginid=request.getParameter(\"usern\");\r\n\t\t System.out.println(\"from servlet:\"+loginid);\r\n\t\t Part filePart = request.getPart(\"file\");\r\n\t\t \r\n\t\t UserFunctions uf=new UserFunctionsImpl();\r\n\t\t \r\n\t\tif( uf.uploadFile(loginid,filePart,appPath,SAVE_DIR))\r\n\t\t{\r\n\t\t\tArrayList<String>al=uf.listAllFiles(loginid);\r\n\t\t\tSystem.out.println(al);\r\n\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"successupload.jsp\"); \r\n\t\t\trequest.setAttribute(\"list\", al); \r\n\t dispatcher.forward(request, response);\r\n\t\t}\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(req.getSession().getAttribute(\"attr\"));\n\t\treq.getSession().setAttribute(\"attr\", req.getParameter(\"session\"));\n\t\tSystem.out.println(req.getSession().getAttribute(\"attr\"));\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\t // configures upload settings\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // sets memory threshold - beyond which files are stored in disk\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n // sets temporary location to store files\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\n ServletFileUpload upload = new ServletFileUpload(factory);\n \n \n // constructs the directory path to store upload file\n // this path is relative to application's directory\n String uploadPath = getServletContext().getRealPath(\"\") + File.separator + UPLOAD_DIRECTORY;\n // creates the directory if it does not exist\n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n int keySize= 0,iterationCount=0;\n String salt =\"\",passphrase=\"\",ciphertext=\"\",iv=\"\",fileData=\"\",Cdata=\"\",plainTextArea1=\"\";\n List<FileItem> formItems;\n String fileName =\"\";\n\t\ttry {\n\t\t\tformItems = upload.parseRequest(request);\n\t\t\tfor (FileItem item : formItems) {\n\t\t\t // processes only fields that are not form fields\n\t\t\t if (!item.isFormField()) {\n\t\t\t fileName = new File(item.getName()).getName();\n\t\t\t try {\n\t\t\t\t\t\tfileData = item.getString();\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 } else {\n\t\t\t //here...\n\t\t\t String fieldname = item.getFieldName();\n\t\t\t String fieldvalue = item.getString();\n\t\t\t \n\t\t\t if (fieldname.equals(\"passphrase\")) {\n\t\t\t \tpassphrase = fieldvalue;\n\t\t\t } else if (fieldname.equals(\"plainTextArea\")) {\n\t\t\t \tciphertext = fieldvalue;\n\t\t\t }else if (fieldname.equals(\"plainTextArea1\")) {\n\t\t\t \tplainTextArea1 = fieldvalue;\n\t\t\t }else if (fieldname.equals(\"secretKeys\")) {\n\t\t\t \tCdata = fieldvalue;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t} catch (FileUploadException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n\t\ttry {\n\t\t\tSystem.out.println(Cdata);\n\t\t\tString keysData = RSACryptoUtil.decryptWebPIN(Cdata);\n\t\t\tSystem.out.println(keysData);\n\t\t\tString[] dataAry = keysData.split(\"@@@\"); \n\t\t\tkeySize = Integer.valueOf(dataAry[4]);\n\t\t\titerationCount = Integer.valueOf(dataAry[3]);\n\t\t\tsalt = String.valueOf(dataAry[0]);\n\t\t\tiv = String.valueOf(dataAry[1]);\n\t\t\tpassphrase = String.valueOf(dataAry[2]);\n\t\t}catch (Exception e) {\n\t response.setStatus(HttpServletResponse.SC_OK);\n\t response.getWriter().print(\"Security keys tampered!\");\n\t\t}\n\t\t\t\t\n\t AesUtil aesUtil = new AesUtil(keySize, iterationCount);\n\t String plaintext = aesUtil.decrypt(salt, iv, passphrase, ciphertext);\n\t String fileDataIs = aesUtil.decrypt(salt, iv, passphrase, fileData);\n\t String replaceStr = \"\";\n\t if(fileName.endsWith(\".txt\"))\n\t \treplaceStr =\"data:text/plain;base64,\";\n\t else if(fileName.endsWith(\".js\"))\n\t \treplaceStr =\"data:application/javascript;base64,\";\n\t else if(fileName.endsWith(\".jpeg\") || fileName.endsWith(\".jpg\") )\n\t \treplaceStr=\"data:image/jpeg;base64,\";\n\t else if(fileName.endsWith(\".png\"))\n\t \treplaceStr=\"data:image/png;base64,\";\n\t \n\t \n\t if(!fileName.endsWith(\".jpeg\") && !fileName.endsWith(\".jpg\") && !fileName.endsWith(\".png\"))\n\t FileUtils.writeStringToFile(new File(uploadPath+File.separator+fileName), new String(Base64.decodeBase64(fileDataIs.replaceAll(replaceStr, \"\").getBytes())));\n\t else{\n\t \tbyte[] data = Base64.decodeBase64(fileDataIs.replaceAll(replaceStr, \"\"));\n\t try (OutputStream stream = new FileOutputStream(\"D:/sudhakar/eclipse-jee-luna-R-win32-x86_64/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Encryption/image_upload/\"+fileName)) {\n\t \t\tstream.write(data);\n\t \t}\n\t }\n \n response.setStatus(HttpServletResponse.SC_OK);\n response.getWriter().print(plaintext+\":\"+plainTextArea1);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n String fileName = \"\";\n byte[] data = null;\n\n FileItemFactory factory = new DiskFileItemFactory();\n ServletFileUpload upload = new ServletFileUpload(factory);\n List /* FileItem */ items = upload.parseRequest(request);\n Iterator iterator = items.iterator();\n\n out.println(\"<html><head><style>body{ font-family: helvetica;</style></head><body><h1>MD5</h1><table border='1'>\");\n\n while(iterator.hasNext()) {\n FileItem fileItem = (FileItem) iterator.next();\n if (! fileItem.isFormField() /*&& fileItem.getName().length() > 0 */) {\n fileName = fileItem.getName();\n data = fileItem.get();\n out.println(\"<tr><td>\" + fileName + \"</td><td>\" + md5sum(data) + \"</td></tr>\");\n }\n }\n\n out.println(\"</table></body></html>\");\n }\n catch (FileUploadException ex) {\n throw new IOException(ex);\n }\n finally {\n out.close();\n }\n }", "protected Object formBackingObject(HttpServletRequest request) throws ServletException {\r\n \t\t\r\n \t\treturn \"\";\r\n \t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n HttpSession session = new HttpSession() {\n public long getCreationTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String getId() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public long getLastAccessedTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public ServletContext getServletContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setMaxInactiveInterval(int interval) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public int getMaxInactiveInterval() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public HttpSessionContext getSessionContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Enumeration<String> getAttributeNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String[] getValueNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setAttribute(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void putValue(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void invalidate() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public boolean isNew() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n };\n try {\n String bsubmit = request.getParameter(\"submit\");\n String inUsername = request.getParameter(\"username\");\n String inPassword = request.getParameter(\"password\");\n if (bsubmit != null) {\n UserDAO userDAO = new UserDAO();\n User user = userDAO.findUserByNameAndPassword(inUsername, inPassword);\n if (user == null) {\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Sorry, invalid username or password\");\n out.write(\".');\\n\");\n out.write(\"setTimeout(function(){window.location.href='login.jsp'},1000);\");\n out.write(\"</script>\\n\");\n } else {\n if (user.getUserName().equals(inUsername) && user.getPassword().equals(inPassword)) {\n session = request.getSession();\n session.setAttribute(\"userId\", String.valueOf(user.getId()));\n session.setAttribute(\"userName\", user.getUserName());\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Thank you! You are login with \");\n out.write(user.getUserName());\n out.write(\" account.');\\n\");\n out.write(\"setTimeout(function(){window.location.href='index.jsp'},1000);\");\n out.write(\"</script>\\n\");\n }\n }\n\n }\n\n } finally {\n out.close();\n }\n }", "public String doUploadFile(Map<String,Object> mapInfo);", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException, ClassNotFoundException, SQLException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n InputStream inputStream = null; // input stream of the upload file\r\n \r\n String name=request.getParameter(\"name\"); \r\n \r\n Part filePart = request.getPart(\"blah\");\r\n if (filePart != null) {\r\n // prints out some information for debugging\r\n \r\n //obtains input stream of the upload file\r\n //the InputStream will point to a stream that contains\r\n //the contents of the file\r\n inputStream = filePart.getInputStream();\r\n }\r\n Connection con;\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n \r\n con=(Connection)DriverManager.getConnection(\"jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=convertToNull\", \"root\",\"1234\");\r\n out.println(\"Database Connected\");\r\n PreparedStatement pst;\r\n pst=con.prepareStatement(\"update table logintable(img) VALUESb(?) where name=?\");\r\n pst.setString(1,inputStream); \r\n pst.setString(2,name);\r\n int i= pst.executeUpdate();\r\n \r\n response.sendRedirect(\"index.html\"); \r\n \r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n { \n ResponseType rt = ResponseType.Success;\n Exception caughtException = null;\n try\n {\n // Check the settings have been loaded\n Settings settings;\n if((settings = PALS_SettingsListener.getSettings()) == null)\n throw new SettingsException(SettingsException.Type.FailedToLoad, null);\n // Build request\n // -- Fetch session identifier\n String sessid = getCookie(request, SESSION_COOKIE_NAME);\n // -- Build relative url of request\n String relUrl = (String)request.getAttribute(PALS_RequestsFilter.REQUEST_ATTRIBUTE_NAME_ORIGINALURL);\n // -- Prepare remote request wrapper\n RemoteRequest dataRequest = new RemoteRequest(sessid, relUrl, request.getRemoteAddr());\n // -- Add request fields\n for(Map.Entry<String,String[]> param : request.getParameterMap().entrySet())\n dataRequest.setFields(param.getKey(), param.getValue());\n // -- Add request files (and possibly fields)\n if(ServletFileUpload.isMultipartContent(request))\n {\n ServletFileUpload uploads = new ServletFileUpload();\n try\n {\n FileItemIterator itFile = uploads.getItemIterator(request);\n // Iterate each upload item\n File file;\n FileItemStream fis;\n FileOutputStream fos;\n InputStream is;\n long size;\n int bytesRead;\n byte[] data;\n while(itFile.hasNext())\n {\n fis = itFile.next();\n is = fis.openStream();\n if(!fis.isFormField() && fis.getName() != null && fis.getName().length() > 0)\n {\n file = new File(\n Storage.getPath_tempWebFile(settings.getStr(\"storage/path\"), request.getRemoteAddr())\n ).getCanonicalFile();\n // Write data to disk\n size = 0;\n fos = new FileOutputStream(file);\n data = new byte[1024];\n while((bytesRead = is.read(data)) != -1)\n {\n fos.write(data, 0, bytesRead);\n size += bytesRead;\n }\n fos.flush();\n fos.close();\n // Add to request\n dataRequest.setFile(fis.getFieldName(), new UploadedFile(fis.getName(), fis.getContentType(), size, file.getName()));\n }\n else\n {\n // Not a file - a field...\n dataRequest.setAddFields(fis.getFieldName(), Streams.asString(is));\n }\n }\n }\n catch(FileUploadException ex)\n {\n System.err.println(\"Failed to receive upload from user '\" + request.getRemoteAddr() + \"' ~ \" + ex.getMessage());\n }\n }\n\n // Communicate to node using RMI\n // -- Fetch host\n RMI_Host rmiHost = PALS_SettingsListener.fetchHost(); \n // -- Setup the socket and connect\n SSL_Factory sfact = PALS_SettingsListener.getRMISockFactory();\n Registry r;\n if(sfact != null)\n r = LocateRegistry.getRegistry(rmiHost.getHost(), rmiHost.getPort(), sfact);\n else\n r = LocateRegistry.getRegistry(rmiHost.getHost(), rmiHost.getPort());\n // -- Bind to our version of the interface\n RMI_Interface ri = (RMI_Interface)r.lookup(RMI_Interface.class.getName());\n RemoteResponse dataResponse = ri.handleWebRequest(dataRequest);\n \n // Handle response\n // -- Transfer header data\n if(dataResponse.isHeadersAvailable())\n {\n for(Map.Entry<String,String> kv : dataResponse.getHeaders().entrySet())\n response.setHeader(kv.getKey(), kv.getValue());\n }\n // -- Update the session ID cookie\n Cookie cookieSess = new Cookie(SESSION_COOKIE_NAME, dataResponse.getSessionID());\n cookieSess.setPath(\"/\");\n cookieSess.setMaxAge(dataResponse.isSessionPrivate() ? 3600 : 600);\n response.addCookie(cookieSess);\n // -- Check for redirect\n String redirect = dataResponse.getRedirectUrl();\n if(redirect != null)\n {\n if(!redirect.startsWith(\"/\"))\n redirect = \"/\" + redirect;\n response.sendRedirect(request.getContextPath() + redirect);\n }\n else\n {\n // -- Handle response type\n response.setContentType(dataResponse.getResponseType());\n // -- Set response code\n response.setStatus(dataResponse.getResponseCode());\n // -- Handle response data\n {\n byte[] buffer = dataResponse.getBuffer();\n if(buffer != null && buffer.length != 0)\n {\n ServletOutputStream sos = response.getOutputStream();\n sos.write(buffer);\n sos.flush();\n }\n else\n rt = ResponseType.Error_NoOutput;\n }\n }\n // Note: nothing else can be sent now; thus do not set any\n // cookies or headers at this point.\n \n // Destroy any temp files\n String tempFolder = Storage.getPath_tempWeb(settings.getStr(\"storage/path\"));\n File file;\n for(UploadedFile uf : dataRequest.getFiles())\n {\n file = new File(tempFolder + \"/\" + uf.getTempName());\n if(file.exists() && file.isFile())\n file.delete();\n }\n }\n catch(RemoteException ex)\n {\n System.err.println(\"RMI RemoteException ~ \" + ex.getMessage() + \"!\");\n rt = ResponseType.Error_RMI;\n caughtException = ex;\n }\n catch(NotBoundException ex)\n {\n System.err.println(\"RMI NotBoundException ~ \" + ex.getMessage() + \"!\");\n rt = ResponseType.Error_RMI;\n caughtException = ex;\n }\n catch(SettingsException ex)\n {\n System.err.println(\"Settings exception ~ \" + ex.getMessage() + \"!\");\n rt = ResponseType.Error_Settings;\n caughtException = ex;\n }\n // Check if we have handled the response correctly, else output a message to the user\n if(rt == ResponseType.Success)\n return;\n // An error has occurred...\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter pw = response.getWriter();\n pw.println(\"<!DOCTYPE html><html><head><title>PALS - Communication Issue</title></head><body>\");\n pw.println(\"<h1>Error</h1>\");\n // Output humam message\n switch(rt)\n {\n case Error_RMI:\n pw.println(\"<p>Communication issue, please try again...</p>\");\n pw.println(\"<h2>Network Administrators</h2>\");\n pw.println(\"<p>The system is unable to communicate with the node process, check it is running!</p>\");\n break;\n case Error_NoOutput:\n pw.println(\"<p>Communication issue, please try again...</p>\");\n pw.println(\"<h2>Network Administrators</h2>\");\n pw.println(\"<p>No data for the web-page was returned from the node; check templates and plugins are loading correctly.</p>\");\n break;\n case Error_Settings:\n pw.println(\"<p>Error occurred reading settings...</p>\");\n pw.println(\"<h2>Network Administrators</h2>\");\n pw.println(\"<p>Ensure the file at WEB-INF/web.config as been correctly configured.</p>\");\n break;\n }\n // Output debug information\n if(caughtException != null && PALS_SettingsListener.getSettings().getBool(\"debug\", false))\n {\n pw.println(\"<h2>Debug Data</h2>\");\n pw.println(\"<p>\");\n caughtException.printStackTrace(pw);\n pw.println(\"</p>\");\n }\n // Dispose and end\n pw.println(\"</body></html>\");\n pw.flush();\n pw.close();\n }", "public abstract FullResponse onServeFormParams(Map<String, List<String>> formParams);", "Map<String, ?> getFlashAttributes();", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\n public String getServletInfo() {\n return \"Handles file upload data from application/octet-stream, and multipart/form-data.\";\n }", "Map<String, String[]> getParameterMap();", "public Map<String,String[]> getParameterMap() {\n if (isMultipart()) {\n Map parameterMap = new HashMap();\n Enumeration names = this.multipart.getParameterNames();\n \n while (names.hasMoreElements()) {\n String name = (String) names.nextElement();\n parameterMap.put(name, getParameterValues(name));\n }\n \n return parameterMap;\n }\n else {\n return super.getParameterMap();\n }\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\r\n\t\tSystem.out.println(\"doPost\");\r\n\t\t\r\n\t\tint yourMaxRequestSize = 100 * 1024 * 1024; // 1M\r\n\t\tint yourMaxMemorySize = 100 * 1024;\r\n\t\t\r\n\t\t// form field 의 데이터(String)\r\n\t\tString id = \"\";\r\n\t\tString title = \"\";\r\n\t\tString content = \"\";\r\n\r\n\t\t// file data\r\n\t\tString filename = \"\";\r\n\r\n\t\t\r\n\t\tString path = req.getServletContext().getRealPath(\"/upload\");\r\n\t\t\r\n\t\t\r\n\t\t// String path = \"d:\\\\tmp\";\r\n\t\t/*\r\n\t\tSystem.out.println(path);\r\n\t\tMultipartRequest mreq = new MultipartRequest(req, path);\r\n\t\tEnumeration t = mreq.getParameterNames();\r\n\t\t*/\r\n\t\t/*\r\n\t\twhile(t.hasMoreElements()) {\r\n\t\t\tString name = (String)t.nextElement();\r\n\t\t\tString conver =new String(mreq.getParameter(name).getBytes(\"8859_1\"), \"UTF-8\");\r\n\t\t\tSystem.out.println(name + \" : \" + mreq.getParameter(name) + \" : \" + conver);\r\n\t\t}\r\n\t\t*/\r\n\t\tboolean isMultipart = ServletFileUpload.isMultipartContent(req);\r\n\t\tSystem.out.println(isMultipart);\r\n\t\tif(isMultipart){\r\n\t\t\r\n\t\t// FileItem 을 생성하는 함수\r\n\t\t DiskFileItemFactory factory = new DiskFileItemFactory();\r\n\t\t \r\n\t\t factory.setSizeThreshold(yourMaxMemorySize);\r\n\t\t factory.setRepository(new File(path));\r\n\t\t \r\n\t\t ServletFileUpload upload = new ServletFileUpload(factory);\r\n\t\t upload.setSizeMax(yourMaxRequestSize);\r\n\t\t \r\n\t\t // list저장\r\n\t\t List<FileItem> items = null;\r\n\t\ttry {\r\n\t\t\titems = upload.parseRequest(req);\r\n\t\t} catch (FileUploadException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t Iterator<FileItem> it = items.iterator();\r\n\t\t \r\n\t\t while(it.hasNext()){\r\n\t\t \r\n\t\t FileItem item = it.next();\r\n\t\t // id, title, content\r\n\t\t if(item.isFormField()){\r\n\t\t if(item.getFieldName().equals(\"id\")){\r\n\t\t \tid = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"title\")){\r\n\t\t title = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"content\")){\r\n\t\t content = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t }\r\n\t\t // file\r\n\t\t else{\r\n\t\t if(item.getFieldName().equals(\"fileload\")){\r\n\t\t filename = processUploadFile(item, path);\r\n\t\t System.out.println(\"path:\" + path);\r\n\t\t } \r\n\t\t } \r\n\t\t }\r\n\t\t \r\n\t}\r\n\t\tiReferRoomDao dao = ReferRoomDao.getInstance();\r\n\r\n\t\tboolean isS = dao.add_ReferR(new ReferRoomDto(id, title, content, filename));\r\n\t\t\r\n\t\tresp.sendRedirect(\"ReferListCtlr\");\r\n\t}", "private static void logInfo(Request req, Path tempFile) throws IOException, ServletException {\n System.out.println(\"Uploaded file '\" + getFileName(req.raw().getPart(\"uploaded_file\")) + \"' saved as '\" + tempFile.toAbsolutePath() + \"'\");\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String codeLabWorker1 = \"\";\n if (!ServletFileUpload.isMultipartContent(request)) {\n\t\t PrintWriter writer = response.getWriter();\n\t\t writer.println(\"Error: enctype=multipart/form-data\");\n\t\t writer.flush();\n\t\t return;\n\t\t}\n\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n \n ServletFileUpload upload = new ServletFileUpload(factory); \n upload.setFileSizeMax(MAX_FILE_SIZE);\n upload.setSizeMax(MAX_REQUEST_SIZE);\n String uploadPath = getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n \n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n try {\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n if (formItems != null && formItems.size() > 0) {\n File storeFile = null;\n String codeResult = \"\";\n String codeLabWorker = \"\"; \n String dateToday = getDateToday();\n String time = getTime();\n for (FileItem item : formItems) { \n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n storeFile = new File(filePath);\n System.out.println(filePath);\n item.write(storeFile); \n }else{\n String fieldName = item.getFieldName();\n String fieldValue = item.getString();\n if (fieldName.equals(\"codeLabWorker\")) {\n codeLabWorker = fieldValue;\n codeLabWorker1=codeLabWorker;\n }else if (fieldName.equals(\"codeResult\")) {\n codeResult = fieldValue;\n }\n } \n }\n //Enviar a guardar\n LabWorkerDB labDB = new LabWorkerDB();\n labDB.updateResult(codeLabWorker, storeFile, dateToday, time, codeResult);\n JOptionPane.showMessageDialog(null,\"Se guardo con exito\");\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null,ex);\n } \n request.setAttribute(\"username\", codeLabWorker1);\n \n request.getRequestDispatcher(\"/labWorkerGUI/principallabWorker.jsp\").forward(request, response);\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tServletContext sc = getServletContext();\n\t\tString path = sc.getRealPath(\"/WEB-INF/classes/settings.properties\");\n\t\tProperties props = new Properties();// 读取文件类型创建对象。\n\t\tprops.load(new FileInputStream(path));\n\t\tString fdfsUrl = props.getProperty(\"fdfsUrl\");\n\t\t// System.out.println(value);//结果:a2\n\t\tString callback = request.getParameter(\"callback\");\n\t\tString result = \"login\";\n\t\tProxyClient client = SessionUtil.getClient(request.getSession());\n\t\tMap<String, Object> map = new HashMap<>();\n\t\tif (client == null) {\n\t\t\t// 跳转到登录页面\n\t\t\tmap.put(\"net\", -1);\n\t\t\tmap.put(\"msg\", result);\n\t\t} else {\n\t\t\tList<Message> list = client.receiveMessage();\n\t\t\tBASE64Encoder encoder = new sun.misc.BASE64Encoder();\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tString attachment = list.get(i).getAttachment();\n\t\t\t\tif (!\"\".equals(attachment) && attachment != null) {\n\t\t\t\t\tJSONObject jsonObject = JSONObject.fromObject(attachment);\n\t\t\t\t\tif (jsonObject.containsKey(\"thumbnail\")) {\n\t\t\t\t\t\tString thumbnail = jsonObject.get(\"thumbnail\").toString();\n\t\t\t\t\t\tString format = thumbnail.split(\"\\\\.\")[1];\n\t\t\t\t\t\tString tppath = thumbnail.replace(\"M00\", fdfsUrl);\n\t\t\t\t\t\tFile file = new File(tppath);\n\t\t\t\t\t\tString dataUrl = null;\n\t\t\t\t\t\tif (file.exists()) {\n\t\t\t\t\t\t\tBufferedImage bi;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tbi = ImageIO.read(file);\n\t\t\t\t\t\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\t\t\t\t\t\tImageIO.write(bi, format, baos);\n\t\t\t\t\t\t\t\tbyte[] bytes = baos.toByteArray();\n\t\t\t\t\t\t\t\tdataUrl = encoder.encodeBuffer(bytes).trim();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (dataUrl != null) {\n\t\t\t\t\t\t\tdataUrl = \"data:image/\" + format + \";base64,\" + dataUrl;\n\t\t\t\t\t\t\tjsonObject.put(\"thumbnail\", dataUrl);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlist.get(i).setAttachment(jsonObject.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\tmap.put(\"net\", client.getSynced()); // 网络状态声明\n\t\t\tmap.put(\"msg\", list); // 消息内容\n\t\t\tGson json = new Gson();\n\t\t\tresult = json.toJson(map);\n\t\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\t\tPrintWriter out = response.getWriter();\n\t\t\tif (callback != null && callback.length() > 0) {\n\t\t\t\t// 以jsonp方式处理\n\t\t\t\tresponse.setHeader(\"Content-type\", \"application/x-javascript;charset=utf-8\");\n\t\t\t\tout.print(callback + \"(\" + result + \");\");\n\t\t\t} else {\n\t\t\t\t// 直接返回json\n\t\t\t\tresponse.setContentType(\"text/json;charset=UTF-8\");\n\t\t\t\tout.print(result);\n\t\t\t}\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t}\n\t}", "@ToDoVulnerability //This needs to validate the parameters for injection\n private Map<String, String> getUpParams(HttpServletRequest req)\n {\n Map<String, String> params = new HashMap<>();\n Enumeration<String> en = req.getParameterNames();\n while(en.hasMoreElements())\n {\n String name = en.nextElement();\n if(name.startsWith(\"up_\"))\n params.put(name, req.getParameter(name));\n }\n return params;\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\r\n PrintWriter writer = response.getWriter();\r\n String userName = request.getParameter(\"userName\");\r\n HttpSession session = request.getSession();\r\n if (userName != \"\" && userName != null){\r\n \r\n session.setAttribute(\"savedUserName\", userName);\r\n }\r\n \r\n writer.println(\" Request parameter has username as \" + userName);\r\n writer.println(\" Session parameter has username \" + (String) session.getAttribute(\"savedUserName\"));\r\n //out.println(\"Hello \" + userName);\r\n \r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint carID = Integer.parseInt(request.getParameter(\"carID\"));\n\t\tString name = request.getParameter(\"nameCar\").toString();\n\t\tint nsx = Integer.parseInt(request.getParameter(\"productDate\"));\n\t\tlong price = Long.parseLong(request.getParameter(\"price\"));\n\t\tint quantityStock = Integer.parseInt(request.getParameter(\"quantityStock\"));\n\t\tString description = request.getParameter(\"description\").toString();\n\t\tString brand = request.getParameter(\"brand\").toString();\n\t\tString imageCar = \"\";\n\t\tString fileName = request.getParameter(\"photo\");\n\t\t\t DiskFileItemFactory factory = new DiskFileItemFactory();\n\t\t\t\t// sets memory threshold - beyond which files are stored in disk\n\t\t\t\tfactory.setSizeThreshold(MEMORY_THRESHOLD);\n\t\t\t\t// sets temporary location to store files\n\t\t\t\tfactory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\t\t\n\t\t\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\t\t\t// sets maximum size of upload file\n\t\t\t\tupload.setFileSizeMax(MAX_FILE_SIZE);\n\t\t\n\t\t\t\t// sets maximum size of request (include file + form data)\n\t\t\t\tupload.setSizeMax(MAX_REQUEST_SIZE);\n\t\t\n\t\t\t\t// constructs the directory path to store upload file\n\t\t\t\t// this path is relative to application's directory\n\t\t\t\n\n\t\t\t\ttry{\n\t\t\t\t\tList<Part> fileParts = request.getParts().stream().filter(part -> \"photo\".equals(part.getName())).collect(Collectors.toList()); // Retrieves <input type=\"file\" name=\"file\" multiple=\"true\">\n\t\t \t\tString uploadPath = \"C:\\\\Users\\\\AnhXtanh\\\\workspace\\\\hungptit\\\\WebContent\\\\\" + UPLOAD_DIRECTORY;\n\t\t \t\tFile uploadDir = new File(uploadPath);\n\t\t \t\tif (!uploadDir.exists()) {\n\t\t\t\t\t\tuploadDir.mkdir();\n\t\t\t\t\t}\n\t\t \t\tfor (Part filePart : fileParts) {\n\t\t\t\t imageCar = Paths.get(filePart.getSubmittedFileName()).getFileName().toString(); // MSIE fix.\n\t\t\t\t System.out.println(imageCar);\n\t\t\t\t String filePath = uploadPath + File.separator + imageCar;\n\t\t\t\t filePart.write(uploadPath);\n\t\t\t\t } \n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\trequest.setAttribute(\"message\", \"There was an error: \" + ex.getMessage());\n\t\t\t\t}\n\t\t\t\tif (imageCar.equals(\"\")) {\n\t\t\t\t\tCar car = new Car (name, description, brand, nsx, price, quantityStock);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcardao.updateCarNoneImage(car, carID);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tCar car = new Car (name, description, brand, nsx, price, quantityStock, imageCar);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcardao.updateCar(car, carID);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tArrayList<Car> listCar;\n\t\t\t\ttry {\n\t\t\t\t\tlistCar = cardao.findAllCar();\n\t\t\t\t\trequest.setAttribute(\"cars\", listCar);\n\t\t\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"/WEB-INF/view/listCars.jsp\");\n\t\t\t\t\trd.forward(request, response);\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession sess = request.getSession(true); // starts a new session\n String name = request.getParameter(\"user\");\n name = Jsoup.clean(name, Whitelist.simpleText());\n ArrayList<Board> boards = new ArrayList<Board>();\n sess.setAttribute(\"user\", name); // set some session attributes\n sess.setAttribute(\"boards\", boards);\n request.getRequestDispatcher(\"readFile\").forward(request, response);\n \n \n }", "protected void doPost(HttpServletRequest request,\n HttpServletResponse response) throws ServletException, IOException {\n String userName = request.getParameter(\"userName\");\n String password = request.getParameter(\"password\");\n\n try {\n // constructs SQL statement\n String sql = \"INSERT INTO users(name,password) VALUES ('\"+ userName + \"','\"+ \n password +\"')\";\n // String sql = \"Insert into gallery(name, description, valu\"\n PreparedStatement statement = conn.prepareStatement(sql);\n // statement.setString(1, taskName);\n // statement.setString(2, taskDesc);\n\n //if (inputStream != null) {\n // fetches input stream of the upload file for the blob column\n // statement.setBlob(3, inputStream);\n // }\n statement.executeUpdate(sql);\n // sends the statement to the database server\n //int row = statement.executeUpdate();\n // if (row > 0) {\n // message = \"Image is uploaded successfully into the Database\";\n // }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n // sets the message in request scope\n // request.setAttribute(\"Message\", message);\n\n // forwards to the message page\n // getServletContext().getRequestDispatcher(\"/gallery.xhtml\").forward(\n // request, response);\n response.sendRedirect(\"welcome.xhtml\");\n }", "@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\treturn null;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // detecta si es una carga multimedia\n if (!ServletFileUpload.isMultipartContent(request)) {\n // detente si no\n PrintWriter writer = response.getWriter();\n writer.println (\"Error: el formulario debe contener enctype = multipart / form-data\");\n writer.flush();\n return;\n }\n\n // Configurar parámetros de carga\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // Establecer los archivos temporales de umbral de memoria se generarán y almacenarán en el directorio temporal\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n // Establecer el directorio de almacenamiento temporal\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\n ServletFileUpload upload = new ServletFileUpload(factory);\n\n // Establecer el valor máximo de carga de archivos\n upload.setFileSizeMax(MAX_FILE_SIZE);\n\n // Establecer el valor máximo de solicitud (incluidos los datos de archivo y formulario)\n upload.setSizeMax(MAX_REQUEST_SIZE);\n\n // procesamiento chino\n upload.setHeaderEncoding(\"UTF-8\");\n\n // Construye una ruta temporal para almacenar archivos cargados\n // Esta ruta es relativa al directorio actual de la aplicación\n String uploadPath = request.getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n\n // Crear si el directorio no existe\n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n\n try {\n // Analiza el contenido solicitado para extraer los datos del archivo\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n\n if (formItems != null && formItems.size() > 0) {\n // iterar sobre los datos del formulario\n for (FileItem item : formItems) {\n // manejar campos que no están en el formulario\n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n File storeFile = new File(filePath);\n // Salida de la ruta de carga del archivo en la consola\n System.out.println(filePath);\n // guardar archivo en el disco duro\n item.write(storeFile);\n request.setAttribute (\"mensaje\", \"¡Archivo cargado correctamente!\");\n hilo = new HiloCargadeDatos(storeFile);\n hilo.start();\n }\n }\n }\n } catch (Exception ex) {\n request.setAttribute (\"mensaje\", \"Mensaje de error:\" + ex.getMessage ());\n }\n\n // Nos redirigimos a la página para que nos muestre los errores\n request.getServletContext().getRequestDispatcher(\"/subir.jsp\").forward(request, response);\n }", "@Override \r\nprotected void doPost(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tHttpSession session = req.getSession();\r\n\t\tConnection c = null;\r\n\t\tResultSet rs = null;\r\n\t\tString result = \"Fail\";\r\n\t\tString userImageKey = \"\";\r\n\t\tint resultid = -1;\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\tUser user = userService.getCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tMap<String,List<BlobKey>> blobs = blobstoreService.getUploads(req);\r\n\t\t\tIterator<String> names = blobs.keySet().iterator();\r\n\t\t\twhile(names.hasNext()) {\r\n\t\t\t\tString name = names.next();\r\n\t\t\t\tif (name.equals(\"userImage\")) {\r\n\t\t\t\t\tList<BlobKey> blobkeys = blobs.get(name);\r\n\t\t\t\t\tif (blobkeys.size() > 0) {\r\n\t\t\t\t\t\tBlobKey blobkey = blobkeys.get(0);\r\n\t\t\t\t\t\tuserImageKey = blobkey.getKeyString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tString name = req.getParameter(\"name\");\r\n\t\t\tif (name == null || name.equals(\"\") ) {\r\n\t\t\t\tname = \"UserName\";\r\n\t\t\t}\r\n\t\t\tString registrationId = req.getParameter(\"regid\");\r\n\t\t\tif (registrationId == null) {\r\n\t\t\t\tregistrationId = \"\";\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tDriverManager.registerDriver(new AppEngineDriver());\r\n\t\t\t\tc = DriverManager.getConnection(\"jdbc:google:rdbms://dongjawebapp:boarddb/boarddb\");\r\n\t\t\t\tString query = \"SELECT id,imagekey FROM usertbl WHERE userid = ?\";\r\n\t\t\t\tPreparedStatement stmt = c.prepareStatement(query);\r\n\t\t\t\tstmt.setString(1, user.getEmail());\t\t\r\n\t\t\t\trs = stmt.executeQuery();\r\n\t\t\t\tif (rs.next()) {\r\n\t\t\t\t\t// update user info\r\n\t\t\t\t\tint userid = rs.getInt(\"id\");\r\n\t\t\t\t\tresultid = userid;\r\n\t\t\t\t\tif (userImageKey.equals(\"\")) {\r\n\t\t\t\t\t\tuserImageKey = rs.getString(\"imagekey\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t\t\r\n\t\t\t\t\tString statement = \"UPDATE usertbl SET userid = ?, username = ?, imagekey = ?, registrationid = ? WHERE id = ?\";\r\n\t\t\t\t\tPreparedStatement upstmt = c.prepareStatement(statement);\r\n\t\t\t\t\tupstmt.setString(1, user.getEmail());\r\n\t\t\t\t\tupstmt.setString(2, name);\r\n\t\t\t\t\tupstmt.setString(3, userImageKey);\r\n\t\t\t\t\tupstmt.setString(4, registrationId);\r\n\t\t\t\t\tupstmt.setInt(5, userid);\r\n\t\t\t\t\tupstmt.executeUpdate();\r\n\t\t\t\t\tif (session.getAttribute(\"userid\") == null) {\r\n\t\t\t\t\t\tsession.setAttribute(\"userid\", userid);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresult = \"Success\";\r\n\t\t\t\t\tresultid = userid;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// insert user info\r\n\t\t\t\t\tString statementFormat = \"INSERT INTO usertbl(userid,username,imagekey,registrationid) VALUES('%s','%s','%s','%s')\";\r\n\t\t\t\t\tString statement = String.format(statementFormat, user.getEmail(),name,userImageKey,registrationId);\r\n\t\t\t\t\tStatement instmt = c.createStatement();\r\n\t\t\t\t\tinstmt.executeUpdate(statement,Statement.RETURN_GENERATED_KEYS);\r\n\t\t\t\t\tResultSet rs2 = instmt.getGeneratedKeys();\r\n\t\t\t\t\tif (rs2.next()) {\r\n\t\t\t\t\t\tint userid = rs2.getInt(1);\r\n\t\t\t\t\t\tsession.setAttribute(\"userid\", userid);\r\n\t\t\t\t\t\tresult = \"Success\";\r\n\t\t\t\t\t\tresultid = userid;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tresult = \"Fail\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tresult = \"Fail\";\r\n\t\t\t} finally {\r\n\t\t\t\tif (c != null) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tc.close();\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tresult = \"NotLogin\";\r\n\t\t}\r\n\r\n\t req.setAttribute(\"result\", result);\r\n\t req.setAttribute(\"resultid\", resultid);\r\n\t try {\r\n req.getRequestDispatcher(\"/UploadResult.jsp\").forward(req, resp);\r\n } catch (ServletException e) {\r\n }\r\n\t\t\r\n\t}", "protected Map<String,String> getParametersMap(HttpServletRequest request) {\n\t\tMap<String,String> map = new HashMap<String,String>();\n\t\t\n\t\tEnumeration<String> paramNames = request.getParameterNames() ;\n\t\t\n\t\twhile ( paramNames.hasMoreElements() ) {\n\t\t\tString name = paramNames.nextElement() ;\n\t\t\tString value = request.getParameter(name) ;\n\t\t\tmap.put(name, value);\n\t\t}\n\t\treturn map ;\n\t}", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tboolean isMultipart = ServletFileUpload.isMultipartContent(request);\r\n\r\n\t\tif (!isMultipart) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Create a factory for disk-based file items\r\n\t\tDiskFileItemFactory factory = new DiskFileItemFactory();\r\n\r\n\t\t// Sets the size threshold beyond which files are written directly to\r\n\t\t// disk.\r\n\t\tfactory.setSizeThreshold(MAX_MEMORY_SIZE);\r\n\r\n\t\t// Sets the directory used to temporarily store files that are larger\r\n\t\t// than the configured size threshold. We use temporary directory for\r\n\t\t// java\r\n\t\tfactory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\r\n\r\n\t\t// constructs the folder where uploaded file will be stored\r\n\t\t// String uploadFolder = getServletContext().getRealPath(\"\")\r\n\t\t// + File.separator + DATA_DIRECTORY;\r\n\r\n\t\tString[] route = getServletContext().getRealPath(\"\").split(Pattern.quote(File.separator));\r\n\t\tStringBuffer uploadFolderSb = new StringBuffer();\r\n\t\t// uploadFolderSb.append(File.separator);\r\n\t\tfor (int i = 0; i < route.length - 2; i++) {\r\n\t\t\tuploadFolderSb.append(route[i]);\r\n\t\t\tuploadFolderSb.append(File.separator);\r\n\t\t}\r\n\r\n\t\tuploadFolderSb.append(\"docroot\");\r\n\t\tuploadFolderSb.append(File.separator + DATA_DIRECTORY);\r\n\t\tString uploadFolder = uploadFolderSb.toString();\r\n\r\n\t\t// String uploadFolderRel = getServletContext().getContextPath()\r\n\t\t// + File.separator + DATA_DIRECTORY;\r\n//\t\tString uploadFolderRel = \"\\\\\" + DATA_DIRECTORY;\r\n\t\t// Create a new file upload handler\r\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\r\n\r\n\t\t// Set overall request size constraint\r\n\t\tupload.setSizeMax(MAX_REQUEST_SIZE);\r\n\t\tList<String> webLinks = new ArrayList<String>();\r\n\t\tString publishedYear = \"0000\";\r\n\t\tString title = \"\";\r\n\t\tString isbn = \"0\";\r\n\t\tString pagesCount = \"0\";\r\n\t\tString author = \"0\";\r\n\t\tLong userAppId = null;\r\n\t\ttry {\r\n\t\t\t// Parse the request\r\n\t\t\tList items = upload.parseRequest(request);\r\n\t\t\tIterator iter = items.iterator();\r\n\t\t\twhile (iter.hasNext()) {\r\n\t\t\t\tFileItem item = (FileItem) iter.next();\r\n\r\n\t\t\t\tif (!item.isFormField()) {\r\n\t\t\t\t\tString fileName = new File(item.getName()).getName();\r\n\t\t\t\t\tString filePath = uploadFolder + File.separator + fileName;\r\n\t\t\t\t\tString fileRelPath = \r\n\t\t\t\t\t\t\t//uploadFolderRel + \r\n\t\t\t\t\t\t\tFile.separator\r\n\t\t\t\t\t\t\t+ fileName;\r\n\t\t\t\t\tFile uploadedFile = new File(filePath);\r\n\r\n\t\t\t\t\t// saves the file to upload directory\r\n\t\t\t\t\titem.write(uploadedFile);\r\n\t\t\t\t\tString finalPath = fileRelPath.replace(\"//\", \"/\");\r\n\t\t\t\t\twebLinks.add(finalPath);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (item.getFieldName().equals(\r\n\t\t\t\t\t\t\tConstants.BLOB_PUBLISHED_YEAR)) {\r\n\t\t\t\t\t\tpublishedYear = item.getString();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.BLOB_TITLE)) {\r\n\t\t\t\t\t\ttitle = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.ISBN)) {\r\n\t\t\t\t\t\tisbn = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.PAGES_COUNT)) {\r\n\t\t\t\t\t\tpagesCount = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.BLOB_AUTHOR)) {\r\n\t\t\t\t\t\tauthor = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.BLOB_UPLOADER)) {\r\n\t\t\t\t\t\tuserAppId = Long.parseLong(item.getString());\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\tProfessor professor = ((GWTServiceImpl) gwtServiceImpl)\r\n\t\t\t\t\t.findProfessor(userAppId);\r\n\t\t\tLocalBook localBook = new LocalBook(professor, author, isbn,\r\n\t\t\t\t\tpagesCount, publishedYear, title);\r\n//\t\t\tString absPath = getServletContext().getRealPath(\"\").substring(0,\r\n//\t\t\t\t\t52)\r\n//\t\t\t\t\t+ File.separator + \"docroot\" + File.separator;\r\n\t\t\tList<String> imagesWebLinks = convert(uploadFolder\r\n\t\t\t\t\t+ webLinks.get(0),uploadFolder);\r\n\t\t\tlocalBook.setWebLinks(imagesWebLinks);\r\n\t\t\tprofessor.getBooks().add(localBook);\r\n\t\t\tsaveUser((Professor) professor);\r\n\t\t\t// displays done.jsp page after upload finished\r\n\t\t\t// getServletContext().getRequestDispatcher(\"/done.jsp\").forward(request,\r\n\t\t\t// response);\r\n\r\n\t\t} catch (FileUploadException ex) {\r\n\t\t\tthrow new ServletException(ex);\r\n\t\t} catch (ProfessorNotFoundException pnfe) {\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tthrow new ServletException(ex);\r\n\t\t}\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n}", "@RequestMapping(value = \"/session_form.htm\",method = RequestMethod.GET)\r\n\tpublic String sessionForm(ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\tUserController.protectRoute(session,response);\r\n\t\t\r\n\t\treturn \"home\";\r\n\t}", "@Override\n\t\tpublic Map getParameterMap() {\n\t\t\treturn null;\n\t\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n String title = \"Reading All Request Parameters\";\n\n\tout.println(\"<head><title>ShowParameters Servlet</title></head>\");\n\n out.println(\"<BODY BGCOLOR=\\\"#FDF5E6\\\">\\n\" +\n \"<H1 ALIGN=CENTER>\" + title + \"</H1>\\n\" +\n \"<TABLE BORDER=1 ALIGN=CENTER>\\n\" +\n \"<TR BGCOLOR=\\\"#FFAD00\\\">\\n\" +\n \"<TH>Parameter Name<TH>Parameter Value(s)\");\n\n Enumeration paramNames = request.getParameterNames();\n\n \twhile(paramNames.hasMoreElements())\n \t{\n \t \tString paramName = (String)paramNames.nextElement();\n \t \tout.print(\"<TR><TD>\" + paramName + \"<TD>\");\n\n \t\tString[ ] paramValues = request.getParameterValues(paramName);\n\n \t\tif (paramValues.length == 1)// array is one entry long? contains only empty string\n \t\t{\n \t\tString paramValue = paramValues[0];\n \t\tif (paramValue.length() == 0)\t//parameter has no value\n \t\t\t out.println(\"<I>No Value</I>\"); //displays in italic\n \t\telse\n \t\t\tout.println(paramValue);\n \t\t}\n \t\telse\t\t\t//parameter has multiple values\n \t\t{\n \t\tout.println(\"<UL>\");\n \t\tfor(int i=0; i<paramValues.length; i++)\n \t\t{\n \t\t\tout.println(\"<LI>\" + paramValues[i]);\t\t//values are dislayed\n \t\t}\n\n \t\tout.println(\"</UL>\");\n \t\t}\n \t}\n\n \tout.println(\"</TABLE>\\n</BODY></HTML>\");\n } finally { \n out.close();\n }\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException { \r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n \r\n HttpSession session = request.getSession(true); \r\n Inmobiliaria inmobiliaria= (Inmobiliaria) session.getAttribute(\"inmobiliaria\"); \r\n if(inmobiliaria==null) inmobiliaria = Inmobiliaria.darObjeto(); \r\n session.setAttribute(\"inmobiliaria\", inmobiliaria);\r\n \r\n MultipartFormDataRequest mrequest = null; \r\n RequestDispatcher dispatcher = null; \r\n UploadBean upBean = null;//UploadBean es una libreria que se usa para poder llevar objetos al servidor en este caso la imagen \r\n \r\n String operacion = null; \r\n String mensaje = null;\r\n String url = null;\r\n \r\n try{ \r\n \r\n mrequest= new MultipartFormDataRequest(request); //le indicamos que recoga todo lo que nos esta mandando el .jsp \r\n operacion = mrequest.getParameter(\"btn_aceptar\");\r\n \r\n if ((operacion != null) && (operacion.equalsIgnoreCase(\"Agregar\"))) { \r\n \r\n //recuperar campos de texto:\r\n String dir = mrequest.getParameter(\"txt_direccion\"); \r\n String barrio = mrequest.getParameter(\"txt_barrio\"); \r\n String tel = mrequest.getParameter(\"txt_telefono\"); \r\n String tipo = mrequest.getParameter(\"dpd_tipoInmueble\"); \r\n String categoria = mrequest.getParameter(\"dpd_categoria\"); \r\n String tamanio = mrequest.getParameter(\"txt_tamano\"); \r\n int precio = Integer.parseInt(mrequest.getParameter(\"txt_precio\")); \r\n String ciudad = mrequest.getParameter(\"dpd_ciudad\"); \r\n \r\n String imagen = dir.replaceAll(\" \",\"\")+\".jpg\"; \r\n //-------------------- \r\n \r\n //enviar datos:\r\n try {\r\n \r\n inmobiliaria.adicionarInmueble(barrio, dir, tel, tipo, tamanio, precio, imagen, categoria, ciudad); \r\n mensaje = inmobiliaria.getMensaje(); \r\n \r\n if(mensaje.equals(\"El inmueble se adicionó con Exito\")){\r\n //recuperar archivo (imagen): \r\n Hashtable files = mrequest.getFiles();\r\n if ((files != null) && (!files.isEmpty())) { \r\n UploadFile file = (UploadFile) files.get(\"uploadfile\");\r\n \r\n file.setFileName(imagen);\r\n upBean = new UploadBean(); \r\n\r\n upBean.setFolderstore(\"D:\\\\DOCUMENTOS\\\\UMARIANA\\\\proyNetbeans\\\\Inmobiliaria\\\\web\\\\images\\\\inmuebles\\\\\"); \r\n upBean.store(mrequest, \"uploadfile\"); //Con el Store le decimos al MultipartFormRequest que obtenta tambien la imagen \r\n\r\n } else {\r\n System.out.println(\"<li>No uploaded files\");\r\n }\r\n //----------------------------------------------------- \r\n }\r\n \r\n } catch (Exception e) {\r\n out.println(e.getMessage());\r\n }\r\n \r\n \r\n url = \"AgregarInmueble.jsp\";\r\n \r\n session.setAttribute(\"mensaje\", mensaje);\r\n session.setAttribute(\"url\", url);\r\n\r\n response.sendRedirect(\"./Mensajes.jsp\"); \r\n \r\n }//if de (operacion) \r\n \r\n //modificar un inmueble:\r\n if ((operacion != null) && (operacion.equalsIgnoreCase(\"Modificar\"))) {\r\n String dirOriginal = mrequest.getParameter(\"txt_dir_original\"); //direccion original del inmueble \r\n \r\n String dir = mrequest.getParameter(\"txt_direccion\"); \r\n String barrio = mrequest.getParameter(\"txt_barrio\"); \r\n String tel = mrequest.getParameter(\"txt_telefono\"); \r\n String tipo = mrequest.getParameter(\"dpd_tipoInmueble\"); \r\n String categoria = mrequest.getParameter(\"dpd_categoria\"); \r\n String tamanio = mrequest.getParameter(\"txt_tamano\"); \r\n int precio = Integer.parseInt(mrequest.getParameter(\"txt_precio\")); \r\n String ciudad = mrequest.getParameter(\"dpd_ciudad\"); \r\n String imagenOriginal = dirOriginal.replaceAll(\" \",\"\")+\".jpg\";\r\n String imagenNueva = dir.replaceAll(\" \",\"\")+\".jpg\";\r\n \r\n try {\r\n //eliminar archivo anterior:\r\n String imagenCambiada = mrequest.getParameter(\"imagenCambiada\"); \r\n if(imagenCambiada.equals(\"1\")){\r\n String ruta=\"D:/DOCUMENTOS/UMARIANA/proyNetbeans/Inmobiliaria/web/images/inmuebles/\"+imagenOriginal;\r\n inmobiliaria.eliminarArchivo(ruta);\r\n } \r\n else imagenNueva = imagenOriginal;\r\n \r\n inmobiliaria.modificarInmueble(barrio, dir, tel, tipo, categoria, tamanio, precio, ciudad, imagenNueva, dirOriginal); \r\n \r\n //recuperar archivo (imagen): \r\n Hashtable files = mrequest.getFiles();\r\n if ((files != null) && (!files.isEmpty())) { \r\n UploadFile file = (UploadFile) files.get(\"uploadfile\"); \r\n file.setFileName(imagenNueva);\r\n upBean = new UploadBean(); \r\n upBean.setFolderstore(\"D:\\\\DOCUMENTOS\\\\UMARIANA\\\\proyNetbeans\\\\Inmobiliaria\\\\web\\\\images\\\\inmuebles\\\\\"); \r\n upBean.store(mrequest, \"uploadfile\"); //Con el Store le decimos al MultipartFormRequest que obtenga tambien la imagen \r\n\r\n } else {\r\n out.write(\"es null\");\r\n } \r\n \r\n } catch (Exception e) {\r\n }\r\n \r\n mensaje = inmobiliaria.getMensaje();\r\n url = \"AdministrarInmuebles.jsp\";\r\n \r\n session.setAttribute(\"url\", url);\r\n session.setAttribute(\"mensaje\", mensaje);\r\n \r\n response.sendRedirect(\"./Mensajes.jsp\"); \r\n \r\n \r\n }//if(modificar)\r\n \r\n }catch( UploadException exc){\r\n System.out.println(\"Error en lo primero: \"+exc.getMessage());\r\n } \r\n \r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "final void request(HttpServletRequest request) {\n \n // Find the session ID in the cookies\n String sessionId = null;\n Cookie[] cookies = request.getCookies();\n int cookieCount = (cookies == null) ? 0 : cookies.length;\n for (int i = 0; i < cookieCount && sessionId == null; i++) {\n Cookie cookie = cookies[i];\n String name = cookie.getName();\n if (\"SessionId\".equals(name)) {\n sessionId = cookie.getValue();\n }\n }\n \n HttpSession session = request.getSession(true);\n _currentSession.set(session);\n \n // If the session ID is not found in the cookies, create a new one\n if (sessionId == null) {\n \n sessionId = session.getId();\n setProperty(sessionId, Boolean.FALSE);\n }\n \n // Fill the input parameters\n HashMap inputParameters = new HashMap();\n Enumeration params = request.getParameterNames();\n while (params.hasMoreElements()) {\n String name = (String) params.nextElement();\n String value = request.getParameter(name);\n if (\"\".equals(value) || name.equals(getSessionId())) {\n value = null;\n }\n inputParameters.put(name, value);\n }\n setProperty(\"_inputs\", inputParameters);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String url = \"/index.jsp\";\n\n \n \n\n HttpSession session = request.getSession();\n\n String action = request.getParameter(\"act\");\n if (action == null) {\n action = \"n\";\n session.invalidate();\n session = request.getSession(); \n }\n\n if (action.equalsIgnoreCase(\"n\")) { //brand new, just accessing the site\n session.invalidate();\n session = request.getSession();\n session.setAttribute(\"hd1\", \"hidden\");\n session.setAttribute(\"hd2\", \"hidden\");\n ArrayList<String> lgError1 = new ArrayList();\n ArrayList<String> lgError2 = new ArrayList();\n session.setAttribute(\"er1\", lgError1);\n session.setAttribute(\"er2\", lgError1);\n ArrayList<School> schl = dbSignIn.getAllSchools();\n session.setAttribute(\"schl\", schl);\n\n \n } else if (action.equalsIgnoreCase(\"su\")) { //sign up\n session.setAttribute(\"hd1\", \"hidden\");\n session.setAttribute(\"hd2\", \"hidden\");\n ArrayList<String> lgError1 = new ArrayList();\n ArrayList<String> lgError2 = new ArrayList();\n session.setAttribute(\"er1\", lgError1);\n session.setAttribute(\"er2\", lgError2);\n\n String fn = request.getParameter(\"fn\");\n String ln = request.getParameter(\"ln\");\n String ph = request.getParameter(\"ph\");\n String em = request.getParameter(\"em\");\n String pw = request.getParameter(\"pw\");\n String rpw = request.getParameter(\"rpw\");\n\n ArrayList<School> schl = (ArrayList<School>) session.getAttribute(\"schl\");\n String sl = request.getParameter(\"sl\");\n School s1 = null;\n\n String errString = \"\";\n //<<<<<<<<<<<<<<<< First Name Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(fn)) {\n if (!IVString.IsNumeric(fn)) {\n if (!IVString.ContainsSpecials(fn)) {\n //DO SOMETHING\n } else {\n errString += \"fn\";\n lgError2.add(\"First Name contained invalid characters.\");\n }\n } else {\n errString += \"fn\";\n lgError2.add(\"First Name contained invalid characters.\");\n }\n } else {\n errString += \"fn\";\n lgError2.add(\"A First Name was not entered.\");\n }\n //<<<<<<<<<<<<<<<< Last Name Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(ln)) {\n if (!IVString.IsNumeric(fn)) {\n if (!IVString.ContainsSpecials(fn)) {\n //DO SOMETHING\n } else {\n errString += \"ln\";\n lgError2.add(\"Last Name contained invalid characters.\");\n }\n } else {\n errString += \"ln\";\n lgError2.add(\"Last Name contained invalid characters.\");\n }\n } else {\n errString += \"ln\";\n lgError2.add(\"A Last Name was not entered.\");\n }\n //<<<<<<<<<<<<<<<< Phone Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(ph)) {\n if (IVString.IsNumeric(ph)) {\n //DO SOMETHING\n } else {\n errString += \"ph\";\n lgError2.add(\"Phone Number contained invalid characters.\");\n }\n } else {\n errString += \"ph\";\n lgError2.add(\"A Phone Number was not entered.\");\n }\n //<<<<<<<<<<<<<<<< Email Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(em)) {\n if (IVString.MatchesRegex(em, IVString.regexLib(\"email\"))) {\n if (!dbSignIn.chkUserExists(em)) {\n //DO SOMETHING\n } else {\n errString += \"em\";\n lgError2.add(\"Email already exists in system.\");\n }\n } else {\n errString += \"em\";\n lgError2.add(\"An invalid Email Address was entered.\");\n }\n } else {\n errString += \"em\";\n lgError2.add(\"An Email Address was not entered.\");\n }\n //<<<<<<<<<<<<<<<< Password Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(pw) && IVString.ContainsText(rpw)) {\n if (pw.equals(rpw)) {\n //DO SOMETHING\n } else {\n errString += \"pw\";\n lgError2.add(\"Passwords did not match.\");\n }\n } else {\n errString += \"pw\";\n lgError2.add(\"A Password was not entered.\");\n }\n //<<<<<<<<<<<<<<<< School Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(sl)) {\n if (IVString.IsNumeric(sl)) {\n int s2 = Integer.parseInt(sl);\n for (int i = 0; i < schl.size(); i++) {\n if (schl.get(i).getSID() == s2) {\n s1 = schl.get(i);\n }\n }\n if (s1 != null) {\n //DO SOMETHING\n } else {\n errString += \"sl\";\n lgError2.add(\"School was not found.\");\n }\n } else if (sl.equalsIgnoreCase(\"ZZZ\")) {\n errString += \"zz\";\n } else {\n errString += \"sl\";\n lgError2.add(\"School was not found.\");\n }\n } else {\n errString += \"sl\";\n lgError2.add(\"A School was not entered.\");\n }\n\n //<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>\n //<<<<<<<<<<<<<<<< Final Validation >>>>>>>>>>>>>>>>\n //<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>\n if (errString == null || errString.equals(\"\")) {\n session.setAttribute(\"hd2\", \"hidden\");\n url = \"/formCont\";\n //<<<<<<<<<<<<<<<< Object Creation >>>>>>>>>>>>>>>>\n uDir newDir = new uDir();\n newDir.setfName(fn);\n newDir.setlName(ln);\n newDir.setPhone(ph);\n newDir.setUus(em);\n newDir.setHus(ec.EC_dus(em));\n newDir.setHpw(ec.EC_dpw(pw));\n ArrayList<School> insertSchool = new ArrayList<School>();\n insertSchool.add(s1);\n newDir.setSchls(insertSchool);\n newDir = dbSignIn.newUser(newDir);\n if(newDir == null) {\n url = \"err500.jsp\";\n }\n } else if (errString.equalsIgnoreCase(\"zz\")) {\n url = \"/addSchl.jsp\";\n } else {\n session.setAttribute(\"hd2\", \"\");\n url = \"/index.jsp\";\n if (!errString.contains(\"fn\")) {\n session.setAttribute(\"fn\", fn);\n session.setAttribute(\"fnact\", \"active\");\n }\n if (!errString.contains(\"ln\")) {\n session.setAttribute(\"ln\", ln);\n session.setAttribute(\"lnact\", \"active\");\n }\n if (!errString.contains(\"ph\")) {\n session.setAttribute(\"ph\", ph);\n session.setAttribute(\"phact\", \"active\");\n }\n if (!errString.contains(\"em\")) {\n session.setAttribute(\"em\", em);\n session.setAttribute(\"emact\", \"active\");\n }\n if (!errString.contains(\"sl\")) {\n session.setAttribute(\"sl\", sl);\n session.setAttribute(\"slact\", \"active\");\n }\n }\n\n session.setAttribute(\"er1\", lgError1);\n session.setAttribute(\"er2\", lgError2);\n\n } else if (action.equalsIgnoreCase(\"lg\")) { //regular log in\n session.setAttribute(\"hd1\", \"hidden\");\n session.setAttribute(\"hd2\", \"hidden\");\n ArrayList<String> lgError1 = new ArrayList();\n ArrayList<String> lgError2 = new ArrayList();\n session.setAttribute(\"er1\", lgError1);\n session.setAttribute(\"er2\", lgError1);\n String us = request.getParameter(\"us\");\n String pw = request.getParameter(\"pw\");\n \n String errString = \"\";\n //<<<<<<<<<<<<<<<< Username Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(us)) {\n if (IVString.MatchesRegex(us, IVString.regexLib(\"email\"))) {\n //do something\n } else {\n errString += \"us\";\n lgError1.add(\"An invalid Email Address was entered.\");\n }\n } else {\n errString += \"us\";\n lgError1.add(\"An Email Address was not entered.\");\n }\n //<<<<<<<<<<<<<<<< Password Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(pw)) {\n //Do Something\n } else {\n errString += \"pw\";\n lgError1.add(\"A Password was not entered.\");\n }\n\n \n //<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>\n //<<<<<<<<<<<<<<<< Final Validation >>>>>>>>>>>>>>>>\n //<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>\n if (errString == null || errString.equals(\"\")) {\n session.setAttribute(\"hd1\", \"hidden\");\n url = \"/formCont\";\n //<<<<<<<<<<<<<<<< Object Creation >>>>>>>>>>>>>>>>\n uBase frstUsr = new uBase();\n frstUsr.setUus(us);\n frstUsr.setHus(ec.EC_dus(us));\n frstUsr.setHpw(ec.EC_dpw(pw));\n \n if(dbSignIn.loginUser(frstUsr) == 1) {\n //get user values\n uDir lgnDir = dbSignIn.getDirectorfromUS(frstUsr);\n url = \"/grpBaseCont\";\n session.setAttribute(\"usr\", lgnDir);\n \n \n } else {\n url = \"/index.jsp\";\n session.setAttribute(\"hd1\", \"\");\n lgError1.add(\"Username/Password was incorrect.\");\n }\n } else {\n session.setAttribute(\"hd1\", \"\");\n url = \"/index.jsp\";\n }\n\n session.setAttribute(\"er1\", lgError1);\n session.setAttribute(\"er2\", lgError2);\n\n } else if (action.equalsIgnoreCase(\"ev\")) { //clicks event manager button\n url = \"/evtlgn.jsp\";\n session.setAttribute(\"hd1\", \"hidden\");\n ArrayList<String> lgError1 = new ArrayList();\n session.setAttribute(\"er1\", lgError1);\n\n } else if (action.equalsIgnoreCase(\"elg\")) { //event manager login\n url = \"/evtLst.jsp\";\n session.setAttribute(\"hd1\", \"hidden\");\n ArrayList<String> lgError1 = new ArrayList();\n session.setAttribute(\"er1\", lgError1);\n uBase cus = new uBase();\n String us = request.getParameter(\"us\");\n String pw = request.getParameter(\"pw\");\n boolean lg1, lg2, lg3 = false;\n lg1 = IVString.ContainsText(us);\n lg2 = IVString.MatchesRegex(us, IVString.regexLib(\"email\"));\n lg3 = IVString.ContainsText(pw);\n\n if (lg1 && lg2 && lg3) {\n url = \"/evtLst.jsp\";\n\n cus.setUus(us);\n cus.setHus(ec.EC_dus(us));\n cus.setHpw(ec.EC_dpw(us));\n session.setAttribute(\"us\", cus.getUus());\n session.setAttribute(\"pw\", cus.getHpw());\n } else {\n url = \"/evtlgn.jsp\";\n if (!lg1 || !lg2) {\n session.setAttribute(\"hd1\", \"\");\n if (!lg1) {\n lgError1.add(\"An email was not entered.\");\n } else if (!lg2) {\n lgError1.add(\"An invalid email was entered.\");\n }\n }\n if (!lg3) {\n lgError1.add(\"A password was not entered.\");\n }\n session.setAttribute(\"er1\", lgError1);\n }\n } else {\n url = \"index.jsp\";\n }\n\n getServletContext()\n .getRequestDispatcher(url)\n .forward(request, response);\n }", "protected Map<String, Object> paserRequetToHashMap(HttpServletRequest req){\n\t\t\n\t\tMap<String,Object> params = new HashMap<>();\n\t\t\n\t\tEnumeration<?> enumber = req.getParameterNames();\n\n\t\twhile (enumber.hasMoreElements()) {\n\t\t\tString key = enumber.nextElement().toString();\n\t\t\tObject value = req.getParameter(key);\n\t\t\tparams.put(key, value); \n\t\t}\n\t\t\n\t\t\n\t\treturn params;\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n\n final String gameName = request.getParameter(Constants.GAME_NAME_ATTRIBUTE_NAME);\n final String creatorName = SessionUtils.getSessionUsername(request);\n final Part filePart = request.getPart(\"file\"); // Retrieves <input type=\"file\" name=\"file\">\n final String fileName = getSubmittedFileName(filePart);\n\n try {\n InputStream fileContent = filePart.getInputStream();\n File outputTempFile = InputFileUtils.inputStreamToFile(fileContent, DIRECTORY_NAME, FILE_NAME_START + tempSaveCounter++, \"xml\");\n\n GameConfig gameConfig = new GameConfig();\n gameConfig.load(outputTempFile);\n Game game = gameConfig.initiateGameFromGenerated();\n\n int currentGameVersion = SessionUtils.getGameVersion(request);\n\n processGameRecord(gameName, creatorName, game, currentGameVersion);\n\n request.getSession().setAttribute(Constants.GAME_NAME_ATTRIBUTE_NAME, gameName);\n request.getSession().setAttribute(Constants.PLAYER_TYPE_ATTRIBUTE, Player.Type.PLAYER_ONE);\n System.out.println(\"GameRecord inserted successfully\");\n\n response.sendRedirect(Constants.GAME_URI);\n //DEBUG: System.out.println(\"The game \" + gameName + \" was saved on session \" + request.getSession().toString());\n } catch (RecordAlreadyExistsException e) {\n // player is already in game, transfer to its game\n //request.getSession().setAttribute(Constants.GAME_NAME_ATTRIBUTE_NAME, gameName);\n response.sendRedirect(Constants.DUPLICATE_GAME_URI);\n\n } catch (JAXBException | ConfigException e) {\n // error in parsing file\n handleErrorInParsingFile(request, response, fileName, e);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet savepic</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet savepic at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "@Override\n\tpublic Map getParameterMap() {\n\t\treturn null;\n\t}", "private InputStream getBodyFromServletRequestParameters(HttpServletRequest request)\r\n/* 96: */ throws IOException\r\n/* 97: */ {\r\n/* 98:128 */ ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n/* 99:129 */ Writer writer = new OutputStreamWriter(bos, \"UTF-8\");\r\n/* 100: */ \r\n/* 101:131 */ Map<String, String[]> form = request.getParameterMap();\r\n/* 102:132 */ for (Iterator<String> nameIterator = form.keySet().iterator(); nameIterator.hasNext();)\r\n/* 103: */ {\r\n/* 104:133 */ String name = (String)nameIterator.next();\r\n/* 105:134 */ List<String> values = Arrays.asList((String[])form.get(name));\r\n/* 106:135 */ for (Iterator<String> valueIterator = values.iterator(); valueIterator.hasNext();)\r\n/* 107: */ {\r\n/* 108:136 */ String value = (String)valueIterator.next();\r\n/* 109:137 */ writer.write(URLEncoder.encode(name, \"UTF-8\"));\r\n/* 110:138 */ if (value != null)\r\n/* 111: */ {\r\n/* 112:139 */ writer.write(61);\r\n/* 113:140 */ writer.write(URLEncoder.encode(value, \"UTF-8\"));\r\n/* 114:141 */ if (valueIterator.hasNext()) {\r\n/* 115:142 */ writer.write(38);\r\n/* 116: */ }\r\n/* 117: */ }\r\n/* 118: */ }\r\n/* 119:146 */ if (nameIterator.hasNext()) {\r\n/* 120:147 */ writer.append('&');\r\n/* 121: */ }\r\n/* 122: */ }\r\n/* 123:150 */ writer.flush();\r\n/* 124: */ \r\n/* 125:152 */ return new ByteArrayInputStream(bos.toByteArray());\r\n/* 126: */ }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException\r\n {\r\n \r\n\r\n// get next incident id\r\n int maxIncidentID = 0;\r\n String msg_title= \"\";\r\n String msg_description= \"\";\r\n String time= \"\";\r\n String latLong = \"\";\r\n String userID=\"\";\r\n String password=\"\";\r\n ArrayList<String> imagePaths = new ArrayList<String>();\r\n List<FileItem> items = null;\r\n // run a query to insert a row with the incident id (already received) and latlong and message details and image paths.\r\n \r\n String currTime = new Timestamp(new Date().getTime()).toString();\r\n String name = currTime.replaceAll(\"\\\\:|\\\\-|\\\\s+|\\\\.\", \"\");\r\n System.out.println(name);\r\n String sImagePath = \"C:/incidentImages/\"+name+\"/\";\r\n boolean success = ( new File(sImagePath)).mkdirs();\r\n if (success) {\r\n System.out.println(\"Directory: \" + sImagePath + \" created\");\r\n } \r\n new File(sImagePath);\r\n try\r\n {\r\n items = new ServletFileUpload(new\r\n DiskFileItemFactory()).parseRequest(request);\r\n for (FileItem item : items)\r\n {\r\n if(item.getFieldName().equals(\"message\"))\r\n {\r\n// File dataFile = new\r\n// File(sImagePath+System.currentTimeMillis());\r\n msg_description = item.getString();\r\n /*FileWriter v = new FileWriter(dataFile);\r\n v.append(sVal);\r\n v.close();*/\r\n }\r\n \r\n if(item.getFieldName().equals(\"latitude\"))\r\n {\r\n /*File dataFile = new File(sImagePath+\"gps_\"+System.currentTimeMillis() +\".txt\");\r\n String sVal = item.getString();\r\n FileWriter v = new FileWriter(dataFile);\r\n v.append(sVal);\r\n v.close();*/\r\n latLong = item.getString();\r\n }\r\n if(item.getFieldName().equals(\"longitude\"))\r\n { \r\n latLong = latLong + \",\" + item.getString(); \r\n }\r\n \r\n if(item.getFieldName().equals(\"message_title\"))\r\n { \r\n msg_title = item.getString();\r\n }\r\n \r\n if(item.getFieldName().equals(\"reporting_time\"))\r\n { \r\n time = item.getString();\r\n }\r\n \r\n if(item.getFieldName().equals(\"uid\"))\r\n {\r\n userID=item.getString();\r\n }\r\n \r\n if(item.getFieldName().equals(\"pass\"))\r\n {\r\n password=item.getString();\r\n }\r\n if (item.getFieldName().equals(\"image\"))\r\n {\r\n String fileName = item.getName();\r\n //String fileContentType = item.getContentType();\r\n InputStream fileContent = item.getInputStream();\r\n\r\n BufferedImage bImageFromConvert = ImageIO.read(fileContent);\r\n imagePaths.add(sImagePath+fileName);\r\n \r\n File vImageFile = new File(sImagePath+fileName);\r\n\r\n ImageIO.write(bImageFromConvert, \"jpg\", vImageFile);\r\n //Image img = ImageIO.read(new File(sImagePath+fileName)).getScaledInstance(100, 100, BufferedImage.SCALE_SMOOTH);\r\n \r\n BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB);\r\n img.createGraphics().drawImage(ImageIO.read(vImageFile).getScaledInstance(100, 100, Image.SCALE_SMOOTH),0,0,null);\r\n ImageIO.write(img, \"jpg\", new File(sImagePath+fileName+\"_thumb.jpg\"));\r\n\r\n }\r\n \r\n }\r\n } catch (Exception e) {\r\n throw new ServletException(\"Cannot parse multipart request.\", e);\r\n }\r\n maxIncidentID = insertIncidentMsg(msg_title,msg_description,time,latLong,imagePaths);\r\n processRequest(request, response);\r\n\r\n }", "protected void processRequest(HttpServletRequest req, HttpServletResponse resp)\n throws ServletException, IOException {\n resp.setContentType(\"text/html\");\n\n // This PrintWriter allows us to write data to the HTTP \n // response body that is going to be sent to the client.\n PrintWriter sendToClient = resp.getWriter();\n \n // UI form\n sendToClient.write(\n \"<br><form name='formvideo' method='POST' target='_self'>\" +\n \"<fieldset><legend>Test Data</legend>\" +\n \"<table><tr>\" +\n \"<td><label for='name'>Name:&nbsp;</label></td>\" +\n \"<td><input type='text' name='name' id='name' size='64' maxlength='64' /></td>\" +\n \"</tr><tr>\" +\n \"<td><label for='school'>School:&nbsp;</label></td>\" +\n \"<td><input type='text' name='school' id='school' size='64' maxlength='256' /></td>\" +\n \"</tr><tr>\" +\n \"<td><label for='major'>Major:&nbsp;</label></td>\" +\n \"<td><input type='text' name='major' id='major' size='64' maxlength='256' /></td>\" +\n \"</tr><tr> \"+\n \n \"<td><label for='year'>Year of Admission:&nbsp;</label></td>\" +\n \"<td><input type='text' name='year' id='year' size='16' maxlength='256' /></td>\" +\n \n \"</tr><tr>\" +\n \n \"<td style='text-align: right;' colspan=2><input type='submit' value='Add' /></td>\" +\n \"</tr></table></fieldset></form></br>\" );\n \n // Loop through all of the stored videos and print them out\n // for the client to see.\n for (Student v : this.students) {\n \n // For each video, write its name and URL into the HTTP\n // response body\n sendToClient.write(\"<b>\"+v.getName() +\"</b>\"+ \" : \" + v.getSchool() +\"--\"+v.getMajor()+ \" (<i>\" + v.getYear() + \" </i>) at \"+v.getIP() +\"<br />\" );\n }\n sendToClient.write(\"<font size=\\\"4\\\" > <i> This application is created by Meng Yang at UESTC on 2014-10-05.</i></font>\");\n sendToClient.write(\"</body></html>\");\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\nprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n}", "@RequestMapping(\"/fileUpload2\")\n public ModelAndView fileUpload2(@RequestParam(\"file\") CommonsMultipartFile file, HttpServletRequest request) throws IOException {\n\n String realPath = \"/Users/leipu/IdeaProjects/ssm_test/src/main/webapp/fileUpload/\";\n // System.out.println(\"contextPath\"+request.getSession().getServletContext().getRealPath(\"/fileUpload\")+\"111111\");\n\n // System.out.println(\"ServletPath\"+request.getServletPath()+\"2222222\");\n\n // System.out.println(request.getCharacterEncoding()+\"33333\");\n\n String oldName = file.getOriginalFilename();\n\n // System.out.println(\"oldname\"+oldName);\n String newName = UUID.randomUUID().toString() + oldName.substring(oldName.lastIndexOf(\".\"));\n//\n//\n File dest = new File(realPath+File.separator+newName );\n//\n file.transferTo(dest);\n\n\n mv.setViewName(\"index\");\n\n mv.addObject(\"upload\",\"上传\");\n\n return mv;\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n\r\n String empImgPath = request.getSession(false).getAttribute(\"empImgPath\").toString();\r\n InputStream inputStream = null;\r\n Employee employee = new Employee();\r\n\r\n String process = request.getParameter(\"action\");\r\n String id = request.getParameter(\"id\");\r\n String password = null;\r\n String oldPassword = null;\r\n String oldAvatar = null;\r\n String avatar = null;\r\n\r\n try {\r\n if (\"update_employee\".equals(process)) {\r\n\r\n String username = request.getParameter(\"username\");\r\n String nic = request.getParameter(\"nic\");\r\n String first_name = request.getParameter(\"first_name\");\r\n String last_name = request.getParameter(\"last_name\");\r\n String gender = request.getParameter(\"gender\");\r\n String address_line_01 = request.getParameter(\"address_line_01\");\r\n String address_line_02 = request.getParameter(\"address_line_02\");\r\n String city = request.getParameter(\"city\");\r\n String zip = request.getParameter(\"zip\");\r\n String country = request.getParameter(\"country\");\r\n String contact_number = request.getParameter(\"contact_number\");\r\n String department = request.getParameter(\"department\");\r\n String privilege_mode = request.getParameter(\"privilege_mode\");\r\n String newPassword = request.getParameter(\"password\");\r\n \r\n ResultSet res1 = Employee.readEmployeeProfile(username);\r\n while (res1.next()) {\r\n oldPassword = res1.getString(\"password\");\r\n oldAvatar = res1.getString(\"avatar\");\r\n }\r\n\r\n // obtains the upload file part in this multipart request\r\n Part filePart = request.getPart(\"avatar\");\r\n\r\n if (filePart.getSubmittedFileName() != \"\") {\r\n\r\n // obtains input stream of the upload file\r\n inputStream = filePart.getInputStream();\r\n\r\n // Change the output path accordingly\r\n OutputStream output = new FileOutputStream(empImgPath+id+\".png\");\r\n byte[] buffer = new byte[1024];\r\n while (inputStream.read(buffer) > 0) {\r\n output.write(buffer);\r\n }\r\n \r\n avatar = \"../User/Images/\" + id + \".png\";\r\n\r\n } else {\r\n avatar = oldAvatar;\r\n }\r\n\r\n // If the password is null, old password will be new password\r\n if (\"\".equals(newPassword)) {\r\n password = oldPassword;\r\n } else {\r\n HashPassword hashPassword = new HashPassword(newPassword);\r\n password = hashPassword.generatePassword();\r\n }\r\n\r\n Integer updateEmployee = employee.updateEmployee(id, username, nic, first_name, last_name, gender, address_line_01, address_line_02, city, zip, country, contact_number, avatar, department, privilege_mode, password);\r\n\r\n if (updateEmployee > 0) {\r\n\r\n ResultSet res = Employee.readEmployeeProfile(username);\r\n while (res.next()) {\r\n\r\n // Read table fields and set to session variables\r\n request.getSession().setAttribute(\"p_id\", res.getString(\"id\"));\r\n request.getSession().setAttribute(\"p_username\", res.getString(\"username\"));\r\n request.getSession().setAttribute(\"p_nic\", res.getString(\"nic\"));\r\n request.getSession().setAttribute(\"p_first_name\", res.getString(\"first_name\"));\r\n request.getSession().setAttribute(\"p_last_name\", res.getString(\"last_name\"));\r\n request.getSession().setAttribute(\"p_id\", res.getString(\"id\"));\r\n request.getSession().setAttribute(\"p_address_line_1\", res.getString(\"address_line_1\"));\r\n request.getSession().setAttribute(\"p_address_line_2\", res.getString(\"address_line_2\"));\r\n request.getSession().setAttribute(\"p_city\", res.getString(\"city\"));\r\n request.getSession().setAttribute(\"p_zip\", res.getString(\"zip\"));\r\n request.getSession().setAttribute(\"p_country\", res.getString(\"country\"));\r\n request.getSession().setAttribute(\"p_contact_number\", res.getString(\"contact_number\"));\r\n request.getSession().setAttribute(\"p_avatar\", res.getString(\"avatar\"));\r\n request.getSession().setAttribute(\"p_gender\", res.getString(\"gender\"));\r\n request.getSession().setAttribute(\"p_department\", res.getString(\"department\"));\r\n request.getSession().setAttribute(\"p_privilege_mode\", res.getString(\"privilege_mode\"));\r\n\r\n }\r\n\r\n // Clearing cache to avoid old avatar shown as the new avatar\r\n response.setHeader(\"Cache-Control\", \"no-cache, no-store, must-revalidate\"); // HTTP 1.1.\r\n response.setHeader(\"Pragma\", \"no-cache\"); // HTTP 1.0.\r\n response.setDateHeader(\"Expires\", 0); // Proxies.\r\n request.getSession().setAttribute(\"message\", \"Profile successfully updated\");\r\n response.sendRedirect(\"Dashboard\");\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n out.print(e);\r\n }\r\n\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException{\n response.setContentType(\"text/html;charset=UTF-8\");\n\n HttpSession session = request.getSession(true);\n WebUser user = (WebUser) session.getAttribute(\"loggedInUser\");\n String capacity = request.getParameter(\"capacity\");\n int wsCapacity = Integer.parseInt(capacity);\n String workshopId = request.getParameter(\"workshopId\");\n int wsId = Integer.parseInt(workshopId);\n String token = user.getToken();\n int staffId = user.getStaffId();\n SettingDAO sDAO = new SettingDAO();\n String isSuccess = sDAO.editServiceCapacity(staffId, token, wsId, wsCapacity);\n\n if (isSuccess.length() == 0) {\n session.setAttribute(\"success\", \"Service Capacity Updated!\");\n response.sendRedirect(\"Settings.jsp\");\n } else {\n session.setAttribute(\"fail\", isSuccess);\n response.sendRedirect(\"Settings.jsp\");\n }\n }", "@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\tMap<String, String[]> paramMap = super.getParameterMap();\n\t Set<String> keySet = paramMap.keySet();\n\t for (Iterator<String> iterator = keySet.iterator(); iterator.hasNext();) {\n\t String key = (String) iterator.next();\n\t String[] str = paramMap.get(key);\n\t\t\t\tfor(int i=0; i<str.length; i++) {\n\t\t\t\t\tstr[i] = encodeXSS(str[i]);\n\t//这里可以对页面传入的所有值进行过滤了,你想怎么处理就怎么处理。比如对出入的值进行html危险字符过滤\n\t }\n\t }\n\t return paramMap ;\n\t}", "public void setProperties(HttpServletRequest request) throws IOException, ServletException {\n\t\tPart colorPart = request.getPart(Uploader.COLOR_DEPTH);\n\t\tPart exposurePart = request.getPart(Uploader.EXPOSURE);\n\t\tPart charsetPart = request.getPart(Uploader.CHARSET);\n\t\tPart pixelSizePart = request.getPart(Uploader.PIXEL_SIZE);\n\n\t\tsetColorDepth(getValue(colorPart));\n\t\tsetLowExposure(getValue(exposurePart));\n\t\tsetCharset(getValue(charsetPart));\n\t\tsetPixelSize(getValue(pixelSizePart));\n\t}", "public void init( ){\n\t filePath = \n\t getServletContext().getInitParameter(\"file-upload\"); \n\t }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n String url = ERROR;\r\n boolean valid = true;\r\n try {\r\n\r\n boolean isMultiPart = ServletFileUpload.isMultipartContent(request);\r\n if (!isMultiPart) {\r\n url = INVALID;\r\n } else {\r\n FileItemFactory factory = new DiskFileItemFactory();\r\n ServletFileUpload upload = new ServletFileUpload(factory);\r\n List items = null;\r\n try {\r\n items = upload.parseRequest(request);\r\n } catch (FileUploadException e) {\r\n LOGGER.error(\"Error at CreateProductController: \" + e.toString());\r\n }\r\n Iterator iter = items.iterator();\r\n Hashtable params = new Hashtable();\r\n String fileName = null;\r\n while (iter.hasNext()) {\r\n FileItem item = (FileItem) iter.next();\r\n if (item.isFormField()) {\r\n params.put(item.getFieldName(), item.getString());\r\n } else {\r\n try {\r\n String itemName = item.getName();\r\n fileName = itemName.substring(itemName.lastIndexOf(\"\\\\\") + 1);\r\n String RealPath = getServletContext().getRealPath(\"/\") + \"images\\\\\" + fileName;\r\n File saveFile = new File(RealPath);\r\n File destFile = new File(RealPath);\r\n if (destFile.exists()) {\r\n destFile.delete();\r\n item.write(saveFile);\r\n } else {\r\n item.write(saveFile);\r\n }\r\n } catch (Exception e) {\r\n LOGGER.error(\"Error at CreateProductController: \" + e.toString());\r\n }\r\n }\r\n }\r\n String name = (String) params.get(\"txtName\");\r\n String priceString = (String) params.get(\"txtPrice\");\r\n String description = (String) params.get(\"txtDescription\");\r\n String quantityString = (String) params.get(\"txtQuantity\");\r\n String createDateString = (String) params.get(\"txtCreateDate\");\r\n String expireDateString = (String) params.get(\"txtExpireDate\");\r\n String categoryID = (String) params.get(\"txtCategoryID\");\r\n String status = \"active\";\r\n ProductError error = new ProductError();\r\n ProductDAO dao = new ProductDAO();\r\n HttpSession session = request.getSession();\r\n UserDTO user = (UserDTO) session.getAttribute(\"USER_INFO\");\r\n double price = 0;\r\n int quantity = 0;\r\n if (name.isEmpty()) {\r\n valid = false;\r\n error.setName(\"Name can't be empty\");\r\n }\r\n if (priceString.isEmpty()) {\r\n valid = false;\r\n error.setPrice(\"Price can't be empty\");\r\n }\r\n if (description.isEmpty()) {\r\n valid = false;\r\n error.setDescription(\"Description can't be empty\");\r\n }\r\n if (quantityString.isEmpty()) {\r\n valid = false;\r\n error.setQuantity(\"Quantity can't be empty\");\r\n }\r\n\r\n if (createDateString.isEmpty()) {\r\n valid = false;\r\n error.setCreateDate(\"CreateDate can't be empty\");\r\n }\r\n if (expireDateString.isEmpty()) {\r\n valid = false;\r\n error.setExpireDate(\"ExpireDate can't be empty\");\r\n }\r\n\r\n if (valid == true) {\r\n price = Double.parseDouble(priceString);\r\n quantity = Integer.parseInt(quantityString);\r\n\r\n if (price < 0) {\r\n valid = false;\r\n error.setPrice(\"Price can't be negative\");\r\n }\r\n\r\n if (price > 500) {\r\n valid = false;\r\n error.setPrice(\"Price can't be Over 500\");\r\n }\r\n if (quantity < 0) {\r\n valid = false;\r\n error.setQuantity(\"Quantity can't be negative\");\r\n }\r\n\r\n if (quantity == 0) {\r\n status = \"inactive\";\r\n }\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n Date creDate = formatter.parse(createDateString);\r\n Date exDate = formatter.parse(expireDateString);\r\n Date today = new Date();\r\n\r\n if (creDate.after(today)) {\r\n status = \"inactive\";\r\n }\r\n\r\n if (exDate.equals(today) || exDate.before(today)) {\r\n status = \"inactive\";\r\n }\r\n\r\n if (creDate.after(exDate) || exDate.before(creDate)) {\r\n valid = false;\r\n error.setCreateDate(\"Create date can't be over expire date\");\r\n error.setExpireDate(\"Expire date can't be before create date\");\r\n }\r\n\r\n if (valid == true) {\r\n String uniqueID = null;\r\n do {\r\n uniqueID = UUID.randomUUID().toString();\r\n } while (dao.checkProductIDExist(uniqueID));\r\n ProductDTO dto = new ProductDTO(uniqueID, name, fileName, categoryID, price, quantity, description, createDateString, expireDateString, \"\", status);\r\n if (dao.insertNewProduct(dto)) {\r\n String logID = null;\r\n do {\r\n logID = UUID.randomUUID().toString();\r\n } while (dao.checkLogIDExist(uniqueID));\r\n LogDTO log = new LogDTO(logID, user.getUserID(), uniqueID, \"\");\r\n\r\n if (dao.insertNewLog(log)) {\r\n url = SUCCESS;\r\n request.setAttribute(\"NOTE\", \"A new product has been created\");\r\n } else {\r\n url = INVALID;\r\n request.setAttribute(\"PRODUCT_INFO\", dto);\r\n request.setAttribute(\"NOTE\", \"Unable to create product\");\r\n }\r\n\r\n } else {\r\n url = INVALID;\r\n request.setAttribute(\"PRODUCT_INFO\", dto);\r\n request.setAttribute(\"NOTE\", \"Unable to create product\");\r\n }\r\n } else {\r\n request.setAttribute(\"ERROR_PRODUCT\", error);\r\n url = INVALID;\r\n }\r\n\r\n } else {\r\n request.setAttribute(\"ERROR_PRODUCT\", error);\r\n url = INVALID;\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n LOGGER.error(\"Error at CreateProductController: \" + e.toString());\r\n } finally {\r\n request.getRequestDispatcher(url).forward(request, response);\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n HttpSession session=request.getSession();\n response.setHeader(\"Cache-Control\",\"no-store\"); //HTTP 1.1\n response.setHeader(\"Pragma\",\"no-cache\"); //HTTP 1.0\n response.setDateHeader(\"Expires\", 0);\n response.setDateHeader(\"Last-Modified\", 0); \n try {\n boolean isMultipart = ServletFileUpload.isMultipartContent( request );\n if ( !isMultipart )\n {\n String modo=request.getParameter(\"modo\"); \n if(modo.equals(\"abrirPdf\")) {\n //if(objetoSesion.isSuperAdministrador() || objetoSesion.getPerfilSelected().getCoreDerechoSistemaList().toString().indexOf(\"D_VER_DEPOSITO\")>-1){ \n CoreDocumento documento=documentoEJBLocal.find(Integer.parseInt(request.getParameter(\"coreDocumentoId\")));\n response.setContentType(\"application/pdf\"); \n response.setHeader(\"Content-Disposition\",\"attachment; filename=\\\"\" + documento.getNombreArchivo() + \"\\\"\"); \n response.getOutputStream().write(documento.getDocumento());\n //}else\n // response.getWriter().println(\"{\\\"success\\\":false,\\\"msg\\\":\\\"Usted no cuenta con los permisos necesarios.\\\"}\");\n }\n }else{ \n ServletFileUpload upload = new ServletFileUpload(); \n try\n {\n byte[] bytes=null;\n String name=null;\n Integer documentoId=null;\n FileItemIterator iter = upload.getItemIterator( request );\n while ( iter.hasNext() )\n {\n FileItemStream item = iter.next();\n String fieldName = item.getFieldName();\n if ( fieldName.equals( \"PDFFile\" ) )\n {\n name=item.getName();\n String[] aname=name.split(\"Id=\");\n bytes = IOUtils.toByteArray( item.openStream() ); \n documentoId=Integer.parseInt(aname[1]);\n }else if(fieldName.equals( \"coreDocumentoId\" ))\n documentoId=Integer.parseInt(Streams.asString(item.openStream()));\n }\n if(documentoId!=null){\n CoreDocumento documento=documentoEJBLocal.find(documentoId);\n documento.setDocumento(bytes);\n response.getWriter().print(documentoEJBLocal.persistir(documento,\"editar\"));\n }\n }\n catch ( IOException ex )\n {\n throw ex;\n }\n catch ( Exception ex )\n {\n throw new ServletException( ex );\n }\n\n }\n }catch (Exception e) {\n if(request.getParameter(\"modo\")==null || request.getParameter(\"modo\").equals(\"listaDocumentos\"))\n response.getWriter().print(\"{\\\"data\\\":[],\\\"total\\\":0}\"); \n else\n response.getWriter().print(\"{\\\"success\\\":false,\\\"msg\\\":\\\"Error al realizar la operacion.\\\"}\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try{\n request.setCharacterEncoding(\"UTF-8\");//リクエストパラメータの文字コードをUTF-8に変更\n \n HttpSession hs = request.getSession();\n \n //アクセスルートチェック\n String accesschk = request.getParameter(\"ac\");\n if(accesschk ==null || (Integer)hs.getAttribute(\"ac\")!=Integer.parseInt(accesschk)){\n throw new Exception(\"不正なアクセスです\");\n }\n\n //フォームからの入力を取得して、JavaBeansに格納\n UserData ud = new UserData();\n\n ud.setName(request.getParameter(\"name\"));\n ud.setPassword(request.getParameter(\"password\"));\n ud.setMail(request.getParameter(\"mail\"));\n ud.setPrefecture(request.getParameter(\"prefecture\"));\n ud.setCity(request.getParameter(\"city\"));\n ud.setStreetNumber(request.getParameter(\"street_number\"));\n ud.setBuilding(request.getParameter(\"building\"));\n \n //記入欄に空欄があれば変更画面に戻す\n if(!(ud.chkproperties().isEmpty())){\n request.setAttribute(\"mode1\", \"REINPUT\");\n request.getRequestDispatcher(\"/mydata/myupdate.jsp\").forward(request, response);\n }\n \n //DTOオブジェクトにマッピング。DB専用のパラメータに変換\n UserDataDTO updateData = new UserDataDTO();\n ud.UD2DTOMapping(updateData);\n\n //ログインデータの取得\n UserDataDTO login_udd = (UserDataDTO)hs.getAttribute(\"loginData\");\n\n /*\n *  元のデータ(udd)と送られてきたデータupdateData\n * に変更内容があるか判定\n */\n ArrayList<String> userList = login_udd.userList(updateData);\n\n /* \n *  userListが空であれば(updateDataが元のデータと変化していなかったら)\n * 変更画面に戻す\n */\n if(userList.isEmpty()){\n request.setAttribute(\"mode2\", \"REINPUT\");\n request.getRequestDispatcher(\"/mydata/myupdate.jsp\").forward(request, response);\n }\n \n // uddのuserIDを取得し、updateDataにセット\n updateData.setUserID(login_udd.getUserID());\n\n /*\n *  データのアップデートを行う(この際、アップデータ箇所の情報が入った\n * userListと、アップデートする値を持ったupdateDataを、引数として\n * 渡す。\n */\n UserDataDAO.getInstance().update(userList,updateData); \n\n //念のため、アップデート後の情報を取得\n UserDataDTO updateData_src = UserDataDAO.getInstance().searchByID(updateData);\n \n //セッションの値の消去\n hs.removeAttribute(\"loginData\");\n hs.setAttribute(\"loginData\", updateData_src);\n \n //アップデート後の情報をUserDataインスタンスへ\n UserData updateData_src_ud = new UserData();\n updateData_src.DTO2UDMapping(updateData_src_ud);\n \n hs.setAttribute(\"update\", updateData_src_ud);\n request.getRequestDispatcher(\"/mydata/myupdateresult.jsp\").forward(request, response);\n \n }catch(Exception e){\n //何らかの理由で失敗したらエラーページにエラー文を渡して表示。想定は不正なアクセス\n request.setAttribute(\"error\", e.getMessage());\n request.getRequestDispatcher(\"/error.jsp\").forward(request, response);\n } \n }", "void logHTTPRequest(HttpServletRequest request, Logger logger, List parameterNamesToObfuscate);", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n PrintWriter out = null;\n JSONObject outputObject = new JSONObject();\n try {\n \n HashMap<String,String> bigItemIds = new HashMap<>();\n Iterator mIterator = bigItemIds.keySet().iterator();\n out = response.getWriter();\n // Create a factory for disk-based file items\n DiskFileItemFactory factory = new DiskFileItemFactory();\n\n // Configure a repository (to ensure a secure temp location is used)\n ServletContext servletContext = this.getServletConfig().getServletContext();\n File repository = (File) servletContext.getAttribute(\"javax.servlet.context.tempdir\");\n factory.setRepository(repository);\n\n // Create a new file upload handler\n ServletFileUpload upload = new ServletFileUpload(factory);\n // Parse the request\n List<FileItem> items = upload.parseRequest(request);\n \n final String moveId = UUID.randomUUID().toString();\n final MovesDb movesDb = new MovesDb();\n // Process the uploaded items\n Iterator<FileItem> iter = items.iterator();\n while (iter.hasNext()) {\n FileItem item = iter.next();\n\n if (item.isFormField()) {\n \n System.out.println(\"Form field\" +item.getString());\n \n bigItemIds = processFormField(new JSONObject( item.getString()), out,moveId,movesDb);\n mIterator = bigItemIds.keySet().iterator();\n System.out.println(\"ITEM ID SIZE \"+bigItemIds.size());\n \n } else {\n //processUploadedFile(item);\n System.out.print(\"Photo Field\");\n String key = (String) mIterator.next();\n File mFile = new File(bigItemIds.get(key));\n item.write(mFile);\n \n \n \n \n }\n }\n new Thread(){\n \n public void run(){\n pushMovetoMailQueue moveToMailQueue= new pushMovetoMailQueue();\n moveToMailQueue.pushMoveToMailQueue(movesDb);\n }\n }.start();\n outputObject = new JSONObject();\n try {\n outputObject.put(Constants.JSON_STATUS, Constants.JSON_SUCCESS);\n outputObject.put(Constants.JSON_MSG,Constants.JSON_GET_QUOTE);\n } catch (JSONException ex1) {\n Logger.getLogger(doSignUp.class.getName()).log(Level.SEVERE, null, ex1);\n }\n \n out.println(outputObject.toString());\n \n \n \n \n }catch(Exception ex){\n \n outputObject = new JSONObject();\n try {\n outputObject.put(Constants.JSON_STATUS, Constants.JSON_FAILURE);\n outputObject.put(Constants.JSON_MSG,Constants.JSON_EXCEPTION);\n } catch (JSONException ex1) {\n Logger.getLogger(doSignUp.class.getName()).log(Level.SEVERE, null, ex1);\n }\n \n out.println(outputObject.toString());\n Logger.getLogger(doSignUp.class.getName()).log(Level.SEVERE, null, ex);\n }finally{\n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n // recupero la session\r\n HttpSession session = request.getSession(true);\r\n //traigo los valores del JSp mostrar\r\n String accion = request.getParameter(\"ACCION\");\r\n //si quiere agregar\r\n if (\"AGREGAR\".equals(accion)) {\r\n // llamo al metodo listar\r\n List<Perfil> lista = perfilListar();\r\n //lo guardo en la sesion\r\n session.setAttribute(\"Lista_Perfil\", lista);\r\n //redirije al JSP Agregar\r\n Util.Util.dispatcher(request, response, \"/usuario/AgregarUsuario.jsp\");\r\n } else if (\"ELIMINAR\".equals(accion)) {\r\n //redirije al JSP eliminar\r\n Util.Util.dispatcher(request, response, \"/usuario/EliminarUsuario.jsp\");\r\n } else if (\"MODIFICAR\".equals(accion)) {\r\n //traigo los valores a modificar\r\n String rut = request.getParameter(\"rutmod\");\r\n String nombre = request.getParameter(\"nombremod\");\r\n String apellidoPaterno = request.getParameter(\"apPatMod\");\r\n String apellidoMaterno = request.getParameter(\"apMatMod\");\r\n String fechaNacimiento = request.getParameter(\"fecha\");\r\n String correo = request.getParameter(\"correoMod\");\r\n String password = request.getParameter(\"passwordMod\");\r\n String idPerfil = request.getParameter(\"perfilMod\");\r\n\r\n Date f = Util.Util.stringADate(fechaNacimiento);\r\n int i = Integer.parseInt(idPerfil);\r\n //creo el objeto usuario\r\n Usuario u = new Usuario(rut, nombre, apellidoPaterno, apellidoMaterno, f, correo, password, i);\r\n //lo guardo en la sesion\r\n session.setAttribute(\"Usuario\", u);\r\n //llamo al metodo listar perfiles\r\n List<Perfil> lista = perfilListar();\r\n //lo guardo en la sesion\r\n session.setAttribute(\"Lista_Perfil\", lista);\r\n Util.Util.dispatcher(request, response, \"/usuario/ModificarUsuario.jsp\");\r\n // si quiere eliminar\r\n } //si quiere volver al menu\r\n else if (\"VOLVER\".equals(accion)) {\r\n //redirije al JSP del menu\r\n\r\n String tipoUsuario = (String) session.getAttribute(\"TIPO_USUARIO\");\r\n if (\"adm\".equals(tipoUsuario)) {\r\n Util.Util.dispatcher(request, response, \"/administrador/MenuAdmin.jsp\");\r\n } else {\r\n Util.Util.dispatcher(request, response, \"/usuario/MenuUsuario.jsp\");\r\n }\r\n }\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet UsuarioServletInicial</title>\");\r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet UsuarioServletInicial at \" + request.getContextPath() + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n HttpSession session = request.getSession();\r\n\r\n boolean adminSession;\r\n try {\r\n adminSession = (Boolean) session.getAttribute(\"mainAdminSession\");\r\n } catch (Exception e) {\r\n LOGGER.log(Level.INFO, \"Main admin session is null\");\r\n LOGGER.log(Level.INFO, \"Requesting dispatch to forward to: index.jsp\");\r\n request.getRequestDispatcher(\"index.jsp\").forward(request, response);\r\n return;\r\n }\r\n\r\n if (adminSession == false) {\r\n try {\r\n adminSession = (Boolean) session.getAttribute(\"subAdminSession\");\r\n } catch (Exception e) {\r\n LOGGER.log(Level.INFO, \"Sub admin session is null\");\r\n LOGGER.log(Level.INFO, \"Requesting dispatch to forward to: index.jsp\");\r\n request.getRequestDispatcher(\"index.jsp\").forward(request, response);\r\n return;\r\n }\r\n }\r\n\r\n //Check session type\r\n LOGGER.log(Level.INFO, \"Checking session type\");\r\n if (adminSession == false) {\r\n //Admin session not established\r\n LOGGER.log(Level.INFO, \"Admin session not established hence not responding to the request\");\r\n\r\n String path = (String) session.getAttribute(\"home\");\r\n LOGGER.log(Level.INFO, \"Path is: {0}\", path);\r\n String destination = \"/WEB-INF/views\" + path + \".jsp\";\r\n try {\r\n LOGGER.log(Level.INFO, \"Dispatching request to: {0}\", destination);\r\n request.getRequestDispatcher(destination).forward(request, response);\r\n } catch (ServletException | IOException e) {\r\n LOGGER.log(Level.INFO, \"Request dispatch failed\");\r\n }\r\n\r\n } else if (adminSession == true) {\r\n //Admin session established\r\n LOGGER.log(Level.INFO, \"Admin session established hence responding to the request\");\r\n\r\n String path = request.getServletPath();\r\n String destination;\r\n Map<RatingTypeDetail, List<RatingDetails>> ratingTypeAndValuesMap = new HashMap<>();\r\n\r\n switch (path) {\r\n case \"/addRating\":\r\n\r\n //Read in details for the rating\r\n LOGGER.log(Level.INFO, \"Reading in details for the rating\");\r\n rating = new RatingDetails();\r\n rating.setActive(true);\r\n rating.setRatingType(RatingTypeDetail.getRatingType(Short.parseShort(request.getParameter(\"ratingType\"))));\r\n if (rating.getRatingType().equals(RatingTypeDetail.PERCENTAGE)) {\r\n rating.setRating(request.getParameter(\"ratingValue\") + \"%\");\r\n } else {\r\n rating.setRating(request.getParameter(\"ratingValue\"));\r\n }\r\n\r\n //Send the details to the entity manager for recording in the database\r\n LOGGER.log(Level.INFO, \"Sending the details to the entity manager for recording in the database\");\r\n try {\r\n ratingService.addRating(rating);\r\n } catch (InvalidArgumentException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Retrieve the new list of rating records from the database\r\n LOGGER.log(Level.INFO, \"Retrieving the new list of rating records from the database\");\r\n try {\r\n ratingTypeAndValuesMap = ratingService.retrieveRatings();\r\n } catch (InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Avail the ratings session\r\n LOGGER.log(Level.INFO, \"Availing the ratings in session\");\r\n session.setAttribute(\"ratingTypeAndValuesMap\", ratingTypeAndValuesMap);\r\n\r\n //Display the new list of rating records\r\n generateTableBody(ratingTypeAndValuesMap, session, response);\r\n return;\r\n\r\n case \"/editRating\":\r\n\r\n //Read in details for the rating\r\n LOGGER.log(Level.INFO, \"Reading in details for the rating\");\r\n rating = new RatingDetails();\r\n rating.setActive(true);\r\n rating.setId(Short.parseShort(request.getParameter(\"ratingId\")));\r\n rating.setRatingType(RatingTypeDetail.getRatingType(Short.parseShort(request.getParameter(\"ratingType\"))));\r\n if (rating.getRatingType().equals(RatingTypeDetail.PERCENTAGE)) {\r\n rating.setRating(request.getParameter(\"ratingValue\") + \"%\");\r\n } else {\r\n rating.setRating(request.getParameter(\"ratingValue\"));\r\n }\r\n\r\n //Send the details to the entity manager for recording in the database\r\n LOGGER.log(Level.INFO, \"Sending the details to the entity manager for record update in the database\");\r\n try {\r\n ratingService.editRating(rating);\r\n } catch (InvalidArgumentException | InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Retrieve the new list of rating records from the database\r\n LOGGER.log(Level.INFO, \"Retrieving the new list of rating records from the database\");\r\n try {\r\n ratingTypeAndValuesMap = ratingService.retrieveRatings();\r\n } catch (InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Display the new list of rating records\r\n generateTableBody(ratingTypeAndValuesMap, session, response);\r\n return;\r\n\r\n case \"/removeRating\":\r\n\r\n //Send the details to the entity manager for record removal from the database\r\n LOGGER.log(Level.INFO, \"Sending the details to the entity manager for record removal from the database\");\r\n try {\r\n ratingService.removeRating(Short.parseShort(request.getParameter(\"ratingId\")));\r\n } catch (InvalidArgumentException | InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Retrieve the new list of rating records from the database\r\n LOGGER.log(Level.INFO, \"Retrieving the new list of rating records from the database\");\r\n try {\r\n ratingTypeAndValuesMap = ratingService.retrieveRatings();\r\n } catch (InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Display the new list of rating records\r\n generateTableBody(ratingTypeAndValuesMap, session, response);\r\n\r\n return;\r\n }\r\n destination = \"WEB-INF/views\" + path + \".jsp\";\r\n try {\r\n LOGGER.log(Level.INFO, \"Dispatching request to: {0}\", destination);\r\n request.getRequestDispatcher(destination).forward(request, response);\r\n } catch (ServletException | IOException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(\"redirection_failed\"));\r\n LOGGER.log(Level.INFO, bundle.getString(\"redirection_failed\"), e);\r\n }\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n String url=PREPARE_SHOP_PAGE_CONTROLLER;\r\n HttpSession session=request.getSession();\r\n try {\r\n AccountDTO account=(AccountDTO)session.getAttribute(\"ACCOUNT\");\r\n if(account!=null && account.isAdmin()){\r\n boolean isMultipart=ServletFileUpload.isMultipartContent(request);\r\n if(isMultipart){\r\n List items=(List)request.getAttribute(\"listFileItem\");\r\n Iterator iter=items.iterator();\r\n Map<String,String> params=new HashMap<String, String>();\r\n String image=\"\";\r\n while(iter.hasNext()){\r\n FileItem item=(FileItem)iter.next();\r\n if(item.isFormField()){\r\n params.put(item.getFieldName(), item.getString());\r\n }else{\r\n try{\r\n byte[] data=item.get();\r\n image=Base64.encodeBase64String(data);\r\n } catch (Exception ex) {\r\n log(\"ERROR at CreateProductServlet: \"+ex.getMessage());\r\n }\r\n \r\n }\r\n }\r\n String proID=params.get(\"proID\");\r\n String cateID=params.get(\"cateID\");\r\n String proName=params.get(\"proName\");\r\n int quantity=Integer.parseInt(params.get(\"quantity\"));\r\n String description=params.get(\"description\");\r\n int price=Integer.parseInt(params.get(\"price\")); \r\n boolean status=params.get(\"status\").equals(\"1\");\r\n ProductDAO proDAO=new ProductDAO();\r\n boolean result;\r\n if(image.isEmpty()){\r\n result =proDAO.updateProduct(proID, cateID, proName, quantity, description, price,status);\r\n }else{\r\n result =proDAO.updateProduct(proID, cateID, proName, quantity, image, description, price,status);\r\n }\r\n \r\n if(result){ \r\n Date currentTime=new Date();\r\n Timestamp updateDate=new Timestamp(currentTime.getTime());\r\n String activity=\"Update_Product: \"+proID;\r\n String userID=account.getUserID();\r\n HistoryDAO historyDAO=new HistoryDAO();\r\n String id=\"\"+historyDAO.countTotal()+1;\r\n historyDAO.addToHistory(id, userID, updateDate, activity); \r\n url=PREPARE_PRODUCT_PAGE_CONTROLLER.concat(\"?proID=\"+proID);\r\n }\r\n }\r\n }\r\n \r\n } catch (NamingException ex) {\r\n Logger.getLogger(UpdateProductServlet.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(UpdateProductServlet.class.getName()).log(Level.SEVERE, null, ex);\r\n }finally{\r\n response.sendRedirect(url);\r\n out.close();\r\n }\r\n }", "protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response) throws ServletException, IOException {\n \trequest.setCharacterEncoding(\"UTF-8\");\r\n String name = request.getParameter(\"name\");\r\n float price=Float.parseFloat(request.getParameter(\"price\"));\r\n String description=request.getParameter(\"description\");\r\n System.out.println(\"name\"+name);\r\n System.out.println(\"price\"+price);\r\n System.out.println(\"description:\"+description);\r\n InputStream inputStream = null; // input stream of the upload file\r\n \r\n // obtains the upload file part in this multipart request\r\n Part filePart = request.getPart(\"photo\");\r\n if (filePart != null) {\r\n \tItem item=new Item();\r\n // prints out some information for debugging\r\n System.out.println(filePart.getSize());//得到文件大小\r\n System.out.println(filePart.getContentType());//得到文件类型(这里上传的是图片)\r\n System.out.println(filePart.getSubmittedFileName());//得到文件名字\r\n String filename=filePart.getSubmittedFileName();\r\n // obtains input stream of the upload file\r\n inputStream = filePart.getInputStream();\r\n OutputStream outputStream = null;\r\n try{\r\n \trequest.setAttribute(\"Message\", \"成功\");\r\n \t//上传图片的保存路径\r\n String filepath=\"E:\\\\workspace\\\\SchoolTrade\\\\WebContent\\\\uploaddata\\\\\"+filename;\r\n File file=new File(filepath);\r\n \toutputStream=new FileOutputStream(file);\r\n byte[] bytes = new byte[1024];\r\n int num = 0;\r\n while ((num = inputStream.read(bytes)) != -1) {\r\n outputStream.write(bytes, 0, num);\r\n outputStream.flush();\r\n }\r\n HttpSession session=request.getSession();\r\n User user=(User)session.getAttribute(\"user\");\r\n item.setOwnerName(user.getName());\r\n item.setPic(filePart.getSubmittedFileName());\r\n item.setName(name);\r\n item.setDescription(description);\r\n item.setPrice(price);\r\n \r\n }catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \te.printStackTrace();\r\n \trequest.setAttribute(\"Message\", \"失败\");\r\n \tSystem.out.println(\"复制文件出现错误\");\r\n \tinputStream=null;\r\n \toutputStream=null;\r\n getServletContext().getRequestDispatcher(\"/failMessage.jsp\").forward(request, response);\r\n\t\t\t}finally {\r\n\t\t\t\tif(inputStream!=null){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tinputStream.close();\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\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\tif(outputStream!=null){\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\toutputStream.close();\r\n\t\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\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\tItemService itemService=new ItemServiceImplement();\r\n\t\t\t\titemService.uploadItem(item);\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n }\r\n getServletContext().getRequestDispatcher(\"/successMessage.jsp\").forward(request, response);\r\n }", "public Map<String, String[]> getParaMap() {\n\t\treturn request.getParameterMap();\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException, FileUploadException, Exception {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n /* TODO output your page here. You may use following sample code. */\r\n \r\n \r\n String coso = request.getParameter(\"Productos\");\r\n out.println(coso);\r\n /*sacando los FileItem del ServletFileUpload en una lista */\r\n \r\n \r\n \r\n// DataFecha fechanac = new DataFecha();\r\n// conectar con=new conectar();\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n// String nick = request.getParameter(\"Nick\");\r\n// String nombre = request.getParameter(\"Nombre\");\r\n// String apellido = request.getParameter(\"Apellido\");\r\n// String email = request.getParameter(\"Email\");\r\n \r\n \r\n// String contraseña = request.getParameter(\"Contrasena\");\r\n// String verificar = request.getParameter(\"Verificar\");\r\n// String dia = request.getParameter(\"day\");\r\n// String mes = request.getParameter(\"month\");\r\n// String año = request.getParameter(\"year\");\r\n// String imagen = request.getParameter(\"file\");\r\n// String tipo = request.getParameter(\"tipo\");\r\n// String lp = request.getParameter(\"Sitio Web\");\r\n// String nc = request.getParameter(\"Nombre Compania\");\r\n \r\n \r\n \r\n } finally {\r\n out.close();\r\n }\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n int geekid = Integer.parseInt(request.getParameter(\"geekid\"));\n if (ServletFileUpload.isMultipartContent(request)) {\n try {\n\n List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);\n\n for (FileItem item : multiparts) {\n\n if (!item.isFormField()) {\n item.write(new File(UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\"));\n\n }\n \n String fileName = UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\";\n\n }\n\n //File uploaded successfully\n request.setAttribute(\"message\", \"File Uploaded Successfully\");\n\n } catch (Exception ex) {\n\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n\n }\n\n } else {\n\n request.setAttribute(\"message\",\n \"Sorry this Servlet only handles file upload request\");\n\n }\n\n request.getRequestDispatcher(\"/result.jsp\").forward(request, response);\n\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n PrintWriter writer = null;\n InputStream is = null;\n FileOutputStream fos = null;\n\n try {\n writer = response.getWriter();\n } catch (IOException ex) {\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n }\n\n boolean isMultiPart = ServletFileUpload.isMultipartContent(request);\n\n if (isMultiPart) {\n log(\"Content-Type: \" + request.getContentType());\n // Create a factory for disk-based file items\n DiskFileItemFactory diskFileItemFactory = new DiskFileItemFactory();\n\n /*\n * Set the file size limit in bytes. This should be set as an\n * initialization parameter\n */\n diskFileItemFactory.setSizeThreshold(1024 * 1024 * 10); //10MB.\n\n\n // Create a new file upload handler\n ServletFileUpload upload = new ServletFileUpload(diskFileItemFactory);\n\n List items = null;\n\n try {\n items = upload.parseRequest(request);\n } catch (FileUploadException ex) {\n log(\"Could not parse request\", ex);\n }\n\n ListIterator li = items.listIterator();\n\n while (li.hasNext()) {\n FileItem fileItem = (FileItem) li.next();\n if (fileItem.isFormField()) {\n if (debug) {\n processFormField(fileItem);\n }\n } else {\n writer.print(processUploadedFile(fileItem));\n }\n }\n }\n\n if (\"application/octet-stream\".equals(request.getContentType())) {\n log(\"Content-Type: \" + request.getContentType());\n String filename = request.getHeader(\"X-File-Name\");\n\n try {\n is = request.getInputStream();\n fos = new FileOutputStream(new File(realPath + filename));\n IOUtils.copy(is, fos);\n response.setStatus(HttpServletResponse.SC_OK);\n writer.print(\"{success: true}\");\n } catch (FileNotFoundException ex) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n writer.print(\"{success: false}\");\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n } catch (IOException ex) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n writer.print(\"{success: false}\");\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n } finally {\n try {\n fos.close();\n is.close();\n } catch (IOException ignored) {\n }\n }\n\n writer.flush();\n writer.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String url = ERROR;\n String msg;\n try {\n String bookID = request.getParameter(\"txtBookID\");\n String title = request.getParameter(\"txtTitle\");\n String author = request.getParameter(\"txtAuthor\");\n String catID = request.getParameter(\"cbCat\");\n String des = request.getParameter(\"txtDes\");\n float price = Float.parseFloat(request.getParameter(\"txtPrice\"));\n int quantity = Integer.parseInt(request.getParameter(\"txtQuantity\"));\n Date importDate = new Date();\n String status = \"Active\";\n String appPath = request.getServletContext().getRealPath(\"/\");\n String fullSavePath;\n if (appPath.endsWith(\"\\\\\")) {\n fullSavePath = appPath + SAVE_DIRECTORY;\n } else {\n fullSavePath = appPath + \"\\\\\" + SAVE_DIRECTORY;\n }\n File fileSaveDir = new File(fullSavePath);\n if (!fileSaveDir.exists()) {\n fileSaveDir.mkdir();\n }\n String image = \"\";\n for (Part part : request.getParts()) {\n String fileName = MyUtils.extractFileName(part);\n if (fileName != null && fileName.length() > 0) {\n String extension = fileName.substring(fileName.lastIndexOf(\".\"));\n String filePath = fullSavePath + \"\\\\\" + bookID + extension;\n image = bookID + extension;\n part.write(filePath);\n }\n }\n BookDTO dto = new BookDTO(bookID, title, catID, author, des, image, status, price, quantity, importDate);\n BookDAO dao = new BookDAO();\n if (dao.update(dto)) {\n msg = \"Update success\";\n url = SUCCESS;\n } else {\n msg = \"Update failed\";\n url = FAILED;\n }\n request.setAttribute(\"MSG\", msg);\n } catch (SQLException | NamingException e) {\n log(\"ERROR at UpdateController: \" + e.getMessage());\n msg = \"ERROR at UpdateController\";\n request.setAttribute(\"ERROR\", msg);\n } finally {\n request.getRequestDispatcher(url).forward(request, response);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String name = (String)request.getAttribute(\"name\");\n if(name==null){\n RequestDispatcher rd1 = request.getRequestDispatcher(\"/Login.jsp\");\n rd1.forward(request, response);\n }\n List<Notes> notes;\n try{\n ArrayOfNotes notesobj = getNotes(name);\n notes = notesobj.getNotes(); \n }\n catch(Exception e){\n notes=null;\n }\n \n \n request.setAttribute(\"notes\", notes);\n request.setAttribute(\"name\", name);\n RequestDispatcher rd = request.getRequestDispatcher(\"/Home.jsp\");\n rd.forward(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public Map getParameterMap() {\n return params;\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n //文字コードをUTF-8に変更\n request.setCharacterEncoding(\"UTF-8\");\n \n //フォームから送られてきた入力情報をStringに格納\n String name = request.getParameter(\"name\");\n String password = request.getParameter(\"password\");\n \n //<未入力項目があった場合の処理>\n //未入力項目名が格納できる配列を作成\n //if(フォームに未入力があった場合)\n //配列にその項目名を追加\n //if(配列の要素数が0でない場合) ※フォームに未入力があった場合\n //未入力項目名の情報をリクエストパラメータに格納\n //フォームから送られてきた入力情報を配列を使用してセッションに格納\n //loginresultfalse.jspに遷移 \n ArrayList<String> nullLogin = new ArrayList<String>();\n if(name.equals(\"\")) { nullLogin.add(\"ユーザー名\"); }\n if(password.equals(\"\")){ nullLogin.add(\"パスワード\"); }\n if(nullLogin.size() != 0){\n request.setAttribute(\"nullLogin\", nullLogin);\n HashMap<String, String> loginNull = new HashMap<String, String>();\n loginNull.put(\"name\", name);\n loginNull.put(\"password\", password);\n HttpSession session = request.getSession();\n session.setAttribute(\"loginNull\", loginNull);\n request.getRequestDispatcher(\"/loginresultfalse.jsp\").forward(request, response);\n }else{\n \n //else(配列の要素が0である場合) ※フォームに未入力がない場合\n //<DB検索でデータが該当するかどうかの処理>\n //フォーム入力情報をUserDataに格納\n //DB検索を実行\n //結果をbooleanで受け取る\n //if(trueの場合)   ※データが該当した場合\n //ログインに成功情報をログイン状態を管理できるセッション(\"loginState\")に書き込み\n //各ページのログインボタンから遷移してきているのでページに関するセッション情報(\"pageCheck\")を取得\n //ページ遷移した後の「ようこそ○○さん」の表示のためにセッション(\"userSearch\")にUserData(loginState)の情報を格納\n //取得したページ情報をもとに直前まで閲覧していたページに遷移\n //else(falseの場合) ※データが該当しなかった場合\n //フォーム入力情報(\"loginNull\")を更新\n //リクエストパラメータにログイン失敗した旨を格納\n //loginresultfalse.jspに遷移\n try{\n UserData loginState = new UserData();\n loginState.setName(name);\n loginState.setPassword(password);\n \n boolean searchResult = UserDataDAO.getInstance().search(loginState);\n HttpSession session = request.getSession();\n \n if(searchResult){\n session.setAttribute(\"loginState\", \"connected\");\n String pageCheck = (String)session.getAttribute(\"pageCheck\");\n session.setAttribute(\"userSearch\", loginState);\n request.getRequestDispatcher(pageCheck).forward(request, response); \n }else{\n HashMap<String, String> loginNull = new HashMap<String, String>();\n loginNull.put(\"name\", name);\n loginNull.put(\"password\", password);\n session.setAttribute(\"loginNull\", loginNull);\n request.setAttribute(\"falseLogin\", \"該当するユーザー情報はありませんでした。\");\n request.getRequestDispatcher(\"/loginresultfalse.jsp\").forward(request, response); \n } \n }catch(Exception e){\n //何らかの理由で失敗したらエラーページにエラー文を渡して表示。想定は不正なアクセスとDBエラー\n request.setAttribute(\"error\", e.getMessage());\n request.getRequestDispatcher(\"/error.jsp\").forward(request, response);\n }\n }\n }", "public Enumeration<String> getParameterNames() {\n if ( isMultipart() ) {\n return this.multipart.getParameterNames();\n }\n else {\n return super.getParameterNames();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n String s1=request.getParameter(\"v1\");\r\n String s2=request.getParameter(\"v2\");\r\n String s3=request.getParameter(\"v3\");\r\n String s4=request.getParameter(\"v4\");\r\n String s5=request.getParameter(\"v5\");\r\n String s6=request.getParameter(\"v6\");\r\n Data obj=new Data(); \r\n obj.setAge(s1);\r\n obj.setGender(s2);\r\n obj.setWeather(s3);\r\n obj.setVehicle(s4);\r\n obj.setSeverity(s5);\r\n obj.setPersons(s6);\r\n dataFacade.create(obj);\r\n out.println(\"<h2>\"+\"Data Successfully Uploaded\"+\"</h2>\");\r\n out.println(\"<a href='upload.html'>\"+\"Click here to one more upload\"+\"</a>\");\r\n out.println(\"<a href='index.html'>\"+\"Click here to home\"+\"</a>\");\r\n }\r\n }", "private Map<String, String> getParams(final HttpServletRequest request) {\n final Map<String, String> params = new HashMap<>();\n for (final Map.Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\n params.put(entry.getKey(), entry.getValue()[0]);\n }\n return params;\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n String accion = request.getParameter(\"action_form\");\r\n //String accion = request.getParameter(\"action_form\");\r\n \r\n if(accion.equals(\"ingreso_art\")){\r\n response.sendRedirect(\"ingresarArticulo.jsp\");\r\n }else{\r\n request.getSession().setAttribute(\"categoria\", accion); \r\n response.sendRedirect(\"index.jsp\");\r\n }\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet TakerInfo</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet TakerInfo at \" + accion + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException, UnsupportedEncodingException, ParseException {\n response.setContentType(\"text/html;charset=UTF-8\");\n\n HttpSession session = request.getSession(true);\n WebUser user = (WebUser) session.getAttribute(\"loggedInUser\");\n String token = user.getToken();\n int staffId = user.getStaffId();\n ArrayList<String> errorMessages = new ArrayList<String>();\n\n SettingDAO sDAO = new SettingDAO();\n ArrayList<Setting> settings = sDAO.retrieveAllSettings(staffId, token);\n\n for (Setting s : settings) {\n int settingId = s.getId();\n String value = request.getParameter(settingId + \"\");\n String errMsg = \"\";\n Validation validation = new Validation();\n String isNum = validation.isValidNumber(value);\n if (isNum == null) {\n int valueInt = Integer.parseInt(value);\n errMsg = sDAO.editSetting(staffId, token, settingId, value);\n } else {\n String category = s.getCategory();\n String name = s.getName();\n if (name.equals(category)) {\n errMsg = \"(\" + s.getCategory() + \") \" + isNum;\n } else {\n errMsg = \"(\" + s.getCategory() + \": \" + s.getName() + \") \" + isNum;\n }\n }\n \n if (errMsg.length() != 0) {\n errorMessages.add(errMsg);\n }\n }\n\n if (errorMessages.size() == 0) {\n session.setAttribute(\"success\", \"Settings Updated!\");\n// RequestDispatcher view = request.getRequestDispatcher(\"ManageService.jsp\");\n// view.forward(request, response);\n response.sendRedirect(\"Admin_Settings.jsp\");\n } else {\n session.setAttribute(\"fail\", errorMessages);\n// RequestDispatcher view = request.getRequestDispatcher(\"ManageService.jsp\");\n// view.forward(request, response);\n response.sendRedirect(\"Admin_Settings.jsp\");\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n HttpSession session=request.getSession(); \n /*\n *Change the directory. Must be absolute. \n */\n String UPLOAD_DIRECTORY = \"C:\\\\Users\\\\Yuta\\\\Documents\\\\NetBeansProjects\\\\hoamisgit\\\\web\\\\ourFiles\\\\uploads\";\n if(ServletFileUpload.isMultipartContent(request)){\n try {\n List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);\n for(FileItem item : multiparts){\n if(!item.isFormField()){\n File a = new File(UPLOAD_DIRECTORY + File.separator + item.getName());\n String name = a.getName();\n String loc = UPLOAD_DIRECTORY + File.separator + item.getName();\n User user = (User)session.getAttribute(\"UserObj\");\n \n if (a.exists()){\n //session.setAttribute(\"message\", \"File Already exists\");\n }\n else{\n // session.setAttribute(\"message\", \"File Uploaded Successfully\");\n item.write( new File(UPLOAD_DIRECTORY + File.separator + name));\n }\n \n \n Document document = new Document(name, loc, new Folder(Integer.parseInt(String.valueOf(session.getAttribute(\"curFolder\")))), user);\n System.out.println(\"Document ID: \"+document.getDescription());\n System.out.println(\"Folder ID: \"+document.getFolder().getFolderID());\n if(DocumentDAO.checkDuplicateDoc(document)){\n if(evaluateSize(item)){\n if(name.length() <=45){\n DocumentDAO.addDocument(document);\n session.setAttribute(\"message\", \"File Uploaded Successfully\");\n }\n else{\n session.setAttribute(\"message\", \"File Name too long [45 Characters]\");\n }\n }\n else{\n session.setAttribute(\"message\", \"File Size Exceeds Limit [100MB]\");\n } \n }\n else{\n session.setAttribute(\"message\", \"File Already exists\");\n }\n }\n } //File uploaded successfully\n } catch (Exception ex) {\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n } \n response.sendRedirect(\"HomeDocu?fid=\"+String.valueOf(session.getAttribute(\"curFolder\")));\n }\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n request.setCharacterEncoding(\"UTF-8\");\r\n\r\n String Gamename = request.getParameter(\"gamename\");\r\n String Social1 = request.getParameter(\"social1\");\r\n String Social2 = request.getParameter(\"social2\");\r\n String GameType = request.getParameter(\"gameType\");\r\n String Synopsis = request.getParameter(\"synopsis\");\r\n String Cc = request.getParameter(\"cc\");\r\n\r\n Steam steam = new Steam();\r\n steam.setGamename(\"gamename\");\r\n steam.setSocial1(\"social1\");\r\n steam.setSocial2(\"social2\");\r\n steam.setGameType(\"gameType \");\r\n steam.setSynopsis(\"synopsis\");\r\n steam.setCc(\"cc\");\r\n\r\n HttpSession session = request.getSession();\r\n session.setAttribute(\"Steam\", steam);\r\n\r\n request.getRequestDispatcher(\"/updateSteam.jsp\").forward(request, response);\r\n\r\n }", "public void processRequest(HttpServletRequest request)\n {\n // do nothing if not initialized or session has expired.\n if(mv==null || request.getSession().isNew())\n {\n errorMsg = \"Session has expired (or is new). Please fill in the form and \"+\n \"click on the Submit button.\"; \n return;\n }\n \n success = false;\n errorMsg = null;\n if(action!=null) // user clicked an action button\n {\n if(\"Submit\".equalsIgnoreCase(action))\n doSubmit();\n else if(\"Zm In\".equalsIgnoreCase(action))\n doZoomIn();\n else if(\"Zm Out\".equalsIgnoreCase(action))\n doZoomOut(); \n else if(\"Pan W.\".equalsIgnoreCase(action))\n doPanHalf('W');\n else if(\"Pan E.\".equalsIgnoreCase(action))\n doPanHalf('E');\n else if(\"Pan S.\".equalsIgnoreCase(action))\n doPanHalf('S');\n else if(\"Pan N.\".equalsIgnoreCase(action))\n doPanHalf('N');\n }\n else if(request.getParameter(\"mouseClick.x\")!=null)\n {\n // user clicked on the map itself: recenter\n doRecenter(request);\n }\n \n if(success)\n {\n //reset action\n action = null;\n //update map size for display purpose\n size = mv.getRequestSize();\n //update center x,y for display purpose\n Point2D p = mv.getRequestCenter();\n if(p !=null)\n {\n centerX = p.getX();\n centerY = p.getY();\n }\n }\n }", "public ServletRequest getServletRequest() {\n/* 85 */ return this.request;\n/* */ }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String image = request.getParameter(\"locationImage\");\n String name = request.getParameter(\"txtCakeName\");\n String create = request.getParameter(\"txtCreateDate\");\n String expired = request.getParameter(\"txtExpiredDate\");\n CreateCakeError error = new CreateCakeError();\n boolean foundErr = false;\n ServletContext context = request.getServletContext();\n Map<String, String> siteMap = (Map) context.getAttribute(\"MAP\");\n String url = siteMap.get(\"updatePage\");\n String proID = request.getParameter(\"txtProductID\");\n try {\n if (name.trim().length() <= 0 || name.trim().length() > 50) {\n error.setInvalidName(\"The cake's name must contain from 3 to 50 letters\");\n foundErr = true;\n }\n float price = Float.parseFloat(request.getParameter(\"txtPrice\"));\n int quantity = Integer.parseInt(request.getParameter(\"txtQuantity\"));\n int categoryID = Integer.parseInt(request.getParameter(\"categoryID\"));\n int productID = Integer.parseInt(proID);\n int statusID = Integer.parseInt(request.getParameter(\"status\"));\n\n if (price < 0) {\n error.setInvalidPrice(\"Price must be positive number\");\n foundErr = true;\n }\n\n if (quantity < 0) {\n error.setInvalidQuantity(\"Quantity must be positive number\");\n foundErr = true;\n }\n\n SimpleDateFormat format = new SimpleDateFormat(\"MM/dd/yyyy\");\n Timestamp ts = new Timestamp(format.parse(create).getTime());\n Date createDate = new Date(ts.getTime());\n\n ts = new Timestamp(format.parse(expired).getTime());\n Date expiredDate = new Date(ts.getTime());\n if (createDate.after(expiredDate) || createDate.equals(expiredDate)) {\n error.setInvalidDate(\"Create date must before the expired date\");\n foundErr = true;\n }\n\n if (!foundErr) {\n ProductDAO productDAO = new ProductDAO();\n boolean result = productDAO.updateCake(name, image, price, categoryID, quantity, createDate, expiredDate, statusID, productID);\n if (result) {\n HttpSession session = request.getSession(false);\n UsersDTO user = (UsersDTO) session.getAttribute(\"USER\");\n String userID = user.getUserID();\n Date localDate = Date.valueOf(LocalDate.now());\n\n RecordDAO recoredDAO = new RecordDAO();\n recoredDAO.recordUpdate(userID, productID, localDate);\n\n url = siteMap.get(\"adminPage\");\n }\n } else {\n request.setAttribute(\"ERR\", error);\n request.setAttribute(\"PRODUCTID\", proID);\n }\n\n } catch (NumberFormatException ex) {\n error.setInvalidInput(\"Please enter the valid input\");\n request.setAttribute(\"ERR\", error);\n request.setAttribute(\"PRODUCTID\", proID);\n foundErr = true;\n LOG.error(\"NumberFormatException : \" + ex.getMessage());\n } catch (ParseException ex) {\n error.setInvalidDate(\"Invalid date\");\n request.setAttribute(\"ERR\", error);\n request.setAttribute(\"PRODUCTID\", proID);\n foundErr = true;\n LOG.error(\"ParseException : \" + ex.getMessage());\n } catch (NamingException ex) {\n LOG.error(\"NamingException : \" + ex.getMessage());\n } catch (SQLException ex) {\n LOG.error(\"SQLException : \" + ex.getMessage());\n } finally {\n if (foundErr) {\n RequestDispatcher rd = request.getRequestDispatcher(url);\n rd.forward(request, response);\n } else {\n response.sendRedirect(url);\n }\n }\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n\t\tPrintWriter out = resp.getWriter();\n\t\tresp.setContentType(\"text/html\");\n\t\tEnumeration<String> parametrNames = req.getParameterNames();\n\n\t\twhile (parametrNames.hasMoreElements()) {\n\t\t\tString parameterName = parametrNames.nextElement();\n\n\t\t\tif (\"subjects\".equals(parameterName)) {\n\t\t\t\tString paramValueArr[] = req.getParameterValues(parameterName);\n\n\t\t\t\tString vals = String.join(\",\", paramValueArr);\n\n\t\t\t\tout.println(\"<b>\" + parameterName + \"</b>--\" + vals + \"<br/>\");\n\t\t\t\tcontinue;\n\n\t\t\t}\n\n\t\t\tString paramValue = req.getParameter(parameterName);\n\n\t\t\tout.println(\"<b>\" + parameterName + \"</b>--\" + paramValue + \"<br/>\");\n\t\t}\n\t\t\n\t\tSimpleDateFormat ft = \n\t\t\t new SimpleDateFormat (\"E yyyy.MM.dd 'at' hh:mm:ss.S a zzz\");\n\t\t\n\t\tout.println(\"<b>Form submitted at: </b>\"+ft.format(new Date()));\n\n\t}", "public HttpServletRequest getServletRequest()\r\n/* 39: */ {\r\n/* 40: 74 */ return this.servletRequest;\r\n/* 41: */ }", "HttpServletRequest getCurrentRequest();", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tresp.setCharacterEncoding(\"gbk\");\n\t\tresp.setContentType(\"text/html;charset=gbk\");\n\t\tPrintWriter out=resp.getWriter();\n\t\tServletContext context=this.getServletContext();\n\t\tEnumeration<String> paramNames=context.getInitParameterNames();\n\t\tout.println(\"all the paramName and paramValue are following\");\n\t\t\n\t\twhile(paramNames.hasMoreElements()) {\n\t\t\tString name=paramNames.nextElement();\n\t\t\tString value =context.getInitParameter(name);\n\t\t\tout.println(name+\":\"+value);\n\t\t\tout.println(\"<br/>\");\n\t\t}\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\n String user = request.getParameter(\"user\");\n String pwd =request.getParameter(\"pwd\");\n\n Validator validator = new Validator();\n boolean userNameCheck = validator.validateUserName(user);\n boolean passwordCheck = validator.validatePassword(pwd);\n\n\n String userId = getServletConfig().getInitParameter(\"user\");\n String password=getServletConfig().getInitParameter(\"pwd\");\n\n\n\n\n if (userNameCheck==true && passwordCheck==true){\n request.setAttribute(\"user\",user);\n request.getRequestDispatcher(\"LoginSuccess.jsp\").forward(request,response);\n }\n\n else {\n RequestDispatcher requestDispatcher = getServletContext().getRequestDispatcher(\"/Login.html\");\n PrintWriter out =response.getWriter();\n out.println(\"<font color=red>Either username or password is incorrect</font>\");\n requestDispatcher.include(request,response);\n }\n\n }", "public String[] getParameterValues(String name) {\n if ( isMultipart() ) {\n String[] values = this.multipart.getParameterValues(name);\n if (values != null) {\n for (int i=0; i<values.length; ++i) {\n if (values[i] == null) {\n values[i] = \"\";\n }\n }\n }\n \n return values;\n }\n else {\n return super.getParameterValues(name);\n }\n }", "@RequestMapping(value = \"/prep_log_form.htm\",method = RequestMethod.GET)\r\n\tpublic String prepLogForm(ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\t\r\n\t\tmap.put(\"user\", new User());\r\n\t\treturn \"login_form\";\r\n\t}" ]
[ "0.6829899", "0.6632983", "0.64609873", "0.6144226", "0.61030143", "0.60959846", "0.59954804", "0.58865106", "0.5789663", "0.5788102", "0.5722162", "0.55781436", "0.55756825", "0.5565756", "0.55635613", "0.5563487", "0.5533447", "0.5530804", "0.55302006", "0.5530027", "0.5506994", "0.5469806", "0.54658073", "0.54474145", "0.54373187", "0.54260784", "0.5425347", "0.5416588", "0.5414405", "0.5407746", "0.54039156", "0.539233", "0.534701", "0.5340787", "0.5332814", "0.5327919", "0.53199923", "0.5299654", "0.52931553", "0.5292289", "0.5267551", "0.5265787", "0.5263256", "0.5256123", "0.52522326", "0.5238957", "0.5238317", "0.5234039", "0.52325314", "0.5226995", "0.52234757", "0.52141935", "0.52119076", "0.5208729", "0.5207869", "0.5206739", "0.5203825", "0.52031493", "0.51932544", "0.5192967", "0.51884323", "0.518802", "0.5173461", "0.5167749", "0.51663065", "0.5164307", "0.51611453", "0.5156943", "0.5151838", "0.5145773", "0.5133137", "0.5128659", "0.51266265", "0.51237136", "0.510972", "0.510972", "0.5108467", "0.5101941", "0.5097507", "0.5080667", "0.50781614", "0.5072215", "0.5070535", "0.50695306", "0.5068742", "0.50563854", "0.50497085", "0.50435257", "0.50398636", "0.5034843", "0.5022971", "0.50154227", "0.5004013", "0.50025445", "0.5000368", "0.50002384", "0.4998434", "0.49966562", "0.49932155", "0.4982094" ]
0.7271579
0
System.out.println("FileUploadServlet.storeInSessionFlashOrHTML5: " + request.getParameterMap());
@SuppressWarnings("unchecked") protected void storeInSessionFlash(HttpServletRequest request, HttpServletResponse response) throws IOException { ServletFileUpload upload = new ServletFileUpload(factory); try { if(ServletFileUpload.isMultipartContent(request)){ List<FileItem> fileItemList = upload.parseRequest(request); Map<String,Object> jsonResponse = new HashMap<String,Object>(); response.setContentType("text/json"); for(FileItem fileItem : fileItemList){ if(fileItem.isFormField()){ logger.info("FileUploadServlet.storeInSessionFlash - file item is form field::: " + fileItem); } else{ logger.info("FileUploadServlet.storeInSessionFlash.NOT formField " + fileItem); String id = UUID.randomUUID().toString(); request.getSession().setAttribute(id, fileItem); //--- RESPONSE - jsonResponse = generateJsonResponse(fileItem); jsonResponse.put("id", id); jsonResponse.put("sessionAttributeId", id); } } //IE is very sensitive on the response JacksonUtils.serialize(jsonResponse, response.getWriter()); } } catch (Exception exp) { logger.error(exp.getMessage(),exp); JacksonUtils.serialize(EntityModel.createErrorMessage("Problem Uploading Audio", exp.getMessage()), response.getWriter()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n\tprotected void storeInSessionFlashOrHTML5(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\ttry {\n\t\t\tif(ServletFileUpload.isMultipartContent(request)){\n\t\t\t\tList<FileItem> fileItemList = upload.parseRequest(request);\n\t\t\t\tList<Map<String,Object>> jsonResponse = new ArrayList<Map<String,Object>>();\n\t\t\t\tStringBuilder stringResponse = new StringBuilder();\n\t\t\t\t\n\t\t\t\tString params = request.getParameter(\"params\");\n\t\t\t\t\n\t\t\t\tJsonNode jparams = JacksonUtils.toNode(params);\n\t\t\t\tString method = jparams.get(\"method\").getTextValue();//request.getParameter(\"method\"); \n\t\t\t\tlogger.info(\"Upload file, METHOD: \" + method);\n\t\t\t\t\n\t\t\t\tif(\"flash\".equals(method)){\n\t\t\t\t\tresponse.setContentType(\"text/plain\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tresponse.setContentType(\"text/json\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(FileItem fileItem : fileItemList){\n\t\t\t\t\tif(fileItem.isFormField()){\n\t\t\t\t\t\tConstants.LOGGER.info(\"FileUploadServlet.storeInSessionFlashOrHTML5 - file item is form field::: \" + fileItem);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tConstants.LOGGER.info(\"FileUploadServlet.storeInSessionFlashOrHTML5.NOT formField \" + fileItem);\n//\t\t\t\t\t\tImageFile imageFile = webClientBean.storeImageInUploads(fileItem);\n\t\t\t\t\t\tString id = UUID.randomUUID().toString();\n\t\t\t\t\t\trequest.getSession().setAttribute(id, fileItem);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//--- RESPONSE - \n\t\t\t\t\t\tif(\"flash\".equals(method)){\n\t\t\t\t\t\t\tstringResponse.append(generateFlashResponse(fileItem, id));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t//-- FireFox/HTML5\n\t\t\t\t\t\t\tMap<String,Object> o = generateJsonResponse(fileItem);\n\t\t\t\t\t\t\to.put(\"fileItemId\", id);\n\t\t\t\t\t\t\tjsonResponse.add(o);\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\tif(\"flash\".equals(method)){\n\t\t\t\t\tresponse.getWriter().print(stringResponse);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tJacksonUtils.serialize(jsonResponse, response.getWriter());\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exp) {\n\t\t\tConstants.LOGGER.error(exp.getMessage(),exp);\n\t\t\tJacksonUtils.serialize(EntityModel.createErrorMessage(\"FileUpload Exception\", exp.getMessage()), response.getWriter());\n\t\t} \n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected void storeInSessionHTML5(HttpServletRequest request, HttpServletResponse response) throws IOException {\n//\t\tSystem.out.println(\"FileUploadServlet.storeInSessionHTML5: \" + request.getParameterMap());\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\ttry {\n\t\t\tif(ServletFileUpload.isMultipartContent(request)){\n\t\t\t\tList<FileItem> fileItemList = upload.parseRequest(request);\n\t\t\t\tList<Map<String,Object>> jsonResponse = new ArrayList<Map<String,Object>>();\n\t\t\t\tresponse.setContentType(\"text/json\");\n\t\t\t\t\n\t\t\t\tfor(FileItem fileItem : fileItemList){\n\t\t\t\t\tif(fileItem.isFormField()){\n\t\t\t\t\t\tlogger.info(\"FileUploadServlet.storeInSessionHTML5 - file item is form field::: \" + fileItem);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tlogger.info(\"FileUploadServlet.storeInSessionHTML5.NOT formField \" + fileItem);\n\t\t\t\t\t\tString id = UUID.randomUUID().toString();\n\t\t\t\t\t\trequest.getSession().setAttribute(id, fileItem);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//-- FireFox/HTML5\n\t\t\t\t\t\tMap<String,Object> o = generateJsonResponse(fileItem);\n\t\t\t\t\t\to.put(\"sessionAttributeId\", id);\n\t\t\t\t\t\tjsonResponse.add(o);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Json list\n\t\t\t\tJacksonUtils.serialize(jsonResponse, response.getWriter());\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exp) {\n\t\t\tConstants.LOGGER.error(exp.getMessage(),exp);\n\t\t\tJacksonUtils.serialize(EntityModel.createErrorMessage(\"FileUpload Exception\", exp.getMessage()), response.getWriter());\n\t\t} \n\t}", "public void doPost(HttpServletRequest request,\n HttpServletResponse response) throws ServletException, IOException\n\t{\n\tresponse.setContentType(\"text/html\");\n\tMap params = request.getParameterMap();\n\tfor(Object key :params.entrySet())\n\t{\n\tSystem.out.println(\"key:::\"+key);\n\t}\n\tSystem.out.println(\"uploads:::::::::::::::\"+request.getParameter(\"__UPLOADS\"));\n\t/*List<FileUpload> uploads = (List<FileUpload>) request.getParameter(\"__UPLOADS\");\n\tSystem.out.println(uploads.size());*/\n\t// Actual logic goes here.\n\tPrintWriter out = response.getWriter();\n\tSystem.out.println(\"<h1>\" + message + \"</h1>\");\n\tout.println(\"<h1>\" + message + \"</h1>\");\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected void storeInSession(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\ttry {\n\t\t\tif(ServletFileUpload.isMultipartContent(request)){\n\t\t\t\tList<FileItem> fileItemList = upload.parseRequest(request);\n//\t\t\t\tJsonNode jparams = JacksonUtils.toNode(request.getParameter(\"params\"));\n\t\t\t\tresponse.setContentType(\"text/html\");\n\t\t\t\tfor(FileItem fileItem : fileItemList){\n\t\t\t\t\tif(fileItem.isFormField()){\n//\t\t\t\t\t\tConstants.LOGGER.info(\"FileUploadServlet.storeInSession - file item is form field::: \" + fileItem);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tConstants.LOGGER.info(\"FileUploadServlet.storeImageInSession.NOT formField \" + fileItem);\n//\t\t\t\t\t\tImageFile imageFile = webClientBean.storeImageInUploads(fileItem);\n\t\t\t\t\t\tString id = UUID.randomUUID().toString();\n\t\t\t\t\t\trequest.getSession().setAttribute(id, fileItem);\n\t\t\t\t\t\t\n\t\t\t\t\t\tresponse.getWriter().print(\"<textarea>{target: 'SESSION',id: '\" + id + \"'}</textarea>\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exp) {\n\t\t\tConstants.LOGGER.error(exp.getMessage(),exp);\n\t\t\tJacksonUtils.serialize(EntityModel.createErrorMessage(\"FileUpload Exception\", exp.getMessage()), response.getWriter());\n\t\t} \n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, IOException\n {\n response.setContentType(\"text/html\");\n Map params = request.getParameterMap();\n for(Object key :params.entrySet())\n {\n \t System.out.println(\"key:::\"+key);\n }\n System.out.println(\"uploads:::::::::::::::\"+request.getParameter(\"__UPLOADS\"));\n\t\t/*List<FileUpload> uploads = (List<FileUpload>) request.getParameter(\"__UPLOADS\");\n\t\tSystem.out.println(uploads.size());*/\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n System.out.println(\"<h1>\" + message + \"</h1>\");\n out.println(\"<h1>\" + message + \"</h1>\");\n }", "protected void storeParameters(SessionSrvc session, HttpServletRequest req)\n {\n for (Enumeration paramNames = req.getParameterNames(); paramNames.hasMoreElements();)\n {\n\t String name = (String) paramNames.nextElement();\n\t // req.getSession().putValue(name, req.getParameter(name));\n\t session.putLocalValue(name, req.getParameter(name));\n }\n }", "public void doPost(HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, java.io.IOException {\n isMultipart = ServletFileUpload.isMultipartContent(request);\n response.setContentType(\"text/html\");\n java.io.PrintWriter out = response.getWriter();\n if (!isMultipart) {\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet upload</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<p>No file uploaded</p>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n return;\n }\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // maximum size that will be stored in memory\n //factory.setSizeThreshold(maxMemSize);\n // Location to save data that is larger than maxMemSize.\n //factory.setRepository(new File(\"c:\\\\temp\"));\n\n // Create a new file upload handler\n ServletFileUpload upload = new ServletFileUpload(factory);\n // maximum file size to be uploaded.\n //upload.setSizeMax(maxFileSize);\n try {\n // Parse the request to get file items.\n List fileItems = upload.parseRequest(request);\n // Process the uploaded file items\n Iterator i = fileItems.iterator();\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet upload</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n HttpSession session = request.getSession(true);\n String feedType = null;\n String redirectTo = null;\n String companyKey = session.getAttribute(\"companyKey\").toString();\n String userKey = session.getAttribute(\"userKey\").toString();\n String departmentKey = null;\n String isFeedCompanyWide = null;\n String feedTitle = null;\n String feedDescription = null;\n String fileName = null;\n FileItem forFile = null;\n while (i.hasNext()) {\n FileItem fi = (FileItem) i.next();\n if (fi.isFormField()) {\n if (fi.getFieldName().equals(\"feedType\")) {\n feedType = fi.getString();\n } else if (fi.getFieldName().equals(\"departmentKey\")) {\n departmentKey = fi.getString();\n } else if (fi.getFieldName().equals(\"isFeedCompanyWide\")) {\n isFeedCompanyWide = fi.getString();\n } else if (fi.getFieldName().equals(\"feedTitle\")) {\n feedTitle = fi.getString();\n } else if (fi.getFieldName().equals(\"feedDescription\")) {\n feedDescription = fi.getString();\n } else if (fi.getFieldName().equals(\"redirectTo\")) {\n redirectTo = fi.getString();\n }\n } else if (!fi.isFormField()) {\n forFile = fi;\n }\n }\n SmProperties.folderPath = request.getRealPath(\"\")+ File.separator + \"cropData\" + File.separator;\n if (redirectTo.equals(\"newsroom\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") + \"/user feed/\" +\n \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") + File.separator +\"user feed\"+ File.separator +\n \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n response.sendRedirect(\"home.jsp\");\n } else if (redirectTo.equals(\"myFeed\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") + \"/user feed/\"+ \n \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") +File.separator+ \"user feed\"+File.separator\n + \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n response.sendRedirect(\"homeMyFeeds.jsp\");\n } else if (redirectTo.equals(\"internalFeed\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") +\"/department feed/\"\n + \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") +File.separator+ \"user feed\"+File.separator\n + \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n response.sendRedirect(\"corporate.jsp\");\n } else if (redirectTo.equals(\"announcement\")) {\n if (forFile != null) {\n if (forFile.getName() != null && forFile.getName() != \"\") {\n String milliSecond = System.currentTimeMillis() + \"\";\n fileName = \"company-\" + session.getAttribute(\"companyKey\") +\"/department feed/\"\n + \"feed-\" + milliSecond + \".png\";\n\n filePath = SmProperties.folderPath + \"company-\" + session.getAttribute(\"companyKey\") +File.separator+ \"user feed\"+File.separator\n + \"feed-\" + milliSecond + \".png\";\n\n file = new File(filePath);\n forFile.write(file);\n }\n }\n int result = FeedMaster.insert(feedType, companyKey, userKey, departmentKey,\n isFeedCompanyWide, feedTitle, feedDescription, fileName);\n MemoryTest.test(\"footer start\");\n System.gc();\n MemoryTest.test(\"footer end\");\n response.sendRedirect(\"corporateDepartmentPage.jsp?open=announcement&key=\" + departmentKey);\n }\n } catch (Exception ex) {\n ErrorMaster.insert(\"Exception at CreateFeed : \" + ex.getMessage());\n }\n }", "private void fileUpload(HttpServletRequest request, HttpServletResponse response) {\n\t \ttry {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * String appPath = request.getServletContext().getRealPath(\"\");\r\n\t\t\t\t\t * System.out.println(appPath); String savePath = appPath + File.separator +\r\n\t\t\t\t\t * SAVE_DIR; System.out.println(savePath);\r\n\t\t\t\t\t */\r\n\t \t\t\r\n\t \t\t//String appPath = getServletContext().getRealPath(SAVE_DIR);\r\n\t \t\tSystem.out.println(appPath);\r\n\t \t\t String savePath = appPath + \"//\" +SAVE_DIR; \r\n\t \t\t System.out.println(savePath);\r\n\t\t\t\t\t\tCollection<Part>cp= request.getParts();\r\n\t \t String fileName = up.fileUpload(cp,appPath);\r\n\t \t System.out.println(fileName);\r\n\t \t \r\n\t \t request.setAttribute(\"message\", \"The file \"+fileName+\" has been uploaded successfully!\");\r\n\t \t RequestDispatcher dispatcher = request.getRequestDispatcher(\"success.jsp\");\r\n\t \t dispatcher.forward(request, response);\r\n\t}catch(Exception ex) {\r\n System.out.println(ex);\r\n }\r\n\t }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(req.getSession().getAttribute(\"attr\"));\n\t\treq.getSession().setAttribute(\"attr\", req.getParameter(\"session\"));\n\t\tSystem.out.println(req.getSession().getAttribute(\"attr\"));\n\t}", "private void userUpload(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n\tString s=getServletContext().getRealPath(\"\");\r\n\tSystem.out.println(\"realpath:\"+s);\r\n\tString loginid=request.getParameter(\"usern\");\r\n\t\t System.out.println(\"from servlet:\"+loginid);\r\n\t\t Part filePart = request.getPart(\"file\");\r\n\t\t \r\n\t\t UserFunctions uf=new UserFunctionsImpl();\r\n\t\t \r\n\t\tif( uf.uploadFile(loginid,filePart,appPath,SAVE_DIR))\r\n\t\t{\r\n\t\t\tArrayList<String>al=uf.listAllFiles(loginid);\r\n\t\t\tSystem.out.println(al);\r\n\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"successupload.jsp\"); \r\n\t\t\trequest.setAttribute(\"list\", al); \r\n\t dispatcher.forward(request, response);\r\n\t\t}\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\t // configures upload settings\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // sets memory threshold - beyond which files are stored in disk\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n // sets temporary location to store files\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\n ServletFileUpload upload = new ServletFileUpload(factory);\n \n \n // constructs the directory path to store upload file\n // this path is relative to application's directory\n String uploadPath = getServletContext().getRealPath(\"\") + File.separator + UPLOAD_DIRECTORY;\n // creates the directory if it does not exist\n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n int keySize= 0,iterationCount=0;\n String salt =\"\",passphrase=\"\",ciphertext=\"\",iv=\"\",fileData=\"\",Cdata=\"\",plainTextArea1=\"\";\n List<FileItem> formItems;\n String fileName =\"\";\n\t\ttry {\n\t\t\tformItems = upload.parseRequest(request);\n\t\t\tfor (FileItem item : formItems) {\n\t\t\t // processes only fields that are not form fields\n\t\t\t if (!item.isFormField()) {\n\t\t\t fileName = new File(item.getName()).getName();\n\t\t\t try {\n\t\t\t\t\t\tfileData = item.getString();\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 } else {\n\t\t\t //here...\n\t\t\t String fieldname = item.getFieldName();\n\t\t\t String fieldvalue = item.getString();\n\t\t\t \n\t\t\t if (fieldname.equals(\"passphrase\")) {\n\t\t\t \tpassphrase = fieldvalue;\n\t\t\t } else if (fieldname.equals(\"plainTextArea\")) {\n\t\t\t \tciphertext = fieldvalue;\n\t\t\t }else if (fieldname.equals(\"plainTextArea1\")) {\n\t\t\t \tplainTextArea1 = fieldvalue;\n\t\t\t }else if (fieldname.equals(\"secretKeys\")) {\n\t\t\t \tCdata = fieldvalue;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t} catch (FileUploadException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n\t\ttry {\n\t\t\tSystem.out.println(Cdata);\n\t\t\tString keysData = RSACryptoUtil.decryptWebPIN(Cdata);\n\t\t\tSystem.out.println(keysData);\n\t\t\tString[] dataAry = keysData.split(\"@@@\"); \n\t\t\tkeySize = Integer.valueOf(dataAry[4]);\n\t\t\titerationCount = Integer.valueOf(dataAry[3]);\n\t\t\tsalt = String.valueOf(dataAry[0]);\n\t\t\tiv = String.valueOf(dataAry[1]);\n\t\t\tpassphrase = String.valueOf(dataAry[2]);\n\t\t}catch (Exception e) {\n\t response.setStatus(HttpServletResponse.SC_OK);\n\t response.getWriter().print(\"Security keys tampered!\");\n\t\t}\n\t\t\t\t\n\t AesUtil aesUtil = new AesUtil(keySize, iterationCount);\n\t String plaintext = aesUtil.decrypt(salt, iv, passphrase, ciphertext);\n\t String fileDataIs = aesUtil.decrypt(salt, iv, passphrase, fileData);\n\t String replaceStr = \"\";\n\t if(fileName.endsWith(\".txt\"))\n\t \treplaceStr =\"data:text/plain;base64,\";\n\t else if(fileName.endsWith(\".js\"))\n\t \treplaceStr =\"data:application/javascript;base64,\";\n\t else if(fileName.endsWith(\".jpeg\") || fileName.endsWith(\".jpg\") )\n\t \treplaceStr=\"data:image/jpeg;base64,\";\n\t else if(fileName.endsWith(\".png\"))\n\t \treplaceStr=\"data:image/png;base64,\";\n\t \n\t \n\t if(!fileName.endsWith(\".jpeg\") && !fileName.endsWith(\".jpg\") && !fileName.endsWith(\".png\"))\n\t FileUtils.writeStringToFile(new File(uploadPath+File.separator+fileName), new String(Base64.decodeBase64(fileDataIs.replaceAll(replaceStr, \"\").getBytes())));\n\t else{\n\t \tbyte[] data = Base64.decodeBase64(fileDataIs.replaceAll(replaceStr, \"\"));\n\t try (OutputStream stream = new FileOutputStream(\"D:/sudhakar/eclipse-jee-luna-R-win32-x86_64/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Encryption/image_upload/\"+fileName)) {\n\t \t\tstream.write(data);\n\t \t}\n\t }\n \n response.setStatus(HttpServletResponse.SC_OK);\n response.getWriter().print(plaintext+\":\"+plainTextArea1);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n String fileName = \"\";\n byte[] data = null;\n\n FileItemFactory factory = new DiskFileItemFactory();\n ServletFileUpload upload = new ServletFileUpload(factory);\n List /* FileItem */ items = upload.parseRequest(request);\n Iterator iterator = items.iterator();\n\n out.println(\"<html><head><style>body{ font-family: helvetica;</style></head><body><h1>MD5</h1><table border='1'>\");\n\n while(iterator.hasNext()) {\n FileItem fileItem = (FileItem) iterator.next();\n if (! fileItem.isFormField() /*&& fileItem.getName().length() > 0 */) {\n fileName = fileItem.getName();\n data = fileItem.get();\n out.println(\"<tr><td>\" + fileName + \"</td><td>\" + md5sum(data) + \"</td></tr>\");\n }\n }\n\n out.println(\"</table></body></html>\");\n }\n catch (FileUploadException ex) {\n throw new IOException(ex);\n }\n finally {\n out.close();\n }\n }", "protected Object formBackingObject(HttpServletRequest request) throws ServletException {\r\n \t\t\r\n \t\treturn \"\";\r\n \t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n HttpSession session = new HttpSession() {\n public long getCreationTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String getId() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public long getLastAccessedTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public ServletContext getServletContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setMaxInactiveInterval(int interval) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public int getMaxInactiveInterval() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public HttpSessionContext getSessionContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Enumeration<String> getAttributeNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String[] getValueNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setAttribute(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void putValue(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void invalidate() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public boolean isNew() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n };\n try {\n String bsubmit = request.getParameter(\"submit\");\n String inUsername = request.getParameter(\"username\");\n String inPassword = request.getParameter(\"password\");\n if (bsubmit != null) {\n UserDAO userDAO = new UserDAO();\n User user = userDAO.findUserByNameAndPassword(inUsername, inPassword);\n if (user == null) {\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Sorry, invalid username or password\");\n out.write(\".');\\n\");\n out.write(\"setTimeout(function(){window.location.href='login.jsp'},1000);\");\n out.write(\"</script>\\n\");\n } else {\n if (user.getUserName().equals(inUsername) && user.getPassword().equals(inPassword)) {\n session = request.getSession();\n session.setAttribute(\"userId\", String.valueOf(user.getId()));\n session.setAttribute(\"userName\", user.getUserName());\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Thank you! You are login with \");\n out.write(user.getUserName());\n out.write(\" account.');\\n\");\n out.write(\"setTimeout(function(){window.location.href='index.jsp'},1000);\");\n out.write(\"</script>\\n\");\n }\n }\n\n }\n\n } finally {\n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException, ClassNotFoundException, SQLException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n InputStream inputStream = null; // input stream of the upload file\r\n \r\n String name=request.getParameter(\"name\"); \r\n \r\n Part filePart = request.getPart(\"blah\");\r\n if (filePart != null) {\r\n // prints out some information for debugging\r\n \r\n //obtains input stream of the upload file\r\n //the InputStream will point to a stream that contains\r\n //the contents of the file\r\n inputStream = filePart.getInputStream();\r\n }\r\n Connection con;\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n \r\n con=(Connection)DriverManager.getConnection(\"jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=convertToNull\", \"root\",\"1234\");\r\n out.println(\"Database Connected\");\r\n PreparedStatement pst;\r\n pst=con.prepareStatement(\"update table logintable(img) VALUESb(?) where name=?\");\r\n pst.setString(1,inputStream); \r\n pst.setString(2,name);\r\n int i= pst.executeUpdate();\r\n \r\n response.sendRedirect(\"index.html\"); \r\n \r\n }\r\n }", "public String doUploadFile(Map<String,Object> mapInfo);", "protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n { \n ResponseType rt = ResponseType.Success;\n Exception caughtException = null;\n try\n {\n // Check the settings have been loaded\n Settings settings;\n if((settings = PALS_SettingsListener.getSettings()) == null)\n throw new SettingsException(SettingsException.Type.FailedToLoad, null);\n // Build request\n // -- Fetch session identifier\n String sessid = getCookie(request, SESSION_COOKIE_NAME);\n // -- Build relative url of request\n String relUrl = (String)request.getAttribute(PALS_RequestsFilter.REQUEST_ATTRIBUTE_NAME_ORIGINALURL);\n // -- Prepare remote request wrapper\n RemoteRequest dataRequest = new RemoteRequest(sessid, relUrl, request.getRemoteAddr());\n // -- Add request fields\n for(Map.Entry<String,String[]> param : request.getParameterMap().entrySet())\n dataRequest.setFields(param.getKey(), param.getValue());\n // -- Add request files (and possibly fields)\n if(ServletFileUpload.isMultipartContent(request))\n {\n ServletFileUpload uploads = new ServletFileUpload();\n try\n {\n FileItemIterator itFile = uploads.getItemIterator(request);\n // Iterate each upload item\n File file;\n FileItemStream fis;\n FileOutputStream fos;\n InputStream is;\n long size;\n int bytesRead;\n byte[] data;\n while(itFile.hasNext())\n {\n fis = itFile.next();\n is = fis.openStream();\n if(!fis.isFormField() && fis.getName() != null && fis.getName().length() > 0)\n {\n file = new File(\n Storage.getPath_tempWebFile(settings.getStr(\"storage/path\"), request.getRemoteAddr())\n ).getCanonicalFile();\n // Write data to disk\n size = 0;\n fos = new FileOutputStream(file);\n data = new byte[1024];\n while((bytesRead = is.read(data)) != -1)\n {\n fos.write(data, 0, bytesRead);\n size += bytesRead;\n }\n fos.flush();\n fos.close();\n // Add to request\n dataRequest.setFile(fis.getFieldName(), new UploadedFile(fis.getName(), fis.getContentType(), size, file.getName()));\n }\n else\n {\n // Not a file - a field...\n dataRequest.setAddFields(fis.getFieldName(), Streams.asString(is));\n }\n }\n }\n catch(FileUploadException ex)\n {\n System.err.println(\"Failed to receive upload from user '\" + request.getRemoteAddr() + \"' ~ \" + ex.getMessage());\n }\n }\n\n // Communicate to node using RMI\n // -- Fetch host\n RMI_Host rmiHost = PALS_SettingsListener.fetchHost(); \n // -- Setup the socket and connect\n SSL_Factory sfact = PALS_SettingsListener.getRMISockFactory();\n Registry r;\n if(sfact != null)\n r = LocateRegistry.getRegistry(rmiHost.getHost(), rmiHost.getPort(), sfact);\n else\n r = LocateRegistry.getRegistry(rmiHost.getHost(), rmiHost.getPort());\n // -- Bind to our version of the interface\n RMI_Interface ri = (RMI_Interface)r.lookup(RMI_Interface.class.getName());\n RemoteResponse dataResponse = ri.handleWebRequest(dataRequest);\n \n // Handle response\n // -- Transfer header data\n if(dataResponse.isHeadersAvailable())\n {\n for(Map.Entry<String,String> kv : dataResponse.getHeaders().entrySet())\n response.setHeader(kv.getKey(), kv.getValue());\n }\n // -- Update the session ID cookie\n Cookie cookieSess = new Cookie(SESSION_COOKIE_NAME, dataResponse.getSessionID());\n cookieSess.setPath(\"/\");\n cookieSess.setMaxAge(dataResponse.isSessionPrivate() ? 3600 : 600);\n response.addCookie(cookieSess);\n // -- Check for redirect\n String redirect = dataResponse.getRedirectUrl();\n if(redirect != null)\n {\n if(!redirect.startsWith(\"/\"))\n redirect = \"/\" + redirect;\n response.sendRedirect(request.getContextPath() + redirect);\n }\n else\n {\n // -- Handle response type\n response.setContentType(dataResponse.getResponseType());\n // -- Set response code\n response.setStatus(dataResponse.getResponseCode());\n // -- Handle response data\n {\n byte[] buffer = dataResponse.getBuffer();\n if(buffer != null && buffer.length != 0)\n {\n ServletOutputStream sos = response.getOutputStream();\n sos.write(buffer);\n sos.flush();\n }\n else\n rt = ResponseType.Error_NoOutput;\n }\n }\n // Note: nothing else can be sent now; thus do not set any\n // cookies or headers at this point.\n \n // Destroy any temp files\n String tempFolder = Storage.getPath_tempWeb(settings.getStr(\"storage/path\"));\n File file;\n for(UploadedFile uf : dataRequest.getFiles())\n {\n file = new File(tempFolder + \"/\" + uf.getTempName());\n if(file.exists() && file.isFile())\n file.delete();\n }\n }\n catch(RemoteException ex)\n {\n System.err.println(\"RMI RemoteException ~ \" + ex.getMessage() + \"!\");\n rt = ResponseType.Error_RMI;\n caughtException = ex;\n }\n catch(NotBoundException ex)\n {\n System.err.println(\"RMI NotBoundException ~ \" + ex.getMessage() + \"!\");\n rt = ResponseType.Error_RMI;\n caughtException = ex;\n }\n catch(SettingsException ex)\n {\n System.err.println(\"Settings exception ~ \" + ex.getMessage() + \"!\");\n rt = ResponseType.Error_Settings;\n caughtException = ex;\n }\n // Check if we have handled the response correctly, else output a message to the user\n if(rt == ResponseType.Success)\n return;\n // An error has occurred...\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter pw = response.getWriter();\n pw.println(\"<!DOCTYPE html><html><head><title>PALS - Communication Issue</title></head><body>\");\n pw.println(\"<h1>Error</h1>\");\n // Output humam message\n switch(rt)\n {\n case Error_RMI:\n pw.println(\"<p>Communication issue, please try again...</p>\");\n pw.println(\"<h2>Network Administrators</h2>\");\n pw.println(\"<p>The system is unable to communicate with the node process, check it is running!</p>\");\n break;\n case Error_NoOutput:\n pw.println(\"<p>Communication issue, please try again...</p>\");\n pw.println(\"<h2>Network Administrators</h2>\");\n pw.println(\"<p>No data for the web-page was returned from the node; check templates and plugins are loading correctly.</p>\");\n break;\n case Error_Settings:\n pw.println(\"<p>Error occurred reading settings...</p>\");\n pw.println(\"<h2>Network Administrators</h2>\");\n pw.println(\"<p>Ensure the file at WEB-INF/web.config as been correctly configured.</p>\");\n break;\n }\n // Output debug information\n if(caughtException != null && PALS_SettingsListener.getSettings().getBool(\"debug\", false))\n {\n pw.println(\"<h2>Debug Data</h2>\");\n pw.println(\"<p>\");\n caughtException.printStackTrace(pw);\n pw.println(\"</p>\");\n }\n // Dispose and end\n pw.println(\"</body></html>\");\n pw.flush();\n pw.close();\n }", "Map<String, ?> getFlashAttributes();", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "public abstract FullResponse onServeFormParams(Map<String, List<String>> formParams);", "@Override\n public String getServletInfo() {\n return \"Handles file upload data from application/octet-stream, and multipart/form-data.\";\n }", "Map<String, String[]> getParameterMap();", "public Map<String,String[]> getParameterMap() {\n if (isMultipart()) {\n Map parameterMap = new HashMap();\n Enumeration names = this.multipart.getParameterNames();\n \n while (names.hasMoreElements()) {\n String name = (String) names.nextElement();\n parameterMap.put(name, getParameterValues(name));\n }\n \n return parameterMap;\n }\n else {\n return super.getParameterMap();\n }\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\r\n\t\tSystem.out.println(\"doPost\");\r\n\t\t\r\n\t\tint yourMaxRequestSize = 100 * 1024 * 1024; // 1M\r\n\t\tint yourMaxMemorySize = 100 * 1024;\r\n\t\t\r\n\t\t// form field 의 데이터(String)\r\n\t\tString id = \"\";\r\n\t\tString title = \"\";\r\n\t\tString content = \"\";\r\n\r\n\t\t// file data\r\n\t\tString filename = \"\";\r\n\r\n\t\t\r\n\t\tString path = req.getServletContext().getRealPath(\"/upload\");\r\n\t\t\r\n\t\t\r\n\t\t// String path = \"d:\\\\tmp\";\r\n\t\t/*\r\n\t\tSystem.out.println(path);\r\n\t\tMultipartRequest mreq = new MultipartRequest(req, path);\r\n\t\tEnumeration t = mreq.getParameterNames();\r\n\t\t*/\r\n\t\t/*\r\n\t\twhile(t.hasMoreElements()) {\r\n\t\t\tString name = (String)t.nextElement();\r\n\t\t\tString conver =new String(mreq.getParameter(name).getBytes(\"8859_1\"), \"UTF-8\");\r\n\t\t\tSystem.out.println(name + \" : \" + mreq.getParameter(name) + \" : \" + conver);\r\n\t\t}\r\n\t\t*/\r\n\t\tboolean isMultipart = ServletFileUpload.isMultipartContent(req);\r\n\t\tSystem.out.println(isMultipart);\r\n\t\tif(isMultipart){\r\n\t\t\r\n\t\t// FileItem 을 생성하는 함수\r\n\t\t DiskFileItemFactory factory = new DiskFileItemFactory();\r\n\t\t \r\n\t\t factory.setSizeThreshold(yourMaxMemorySize);\r\n\t\t factory.setRepository(new File(path));\r\n\t\t \r\n\t\t ServletFileUpload upload = new ServletFileUpload(factory);\r\n\t\t upload.setSizeMax(yourMaxRequestSize);\r\n\t\t \r\n\t\t // list저장\r\n\t\t List<FileItem> items = null;\r\n\t\ttry {\r\n\t\t\titems = upload.parseRequest(req);\r\n\t\t} catch (FileUploadException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t Iterator<FileItem> it = items.iterator();\r\n\t\t \r\n\t\t while(it.hasNext()){\r\n\t\t \r\n\t\t FileItem item = it.next();\r\n\t\t // id, title, content\r\n\t\t if(item.isFormField()){\r\n\t\t if(item.getFieldName().equals(\"id\")){\r\n\t\t \tid = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"title\")){\r\n\t\t title = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"content\")){\r\n\t\t content = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t }\r\n\t\t // file\r\n\t\t else{\r\n\t\t if(item.getFieldName().equals(\"fileload\")){\r\n\t\t filename = processUploadFile(item, path);\r\n\t\t System.out.println(\"path:\" + path);\r\n\t\t } \r\n\t\t } \r\n\t\t }\r\n\t\t \r\n\t}\r\n\t\tiReferRoomDao dao = ReferRoomDao.getInstance();\r\n\r\n\t\tboolean isS = dao.add_ReferR(new ReferRoomDto(id, title, content, filename));\r\n\t\t\r\n\t\tresp.sendRedirect(\"ReferListCtlr\");\r\n\t}", "private static void logInfo(Request req, Path tempFile) throws IOException, ServletException {\n System.out.println(\"Uploaded file '\" + getFileName(req.raw().getPart(\"uploaded_file\")) + \"' saved as '\" + tempFile.toAbsolutePath() + \"'\");\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String codeLabWorker1 = \"\";\n if (!ServletFileUpload.isMultipartContent(request)) {\n\t\t PrintWriter writer = response.getWriter();\n\t\t writer.println(\"Error: enctype=multipart/form-data\");\n\t\t writer.flush();\n\t\t return;\n\t\t}\n\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n \n ServletFileUpload upload = new ServletFileUpload(factory); \n upload.setFileSizeMax(MAX_FILE_SIZE);\n upload.setSizeMax(MAX_REQUEST_SIZE);\n String uploadPath = getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n \n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n try {\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n if (formItems != null && formItems.size() > 0) {\n File storeFile = null;\n String codeResult = \"\";\n String codeLabWorker = \"\"; \n String dateToday = getDateToday();\n String time = getTime();\n for (FileItem item : formItems) { \n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n storeFile = new File(filePath);\n System.out.println(filePath);\n item.write(storeFile); \n }else{\n String fieldName = item.getFieldName();\n String fieldValue = item.getString();\n if (fieldName.equals(\"codeLabWorker\")) {\n codeLabWorker = fieldValue;\n codeLabWorker1=codeLabWorker;\n }else if (fieldName.equals(\"codeResult\")) {\n codeResult = fieldValue;\n }\n } \n }\n //Enviar a guardar\n LabWorkerDB labDB = new LabWorkerDB();\n labDB.updateResult(codeLabWorker, storeFile, dateToday, time, codeResult);\n JOptionPane.showMessageDialog(null,\"Se guardo con exito\");\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null,ex);\n } \n request.setAttribute(\"username\", codeLabWorker1);\n \n request.getRequestDispatcher(\"/labWorkerGUI/principallabWorker.jsp\").forward(request, response);\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tServletContext sc = getServletContext();\n\t\tString path = sc.getRealPath(\"/WEB-INF/classes/settings.properties\");\n\t\tProperties props = new Properties();// 读取文件类型创建对象。\n\t\tprops.load(new FileInputStream(path));\n\t\tString fdfsUrl = props.getProperty(\"fdfsUrl\");\n\t\t// System.out.println(value);//结果:a2\n\t\tString callback = request.getParameter(\"callback\");\n\t\tString result = \"login\";\n\t\tProxyClient client = SessionUtil.getClient(request.getSession());\n\t\tMap<String, Object> map = new HashMap<>();\n\t\tif (client == null) {\n\t\t\t// 跳转到登录页面\n\t\t\tmap.put(\"net\", -1);\n\t\t\tmap.put(\"msg\", result);\n\t\t} else {\n\t\t\tList<Message> list = client.receiveMessage();\n\t\t\tBASE64Encoder encoder = new sun.misc.BASE64Encoder();\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tString attachment = list.get(i).getAttachment();\n\t\t\t\tif (!\"\".equals(attachment) && attachment != null) {\n\t\t\t\t\tJSONObject jsonObject = JSONObject.fromObject(attachment);\n\t\t\t\t\tif (jsonObject.containsKey(\"thumbnail\")) {\n\t\t\t\t\t\tString thumbnail = jsonObject.get(\"thumbnail\").toString();\n\t\t\t\t\t\tString format = thumbnail.split(\"\\\\.\")[1];\n\t\t\t\t\t\tString tppath = thumbnail.replace(\"M00\", fdfsUrl);\n\t\t\t\t\t\tFile file = new File(tppath);\n\t\t\t\t\t\tString dataUrl = null;\n\t\t\t\t\t\tif (file.exists()) {\n\t\t\t\t\t\t\tBufferedImage bi;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tbi = ImageIO.read(file);\n\t\t\t\t\t\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\t\t\t\t\t\tImageIO.write(bi, format, baos);\n\t\t\t\t\t\t\t\tbyte[] bytes = baos.toByteArray();\n\t\t\t\t\t\t\t\tdataUrl = encoder.encodeBuffer(bytes).trim();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (dataUrl != null) {\n\t\t\t\t\t\t\tdataUrl = \"data:image/\" + format + \";base64,\" + dataUrl;\n\t\t\t\t\t\t\tjsonObject.put(\"thumbnail\", dataUrl);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlist.get(i).setAttachment(jsonObject.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\tmap.put(\"net\", client.getSynced()); // 网络状态声明\n\t\t\tmap.put(\"msg\", list); // 消息内容\n\t\t\tGson json = new Gson();\n\t\t\tresult = json.toJson(map);\n\t\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\t\tPrintWriter out = response.getWriter();\n\t\t\tif (callback != null && callback.length() > 0) {\n\t\t\t\t// 以jsonp方式处理\n\t\t\t\tresponse.setHeader(\"Content-type\", \"application/x-javascript;charset=utf-8\");\n\t\t\t\tout.print(callback + \"(\" + result + \");\");\n\t\t\t} else {\n\t\t\t\t// 直接返回json\n\t\t\t\tresponse.setContentType(\"text/json;charset=UTF-8\");\n\t\t\t\tout.print(result);\n\t\t\t}\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t}\n\t}", "@ToDoVulnerability //This needs to validate the parameters for injection\n private Map<String, String> getUpParams(HttpServletRequest req)\n {\n Map<String, String> params = new HashMap<>();\n Enumeration<String> en = req.getParameterNames();\n while(en.hasMoreElements())\n {\n String name = en.nextElement();\n if(name.startsWith(\"up_\"))\n params.put(name, req.getParameter(name));\n }\n return params;\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\r\n PrintWriter writer = response.getWriter();\r\n String userName = request.getParameter(\"userName\");\r\n HttpSession session = request.getSession();\r\n if (userName != \"\" && userName != null){\r\n \r\n session.setAttribute(\"savedUserName\", userName);\r\n }\r\n \r\n writer.println(\" Request parameter has username as \" + userName);\r\n writer.println(\" Session parameter has username \" + (String) session.getAttribute(\"savedUserName\"));\r\n //out.println(\"Hello \" + userName);\r\n \r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint carID = Integer.parseInt(request.getParameter(\"carID\"));\n\t\tString name = request.getParameter(\"nameCar\").toString();\n\t\tint nsx = Integer.parseInt(request.getParameter(\"productDate\"));\n\t\tlong price = Long.parseLong(request.getParameter(\"price\"));\n\t\tint quantityStock = Integer.parseInt(request.getParameter(\"quantityStock\"));\n\t\tString description = request.getParameter(\"description\").toString();\n\t\tString brand = request.getParameter(\"brand\").toString();\n\t\tString imageCar = \"\";\n\t\tString fileName = request.getParameter(\"photo\");\n\t\t\t DiskFileItemFactory factory = new DiskFileItemFactory();\n\t\t\t\t// sets memory threshold - beyond which files are stored in disk\n\t\t\t\tfactory.setSizeThreshold(MEMORY_THRESHOLD);\n\t\t\t\t// sets temporary location to store files\n\t\t\t\tfactory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\t\t\n\t\t\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\t\t\t// sets maximum size of upload file\n\t\t\t\tupload.setFileSizeMax(MAX_FILE_SIZE);\n\t\t\n\t\t\t\t// sets maximum size of request (include file + form data)\n\t\t\t\tupload.setSizeMax(MAX_REQUEST_SIZE);\n\t\t\n\t\t\t\t// constructs the directory path to store upload file\n\t\t\t\t// this path is relative to application's directory\n\t\t\t\n\n\t\t\t\ttry{\n\t\t\t\t\tList<Part> fileParts = request.getParts().stream().filter(part -> \"photo\".equals(part.getName())).collect(Collectors.toList()); // Retrieves <input type=\"file\" name=\"file\" multiple=\"true\">\n\t\t \t\tString uploadPath = \"C:\\\\Users\\\\AnhXtanh\\\\workspace\\\\hungptit\\\\WebContent\\\\\" + UPLOAD_DIRECTORY;\n\t\t \t\tFile uploadDir = new File(uploadPath);\n\t\t \t\tif (!uploadDir.exists()) {\n\t\t\t\t\t\tuploadDir.mkdir();\n\t\t\t\t\t}\n\t\t \t\tfor (Part filePart : fileParts) {\n\t\t\t\t imageCar = Paths.get(filePart.getSubmittedFileName()).getFileName().toString(); // MSIE fix.\n\t\t\t\t System.out.println(imageCar);\n\t\t\t\t String filePath = uploadPath + File.separator + imageCar;\n\t\t\t\t filePart.write(uploadPath);\n\t\t\t\t } \n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\trequest.setAttribute(\"message\", \"There was an error: \" + ex.getMessage());\n\t\t\t\t}\n\t\t\t\tif (imageCar.equals(\"\")) {\n\t\t\t\t\tCar car = new Car (name, description, brand, nsx, price, quantityStock);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcardao.updateCarNoneImage(car, carID);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tCar car = new Car (name, description, brand, nsx, price, quantityStock, imageCar);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcardao.updateCar(car, carID);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tArrayList<Car> listCar;\n\t\t\t\ttry {\n\t\t\t\t\tlistCar = cardao.findAllCar();\n\t\t\t\t\trequest.setAttribute(\"cars\", listCar);\n\t\t\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"/WEB-INF/view/listCars.jsp\");\n\t\t\t\t\trd.forward(request, response);\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession sess = request.getSession(true); // starts a new session\n String name = request.getParameter(\"user\");\n name = Jsoup.clean(name, Whitelist.simpleText());\n ArrayList<Board> boards = new ArrayList<Board>();\n sess.setAttribute(\"user\", name); // set some session attributes\n sess.setAttribute(\"boards\", boards);\n request.getRequestDispatcher(\"readFile\").forward(request, response);\n \n \n }", "protected void doPost(HttpServletRequest request,\n HttpServletResponse response) throws ServletException, IOException {\n String userName = request.getParameter(\"userName\");\n String password = request.getParameter(\"password\");\n\n try {\n // constructs SQL statement\n String sql = \"INSERT INTO users(name,password) VALUES ('\"+ userName + \"','\"+ \n password +\"')\";\n // String sql = \"Insert into gallery(name, description, valu\"\n PreparedStatement statement = conn.prepareStatement(sql);\n // statement.setString(1, taskName);\n // statement.setString(2, taskDesc);\n\n //if (inputStream != null) {\n // fetches input stream of the upload file for the blob column\n // statement.setBlob(3, inputStream);\n // }\n statement.executeUpdate(sql);\n // sends the statement to the database server\n //int row = statement.executeUpdate();\n // if (row > 0) {\n // message = \"Image is uploaded successfully into the Database\";\n // }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n // sets the message in request scope\n // request.setAttribute(\"Message\", message);\n\n // forwards to the message page\n // getServletContext().getRequestDispatcher(\"/gallery.xhtml\").forward(\n // request, response);\n response.sendRedirect(\"welcome.xhtml\");\n }", "@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\treturn null;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // detecta si es una carga multimedia\n if (!ServletFileUpload.isMultipartContent(request)) {\n // detente si no\n PrintWriter writer = response.getWriter();\n writer.println (\"Error: el formulario debe contener enctype = multipart / form-data\");\n writer.flush();\n return;\n }\n\n // Configurar parámetros de carga\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // Establecer los archivos temporales de umbral de memoria se generarán y almacenarán en el directorio temporal\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n // Establecer el directorio de almacenamiento temporal\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\n ServletFileUpload upload = new ServletFileUpload(factory);\n\n // Establecer el valor máximo de carga de archivos\n upload.setFileSizeMax(MAX_FILE_SIZE);\n\n // Establecer el valor máximo de solicitud (incluidos los datos de archivo y formulario)\n upload.setSizeMax(MAX_REQUEST_SIZE);\n\n // procesamiento chino\n upload.setHeaderEncoding(\"UTF-8\");\n\n // Construye una ruta temporal para almacenar archivos cargados\n // Esta ruta es relativa al directorio actual de la aplicación\n String uploadPath = request.getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n\n // Crear si el directorio no existe\n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n\n try {\n // Analiza el contenido solicitado para extraer los datos del archivo\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n\n if (formItems != null && formItems.size() > 0) {\n // iterar sobre los datos del formulario\n for (FileItem item : formItems) {\n // manejar campos que no están en el formulario\n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n File storeFile = new File(filePath);\n // Salida de la ruta de carga del archivo en la consola\n System.out.println(filePath);\n // guardar archivo en el disco duro\n item.write(storeFile);\n request.setAttribute (\"mensaje\", \"¡Archivo cargado correctamente!\");\n hilo = new HiloCargadeDatos(storeFile);\n hilo.start();\n }\n }\n }\n } catch (Exception ex) {\n request.setAttribute (\"mensaje\", \"Mensaje de error:\" + ex.getMessage ());\n }\n\n // Nos redirigimos a la página para que nos muestre los errores\n request.getServletContext().getRequestDispatcher(\"/subir.jsp\").forward(request, response);\n }", "@Override \r\nprotected void doPost(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tHttpSession session = req.getSession();\r\n\t\tConnection c = null;\r\n\t\tResultSet rs = null;\r\n\t\tString result = \"Fail\";\r\n\t\tString userImageKey = \"\";\r\n\t\tint resultid = -1;\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\tUser user = userService.getCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tMap<String,List<BlobKey>> blobs = blobstoreService.getUploads(req);\r\n\t\t\tIterator<String> names = blobs.keySet().iterator();\r\n\t\t\twhile(names.hasNext()) {\r\n\t\t\t\tString name = names.next();\r\n\t\t\t\tif (name.equals(\"userImage\")) {\r\n\t\t\t\t\tList<BlobKey> blobkeys = blobs.get(name);\r\n\t\t\t\t\tif (blobkeys.size() > 0) {\r\n\t\t\t\t\t\tBlobKey blobkey = blobkeys.get(0);\r\n\t\t\t\t\t\tuserImageKey = blobkey.getKeyString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tString name = req.getParameter(\"name\");\r\n\t\t\tif (name == null || name.equals(\"\") ) {\r\n\t\t\t\tname = \"UserName\";\r\n\t\t\t}\r\n\t\t\tString registrationId = req.getParameter(\"regid\");\r\n\t\t\tif (registrationId == null) {\r\n\t\t\t\tregistrationId = \"\";\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tDriverManager.registerDriver(new AppEngineDriver());\r\n\t\t\t\tc = DriverManager.getConnection(\"jdbc:google:rdbms://dongjawebapp:boarddb/boarddb\");\r\n\t\t\t\tString query = \"SELECT id,imagekey FROM usertbl WHERE userid = ?\";\r\n\t\t\t\tPreparedStatement stmt = c.prepareStatement(query);\r\n\t\t\t\tstmt.setString(1, user.getEmail());\t\t\r\n\t\t\t\trs = stmt.executeQuery();\r\n\t\t\t\tif (rs.next()) {\r\n\t\t\t\t\t// update user info\r\n\t\t\t\t\tint userid = rs.getInt(\"id\");\r\n\t\t\t\t\tresultid = userid;\r\n\t\t\t\t\tif (userImageKey.equals(\"\")) {\r\n\t\t\t\t\t\tuserImageKey = rs.getString(\"imagekey\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t\t\r\n\t\t\t\t\tString statement = \"UPDATE usertbl SET userid = ?, username = ?, imagekey = ?, registrationid = ? WHERE id = ?\";\r\n\t\t\t\t\tPreparedStatement upstmt = c.prepareStatement(statement);\r\n\t\t\t\t\tupstmt.setString(1, user.getEmail());\r\n\t\t\t\t\tupstmt.setString(2, name);\r\n\t\t\t\t\tupstmt.setString(3, userImageKey);\r\n\t\t\t\t\tupstmt.setString(4, registrationId);\r\n\t\t\t\t\tupstmt.setInt(5, userid);\r\n\t\t\t\t\tupstmt.executeUpdate();\r\n\t\t\t\t\tif (session.getAttribute(\"userid\") == null) {\r\n\t\t\t\t\t\tsession.setAttribute(\"userid\", userid);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresult = \"Success\";\r\n\t\t\t\t\tresultid = userid;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// insert user info\r\n\t\t\t\t\tString statementFormat = \"INSERT INTO usertbl(userid,username,imagekey,registrationid) VALUES('%s','%s','%s','%s')\";\r\n\t\t\t\t\tString statement = String.format(statementFormat, user.getEmail(),name,userImageKey,registrationId);\r\n\t\t\t\t\tStatement instmt = c.createStatement();\r\n\t\t\t\t\tinstmt.executeUpdate(statement,Statement.RETURN_GENERATED_KEYS);\r\n\t\t\t\t\tResultSet rs2 = instmt.getGeneratedKeys();\r\n\t\t\t\t\tif (rs2.next()) {\r\n\t\t\t\t\t\tint userid = rs2.getInt(1);\r\n\t\t\t\t\t\tsession.setAttribute(\"userid\", userid);\r\n\t\t\t\t\t\tresult = \"Success\";\r\n\t\t\t\t\t\tresultid = userid;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tresult = \"Fail\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tresult = \"Fail\";\r\n\t\t\t} finally {\r\n\t\t\t\tif (c != null) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tc.close();\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tresult = \"NotLogin\";\r\n\t\t}\r\n\r\n\t req.setAttribute(\"result\", result);\r\n\t req.setAttribute(\"resultid\", resultid);\r\n\t try {\r\n req.getRequestDispatcher(\"/UploadResult.jsp\").forward(req, resp);\r\n } catch (ServletException e) {\r\n }\r\n\t\t\r\n\t}", "protected Map<String,String> getParametersMap(HttpServletRequest request) {\n\t\tMap<String,String> map = new HashMap<String,String>();\n\t\t\n\t\tEnumeration<String> paramNames = request.getParameterNames() ;\n\t\t\n\t\twhile ( paramNames.hasMoreElements() ) {\n\t\t\tString name = paramNames.nextElement() ;\n\t\t\tString value = request.getParameter(name) ;\n\t\t\tmap.put(name, value);\n\t\t}\n\t\treturn map ;\n\t}", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tboolean isMultipart = ServletFileUpload.isMultipartContent(request);\r\n\r\n\t\tif (!isMultipart) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Create a factory for disk-based file items\r\n\t\tDiskFileItemFactory factory = new DiskFileItemFactory();\r\n\r\n\t\t// Sets the size threshold beyond which files are written directly to\r\n\t\t// disk.\r\n\t\tfactory.setSizeThreshold(MAX_MEMORY_SIZE);\r\n\r\n\t\t// Sets the directory used to temporarily store files that are larger\r\n\t\t// than the configured size threshold. We use temporary directory for\r\n\t\t// java\r\n\t\tfactory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\r\n\r\n\t\t// constructs the folder where uploaded file will be stored\r\n\t\t// String uploadFolder = getServletContext().getRealPath(\"\")\r\n\t\t// + File.separator + DATA_DIRECTORY;\r\n\r\n\t\tString[] route = getServletContext().getRealPath(\"\").split(Pattern.quote(File.separator));\r\n\t\tStringBuffer uploadFolderSb = new StringBuffer();\r\n\t\t// uploadFolderSb.append(File.separator);\r\n\t\tfor (int i = 0; i < route.length - 2; i++) {\r\n\t\t\tuploadFolderSb.append(route[i]);\r\n\t\t\tuploadFolderSb.append(File.separator);\r\n\t\t}\r\n\r\n\t\tuploadFolderSb.append(\"docroot\");\r\n\t\tuploadFolderSb.append(File.separator + DATA_DIRECTORY);\r\n\t\tString uploadFolder = uploadFolderSb.toString();\r\n\r\n\t\t// String uploadFolderRel = getServletContext().getContextPath()\r\n\t\t// + File.separator + DATA_DIRECTORY;\r\n//\t\tString uploadFolderRel = \"\\\\\" + DATA_DIRECTORY;\r\n\t\t// Create a new file upload handler\r\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\r\n\r\n\t\t// Set overall request size constraint\r\n\t\tupload.setSizeMax(MAX_REQUEST_SIZE);\r\n\t\tList<String> webLinks = new ArrayList<String>();\r\n\t\tString publishedYear = \"0000\";\r\n\t\tString title = \"\";\r\n\t\tString isbn = \"0\";\r\n\t\tString pagesCount = \"0\";\r\n\t\tString author = \"0\";\r\n\t\tLong userAppId = null;\r\n\t\ttry {\r\n\t\t\t// Parse the request\r\n\t\t\tList items = upload.parseRequest(request);\r\n\t\t\tIterator iter = items.iterator();\r\n\t\t\twhile (iter.hasNext()) {\r\n\t\t\t\tFileItem item = (FileItem) iter.next();\r\n\r\n\t\t\t\tif (!item.isFormField()) {\r\n\t\t\t\t\tString fileName = new File(item.getName()).getName();\r\n\t\t\t\t\tString filePath = uploadFolder + File.separator + fileName;\r\n\t\t\t\t\tString fileRelPath = \r\n\t\t\t\t\t\t\t//uploadFolderRel + \r\n\t\t\t\t\t\t\tFile.separator\r\n\t\t\t\t\t\t\t+ fileName;\r\n\t\t\t\t\tFile uploadedFile = new File(filePath);\r\n\r\n\t\t\t\t\t// saves the file to upload directory\r\n\t\t\t\t\titem.write(uploadedFile);\r\n\t\t\t\t\tString finalPath = fileRelPath.replace(\"//\", \"/\");\r\n\t\t\t\t\twebLinks.add(finalPath);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (item.getFieldName().equals(\r\n\t\t\t\t\t\t\tConstants.BLOB_PUBLISHED_YEAR)) {\r\n\t\t\t\t\t\tpublishedYear = item.getString();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.BLOB_TITLE)) {\r\n\t\t\t\t\t\ttitle = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.ISBN)) {\r\n\t\t\t\t\t\tisbn = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.PAGES_COUNT)) {\r\n\t\t\t\t\t\tpagesCount = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.BLOB_AUTHOR)) {\r\n\t\t\t\t\t\tauthor = item.getString();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (item.getFieldName().equals(Constants.BLOB_UPLOADER)) {\r\n\t\t\t\t\t\tuserAppId = Long.parseLong(item.getString());\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\tProfessor professor = ((GWTServiceImpl) gwtServiceImpl)\r\n\t\t\t\t\t.findProfessor(userAppId);\r\n\t\t\tLocalBook localBook = new LocalBook(professor, author, isbn,\r\n\t\t\t\t\tpagesCount, publishedYear, title);\r\n//\t\t\tString absPath = getServletContext().getRealPath(\"\").substring(0,\r\n//\t\t\t\t\t52)\r\n//\t\t\t\t\t+ File.separator + \"docroot\" + File.separator;\r\n\t\t\tList<String> imagesWebLinks = convert(uploadFolder\r\n\t\t\t\t\t+ webLinks.get(0),uploadFolder);\r\n\t\t\tlocalBook.setWebLinks(imagesWebLinks);\r\n\t\t\tprofessor.getBooks().add(localBook);\r\n\t\t\tsaveUser((Professor) professor);\r\n\t\t\t// displays done.jsp page after upload finished\r\n\t\t\t// getServletContext().getRequestDispatcher(\"/done.jsp\").forward(request,\r\n\t\t\t// response);\r\n\r\n\t\t} catch (FileUploadException ex) {\r\n\t\t\tthrow new ServletException(ex);\r\n\t\t} catch (ProfessorNotFoundException pnfe) {\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\tthrow new ServletException(ex);\r\n\t\t}\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n}", "@RequestMapping(value = \"/session_form.htm\",method = RequestMethod.GET)\r\n\tpublic String sessionForm(ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\tUserController.protectRoute(session,response);\r\n\t\t\r\n\t\treturn \"home\";\r\n\t}", "@Override\n\t\tpublic Map getParameterMap() {\n\t\t\treturn null;\n\t\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n String title = \"Reading All Request Parameters\";\n\n\tout.println(\"<head><title>ShowParameters Servlet</title></head>\");\n\n out.println(\"<BODY BGCOLOR=\\\"#FDF5E6\\\">\\n\" +\n \"<H1 ALIGN=CENTER>\" + title + \"</H1>\\n\" +\n \"<TABLE BORDER=1 ALIGN=CENTER>\\n\" +\n \"<TR BGCOLOR=\\\"#FFAD00\\\">\\n\" +\n \"<TH>Parameter Name<TH>Parameter Value(s)\");\n\n Enumeration paramNames = request.getParameterNames();\n\n \twhile(paramNames.hasMoreElements())\n \t{\n \t \tString paramName = (String)paramNames.nextElement();\n \t \tout.print(\"<TR><TD>\" + paramName + \"<TD>\");\n\n \t\tString[ ] paramValues = request.getParameterValues(paramName);\n\n \t\tif (paramValues.length == 1)// array is one entry long? contains only empty string\n \t\t{\n \t\tString paramValue = paramValues[0];\n \t\tif (paramValue.length() == 0)\t//parameter has no value\n \t\t\t out.println(\"<I>No Value</I>\"); //displays in italic\n \t\telse\n \t\t\tout.println(paramValue);\n \t\t}\n \t\telse\t\t\t//parameter has multiple values\n \t\t{\n \t\tout.println(\"<UL>\");\n \t\tfor(int i=0; i<paramValues.length; i++)\n \t\t{\n \t\t\tout.println(\"<LI>\" + paramValues[i]);\t\t//values are dislayed\n \t\t}\n\n \t\tout.println(\"</UL>\");\n \t\t}\n \t}\n\n \tout.println(\"</TABLE>\\n</BODY></HTML>\");\n } finally { \n out.close();\n }\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException { \r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n \r\n HttpSession session = request.getSession(true); \r\n Inmobiliaria inmobiliaria= (Inmobiliaria) session.getAttribute(\"inmobiliaria\"); \r\n if(inmobiliaria==null) inmobiliaria = Inmobiliaria.darObjeto(); \r\n session.setAttribute(\"inmobiliaria\", inmobiliaria);\r\n \r\n MultipartFormDataRequest mrequest = null; \r\n RequestDispatcher dispatcher = null; \r\n UploadBean upBean = null;//UploadBean es una libreria que se usa para poder llevar objetos al servidor en este caso la imagen \r\n \r\n String operacion = null; \r\n String mensaje = null;\r\n String url = null;\r\n \r\n try{ \r\n \r\n mrequest= new MultipartFormDataRequest(request); //le indicamos que recoga todo lo que nos esta mandando el .jsp \r\n operacion = mrequest.getParameter(\"btn_aceptar\");\r\n \r\n if ((operacion != null) && (operacion.equalsIgnoreCase(\"Agregar\"))) { \r\n \r\n //recuperar campos de texto:\r\n String dir = mrequest.getParameter(\"txt_direccion\"); \r\n String barrio = mrequest.getParameter(\"txt_barrio\"); \r\n String tel = mrequest.getParameter(\"txt_telefono\"); \r\n String tipo = mrequest.getParameter(\"dpd_tipoInmueble\"); \r\n String categoria = mrequest.getParameter(\"dpd_categoria\"); \r\n String tamanio = mrequest.getParameter(\"txt_tamano\"); \r\n int precio = Integer.parseInt(mrequest.getParameter(\"txt_precio\")); \r\n String ciudad = mrequest.getParameter(\"dpd_ciudad\"); \r\n \r\n String imagen = dir.replaceAll(\" \",\"\")+\".jpg\"; \r\n //-------------------- \r\n \r\n //enviar datos:\r\n try {\r\n \r\n inmobiliaria.adicionarInmueble(barrio, dir, tel, tipo, tamanio, precio, imagen, categoria, ciudad); \r\n mensaje = inmobiliaria.getMensaje(); \r\n \r\n if(mensaje.equals(\"El inmueble se adicionó con Exito\")){\r\n //recuperar archivo (imagen): \r\n Hashtable files = mrequest.getFiles();\r\n if ((files != null) && (!files.isEmpty())) { \r\n UploadFile file = (UploadFile) files.get(\"uploadfile\");\r\n \r\n file.setFileName(imagen);\r\n upBean = new UploadBean(); \r\n\r\n upBean.setFolderstore(\"D:\\\\DOCUMENTOS\\\\UMARIANA\\\\proyNetbeans\\\\Inmobiliaria\\\\web\\\\images\\\\inmuebles\\\\\"); \r\n upBean.store(mrequest, \"uploadfile\"); //Con el Store le decimos al MultipartFormRequest que obtenta tambien la imagen \r\n\r\n } else {\r\n System.out.println(\"<li>No uploaded files\");\r\n }\r\n //----------------------------------------------------- \r\n }\r\n \r\n } catch (Exception e) {\r\n out.println(e.getMessage());\r\n }\r\n \r\n \r\n url = \"AgregarInmueble.jsp\";\r\n \r\n session.setAttribute(\"mensaje\", mensaje);\r\n session.setAttribute(\"url\", url);\r\n\r\n response.sendRedirect(\"./Mensajes.jsp\"); \r\n \r\n }//if de (operacion) \r\n \r\n //modificar un inmueble:\r\n if ((operacion != null) && (operacion.equalsIgnoreCase(\"Modificar\"))) {\r\n String dirOriginal = mrequest.getParameter(\"txt_dir_original\"); //direccion original del inmueble \r\n \r\n String dir = mrequest.getParameter(\"txt_direccion\"); \r\n String barrio = mrequest.getParameter(\"txt_barrio\"); \r\n String tel = mrequest.getParameter(\"txt_telefono\"); \r\n String tipo = mrequest.getParameter(\"dpd_tipoInmueble\"); \r\n String categoria = mrequest.getParameter(\"dpd_categoria\"); \r\n String tamanio = mrequest.getParameter(\"txt_tamano\"); \r\n int precio = Integer.parseInt(mrequest.getParameter(\"txt_precio\")); \r\n String ciudad = mrequest.getParameter(\"dpd_ciudad\"); \r\n String imagenOriginal = dirOriginal.replaceAll(\" \",\"\")+\".jpg\";\r\n String imagenNueva = dir.replaceAll(\" \",\"\")+\".jpg\";\r\n \r\n try {\r\n //eliminar archivo anterior:\r\n String imagenCambiada = mrequest.getParameter(\"imagenCambiada\"); \r\n if(imagenCambiada.equals(\"1\")){\r\n String ruta=\"D:/DOCUMENTOS/UMARIANA/proyNetbeans/Inmobiliaria/web/images/inmuebles/\"+imagenOriginal;\r\n inmobiliaria.eliminarArchivo(ruta);\r\n } \r\n else imagenNueva = imagenOriginal;\r\n \r\n inmobiliaria.modificarInmueble(barrio, dir, tel, tipo, categoria, tamanio, precio, ciudad, imagenNueva, dirOriginal); \r\n \r\n //recuperar archivo (imagen): \r\n Hashtable files = mrequest.getFiles();\r\n if ((files != null) && (!files.isEmpty())) { \r\n UploadFile file = (UploadFile) files.get(\"uploadfile\"); \r\n file.setFileName(imagenNueva);\r\n upBean = new UploadBean(); \r\n upBean.setFolderstore(\"D:\\\\DOCUMENTOS\\\\UMARIANA\\\\proyNetbeans\\\\Inmobiliaria\\\\web\\\\images\\\\inmuebles\\\\\"); \r\n upBean.store(mrequest, \"uploadfile\"); //Con el Store le decimos al MultipartFormRequest que obtenga tambien la imagen \r\n\r\n } else {\r\n out.write(\"es null\");\r\n } \r\n \r\n } catch (Exception e) {\r\n }\r\n \r\n mensaje = inmobiliaria.getMensaje();\r\n url = \"AdministrarInmuebles.jsp\";\r\n \r\n session.setAttribute(\"url\", url);\r\n session.setAttribute(\"mensaje\", mensaje);\r\n \r\n response.sendRedirect(\"./Mensajes.jsp\"); \r\n \r\n \r\n }//if(modificar)\r\n \r\n }catch( UploadException exc){\r\n System.out.println(\"Error en lo primero: \"+exc.getMessage());\r\n } \r\n \r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "final void request(HttpServletRequest request) {\n \n // Find the session ID in the cookies\n String sessionId = null;\n Cookie[] cookies = request.getCookies();\n int cookieCount = (cookies == null) ? 0 : cookies.length;\n for (int i = 0; i < cookieCount && sessionId == null; i++) {\n Cookie cookie = cookies[i];\n String name = cookie.getName();\n if (\"SessionId\".equals(name)) {\n sessionId = cookie.getValue();\n }\n }\n \n HttpSession session = request.getSession(true);\n _currentSession.set(session);\n \n // If the session ID is not found in the cookies, create a new one\n if (sessionId == null) {\n \n sessionId = session.getId();\n setProperty(sessionId, Boolean.FALSE);\n }\n \n // Fill the input parameters\n HashMap inputParameters = new HashMap();\n Enumeration params = request.getParameterNames();\n while (params.hasMoreElements()) {\n String name = (String) params.nextElement();\n String value = request.getParameter(name);\n if (\"\".equals(value) || name.equals(getSessionId())) {\n value = null;\n }\n inputParameters.put(name, value);\n }\n setProperty(\"_inputs\", inputParameters);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String url = \"/index.jsp\";\n\n \n \n\n HttpSession session = request.getSession();\n\n String action = request.getParameter(\"act\");\n if (action == null) {\n action = \"n\";\n session.invalidate();\n session = request.getSession(); \n }\n\n if (action.equalsIgnoreCase(\"n\")) { //brand new, just accessing the site\n session.invalidate();\n session = request.getSession();\n session.setAttribute(\"hd1\", \"hidden\");\n session.setAttribute(\"hd2\", \"hidden\");\n ArrayList<String> lgError1 = new ArrayList();\n ArrayList<String> lgError2 = new ArrayList();\n session.setAttribute(\"er1\", lgError1);\n session.setAttribute(\"er2\", lgError1);\n ArrayList<School> schl = dbSignIn.getAllSchools();\n session.setAttribute(\"schl\", schl);\n\n \n } else if (action.equalsIgnoreCase(\"su\")) { //sign up\n session.setAttribute(\"hd1\", \"hidden\");\n session.setAttribute(\"hd2\", \"hidden\");\n ArrayList<String> lgError1 = new ArrayList();\n ArrayList<String> lgError2 = new ArrayList();\n session.setAttribute(\"er1\", lgError1);\n session.setAttribute(\"er2\", lgError2);\n\n String fn = request.getParameter(\"fn\");\n String ln = request.getParameter(\"ln\");\n String ph = request.getParameter(\"ph\");\n String em = request.getParameter(\"em\");\n String pw = request.getParameter(\"pw\");\n String rpw = request.getParameter(\"rpw\");\n\n ArrayList<School> schl = (ArrayList<School>) session.getAttribute(\"schl\");\n String sl = request.getParameter(\"sl\");\n School s1 = null;\n\n String errString = \"\";\n //<<<<<<<<<<<<<<<< First Name Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(fn)) {\n if (!IVString.IsNumeric(fn)) {\n if (!IVString.ContainsSpecials(fn)) {\n //DO SOMETHING\n } else {\n errString += \"fn\";\n lgError2.add(\"First Name contained invalid characters.\");\n }\n } else {\n errString += \"fn\";\n lgError2.add(\"First Name contained invalid characters.\");\n }\n } else {\n errString += \"fn\";\n lgError2.add(\"A First Name was not entered.\");\n }\n //<<<<<<<<<<<<<<<< Last Name Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(ln)) {\n if (!IVString.IsNumeric(fn)) {\n if (!IVString.ContainsSpecials(fn)) {\n //DO SOMETHING\n } else {\n errString += \"ln\";\n lgError2.add(\"Last Name contained invalid characters.\");\n }\n } else {\n errString += \"ln\";\n lgError2.add(\"Last Name contained invalid characters.\");\n }\n } else {\n errString += \"ln\";\n lgError2.add(\"A Last Name was not entered.\");\n }\n //<<<<<<<<<<<<<<<< Phone Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(ph)) {\n if (IVString.IsNumeric(ph)) {\n //DO SOMETHING\n } else {\n errString += \"ph\";\n lgError2.add(\"Phone Number contained invalid characters.\");\n }\n } else {\n errString += \"ph\";\n lgError2.add(\"A Phone Number was not entered.\");\n }\n //<<<<<<<<<<<<<<<< Email Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(em)) {\n if (IVString.MatchesRegex(em, IVString.regexLib(\"email\"))) {\n if (!dbSignIn.chkUserExists(em)) {\n //DO SOMETHING\n } else {\n errString += \"em\";\n lgError2.add(\"Email already exists in system.\");\n }\n } else {\n errString += \"em\";\n lgError2.add(\"An invalid Email Address was entered.\");\n }\n } else {\n errString += \"em\";\n lgError2.add(\"An Email Address was not entered.\");\n }\n //<<<<<<<<<<<<<<<< Password Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(pw) && IVString.ContainsText(rpw)) {\n if (pw.equals(rpw)) {\n //DO SOMETHING\n } else {\n errString += \"pw\";\n lgError2.add(\"Passwords did not match.\");\n }\n } else {\n errString += \"pw\";\n lgError2.add(\"A Password was not entered.\");\n }\n //<<<<<<<<<<<<<<<< School Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(sl)) {\n if (IVString.IsNumeric(sl)) {\n int s2 = Integer.parseInt(sl);\n for (int i = 0; i < schl.size(); i++) {\n if (schl.get(i).getSID() == s2) {\n s1 = schl.get(i);\n }\n }\n if (s1 != null) {\n //DO SOMETHING\n } else {\n errString += \"sl\";\n lgError2.add(\"School was not found.\");\n }\n } else if (sl.equalsIgnoreCase(\"ZZZ\")) {\n errString += \"zz\";\n } else {\n errString += \"sl\";\n lgError2.add(\"School was not found.\");\n }\n } else {\n errString += \"sl\";\n lgError2.add(\"A School was not entered.\");\n }\n\n //<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>\n //<<<<<<<<<<<<<<<< Final Validation >>>>>>>>>>>>>>>>\n //<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>\n if (errString == null || errString.equals(\"\")) {\n session.setAttribute(\"hd2\", \"hidden\");\n url = \"/formCont\";\n //<<<<<<<<<<<<<<<< Object Creation >>>>>>>>>>>>>>>>\n uDir newDir = new uDir();\n newDir.setfName(fn);\n newDir.setlName(ln);\n newDir.setPhone(ph);\n newDir.setUus(em);\n newDir.setHus(ec.EC_dus(em));\n newDir.setHpw(ec.EC_dpw(pw));\n ArrayList<School> insertSchool = new ArrayList<School>();\n insertSchool.add(s1);\n newDir.setSchls(insertSchool);\n newDir = dbSignIn.newUser(newDir);\n if(newDir == null) {\n url = \"err500.jsp\";\n }\n } else if (errString.equalsIgnoreCase(\"zz\")) {\n url = \"/addSchl.jsp\";\n } else {\n session.setAttribute(\"hd2\", \"\");\n url = \"/index.jsp\";\n if (!errString.contains(\"fn\")) {\n session.setAttribute(\"fn\", fn);\n session.setAttribute(\"fnact\", \"active\");\n }\n if (!errString.contains(\"ln\")) {\n session.setAttribute(\"ln\", ln);\n session.setAttribute(\"lnact\", \"active\");\n }\n if (!errString.contains(\"ph\")) {\n session.setAttribute(\"ph\", ph);\n session.setAttribute(\"phact\", \"active\");\n }\n if (!errString.contains(\"em\")) {\n session.setAttribute(\"em\", em);\n session.setAttribute(\"emact\", \"active\");\n }\n if (!errString.contains(\"sl\")) {\n session.setAttribute(\"sl\", sl);\n session.setAttribute(\"slact\", \"active\");\n }\n }\n\n session.setAttribute(\"er1\", lgError1);\n session.setAttribute(\"er2\", lgError2);\n\n } else if (action.equalsIgnoreCase(\"lg\")) { //regular log in\n session.setAttribute(\"hd1\", \"hidden\");\n session.setAttribute(\"hd2\", \"hidden\");\n ArrayList<String> lgError1 = new ArrayList();\n ArrayList<String> lgError2 = new ArrayList();\n session.setAttribute(\"er1\", lgError1);\n session.setAttribute(\"er2\", lgError1);\n String us = request.getParameter(\"us\");\n String pw = request.getParameter(\"pw\");\n \n String errString = \"\";\n //<<<<<<<<<<<<<<<< Username Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(us)) {\n if (IVString.MatchesRegex(us, IVString.regexLib(\"email\"))) {\n //do something\n } else {\n errString += \"us\";\n lgError1.add(\"An invalid Email Address was entered.\");\n }\n } else {\n errString += \"us\";\n lgError1.add(\"An Email Address was not entered.\");\n }\n //<<<<<<<<<<<<<<<< Password Validation >>>>>>>>>>>>>>>>\n if (IVString.ContainsText(pw)) {\n //Do Something\n } else {\n errString += \"pw\";\n lgError1.add(\"A Password was not entered.\");\n }\n\n \n //<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>\n //<<<<<<<<<<<<<<<< Final Validation >>>>>>>>>>>>>>>>\n //<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>\n if (errString == null || errString.equals(\"\")) {\n session.setAttribute(\"hd1\", \"hidden\");\n url = \"/formCont\";\n //<<<<<<<<<<<<<<<< Object Creation >>>>>>>>>>>>>>>>\n uBase frstUsr = new uBase();\n frstUsr.setUus(us);\n frstUsr.setHus(ec.EC_dus(us));\n frstUsr.setHpw(ec.EC_dpw(pw));\n \n if(dbSignIn.loginUser(frstUsr) == 1) {\n //get user values\n uDir lgnDir = dbSignIn.getDirectorfromUS(frstUsr);\n url = \"/grpBaseCont\";\n session.setAttribute(\"usr\", lgnDir);\n \n \n } else {\n url = \"/index.jsp\";\n session.setAttribute(\"hd1\", \"\");\n lgError1.add(\"Username/Password was incorrect.\");\n }\n } else {\n session.setAttribute(\"hd1\", \"\");\n url = \"/index.jsp\";\n }\n\n session.setAttribute(\"er1\", lgError1);\n session.setAttribute(\"er2\", lgError2);\n\n } else if (action.equalsIgnoreCase(\"ev\")) { //clicks event manager button\n url = \"/evtlgn.jsp\";\n session.setAttribute(\"hd1\", \"hidden\");\n ArrayList<String> lgError1 = new ArrayList();\n session.setAttribute(\"er1\", lgError1);\n\n } else if (action.equalsIgnoreCase(\"elg\")) { //event manager login\n url = \"/evtLst.jsp\";\n session.setAttribute(\"hd1\", \"hidden\");\n ArrayList<String> lgError1 = new ArrayList();\n session.setAttribute(\"er1\", lgError1);\n uBase cus = new uBase();\n String us = request.getParameter(\"us\");\n String pw = request.getParameter(\"pw\");\n boolean lg1, lg2, lg3 = false;\n lg1 = IVString.ContainsText(us);\n lg2 = IVString.MatchesRegex(us, IVString.regexLib(\"email\"));\n lg3 = IVString.ContainsText(pw);\n\n if (lg1 && lg2 && lg3) {\n url = \"/evtLst.jsp\";\n\n cus.setUus(us);\n cus.setHus(ec.EC_dus(us));\n cus.setHpw(ec.EC_dpw(us));\n session.setAttribute(\"us\", cus.getUus());\n session.setAttribute(\"pw\", cus.getHpw());\n } else {\n url = \"/evtlgn.jsp\";\n if (!lg1 || !lg2) {\n session.setAttribute(\"hd1\", \"\");\n if (!lg1) {\n lgError1.add(\"An email was not entered.\");\n } else if (!lg2) {\n lgError1.add(\"An invalid email was entered.\");\n }\n }\n if (!lg3) {\n lgError1.add(\"A password was not entered.\");\n }\n session.setAttribute(\"er1\", lgError1);\n }\n } else {\n url = \"index.jsp\";\n }\n\n getServletContext()\n .getRequestDispatcher(url)\n .forward(request, response);\n }", "protected Map<String, Object> paserRequetToHashMap(HttpServletRequest req){\n\t\t\n\t\tMap<String,Object> params = new HashMap<>();\n\t\t\n\t\tEnumeration<?> enumber = req.getParameterNames();\n\n\t\twhile (enumber.hasMoreElements()) {\n\t\t\tString key = enumber.nextElement().toString();\n\t\t\tObject value = req.getParameter(key);\n\t\t\tparams.put(key, value); \n\t\t}\n\t\t\n\t\t\n\t\treturn params;\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n\n final String gameName = request.getParameter(Constants.GAME_NAME_ATTRIBUTE_NAME);\n final String creatorName = SessionUtils.getSessionUsername(request);\n final Part filePart = request.getPart(\"file\"); // Retrieves <input type=\"file\" name=\"file\">\n final String fileName = getSubmittedFileName(filePart);\n\n try {\n InputStream fileContent = filePart.getInputStream();\n File outputTempFile = InputFileUtils.inputStreamToFile(fileContent, DIRECTORY_NAME, FILE_NAME_START + tempSaveCounter++, \"xml\");\n\n GameConfig gameConfig = new GameConfig();\n gameConfig.load(outputTempFile);\n Game game = gameConfig.initiateGameFromGenerated();\n\n int currentGameVersion = SessionUtils.getGameVersion(request);\n\n processGameRecord(gameName, creatorName, game, currentGameVersion);\n\n request.getSession().setAttribute(Constants.GAME_NAME_ATTRIBUTE_NAME, gameName);\n request.getSession().setAttribute(Constants.PLAYER_TYPE_ATTRIBUTE, Player.Type.PLAYER_ONE);\n System.out.println(\"GameRecord inserted successfully\");\n\n response.sendRedirect(Constants.GAME_URI);\n //DEBUG: System.out.println(\"The game \" + gameName + \" was saved on session \" + request.getSession().toString());\n } catch (RecordAlreadyExistsException e) {\n // player is already in game, transfer to its game\n //request.getSession().setAttribute(Constants.GAME_NAME_ATTRIBUTE_NAME, gameName);\n response.sendRedirect(Constants.DUPLICATE_GAME_URI);\n\n } catch (JAXBException | ConfigException e) {\n // error in parsing file\n handleErrorInParsingFile(request, response, fileName, e);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet savepic</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet savepic at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "@Override\n\tpublic Map getParameterMap() {\n\t\treturn null;\n\t}", "private InputStream getBodyFromServletRequestParameters(HttpServletRequest request)\r\n/* 96: */ throws IOException\r\n/* 97: */ {\r\n/* 98:128 */ ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n/* 99:129 */ Writer writer = new OutputStreamWriter(bos, \"UTF-8\");\r\n/* 100: */ \r\n/* 101:131 */ Map<String, String[]> form = request.getParameterMap();\r\n/* 102:132 */ for (Iterator<String> nameIterator = form.keySet().iterator(); nameIterator.hasNext();)\r\n/* 103: */ {\r\n/* 104:133 */ String name = (String)nameIterator.next();\r\n/* 105:134 */ List<String> values = Arrays.asList((String[])form.get(name));\r\n/* 106:135 */ for (Iterator<String> valueIterator = values.iterator(); valueIterator.hasNext();)\r\n/* 107: */ {\r\n/* 108:136 */ String value = (String)valueIterator.next();\r\n/* 109:137 */ writer.write(URLEncoder.encode(name, \"UTF-8\"));\r\n/* 110:138 */ if (value != null)\r\n/* 111: */ {\r\n/* 112:139 */ writer.write(61);\r\n/* 113:140 */ writer.write(URLEncoder.encode(value, \"UTF-8\"));\r\n/* 114:141 */ if (valueIterator.hasNext()) {\r\n/* 115:142 */ writer.write(38);\r\n/* 116: */ }\r\n/* 117: */ }\r\n/* 118: */ }\r\n/* 119:146 */ if (nameIterator.hasNext()) {\r\n/* 120:147 */ writer.append('&');\r\n/* 121: */ }\r\n/* 122: */ }\r\n/* 123:150 */ writer.flush();\r\n/* 124: */ \r\n/* 125:152 */ return new ByteArrayInputStream(bos.toByteArray());\r\n/* 126: */ }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException\r\n {\r\n \r\n\r\n// get next incident id\r\n int maxIncidentID = 0;\r\n String msg_title= \"\";\r\n String msg_description= \"\";\r\n String time= \"\";\r\n String latLong = \"\";\r\n String userID=\"\";\r\n String password=\"\";\r\n ArrayList<String> imagePaths = new ArrayList<String>();\r\n List<FileItem> items = null;\r\n // run a query to insert a row with the incident id (already received) and latlong and message details and image paths.\r\n \r\n String currTime = new Timestamp(new Date().getTime()).toString();\r\n String name = currTime.replaceAll(\"\\\\:|\\\\-|\\\\s+|\\\\.\", \"\");\r\n System.out.println(name);\r\n String sImagePath = \"C:/incidentImages/\"+name+\"/\";\r\n boolean success = ( new File(sImagePath)).mkdirs();\r\n if (success) {\r\n System.out.println(\"Directory: \" + sImagePath + \" created\");\r\n } \r\n new File(sImagePath);\r\n try\r\n {\r\n items = new ServletFileUpload(new\r\n DiskFileItemFactory()).parseRequest(request);\r\n for (FileItem item : items)\r\n {\r\n if(item.getFieldName().equals(\"message\"))\r\n {\r\n// File dataFile = new\r\n// File(sImagePath+System.currentTimeMillis());\r\n msg_description = item.getString();\r\n /*FileWriter v = new FileWriter(dataFile);\r\n v.append(sVal);\r\n v.close();*/\r\n }\r\n \r\n if(item.getFieldName().equals(\"latitude\"))\r\n {\r\n /*File dataFile = new File(sImagePath+\"gps_\"+System.currentTimeMillis() +\".txt\");\r\n String sVal = item.getString();\r\n FileWriter v = new FileWriter(dataFile);\r\n v.append(sVal);\r\n v.close();*/\r\n latLong = item.getString();\r\n }\r\n if(item.getFieldName().equals(\"longitude\"))\r\n { \r\n latLong = latLong + \",\" + item.getString(); \r\n }\r\n \r\n if(item.getFieldName().equals(\"message_title\"))\r\n { \r\n msg_title = item.getString();\r\n }\r\n \r\n if(item.getFieldName().equals(\"reporting_time\"))\r\n { \r\n time = item.getString();\r\n }\r\n \r\n if(item.getFieldName().equals(\"uid\"))\r\n {\r\n userID=item.getString();\r\n }\r\n \r\n if(item.getFieldName().equals(\"pass\"))\r\n {\r\n password=item.getString();\r\n }\r\n if (item.getFieldName().equals(\"image\"))\r\n {\r\n String fileName = item.getName();\r\n //String fileContentType = item.getContentType();\r\n InputStream fileContent = item.getInputStream();\r\n\r\n BufferedImage bImageFromConvert = ImageIO.read(fileContent);\r\n imagePaths.add(sImagePath+fileName);\r\n \r\n File vImageFile = new File(sImagePath+fileName);\r\n\r\n ImageIO.write(bImageFromConvert, \"jpg\", vImageFile);\r\n //Image img = ImageIO.read(new File(sImagePath+fileName)).getScaledInstance(100, 100, BufferedImage.SCALE_SMOOTH);\r\n \r\n BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB);\r\n img.createGraphics().drawImage(ImageIO.read(vImageFile).getScaledInstance(100, 100, Image.SCALE_SMOOTH),0,0,null);\r\n ImageIO.write(img, \"jpg\", new File(sImagePath+fileName+\"_thumb.jpg\"));\r\n\r\n }\r\n \r\n }\r\n } catch (Exception e) {\r\n throw new ServletException(\"Cannot parse multipart request.\", e);\r\n }\r\n maxIncidentID = insertIncidentMsg(msg_title,msg_description,time,latLong,imagePaths);\r\n processRequest(request, response);\r\n\r\n }", "protected void processRequest(HttpServletRequest req, HttpServletResponse resp)\n throws ServletException, IOException {\n resp.setContentType(\"text/html\");\n\n // This PrintWriter allows us to write data to the HTTP \n // response body that is going to be sent to the client.\n PrintWriter sendToClient = resp.getWriter();\n \n // UI form\n sendToClient.write(\n \"<br><form name='formvideo' method='POST' target='_self'>\" +\n \"<fieldset><legend>Test Data</legend>\" +\n \"<table><tr>\" +\n \"<td><label for='name'>Name:&nbsp;</label></td>\" +\n \"<td><input type='text' name='name' id='name' size='64' maxlength='64' /></td>\" +\n \"</tr><tr>\" +\n \"<td><label for='school'>School:&nbsp;</label></td>\" +\n \"<td><input type='text' name='school' id='school' size='64' maxlength='256' /></td>\" +\n \"</tr><tr>\" +\n \"<td><label for='major'>Major:&nbsp;</label></td>\" +\n \"<td><input type='text' name='major' id='major' size='64' maxlength='256' /></td>\" +\n \"</tr><tr> \"+\n \n \"<td><label for='year'>Year of Admission:&nbsp;</label></td>\" +\n \"<td><input type='text' name='year' id='year' size='16' maxlength='256' /></td>\" +\n \n \"</tr><tr>\" +\n \n \"<td style='text-align: right;' colspan=2><input type='submit' value='Add' /></td>\" +\n \"</tr></table></fieldset></form></br>\" );\n \n // Loop through all of the stored videos and print them out\n // for the client to see.\n for (Student v : this.students) {\n \n // For each video, write its name and URL into the HTTP\n // response body\n sendToClient.write(\"<b>\"+v.getName() +\"</b>\"+ \" : \" + v.getSchool() +\"--\"+v.getMajor()+ \" (<i>\" + v.getYear() + \" </i>) at \"+v.getIP() +\"<br />\" );\n }\n sendToClient.write(\"<font size=\\\"4\\\" > <i> This application is created by Meng Yang at UESTC on 2014-10-05.</i></font>\");\n sendToClient.write(\"</body></html>\");\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\nprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n}", "@RequestMapping(\"/fileUpload2\")\n public ModelAndView fileUpload2(@RequestParam(\"file\") CommonsMultipartFile file, HttpServletRequest request) throws IOException {\n\n String realPath = \"/Users/leipu/IdeaProjects/ssm_test/src/main/webapp/fileUpload/\";\n // System.out.println(\"contextPath\"+request.getSession().getServletContext().getRealPath(\"/fileUpload\")+\"111111\");\n\n // System.out.println(\"ServletPath\"+request.getServletPath()+\"2222222\");\n\n // System.out.println(request.getCharacterEncoding()+\"33333\");\n\n String oldName = file.getOriginalFilename();\n\n // System.out.println(\"oldname\"+oldName);\n String newName = UUID.randomUUID().toString() + oldName.substring(oldName.lastIndexOf(\".\"));\n//\n//\n File dest = new File(realPath+File.separator+newName );\n//\n file.transferTo(dest);\n\n\n mv.setViewName(\"index\");\n\n mv.addObject(\"upload\",\"上传\");\n\n return mv;\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException{\n response.setContentType(\"text/html;charset=UTF-8\");\n\n HttpSession session = request.getSession(true);\n WebUser user = (WebUser) session.getAttribute(\"loggedInUser\");\n String capacity = request.getParameter(\"capacity\");\n int wsCapacity = Integer.parseInt(capacity);\n String workshopId = request.getParameter(\"workshopId\");\n int wsId = Integer.parseInt(workshopId);\n String token = user.getToken();\n int staffId = user.getStaffId();\n SettingDAO sDAO = new SettingDAO();\n String isSuccess = sDAO.editServiceCapacity(staffId, token, wsId, wsCapacity);\n\n if (isSuccess.length() == 0) {\n session.setAttribute(\"success\", \"Service Capacity Updated!\");\n response.sendRedirect(\"Settings.jsp\");\n } else {\n session.setAttribute(\"fail\", isSuccess);\n response.sendRedirect(\"Settings.jsp\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n\r\n String empImgPath = request.getSession(false).getAttribute(\"empImgPath\").toString();\r\n InputStream inputStream = null;\r\n Employee employee = new Employee();\r\n\r\n String process = request.getParameter(\"action\");\r\n String id = request.getParameter(\"id\");\r\n String password = null;\r\n String oldPassword = null;\r\n String oldAvatar = null;\r\n String avatar = null;\r\n\r\n try {\r\n if (\"update_employee\".equals(process)) {\r\n\r\n String username = request.getParameter(\"username\");\r\n String nic = request.getParameter(\"nic\");\r\n String first_name = request.getParameter(\"first_name\");\r\n String last_name = request.getParameter(\"last_name\");\r\n String gender = request.getParameter(\"gender\");\r\n String address_line_01 = request.getParameter(\"address_line_01\");\r\n String address_line_02 = request.getParameter(\"address_line_02\");\r\n String city = request.getParameter(\"city\");\r\n String zip = request.getParameter(\"zip\");\r\n String country = request.getParameter(\"country\");\r\n String contact_number = request.getParameter(\"contact_number\");\r\n String department = request.getParameter(\"department\");\r\n String privilege_mode = request.getParameter(\"privilege_mode\");\r\n String newPassword = request.getParameter(\"password\");\r\n \r\n ResultSet res1 = Employee.readEmployeeProfile(username);\r\n while (res1.next()) {\r\n oldPassword = res1.getString(\"password\");\r\n oldAvatar = res1.getString(\"avatar\");\r\n }\r\n\r\n // obtains the upload file part in this multipart request\r\n Part filePart = request.getPart(\"avatar\");\r\n\r\n if (filePart.getSubmittedFileName() != \"\") {\r\n\r\n // obtains input stream of the upload file\r\n inputStream = filePart.getInputStream();\r\n\r\n // Change the output path accordingly\r\n OutputStream output = new FileOutputStream(empImgPath+id+\".png\");\r\n byte[] buffer = new byte[1024];\r\n while (inputStream.read(buffer) > 0) {\r\n output.write(buffer);\r\n }\r\n \r\n avatar = \"../User/Images/\" + id + \".png\";\r\n\r\n } else {\r\n avatar = oldAvatar;\r\n }\r\n\r\n // If the password is null, old password will be new password\r\n if (\"\".equals(newPassword)) {\r\n password = oldPassword;\r\n } else {\r\n HashPassword hashPassword = new HashPassword(newPassword);\r\n password = hashPassword.generatePassword();\r\n }\r\n\r\n Integer updateEmployee = employee.updateEmployee(id, username, nic, first_name, last_name, gender, address_line_01, address_line_02, city, zip, country, contact_number, avatar, department, privilege_mode, password);\r\n\r\n if (updateEmployee > 0) {\r\n\r\n ResultSet res = Employee.readEmployeeProfile(username);\r\n while (res.next()) {\r\n\r\n // Read table fields and set to session variables\r\n request.getSession().setAttribute(\"p_id\", res.getString(\"id\"));\r\n request.getSession().setAttribute(\"p_username\", res.getString(\"username\"));\r\n request.getSession().setAttribute(\"p_nic\", res.getString(\"nic\"));\r\n request.getSession().setAttribute(\"p_first_name\", res.getString(\"first_name\"));\r\n request.getSession().setAttribute(\"p_last_name\", res.getString(\"last_name\"));\r\n request.getSession().setAttribute(\"p_id\", res.getString(\"id\"));\r\n request.getSession().setAttribute(\"p_address_line_1\", res.getString(\"address_line_1\"));\r\n request.getSession().setAttribute(\"p_address_line_2\", res.getString(\"address_line_2\"));\r\n request.getSession().setAttribute(\"p_city\", res.getString(\"city\"));\r\n request.getSession().setAttribute(\"p_zip\", res.getString(\"zip\"));\r\n request.getSession().setAttribute(\"p_country\", res.getString(\"country\"));\r\n request.getSession().setAttribute(\"p_contact_number\", res.getString(\"contact_number\"));\r\n request.getSession().setAttribute(\"p_avatar\", res.getString(\"avatar\"));\r\n request.getSession().setAttribute(\"p_gender\", res.getString(\"gender\"));\r\n request.getSession().setAttribute(\"p_department\", res.getString(\"department\"));\r\n request.getSession().setAttribute(\"p_privilege_mode\", res.getString(\"privilege_mode\"));\r\n\r\n }\r\n\r\n // Clearing cache to avoid old avatar shown as the new avatar\r\n response.setHeader(\"Cache-Control\", \"no-cache, no-store, must-revalidate\"); // HTTP 1.1.\r\n response.setHeader(\"Pragma\", \"no-cache\"); // HTTP 1.0.\r\n response.setDateHeader(\"Expires\", 0); // Proxies.\r\n request.getSession().setAttribute(\"message\", \"Profile successfully updated\");\r\n response.sendRedirect(\"Dashboard\");\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n out.print(e);\r\n }\r\n\r\n }\r\n }", "@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\tMap<String, String[]> paramMap = super.getParameterMap();\n\t Set<String> keySet = paramMap.keySet();\n\t for (Iterator<String> iterator = keySet.iterator(); iterator.hasNext();) {\n\t String key = (String) iterator.next();\n\t String[] str = paramMap.get(key);\n\t\t\t\tfor(int i=0; i<str.length; i++) {\n\t\t\t\t\tstr[i] = encodeXSS(str[i]);\n\t//这里可以对页面传入的所有值进行过滤了,你想怎么处理就怎么处理。比如对出入的值进行html危险字符过滤\n\t }\n\t }\n\t return paramMap ;\n\t}", "public void setProperties(HttpServletRequest request) throws IOException, ServletException {\n\t\tPart colorPart = request.getPart(Uploader.COLOR_DEPTH);\n\t\tPart exposurePart = request.getPart(Uploader.EXPOSURE);\n\t\tPart charsetPart = request.getPart(Uploader.CHARSET);\n\t\tPart pixelSizePart = request.getPart(Uploader.PIXEL_SIZE);\n\n\t\tsetColorDepth(getValue(colorPart));\n\t\tsetLowExposure(getValue(exposurePart));\n\t\tsetCharset(getValue(charsetPart));\n\t\tsetPixelSize(getValue(pixelSizePart));\n\t}", "public void init( ){\n\t filePath = \n\t getServletContext().getInitParameter(\"file-upload\"); \n\t }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n String url = ERROR;\r\n boolean valid = true;\r\n try {\r\n\r\n boolean isMultiPart = ServletFileUpload.isMultipartContent(request);\r\n if (!isMultiPart) {\r\n url = INVALID;\r\n } else {\r\n FileItemFactory factory = new DiskFileItemFactory();\r\n ServletFileUpload upload = new ServletFileUpload(factory);\r\n List items = null;\r\n try {\r\n items = upload.parseRequest(request);\r\n } catch (FileUploadException e) {\r\n LOGGER.error(\"Error at CreateProductController: \" + e.toString());\r\n }\r\n Iterator iter = items.iterator();\r\n Hashtable params = new Hashtable();\r\n String fileName = null;\r\n while (iter.hasNext()) {\r\n FileItem item = (FileItem) iter.next();\r\n if (item.isFormField()) {\r\n params.put(item.getFieldName(), item.getString());\r\n } else {\r\n try {\r\n String itemName = item.getName();\r\n fileName = itemName.substring(itemName.lastIndexOf(\"\\\\\") + 1);\r\n String RealPath = getServletContext().getRealPath(\"/\") + \"images\\\\\" + fileName;\r\n File saveFile = new File(RealPath);\r\n File destFile = new File(RealPath);\r\n if (destFile.exists()) {\r\n destFile.delete();\r\n item.write(saveFile);\r\n } else {\r\n item.write(saveFile);\r\n }\r\n } catch (Exception e) {\r\n LOGGER.error(\"Error at CreateProductController: \" + e.toString());\r\n }\r\n }\r\n }\r\n String name = (String) params.get(\"txtName\");\r\n String priceString = (String) params.get(\"txtPrice\");\r\n String description = (String) params.get(\"txtDescription\");\r\n String quantityString = (String) params.get(\"txtQuantity\");\r\n String createDateString = (String) params.get(\"txtCreateDate\");\r\n String expireDateString = (String) params.get(\"txtExpireDate\");\r\n String categoryID = (String) params.get(\"txtCategoryID\");\r\n String status = \"active\";\r\n ProductError error = new ProductError();\r\n ProductDAO dao = new ProductDAO();\r\n HttpSession session = request.getSession();\r\n UserDTO user = (UserDTO) session.getAttribute(\"USER_INFO\");\r\n double price = 0;\r\n int quantity = 0;\r\n if (name.isEmpty()) {\r\n valid = false;\r\n error.setName(\"Name can't be empty\");\r\n }\r\n if (priceString.isEmpty()) {\r\n valid = false;\r\n error.setPrice(\"Price can't be empty\");\r\n }\r\n if (description.isEmpty()) {\r\n valid = false;\r\n error.setDescription(\"Description can't be empty\");\r\n }\r\n if (quantityString.isEmpty()) {\r\n valid = false;\r\n error.setQuantity(\"Quantity can't be empty\");\r\n }\r\n\r\n if (createDateString.isEmpty()) {\r\n valid = false;\r\n error.setCreateDate(\"CreateDate can't be empty\");\r\n }\r\n if (expireDateString.isEmpty()) {\r\n valid = false;\r\n error.setExpireDate(\"ExpireDate can't be empty\");\r\n }\r\n\r\n if (valid == true) {\r\n price = Double.parseDouble(priceString);\r\n quantity = Integer.parseInt(quantityString);\r\n\r\n if (price < 0) {\r\n valid = false;\r\n error.setPrice(\"Price can't be negative\");\r\n }\r\n\r\n if (price > 500) {\r\n valid = false;\r\n error.setPrice(\"Price can't be Over 500\");\r\n }\r\n if (quantity < 0) {\r\n valid = false;\r\n error.setQuantity(\"Quantity can't be negative\");\r\n }\r\n\r\n if (quantity == 0) {\r\n status = \"inactive\";\r\n }\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n Date creDate = formatter.parse(createDateString);\r\n Date exDate = formatter.parse(expireDateString);\r\n Date today = new Date();\r\n\r\n if (creDate.after(today)) {\r\n status = \"inactive\";\r\n }\r\n\r\n if (exDate.equals(today) || exDate.before(today)) {\r\n status = \"inactive\";\r\n }\r\n\r\n if (creDate.after(exDate) || exDate.before(creDate)) {\r\n valid = false;\r\n error.setCreateDate(\"Create date can't be over expire date\");\r\n error.setExpireDate(\"Expire date can't be before create date\");\r\n }\r\n\r\n if (valid == true) {\r\n String uniqueID = null;\r\n do {\r\n uniqueID = UUID.randomUUID().toString();\r\n } while (dao.checkProductIDExist(uniqueID));\r\n ProductDTO dto = new ProductDTO(uniqueID, name, fileName, categoryID, price, quantity, description, createDateString, expireDateString, \"\", status);\r\n if (dao.insertNewProduct(dto)) {\r\n String logID = null;\r\n do {\r\n logID = UUID.randomUUID().toString();\r\n } while (dao.checkLogIDExist(uniqueID));\r\n LogDTO log = new LogDTO(logID, user.getUserID(), uniqueID, \"\");\r\n\r\n if (dao.insertNewLog(log)) {\r\n url = SUCCESS;\r\n request.setAttribute(\"NOTE\", \"A new product has been created\");\r\n } else {\r\n url = INVALID;\r\n request.setAttribute(\"PRODUCT_INFO\", dto);\r\n request.setAttribute(\"NOTE\", \"Unable to create product\");\r\n }\r\n\r\n } else {\r\n url = INVALID;\r\n request.setAttribute(\"PRODUCT_INFO\", dto);\r\n request.setAttribute(\"NOTE\", \"Unable to create product\");\r\n }\r\n } else {\r\n request.setAttribute(\"ERROR_PRODUCT\", error);\r\n url = INVALID;\r\n }\r\n\r\n } else {\r\n request.setAttribute(\"ERROR_PRODUCT\", error);\r\n url = INVALID;\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n LOGGER.error(\"Error at CreateProductController: \" + e.toString());\r\n } finally {\r\n request.getRequestDispatcher(url).forward(request, response);\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n HttpSession session=request.getSession();\n response.setHeader(\"Cache-Control\",\"no-store\"); //HTTP 1.1\n response.setHeader(\"Pragma\",\"no-cache\"); //HTTP 1.0\n response.setDateHeader(\"Expires\", 0);\n response.setDateHeader(\"Last-Modified\", 0); \n try {\n boolean isMultipart = ServletFileUpload.isMultipartContent( request );\n if ( !isMultipart )\n {\n String modo=request.getParameter(\"modo\"); \n if(modo.equals(\"abrirPdf\")) {\n //if(objetoSesion.isSuperAdministrador() || objetoSesion.getPerfilSelected().getCoreDerechoSistemaList().toString().indexOf(\"D_VER_DEPOSITO\")>-1){ \n CoreDocumento documento=documentoEJBLocal.find(Integer.parseInt(request.getParameter(\"coreDocumentoId\")));\n response.setContentType(\"application/pdf\"); \n response.setHeader(\"Content-Disposition\",\"attachment; filename=\\\"\" + documento.getNombreArchivo() + \"\\\"\"); \n response.getOutputStream().write(documento.getDocumento());\n //}else\n // response.getWriter().println(\"{\\\"success\\\":false,\\\"msg\\\":\\\"Usted no cuenta con los permisos necesarios.\\\"}\");\n }\n }else{ \n ServletFileUpload upload = new ServletFileUpload(); \n try\n {\n byte[] bytes=null;\n String name=null;\n Integer documentoId=null;\n FileItemIterator iter = upload.getItemIterator( request );\n while ( iter.hasNext() )\n {\n FileItemStream item = iter.next();\n String fieldName = item.getFieldName();\n if ( fieldName.equals( \"PDFFile\" ) )\n {\n name=item.getName();\n String[] aname=name.split(\"Id=\");\n bytes = IOUtils.toByteArray( item.openStream() ); \n documentoId=Integer.parseInt(aname[1]);\n }else if(fieldName.equals( \"coreDocumentoId\" ))\n documentoId=Integer.parseInt(Streams.asString(item.openStream()));\n }\n if(documentoId!=null){\n CoreDocumento documento=documentoEJBLocal.find(documentoId);\n documento.setDocumento(bytes);\n response.getWriter().print(documentoEJBLocal.persistir(documento,\"editar\"));\n }\n }\n catch ( IOException ex )\n {\n throw ex;\n }\n catch ( Exception ex )\n {\n throw new ServletException( ex );\n }\n\n }\n }catch (Exception e) {\n if(request.getParameter(\"modo\")==null || request.getParameter(\"modo\").equals(\"listaDocumentos\"))\n response.getWriter().print(\"{\\\"data\\\":[],\\\"total\\\":0}\"); \n else\n response.getWriter().print(\"{\\\"success\\\":false,\\\"msg\\\":\\\"Error al realizar la operacion.\\\"}\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try{\n request.setCharacterEncoding(\"UTF-8\");//リクエストパラメータの文字コードをUTF-8に変更\n \n HttpSession hs = request.getSession();\n \n //アクセスルートチェック\n String accesschk = request.getParameter(\"ac\");\n if(accesschk ==null || (Integer)hs.getAttribute(\"ac\")!=Integer.parseInt(accesschk)){\n throw new Exception(\"不正なアクセスです\");\n }\n\n //フォームからの入力を取得して、JavaBeansに格納\n UserData ud = new UserData();\n\n ud.setName(request.getParameter(\"name\"));\n ud.setPassword(request.getParameter(\"password\"));\n ud.setMail(request.getParameter(\"mail\"));\n ud.setPrefecture(request.getParameter(\"prefecture\"));\n ud.setCity(request.getParameter(\"city\"));\n ud.setStreetNumber(request.getParameter(\"street_number\"));\n ud.setBuilding(request.getParameter(\"building\"));\n \n //記入欄に空欄があれば変更画面に戻す\n if(!(ud.chkproperties().isEmpty())){\n request.setAttribute(\"mode1\", \"REINPUT\");\n request.getRequestDispatcher(\"/mydata/myupdate.jsp\").forward(request, response);\n }\n \n //DTOオブジェクトにマッピング。DB専用のパラメータに変換\n UserDataDTO updateData = new UserDataDTO();\n ud.UD2DTOMapping(updateData);\n\n //ログインデータの取得\n UserDataDTO login_udd = (UserDataDTO)hs.getAttribute(\"loginData\");\n\n /*\n *  元のデータ(udd)と送られてきたデータupdateData\n * に変更内容があるか判定\n */\n ArrayList<String> userList = login_udd.userList(updateData);\n\n /* \n *  userListが空であれば(updateDataが元のデータと変化していなかったら)\n * 変更画面に戻す\n */\n if(userList.isEmpty()){\n request.setAttribute(\"mode2\", \"REINPUT\");\n request.getRequestDispatcher(\"/mydata/myupdate.jsp\").forward(request, response);\n }\n \n // uddのuserIDを取得し、updateDataにセット\n updateData.setUserID(login_udd.getUserID());\n\n /*\n *  データのアップデートを行う(この際、アップデータ箇所の情報が入った\n * userListと、アップデートする値を持ったupdateDataを、引数として\n * 渡す。\n */\n UserDataDAO.getInstance().update(userList,updateData); \n\n //念のため、アップデート後の情報を取得\n UserDataDTO updateData_src = UserDataDAO.getInstance().searchByID(updateData);\n \n //セッションの値の消去\n hs.removeAttribute(\"loginData\");\n hs.setAttribute(\"loginData\", updateData_src);\n \n //アップデート後の情報をUserDataインスタンスへ\n UserData updateData_src_ud = new UserData();\n updateData_src.DTO2UDMapping(updateData_src_ud);\n \n hs.setAttribute(\"update\", updateData_src_ud);\n request.getRequestDispatcher(\"/mydata/myupdateresult.jsp\").forward(request, response);\n \n }catch(Exception e){\n //何らかの理由で失敗したらエラーページにエラー文を渡して表示。想定は不正なアクセス\n request.setAttribute(\"error\", e.getMessage());\n request.getRequestDispatcher(\"/error.jsp\").forward(request, response);\n } \n }", "void logHTTPRequest(HttpServletRequest request, Logger logger, List parameterNamesToObfuscate);", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n PrintWriter out = null;\n JSONObject outputObject = new JSONObject();\n try {\n \n HashMap<String,String> bigItemIds = new HashMap<>();\n Iterator mIterator = bigItemIds.keySet().iterator();\n out = response.getWriter();\n // Create a factory for disk-based file items\n DiskFileItemFactory factory = new DiskFileItemFactory();\n\n // Configure a repository (to ensure a secure temp location is used)\n ServletContext servletContext = this.getServletConfig().getServletContext();\n File repository = (File) servletContext.getAttribute(\"javax.servlet.context.tempdir\");\n factory.setRepository(repository);\n\n // Create a new file upload handler\n ServletFileUpload upload = new ServletFileUpload(factory);\n // Parse the request\n List<FileItem> items = upload.parseRequest(request);\n \n final String moveId = UUID.randomUUID().toString();\n final MovesDb movesDb = new MovesDb();\n // Process the uploaded items\n Iterator<FileItem> iter = items.iterator();\n while (iter.hasNext()) {\n FileItem item = iter.next();\n\n if (item.isFormField()) {\n \n System.out.println(\"Form field\" +item.getString());\n \n bigItemIds = processFormField(new JSONObject( item.getString()), out,moveId,movesDb);\n mIterator = bigItemIds.keySet().iterator();\n System.out.println(\"ITEM ID SIZE \"+bigItemIds.size());\n \n } else {\n //processUploadedFile(item);\n System.out.print(\"Photo Field\");\n String key = (String) mIterator.next();\n File mFile = new File(bigItemIds.get(key));\n item.write(mFile);\n \n \n \n \n }\n }\n new Thread(){\n \n public void run(){\n pushMovetoMailQueue moveToMailQueue= new pushMovetoMailQueue();\n moveToMailQueue.pushMoveToMailQueue(movesDb);\n }\n }.start();\n outputObject = new JSONObject();\n try {\n outputObject.put(Constants.JSON_STATUS, Constants.JSON_SUCCESS);\n outputObject.put(Constants.JSON_MSG,Constants.JSON_GET_QUOTE);\n } catch (JSONException ex1) {\n Logger.getLogger(doSignUp.class.getName()).log(Level.SEVERE, null, ex1);\n }\n \n out.println(outputObject.toString());\n \n \n \n \n }catch(Exception ex){\n \n outputObject = new JSONObject();\n try {\n outputObject.put(Constants.JSON_STATUS, Constants.JSON_FAILURE);\n outputObject.put(Constants.JSON_MSG,Constants.JSON_EXCEPTION);\n } catch (JSONException ex1) {\n Logger.getLogger(doSignUp.class.getName()).log(Level.SEVERE, null, ex1);\n }\n \n out.println(outputObject.toString());\n Logger.getLogger(doSignUp.class.getName()).log(Level.SEVERE, null, ex);\n }finally{\n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n // recupero la session\r\n HttpSession session = request.getSession(true);\r\n //traigo los valores del JSp mostrar\r\n String accion = request.getParameter(\"ACCION\");\r\n //si quiere agregar\r\n if (\"AGREGAR\".equals(accion)) {\r\n // llamo al metodo listar\r\n List<Perfil> lista = perfilListar();\r\n //lo guardo en la sesion\r\n session.setAttribute(\"Lista_Perfil\", lista);\r\n //redirije al JSP Agregar\r\n Util.Util.dispatcher(request, response, \"/usuario/AgregarUsuario.jsp\");\r\n } else if (\"ELIMINAR\".equals(accion)) {\r\n //redirije al JSP eliminar\r\n Util.Util.dispatcher(request, response, \"/usuario/EliminarUsuario.jsp\");\r\n } else if (\"MODIFICAR\".equals(accion)) {\r\n //traigo los valores a modificar\r\n String rut = request.getParameter(\"rutmod\");\r\n String nombre = request.getParameter(\"nombremod\");\r\n String apellidoPaterno = request.getParameter(\"apPatMod\");\r\n String apellidoMaterno = request.getParameter(\"apMatMod\");\r\n String fechaNacimiento = request.getParameter(\"fecha\");\r\n String correo = request.getParameter(\"correoMod\");\r\n String password = request.getParameter(\"passwordMod\");\r\n String idPerfil = request.getParameter(\"perfilMod\");\r\n\r\n Date f = Util.Util.stringADate(fechaNacimiento);\r\n int i = Integer.parseInt(idPerfil);\r\n //creo el objeto usuario\r\n Usuario u = new Usuario(rut, nombre, apellidoPaterno, apellidoMaterno, f, correo, password, i);\r\n //lo guardo en la sesion\r\n session.setAttribute(\"Usuario\", u);\r\n //llamo al metodo listar perfiles\r\n List<Perfil> lista = perfilListar();\r\n //lo guardo en la sesion\r\n session.setAttribute(\"Lista_Perfil\", lista);\r\n Util.Util.dispatcher(request, response, \"/usuario/ModificarUsuario.jsp\");\r\n // si quiere eliminar\r\n } //si quiere volver al menu\r\n else if (\"VOLVER\".equals(accion)) {\r\n //redirije al JSP del menu\r\n\r\n String tipoUsuario = (String) session.getAttribute(\"TIPO_USUARIO\");\r\n if (\"adm\".equals(tipoUsuario)) {\r\n Util.Util.dispatcher(request, response, \"/administrador/MenuAdmin.jsp\");\r\n } else {\r\n Util.Util.dispatcher(request, response, \"/usuario/MenuUsuario.jsp\");\r\n }\r\n }\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet UsuarioServletInicial</title>\");\r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet UsuarioServletInicial at \" + request.getContextPath() + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n HttpSession session = request.getSession();\r\n\r\n boolean adminSession;\r\n try {\r\n adminSession = (Boolean) session.getAttribute(\"mainAdminSession\");\r\n } catch (Exception e) {\r\n LOGGER.log(Level.INFO, \"Main admin session is null\");\r\n LOGGER.log(Level.INFO, \"Requesting dispatch to forward to: index.jsp\");\r\n request.getRequestDispatcher(\"index.jsp\").forward(request, response);\r\n return;\r\n }\r\n\r\n if (adminSession == false) {\r\n try {\r\n adminSession = (Boolean) session.getAttribute(\"subAdminSession\");\r\n } catch (Exception e) {\r\n LOGGER.log(Level.INFO, \"Sub admin session is null\");\r\n LOGGER.log(Level.INFO, \"Requesting dispatch to forward to: index.jsp\");\r\n request.getRequestDispatcher(\"index.jsp\").forward(request, response);\r\n return;\r\n }\r\n }\r\n\r\n //Check session type\r\n LOGGER.log(Level.INFO, \"Checking session type\");\r\n if (adminSession == false) {\r\n //Admin session not established\r\n LOGGER.log(Level.INFO, \"Admin session not established hence not responding to the request\");\r\n\r\n String path = (String) session.getAttribute(\"home\");\r\n LOGGER.log(Level.INFO, \"Path is: {0}\", path);\r\n String destination = \"/WEB-INF/views\" + path + \".jsp\";\r\n try {\r\n LOGGER.log(Level.INFO, \"Dispatching request to: {0}\", destination);\r\n request.getRequestDispatcher(destination).forward(request, response);\r\n } catch (ServletException | IOException e) {\r\n LOGGER.log(Level.INFO, \"Request dispatch failed\");\r\n }\r\n\r\n } else if (adminSession == true) {\r\n //Admin session established\r\n LOGGER.log(Level.INFO, \"Admin session established hence responding to the request\");\r\n\r\n String path = request.getServletPath();\r\n String destination;\r\n Map<RatingTypeDetail, List<RatingDetails>> ratingTypeAndValuesMap = new HashMap<>();\r\n\r\n switch (path) {\r\n case \"/addRating\":\r\n\r\n //Read in details for the rating\r\n LOGGER.log(Level.INFO, \"Reading in details for the rating\");\r\n rating = new RatingDetails();\r\n rating.setActive(true);\r\n rating.setRatingType(RatingTypeDetail.getRatingType(Short.parseShort(request.getParameter(\"ratingType\"))));\r\n if (rating.getRatingType().equals(RatingTypeDetail.PERCENTAGE)) {\r\n rating.setRating(request.getParameter(\"ratingValue\") + \"%\");\r\n } else {\r\n rating.setRating(request.getParameter(\"ratingValue\"));\r\n }\r\n\r\n //Send the details to the entity manager for recording in the database\r\n LOGGER.log(Level.INFO, \"Sending the details to the entity manager for recording in the database\");\r\n try {\r\n ratingService.addRating(rating);\r\n } catch (InvalidArgumentException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Retrieve the new list of rating records from the database\r\n LOGGER.log(Level.INFO, \"Retrieving the new list of rating records from the database\");\r\n try {\r\n ratingTypeAndValuesMap = ratingService.retrieveRatings();\r\n } catch (InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Avail the ratings session\r\n LOGGER.log(Level.INFO, \"Availing the ratings in session\");\r\n session.setAttribute(\"ratingTypeAndValuesMap\", ratingTypeAndValuesMap);\r\n\r\n //Display the new list of rating records\r\n generateTableBody(ratingTypeAndValuesMap, session, response);\r\n return;\r\n\r\n case \"/editRating\":\r\n\r\n //Read in details for the rating\r\n LOGGER.log(Level.INFO, \"Reading in details for the rating\");\r\n rating = new RatingDetails();\r\n rating.setActive(true);\r\n rating.setId(Short.parseShort(request.getParameter(\"ratingId\")));\r\n rating.setRatingType(RatingTypeDetail.getRatingType(Short.parseShort(request.getParameter(\"ratingType\"))));\r\n if (rating.getRatingType().equals(RatingTypeDetail.PERCENTAGE)) {\r\n rating.setRating(request.getParameter(\"ratingValue\") + \"%\");\r\n } else {\r\n rating.setRating(request.getParameter(\"ratingValue\"));\r\n }\r\n\r\n //Send the details to the entity manager for recording in the database\r\n LOGGER.log(Level.INFO, \"Sending the details to the entity manager for record update in the database\");\r\n try {\r\n ratingService.editRating(rating);\r\n } catch (InvalidArgumentException | InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Retrieve the new list of rating records from the database\r\n LOGGER.log(Level.INFO, \"Retrieving the new list of rating records from the database\");\r\n try {\r\n ratingTypeAndValuesMap = ratingService.retrieveRatings();\r\n } catch (InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Display the new list of rating records\r\n generateTableBody(ratingTypeAndValuesMap, session, response);\r\n return;\r\n\r\n case \"/removeRating\":\r\n\r\n //Send the details to the entity manager for record removal from the database\r\n LOGGER.log(Level.INFO, \"Sending the details to the entity manager for record removal from the database\");\r\n try {\r\n ratingService.removeRating(Short.parseShort(request.getParameter(\"ratingId\")));\r\n } catch (InvalidArgumentException | InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Retrieve the new list of rating records from the database\r\n LOGGER.log(Level.INFO, \"Retrieving the new list of rating records from the database\");\r\n try {\r\n ratingTypeAndValuesMap = ratingService.retrieveRatings();\r\n } catch (InvalidStateException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(e.getCode()));\r\n LOGGER.log(Level.INFO, bundle.getString(e.getCode()));\r\n }\r\n\r\n //Display the new list of rating records\r\n generateTableBody(ratingTypeAndValuesMap, session, response);\r\n\r\n return;\r\n }\r\n destination = \"WEB-INF/views\" + path + \".jsp\";\r\n try {\r\n LOGGER.log(Level.INFO, \"Dispatching request to: {0}\", destination);\r\n request.getRequestDispatcher(destination).forward(request, response);\r\n } catch (ServletException | IOException e) {\r\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n response.getWriter().write(bundle.getString(\"redirection_failed\"));\r\n LOGGER.log(Level.INFO, bundle.getString(\"redirection_failed\"), e);\r\n }\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n String url=PREPARE_SHOP_PAGE_CONTROLLER;\r\n HttpSession session=request.getSession();\r\n try {\r\n AccountDTO account=(AccountDTO)session.getAttribute(\"ACCOUNT\");\r\n if(account!=null && account.isAdmin()){\r\n boolean isMultipart=ServletFileUpload.isMultipartContent(request);\r\n if(isMultipart){\r\n List items=(List)request.getAttribute(\"listFileItem\");\r\n Iterator iter=items.iterator();\r\n Map<String,String> params=new HashMap<String, String>();\r\n String image=\"\";\r\n while(iter.hasNext()){\r\n FileItem item=(FileItem)iter.next();\r\n if(item.isFormField()){\r\n params.put(item.getFieldName(), item.getString());\r\n }else{\r\n try{\r\n byte[] data=item.get();\r\n image=Base64.encodeBase64String(data);\r\n } catch (Exception ex) {\r\n log(\"ERROR at CreateProductServlet: \"+ex.getMessage());\r\n }\r\n \r\n }\r\n }\r\n String proID=params.get(\"proID\");\r\n String cateID=params.get(\"cateID\");\r\n String proName=params.get(\"proName\");\r\n int quantity=Integer.parseInt(params.get(\"quantity\"));\r\n String description=params.get(\"description\");\r\n int price=Integer.parseInt(params.get(\"price\")); \r\n boolean status=params.get(\"status\").equals(\"1\");\r\n ProductDAO proDAO=new ProductDAO();\r\n boolean result;\r\n if(image.isEmpty()){\r\n result =proDAO.updateProduct(proID, cateID, proName, quantity, description, price,status);\r\n }else{\r\n result =proDAO.updateProduct(proID, cateID, proName, quantity, image, description, price,status);\r\n }\r\n \r\n if(result){ \r\n Date currentTime=new Date();\r\n Timestamp updateDate=new Timestamp(currentTime.getTime());\r\n String activity=\"Update_Product: \"+proID;\r\n String userID=account.getUserID();\r\n HistoryDAO historyDAO=new HistoryDAO();\r\n String id=\"\"+historyDAO.countTotal()+1;\r\n historyDAO.addToHistory(id, userID, updateDate, activity); \r\n url=PREPARE_PRODUCT_PAGE_CONTROLLER.concat(\"?proID=\"+proID);\r\n }\r\n }\r\n }\r\n \r\n } catch (NamingException ex) {\r\n Logger.getLogger(UpdateProductServlet.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(UpdateProductServlet.class.getName()).log(Level.SEVERE, null, ex);\r\n }finally{\r\n response.sendRedirect(url);\r\n out.close();\r\n }\r\n }", "protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response) throws ServletException, IOException {\n \trequest.setCharacterEncoding(\"UTF-8\");\r\n String name = request.getParameter(\"name\");\r\n float price=Float.parseFloat(request.getParameter(\"price\"));\r\n String description=request.getParameter(\"description\");\r\n System.out.println(\"name\"+name);\r\n System.out.println(\"price\"+price);\r\n System.out.println(\"description:\"+description);\r\n InputStream inputStream = null; // input stream of the upload file\r\n \r\n // obtains the upload file part in this multipart request\r\n Part filePart = request.getPart(\"photo\");\r\n if (filePart != null) {\r\n \tItem item=new Item();\r\n // prints out some information for debugging\r\n System.out.println(filePart.getSize());//得到文件大小\r\n System.out.println(filePart.getContentType());//得到文件类型(这里上传的是图片)\r\n System.out.println(filePart.getSubmittedFileName());//得到文件名字\r\n String filename=filePart.getSubmittedFileName();\r\n // obtains input stream of the upload file\r\n inputStream = filePart.getInputStream();\r\n OutputStream outputStream = null;\r\n try{\r\n \trequest.setAttribute(\"Message\", \"成功\");\r\n \t//上传图片的保存路径\r\n String filepath=\"E:\\\\workspace\\\\SchoolTrade\\\\WebContent\\\\uploaddata\\\\\"+filename;\r\n File file=new File(filepath);\r\n \toutputStream=new FileOutputStream(file);\r\n byte[] bytes = new byte[1024];\r\n int num = 0;\r\n while ((num = inputStream.read(bytes)) != -1) {\r\n outputStream.write(bytes, 0, num);\r\n outputStream.flush();\r\n }\r\n HttpSession session=request.getSession();\r\n User user=(User)session.getAttribute(\"user\");\r\n item.setOwnerName(user.getName());\r\n item.setPic(filePart.getSubmittedFileName());\r\n item.setName(name);\r\n item.setDescription(description);\r\n item.setPrice(price);\r\n \r\n }catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \te.printStackTrace();\r\n \trequest.setAttribute(\"Message\", \"失败\");\r\n \tSystem.out.println(\"复制文件出现错误\");\r\n \tinputStream=null;\r\n \toutputStream=null;\r\n getServletContext().getRequestDispatcher(\"/failMessage.jsp\").forward(request, response);\r\n\t\t\t}finally {\r\n\t\t\t\tif(inputStream!=null){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tinputStream.close();\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\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\tif(outputStream!=null){\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\toutputStream.close();\r\n\t\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\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\tItemService itemService=new ItemServiceImplement();\r\n\t\t\t\titemService.uploadItem(item);\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n }\r\n getServletContext().getRequestDispatcher(\"/successMessage.jsp\").forward(request, response);\r\n }", "public Map<String, String[]> getParaMap() {\n\t\treturn request.getParameterMap();\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException, FileUploadException, Exception {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n /* TODO output your page here. You may use following sample code. */\r\n \r\n \r\n String coso = request.getParameter(\"Productos\");\r\n out.println(coso);\r\n /*sacando los FileItem del ServletFileUpload en una lista */\r\n \r\n \r\n \r\n// DataFecha fechanac = new DataFecha();\r\n// conectar con=new conectar();\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n// String nick = request.getParameter(\"Nick\");\r\n// String nombre = request.getParameter(\"Nombre\");\r\n// String apellido = request.getParameter(\"Apellido\");\r\n// String email = request.getParameter(\"Email\");\r\n \r\n \r\n// String contraseña = request.getParameter(\"Contrasena\");\r\n// String verificar = request.getParameter(\"Verificar\");\r\n// String dia = request.getParameter(\"day\");\r\n// String mes = request.getParameter(\"month\");\r\n// String año = request.getParameter(\"year\");\r\n// String imagen = request.getParameter(\"file\");\r\n// String tipo = request.getParameter(\"tipo\");\r\n// String lp = request.getParameter(\"Sitio Web\");\r\n// String nc = request.getParameter(\"Nombre Compania\");\r\n \r\n \r\n \r\n } finally {\r\n out.close();\r\n }\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n int geekid = Integer.parseInt(request.getParameter(\"geekid\"));\n if (ServletFileUpload.isMultipartContent(request)) {\n try {\n\n List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);\n\n for (FileItem item : multiparts) {\n\n if (!item.isFormField()) {\n item.write(new File(UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\"));\n\n }\n \n String fileName = UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\";\n\n }\n\n //File uploaded successfully\n request.setAttribute(\"message\", \"File Uploaded Successfully\");\n\n } catch (Exception ex) {\n\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n\n }\n\n } else {\n\n request.setAttribute(\"message\",\n \"Sorry this Servlet only handles file upload request\");\n\n }\n\n request.getRequestDispatcher(\"/result.jsp\").forward(request, response);\n\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n PrintWriter writer = null;\n InputStream is = null;\n FileOutputStream fos = null;\n\n try {\n writer = response.getWriter();\n } catch (IOException ex) {\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n }\n\n boolean isMultiPart = ServletFileUpload.isMultipartContent(request);\n\n if (isMultiPart) {\n log(\"Content-Type: \" + request.getContentType());\n // Create a factory for disk-based file items\n DiskFileItemFactory diskFileItemFactory = new DiskFileItemFactory();\n\n /*\n * Set the file size limit in bytes. This should be set as an\n * initialization parameter\n */\n diskFileItemFactory.setSizeThreshold(1024 * 1024 * 10); //10MB.\n\n\n // Create a new file upload handler\n ServletFileUpload upload = new ServletFileUpload(diskFileItemFactory);\n\n List items = null;\n\n try {\n items = upload.parseRequest(request);\n } catch (FileUploadException ex) {\n log(\"Could not parse request\", ex);\n }\n\n ListIterator li = items.listIterator();\n\n while (li.hasNext()) {\n FileItem fileItem = (FileItem) li.next();\n if (fileItem.isFormField()) {\n if (debug) {\n processFormField(fileItem);\n }\n } else {\n writer.print(processUploadedFile(fileItem));\n }\n }\n }\n\n if (\"application/octet-stream\".equals(request.getContentType())) {\n log(\"Content-Type: \" + request.getContentType());\n String filename = request.getHeader(\"X-File-Name\");\n\n try {\n is = request.getInputStream();\n fos = new FileOutputStream(new File(realPath + filename));\n IOUtils.copy(is, fos);\n response.setStatus(HttpServletResponse.SC_OK);\n writer.print(\"{success: true}\");\n } catch (FileNotFoundException ex) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n writer.print(\"{success: false}\");\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n } catch (IOException ex) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n writer.print(\"{success: false}\");\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n } finally {\n try {\n fos.close();\n is.close();\n } catch (IOException ignored) {\n }\n }\n\n writer.flush();\n writer.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String url = ERROR;\n String msg;\n try {\n String bookID = request.getParameter(\"txtBookID\");\n String title = request.getParameter(\"txtTitle\");\n String author = request.getParameter(\"txtAuthor\");\n String catID = request.getParameter(\"cbCat\");\n String des = request.getParameter(\"txtDes\");\n float price = Float.parseFloat(request.getParameter(\"txtPrice\"));\n int quantity = Integer.parseInt(request.getParameter(\"txtQuantity\"));\n Date importDate = new Date();\n String status = \"Active\";\n String appPath = request.getServletContext().getRealPath(\"/\");\n String fullSavePath;\n if (appPath.endsWith(\"\\\\\")) {\n fullSavePath = appPath + SAVE_DIRECTORY;\n } else {\n fullSavePath = appPath + \"\\\\\" + SAVE_DIRECTORY;\n }\n File fileSaveDir = new File(fullSavePath);\n if (!fileSaveDir.exists()) {\n fileSaveDir.mkdir();\n }\n String image = \"\";\n for (Part part : request.getParts()) {\n String fileName = MyUtils.extractFileName(part);\n if (fileName != null && fileName.length() > 0) {\n String extension = fileName.substring(fileName.lastIndexOf(\".\"));\n String filePath = fullSavePath + \"\\\\\" + bookID + extension;\n image = bookID + extension;\n part.write(filePath);\n }\n }\n BookDTO dto = new BookDTO(bookID, title, catID, author, des, image, status, price, quantity, importDate);\n BookDAO dao = new BookDAO();\n if (dao.update(dto)) {\n msg = \"Update success\";\n url = SUCCESS;\n } else {\n msg = \"Update failed\";\n url = FAILED;\n }\n request.setAttribute(\"MSG\", msg);\n } catch (SQLException | NamingException e) {\n log(\"ERROR at UpdateController: \" + e.getMessage());\n msg = \"ERROR at UpdateController\";\n request.setAttribute(\"ERROR\", msg);\n } finally {\n request.getRequestDispatcher(url).forward(request, response);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String name = (String)request.getAttribute(\"name\");\n if(name==null){\n RequestDispatcher rd1 = request.getRequestDispatcher(\"/Login.jsp\");\n rd1.forward(request, response);\n }\n List<Notes> notes;\n try{\n ArrayOfNotes notesobj = getNotes(name);\n notes = notesobj.getNotes(); \n }\n catch(Exception e){\n notes=null;\n }\n \n \n request.setAttribute(\"notes\", notes);\n request.setAttribute(\"name\", name);\n RequestDispatcher rd = request.getRequestDispatcher(\"/Home.jsp\");\n rd.forward(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public Map getParameterMap() {\n return params;\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n //文字コードをUTF-8に変更\n request.setCharacterEncoding(\"UTF-8\");\n \n //フォームから送られてきた入力情報をStringに格納\n String name = request.getParameter(\"name\");\n String password = request.getParameter(\"password\");\n \n //<未入力項目があった場合の処理>\n //未入力項目名が格納できる配列を作成\n //if(フォームに未入力があった場合)\n //配列にその項目名を追加\n //if(配列の要素数が0でない場合) ※フォームに未入力があった場合\n //未入力項目名の情報をリクエストパラメータに格納\n //フォームから送られてきた入力情報を配列を使用してセッションに格納\n //loginresultfalse.jspに遷移 \n ArrayList<String> nullLogin = new ArrayList<String>();\n if(name.equals(\"\")) { nullLogin.add(\"ユーザー名\"); }\n if(password.equals(\"\")){ nullLogin.add(\"パスワード\"); }\n if(nullLogin.size() != 0){\n request.setAttribute(\"nullLogin\", nullLogin);\n HashMap<String, String> loginNull = new HashMap<String, String>();\n loginNull.put(\"name\", name);\n loginNull.put(\"password\", password);\n HttpSession session = request.getSession();\n session.setAttribute(\"loginNull\", loginNull);\n request.getRequestDispatcher(\"/loginresultfalse.jsp\").forward(request, response);\n }else{\n \n //else(配列の要素が0である場合) ※フォームに未入力がない場合\n //<DB検索でデータが該当するかどうかの処理>\n //フォーム入力情報をUserDataに格納\n //DB検索を実行\n //結果をbooleanで受け取る\n //if(trueの場合)   ※データが該当した場合\n //ログインに成功情報をログイン状態を管理できるセッション(\"loginState\")に書き込み\n //各ページのログインボタンから遷移してきているのでページに関するセッション情報(\"pageCheck\")を取得\n //ページ遷移した後の「ようこそ○○さん」の表示のためにセッション(\"userSearch\")にUserData(loginState)の情報を格納\n //取得したページ情報をもとに直前まで閲覧していたページに遷移\n //else(falseの場合) ※データが該当しなかった場合\n //フォーム入力情報(\"loginNull\")を更新\n //リクエストパラメータにログイン失敗した旨を格納\n //loginresultfalse.jspに遷移\n try{\n UserData loginState = new UserData();\n loginState.setName(name);\n loginState.setPassword(password);\n \n boolean searchResult = UserDataDAO.getInstance().search(loginState);\n HttpSession session = request.getSession();\n \n if(searchResult){\n session.setAttribute(\"loginState\", \"connected\");\n String pageCheck = (String)session.getAttribute(\"pageCheck\");\n session.setAttribute(\"userSearch\", loginState);\n request.getRequestDispatcher(pageCheck).forward(request, response); \n }else{\n HashMap<String, String> loginNull = new HashMap<String, String>();\n loginNull.put(\"name\", name);\n loginNull.put(\"password\", password);\n session.setAttribute(\"loginNull\", loginNull);\n request.setAttribute(\"falseLogin\", \"該当するユーザー情報はありませんでした。\");\n request.getRequestDispatcher(\"/loginresultfalse.jsp\").forward(request, response); \n } \n }catch(Exception e){\n //何らかの理由で失敗したらエラーページにエラー文を渡して表示。想定は不正なアクセスとDBエラー\n request.setAttribute(\"error\", e.getMessage());\n request.getRequestDispatcher(\"/error.jsp\").forward(request, response);\n }\n }\n }", "public Enumeration<String> getParameterNames() {\n if ( isMultipart() ) {\n return this.multipart.getParameterNames();\n }\n else {\n return super.getParameterNames();\n }\n }", "private Map<String, String> getParams(final HttpServletRequest request) {\n final Map<String, String> params = new HashMap<>();\n for (final Map.Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\n params.put(entry.getKey(), entry.getValue()[0]);\n }\n return params;\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n String s1=request.getParameter(\"v1\");\r\n String s2=request.getParameter(\"v2\");\r\n String s3=request.getParameter(\"v3\");\r\n String s4=request.getParameter(\"v4\");\r\n String s5=request.getParameter(\"v5\");\r\n String s6=request.getParameter(\"v6\");\r\n Data obj=new Data(); \r\n obj.setAge(s1);\r\n obj.setGender(s2);\r\n obj.setWeather(s3);\r\n obj.setVehicle(s4);\r\n obj.setSeverity(s5);\r\n obj.setPersons(s6);\r\n dataFacade.create(obj);\r\n out.println(\"<h2>\"+\"Data Successfully Uploaded\"+\"</h2>\");\r\n out.println(\"<a href='upload.html'>\"+\"Click here to one more upload\"+\"</a>\");\r\n out.println(\"<a href='index.html'>\"+\"Click here to home\"+\"</a>\");\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n String accion = request.getParameter(\"action_form\");\r\n //String accion = request.getParameter(\"action_form\");\r\n \r\n if(accion.equals(\"ingreso_art\")){\r\n response.sendRedirect(\"ingresarArticulo.jsp\");\r\n }else{\r\n request.getSession().setAttribute(\"categoria\", accion); \r\n response.sendRedirect(\"index.jsp\");\r\n }\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet TakerInfo</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet TakerInfo at \" + accion + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException, UnsupportedEncodingException, ParseException {\n response.setContentType(\"text/html;charset=UTF-8\");\n\n HttpSession session = request.getSession(true);\n WebUser user = (WebUser) session.getAttribute(\"loggedInUser\");\n String token = user.getToken();\n int staffId = user.getStaffId();\n ArrayList<String> errorMessages = new ArrayList<String>();\n\n SettingDAO sDAO = new SettingDAO();\n ArrayList<Setting> settings = sDAO.retrieveAllSettings(staffId, token);\n\n for (Setting s : settings) {\n int settingId = s.getId();\n String value = request.getParameter(settingId + \"\");\n String errMsg = \"\";\n Validation validation = new Validation();\n String isNum = validation.isValidNumber(value);\n if (isNum == null) {\n int valueInt = Integer.parseInt(value);\n errMsg = sDAO.editSetting(staffId, token, settingId, value);\n } else {\n String category = s.getCategory();\n String name = s.getName();\n if (name.equals(category)) {\n errMsg = \"(\" + s.getCategory() + \") \" + isNum;\n } else {\n errMsg = \"(\" + s.getCategory() + \": \" + s.getName() + \") \" + isNum;\n }\n }\n \n if (errMsg.length() != 0) {\n errorMessages.add(errMsg);\n }\n }\n\n if (errorMessages.size() == 0) {\n session.setAttribute(\"success\", \"Settings Updated!\");\n// RequestDispatcher view = request.getRequestDispatcher(\"ManageService.jsp\");\n// view.forward(request, response);\n response.sendRedirect(\"Admin_Settings.jsp\");\n } else {\n session.setAttribute(\"fail\", errorMessages);\n// RequestDispatcher view = request.getRequestDispatcher(\"ManageService.jsp\");\n// view.forward(request, response);\n response.sendRedirect(\"Admin_Settings.jsp\");\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n HttpSession session=request.getSession(); \n /*\n *Change the directory. Must be absolute. \n */\n String UPLOAD_DIRECTORY = \"C:\\\\Users\\\\Yuta\\\\Documents\\\\NetBeansProjects\\\\hoamisgit\\\\web\\\\ourFiles\\\\uploads\";\n if(ServletFileUpload.isMultipartContent(request)){\n try {\n List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);\n for(FileItem item : multiparts){\n if(!item.isFormField()){\n File a = new File(UPLOAD_DIRECTORY + File.separator + item.getName());\n String name = a.getName();\n String loc = UPLOAD_DIRECTORY + File.separator + item.getName();\n User user = (User)session.getAttribute(\"UserObj\");\n \n if (a.exists()){\n //session.setAttribute(\"message\", \"File Already exists\");\n }\n else{\n // session.setAttribute(\"message\", \"File Uploaded Successfully\");\n item.write( new File(UPLOAD_DIRECTORY + File.separator + name));\n }\n \n \n Document document = new Document(name, loc, new Folder(Integer.parseInt(String.valueOf(session.getAttribute(\"curFolder\")))), user);\n System.out.println(\"Document ID: \"+document.getDescription());\n System.out.println(\"Folder ID: \"+document.getFolder().getFolderID());\n if(DocumentDAO.checkDuplicateDoc(document)){\n if(evaluateSize(item)){\n if(name.length() <=45){\n DocumentDAO.addDocument(document);\n session.setAttribute(\"message\", \"File Uploaded Successfully\");\n }\n else{\n session.setAttribute(\"message\", \"File Name too long [45 Characters]\");\n }\n }\n else{\n session.setAttribute(\"message\", \"File Size Exceeds Limit [100MB]\");\n } \n }\n else{\n session.setAttribute(\"message\", \"File Already exists\");\n }\n }\n } //File uploaded successfully\n } catch (Exception ex) {\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n } \n response.sendRedirect(\"HomeDocu?fid=\"+String.valueOf(session.getAttribute(\"curFolder\")));\n }\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n request.setCharacterEncoding(\"UTF-8\");\r\n\r\n String Gamename = request.getParameter(\"gamename\");\r\n String Social1 = request.getParameter(\"social1\");\r\n String Social2 = request.getParameter(\"social2\");\r\n String GameType = request.getParameter(\"gameType\");\r\n String Synopsis = request.getParameter(\"synopsis\");\r\n String Cc = request.getParameter(\"cc\");\r\n\r\n Steam steam = new Steam();\r\n steam.setGamename(\"gamename\");\r\n steam.setSocial1(\"social1\");\r\n steam.setSocial2(\"social2\");\r\n steam.setGameType(\"gameType \");\r\n steam.setSynopsis(\"synopsis\");\r\n steam.setCc(\"cc\");\r\n\r\n HttpSession session = request.getSession();\r\n session.setAttribute(\"Steam\", steam);\r\n\r\n request.getRequestDispatcher(\"/updateSteam.jsp\").forward(request, response);\r\n\r\n }", "public void processRequest(HttpServletRequest request)\n {\n // do nothing if not initialized or session has expired.\n if(mv==null || request.getSession().isNew())\n {\n errorMsg = \"Session has expired (or is new). Please fill in the form and \"+\n \"click on the Submit button.\"; \n return;\n }\n \n success = false;\n errorMsg = null;\n if(action!=null) // user clicked an action button\n {\n if(\"Submit\".equalsIgnoreCase(action))\n doSubmit();\n else if(\"Zm In\".equalsIgnoreCase(action))\n doZoomIn();\n else if(\"Zm Out\".equalsIgnoreCase(action))\n doZoomOut(); \n else if(\"Pan W.\".equalsIgnoreCase(action))\n doPanHalf('W');\n else if(\"Pan E.\".equalsIgnoreCase(action))\n doPanHalf('E');\n else if(\"Pan S.\".equalsIgnoreCase(action))\n doPanHalf('S');\n else if(\"Pan N.\".equalsIgnoreCase(action))\n doPanHalf('N');\n }\n else if(request.getParameter(\"mouseClick.x\")!=null)\n {\n // user clicked on the map itself: recenter\n doRecenter(request);\n }\n \n if(success)\n {\n //reset action\n action = null;\n //update map size for display purpose\n size = mv.getRequestSize();\n //update center x,y for display purpose\n Point2D p = mv.getRequestCenter();\n if(p !=null)\n {\n centerX = p.getX();\n centerY = p.getY();\n }\n }\n }", "public ServletRequest getServletRequest() {\n/* 85 */ return this.request;\n/* */ }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String image = request.getParameter(\"locationImage\");\n String name = request.getParameter(\"txtCakeName\");\n String create = request.getParameter(\"txtCreateDate\");\n String expired = request.getParameter(\"txtExpiredDate\");\n CreateCakeError error = new CreateCakeError();\n boolean foundErr = false;\n ServletContext context = request.getServletContext();\n Map<String, String> siteMap = (Map) context.getAttribute(\"MAP\");\n String url = siteMap.get(\"updatePage\");\n String proID = request.getParameter(\"txtProductID\");\n try {\n if (name.trim().length() <= 0 || name.trim().length() > 50) {\n error.setInvalidName(\"The cake's name must contain from 3 to 50 letters\");\n foundErr = true;\n }\n float price = Float.parseFloat(request.getParameter(\"txtPrice\"));\n int quantity = Integer.parseInt(request.getParameter(\"txtQuantity\"));\n int categoryID = Integer.parseInt(request.getParameter(\"categoryID\"));\n int productID = Integer.parseInt(proID);\n int statusID = Integer.parseInt(request.getParameter(\"status\"));\n\n if (price < 0) {\n error.setInvalidPrice(\"Price must be positive number\");\n foundErr = true;\n }\n\n if (quantity < 0) {\n error.setInvalidQuantity(\"Quantity must be positive number\");\n foundErr = true;\n }\n\n SimpleDateFormat format = new SimpleDateFormat(\"MM/dd/yyyy\");\n Timestamp ts = new Timestamp(format.parse(create).getTime());\n Date createDate = new Date(ts.getTime());\n\n ts = new Timestamp(format.parse(expired).getTime());\n Date expiredDate = new Date(ts.getTime());\n if (createDate.after(expiredDate) || createDate.equals(expiredDate)) {\n error.setInvalidDate(\"Create date must before the expired date\");\n foundErr = true;\n }\n\n if (!foundErr) {\n ProductDAO productDAO = new ProductDAO();\n boolean result = productDAO.updateCake(name, image, price, categoryID, quantity, createDate, expiredDate, statusID, productID);\n if (result) {\n HttpSession session = request.getSession(false);\n UsersDTO user = (UsersDTO) session.getAttribute(\"USER\");\n String userID = user.getUserID();\n Date localDate = Date.valueOf(LocalDate.now());\n\n RecordDAO recoredDAO = new RecordDAO();\n recoredDAO.recordUpdate(userID, productID, localDate);\n\n url = siteMap.get(\"adminPage\");\n }\n } else {\n request.setAttribute(\"ERR\", error);\n request.setAttribute(\"PRODUCTID\", proID);\n }\n\n } catch (NumberFormatException ex) {\n error.setInvalidInput(\"Please enter the valid input\");\n request.setAttribute(\"ERR\", error);\n request.setAttribute(\"PRODUCTID\", proID);\n foundErr = true;\n LOG.error(\"NumberFormatException : \" + ex.getMessage());\n } catch (ParseException ex) {\n error.setInvalidDate(\"Invalid date\");\n request.setAttribute(\"ERR\", error);\n request.setAttribute(\"PRODUCTID\", proID);\n foundErr = true;\n LOG.error(\"ParseException : \" + ex.getMessage());\n } catch (NamingException ex) {\n LOG.error(\"NamingException : \" + ex.getMessage());\n } catch (SQLException ex) {\n LOG.error(\"SQLException : \" + ex.getMessage());\n } finally {\n if (foundErr) {\n RequestDispatcher rd = request.getRequestDispatcher(url);\n rd.forward(request, response);\n } else {\n response.sendRedirect(url);\n }\n }\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n\t\tPrintWriter out = resp.getWriter();\n\t\tresp.setContentType(\"text/html\");\n\t\tEnumeration<String> parametrNames = req.getParameterNames();\n\n\t\twhile (parametrNames.hasMoreElements()) {\n\t\t\tString parameterName = parametrNames.nextElement();\n\n\t\t\tif (\"subjects\".equals(parameterName)) {\n\t\t\t\tString paramValueArr[] = req.getParameterValues(parameterName);\n\n\t\t\t\tString vals = String.join(\",\", paramValueArr);\n\n\t\t\t\tout.println(\"<b>\" + parameterName + \"</b>--\" + vals + \"<br/>\");\n\t\t\t\tcontinue;\n\n\t\t\t}\n\n\t\t\tString paramValue = req.getParameter(parameterName);\n\n\t\t\tout.println(\"<b>\" + parameterName + \"</b>--\" + paramValue + \"<br/>\");\n\t\t}\n\t\t\n\t\tSimpleDateFormat ft = \n\t\t\t new SimpleDateFormat (\"E yyyy.MM.dd 'at' hh:mm:ss.S a zzz\");\n\t\t\n\t\tout.println(\"<b>Form submitted at: </b>\"+ft.format(new Date()));\n\n\t}", "public HttpServletRequest getServletRequest()\r\n/* 39: */ {\r\n/* 40: 74 */ return this.servletRequest;\r\n/* 41: */ }", "HttpServletRequest getCurrentRequest();", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tresp.setCharacterEncoding(\"gbk\");\n\t\tresp.setContentType(\"text/html;charset=gbk\");\n\t\tPrintWriter out=resp.getWriter();\n\t\tServletContext context=this.getServletContext();\n\t\tEnumeration<String> paramNames=context.getInitParameterNames();\n\t\tout.println(\"all the paramName and paramValue are following\");\n\t\t\n\t\twhile(paramNames.hasMoreElements()) {\n\t\t\tString name=paramNames.nextElement();\n\t\t\tString value =context.getInitParameter(name);\n\t\t\tout.println(name+\":\"+value);\n\t\t\tout.println(\"<br/>\");\n\t\t}\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\n String user = request.getParameter(\"user\");\n String pwd =request.getParameter(\"pwd\");\n\n Validator validator = new Validator();\n boolean userNameCheck = validator.validateUserName(user);\n boolean passwordCheck = validator.validatePassword(pwd);\n\n\n String userId = getServletConfig().getInitParameter(\"user\");\n String password=getServletConfig().getInitParameter(\"pwd\");\n\n\n\n\n if (userNameCheck==true && passwordCheck==true){\n request.setAttribute(\"user\",user);\n request.getRequestDispatcher(\"LoginSuccess.jsp\").forward(request,response);\n }\n\n else {\n RequestDispatcher requestDispatcher = getServletContext().getRequestDispatcher(\"/Login.html\");\n PrintWriter out =response.getWriter();\n out.println(\"<font color=red>Either username or password is incorrect</font>\");\n requestDispatcher.include(request,response);\n }\n\n }", "public String[] getParameterValues(String name) {\n if ( isMultipart() ) {\n String[] values = this.multipart.getParameterValues(name);\n if (values != null) {\n for (int i=0; i<values.length; ++i) {\n if (values[i] == null) {\n values[i] = \"\";\n }\n }\n }\n \n return values;\n }\n else {\n return super.getParameterValues(name);\n }\n }", "@RequestMapping(value = \"/prep_log_form.htm\",method = RequestMethod.GET)\r\n\tpublic String prepLogForm(ModelMap map,HttpSession session,HttpServletResponse response) throws IOException {\r\n\t\t\r\n\t\tmap.put(\"user\", new User());\r\n\t\treturn \"login_form\";\r\n\t}" ]
[ "0.7269931", "0.6829437", "0.64593214", "0.61426276", "0.6101668", "0.60973716", "0.5993362", "0.58843195", "0.5789527", "0.5787431", "0.57206553", "0.5577839", "0.55754715", "0.55656534", "0.55624866", "0.5560745", "0.55312634", "0.5530427", "0.5530195", "0.55300516", "0.5505734", "0.54705095", "0.54647964", "0.5445054", "0.54360366", "0.5424144", "0.54235154", "0.5417615", "0.541539", "0.5405636", "0.54040974", "0.5390735", "0.53474385", "0.5337547", "0.533249", "0.5326003", "0.5319727", "0.5297343", "0.52932036", "0.5292516", "0.5267748", "0.5266028", "0.52605504", "0.5256082", "0.52533937", "0.52390826", "0.52388316", "0.52327895", "0.5231046", "0.52272964", "0.52240956", "0.5211513", "0.52109367", "0.52085894", "0.5207886", "0.52051044", "0.5202798", "0.5202318", "0.51938266", "0.51930386", "0.51867443", "0.5185254", "0.51710933", "0.51673394", "0.5167195", "0.51640284", "0.51586044", "0.5155388", "0.51508343", "0.5143976", "0.51306516", "0.51285976", "0.5123579", "0.51206994", "0.5109218", "0.5109218", "0.51058406", "0.5100351", "0.50971997", "0.508047", "0.5077986", "0.50715655", "0.5069647", "0.5069005", "0.50681657", "0.50559783", "0.5048336", "0.50410575", "0.5040204", "0.503375", "0.50237525", "0.5014043", "0.5003552", "0.500347", "0.5001935", "0.49998432", "0.49991205", "0.499689", "0.49926728", "0.49813095" ]
0.6631509
2
returns a JSON array and not JSON object as the Flash method
@SuppressWarnings("unchecked") protected void storeInSessionHTML5(HttpServletRequest request, HttpServletResponse response) throws IOException { // System.out.println("FileUploadServlet.storeInSessionHTML5: " + request.getParameterMap()); ServletFileUpload upload = new ServletFileUpload(factory); try { if(ServletFileUpload.isMultipartContent(request)){ List<FileItem> fileItemList = upload.parseRequest(request); List<Map<String,Object>> jsonResponse = new ArrayList<Map<String,Object>>(); response.setContentType("text/json"); for(FileItem fileItem : fileItemList){ if(fileItem.isFormField()){ logger.info("FileUploadServlet.storeInSessionHTML5 - file item is form field::: " + fileItem); } else{ logger.info("FileUploadServlet.storeInSessionHTML5.NOT formField " + fileItem); String id = UUID.randomUUID().toString(); request.getSession().setAttribute(id, fileItem); //-- FireFox/HTML5 Map<String,Object> o = generateJsonResponse(fileItem); o.put("sessionAttributeId", id); jsonResponse.add(o); } } //Json list JacksonUtils.serialize(jsonResponse, response.getWriter()); } } catch (Exception exp) { Constants.LOGGER.error(exp.getMessage(),exp); JacksonUtils.serialize(EntityModel.createErrorMessage("FileUpload Exception", exp.getMessage()), response.getWriter()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getJson();", "String getJson();", "String getJson();", "String getJson();", "String getJSON();", "JSONObject toJson();", "JSONObject toJson();", "private Object JSONArray(String estado) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public abstract Object toJson();", "public abstract String toJson();", "@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}", "@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}", "String toJSON();", "public String toJSON() throws JSONException;", "public JsonObject toJson();", "protected JSONArray getTacoFichas() {\n\t\tJSONArray jsa = new JSONArray();\r\n\t\tfor (int i = 0; i < this.fichasMesa.size(); i++) {\r\n\t\t\tjsa.put(this.fichasMesa.get(i).toJSON());\r\n\t\t}\r\n\t\treturn jsa;\r\n\t}", "@Override\n\tpublic JSONObject toJson() {\n\t\treturn null;\n\t}", "@GET\n @Produces(\"application/json\")\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "@Override\r\n\tpublic JSONObject getJSON() {\n\t\treturn tenses;\r\n\t}", "@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "public Object getJsonObject() {\n return JSONArray.toJSON(values);\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJSON() {\n throw new UnsupportedOperationException();\n }", "protected abstract String getJSON(B bean);", "public void jsonPresentation () {\n System.out.println ( \"****** Json Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n String jsonData = \"\";\n ObjectMapper mapper = new ObjectMapper();\n bookArrayList = new Request().postRequestBook();\n try {\n jsonData = mapper.writeValueAsString(bookArrayList);\n } catch (JsonProcessingException e) {\n System.out.println(\"Error: \"+ e);\n }\n System.out.println(jsonData);\n ClientEntry.showMenu ( );\n }", "@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn null;\n\t\t}", "public JSONArray() {\n\t\tthis.rawArrayList = new ArrayList<Object>();\n\t}", "private JSONArray foodsToJson() {\n JSONArray jsonArray = new JSONArray();\n\n for (Food f : units) {\n jsonArray.put(f.toJson());\n }\n\n return jsonArray;\n }", "public JSONObject toJson() {\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic JSONObject toJson() throws JSONException {\n\t\tJSONObject result = super.toJson();\n\t\treturn result;\n\t}", "public java.lang.Object[] getPresentationAsArray();", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n return null;\n }", "@GET\n //@Path(\"/{usuario}-{clave}\")\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response ConsultaItemsWS(@QueryParam(\"tipo\") String tipo, \n @QueryParam(\"cod_int\") String codigoIterno,\n @QueryParam(\"cod_alt\") String codigoAlterno,\n @QueryParam(\"descripcion\") String Descripcion,\n @QueryParam(\"linea\") String Linea\n ){\n String datos =\"[]\";\n JSONObject json = new JSONObject();\n JSONArray itemSelectedJson = new JSONArray();\n datos=item.ConsultaItems(tipo, codigoIterno, codigoAlterno, Descripcion, Linea);\n \n JsonParser parser = new JsonParser();\n\n // Obtain Array\n JsonArray gsonArr = parser.parse(datos).getAsJsonArray();\n json = new JSONObject();\n \n /*json.put(\"data\", gsonArr);\n json.put(\"mensaje\", \"ok\");\n json.put(\"codigo_error\", 1);\n itemSelectedJson.add(json);*/\n String datosJSON=\"{ \\\"data\\\":\"+gsonArr+\",\\\"mensaje\\\":\\\"ok\\\",\\\"codigo_error\\\":1}\";\n \n System.out.println(\"datosJSON: \"+datosJSON);\n //return Response.ok(itemSelectedJson.toString()).build();\n return Response.ok(datosJSON).build();\n }", "public ActionForward list_object_json( final ActionMapping mapping, final ActionForm form, final HttpServletRequest request, final HttpServletResponse response )\r\n throws KANException\r\n {\r\n\r\n return null;\r\n }", "@Override\r\n\tpublic Object toJSonObject() {\n\t\treturn null;\r\n\t}", "@JSProperty(\"items\")\n @Nullable\n Any[] getItems();", "private static JSONArray objectToArray(JSONObject obj){\r\n return (JSONArray) obj.get(\"books\");\r\n }", "private JSON() {\n\t}", "public String loadJSONFromAsset() {\n String json = null;\n try {\n json = new String(buffer, \"UTF-8\");\n } catch (UnsupportedEncodingException e1) {\n e1.printStackTrace();\n }\n\n return json;\n }", "@Override\n\tpublic Object[] toArray() {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic JSONObject[] selectAllJSON(String clase){\n \tJSONObject[] json=null;\n \ttry{\n\t \tList<JSONable> lista= selectAll(clase);\n\t \tInteger size= lista.size();\n\t\t\tjson=new JSONObject[size];\n\t\t\tInteger index=0;\n\t\t\tfor(JSONable j: lista){\n\t\t\t\t//System.out.println(j.toString());\n\t\t\t\tjson[index]= j.toJSON();\n\t\t\t\tindex++;\n\t\t\t}\n \t}catch(Exception e){\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n\t\treturn json;\t\t\n }", "public interface ArrayJson {\r\n\t//size for array used,for map, arraySize is map.size*2\r\n\tpublic int arraySize();\r\n\r\n\tpublic int length();// orig length\r\n\r\n\t// getters for getXX By index\r\n\tpublic Object get(int index);\r\n\r\n\tpublic boolean getBoolean(int index);\r\n\r\n\tpublic double getDouble(int index);\r\n\r\n\tpublic <E extends Enum<E>> E getEnum(Class<E> clazz, int index);\r\n\r\n\tpublic BigDecimal getBigDecimal(int index);\r\n\r\n\tpublic BigInteger getBigInteger(int index);\r\n\r\n\tpublic int getInt(int index);\r\n\r\n\tpublic JSONArray getJSONArray(int index);\r\n\r\n\tpublic JSONObject getJSONObject(int index);\r\n\r\n\tpublic long getLong(int index);\r\n\r\n\tpublic String getString(int index);\r\n}", "private JSONArray parseJSON() {\n JSONArray jsonArray = new JSONArray();\n for (TimestampedMessage m : fPending) {\n JSONTokener jsonTokener = new JSONTokener(m.fMsg);\n JSONObject jsonObject = null;\n JSONArray tempjsonArray = null;\n final char firstChar = jsonTokener.next();\n jsonTokener.back();\n if ('[' == firstChar) {\n tempjsonArray = new JSONArray(jsonTokener);\n for (int i = 0; i < tempjsonArray.length(); i++) {\n jsonArray.put(tempjsonArray.getJSONObject(i));\n }\n } else {\n jsonObject = new JSONObject(jsonTokener);\n jsonArray.put(jsonObject);\n }\n\n }\n return jsonArray;\n }", "public abstract String toJsonString();", "@GET\n @Path(\"{name}/array\")\n public JsonArray jsonArray(@PathParam(\"name\") String name) {\n return new JsonArray().add(\"Hello\").add(name);\n }", "@Override\n\tpublic String toString() {\n\t\treturn JSONFormatter.formatArray(this, 0, false).toString();\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n GsonBuilder gBuilder = new GsonBuilder();\n Gson jObject = gBuilder.create();\n\n try {\n return jObject.toJson(dao.getAll());\n } catch (Exception e) {\n Resposta lResposta = new Resposta();\n\n lResposta.setMensagem(e.getMessage());\n lResposta.setSucesso(false);\n\n return jObject.toJson(lResposta);\n }\n }", "protected Object[] getArray(){\r\n\t \treturn array;\r\n\t }", "@Override\n\tpublic String onData() {\n\t\tMap<String, Object> mapObj = new HashMap<String, Object>();\n\t\tfor (BasicNameValuePair pair : pairs) {\n\t\t\tmapObj.put(pair.getName(), pair.getValue());\n\t\t}\n\t\tGson gson = new Gson();\n\t\tString json = gson.toJson(mapObj);\n\t\treturn json;\n\t}", "@Override\n\tpublic JSONObject toJSONObject() {\n\t\treturn null;\n\t}", "@Override\n\tpublic JSONObject toJSONObject() {\n\t\treturn null;\n\t}", "@Override\n public String toString() {\n return jsonString;\n }", "Object[] toArray();", "Object[] toArray();", "Object[] toArray();", "@Override\n public Object toJson() {\n JSONObject json = (JSONObject)super.toJson();\n json.put(\"name\", name);\n json.put(\"reason\", reason);\n return json;\n }", "private JSArray convertToJSArray(ArrayList<Object> row) {\n JSArray jsArray = new JSArray();\n for (int i = 0; i < row.size(); i++) {\n jsArray.put(row.get(i));\n }\n return jsArray;\n }", "@Override\n public JSONObject toJson() {\n JSONObject json = new JSONObject();\n json.put(\"frontInfo\", frontInfo);\n json.put(\"backInfo\", backInfo);\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String formattedDate = dateFormat.format(startTime);\n\n json.put(\"startTime\", formattedDate);\n json.put(\"cardID\", cardID);\n return json;\n }", "public final String e() {\n JSONArray jSONArray = new JSONArray();\n long j2 = 0;\n for (int i2 = 0; i2 < this.i.size(); i2++) {\n TraceLocation traceLocation = this.i.get(i2);\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"x\", traceLocation.getLongitude());\n jSONObject.put(\"y\", traceLocation.getLatitude());\n jSONObject.put(\"ag\", (int) traceLocation.getBearing());\n long time = traceLocation.getTime();\n if (i2 == 0) {\n if (time == 0) {\n time = (System.currentTimeMillis() - 10000) / 1000;\n }\n jSONObject.put(\"tm\", time / 1000);\n } else {\n if (time != 0) {\n long j3 = time - j2;\n if (j3 >= 1000) {\n jSONObject.put(\"tm\", j3 / 1000);\n }\n }\n jSONObject.put(\"tm\", 1);\n }\n j2 = time;\n jSONObject.put(\"sp\", (int) traceLocation.getSpeed());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n jSONArray.put(jSONObject);\n }\n this.e = c() + \"&\" + jSONArray.toString();\n return jSONArray.toString();\n }", "public String pasarAjson(ArrayList<Cliente> miLista){\n String textoenjson;\n Gson gson = new Gson();\n textoenjson = gson.toJson(miLista);\n\n\n return textoenjson;\n }", "@Override\n public JSONObject getRequestJSON() throws JSONException {\n return null;\n }", "@Override\n\tprotected void getDifferentJsonArrayValue() {\n\n\t}", "private static JsonLista toBasicJson(Lista lista) {\r\n\t\tJsonLista jsonLista = new JsonLista();\r\n\t\tapplyBasicJsonValues(jsonLista, lista);\r\n\t\treturn jsonLista;\r\n\t}", "void decodeObjectArray();", "public String toJSon() {\n File jsonFile = new File(context.getFilesDir(), \"data.json\");\n String previousJson = null;\n if (jsonFile.exists()) {\n previousJson = readFromFile(jsonFile);\n } else {\n previousJson = \"{}\";\n }\n\n // create new \"complex\" object\n JSONObject mO = null;\n try {\n mO = new JSONObject(previousJson);\n\n JSONArray arr;\n if (!mO.has(getIntent().getStringExtra(\"date\"))) {\n arr = new JSONArray();\n }\n else{\n arr = mO.getJSONArray(getIntent().getStringExtra(\"date\"));\n }\n JSONObject jo = new JSONObject();\n jo.put(\"title\", titleField.getText().toString());\n jo.put(\"minute\", minute);\n jo.put(\"hour\", hour);\n jo.put(\"description\", descriptionField.getText().toString());\n jo.put(\"location\", locationField.getText().toString());\n\n arr.put(jo);\n\n mO.put(getIntent().getStringExtra(\"date\"), arr);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // generate string from the object\n String jsonString = null;\n try {\n jsonString = mO.toString(4);\n return jsonString;\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n\n }", "@Override\n \t\t\tpublic void onSuccess(int arg, JSONArray objects) {\n \t\t\t}", "String toJSONString(Object data);", "public JSONArray readFromJSON(){\n\n JSONArray jsonArray=null;\n\n try {\n InputStream inputStream =context.getResources().getAssets().open(FILE_NAME);\n int size = inputStream.available();\n byte[] data = new byte[size];\n inputStream.read(data);\n inputStream.close();\n String json = new String(data, \"UTF-8\");\n jsonArray = new JSONArray(json);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return jsonArray;\n }", "@Override\r\n\tpublic List parseArrayJSON(JSONObject jsonObj) throws NetRequestException {\n\t\treturn null;\r\n\t}", "public JSONObject toJSON(){\n\t\treturn toJSON(false, false);\n\t}", "private String[] getJSONStringList() throws SQLException {\n String sql = \"select concat(c.chart_type, ', ', c.intermediate_data) content \" +\n \"from pride_2.pride_chart_data c, pride_2.pride_experiment e \" +\n \"where c.experiment_id = e.experiment_id \" +\n \"and e.accession = ? \" +\n \"order by 1\";\n\n Connection conn = PooledConnectionFactory.getConnection();\n PreparedStatement stat = conn.prepareStatement(sql);\n stat.setString(1, accession);\n ResultSet rs = stat.executeQuery();\n\n List<String> jsonList = new ArrayList<String>();\n while (rs.next()) {\n jsonList.add(rs.getString(1));\n }\n\n rs.close();\n conn.close();\n\n return jsonList.toArray(new String[jsonList.size()]);\n }", "public Object[] toArray() {\n\t\treturn null;\n\t}", "private JSONObject changeAdsJsonObject(){\n JSONObject jsonObject=new JSONObject();\n JSONArray jsonArray=new JSONArray();\n\n try {\n for (int i = 0; i < adsInfoList.size(); i++) {\n AdsClickBean adsClickBean=adsInfoList.get(i);\n JSONObject object=new JSONObject();\n object.put(\"adNum\",adsClickBean.getAdNum());\n object.put(\"clickCount\",adsClickBean.getClickCount());\n object.put(\"shareCount\",0);\n object.put(\"shareAppNum\",0);\n object.put(\"shareClickNum\",0);\n object.put(\"incomeDay\",0);\n object.put(\"times\",adsClickBean.getTimes());\n jsonArray.put(object);\n }\n jsonObject.put(\"list\",jsonArray);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject;\n }", "@JavascriptInterface\n public float[] getData() {\n float[]mis;\n int i,k;\n mis[0]=misC;\n for(k=0;k<12;k++){\n for (i=0;i<(k+1)*misC;i++){\n mis[k*i+1]=misure[i][k];\n }\n }\n\n return mis; // JS non ha gli array bidimensionali !!!!\n }", "@Override\n\tpublic String getJsonParams() {\n\t\treturn null;\n\t}", "protected String getJSON() {\n/*Generated! Do not modify!*/ return gson.toJson(replyDTO);\n/*Generated! Do not modify!*/ }", "@Get(\"json\")\n public Representation toJSON() {\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = null;\n\n \tString msg = \"no metadata matching query found\";\n\n \ttry {\n \t\tmetadata = getMetadata(status, access,\n \t\t\t\tgetRequestQueryValues());\n \t} catch(ResourceException r){\n \t\tmetadata = new ArrayList<Map<String, String>>();\n \tif(r.getCause() != null){\n \t\tmsg = \"ERROR: \" + r.getCause().getMessage();\n \t}\n \t}\n\n\t\tString iTotalDisplayRecords = \"0\";\n\t\tString iTotalRecords = \"0\";\n\t\tif (metadata.size() > 0) {\n\t\t\tMap<String, String> recordCounts = (Map<String, String>) metadata\n\t\t\t\t\t.remove(0);\n\t\t\tiTotalDisplayRecords = recordCounts.get(\"iTotalDisplayRecords\");\n\t\t\tiTotalRecords = recordCounts.get(\"iTotalRecords\");\n\t\t}\n\n\t\tMap<String, Object> json = buildJsonHeader(iTotalRecords,\n\t\t\t\tiTotalDisplayRecords, msg);\n\t\tList<ArrayList<String>> jsonResults = buildJsonResults(metadata);\n\n\t\tjson.put(\"aaData\", jsonResults);\n\n\t\t// Returns the XML representation of this document.\n\t\treturn new StringRepresentation(JSONValue.toJSONString(json),\n\t\t\t\tMediaType.APPLICATION_JSON);\n }", "private JList getPayloads() {\r\n\t\tif (payloads == null) {\r\n\t\t\tpayloads = new JList();\r\n\t\t\tpayloads.setBackground(SystemColor.control);\r\n\t\t}\r\n\t\treturn payloads;\r\n\t}", "public JSONObject ownGetView()\n {\n JSONObject jsonObject = new JSONObject();\n try\n {\n jsonObject.put(\"task\", currentTask.getTask());\n jsonObject.put(\"location\", currentTask.getLocation());\n jsonObject.put(\"starttime\", currentTask.getStartTime());\n currentTask.setStopStime(currentTask.getCurrentTime());\n jsonObject.put(\"stoptime\", currentTask.getStopStime());\n currentTask.recalculateTime();\n jsonObject.put(\"time\",currentTask.getTime());\n jsonObject.put(\"timeinseconds\",currentTask.getTimeInSeconds());\n jsonObject.put(\"gps\", currentTask.getGps());\n jsonObject.put(\"notes\", currentTask.getNotes());\n jsonObject.put(\"inmotion\", currentTask.isInMotion());\n jsonObject.put(\"edited\", currentTask.isEdited());\n }\n\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n return jsonObject;\n }", "private Object readJSON() throws JSONException\n {\n switch(read(3))\n {\n case zipObject:\n return readObject();\n case zipArrayString:\n return readArray(true);\n case zipArrayValue:\n return readArray(false);\n case zipEmptyObject:\n return new JSONObject();\n case zipEmptyArray:\n return new JSONArray();\n case zipTrue:\n return Boolean.TRUE;\n case zipFalse:\n return Boolean.FALSE;\n default:\n return JSONObject.NULL;\n }\n }", "@Override\n protected String bodyAsJsonString() {\n return gson.toJson(draft);\n }", "@Override\n\tpublic JSONObject getAll() {\n\t\treturn null;\n\t}", "private Object arrayToSPLArray(String name, JSONArray jarr, Type ptype) throws Exception {\n\t\tif(l.isLoggable(TraceLevel.DEBUG)) {\n\t\t\tl.log(TraceLevel.DEBUG, \"Creating Array: \" + name);\n\t\t}\n\t\tCollectionType ctype = (CollectionType) ptype;\n\t\tint cnt=0;\n\t\tString cname = \"List: \" + name;\n\n\t\tswitch(ctype.getElementType().getMetaType()) {\n\t\tcase INT8:\n\t\tcase UINT8: \n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tbyte[] arr= new byte[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Byte)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT16:\n\t\tcase UINT16:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tshort[] arr= new short[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Short)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT32:\n\t\tcase UINT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tint[] arr= new int[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Integer)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase INT64:\n\t\tcase UINT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tlong[] arr= new long[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Long)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase BOOLEAN:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tboolean[] arr= new boolean[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Boolean)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tfloat[] arr= new float[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Float)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tdouble[] arr= new double[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Double)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase USTRING:\n\t\t{\n\t\t\tList<String> lst = new ArrayList<String>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((String)obj);\n\t\t\t}\n\t\t\treturn lst.toArray(new String[lst.size()]);\n\t\t} \n\n\t\tcase BSTRING:\n\t\tcase RSTRING:\n\t\t{\n\t\t\tList<RString> lst = new ArrayList<RString>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((RString)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase TUPLE:\n\t\t{\n\t\t\tList<Tuple> lst = new ArrayList<Tuple>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Tuple)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase LIST:\n\t\tcase BLIST:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase SET:\n\t\tcase BSET:\n\t\t{\n\t\t\tSet<Object> lst = new HashSet<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase DECIMAL32:\n\t\tcase DECIMAL64:\n\t\tcase DECIMAL128:\n\t\t{\n\t\t\tList<BigDecimal> lst = new ArrayList<BigDecimal>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((BigDecimal)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase TIMESTAMP:\n\t\t{\n\t\t\tList<Timestamp> lst = new ArrayList<Timestamp>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Timestamp)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\n\t\t//TODO -- not yet supported types\n\t\tcase BLOB:\n\t\tcase MAP:\n\t\tcase BMAP:\n\t\tcase COMPLEX32:\n\t\tcase COMPLEX64:\n\t\tdefault:\n\t\t\tthrow new Exception(\"Unhandled array type: \" + ctype.getElementType().getMetaType());\n\t\t}\n\n\t}", "public User[] get_return(){\r\n return local_return;\r\n }", "private JSONArray createJSONWeaponList(List<Weapon> weapons) {\n\t\tJSONArray jArray = new JSONArray();\n\t\tweapons.forEach(s -> jArray.add(s.getName()));\n\t\treturn jArray;\n\t}", "@Override\n public JSONObject getJSONObject() throws JSONException {\n return null;\n }", "public final native String toJson() /*-{\n // Safari 4.0.5 appears not to honor the replacer argument, so we can't do this:\n \n // var replacer = function(key, value) {\n // if (key == '__key') {\n // return;\n // }\n // return value;\n // }\n // return $wnd.JSON.stringify(this, replacer);\n \n var key = this.__key;\n delete this.__key;\n var rf = this.__rf;\n delete this.__rf;\n var gwt = this.__gwt_ObjectId;\n delete this.__gwt_ObjectId;\n // TODO verify that the stringify() from json2.js works on IE\n var rtn = $wnd.JSON.stringify(this);\n this.__key = key;\n this.__rf = rf;\n this.__gwt_ObjectId = gwt;\n return rtn;\n }-*/;", "@GET\n @Produces(\"application/json\")\n public String getJson() {\n\n JSONObject rezultat = new JSONObject();\n\n List<Korisnici> korisnici = korisniciFacade.findAll();\n\n \n\n try {\n for (Korisnici k : korisnici) {\n if (k.getIdkorisnik() == Long.parseLong(id)) {\n\n SoapListaAdresa soapOdgovor = listaDodanihAdresaBesplatno(k.getKorisnickoime(), k.getLozinka());\n\n List<Adresa> adrese = soapOdgovor.getAdrese();\n \n JSONArray jsonPolje = new JSONArray();\n int brojac = 0;\n for (Adresa a : adrese) {\n JSONObject jsonAdresa = new JSONObject();\n jsonAdresa.put(\"idadresa\", a.getIdadresa());\n jsonAdresa.put(\"adresa\", a.getAdresa());\n jsonAdresa.put(\"lat\", a.getGeoloc().getLatitude());\n jsonAdresa.put(\"long\", a.getGeoloc().getLongitude());\n jsonPolje.put(brojac,jsonAdresa);\n brojac++;\n }\n rezultat.put(\"adrese\", jsonPolje);\n } \n }\n return rezultat.toString();\n } catch (JSONException ex) {\n Logger.getLogger(MeteoRESTResource.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "@Override\n public boolean isArray() {\n return false;\n }", "public JSONArray() {\n\t\tsuper();\n\t}", "public JSONObject makeJSONBuyDevCards() {\n\t\tJSONObject json = new JSONObject();\n\t\tJSONObject json2 = new JSONObject();\n\t\ttry {\n\t\t\tjson.put(\"Entwicklungskarte kaufen\", json2);\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn json;\n\t}", "public JsonObject toJson(){\n JsonObject json = new JsonObject();\n if(username != null){\n json.addProperty(\"username\" , username);\n }\n json.addProperty(\"title\", title);\n json.addProperty(\"description\", description);\n json.addProperty(\"date\", date);\n json.addProperty(\"alarm\", alarm);\n json.addProperty(\"alert_before\", alert_before);\n json.addProperty(\"location\", location);\n\n return json;\n }", "public String toJson() throws Exception {\n\t\treturn WebAccess.mapper.writeValueAsString(this);\n\t}", "JsonObject raw();", "public synchronized String getJSONString() {\n\n return getJSONObject().toString();\n }", "public void lite() {\n\t\t\r\n\t\tthis.setJson(\"[]\");\r\n\t\t\r\n\t\t\r\n\t}", "ArrayMixedObject getArray() {\n\t\treturn array;\n\t}", "public String jsonify() {\n return gson.toJson(this);\n }", "public JSONObject b() throws JSONException {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"header\", UTrack.getInstance(this.f81249b).getHeader());\n if (InAppMessageManager.f81176a) {\n jSONObject.put(\"pmode\", PushConstants.PUSH_TYPE_NOTIFY);\n } else {\n jSONObject.put(\"pmode\", PushConstants.PUSH_TYPE_THROUGH_MESSAGE);\n }\n return jSONObject;\n }" ]
[ "0.6564242", "0.63712347", "0.63712347", "0.63712347", "0.6361312", "0.6242026", "0.6242026", "0.61939883", "0.60997677", "0.5956178", "0.5943896", "0.5850881", "0.5842226", "0.58405125", "0.5816924", "0.5779898", "0.57371306", "0.57076365", "0.5704839", "0.5700236", "0.56610155", "0.56408423", "0.5626399", "0.5624205", "0.5594784", "0.5592281", "0.55915296", "0.5589383", "0.55833036", "0.55833036", "0.55833036", "0.5582469", "0.55817235", "0.55784595", "0.5566077", "0.55656314", "0.5564101", "0.55602753", "0.5543962", "0.5527619", "0.5524204", "0.5514186", "0.5490014", "0.548307", "0.54808116", "0.54647994", "0.54604536", "0.54404926", "0.54399604", "0.54348147", "0.542867", "0.54234946", "0.54234946", "0.54167825", "0.5405143", "0.5405143", "0.5405143", "0.53927743", "0.53817856", "0.5371017", "0.5370132", "0.5352049", "0.5344251", "0.533766", "0.53293926", "0.5329073", "0.53129417", "0.5309342", "0.53070056", "0.5299452", "0.528564", "0.5282495", "0.52809066", "0.52768916", "0.52566993", "0.5256216", "0.52450556", "0.524235", "0.52370447", "0.5233179", "0.5230745", "0.52289706", "0.5219547", "0.5217265", "0.5212311", "0.5210194", "0.5206064", "0.52047133", "0.51964027", "0.51864374", "0.5183243", "0.5181848", "0.517713", "0.5170239", "0.5167405", "0.51669085", "0.5164073", "0.51638186", "0.5163069", "0.5157944", "0.5154814" ]
0.0
-1
Private construct that use the builder
private House(HouseBuilder builder) { this.surface = builder.surface; this.rooms = builder.rooms; this.bathrooms = builder.bathrooms; this.floors = builder.floors; this.garage = builder.garage; this.yard = builder.yard; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Builder() {}", "private Builder() {\n\t\t}", "private Builder() {\n }", "private Builder() {\n }", "private Builder()\n {\n }", "private Construct(Builder builder) {\n super(builder);\n }", "public Builder() {}", "public Builder() {}", "public Builder() {}", "public Builder() {\n\t\t}", "public Builder() { }", "public Builder() {\n }", "public Builder(){\n }", "public Builder() {\n }", "public Builder() {\n }", "private BuilderUtils() {}", "public static Builder builder(){ return new Builder(); }", "private DataModelBuilder() {\n }", "private StrategyChainBuilder() {\n\t}", "private SupplierInfoBuilder() {\n }", "static Builder builder() {\n return new Builder();\n }", "private Builder(Context context){ this.context=context;}", "public GantBuilder ( ) { }", "public Builder()\n {\n this(\"\", \"\");\n }", "private HandlerBuilder() {\n }", "private ReducedCFGBuilder() {\n\t}", "@Inject\n public Builder() {\n }", "private DescriptorBuilder() {\n // empty\n \n // NOTE: No tracing is performed, since this constructor is never used\n }", "private PatternBuilder() { }", "public void construct(){\n\t\tbuilder.buildPart1();\n\t\tbuilder.buildPart2();\n\t\tbuilder.retrieveResult();\n\t}", "private DataObject(Builder builder) {\n super(builder);\n }", "private SimpleData(Builder builder) {\n super(builder);\n }", "private ReflectionRequest(Builder builder) {\n super(builder);\n }", "private Argument(Builder builder) {\n super(builder);\n }", "public LinkBuilder() {\n }", "public static Builder builder ()\n {\n\n return new Builder ();\n\n }", "private DocumentBuilderHelper() {\n }", "private Reader (Builder builder) {\n\t\tsuper(builder);\n\t}", "private MazeBuilder() {\n\t}", "private PBPoker(Builder builder) {\n super(builder);\n }", "static Builder builder() {\n return new SourceContextImpl.Builder();\n }", "private BeeMessage(Builder builder) {\n super(builder);\n }", "public BuiltBy() {\n }", "static Builder newBuilder() {\n return new Builder();\n }", "private Compilation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Donatie(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Basis(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Donator(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private C_Compose(Builder builder) {\n super(builder);\n }", "private Device(Builder builder) {\n super(builder);\n }", "private ObjectReference(Builder builder) {\n super(builder);\n }", "private Nested(Builder builder) {\n super(builder);\n }", "private Package(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "private Builder() {\n super(SCHEMA$);\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}", "protected abstract void construct();", "private S_Compose(Builder builder) {\n super(builder);\n }", "Reproducible newInstance();", "private Instance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "public static Builder create() {\n\t\treturn new Builder();\n\t}", "private Subject(SubjectBuilder builder) {\n setDefaultTimezone();\n setDefaultLanguage();\n setOsType();\n setOsVersion();\n setDeviceModel();\n setDeviceVendor();\n\n if (builder.context != null) {\n setContextualParams(builder.context);\n }\n\n Logger.v(TAG, \"Subject created successfully.\");\n }", "private Builder() {\n super(br.unb.cic.bionimbus.avro.gen.JobInfo.SCHEMA$);\n }", "private Message(Builder builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }", "public static Builder builder() {\n return new Builder();\n }" ]
[ "0.8311735", "0.8305381", "0.81672674", "0.81672674", "0.8131507", "0.80071", "0.7755974", "0.7755974", "0.7755974", "0.7741234", "0.7679628", "0.76100254", "0.7569448", "0.75481296", "0.75481296", "0.7470021", "0.7138258", "0.71350884", "0.7082036", "0.7076072", "0.7062449", "0.7034291", "0.69686466", "0.69628525", "0.6961884", "0.6957166", "0.69310474", "0.69174033", "0.69168544", "0.6888947", "0.6879988", "0.68607044", "0.683345", "0.68000203", "0.6775935", "0.67616326", "0.6757362", "0.6754308", "0.6722786", "0.67197305", "0.6675631", "0.6669382", "0.66372955", "0.6636523", "0.66193616", "0.6618359", "0.6617419", "0.66131556", "0.6610786", "0.66073453", "0.6602601", "0.6601501", "0.6597157", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587857", "0.6587283", "0.6587283", "0.6587283", "0.6587283", "0.6583078", "0.6582863", "0.6576391", "0.6560125", "0.65600896", "0.6555541", "0.6555541", "0.6555541", "0.6554351", "0.6554351", "0.65477794", "0.65379447", "0.65359855", "0.65226704", "0.65226704", "0.65226704", "0.65226704", "0.6519333", "0.6519333", "0.6519333", "0.6519333", "0.6519333", "0.6519333", "0.6519333" ]
0.0
-1
Mozda treba da se zameni sa .findById(id); //WLQMPEK Razlika izmedju dve metode je sto getOne radi lazyLoding dok findById skida ceo Objekat.
@Override public Lekar findOne(Long id) { return lekarRepozitorijum.getOne(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Object findById(long id) {\n\t\treturn null;\r\n\t}", "public Data findById(Object id);", "@Override\n\tpublic PI findById(Long id) throws NotFoundException {\n\t\treturn null;\n\t}", "public abstract T findOne(int id);", "T findOne(I id);", "@Override\r\n\t@Transactional(readOnly=true)\r\n\tpublic Orden findById(Long id) {\n\t\treturn ordenRepository.findById(id).orElse(null);\r\n\t}", "public CyPoj findById(Integer id) {\n\t\treturn d.findById(id);\r\n\t}", "@Override\n @Transactional\n public Producto findById(long id) {\n return productoDao.findById(id);\n }", "@Override\n public T findById(ID id) {\n return crudRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"Can not find an entity with id: \" + id));\n }", "Corretor findOne(Long id);", "@Override\r\n public Optional<Product> findbyId(Long id) {\r\n return productRepository.findById(id);\r\n }", "@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}", "@Override\n\tpublic DomainObject find(long id) {\n\t\treturn null;\n\t}", "@Override\n\tpublic ResponseEntity<?> findOne(Long id) {\n\t\treturn null;\n\t}", "@Override\n public Model findByID(PK id) throws ServiceException {\n \t\n \tModel model = getModel();\n \t\n \tMethod method = null;\n\t\ttry {\n\t\t\tmethod = model.getClass().getMethod(\"setId\", new Class[]{ Integer.class });\n\t\t\tmethod.setAccessible(true);\n\t\t\tmethod.invoke(model, new Object[]{ id });\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \t\n \tModel result = null;\n \t\n \ttry {\n \t\tMap<String, Object> map = getDao().findByID(model);\n \tresult = buildModel(map);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ServiceException(ResultCode.DB_ERROR);\n\t\t}\n \t\n return result;\n }", "T findOne(Long id);", "E findById(K id);", "@Override\n @Transactional(readOnly = true)\n public Optional<LinhvucDTO> findOne(Long id) {\n log.debug(\"Request to get Linhvuc : {}\", id);\n return linhvucRepository.findById(id)\n .map(linhvucMapper::toDto);\n }", "E find(Id id) throws RepositoryException;", "@Override\n\tpublic Gasto findById(Integer id) {\n\t\treturn gastoModel.findById(id).orElseThrow(null);\n\t}", "@Override\n\tpublic Document find(int id) {\n\t\treturn null;\n\t}", "T findById(ID id) ;", "@Override\n @Transactional(readOnly = true)\n public ProductDTO findOne(Long id) {\n log.debug(\"Request to get Product : {}\", id);\n Product product = productRepository.findOneWithEagerRelationships(id);\n return productMapper.toDto(product);\n }", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\t\tpublic ResponseEntity<Optional<Pedido>> find(@PathVariable Integer id) {\n\t\t\tOptional<Pedido> obj = service.find(id);\n\t\t\treturn ResponseEntity.ok().body(obj);\n\t\t}", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "public Pessoa find(Long id){\n\t\treturn db.findOne(id);\n\t}", "@Transactional(readOnly = true) \n public Product findOne(Long id) {\n log.debug(\"Request to get Product : {}\", id);\n Product product = productRepository.findOne(id);\n return product;\n }", "@Test\n public void testFindById() {\n System.out.println(\"findById\");\n Integer id = 1;\n PrioridadRest instance = mokPrioridadRest;\n Prioridad expResult = new Prioridad(1);\n Prioridad result = instance.findById(id);\n assertEquals(expResult, result);\n \n }", "@Transactional(readOnly = true)\n public Optional<KohnegiDTO> findOne(Long id) {\n log.debug(\"Request to get Kohnegi : {}\", id);\n return kohnegiRepository.findById(id)\n .map(kohnegiMapper::toDto);\n }", "@Transactional(readOnly = true)\n public Optional<DRkDTO> findOne(Long id) {\n log.debug(\"Request to get DRk : {}\", id);\n return dRkRepository.findById(id).map(dRkMapper::toDto);\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<Kontrachent> findOne(Long id) {\n log.debug(\"Request to get Kontrachent : {}\", id);\n return kontrachentRepository.findById(id);\n }", "@Override\n\tpublic Facture findById(int id) {\n\t\treturn null ;\n\t}", "@Override\r\n public Dorm findById(Integer id) {\n return userMapper.findById(id);\r\n }", "@Transactional(readOnly = true)\n public Optional<RecipeDTO> findOne(Long id) {\n log.debug(\"Request to get Recipe : {}\", id);\n return recipeRepository.findById(id)\n .map(recipeMapper::toDto);\n }", "@Override\n\t@Transactional\n\tpublic Optional<DetalleCarrito> findById(Integer id) throws Exception {\n\t\treturn detalleCarritoRepository.findById(id);\n\t}", "@Override\r\n\tpublic Personne find(int id) {\n\t\treturn null;\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<StudenteDTO> findOne(Long id) {\n log.debug(\"Request to get Studente : {}\", id);\n return studenteRepository.findOneWithEagerRelationships(id)\n .map(studenteMapper::toDto);\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<Recipe> findOne(Long id) {\n log.debug(\"Request to get Recipe : {}\", id);\n return recipeRepository.findById(id);\n }", "@Transactional(readOnly = true)\n\t@Override\n\tpublic T findOne(Integer id) {\n\t\treturn (T) registroDao.findById(id).orElse(null);\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<Avistamiento> findOne(Long id) {\n log.debug(\"Request to get Avistamiento : {}\", id);\n return avistamientoRepository.findOneWithEagerRelationships(id);\n }", "@Override\n\tpublic Oeuvre findOeuvreById(Long id) {\n\t\treturn oeuvreDao.findById(id).get();\n\t}", "T findById(Integer id);", "@Override\n public Complex findById(final Integer id) throws PersistentException {\n ComplexDao complexDao = transaction.createDao(ComplexDao.class);\n Complex complex = complexDao.read(id);\n if (complex != null) {\n findExercises(complex);\n }\n return complex;\n }", "@Override\n\tpublic T findById(ID id) {\n\t\treturn parserEntity(this.getConcreteDAO().findById(id));\n\t}", "@Override\n public SideDishEntity find(Long id) throws ObjectNotFoundUserException {\n return null;\n }", "@Override\n\tpublic Object findByIdObject(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "@Override\n @SuppressWarnings(\"unchecked\")\n public T findById(ID id) {\n return (T) this.getSession().load(this.getPersistentClass(), id);\n }", "@Transactional(readOnly = true)\n public Optional<HarnaisDTO> findOne(Long id) {\n log.debug(\"Request to get Harnais : {}\", id);\n return harnaisRepository.findById(id)\n .map(harnaisMapper::toDto);\n }", "@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}", "@Override\n\tpublic Person findOne(Integer id) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Recipe findById(Integer id) {\n\t\treturn null;\n\t}", "@Override\n public Optional<T> findById(ID id) {\n T entity = getSession().get(this.getPersistentClass(), id);\n return Optional.ofNullable(entity);\n }", "public Invoice findById(long id);", "@Override\n public ModeloCuestionario findOne(Integer id) {\n return modeloCuestionarioRepository.findOne(id);\n }", "@Override\n\tpublic Optional<Product> findById(Long id) {\n\t\t return productRepository.findById(id);\n\t}", "@Transactional(readOnly = true)\n public Optional<Fonction> findOne(Long id) {\n log.debug(\"Request to get Fonction : {}\", id);\n return fonctionRepository.findById(id);\n }", "@Override\n @Transactional(readOnly = true)\n public Paciente getById(String id) {\n Optional<Paciente> pacienteContainer = this.pacienteRepository.findById(id);\n if(pacienteContainer.isPresent()){\n return pacienteContainer.get();\n }\n return null;\n }", "Optional<NegozioDTO> findOne(Long id);", "@Override\n public User findById(long id) {\n return dao.findById(id);\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<OrdreDTO> findOne(Long id) {\n log.debug(\"Request to get Ordre : {}\", id);\n return ordreRepository.findById(id)\n .map(ordreMapper::toDto);\n }", "@Override\n\tpublic Factura findById(Integer id) {\n\t\treturn facturaRepository.findById(id).orElse(null);\n\t}", "@Override\n\tpublic Optional<Opcion> findById(Integer id) throws Exception {\n\t\treturn opcionRepository.findById(id);\n\t}", "NoteDTO findOne(Long id);", "@Transactional(readOnly = true)\n public Optional<InsuranceObjectDTO> findOne(Long id) {\n log.debug(\"Request to get InsuranceObject : {}\", id);\n return insuranceObjectRepository.findById(id)\n .map(insuranceObjectMapper::toDto);\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<PomocniMaterijal> findOne(Long id) {\n log.debug(\"Request to get PomocniMaterijal : {}\", id);\n return pomocniMaterijalRepository.findById(id);\n }", "@Override\n public AlunoDTO findOne(String id) {\n log.debug(\"Request to get Aluno : {}\", id);\n Aluno aluno = alunoRepository.findOne(id);\n return alunoMapper.toDto(aluno);\n }", "@Transactional(readOnly = true)\n public Patient findOne(Long id) {\n log.debug(\"Request to get Patient : {}\", id);\n Patient patient = patientRepository.findOne(id);\n return patient;\n }", "@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}", "@Override\n\tprotected Model fetchOne(int id) {\n\t\treturn null;\n\t}", "@Transactional(readOnly = true)\n public Movie findOne(Long id) {\n log.debug(\"Request to get Movie : {}\", id);\n return movieRepository.findOne(id);\n }", "public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }", "@Override\n public Person findByID(Long id) {\n Session session = getSessionFactory().openSession();\n Person p = session.load(Person.class, id);\n session.close();\n return p;\n }", "@Override\n @Transactional(readOnly = true)\n public PermisoDTO findOne(Long id) {\n log.debug(\"Request to get Permiso : {}\", id);\n Permiso permiso = permisoRepository.findOne(id);\n PermisoDTO permisoDTO = permisoMapper.permisoToPermisoDTO(permiso);\n return permisoDTO;\n }", "@Transactional(readOnly=true)\n\t@Override\n\tpublic Optional<Paradero> findById(Integer id) throws Exception {\n\t\treturn paraderoRespository.findById(id);\n\t}", "@Override\r\n\tpublic Book findById(Long id) {\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tOptional<Product> findById(String id);", "@Override\n\tpublic String findById() {\n\t\treturn null;\n\t}", "T findById(final ID id) throws RequiredValueException, NoEntityFoundException;", "public Recipe findById(Long id) {\n\t\tOptional<Recipe> findRecipe = recipeRepository.findById(id);\n\t\tif(findRecipe.isPresent()) {\n\t\t\treturn findRecipe.get();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Optional<Persona> findById(Long id);", "@Override\n\tpublic T findById(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "Optional<ItemPedido> findOne(Long id);", "@Override\r\n\tpublic T findById(Long id) {\n\t\tif(id==null)\r\n\t\t\treturn null;\r\n\t\treturn (T) getSession().get(clazz, id);\r\n\t}", "@Override\r\n\tpublic User findById(int id) {\n\t\treturn null;\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<HabilitationDTO> findOne(Long id) {\n log.debug(\"Request to get Habilitation : {}\", id);\n return habilitationRepository.findById(id)\n .map(habilitationMapper::toDto);\n }", "@Transactional(readOnly = true)\n public Optional<CandidatoDTO> findOne(Long id) {\n log.debug(\"Request to get Candidato : {}\", id);\n return candidatoRepository.findById(id).map(candidatoMapper::toDto);\n }", "public o selectById(long id);", "public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }", "@Override\n\tpublic Editore getOneById(int id) {\n\t\treturn null;\n\t}", "Optional<T> findOne(K id);", "@Transactional(propagation = Propagation.MANDATORY)\n\tpublic default E getOne(K id) {\n\t\treturn getRepository().getOne(id);\n\t}", "@Transactional(readOnly = true)\n public Optional<NextOfKinDTO> findOne(Long id) {\n log.debug(\"Request to get NextOfKin : {}\", id);\n return nextOfKinRepository.findById(id)\n .map(nextOfKinMapper::toDto);\n }", "@Transactional(readOnly = true)\n public Optional<CaraterDaInternacaoDTO> findOne(Long id) {\n log.debug(\"Request to get CaraterDaInternacao : {}\", id);\n return caraterDaInternacaoRepository.findById(id)\n .map(caraterDaInternacaoMapper::toDto);\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<Mock> findOne(Long id) {\n log.debug(\"Request to get Mock : {}\", id);\n return mockRepository.findById(id);\n }", "public AsxDataVO findOne(String id) {\n\t\t return (AsxDataVO) mongoTemplate.findOne(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}", "@Override\r\n\tpublic Libro read(int id) {\n\t\treturn libroRepository.findById(id).get();\r\n\t}", "public abstract T findEntityById(int id);", "@Override\n public MyBook findById(final int id) {\n System.err.println(\"MyBookRepositoryImpl:159 - not implement\");\n System.exit(1);\n return null;\n }", "@Override\n\tpublic Answer findById(String id) {\n\t\treturn answerRepository.findById(id).get();\n\t}", "@Override\n\tpublic Propisi findOne(Long id) {\n\t\treturn null;\n\t}", "@Override\n public Optional<DuLieuBaoCaoDTO> findOne(String id) {\n log.debug(\"Request to get DuLieuBaoCao : {}\", id);\n return duLieuBaoCaoRepository.findById(id)\n .map(duLieuBaoCaoMapper::toDto);\n }" ]
[ "0.7576187", "0.75246775", "0.7438553", "0.74069816", "0.7355556", "0.7293481", "0.72761893", "0.7246736", "0.72348195", "0.72278255", "0.72244215", "0.71874905", "0.7181766", "0.71805996", "0.7154508", "0.7153977", "0.714505", "0.71389556", "0.7136806", "0.71297634", "0.7129647", "0.71184397", "0.7110203", "0.7099486", "0.7094987", "0.70839703", "0.7060928", "0.70598453", "0.70524395", "0.7046928", "0.704639", "0.70424074", "0.7041555", "0.70378834", "0.7033683", "0.7025251", "0.70180947", "0.701381", "0.7000979", "0.69972754", "0.6981581", "0.6972039", "0.6959561", "0.6950665", "0.6943547", "0.6939792", "0.6939667", "0.6936984", "0.69321495", "0.6925857", "0.6921733", "0.6916142", "0.69078577", "0.68997663", "0.6894201", "0.68880576", "0.6887164", "0.6879256", "0.6868204", "0.686382", "0.68621516", "0.68620926", "0.6857324", "0.68550354", "0.6853943", "0.685266", "0.68412", "0.6837919", "0.68370336", "0.6830471", "0.682602", "0.68179166", "0.6813893", "0.6812945", "0.68087006", "0.68048376", "0.6801355", "0.67916036", "0.67912537", "0.6787208", "0.6787143", "0.6783068", "0.6782482", "0.6779526", "0.67694", "0.6767593", "0.67645055", "0.6761027", "0.6758813", "0.6758194", "0.67566687", "0.6755962", "0.6753126", "0.675111", "0.6747638", "0.6745019", "0.673625", "0.6736223", "0.67319965", "0.6730862", "0.6730648" ]
0.0
-1
Texture Manager GameOverMessage private List ranking; private Map score;
public SpaceShooter(UbiquiGamePlatform platform){ super(platform); this.platform = platform; gsm = new GameStateManager(); this.instance = this; // GameOverMessage vars // this.ranking = new ArrayList<Player>(); // this.score = new HashMap<Player, Integer>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void gameOver() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Game is over. Calculating points\");\r\n\t\tstatus = \"over\";\r\n\t\ttry {\r\n\t\t\tupdateBoard();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tupdateEvents(false);\r\n\t\tEmbedBuilder embed = new EmbedBuilder();\r\n\t\tembed.setTitle(\"Game Results\");\r\n\t\tMap<Integer, Integer> scores = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tscores.put(i,players.get(i).calculatePoints());\r\n\t\t\t// Utils.getName(players.get(i).getPlayerID(),guild)\r\n\t\t}\r\n\t\t\r\n\t\tList<Entry<Integer, Integer>> sortedList = sortScores(scores);\r\n\t\t\r\n\t\t// If tied, add highest artifact values\r\n\t\tif ((playerCount > 1) && (sortedList.get(0).getValue().equals(sortedList.get(1).getValue()))) {\r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Scores were tied\");\r\n\t\t\tint highestScore = sortedList.get(0).getValue();\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : sortedList) {\r\n\t\t\t\t// Only add artifacts to highest scores\r\n\t\t\t\tif (entry.getValue().equals(highestScore)) {\r\n\t\t\t\t\tscores.put(entry.getKey(),entry.getValue()+players.get(entry.getKey()).getHighestArtifactValue());\r\n\t\t\t\t\tplayers.get(entry.getKey()).setAddedArtifactValue(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Sort with added artifact values\r\n\t\tsortedList = sortScores(scores);\r\n\t\t\r\n\t\t// Assigns 1st, 2nd, 3rd\r\n\t\tfor (int i = 0; i < sortedList.size(); i++) {\r\n\t\t\tMap.Entry<Integer, Integer> entry = sortedList.get(i);\r\n\t\t\t// If tie, include artifact\r\n\t\t\tString name = Utils.getName(players.get(entry.getKey()).getPlayerID(),guild);\r\n\t\t\tif (players.get(entry.getKey()).getAddedArtifactValue()) {\r\n\t\t\t\tint artifactValue = players.get(entry.getKey()).getHighestArtifactValue();\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+(entry.getValue()-artifactValue)+\" (\"+artifactValue+\")``\",true);\r\n\t\t\t} else {\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+entry.getValue()+\"``\",true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tembed.setFooter(\"Credit to Renegade Game Studios\", null);\r\n\t\tgameChannel.sendMessage(embed.build()).queueAfter(dragonAttackingDelay+3000,TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\tGlobalVars.remove(this);\r\n\t}", "void showRanking(String winner, String rank);", "public void gameOver() {\n\t\tgameResult = new GameResult(writer);\n\n\t\tString winnersName = \"\";\n\t\tString resultList = \"\";\n\n\t\tGamePlayer[] tempList = new GamePlayer[playerList.size()];\n\t\tfor (int i = 0; i < tempList.length; i++) {\n\t\t\ttempList[i] = playerList.get(i);\n\t\t}\n\n\t\tArrays.sort(tempList); // Sort the players according to the scores\n\n\t\tint max = tempList[tempList.length - 1].getPlayerScore();\n\t\tint position = 0;\n\n\t\tfor (int i = tempList.length - 1; i >= 0; i--) {\n\t\t\tif (max == tempList[i].getPlayerScore()) {\n\t\t\t\twinnersName += tempList[i].getPlayerName() + \"\\t\";\n\t\t\t}\n\t\t\tresultList += \"No.\" + (++position) + \"\\t\" + tempList[i].getPlayerName() + \"\\t\"\n\t\t\t\t\t+ tempList[i].getPlayerScore() + \"\\n\";\n\t\t}\n\t\tgameResult.initialize(winnersName, resultList, roomNumber, gameRoom);\n\t\tframe.dispose();\n\t}", "private void showSpecificWobblyScore(MessageChannel channel) {\n int index = 0;\n try {\n index = Integer.parseInt(matchId) - 1;\n }\n catch(NumberFormatException e) {\n e.printStackTrace();\n }\n if(index < 0 || index > leaderboard.size() - 1) {\n channel.sendMessage(\"That's not a rank!\").queue();\n return;\n }\n WobblyScore score = leaderboard.get(index);\n Map map = score.getMap();\n\n EmbedBuilder entryEmbedBuilder = new EmbedBuilder()\n .setTitle(codManager.getGameName() + \" Wobbly Rank #\" + (index + 1))\n .setThumbnail(thumbnail)\n .setDescription(\"Use **\" + getTrigger() + \" wobblies** to view the full leaderboard.\")\n .addField(\"Name\", score.getPlayerName(), true)\n .addField(\"Date\", score.getDateString(), true)\n .addBlankField(true)\n .addField(\"Wobblies\", MatchPlayer.formatDistance(score.getWobblies(), \"wobblies\"), true)\n .addField(\"Metres\", MatchPlayer.formatDistance(score.getMetres(), \"metres\"), true)\n .addBlankField(true)\n .addField(\"Map\", score.getMap().getName(), true)\n .addField(\"Mode\", score.getMode().getName(), true)\n .addBlankField(true)\n .addField(\"Match ID\", score.getMatchId(), true)\n .setColor(EmbedHelper.PURPLE);\n\n if(map.hasImageUrl()) {\n entryEmbedBuilder.setImage(map.getImageUrl());\n }\n channel.sendMessage(entryEmbedBuilder.build()).queue();\n }", "private void gameOver() {\n\t\t\n\t}", "protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }", "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 }", "@Override\n public void youWin(Map<String, Integer> rankingMap) {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEnded(\"YOU WON, CONGRATS BUDDY!!\", rankingMap);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending you won error\");\n }\n }", "private void renderGuiGameOverMessage (SpriteBatch batch)\n\t{\n\t\tfloat x = cameraGUI.viewportWidth / 2;\n\t\tfloat y = cameraGUI.viewportHeight / 2;\n\t\t\n\t\tif (worldController.isGameOver())\n\t\t{\n\t\t\tBitmapFont fontGameOver = Assets.instance.fonts.defaultBig;\n\t\t\tfontGameOver.setColor(1, 0.75f, 0.25f, 1);\n\t\t\t\n\n\t\t\tfontGameOver.draw(batch, \"GAME OVER\", x, y, 1, Align.center, false);\n\t\t\t\n\t\t\tfontGameOver.setColor(1, 1, 1, 1);\n\t\t}\n\t}", "public void display_game_over_text () {\n\n fill(150, 100);\n rect(0, 0, displayW, displayH);\n\n textFont(myFont);\n textAlign(CENTER);\n textSize(displayH/20);\n fill(255);\n text(\"Game Over\", displayW/2, 3*displayH/7);\n\n if (score.winnerName == \"Pacmax\") {\n text(\"Winner is Pacmax! Your score is \" + score.score, displayW/2, 4*displayH/7);\n } else {\n text(\"Winner is Blinky!\", displayW/2, 4*displayH/7);\n }\n\n mySound.play_game_over_song();\n\n isKeyInputAllowed = false;\n }", "@Override\n public void youLose(Map<String, Integer> rankingMap) {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEnded(\" YOU LOSE, SORRY \", rankingMap);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending you lose error\");\n }\n }", "private void renderGuiGameOverMessage(SpriteBatch batch)\n {\n float x = cameraGui.viewportWidth / 2;\n float y = cameraGui.viewportHeight / 2;\n if (worldController.isGameOver())\n {\n BitmapFont fontGameOver = Assets.instance.fonts.defaultBig;\n fontGameOver.setColor(1, 0.75f, 0.25f, 1);\n fontGameOver.draw(batch, \"GAME OVER\", x, y, 0, Align.center, false);\n fontGameOver.setColor(1, 1, 1, 1);\n }\n }", "default void onGameOver(ScotlandYardView view, Set<Colour> winningPlayers) {}", "@Override\n\tpublic void onGameOver(ReadOnlyBoard board, Counter winner) {\n\n\t}", "public void gameOver() \n {\n ScoreBoard endGame = new ScoreBoard(\"You Lose!\", scoreCounter.getValue());\n addObject(endGame, getWidth()/2, getHeight()/2);\n }", "void gameOver();", "void gameOver();", "public int score(){\r\n\t\t//to be implemented: should return game score \r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t{\r\n\t\t\tscore= frames.get(i).score();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn score + bonusGame;\r\n\t}", "public void gameOver() {\n\t}", "public void score(){\r\n\t\tint playerLocation = player.getLocationX();\r\n\t\tint obstacleX = obstacle.getLocationX();\r\n\t\tint obstacleY = obstacle.getLocationY();\r\n\r\n\r\n\t\tstr =\"\" + countCoins;\r\n\r\n\t\t//if you hit a coin, the number of points goes up by one.\r\n\t\tif(obstacleY == 280 && obstacleX==300 && playerLocation == 250){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\t\tif(obstacleY== 450 && obstacleX==300 && playerLocation ==450){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\r\n\t\t//if you hit the green monster, you lose one point.\r\n\t\tif((obstacleX-50) == 250 && (obstacleY-240) == 250 && playerLocation ==250){\r\n\t\t\tcountCoins--;\r\n\t\t}\r\n\r\n\t\t//if you hit the blue monster, you lose 3 points.\r\n\t\tif((obstacleX+180) == 480 && (obstacleY+180) == 250 && playerLocation ==450){\r\n\t\t\tcountCoins-=3;\r\n\t\t}\r\n\t}", "@Override\n protected String checkIfGameOver() {\n if(pgs.getP0Score() >= 50){\n return playerNames[0] + \" \" + pgs.getP0Score();\n }else if(pgs.getP1score() >= 50){\n return playerNames[1] + \" \" + pgs.getP1score();\n }\n\n return null;\n }", "@Test\n\tpublic void testAddScoreAndGetWinner2() throws BattleshipException {\n\t\t\n\t\t//Play Julia\n\t\tinitScores(playerJulia);\n\t\t\t\n\t\t//Julia realiza 46 disparos a distintos Crafts y destruye 46 Destroyer, 10 Cruiser y 5 Bomber\n\t\tfor (int i=0; i<46; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tcraftScore.score(CraftFactory.createCraft(\"ship.Destroyer\", Orientation.NORTH));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Cruiser\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Bomber\", Orientation.EAST));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Julia(PlayerFile):263\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Julia(PlayerFile):46\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Raul\n\t\tinitScores(playerRaul);\n\t\t//Raul realiza 45 disparos a distintos Crafts y destruye 10 Carrier, 30 Battleship y 5 Fighter\n\t\tfor (int i=0; i<45; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tif (i<30) craftScore.score(CraftFactory.createCraft(\"ship.Battleship\", Orientation.NORTH));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Carrier\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Fighter\", Orientation.EAST));\n\t\t}\n\t\t\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Raul(PlayerRandom):310\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Julia(PlayerFile):46\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Laura\n\t\tinitScores(playerLaura);\n\t\t//Laura realiza 120 disparos a distintos Crafts y destruye 30 Battleship, 10 Cruiser y 5 Fighter\n\t\tfor (int i=0; i<120; i++) {\n\t\t\thitScore.score(CellStatus.HIT);\n\t\t\tif (i<30) craftScore.score(CraftFactory.createCraft(\"ship.Battleship\", Orientation.EAST));\n\t\t\tif (i<10) craftScore.score(CraftFactory.createCraft(\"ship.Cruiser\", Orientation.WEST));\n\t\t\tif (i<5) craftScore.score(CraftFactory.createCraft(\"aircraft.Fighter\", Orientation.SOUTH));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Raul(PlayerRandom):310\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Laura(PlayerRandom):120\",hitRanking.getWinner().toString());\n\t\t\n\t\t//Play Simon\n\t\tinitScores(playerSimon);\n\t\t//Simon realiza 100 disparos a distintos Crafts y destruye 40 Bomber, 15 Destroyer y 75 Transport\n\t\tfor (int i=0; i<100; i++) {\n\t\t\thitScore.score(CellStatus.DESTROYED);\n\t\t\tif (i<40) craftScore.score(CraftFactory.createCraft(\"aircraft.Bomber\", Orientation.NORTH));\n\t\t\tif (i<15) craftScore.score(CraftFactory.createCraft(\"ship.Destroyer\", Orientation.WEST));\n\t\t\tif (i<75) craftScore.score(CraftFactory.createCraft(\"aircraft.Transport\", Orientation.EAST));\n\t\t}\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareScores(\"Simon(PlayerFile):1995\",craftRanking.getWinner().toString());\t\n\t\tcompareScores(\"Laura(PlayerRandom):120\",hitRanking.getWinner().toString());\n\t\tcompareRankings(SRANKING4, rankingsToString());\n\t}", "private void drawScore() {\n\t\tString score = myWorld.getScore() + \"\";\n\n\t\t// Draw shadow first\n\t\tAssetLoader.shadow.draw(batcher, \"\" + myWorld.getScore(), (136 / 2)\n\t\t\t\t- (3 * score.length()), 12);\n\t\t// Draw text\n\t\tAssetLoader.font.draw(batcher, \"\" + myWorld.getScore(), (136 / 2)\n\t\t\t\t- (3 * score.length() - 1), 11);\n\n\t}", "private void gameOver(Graphics g) {\r\n String msg = \"Game Over!\";\r\n String msgScore = \"Your Score: \"+score;\r\n Font small = new Font(\"Helvetica\", Font.BOLD, 14);\r\n FontMetrics metr = getFontMetrics(small);\r\n //set color of text\r\n g.setColor(Color.white);\r\n //set font to small\r\n g.setFont(small);\r\n //draw string message in the center of the screen\r\n g.drawString(msg, (BRDWIDTH - metr.stringWidth(msg)) / 2, BRDHEIGHT / 2);\r\n g.drawString(msgScore, (BRDWIDTH - metr.stringWidth(msg)) / 2, BRDHEIGHT / 3);\r\n }", "void onScoresChanged(int scores);", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\t\n\t int number = (int)(Math.random()*3);\n\t if(number == 1) {\n\t \ttxt.setText(\"你出石頭,電腦出剪刀,你贏了\");\n\t \ti++;\n\t \tai.setText(\"剪刀\");\n\t \tplayer.setText(\"石頭\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.scissor);\n\t \timg2.setImageResource(R.drawable.rock);\n\t }\n\t else if(number == 2) {\n\t \ttxt.setText(\"都出石頭,平手\");\n\t \tk++;\n\t \tai.setText(\"石頭\");\n\t \tplayer.setText(\"石頭\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.rock);\n\t \timg2.setImageResource(R.drawable.rock);\n\t }\n\t else {\n\t \ttxt.setText(\"你出石頭,電腦出布,你輸了\");\n\t \tj++;\n\t \tai.setText(\"布\");\n\t \tplayer.setText(\"石頭\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.paper);\n\t \timg2.setImageResource(R.drawable.rock);\n\t }\n\t\t}", "@Override\n public void Render(SpriteBatch batch) {\n float high_score=0;\n try{\n File file = new File(\"game/src/main/java/com/group5/game/Types/UI/leaderboard.txt\");\n Scanner scan = new Scanner (file);\n high_score = Float.parseFloat(scan.nextLine());\n scan.close();\n }\n catch(FileNotFoundException e){ high_score = -1; }\n\n //overwrite with the new high score, if applicable\n if (Game.GetInstance().GetScore() > high_score){\n high_score = Game.GetInstance().GetScore();\n File file = new File(\"game/src/main/java/com/group5/game/Types/UI/leaderboard.txt\");\n\n if (file.exists()){\n try{\n Writer fileWriter = new FileWriter(\"game/src/main/java/com/group5/game/Types/UI/leaderboard.txt\");\n fileWriter.write(String.valueOf(high_score));\n fileWriter.close();\n }\n catch(IOException ioe){}\n }\n }\n\n finalScore.setText(\"Your Score: \" + Game.GetInstance().GetScore());\n finalTime.setText(\"Final Time: \" + String.format(\"%.01f\", Game.GetInstance().GetElapsedTime()));\n highScore.setText(\"High Score: \" + String.format(\"%.01f\", high_score));\n\n stage.draw();\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\t\n\t int number = (int)(Math.random()*3);\n\t if(number == 1) {\n\t \ttxt.setText(\"都出剪刀,平手\"); \n\t \tk++;\n\t \tai.setText(\"剪刀\");\n\t \tplayer.setText(\"剪刀\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.scissor);\n\t \timg2.setImageResource(R.drawable.scissor);\n\t }\n\t else if(number == 2) {\n\t \ttxt.setText(\"你出剪刀 ,電腦出石頭,你輸了\");\n\t \tj++;\n\t \tai.setText(\"石頭\");\n\t \tplayer.setText(\"剪刀\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.rock);\n\t \timg2.setImageResource(R.drawable.scissor);\n\t }\n\t else {\n\t \ttxt.setText(\"你出剪刀,電腦出布,你贏了\");\n\t \ti++;\n\t \tai.setText(\"布\");\n\t \tplayer.setText(\"剪刀\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.paper);\n\t \timg2.setImageResource(R.drawable.scissor);\n\t }\n\t\t}", "private void gameOver() {\n\t\tAsteroidsGameOverString gameOverString = new AsteroidsGameOverString(GameObject.ROOT);\n\t\tgameOverString.setScale(new Vector3(5.0, 5.0, 5.0));\n\t\tgameOverString.translate(new Vector3(0.0, 8.0));\n\t}", "public void updateScore(int score){ bot.updateScore(score); }", "public abstract String getGameOverText();", "public void gameOver() {\n // if (ENABLE_SOUND) {\n // sfx.endGame();\n // }\n doLeaderboard = true;\n frameRate(10);\n //this.state = GameState.MENU;\n //If line 151 runs, it bypasses the gameover leaderboard screen for some reason\n //redraw();\n}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\t\n\t int number = (int)(Math.random()*3);\n\t if(number == 1) {\n\t \ttxt.setText(\"你出布,電腦出剪刀,你輸了\");\n\t \tj++;\n\t \tai.setText(\"剪刀\");\n\t \tplayer.setText(\"布\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.scissor);\n\t \timg2.setImageResource(R.drawable.paper);\n\t }\n\t else if(number == 2) {\n\t \ttxt.setText(\"你出布 ,電腦出石頭,你贏了\");\n\t \ti++;\n\t \tai.setText(\"石頭\");\n\t \tplayer.setText(\"布\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.rock);\n\t \timg2.setImageResource(R.drawable.paper);\n\t }\n\t else {\n\t \ttxt.setText(\"都出布,平手\");\n\t \tk++;\n\t \tai.setText(\"布\");\n\t \tplayer.setText(\"布\");\n\t \tscore.setText(i+\"勝\"+j+\"負\"+k+\"和\");\n\t \timg1.setImageResource(R.drawable.paper);\n\t \timg2.setImageResource(R.drawable.paper);\n\t }\n\t\t}", "private void scoreloss() {\n \tif (playerturn%2==0) {\n \tscoreplayer1 = scoreplayer1-1;}\n if(playerturn%2==1) {\n \tscoreplayer2 = scoreplayer2-1;\n }\n }", "private void renderGuiScore (SpriteBatch batch) \n\t{\n\t\t//float x = -15;\n\t\t//float y = -15;\n\t\t//batch.draw(Assets.instance.goldCoin.goldCoin, x, y, 50, 50, 100,\n\t\t//\t\t100, 0.35f, -0.35f, 0);\n\t\t//Assets.instance.fonts.defaultBig.draw(batch, \"\" + worldController.score,\n\t\t//\t\tx + 75, y + 37);\n\t\t\n\t\tfloat x = -15;\n\t\tfloat y = -15;\n\t\tfloat offsetX = 50;\n\t\tfloat offsetY = 50;\n\t\tif (worldController.scoreVisual<worldController.score) \n\t\t{\n\t\t long shakeAlpha = System.currentTimeMillis() % 360;\n\t\t float shakeDist = 1.5f;\n\t\t offsetX += MathUtils.sinDeg(shakeAlpha * 2.2f) * shakeDist;\n\t\t offsetY += MathUtils.sinDeg(shakeAlpha * 2.9f) * shakeDist;\n\t\t}\n\t\tbatch.draw(Assets.instance.goldCoin.goldCoin, x, y, offsetX,\n\t\toffsetY, 100, 100, 0.35f, -0.35f, 0);\n\t\tAssets.instance.fonts.defaultBig.draw(batch, \"\" + (int)worldController.scoreVisual, x + 75, y + 37);\n\t}", "@Override\n public void gameOver(Result result, Move lastMove) {\n }", "public int getPlayerScore();", "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 gameOver() {\n ScoreBoard.write(ScoreController.getScoresPath());\n populate();\n }", "public static void displayHighScorePosition(String playersName, int position){\n System.out.println(playersName + \" managed to get into position \" + position + \" on the high score table\");\n }", "private void drawGameOver(Graphics g) {\n\t\tString msg;\n\t\tFont small = new Font(\"Helvetica\", Font.BOLD, 75);\n\t\tFontMetrics fm = getFontMetrics(small);\n\n\t\tif (p1score == p2score) {\n\t\t\tImageIcon ii = new ImageIcon(\"t71.gif\");\n\t\t\timage = ii.getImage();\n\t\t} else {\n\t\t\tImageIcon ii = new ImageIcon(\"g_over.gif\");\n\t\t\timage = ii.getImage();\n\t\t}\n\n\t\tg.drawImage(image, 0, 0, 1024, 768, this);\n\t\tif (p1score > p2score) {\n\t\t\tmsg = \"Congratulations COMPUTER\" + \"!\";\n\t\t\tg.setColor(Color.white);\n\t\t\tg.setFont(small);\n\t\t\tg.drawString(msg, (1024 - fm.stringWidth(msg)) / 2, 768 / 2);\n\t\t} else if (p1score < p2score) {\n\t\t\tmsg = \"Congratulations \" + Player2 + \"!\";\n\t\t\tg.setColor(Color.white);\n\t\t\tg.setFont(small);\n\t\t\tg.drawString(msg, (1024 - fm.stringWidth(msg)) / 2, 768 / 2);\n\t\t}\n\n\t}", "public void gameOver() {\r\n grid.exposeMines();\r\n this.displayGrid();\r\n System.out.println(\"Better luck next time!\");\r\n }", "public int getOpponentScore(){\n return this.oppoScore;\n }", "private Label createGameOverLabel(){\n Label text;\n Label.LabelStyle textStyle;\n BitmapFont font = new BitmapFont();\n\n textStyle = new Label.LabelStyle();\n textStyle.font = font;\n\n text = new Label(\"GAME OVER\",textStyle);\n text.setAlignment(Align.center);\n text.setFontScale(4f*scale,4f*scale);\n text.setPosition(stage.getViewport().getCamera().viewportWidth * 0.5f,\n stage.getViewport().getCamera().viewportHeight * 0.80f);\n return text;\n }", "private void drawGameOver() {\r\n\t\tg.setColor(Color.GRAY);\r\n\t\t// creates a new font\r\n\t\tFont myFont = new Font(Font.SANS_SERIF, Font.BOLD, TetrisGame.PANEL_WIDTH * 3 / 2);\r\n\t\tg.setFont(myFont);\r\n\t\t// draws the words \"Game Over\"\r\n\t\tg.drawString(\"GAME OVER!\",\r\n\t\t\t\t TetrisGame.PANEL_WIDTH * TetrisGame.SQUARE_LENGTH / 3,\r\n\t\t\t\t TetrisGame.PANEL_HEIGHT * TetrisGame.SQUARE_LENGTH / 2);\r\n\t\t// draws the score\r\n\t\tg.drawString(game.gameOverMessage,\r\n\t\t\t\t TetrisGame.PANEL_WIDTH * TetrisGame.SQUARE_LENGTH / 3,\r\n\t\t\t\t TetrisGame.PANEL_HEIGHT * TetrisGame.SQUARE_LENGTH / 2 + 20);\r\n\t\t// draws the restart message\r\n\t\tg.drawString(\"Press R to Retry\",\r\n\t\t\t\t TetrisGame.PANEL_WIDTH * TetrisGame.SQUARE_LENGTH / 3,\r\n\t\t\t\t TetrisGame.PANEL_HEIGHT * TetrisGame.SQUARE_LENGTH / 2 + 40);\r\n\t}", "private void gameOverDisplay(Graphics g) {\r\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\r\n FontMetrics metric = getFontMetrics(small);\r\n g.setColor(Color.blue);\r\n g.setFont(small);\r\n if(winner == null) g.drawString(\"DRAW!\", (size - metric.stringWidth(\"DRAW!\")) / 2, size / 2);\r\n else g.drawString(winner.getPlayerName()+\" WIN!\", (size - metric.stringWidth(winner.getPlayerName()+\" WIN!\")) / 2, size / 2);\r\n }", "@Override\r\n\tpublic void gameOver() {\n\t\tgameOver = true;\r\n\t\tupdate();\r\n\t}", "public void gameOver(int gameOver);", "abstract void handleTheScore(ArrayList<Player> players, Question question);", "public void changeLableText(int playerScore,int computerScore);", "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 }", "@Override\npublic void update(int score) {\n\t\n}", "private void setBoardData(Map<Player, Integer> scores) {\n Map<Player, Integer> sortedMap = MapUtil.sortByValueReverse(scores);\n\n for (Player player : Bukkit.getOnlinePlayers()) {\n int line = 1;\n for (Map.Entry<Player, Integer> entry : sortedMap.entrySet()) {\n if (line > scores.size() || line > 15) return;\n\n Player scoreboardEntry = entry.getKey();\n String score = Integer.toString(entry.getValue());\n\n titleManagerAPI.setScoreboardValue(player, line, score + \" \" + ChatColor.GREEN + scoreboardEntry.getDisplayName());\n\n line++;\n }\n }\n }", "public interface Game {\n\n int NUMBER_OF_FRAMES = 10;\n int NUMBER_OF_PINS_PER_FRAME = 10;\n\n /**\n * Called each time the player rolls a ball. Ignores negative numbers\n * and anything greater than the initial number of pins per frame.\n *\n * @param pins the number of pins knocked down\n */\n void roll(int pins);\n\n /**\n * Called only at the very end of the game.\n *\n * @return The total score for each game.\n */\n int score();\n\n /**\n * @return true if this game is over.\n */\n boolean isGameOver();\n}", "public abstract void openScoreboard(Scoreboard scoreboard, Player player);", "public String getScoreboardName() {\n/* 1999 */ return getGameProfile().getName();\n/* */ }", "public void rankMatches();", "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 }", "int getRanking();", "public void gameWon()\n {\n ScoreBoard endGame = new ScoreBoard(\"You Win!\", scoreCounter.getValue());\n addObject(endGame, getWidth()/2, getHeight()/2);\n }", "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tString msg = \"score@\";\r\n\t\t\t\t\tmsg += changeRank(duiduipeng);\r\n\t\t\t\t\tmsg += changeRank(ddt);\r\n\t\t\t\t\tmsg += changeRank(tuixiangzi);\r\n\t\t\t\t\tmsg += changeRank(feiji);\r\n\t\t\t\t\t//System.out.println(msg);\r\n\t\t\t\t\tsendToAll(msg);\r\n\t\t\t\t}", "public void gameOver() {\n\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 30);\n g.setFont(small);\n g.drawString(\"GAME OVER\", 250, 300);\n g.drawString(\"PRESS R TO RESTART GAME\", 150,400 );\n if(keyManager.restart==true)\n {\n gameOver=true;\n aliens.clear();\n shotVisible=false;\n Assets.init();\n \n player = new Player(getWidth() / 2, getHeight() - 100, 1, 60, 40, this);\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 6; j++) {\n aliens.add(new Alien(150 + 50 * j, 50 + 50 * i, 1, 40, 40, this));\n }\n }\n \n \n }\n }", "void notifyGameComplete(FinalScore score);", "private void gameOver() {\n\t\tgameOver=true;\n\t}", "void win() {\n String name = score.getName();\n if (Time.getSecondsPassed() < 1) {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / 1);\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + 1 + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n } else {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / Time.getSecondsPassed());\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + Time.getSecondsPassed() + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n }\n }", "@SubscribeEvent\n\tpublic void renderOverlay(RenderGameOverlayEvent.Post e){\n\t\tif(EventManager.Enabled)\n {\n\t\t\t/** Checks if experience bar is displayed or not. If it is start code. */\n\t\tif(e.type == RenderGameOverlayEvent.ElementType.ALL){//if(e.type == ElementType.JUMPBAR || e.type == ElementType.EXPERIENCE){\n\t\t\t//String DefaultChatStringFormat = \"[{x}, {y}, {z}]\";\n\t\t\t/** Gets Biome, and compares it to nether. Then alters the coords displayed based on results */\n\t\t\tString varBiome = getBiome();\n\t\t\tif(!varBiome.equals(\"Hell\")){\n\t\t\t\t/** We are NOT in the Nether so display Overworld, and Nether Coords. */\n\t\t\t\tString coordinateString = \"{x}, {y}, {z}\";\n\t \tcoordinateString = coordinateString.replace(\"{x}\", Integer.toString(GetXCoordinate()));\n\t \tcoordinateString = coordinateString.replace(\"{y}\", Integer.toString(GetYCoordinate()));\n\t \tcoordinateString = coordinateString.replace(\"{z}\", Integer.toString(GetZCoordinate()));\n\t \t/** Display Overworld coords */\n\t \tmc.fontRendererObj.drawStringWithShadow(EnumChatFormatting.YELLOW + \"O: \" + coordinateString + \" \" + EnumChatFormatting.RED + yawCalc() + EnumChatFormatting.WHITE + \" T:\" + CalculateMessageForInfoLine(null), 2, 2, 0xffffff);\n\t \t\n\t \tString coordinateString2 = \"{x}, {y}, {z}\";\n\t \tcoordinateString2 = coordinateString2.replace(\"{x}\", Integer.toString(GetXCoordinate() / 8));\n\t \tcoordinateString2 = coordinateString2.replace(\"{y}\", Integer.toString(GetYCoordinate()));\n\t \tcoordinateString2 = coordinateString2.replace(\"{z}\", Integer.toString(GetZCoordinate() / 8));\n\t \t/** Display Nether Coords, Overworld Dived by 8*/\n\t \tmc.fontRendererObj.drawStringWithShadow(EnumChatFormatting.LIGHT_PURPLE + \"N: \" + coordinateString2 + EnumChatFormatting.GREEN + \" XP: \" + getXP(), 2, 12, 0xffffff);\n\t \t//System.out.println(\"Biome \" + varBiome + \" - coord1 \" + coordinateString + \" - coord2 \" + coordinateString2);\n\t \t}\n\t\t\telse if(varBiome.equals(\"Hell\")){\n\t\t\t\t/** We ARE in the Nether so display Nether, and Overworld Coords. */\n\t\t\t\tString coordinateString3 = \"{x}, {y}, {z}\";\n\t \tcoordinateString3 = coordinateString3.replace(\"{x}\", Integer.toString(GetXCoordinate()));\n\t \tcoordinateString3 = coordinateString3.replace(\"{y}\", Integer.toString(GetYCoordinate()));\n\t \tcoordinateString3 = coordinateString3.replace(\"{z}\", Integer.toString(GetZCoordinate()));\n\t \t/** Display Nether Coords */\n\t \tmc.fontRendererObj.drawStringWithShadow(EnumChatFormatting.LIGHT_PURPLE + \"N: \" + coordinateString3 + \" \" + EnumChatFormatting.RED + yawCalc() + EnumChatFormatting.WHITE + \" T:\" + CalculateMessageForInfoLine(null), 2, 2, 0xffffff);\n\t \t\n\t \tString coordinateString4 = \"{x}, {y}, {z}\";\n\t \tcoordinateString4 = coordinateString4.replace(\"{x}\", Integer.toString((GetXCoordinate() * 8)));\n\t \tcoordinateString4 = coordinateString4.replace(\"{y}\", Integer.toString(GetYCoordinate()));\n\t \tcoordinateString4 = coordinateString4.replace(\"{z}\", Integer.toString((GetZCoordinate() * 8)));\n\t \t/** Display Overworld Coords, Nether Multiplied by 8 */\n\t \tmc.fontRendererObj.drawStringWithShadow(EnumChatFormatting.YELLOW + \"O: \" + coordinateString4 + EnumChatFormatting.GREEN + \" XP: \" + getXP(), 2, 12, 0xffffff);\n\t \t//System.out.println(\"Biome \" + varBiome + \" - coord3 \" + coordinateString3 + \" - coord4 \" + coordinateString4);\n\t\t\t}\n\t\t\t\n \t//Minecraft.getMinecraft().fontRendererObj.drawString(\"\" + coordFormat + \"\", 2, 2, 0xffffff);\n\t\t\t/** Display Biome */\n\t\t\tmc.fontRendererObj.drawStringWithShadow(\"B: \" + getBiome() + \"\", 2, 22, 0xffffff);\n\t\t\tint chunkX = GetXCoordinate() / 16;\n\t\t\tint chunkY = GetYCoordinate() / 16;\n\t\t\tint chunkZ = GetZCoordinate() / 16;\n\t\t\tint inChunkX = GetXCoordinate() % 16;\n\t\t\tint inChunkY = GetYCoordinate() % 16;\n\t\t\tint inChunkZ = GetZCoordinate() % 16;\n\t\t\tString daChunk = (\"\" + Integer.toString(inChunkX) + \" \" + Integer.toString(inChunkY) + \" \" + Integer.toString(inChunkZ) + \" in \" + Integer.toString(chunkX) + \" \" + Integer.toString(chunkY) + \" \" + Integer.toString(chunkZ)); \n\t\t\t\n\t\t\tif(chunkEnabled){\n\t\t\t\tmc.fontRendererObj.drawStringWithShadow(\"C: \" + daChunk + \"\", 2, 32, 0xffffff);\n\t\t\t}\n\n\t\t\t/** Get Light Level */\n\t\t\tif (LightEnabled){\n\t\t\t\tBlockPos blockpos = new BlockPos(mc.getRenderViewEntity().posX, mc.getRenderViewEntity().getEntityBoundingBox().minY, mc.getRenderViewEntity().posZ);\n\t\t\t\tChunk chunk = mc.theWorld.getChunkFromBlockCoords(blockpos);\n\t\t\t\tString daLight = \"L: \" + chunk.setLight(blockpos, 0);\n\t\t\t\tdaLight = daLight + \" (S: \" + chunk.getLightFor(EnumSkyBlock.SKY, blockpos) ;\n\t\t\t\tint blockLight = chunk.getLightFor(EnumSkyBlock.BLOCK, blockpos);\n\t\t\t\tif (blockLight < 8){\n\t\t\t\t\tdaLight = daLight + \", \" + EnumChatFormatting.RED + \"B: \" + blockLight + EnumChatFormatting.WHITE + \")\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdaLight = daLight + \", B: \" + blockLight + \")\";\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\tif(chunkEnabled){\n\t\t\t\t\tmc.fontRendererObj.drawStringWithShadow(\"\" + daLight, 2, 42, 0xffffff);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tmc.fontRendererObj.drawStringWithShadow(\"\" + daLight, 2, 32, 0xffffff);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void printScore() {\n\n\t}", "private void refreshScore(){\n String info = players[0] + \" \"+playerScores[0]+\":\" +playerScores[1]+ \" \"+players[1];\n scoreInfo.setText(info);\n }", "private void renderGuiScore(SpriteBatch batch)\n {\n float x = -15;\n float y = -15;\n float offsetX = 50;\n float offsetY = 50;\n \n /*\n if(worldController.scoreVisual < worldController.score)\n {\n long shakeAlpha = System.currentTimeMillis() % 360;\n float shakeDist = 1.5f;\n offsetX += MathUtils.sinDeg(shakeAlpha * 2.2f) * shakeDist;\n offsetY += MathUtils.sinDeg(shakeAlpha * 2.9f) * shakeDist;\n }*/\n \n batch.draw(Assets.instance.candy.candycorn, x, y, 50, 50, 100, 100, 0.35f, -0.35f, 0);\n Assets.instance.fonts.defaultBig.draw(batch, \"\" + worldController.score, x + 75, y + 37);\n }", "private Label getScoreLabel(final int score){\n\t\tfinal BitmapFontData bitmapFontData = new BitmapFontData(Gdx.files.internal(FontConstants.LARGE_FONT_FILE), false);\n\n\t\tArray<TextureRegion> textureRegions = new Array<TextureRegion>(false, 2);\n\t\ttextureRegions.add(new TextureRegion(new Texture(Gdx.files.internal(FontConstants.LARGE_FONT_IMAGE_1), false)));\n\t\ttextureRegions.add(new TextureRegion(new Texture(Gdx.files.internal(FontConstants.LARGE_FONT_IMAGE_2), false)));\n\t\t\n\t\treturn new Label(Integer.toString(score), new Label.LabelStyle( new BitmapFont(bitmapFontData, textureRegions, true), TEXT_COLOR ));\n\t}", "public void setGameOver(GraphicsContext graphicsContext, int scoreP1, int scoreP2) {\r\n\t\t// Clears table.\r\n\t\tgraphicsContext.clearRect(0, 0, Pong.WIDTH, Pong.HEIGHT);\r\n\t\tgraphicsContext.setFill(Color.DARKSLATEBLUE); \r\n\t\t\r\n\t\t// Sets 'Game Over' & the winner message.\r\n\t\tgraphicsContext.fillRect(0, 0, Pong.WIDTH, Pong.HEIGHT);\r\n\t\tgraphicsContext.setStroke(Color.RED);\r\n\t\tgraphicsContext.setTextAlign(TextAlignment.CENTER);\r\n\t\tgraphicsContext.strokeText(\"Game Over...\", (Pong.WIDTH / 2) , (Pong.HEIGHT / 6));\r\n\t\tgraphicsContext.strokeText(scoreP1 + \"-\" + scoreP2, (Pong.WIDTH / 2) , (Pong.HEIGHT / 4));\r\n\t\t\r\n\t\tif(scoreP1 > scoreP2) { graphicsContext.strokeText(\"Alice WON!!! You are the Pong King!!!\", (Pong.WIDTH / 2) , (Pong.HEIGHT / 2)); }\r\n\t\telse { graphicsContext.strokeText(\"CPU Won.... Shame... Shame... Shame...\", (Pong.WIDTH / 2) , (Pong.HEIGHT / 2)); }\r\n\t}", "private void gameOverAlert() {\n \tAlert alert = new Alert(AlertType.INFORMATION);\n \t\n \talert.setTitle(\"Game Over!\");\n \talert.setHeaderText(\"You Did Not Get A New High Score!\\nYour High Score: \" + level.animal.getPoints());\n \talert.setContentText(\"Try Again Next Time!\");\n \talert.show();\n\t}", "private void gameOver(Graphics g){\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"arial\", Font.BOLD, 50));\n g.drawString(\"Game Over\", 300, 300);\n\n g.setFont(new Font(\"arial\", Font.BOLD, 20));\n g.drawString(\"Space to RESTART\", 340, 340);\n\n g.setColor(Color.WHITE);\n g.setFont( new Font(\"arial\", Font.PLAIN, 20));\n g.drawString(\"Score: \" +score, 390,380);\n }", "public void statistics(){\n System.out.println(this.scoreboard.toString());\n }", "public void winner() {\n\t\tList<String> authors = new ArrayList<String>(scores_authors.keySet());\n\t\tCollections.sort(authors, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_authors.get(o1).compareTo(scores_authors.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des auteurs :\");\n\t\tfor(String a :authors) {\n\t\t\tSystem.out.println(a.substring(0,5)+\" : \"+scores_authors.get(a));\n\t\t}\n\t\t\n\t\tList<String> politicians = new ArrayList<String>(scores_politicians.keySet());\n\t\tCollections.sort(politicians, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_politicians.get(o1).compareTo(scores_politicians.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des politiciens :\");\n\t\tfor(String p :politicians) {\n\t\t\tSystem.out.println(p.substring(0,5)+\" : \"+scores_politicians.get(p));\n\t\t}\n\t}", "public void score() {\n\t\tif (Integer.parseInt(px.getPosition()) != Integer.parseInt(getCurrentPositionX()))\n\t\t{\n\t\t\tpx.addObserver(Obsx);\n\t\t\tpx.setPosition(getCurrentPositionX());\n\t\t}\n\t\tif (Integer.parseInt(py.getPosition()) != Integer.parseInt(getCurrentPositionY()))\n\t\t{\n\t\t\tpy.addObserver(Obsy);\n\t\t\tpy.setPosition(getCurrentPositionY());\n\t\t}\n\t}", "@Override\n public void display() {\n Game game = PiggysRevenge.getCurrentGame();\n int bricks = 0;\n House house = game.getHouse();\n if (game.getHouse().isCompleted()) {\n try {\n bricks = GameControl.calcNumberOfBricks(house.getLength(), house.getWidth(), house.getHeight(), house.getStories());\n } catch (GameControlException ex) {\n this.console.println(ex.getMessage());\n }\n } else {\n bricks = 0;\n }\n int turns = game.getTurns();\n boolean hasEaten = game.getPlayer().isHasEaten();\n boolean wolfKilled = game.isWolfKilled();\n int result = 0;\n try {\n result = GameControl.calcScore(bricks, turns, hasEaten, wolfKilled);\n } catch (GameControlException ex) {\n this.console.println(ex.getMessage());\n }\n if (result>0) {\n this.console.println(\"+\" + (bricks*10) + \" Points for building the house.\");\n this.console.println(\"-\" + (turns*10) + \" Points for the number of turns taken (\" + turns + \" turns).\");\n } else {\n this.console.println(\"You get no points if you do not build a house,\"\n + \"\\neat the roast beef, or kill the wolf.\");\n }\n if (hasEaten) {\n this.console.println(\"+1000 Points for eating roast beef.\");\n }\n if (wolfKilled) {\n this.console.println(\"+2000 Points for killing the wolf.\");\n }\n this.console.println(\"\\nYOUR SCORE IS: \" + result);\n\n if (gameOver) {\n HighScore[] highScores;\n\n File varTmpDir = new File(\"highscores.txt\");\n\n if (varTmpDir.exists()) {\n try (FileInputStream fips = new FileInputStream(\"highscores.txt\");\n ObjectInputStream input = new ObjectInputStream(fips);) {\n \n\n highScores = (HighScore[]) input.readObject();\n highScores[10] = new HighScore(game.getPlayer().getName(), result, house);\n\n for (int n = 0; n < highScores.length; n++) {\n for (int m = 0; m < highScores.length - 1 - n; m++) {\n if (highScores[m].getScore() < highScores[m + 1].getScore()\n || \"---\".equals(highScores[m].getName())) {\n HighScore swapHighScore = highScores[m];\n highScores[m] = highScores[m + 1];\n highScores[m + 1] = swapHighScore;\n }\n }\n }\n\n try (FileOutputStream fops = new FileOutputStream(\"highscores.txt\");\n ObjectOutputStream output = new ObjectOutputStream(fops);) {\n \n output.writeObject(highScores);\n this.console.println(\"Score saved successfully\");\n \n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n\n } else {\n try (FileOutputStream fops = new FileOutputStream(\"highscores.txt\");\n ObjectOutputStream output = new ObjectOutputStream(fops);) {\n \n\n highScores = new HighScore[11];\n for (int i = 0; i < highScores.length; i++){\n highScores[i] = new HighScore(\"---\", 0, new House(5, 5, 6, 1));\n \n }\n\n highScores[0] = new HighScore(game.getPlayer().getName(), result, house);\n output.writeObject(highScores);\n this.console.println(\"New highscore file created. Score saved successfully\");\n } catch (Exception e) {\n ErrorView.display(\"ScoreView\", e.getMessage());\n }\n\n }\n }\n }", "public void setScore(int score) { this.score = score; }", "@Override\n public void updateScore(int winner)\n {\n if (winner == 0)\n {\n playerOneScore++;\n }\n else\n {\n playerTwoScore++;\n }\n }", "public int getScore() { return score; }", "public int getScore() {return score;}", "public abstract Scoreboard update(Player player);", "@Override\n public void gameOver() {\n messagePanel.showMessage(image);\n setEnabled(false);\n }", "public static void setScoreBoard(Player p) {\n\t\n}", "public boolean gameOver();", "public boolean gameOver();", "public void setRanking (LSPRanking ranking) {\r\n this.ranking = ranking;\r\n }", "public void compare(){\n\t\tboolean gameOver = false;\n\t\tfor (int j = 0; j < player.size(); j++){\n\t\t\t/**\n\t\t\t * gameover screen\n\t\t\t */\n\t\t\tif (player.get(j) != input.get(j)){\n\t\t\t\tif (score <= 3){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" + \"You got the rank \"\n\t\t\t\t\t\t+ \"of a Joker with a score of \" + score + '.');}\n\t\t\t\telse if (score > 3 && score <= 10){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a Knight with a score of \" + score + '.');}\n\t\t\t\telse if (score > 10 && score <=20){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a King with a score of \" + score + '.');}\n\t\t\t\telse if (score >20){JOptionPane.showMessageDialog(pane, \"Game Over!\\n\" +\n\t\t\t\t\"You got the ranking of a Master with a score of \" + score + '.');}\n\t\t\t\tgameOver = true;\n\t\t\t\tif (score > highScore){\n\t\t\t\t\thighScore = score;\n\t\t\t\t\tscoreBoard.setHighScore(highScore);\n\t\t\t\t}\n\t\t\t\tplayer.clear();\n\t\t\t\tinput.clear();\n\t\t\t\tlist();\n\t\t\t\t++totalGames;\n\t\t\t\tfindGames();\n\t\t\t\tfindAvg();\n\t\t\t\tscore = 0;\n\t\t\t\tscoreBoard.setScore(score);\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * starts new round after a successful round\n\t\t */\n\t\tif (player.size() == input.size() && !gameOver){\n\t\t\tplayer.clear();\n\t\t\tscore++;\n\t\t\tscoreBoard.setScore(score);\n\t\t\tstartGame();\n\t\t\t}\n\t}", "public HighScore (String name,String level, int score)\n {\n this.name = name;\n this.score = score;\n this.level = level;\n }", "public void updateScore(JsonObject inputMsg) {\n\t\tString name = format(inputMsg.get(\"ScoredPlayer\").toString());\n\t\tfor (int i = 0; i < playerList.size(); i++) {\n\t\t\tif (playerList.get(i).getPlayerName().equals(name)) {\n\t\t\t\tplayerList.get(i).setPlayerScore(playerList.get(i).getPlayerScore()\n\t\t\t\t\t\t+ Integer.parseInt(format(inputMsg.get(\"Score\").toString())));\n\t\t\t\tscoreBoard[i].setText(\"Player: \" + playerList.get(i).getPlayerName() + \"\\t\"\n\t\t\t\t\t\t+ \"Score: \" + playerList.get(i).getPlayerScore());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testRankingSortedByName() throws BattleshipException {\n\t\t\n\t\t//Play Julia\n\t\tinitScores(playerJulia);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Raul\n\t\tinitScores(playerRaul);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Laura\n\t\tinitScores(playerLaura);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Simon\n\t\tinitScores(playerSimon);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareRankings(SRANKING5, rankingsToString());\n\t}", "public void updateScores() {\n\t\tscoreText.setText(\"Score: \" + ultraland.getScore());\n\t}", "@Override\n\tpublic void homeTeamScored(int points) {\n\t\t\n\t}", "public void loadScore() {\n for (int i = 0; i < 4; i++) {\n int[] enemyTankNum = CollisionUtility.getEnemyTankNum();\n tankNumList[i] = enemyTankNum[i];\n }\n for (int i = 0; i < 4; i++) {\n tankScoreList[i] = tankNumList[i] * 100 * (i + 1);\n }\n for (Integer score : tankScoreList) {\n totalScore += score;\n }\n for (Integer num : tankNumList) {\n totalTankNum += num;\n }\n }", "public void updatescore() {\n scorelabel.setText(\"\" + score + \" points\");\n if (100 - score <= 10) win();\n }", "private String getScore(){\n return whiteName + \" : \" + blackName + \" - \" + whiteScore + \" : \" + blackScore;\n }", "public void scoresForGameModes() {\r\n \tCalculateScore myScore = new CalculateScore();\r\n \tthis.score = myScore.giveScore();\r\n \tif (gamemode == 1) {\r\n \t\treturn;\r\n \t}\r\n \tif (gamemode ==2 ) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() - set.size()));\r\n \t}\r\n \tif (gamemode ==3) {\r\n \t\tthis.score = this.score - (10 * (currentGraph.getCNumber() -set.size()));\r\n \t}\r\n }", "public WinnerProfile(String name, int score){\n this.name=name;\n this.score=score;\n }", "public interface GameSupervisor {\n\n void startMatch(Player player);\n\n void sendGuess(Guess guess);\n\n String getCurrentMatchName();\n\n Player getCurrentPlayer();\n\n boolean isCurrentMatchMultiplayer();\n\n}", "private void sortPlayerScores(){\n text=\"<html>\";\n for (int i = 1; i <= Options.getNumberOfPlayers(); i++){\n if(Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey() != null){\n Integer pl = Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey();\n if(pl != null && playerScores.containsKey(pl)){\n text += \"<p>Player \" + pl + \" Scored : \" + playerScores.get(pl) + \" points </p></br>\";\n playerScores.remove(pl);\n }\n }\n }\n text += \"</html>\";\n }", "public void tellPlayerResult(int winner) {\n\t}" ]
[ "0.67880213", "0.66627043", "0.65003943", "0.6427053", "0.6414605", "0.637975", "0.63223505", "0.63042873", "0.62952137", "0.62760615", "0.62721205", "0.62638545", "0.6210588", "0.6196116", "0.6189497", "0.6121937", "0.6121937", "0.61142707", "0.6111255", "0.60922015", "0.6071429", "0.60599226", "0.60445607", "0.60424393", "0.6007426", "0.6006774", "0.6001599", "0.60006267", "0.59980553", "0.59965795", "0.59745115", "0.59707993", "0.59665483", "0.5938237", "0.59378976", "0.59376514", "0.5927529", "0.5913892", "0.5888398", "0.5887257", "0.5886124", "0.5877169", "0.5877032", "0.58581173", "0.58551353", "0.5851794", "0.5842059", "0.5837593", "0.58235914", "0.58182657", "0.58150953", "0.58121485", "0.5807473", "0.5803261", "0.58001506", "0.5797161", "0.57967055", "0.5791084", "0.57890165", "0.57878125", "0.5785862", "0.57703257", "0.57691824", "0.5768954", "0.57629275", "0.5757937", "0.57576984", "0.57564616", "0.5744504", "0.57425714", "0.5735931", "0.5732807", "0.5728365", "0.5725117", "0.5724004", "0.5722591", "0.5721073", "0.5720514", "0.57191956", "0.5715289", "0.5712399", "0.57063544", "0.57055813", "0.5703614", "0.57035685", "0.57035685", "0.5702739", "0.56934285", "0.5690786", "0.5683873", "0.5681583", "0.56737626", "0.5672175", "0.5657287", "0.56548387", "0.5652826", "0.56526417", "0.56514037", "0.5647187", "0.564322", "0.5638713" ]
0.0
-1
/ Is called once when this minigame is being created
@Override public void create() { // This should come from the platform height = platform.getScreenDimension().getHeight(); width = platform.getScreenDimension().getWidth(); // create the drawing boards sb = new SpriteBatch(); sr = new ShapeRenderer(); // Push in first state gsm.push(new CountDownState(gsm)); // gsm.push(new PlayState(gsm)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void OnStart(){\n\t\t//create the random space background and put its priority behind everything else\n\t\tswitch ((int) (Math.random() * 3)){\n\t\t\tcase 0:\n\t\t\t\tbackground = new Background(R.drawable.spaceback_med,new Point(0,0),-1);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tbackground = new Background(R.drawable.spaceback_asteroids,new Point(0,0),-1);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tbackground = new Background(R.drawable.spaceback_nebula,new Point(0,0),-1);\n\t\t\t\tbreak;\n\t\t}\n\t\t//generate asteroids\n\t\tinitAsteroids((int)(Math.random()*3));\n\t\t//create a border for the background (draw on top)\n\t\tnew Border(background,1000);\n\t\t//create the player\n\t\tplayer = new Player(new Point(-300,300), 1);\n\t\t//create a target reticule for the player\n\t\ttarget = new Target(player);\n\t\t\n\t\t//load sounds\n\t\tGameState.State().LoadSound(R.raw.shoot, \"shoot\");\n\t\tGameState.State().LoadSound(R.raw.accelerate, \"accelerate\");\n\t\tGameState.State().LoadSound(R.raw.engine, \"engine\");\n\t\tGameState.State().LoadSound(R.raw.explosion, \"explosion\");\n\t\tGameState.State().LoadSound(R.raw.death, \"death\");\n\t\t\n\t\thasStarted = true;\n\t\t\n\t\trespawnCount = 0.0f;\n\t\trespawnTime = 4f;\n\t}", "@Override\n public void afterWorldInit() {\n }", "private void GameInitialize()\r\n { \r\n // set to fullscreen to use the entire \r\n // display or false to only use\r\n // the area inbetween the two bars on the display\r\n setFullScreenMode(true);\r\n\r\n // setup 3D\r\n try\r\n {\r\n Object3D[] buffer = Loader.load(\"/RaptorWalk.m3g\");\r\n\r\n for(int i = 0; i < buffer.length; i++)\r\n {\r\n if(buffer[i] instanceof World)\r\n {\r\n // get our world node\r\n mWorld = (World)buffer[i];\r\n mEnemy = (SkinnedMesh)mWorld.find(56);\r\n mEnemyTimer = 0;\r\n break;\r\n }\r\n }\r\n }\r\n catch(Exception e) \r\n { System.out.println(\"Loading error!\" + e.getMessage()); }\r\n\r\n // create a game font\r\n mGameFont = Font.getFont(Font.FACE_MONOSPACE, \r\n Font.STYLE_PLAIN, Font.SIZE_SMALL);\r\n\r\n // Get the active camera from the world\r\n mCam = mWorld.getActiveCamera();\r\n mCam.translate(0, 1.0f, 0);\r\n\r\n // Create an ambient light and add it to the world node\r\n Light light = new Light();\r\n light.setMode(Light.AMBIENT);\r\n light.setIntensity(3);\r\n mWorld.addChild(light);\r\n }", "@Override\n protected void initGame() {\n getGameWorld().setEntityFactory(new PlatformerFactory());\n getGameWorld().setLevelFromMap(\"Platformergame1.json\");\n\n // Sets spawnloction of the player\n player = getGameWorld().spawn(\"player\", 50, 50);\n }", "@Override\n\tpublic void create () {\n\t\tgempiresAssetHandler = new GempiresAssetHandler(this);\n\t\tbatch = new SpriteBatch();\n\t\tcastle = new CastleScreen(this);\n\t\tsetScreen(new MainMenuScreen(this));\n\t}", "public void preGame() {\n\n\t}", "@Override\n public void beginGame() {\n }", "private void startup() {\r\n createMineField();\r\n setMinesMesg( mineField.getNumHiddenMines() );\r\n\r\n adjustSize();\r\n adjustScore();\r\n\r\n settingsFrame = new MineSettings( this );\r\n setLocation( 630, 50 );// while in development\r\n setVisible( true );\r\n }", "@Override\n public void simpleInitApp()\n {\n makeInitialWorld();\n \tAudio audio = new Audio(assetManager, rootNode);\n inputManager.setCursorVisible(false);\n \trootNode.attachChild(overlayNode);\n\n \tflyCam.setEnabled(true);\n flyCam.setMoveSpeed(25);\n\n setDisplayFps(true);\n setDisplayStatView(true);\n\n GUIInfo guiInfo = new GUIInfo(guiNode, assetManager.loadFont(\"Interface/Fonts/Console.fnt\"));\n guiNode.addControl(guiInfo);\n }", "public static void classInit(){\n //set up font\n //font = WurfelEngine.getInstance().manager.get(\"com/BombingGames/WurfelEngine/EngineCore/arial.fnt\"); //load font\n font = new BitmapFont(false);\n //font.scale(2);\n\n\n font.setColor(Color.GREEN);\n //font.scale(-0.5f);\n \n //load sprites\n Block.loadSheet();\n addInputProcessor(staticStage);\n skin = new Skin(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/skin/uiskin.json\"));\n GameplayScreen.msgSystem().viewInit(skin,Gdx.graphics.getWidth()/2, Gdx.graphics.getHeight()/4);\n }", "public void create() {\n connect();\n batch = new SpriteBatch();\n font = new BitmapFont();\n\n audioManager.preloadTracks(\"midlevelmusic.wav\", \"firstlevelmusic.wav\", \"finallevelmusic.wav\", \"mainmenumusic.wav\");\n\n mainMenuScreen = new MainMenuScreen(this);\n pauseMenuScreen = new PauseMenuScreen(this);\n settingsScreen = new SettingsScreen(this);\n completeLevelScreen = new CompleteLevelScreen(this);\n completeGameScreen = new CompleteGameScreen(this);\n\n setScreen(mainMenuScreen);\n }", "private void init() {\n\t\tdisplay = new Display(title, width, height);\n\t\tdisplay.getFrame().addKeyListener(keyManager); //lets us access keyboard\n\t\tdisplay.getFrame().addMouseListener(mouseManager);\n\t\tdisplay.getFrame().addMouseMotionListener(mouseManager);\n\t\tdisplay.getCanvas().addMouseListener(mouseManager);\n\t\tdisplay.getCanvas().addMouseMotionListener(mouseManager);\n\t\tAssets.init();\n\t\t\n\t\tgameCamera = new GameCamera(this, 0,0);\n\t\thandler = new Handler(this);\n\t\t\n\t\tgameState = new GameState(handler);\n\t\tmenuState = new MenuState(handler);\n\t\tsettingState = new SettingState(handler);\n\t\tmapState = new mapState(handler);\n\t\tmansionState = new mansionState(handler);\n\t\tparkState = new parkState(handler);\n\t\tjazzState = new jazzState(handler);\n\t\tmansionGardenState = new mansionGardenState(handler);\n\t\tmansionArcadeState = new mansionArcadeState(handler);\n\t\tmansionStudyState = new mansionStudyState(handler);\n\t\tjazzPRoomState = new jazzPRoomState(handler);\n\t\tState.setState(menuState);\n\t}", "public static void create(){\n\t\tstage = new Stage(new StretchViewport(1680, 1050)); \n\t\tCamera camera = stage.getCamera();\n\t\tcamera.update();\n\n\t\t//Instantiate the Managers\n\t\tGdx.input.setInputProcessor(getStage());\t\n\t\tstage.getActors().clear();\n\t\t\n\t\tmapManager = new Game_Map_Manager();\n\t\tmapManager.create(getStage());\n\t\t\n\t\tGame_CardHand cardHand = new Game_CardHand();\n\t\tcardHand.create(getStage());\n\n\t\tGameScreenUI actorManager = new GameScreenUI();\n\t\tactorManager.create(getStage());\n\n\t\tTrainDepotUI trainDepot = new TrainDepotUI();\n\t\ttrainDepot.create(getStage());\n\n\t\tGoalMenu goalScreenManager = new GoalMenu();\n\t\tgoalScreenManager.create(getStage());\n\t\t\n\t\tPlayerGoals ticketManager = new PlayerGoals();\n\t\tticketManager.create(getStage());\t\n\t\t\n\t\tGame_StartingSequence startgameManager = new Game_StartingSequence(replayMode);\n\t\tstartgameManager.create(getStage());\n\t\t\n\t\tGame_Shop shop = new Game_Shop();\n\t\tshop.create(getStage());\n\t\t\n\t\tGame_PauseMenu pauseMenu= new Game_PauseMenu();\n\t\tpauseMenu.create(getStage());\n\t\t\n\t\tWarningMessage warningMessage = new WarningMessage();\n\t\twarningMessage.create(getStage());\n\t\t\n\t\tif (replayMode){\n\t\t\tReplayModeUI replayUI = new ReplayModeUI();\n\t\t\treplayUI.create(getStage());\n\t\t\t\n\t\t\tif (Game_StartingSequence.inProgress){\n\t\t\t\tWorldMap replayMap = WorldMap.getInstance();\n\t\t\t\tGame_StartingSequence.player1 = false;\n\t\t\t\t\n\t\t\t\tStation p1station = replayMap.stationsList.get(0);\n\t\t\t\tfor (Station station : replayMap.stationsList){\n\t\t\t\t\tif (station.getName().equals(LocomotionCommotion.getReplayTurn().getJSONObject(\"player1\").getJSONArray(\"stations\").getJSONObject(0).getString(\"stationName\"))){\n\t\t\t\t\t\tp1station = station;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tStation p2station = replayMap.stationsList.get(1);\n\t\t\t\tfor (Station station : replayMap.stationsList){\n\t\t\t\t\tif (station.getName().equals(LocomotionCommotion.getReplayTurn().getJSONObject(\"player2\").getJSONArray(\"stations\").getJSONObject(0).getString(\"stationName\"))){\n\t\t\t\t\t\tp2station = station;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcreateCoreGame(p1station, p2station);\n\t\t\t\tGame_StartingSequence.startGame();\n\t\t\t\tGameScreenUI.refreshResources();\n\t\t\t\tGame_StartingSequence.inProgress = false;\n\t\t\t}\n\t\t}\n\t}", "public void InitGame(){\n System.out.format(\"New game initiated ...\");\n Game game = new Game(client_List);\n SetGame(game);\n }", "@Override\n public void Start() {\n\n }", "@Override\n public void Start() {\n\n }", "@Override\n public void Start() {\n\n }", "private void init() {\n display = new Display(title, getWidth(), getHeight()); \n Assets.init();\n player = new Player(getWidth() / 2 - 50, getHeight() - 50, 100, 30, this);\n rayo = new Rayo(getWidth() / 2 - 10, player.y - player.height , 10, 30, 0, 0, this);\n borrego = new Borrego(-80, 60 , 50, 20, 0, 0, this);\n generateEnemies();\n generateFortalezas();\n bombas= new ArrayList<Bomba>();\n \n \n display.getJframe().addKeyListener(keyManager);\n }", "@Override\n public void simpleInitApp()\n {\n stateManager.detach(stateManager.getState(StatsAppState.class));\n\n // Activate windowed input behavior.\n flyCam.setDragToRotate(true);\n inputManager.setCursorVisible(true);\n\n viewPort.setBackgroundColor(new ColorRGBA(0.7f, 0.9f, 1, 1));\n\n materialFactory = createMaterialFactory();\n spatialFactory = createSpatialFactory();\n board = (Node)spatialFactory.createBoard(assetManager);\n squaresNode = (Node)board.getChild(\"squares\");\n tokensNode = (Node)board.getChild(\"tokens\");\n\n rootNode.attachChild(board);\n rootNode.addLight(createDirectionalLight());\n rootNode.addLight(createAmbientLight());\n\n initKeys();\n\n reconcileTokens();\n setTheScene();\n }", "@Override\r\n\tpublic void createScene() {\n\t\tthis.setBackground(new Background(255, 255, 255));\r\n\t\tsLogo = new Sprite(BaseActivity.WIDTH / 2, BaseActivity.HEIGHT / 2, logoRegion.getWidth() * 1.23f, logoRegion.getHeight() * 1.23f, logoRegion, engine.getVertexBufferObjectManager());\r\n\t\tthis.attachChild(sLogo);\r\n\t\tSystem.out.println(\"stufff\");\r\n\t\t\r\n\t\tengine.registerUpdateHandler(new TimerHandler(0.2f, new ITimerCallback() \r\n\t {\r\n\t public void onTimePassed(final TimerHandler pTimerHandler) \r\n\t {\r\n\t System.out.println(\"stuff1\");\r\n\t engine.unregisterUpdateHandler(pTimerHandler);\r\n\t PlayScene play = new PlayScene(engine, activity, camera);\r\n\t play.createScene();\r\n\t engine.setScene(play);\r\n\t Resources.getInstance().music.setLooping(true);\r\n\t \t\tResources.getInstance().music.play();\r\n\t play.start();\r\n\t }\r\n\t }));\r\n\t}", "private void init() \n\t{\n\t\tgoalReached = false;\n\t\tGdx.input.setInputProcessor(this);\n\t\tcameraHelper = new CameraHelper();\n\t\tlives = Constants.LIVES_START;\n\t\tlivesVisual = lives;\n\t\ttimeLeftGameOverDelay = 0;\n\t\tinitLevel();\n\n\t}", "@Override\n protected void Start() {\n }", "public StartScreen()\n { \n // Create a new world with 1111x602 cells with a cell size of 1x1 pixels.\n super(1111, 602, 1); \n prepare();\n background.playLoop();\n }", "public static void start(){\n new Light(new Vector3f(getSIZE()*Chunk.getCHUNKSIZE()/2,getSIZE()*Chunk.getCHUNKSIZE()/2,getSIZE()*Chunk.getCHUNKSIZE()/2));\n Keyboard.enableRepeatEvents(true);\n createWindow();\n initGL();\n generateWorld();\n Game.gameLoop();\n }", "public void initialize() {\n // create a runner using a function\n this.createScreenBorders();\n // create a keyboard sensor.\n this.keyboard = this.runner.getGUI().getKeyboardSensor();\n //create the environment for the game (game environment and sprites collection)\n this.createEnvironment();\n // BACKGROUND CREATION //\n this.createBackground();\n // create the counters for the game.\n this.createCounters();\n // LISTENERS CREATION //\n //create a message printing listener.\n HitListener phl = new PrintingHitListener();\n //create a new block remover listener.\n HitListener blockrmv = new BlockRemover(this, blockCounter);\n //create a new ball remover listener.\n HitListener ballrmv = new BallRemover(this, ballCounter);\n //create a new score counter listener.\n HitListener scorelstn = new ScoreTrackingListener(this.scoreCounter);\n // BLOCKS CREATION //\n this.createBlocks(phl, blockrmv, scorelstn);\n // SIDE BLOCKS CREATION //\n this.createSideBlocks();\n // DEATH BLOCK CREATION //\n this.createDeathBlock(ballrmv);\n // LEVEL'S NAME //\n LevelsName name = new LevelsName(this.levelInfo.levelName());\n // add the whole-game indicators to the sprites list.\n this.sprites.addSprite(scoreIndi);\n this.sprites.addSprite(lifeIndi);\n this.sprites.addSprite(name);\n }", "@Override\r\n public void awake() {\n\r\n }", "public void run() {\n gf = addGameFrame(\"Pacman\", displayW, displayH);\n }", "private void prepare()\n {\n addObject(player,185,196);\n player.setLocation(71,271);\n Ground ground = new Ground();\n addObject(ground,300,360);\n invent invent = new invent();\n addObject(invent,300,375);\n }", "private void startGame() {\n\t\tmain.next_module = new Game(main, inputs, gameSelectionData);\n\t}", "private void init(){\n \tdimension.set(0.5f, 0.5f);\n \tsetAnimation(Assets.instance.goldCoin.animGoldCoin);\n \tstateTime = MathUtils.random(0.0f,1.0f);\n \t\n \t//regGoldCoin = Assets.instance.goldCoin.goldCoin;\n \t // Set bounding box for collision detection\n \tbounds.set(0,0,dimension.x, dimension.y);\n \tcollected = false;\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1078, 672, 1); \n preparePlayer1();\n preparePlayer2();\n prepareTitle();\n //playmusic();\n }", "@Override\n public void simpleInitApp() {\n this.viewPort.setBackgroundColor(ColorRGBA.LightGray);\n im = new InteractionManager();\n setEdgeFilter();\n initEnemies();\n initCamera();\n initScene();\n initPlayer();\n initCrossHairs();\n }", "@Override\n\tpublic void create() {\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t\n\t\t//Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\t\n\t\t//initialize controller and renderer\n\t\tworldController = new WorldController();\n\t\tworldRenderer= new WorldRenderer(worldController);\n\t\t\n\t\t//The world is not paused on start\n\t\tpaused = false;\n\t}", "private void initialize() {\r\n\t\tstartScreenTexture = new Texture(Gdx.files.internal(\"death.png\"));\r\n\t\tMusicSound.deathMusic.play();\r\n\r\n\t}", "public UIMainWorld()\n { \n super(600, 400, 1); \n startScreen();\n }", "@Override\n\tpublic void init() {\n\t\tworld = new World(gsm);\n\t\tworld.init();\n\t\t\n\t\tif(worldName == null){\n\t\t\tworldName = \"null\";\n\t\t\tmap_name = \"map\";\n\t\t} \n\t\tworld.generate(map_name);\n\t}", "public void initialise_new_game() {\n\n data.read_from_file(\"maxus2.txt\");\n\n mySound.initialise();\n\n pacman.init();\n ghost.init();\n\n score.initialise();\n }", "public void start() {\n ArrayList<String> names = new ArrayList<>();\n game.initialize(names);\n //game.play(this.mainPkmn, this.attack);\n\n }", "private void Level1() {\n\t\tEngine eng = new Engine();\n\t\teng.Maingame();\n\t\tthis.setVisible(false);\n\t}", "public void gameInit() {\n lobbyRoom.sendPortToAll();\n lobbyRoom.sendPlayers(game.getCars());\n lobbyRoom.sendTrack(game.getTrack());\n lobbyRoom.sendPowerupManager(game.getManager());\n this.running = true;\n }", "private void initNewLevel() {\n\t\tmaze = new Maze(\"maze.xml\");\n\t\tPoint position = Cell.positionOfCell(26, 13);\n\t\tposition.x += 7;\n\t\tif (highScore.getScore() == 0)\n\t\t\tpacman = new Pacman(maze, position, maze.cellAt(26, 13),\n\t\t\t\t\tDirection.RIGHT, 3);\n\t\telse\n\t\t\tpacman = new Pacman(maze, position, maze.cellAt(26, 13),\n\t\t\t\t\tDirection.RIGHT, pacman.getNumberOfLives());\n\t\tinitGhosts();\n\n\t\ttimer.stop();\n\t\tlevelStartTimer.restart();\n\t}", "@Override\n public void newGame() {\n //TODO Implement this method\n }", "public void GameStart()\n\t\t{\n\t\t\tplayers_in_game++;\n\t\t}", "@Override\n\tpublic void onEnter(Game game) {\n\t\t\n\t}", "private void startGame() {\r\n\t\tthis.gameMap.startGame();\r\n\t}", "public static void initManager() {\n theManager = new LevelManager();\n lives = 3;\n }", "@Override\n public void onLoad() {\n super.onLoad();\n instance = this;\n running = true;\n }", "@Override\n public void loadGame() {\n\n }", "void onEDHGameStart();", "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 lv3()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n //super(950, 600, 1); \n //prepare();\n prepare();\n stopped();\n started();\n }", "@Override\r\n\tpublic void gameInit() \r\n\t{\r\n\t\tfont = new Font(\"Courier\", Font.BOLD, 14);\r\n\t\tfontInfo = this.getFontMetrics(font);\r\n\t\tkeys = new KeyValues();\r\n\t\t\r\n\t\tbackground.loadImage(\"/images/sky.png\");\r\n\t\ttileset = new TileSet(10,10,32,32);\r\n\t\ttileset.loadTiles(\"/images/test_tiles.png\");\r\n\t\tmap = new Map(tileset, 20, 50);\r\n\t\tmap.readMap(\"res/maps/testmap2.txt\");\r\n\t\t\r\n\t\tcamera.setDimensions(getScreenWidth(), getScreenHeight());\r\n\t\tcamera.setXRange(0, map.getWidth() - getScreenWidth());\r\n\t\tcamera.setYRange(0, map.getHeight() - getScreenHeight());\r\n\t}", "public void newGame()\n\t{\n\t\tmap = new World(3, viewSize, playerFactions);\n\t\tview = new WorldView(map, viewSize, this);\n\t\tbar = new Sidebar(map, barSize);\n\t}", "public StartupHandler(){\r\n\t\tloadGameFiles();\r\n\t\tnew Engine();\r\n\t}", "@Override\n @SideOnly(Side.CLIENT)\n public void onClientPostInit()\n {\n\n }", "@Override\n public void runInit() {\n }", "@Override\n\tpublic void create () {\n\t\t\n\t\teManager = new EventManager();\n\t\t\n\t\tbatch = new SpriteBatch();\n\t\timg = new Texture(\"background.png\");\n\t\t\n\t\tmessages = new MessageManager(eManager);\n\t\t\n\t\tworld = new WorldRenderer(messages, eManager);\n\t\t\n\t\t\n\t\tResourceLoader.getInstance();\n\t\twhile (!ResourceLoader.assetManager.update())\n {\n\t\t\t\n }\n\t\tSystem.gc();\n\t\tsaveLoaded = false;\n\t\t\n\t\ttry{\n\t\t\tplayer = GameSave.loadPlayerSave();\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\t\n\t\t\tplayer.setItems(GameSave.loadPlayerItemsSave());\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\tplayer.setLinkmon(GameSave.loadLinkmonSave());\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\tplayer.getLinkmon().setStats(GameSave.loadLinkmonStatsSave());\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\tplayer.getLinkmon().setBirthDate(GameSave.loadLinkmonBirthDateSave());\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\tGameSave.updateLinkmon(player.getLinkmon());\n\t\t\tSystem.gc();\n\t\t\tThread.sleep(100);\n\t\t\tsaveLoaded = true;\n\t\t} catch(Exception e) {\n\t\t\tsaveLoaded = false;\n\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadPlayerSave\");\n\t\t}\n\t\t\n//\t\ttry{\n//\t\t\tplayer = GameSave.loadPlayerSave();\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadPlayerSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tplayer.setItems(GameSave.loadPlayerItemsSave());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadPlayerItemsSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tplayer.setLinkmon(GameSave.loadLinkmonSave());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadLinkmonSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tplayer.getLinkmon().setStats(GameSave.loadLinkmonStatsSave());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadLinkmonStatsSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tplayer.getLinkmon().setBirthDate(GameSave.loadLinkmonBirthDateSave());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadLinkmonBirthDateSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tplayer.getLinkmon().setPoopList(GameSave.loadPoopSave());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"loadPoopSave\");\n//\t\t}\n//\t\ttry{\n//\t\t\tGameSave.updateLinkmon(player.getLinkmon());\n//\t\t} catch(Exception e) {\n//\t\t\tsaveLoaded = false;\n//\t\t\tGdx.app.log(\"GameClass (LoadingSave)\", \"updateLinkmon\");\n//\t\t}\n\t\t\n\t\t\n\t\t\n\t\tString message = \"\" + Gdx.graphics.getWidth() + \" \" + Gdx.graphics.getHeight();\n Gdx.app.log(\"TIMER\", message);\n\t\t\n\t\tim = new InputMultiplexer();\n\t\t\n\t\tim.addProcessor(world.stage);\n\t\tGdx.input.setInputProcessor(im);\n\t\t\n\t\tif(!saveLoaded) {\n\t\t\tthis.setScreen(new IntroScreen(this, world.ui, eManager));\n\t\t\t//startGame(\"Kilst\", 1);\n\t\t}\n\t\telse {\n//\t\t\tcontrollerService = new ControllerService(this, world.ui, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), eManager);\n//\t\t\tworld.addLinkmonToWorld(controllerService.getLinkmonController());\n//\t\t\teManager.notify(new ControllerEvent(ControllerEvents.SWAP_SCREEN, ScreenType.MAIN_UI));\n\t\t\tloadGame(player);\n\t\t\t\n\t\t}\n\t}", "public void initialize() {\r\n addSprite(this.info.getBackground());\r\n createBorders();\r\n defineDeathBlock();\r\n addIndicators();\r\n BlockRemover removeBlock = new BlockRemover(this, this.remainingBlocks);\r\n// this.remainingBlocks=removeBlock.getRemainingBlocks();\r\n ScoreTrackingListener scoreTrackingListener = new ScoreTrackingListener(this.score);\r\n for (int i = 0; i < info.blocks().size(); i++) {\r\n info.blocks().get(i).addHitListener(removeBlock);\r\n info.blocks().get(i).addHitListener(scoreTrackingListener);\r\n info.blocks().get(i).addToGame(this);\r\n }\r\n }", "public void startGame() {\r\n this.setupGame();\r\n }", "@Override\r\n\tpublic void create() {\n\t\tbatch = new SpriteBatch();\r\n\t\tcamera = new OrthographicCamera();\r\n\t\tassets = new AssetManager();\r\n\t\t\r\n\t\tcamera.setToOrtho(false,WIDTH,HEIGHT);\r\n\t\t\r\n\t\tTexture.setAssetManager(assets);\r\n\t\tTexture.setEnforcePotImages(false);\r\n\t\t\r\n\t\tsetScreen(new SplashScreen(this));\r\n\t}", "private GameManager() \n\t{\n\t\t\n\t}", "@Override\n\tpublic void initGame() {\n\t\t\n\t\t//width = 480f;\n\t\t//height = 1000f;\n\t\t//scale = 100f;\n\t\t\n\t\tioManager.debugPrint();\n\t\t\n\t\t\n\t\t\n\t\treset();\n\t\t\n\t\t//scale = 1f;\n\t\t//width /= 100f;\n\t\t//height /= 100f;\n\t}", "public void startup() {\n neutral();\n }", "void newGame() {\n\t\tstate = new model.State () ; \n\t\tif(host != null ) host.show(state) ; \n\t}", "public void initGame() {\n this.game = new Game();\n }", "@SuppressWarnings(\"static-access\")\n\tprivate void init() {\n\t\tdisplay= new Display(title,width,height);\n\t\tdisplay.getFrame().addMouseListener(mouseManager);\n\t\tdisplay.getFrame().addMouseMotionListener(mouseManager);\n\t\tdisplay.getCanvas().addMouseListener(mouseManager);\n\t\tdisplay.getCanvas().addMouseMotionListener(mouseManager);\n\n\t\t\n\t\t//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Declarare imagini~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n Assets.init();\n \n\t\tgameState= new GameState(this);\n\t\tgameStateAI= new GameStateAI(this);\n\t\tmenuState = new MenuState(this);\n\t\tsettingsState= new SettingsState(this);\n\t\tState.setState(menuState);\t\n\t\t\n\t\n\t}", "public void onStart() {\n\t\t\n\t}", "@Override\n public void create() {\n\n batch = new SpriteBatch();\n manager = new AssetManager();\n\n manager.load(\"audio/main_theme.mp3\", Music.class);\n // manager.load(\"String sonido\", Sound.class);\n manager.load(\"sprites/dragon.pack\", TextureAtlas.class);\n manager.load(\"sprites/vanyr.pack\", TextureAtlas.class);\n manager.finishLoading();\n\n setScreen(new PlayScreen(this));\n\n }", "public Game() \n {\n gameLoaded = false;\n }", "public void Init(){\n\t\trequestFocus();\n\t\tBufferedImageLoader loader = new BufferedImageLoader();\t\t// Class to load images\n\t\ttry {\n\t\t\tBackGround = loader.loadImage(\"/Scroll Small.png\");\t\t// Load background\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t\t\n\t\ttext = new Text(this);\n\t\tren = new Render(screenHeight, screenWidth);\n\t\titems = ItemManager.getInstance();\n\t\tmon = MonsterManager.getInstance(this, text);\n\t\trooms = RoomManager.getInstance(items, mon);\n\t\trep = new Reponses(this, text, rooms);\n\t\tthis.addKeyListener(new KeyInput(this, mon));\t\t\t\t// Keyboard input\n\t\tthis.addMouseListener(new MouseInput(this, text, screenHeight, screenWidth)); // Mouse input\n\t\t\n\t\troom = rooms.x2y3;\t\t\t\t// Set starting location\n\t\t\n\t\trender(); render(); render();\t// Render screen\n\t}", "private void start() {\n\n\t}", "@Override\n public void init() {\n //konami_init();\n }", "public void init() {\n\t\tfor(int i = 0; i < roamingAliens; ++i) {\n\t\t\tAlien alien = new Alien(ColorUtil.MAGENTA, screenHeight, screenWidth, speed, speedMulti);\n\t\t\tgameObject.add((GameObject) alien); \n\t\t}\n\t\tfor(int i = 0; i < roamingAstronauts; ++i) {\n\t\t\tAstronaut astronaut = new Astronaut(ColorUtil.GREEN, screenHeight, screenWidth, speed, speedMulti);\n\t\t\tgameObject.add((GameObject) astronaut);\n\t\t}\n\t\tgameObject.add((Spaceship.getSpaceship()));\n\t\tthis.setChanged();\n\t\tthis.notifyObservers();\n\t\tthis.clearChanged();\n\t}", "private void init() {\n\t\t\n\t\tdisplay = new Display(title, width, height);\n\t\tdisplay.getFrame().addKeyListener(keyManager);\n\t\tdisplay.getFrame().addMouseListener(mouseManager);\n\t\tdisplay.getFrame().addMouseMotionListener(mouseManager);\n\t\t\n\t\t//Adding the mouseManager to the canvas reduces glitches\n\t\tdisplay.getCanvas().addMouseListener(mouseManager); \n\t\tdisplay.getCanvas().addMouseMotionListener(mouseManager);\n\t\t\n\t\t\n\t\tVisuals.init();\n\n\t\tManager.init(this); // Setting up our manager singleton\n\n\t\tgameCamera = new GameCamera(0, 0);\n\t\tgameTimer = new GameTimer();\n\n\t\tgameState = new GameState();\n\t\t//We want to initialise the states we may switch to for easy access\n\t\t//The main menu state\n\t\tState menuState = new MenuState();\n\t\t//The state for the settings menu\n\t\tState settingState = new SettingState();\n\t\t\n\t\tState.setState(gameState); //This sets the state of the program to our game\n\t\t\n\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tBattleStage.startBattleStage();\n\t\t\t\t\t\tPRIMARY.setScene(BATTLESCENE);\n\t\t\t\t\t\t//BattleStage.startMonster();\n\t\t\t\t\t}", "public void run() {\n\t\t\t\t\t\tNewCustomWindow.createAndShowCustomGame();\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}", "@Override\n public void run(){\n Settings.setGameSettings(new Player(0,Color.RED,1800, \"Player 1\",true),\n new Player(1,Color.BLUE,1800, \"Player 2\",false),1800,25);\n MenuFrame menuFrame = new MenuFrame();\n }", "protected void onEnter(){}", "public void startGame() {\n\t\ttank1.create(20, 530, 0, 0);\n\t\ttank1.setDefaults();\n\t\ttank2.create(960, 530, 0, 0);\n\t\ttank2.setDefaults();\n\t\tobjects.add(tank1);\n\t\tobjects.add(tank2);\n\t\tground = new Groundmod2((int) (Math.random() * 4));\n\t\tturn = Turn.PLAYER1;\n\t\tgrabFocus();\n\t}", "public void startGame() {\n\t\timages = new ImageContainer();\n\t\ttimer = new Timer(15, this);\n\t\ttimer.setRepeats(true);\n\t\tlevelStartTimer = new Timer(2000, this);\n\t\thighScore = new HighScore();\n\t\tpacmanAnimation = new PacmanAnimation(images.pacman, new int[] { 3, 2,\n\t\t\t\t0, 1, 2 });\n\t\tactualLevel = 1;\n\t\tinitNewLevel();\n\t}", "@Override\r\n public void create() {\n\r\n Gdx.app.log(TAG, \"version : \" + Version.VERSION);\r\n\r\n chscreenMap = new HashMap<String, CHScreen>();\r\n musicManager = new MusicManager();\r\n soundManager = new SoundManager();\r\n\r\n assetManager = new AssetManager();\r\n\r\n chAsyncManager = new CHAsyncManager();\r\n\r\n // 代表返回,菜单事件,会被Gdx拦截掉,不会下发到Android处理了。\r\n Gdx.input.setCatchBackKey(true);\r\n Gdx.input.setCatchMenuKey(true);\r\n\r\n instance = this;\r\n\r\n init();\r\n\r\n }", "private void initialParameters()\n\t{\n\t\tasteroidList = new ArrayList<Asteroid>();\n\t\tfor(int i = 0 ; i < INITIAL_ASTEROIDS ; i++)\n\t\t\tasteroidList.add(new Asteroid(getRandomLocationX(), getRandomLocationY(), SCREEN_WIDTH, SCREEN_HEIGHT));\n\t\t\n\t\t//========== Game Status ===========\n\t\trunning \t= true;\n\t\tisWin \t\t= false;\n\t\tisGameOver \t= false;\n\t\t\n\t\t//========== Game Craft ===========\t\t\n\t\tcraft = new Craft(SCREEN_WIDTH/2, SCREEN_HEIGHT/2, SCREEN_WIDTH, SCREEN_HEIGHT);\n\t}", "private void init() {\n\n\n\n }", "public void init(){\n\t\n\t\t//background init\n\t\tthis.background = new Sprite(this.scene, \"space-backdrop.png\", 1280 * 5, 800 * 5);\n\t\tthis.background.setBoundAction(\"background\");\n\t\tthis.background.setSpeedScale(0.2);\n\t\tthis.background.setSpeed(0);\n\t\tthis.sprites.add(this.background);\n\t\t\n\t\t//compass init\n\t\tthis.compass = new Sprite(this.scene, \"compass.png\", 100, 100);\n\t\tthis.compass.setSpeed(0);\n\t\tthis.compass.setPosition(this.compass.getWidth() / 2, this.scene.getHeight() - this.compass.getHeight() / 2);\n\t\t\n\t\t//earth init\n\t\tthis.earth = new Planet(this.scene, \"earth.png\", 4800, 4800);\n\t\tthis.earth.setSpeed(0);\n\t\tthis.earth.setPosition(0, 7000);\n\t\tthis.earth.setBoundAction(\"continue\");\n\t\tthis.sprites.add(this.earth);\n\t\t\n\t\t//ship init\n\t\tthis.mainSprite = new Ship(this.scene, \"cannon.png\", 50, 50, this.k);\n\t\tthis.mainSprite.keyListen = true;\n\t\tthis.mainSprite.setSpeed(0);\n\t\tthis.mainSprite.setPosition(this.scene.getWidth() / 2, this.scene.getHeight() / 2);\n\t\t\n\t\t//asteroids init\n\t\tthis.asteroids.add(new Body(this.scene, \"asteroid.png\", 250, 250, this));\n\t\tthis.asteroids.get(0).setBoundAction(\"continue\");\n\t\tthis.asteroids.get(0).setSpeed(0);\n\t\tthis.asteroids.get(0).setPosition(0, 0);\n\t\tthis.sprites.add(this.asteroids.get(0));\n\t\t\n\t\tfor(int i = 1; i < 200; i++){\n\t\t\t\n\t\t\tint size = (int) Math.round(Math.random() * 400 + 50);\n\t\t\tlong x = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\tlong y = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\n\t\t\twhile(x > 0 && x < this.scene.getWidth()){\n\t\t\t\tx = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t}\n\t\t\t\n\t\t\twhile(y > 0 && y < this.scene.getHeight()){\n\t\t\t\ty = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t}\n\t\t\t\n\t\t\tthis.asteroids.add(new Body(this.scene, \"asteroid.png\", size, size, this));\n\t\t\tthis.asteroids.get(i).setBoundAction(\"continue\");\n\t\t\tthis.asteroids.get(i).setSpeed(0);\n\t\t\tthis.asteroids.get(i).setPosition(x, y);\n\t\t\t\n\t\t\tthis.sprites.add(this.asteroids.get(i));\n\t\t}\n\t\t\n\t\t\n\t\t//chest init\n\t\tthis.chests.add(new Chest(this.scene, \"chest.png\", 100, 50));\n\t\tthis.chests.get(0).setBoundAction(\"continue\");\n\t\tthis.chests.get(0).setSpeed(0);\n\t\tthis.chests.get(0).setPosition(500, 500);\n\t\tthis.sprites.add(this.chests.get(0));\n\t\t\n\t\tfor(int i = 1; i < this.numChests; i++){\n\t\t\t\n\t\t\tthis.chests.add(new Chest(this.scene, \"chest.png\", 100, 50));\n\t\t\tthis.chests.get(i).setBoundAction(\"continue\");\n\t\t\tthis.chests.get(i).setSpeed(0);\n\t\t\t\n\t\t\tboolean keepGoing = true;\n\t\t\tdo{\n\t\t\t\t\n\t\t\t\tlong x = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t\tlong y = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\t\n\t\t\t\twhile(x > 0 && x < this.scene.getWidth()){\n\t\t\t\t\tx = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twhile(y > 0 && y < this.scene.getHeight()){\n\t\t\t\t\ty = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tthis.chests.get(i).setPosition(x, y);\n\t\t\t\t\n\t\t\t\t//check for collisions with asteroids\n\t\t\t\tboolean colliding = false;\n\t\t\t\tfor(int j = 0; j < this.asteroids.size() && colliding == false; j++){\n\t\t\t\t\tif(this.asteroids.get(j).collidesWith(this.chests.get(i))){\n\t\t\t\t\t\tcolliding = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tkeepGoing = colliding;\n\t\t\t\t\n\t\t\t}while(keepGoing);\n\t\t\t\n\t\t\tthis.sprites.add(this.chests.get(i));\n\t\t\t\n\t\t}//end for\n\t\n\t\tthis.scene.start();\n\t\t\n\t\tSystem.out.println(\"==== Welcome to Space Smuggler! ====\");\n\t\tSystem.out.println(\"(WASD to move)\");\n\t\tSystem.out.println(\"Follow your compass in the bottom left corner to find treasure.\");\n\t\tSystem.out.println(\"Collect all of the treasure, then follow your compass to Earth!\");\n\t\tSystem.out.println(\"Watch out for the asteroids though, their gravitational pull is strong!\");\n\t\tSystem.out.println(\"Crashing into one will certainly kill you! D:\");\n\t\tSystem.out.println(\"Good Luck!\");\n\t\t\n\t}", "public void run (){\n\t\t\t\t\t\t\t\t\tgame.setScreen(game.ui);\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}", "private void init() {\n display = new Display(title, getWidth(), getHeight());\n Assets.init();\n player = new Player(getWidth() / 2, getHeight() - 100, 1, 60, 40, this);\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 6; j++) {\n aliens.add(new Alien(150 + 50 * j, 50 + 50 * i, 1, 40, 40, this));\n }\n }\n display.getJframe().addKeyListener(keyManager);\n }", "public GameScreen() {\n\n\t\tint midPointY = (int) (Const.GAME_HEIGHT / 2);\n\n\t\tworld = new GameWorld(midPointY);\n\t\trenderer = new GameRenderer(world);\n\n\t\tGdx.input.setInputProcessor(new InputHandler(world.getVentilatorUp(), world.getVentilatorDown()));\n\t\t// Gdx.input.setInputProcessor(new\n\t\t// InputHandler(world.getVentilatorTwo()));\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "public GameStart() {\n\t\tsuper(\"First 2D Game\");\n\t}", "@Override\n\tpublic void create() {\n\t\tthis.batch = new SpriteBatch();\n\t\t\n//\t\tgame.batch.begin();\n// player.draw(game.batch);\n// \n// game.batch.end();\n\t\t\n\t\tmanager = new AssetManager();\n\t\tmanager.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver()));\n\t\tmanager.load(\"data/level1.tmx\", TiledMap.class);\n\t\tmanager.load(\"data/background.png\", Texture.class);\n//\t\tmanager.load(\"level1.tsx\", TiledMapTileSet.class);\n\t\tmanager.finishLoading();\n\t\tscreen = new GameScreen(this);\n\t\tsetScreen(screen);\n\t\t\n\t}", "public MyWorld()\n { \n super(1200, 600, 1); \n prepare();\n bienvenida();\n instrucciones();\n sonido();\n }", "public void newGameJBJ() {\n newGame();\n min = 0; max = 1000;\n myctr.setMinMaxLabel();\n myctr.setLabels();\n }", "public void create () \n\t{ \n\t\t// Set Libgdx log level to DEBUG\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t// Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\tpaused = false;\n\t\t// Load preferences for audio settings and start playing music\n\t\tGamePreferences.instance.load();\n\t\tAudioManager.instance.play(Assets.instance.music.song01);\n\t\t// Start game at menu screen\n\t\tsetScreen(new MenuScreen(this));\n\t\t\n\t}", "@Override\n public void simpleInitApp() {\n observer = new Node(\"observer\");\n observer.setLocalTranslation(new Vector3f(0.0f, 0.0f, 0.0f));\n VRApplication.setObserver(observer);\n //OBSERVER INIT END\n \n //init playerObject\n playerLogic=new Player(getAssetManager(),rootNode,VRHardware,collisionResults,describables,observer);\n \n //TEST WORLD INIT START\n testRoom=new TestRoom(getAssetManager(),rootNode);\n \n testFloor=new TestFloor(getAssetManager(),rootNode);\n //TEST WORLD INIT END\n \n //OBJECTS INIT START\n collisionPrism0=new CustomTestObject(rootNode,getAssetManager(),describables,1f,0.5f,-0.6f,\"Models/Testing/Collisions/ColPrism.j3o\");\n collisionPrism1=new CustomTestObject(rootNode,getAssetManager(),describables,1f,0.5f,0f,\"Models/Testing/Collisions/ColPrismRightHand.j3o\");\n collisionPrism2=new CustomTestObject(rootNode,getAssetManager(),describables,1f,0.5f,0.6f,\"Models/Testing/Collisions/ColPrismLeftHand.j3o\");\n collisionPlain0=new CustomTestObject(rootNode,getAssetManager(),describables,-1f,0.5f,-0.6f,\"Models/Testing/Collisions/ColPlain.j3o\");\n collisionPlain1=new CustomTestObject(rootNode,getAssetManager(),describables,-1f,0.5f,0f,\"Models/Testing/Collisions/ColPlainRightHand.j3o\");\n collisionPlain2=new CustomTestObject(rootNode,getAssetManager(),describables,-1f,0.5f,0.6f,\"Models/Testing/Collisions/ColPlainLeftHand.j3o\");\n //OBJECTS INIT END\n \n //LIGHT INIT START\n PointLight light = new PointLight(new Vector3f(0f,0.5f,0f));\n light.setColor(ColorRGBA.White);\n rootNode.addLight(light);\n //LIGHT INIT END\n \n //LOAD SPACIALS END\n \n //INIT THE INPUTS START\n initInputs();\n //INIT THE INPUTS END\n \n }", "@Override\n public void onStart() {\n game = bwClient.getGame();\n self = game.self();\n intel = IntelligenceAgent.getInstance(game);\n combat = CombatAgent.getInstance(game);\n \n combat.addUnitTypeToModel(UnitClassification.MELEE);\n combat.addUnitTypeToModel(UnitClassification.RANGED);\n combat.loadModels();\n combat.setSkirmish(true);\n\n epoch = 14;\n frameCount = 0;\n Epoch_Cycles = 0;\n skirmVal = false;\n }", "public void newGame(){\n\t\tsoundMan.BackgroundMusic1();\n\n\t\tstatus.setGameStarting(true);\n\n\t\t// init game variables\n\t\tbullets = new ArrayList<Bullet>();\n\n\t\tstatus.setShipsLeft(8);\n\t\tstatus.setGameOver(false);\n\n\t\tif (!status.getNewLevel()) {\n\t\t\tstatus.setAsteroidsDestroyed(0);\n\t\t}\n\n\t\tstatus.setNewAsteroid(false);\n\n\t\t// init the ship and the asteroid\n\t\tnewShip(gameScreen);\n\t\tnewAsteroid(gameScreen);\n\n\t\t// prepare game screen\n\t\tgameScreen.doNewGame();\n\t\tsoundMan.StopMusic2();\n\t\tsoundMan.StopMusic3();\n\t\tsoundMan.StopMusic4();\n\t\tsoundMan.StopMusic5();\n\t\tsoundMan.StopMusic6();\n\t\t// delay to display \"Get Ready\" message for 1.5 seconds\n\t\tTimer timer = new Timer(1500, new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatus.setGameStarting(false);\n\t\t\t\tstatus.setGameStarted(true);\t\n\n\t\t\t\tstatus.setLevel(1);\n\t\t\t\tstatus.setNumLevel(1);\n\t\t\t\tstatus.setScore(0);\n\t\t\t\tstatus.setYouWin(false);\n\t\t\t\tstatus.setBossLife(0);\n\t\t\t}\n\t\t});\n\t\ttimer.setRepeats(false);\n\t\ttimer.start();\n\t}", "@Override\n public void setInitializePawn() {\n //overlayedStage.close();\n System.out.println(\"-Welcome-\");\n lightMove();\n startTable(this.getTable(), bt);\n }", "@Override\n public void run(){\n Initialize();\n // Load game files (images, sounds, ...)\n LoadContent();\n \n Framework.gameState = Framework.GameState.PLAYING;\n }", "@Override\n public void run(){\n Initialize();\n // Load game files (images, sounds, ...)\n LoadContent();\n \n Framework.gameState = Framework.GameState.PLAYING;\n }", "@Override\r\n public void simpleInitApp() {\r\n\r\n customCam = new GraphicalUserInterface.CustomCam(cam);\r\n if (customCam != null) {\r\n flyCam.setEnabled(false);\r\n customCam.registerWithInput(inputManager);\r\n customCam.setZoomSpeed(10f);\r\n customCam.setRotationSpeed(10f);\r\n customCam.setMoveSpeed(3f);\r\n customCam.setDistance(50.0f);\r\n }\r\n setDisplayStatView(false); // to hide the statistics\r\n setDisplayFps(false);\r\n viewPort.setBackgroundColor(ColorRGBA.Black);\r\n ambient.setColor(new ColorRGBA(0.7f, 0.7f, 0.8f, 1.0f));\r\n rootNode.addLight(ambient);\r\n // Set up the directional light\r\n light1.setColor(ColorRGBA.White);\r\n\r\n rootNode.addLight(light1);\r\n\r\n createSceneGraph();\r\n\r\n }", "@Override\r\n\tprotected void processInit() {\n\r\n\t}" ]
[ "0.690107", "0.6842472", "0.68017185", "0.6768452", "0.67451495", "0.6713344", "0.6688716", "0.6662931", "0.6641311", "0.66370827", "0.66345394", "0.66290575", "0.6623984", "0.6623142", "0.66182804", "0.66182804", "0.66182804", "0.6617611", "0.6603134", "0.65724015", "0.6570409", "0.65420526", "0.6536802", "0.6519338", "0.6506722", "0.6506548", "0.65054333", "0.64878654", "0.64711726", "0.6466404", "0.6461293", "0.6461098", "0.6457397", "0.64479464", "0.64443654", "0.64377177", "0.64152765", "0.64058834", "0.64006", "0.64000154", "0.6393314", "0.63889116", "0.6378872", "0.6368171", "0.63651294", "0.63586354", "0.6357456", "0.63568693", "0.6355144", "0.6354841", "0.63470376", "0.6339497", "0.633905", "0.6333369", "0.6332233", "0.63263506", "0.63260406", "0.6323445", "0.6321426", "0.63201934", "0.63181216", "0.6318004", "0.6311923", "0.6295016", "0.6294563", "0.6292234", "0.62900335", "0.62890863", "0.6288276", "0.62838924", "0.62796766", "0.62785107", "0.62754864", "0.62742037", "0.6269401", "0.62639004", "0.62629664", "0.6262677", "0.62623066", "0.6252449", "0.6252226", "0.62478924", "0.6245898", "0.6245693", "0.6242117", "0.62415946", "0.6238411", "0.62320215", "0.6231672", "0.6228989", "0.6226533", "0.6220794", "0.62125677", "0.6208654", "0.62073636", "0.6206778", "0.6204966", "0.6199589", "0.6199589", "0.61959976", "0.61929655" ]
0.0
-1
/ Is called to update the status of the objects in the game
@Override public void update(float delta) { //Default update call delegate to GameStateManager gsm.update(delta); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateObjects()\r\n {\r\n //update states\r\n for (Ball ball : balls) {\r\n \tif(ball!=null)\r\n \t{\r\n\t \tif(ball.GetVisible()) ball.MoveDown();\r\n\r\n \t}\r\n \telse ball=null;\r\n }\r\n \r\n }", "public void update() {\r\n gameObjects.update(playState);\r\n }", "public void doUpdateStatus() throws GameException\r\n {\n \r\n }", "public void update()\n\t{\n\t\tgameTime++;\n\t\tfor(int i = 0; i<gameObj.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < gameObj[i].size(); j++)\n\t\t\t{\n\t\t\t\t/*If the object implements movable\n\t\t\t\t * call the move method in each object\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof Imovable)\n\t\t\t\t\t((MovableObject)gameObj[i].get(j)).move();\n\t\t\t\t/*call CheckBlink() method in SpaceStation\n\t\t\t\t * if the time % blinkRate == 0\n\t\t\t\t * the visibility with be switched\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof SpaceStation)\n\t\t\t\t\t((SpaceStation)gameObj[i].get(j)).checkBlink(gameTime);\n\t\t\t\t/*check if missiles are out of fuel\n\t\t\t\tand remove if fuel = 0\n\t\t\t\t*/\n\t\t\t\tif(gameObj[i].get(j) instanceof Missile)\n\t\t\t\t\tif(((Missile)gameObj[i].get(j)).getFuel() <= 0)\n\t\t\t\t\t\tgameObj[i].remove(j);\n\t\t\t}\n\t\t}\t\t\n\t\tSystem.out.println(\"World updated\");\n\t}", "public void update() {\n\t\tfor (GameObject gameObject : objects) {\n\t\t\tgameObject.update();\n\t\t}\n\t}", "private void updateGUIStatus() {\r\n\r\n }", "private void battleTickStatuses(){\n updateStatuses(battleEnemies);\n updateStatuses(battleAllies);\n }", "boolean update(long fps, ArrayList<GameObject> objects,GameState gs,SoundEngine se, ParticleSystem ps){\n //update all the GameObjects\n for (GameObject object:objects){\n if (object.checkActive()){\n object.update(fps,objects.get(Level.PLAYER_INDEX).getTransform());\n }\n }\n if (ps.mIsRunning){\n ps.update(fps);\n }\n return detectCollisions(gs,objects,se,ps);\n }", "public void update() {\n\n if (!isSelected){\n goalManagement();\n }\n\n if (chair != null){ // si une chaise lui est désigné\n if (!hasAGoal && !isSelected){ // et qu'il n'a pas d'objectif\n setSit(true);\n position.setX(chair.getX());\n }\n\n if (isSit){\n chair.setChairState(Chair.ChairState.OCCUPIED);\n }else {\n chair.setChairState(Chair.ChairState.RESERVED);\n }\n }\n\n if (tired > 0 ){\n tired -= Constants.TIRED_LOSE;\n }\n\n if (isSit && comfort>0){\n comfort -= Constants.COMFORT_LOSE;\n }\n\n if (isSitOnSofa && comfort<100){\n comfort += Constants.COMFORT_WIN;\n }\n\n if (!hasAGoal && moveToCoffee && coffeeMachine!=null){\n moveToCoffee = false;\n tired=100;\n\n coffeeMachine.setCoffeeTimer(new GameTimer()) ;\n coffeeMachine.getCoffeeTimer().setTimeLimit(Constants.COFFEE_TIME_TO_AVAILABLE);\n coffeeMachine = null;\n backToSpawn();\n }\n\n if (!hasAGoal && moveToSofa){\n moveToSofa = false;\n isSitOnSofa = true;\n dir = 0 ;\n position.setY(position.getY()-Constants.TILE_SIZE);\n }\n\n if (isSelected){\n flashingColor ++;\n if (flashingColor > 2 * flashingSpeed){\n flashingColor = 0;\n }\n }\n\n }", "public void update() {\r\n\t\tif (!isPaused && !noclip)\r\n\t\t\tcollision();\r\n\t\tif (!isPaused)\r\n\t\t\tsideScroll();\r\n\r\n\t\t/*\r\n\t\t * Call the update , act(), method from each individual object if game\r\n\t\t * is not paused\r\n\t\t */\r\n\t\tif (!isPaused) {\r\n\t\t\tfor (CosmosEntity obj : level.getLevelEnemyObjects())\r\n\t\t\t\tif (obj.isAlive())\r\n\t\t\t\t\tobj.act(); // act if object is alive\r\n\r\n\t\t\tfor (CosmosEntity obj : level.getLevelInteractiveObjects())\r\n\t\t\t\tif (obj.isAlive())\r\n\t\t\t\t\tobj.act();\r\n\r\n\t\t\tfor (CosmosEntity obj : level.getLevelTextureObjects())\r\n\t\t\t\tobj.act();\r\n\r\n\t\t}\r\n\r\n\t\tfor (CosmosEntity anim : level.getlevelConstantObjects())\r\n\t\t\tif (anim.isAlive())\r\n\t\t\t\tanim.act();\r\n\r\n\t\tif (!isPaused)\r\n\t\t\tplayer.act(); // calls player act method, results in animation\r\n\r\n\t}", "public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}", "void updateState() {\n String[] players = client.getPlayers();\n System.out.println(Arrays.toString(players));\n\n if(oldPlayerNum != players.length){\n oldPlayerNum = players.length;\n updateComboBox();\n }\n\n playersListModel.clear();\n\n for (int i = 0; i < players.length; i++) {\n playersListModel.add(i, players[i]);\n }\n\n // SECOND check if player holding the ball / update GUI accordingly\n String[] playerBall = client.whoIsBall();\n boolean serverSideBall = Integer.parseInt(playerBall[1]) == client.getId();\n\n if (client.hasBall != serverSideBall) { // If the server says something different\n client.hasBall = serverSideBall;\n ballState(serverSideBall, playerBall[0]);\n }\n // THIRD if you are holding the ball update gui so that ball is throwable\n\n }", "@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}", "private void updateObjects(Graphics g){\n\t\tclearMhos(g);\n\t\tclearPlayer(g);\n\t\tdrawMhos(g);\n\t\tdrawPlayer(g);\n\t\tdrawFences(g);\n\t\tDraw.drawInstructions(g,smallFont);\n\t}", "private void update(long now){\n // call the GameMode manage() method\n if (MadBalls.isHost()) MadBalls.getGameMode().manage(now);\n\n ArrayList<GameObject> copiedGameObjects = new ArrayList<>(gameObjects.values());\n ArrayList<GameObject> shouldBeCheckedGameObjects = new ArrayList<>();\n quadtree.clear();\n\n // update objects\n for (GameObject obj : copiedGameObjects){\n obj.update(now);\n // remove dead objects\n if (obj.isDead()) {\n deadGameObjects.put(obj.getID(), obj);\n gameObjects.remove(obj.getID());\n }\n // prepare for collision checking for alive objects\n else {\n if (obj.isMobile()){\n shouldBeCheckedGameObjects.add(obj);\n }\n quadtree.insert(obj);\n }\n }\n\n// if (!isHost) return;\n // spawn items\n if (MadBalls.isHost()) itemSpawner.spawn(now);\n\n // collision checking\n List<GameObject> collidableObjects = new ArrayList();\n ArrayList<GameObject> checked = new ArrayList<>();\n\n for (GameObject checking : shouldBeCheckedGameObjects){\n if (!MadBalls.isHost() && !MadBalls.getMultiplayerHandler().getLocalPlayer().getRelevancy(checking.getTranslateX(), checking.getTranslateY(), 250, 250)) {\n continue;\n }\n collidableObjects.clear();\n quadtree.retrieve(collidableObjects, checking);\n for (GameObject target : collidableObjects){\n// for (GameObject target : copiedGameObjects.values()){\n if (target != checking && !checked.contains(target) && !target.hasChild(checking) && !target.hasOwner(checking)){\n checking.checkCollisionWith(target);\n }\n }\n checked.add(checking);\n }\n\n // check winner\n MadBalls.getGameMode().checkWinner(now);\n }", "@Override\n public void updateStates() {\n mySprite.update();\n }", "public void update() {\n\t\tImage background_buffer = createImage(stats.getWidth(),\n\t\t\t\tstats.getHeight());\n\t\tGraphics background_buffer_graphics = background_buffer.getGraphics();\n\t\t// updates the stats on screen\n\t\tbackground_buffer_graphics.drawString(\n\t\t\t\t\"Current Move: \" + (model.isWhiteToPlay() ? \"White\" : \"Black\"),\n\t\t\t\t5, 20);\n\t\tbackground_buffer_graphics.drawString(\"White Points: \"\n\t\t\t\t+ (((Game) model).getBoard().getWhiteScore()), 20, 125);\n\t\tbackground_buffer_graphics.drawString(\"Black Points: \"\n\t\t\t\t+ (((Game) model).getBoard().getBlackScore()), 20, 145);\n\n\t\tImage wc = null;\n\t\tImage bc = null;\n\t\t//\n\t\ttry {\n\t\t\twc = ImageIO.read(new File((\"images/white_piece.png\")));\n\t\t\tbc = ImageIO.read(new File((\"images/black_piece.png\")));\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\n\t\tif (model.isWhiteToPlay()) {\n\t\t\tbackground_buffer_graphics.drawImage(wc, 25, 30, null, null);\n\n\t\t} else {\n\t\t\tbackground_buffer_graphics.drawImage(bc, 25, 30, null, null);\n\n\t\t}\n\n\t\tstats.getGraphics().drawImage(background_buffer, 0, 0, null);\n\n\t}", "public void updateGameProgression() {\n \tif (players.size() == 0) {\n \t\tSystem.out.println(\"Game over\");\n \t\tgameOver.set(true);\n \t}\n \tif (goal.checkGoalCompleted().get()) {\n \t\tdungeonCompleted.set(true);\n \t} else {\n \t\tdungeonCompleted.set(false);\n \t}\n }", "@Override\n public void update() {\n if (Screen.checkState(GameState.RUNNING)) {\n healthToDraw = getPlayer().getHealth();\n maxHealthToDraw = getPlayer().getMaxHealth();\n minesToDraw = getPlayer().getCurrentMines();\n maxMinesToDraw = getPlayer().getMaxMines();\n currentLevelToDraw = Screen.getRoomHandler().getCurrentLevel();\n defenseToDraw = getPlayer().getDefense();\n speedToDraw = getPlayer().getSpeed();\n rangeToDraw = getPlayer().getSmallPlayerRange();\n damageToDraw = getPlayer().getPlayerDamage();\n playerRings = getPlayer().getRings();\n skillsToDraw = new Skill[4];\n for (int i = 0; i < getPlayer().getSkills().size(); i++) {\n if ( i < 4) {\n skillsToDraw[i] = getPlayer().getSkills().get(i);\n }\n }\n }\n }", "public void onLivingUpdate()\n {\n this.updateArmSwingProgress();\n float var1 = this.getBrightness(1.0F);\n\n if (var1 > 0.5F)\n {\n this.entityAge += 2;\n }\n\n super.onLivingUpdate();\n }", "public void update()\r\n\t{\r\n\t\tAndroidGame.camera.update(grid, player);\r\n\t\tplayer.update(grid);\r\n\t\tplayButton.update(player, grid);\r\n\t\tmenu.update(grid);\r\n\t\tgrid.update();\r\n\t\tif(grid.hasKey())\r\n\t\t\tgrid.getKey().update(player, grid.getFinish());\r\n\t\tif(levelEditingMode)//checking if the make button is clicked\r\n\t\t{\r\n\t\t\tif(makeButton.getBoundingRectangle().contains(Helper.PointerX(), Helper.PointerY()))\r\n\t\t\t{\r\n\t\t\t\tgrid.makeLevel();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdoorBubble.update();\r\n\t\t\tif(hasKey)\r\n\t\t\t\tkeyBubble.update();\r\n\t\t}\r\n\t}", "public void update(){\r\n }", "public void update() {\n\t\tVec2 newPos = calculatePos();\n\t\t/* energy bar */\n\t\tfloat newEnergy = actor.getEnergy();\n\t\tfloat maxEnergy = actor.getEnergyLimit();\n\t\tenergy.setPosition(newPos.getX(), newPos.getY() + paddingHealth / Application.s_Viewport.getX(), newEnergy,\n\t\t\t\tmaxEnergy);\n\t\t/* health bar */\n\t\tfloat newHealth = actor.getHealth();\n\t\tfloat maxHealth = actor.getHealthLimit();\n\t\thealth.setPosition(newPos.getX(), newPos.getY() + paddingEnergy / Application.s_Viewport.getX(), newHealth,\n\t\t\t\tmaxHealth);\n\t\t/* name label */\n\t\tplayerName.setPosition(newPos.getX(), newPos.getY() + paddingName / Application.s_Viewport.getY());\n\t}", "public void update(){\n if(newPlayer.getRunning()) {\n\n if (botborder.isEmpty())\n {\n newPlayer.setRunning(false);\n return;\n }\n if (topborder.isEmpty())\n {\n newPlayer.setRunning(false);\n return;\n }\n\n background.update();\n newPlayer.update();\n\n\n //A threshold that the border can have based on the score\n maxBorderHeight = 30+newPlayer.getScore()/difficulty;\n if (maxBorderHeight > height/4){\n maxBorderHeight = height/4;\n minBorderHeight = 5+newPlayer.getScore()/difficulty;\n }\n\n for (int i = 0; i < topborder.size(); i++){\n if (collision(topborder.get(i), newPlayer)){\n newPlayer.setRunning(false);\n }\n }\n for (int i = 0; i < botborder.size(); i++){\n if (collision(botborder.get(i), newPlayer)){\n newPlayer.setRunning(false);\n }\n }\n\n this.updateTopBorder();\n //Create the borders\n this.updateBotBorder();\n\n //Adds smoke from spaceship from the timer\n long timeElapsed = (System.nanoTime() - outTimer)/1000000;\n if(timeElapsed > 120){\n effect.add(new Effects(newPlayer.getX(), newPlayer.getY()+30)); //Balls will appear out of backside of spaceship.\n outTimer = System.nanoTime();\n }\n for (int i = 0; i < effect.size(); i++){\n //Go through every ball and then update\n effect.get(i).update();\n if (effect.get(i).getX()<-10){\n effect.remove(i); //Removes the balls that are off the screen\n }\n }\n\n //Adds enemies in, first one in middle, rest are random\n long enemyElapsed = (System.nanoTime()- enemyStart)/1000000;\n //Higher the score is, the less delay there is\n if (enemyElapsed> (1500 - newPlayer.getScore()/4)){\n\n if (enemy.size() == 0){\n enemy.add(new Enemy(BitmapFactory.decodeResource(getResources(),R.drawable.enemy1), width+10, height + 50,25, 30, 30, 1));\n }\n else {\n enemy.add(new Enemy(BitmapFactory.decodeResource(getResources(),R.drawable.enemy1), width + 10, (int) (rng.nextDouble()*(height-(maxBorderHeight*2))+maxBorderHeight),25,30, newPlayer.getScore(), 1));\n }\n //Reset Timer\n enemyStart = System.nanoTime();\n\n }\n\n long shipElapsed = (System.nanoTime()-secondaryTimer)/1000000;\n\n\n if (newPlayer.getScore() == 150){\n level = 2;\n }\n\n //Randomised spot for secondary enemy\n if (newPlayer.getScore()%150==0) {\n if (newEnemy.size() == 0) {\n newEnemy.add(new secondaryEnemy(BitmapFactory.decodeResource(getResources(), R.drawable.enemy2), width + 5, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 32, 26, 5, 1));\n newEnemy.add(new secondaryEnemy(BitmapFactory.decodeResource(getResources(), R.drawable.enemy2), width + 5, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 32, 26, 5, 1));\n }\n\n secondaryTimer = System.nanoTime();\n }\n\n long thirdElapsed = (System.nanoTime()- tertiaryTimer)/1000000;\n\n if (newPlayer.getScore() == 300){\n level = 3;\n }\n if (level == 3) {\n if (enemyElapsed> (1500 - newPlayer.getScore()/4))\n\n //CHANGE THIS YOU PLEB!!!!\n if (thirdEnemy.size() == 0) {\n thirdEnemy.add(new thirdShip(BitmapFactory.decodeResource(getResources(), R.drawable.longship), width + 10, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 31, 49, 45, 1));\n } else {\n thirdEnemy.add(new thirdShip(BitmapFactory.decodeResource(getResources(), R.drawable.longship), width + 10, (int) (rng.nextDouble() * (height - (maxBorderHeight * 2)) + maxBorderHeight), 31, 49, newPlayer.getScore()/4, 1));\n }\n\n //Reset Timer\n tertiaryTimer = System.nanoTime();\n }\n\n //Go through every enemy and collision will check if two game objects are colliding.\n for (int i = 0; i < enemy.size(); i++){\n enemy.get(i).update();\n if(collision(enemy.get(i), newPlayer)){\n enemy.remove(i);\n newPlayer.setRunning(false);\n break;\n }\n if (enemy.get(i).getX()<-100){\n enemy.remove(i);\n break;\n }\n }\n\n for (int i = 0; i < newEnemy.size(); i++) {\n newEnemy.get(i).update();\n if (collision(newEnemy.get(i), newPlayer)) {\n newEnemy.remove(i);\n newPlayer.setRunning(false);\n break;\n }\n if (newEnemy.get(i).getX() < -100) {\n newEnemy.remove(i);\n break;\n }\n }\n\n for (int i = 0; i < thirdEnemy.size(); i++) {\n thirdEnemy.get(i).update();\n if (collision(thirdEnemy.get(i), newPlayer)) {\n thirdEnemy.remove(i);\n newPlayer.setRunning(false);\n break;\n }\n if (thirdEnemy.get(i).getX() < -100) {\n thirdEnemy.remove(i);\n break;\n }\n }\n\n }\n else {\n //Reset the acceleration of the player, if not reset then the start death animation will occur and everything will reset\n newPlayer.resetAcceleration();\n if (!reset){\n gamenew = false;\n startDeath = System.nanoTime();\n reset = true;\n disappear = true;\n death = new deathAnimation(BitmapFactory.decodeResource(getResources(),R.drawable.damage), newPlayer.getX(),newPlayer.getY()-30,329,137,1);\n level = 1;\n }\n death.update();\n\n long timeElapsed = (System.nanoTime()-startDeath)/1000000;\n\n //If time has passed and there is no new game yet, then create a new game.\n if (timeElapsed > 2500 && !gamenew){\n newGame();\n }\n\n }\n }", "public void update()\r\n {\n for (MapObject mo : gameData.getMap().getObjects())\r\n {\r\n mo.getAI().advance();\r\n }\r\n \r\n // update the UI\r\n for (UIElement uiEl : ui.getUIElements())\r\n {\r\n uiEl.update();\r\n }\r\n\r\n // Move the map objects\r\n movHandler.moveObjects();\r\n\r\n // Refresh the screen position\r\n Player player = gameData.getPlayer();\r\n this.centerScreen((int) player.getX() + Tile.TILESIZE / 2, (int) player.getY() + Tile.TILESIZE / 2);\r\n }", "public void statusChanged(GameStatusEvent e) {\n gameRunning = false;\n if(e.isGameOver()) {\n gameWon = false;\n hauptfenster.getSounds().playGameOver(); // abspielen der Sounds\n } else if(e.isGameWon()) {\n gameWon = true;\n hauptfenster.getSounds().playGameWon(); // abspielen der Sounds\n }\n hauptfenster.getSpielfeld().drawNew(); // Spielfeld neu zeichnen\n hauptfenster.getToolbar().updateToolbar(hauptfenster.getDionaRapModel().getShootAmount(), hauptfenster.getDionaRapModel().getScore(), hauptfenster.getProgress());\n hauptfenster.getSpielfeld().gameStatusEnd(hauptfenster.getPlayer(), gameWon); // das Icon bei gewonnen oder verloren setzen\n hauptfenster.getToolbar().setEnabled(); // den \"Neues Spiel\"-Button auf aktiv setzen\n hauptfenster.getMenubar().setGameSettingsEnabled(); // den \"Spieleinstellungen\"-Button auf aktiv setzen\n\n int end_position = HighScoreFile.SCORE_TO_LOW_FOR_HIGHSCORE;\n try{\n end_position = HighScoreFile.getInstance().getScorePosition(hauptfenster.getDionaRapModel().getScore()); // auslesen der Position\n } catch (IOException ex) {\n System.err.println(\"File kann nicht gelesen werden: \" + ex);\n }\n if(end_position != HighScoreFile.SCORE_TO_LOW_FOR_HIGHSCORE && gameWon) {\n addBestlist(); // Bestenliste Dialog zeichnen\n }\n addDialog(gameWon); // den Dialog zeichnen\n }", "public void update() {\n\t\tif (screen.scale != newScale) \n\t\t\tscreen = new Screen(Game.width/newScale, Game.height/newScale, newScale);\n\t\t\n\t\tif (screen.width != Game.width || screen.height != Game.height) {\n\t\t\t\n\t\t\tscreen = new Screen(Game.width/newScale, Game.height/newScale, newScale);\n\t\t}\n\t\t\n\t\tfor (Terrain t : terrainObjs) {\n\t\t\tt.update();\n\t\t}\n\t\t\n\t\tif (backgroundMain != null) {\n\t\t\tbackgroundMain.update();\n\t\t}\n\t\t\n\t\txPos += xMoving;\n\t\tyPos += yMoving;\n\t}", "@Override\n\tpublic boolean update(){\n\t\tif(dead){ return true; }\n\t\tfieldOfView.setOwnerId(this.ownerId);\n\t\tupdateHealthBar();\n\t\tupdateTexture();\n\t\tregenHealth();\n\t\tadjustAttackspeed();\n\t\tattack();\n\t\treturn false;\n\t}", "@Override\n public void update() {\n updateHealth();\n updateActiveWeapon();\n updateAmmunition();\n updateWaveCounter();\n updateReloading();\n }", "public void update(){\n\t\tsetChanged();\n\t\trender();\n\t\tprintTimer();\n\t}", "public void update(){\r\n\t\t\r\n\t}", "public void update(){\n\t\tthis.game.atacarZombies(this.x, this.y, this.damage, 1, false); //Misma fila\n\t\tthis.game.atacarZombies(this.x-1, this.y, this.damage, 1, false); //Fila arriba\n\t\tthis.game.atacarZombies(this.x+1, this.y, this.damage, 1, false); //Fila abajo\n\t\tthis.turno++;\n\t}", "public void update()\n\t{\n\t\t//\tTHE WORLD HAS ENDED DO NOT EXECUTE FURTHER\n\t\tif( end )\n\t\t{\n\t\t\tsafeEnd = true;\n\t\t\treturn;\n\t\t}\n\n\t\t//Plot graphics\n\t\tif(plot){\n\t\t\thealthyFunction.show(infectedFunction, healthyFunction);\n\t\t\tbusFunction.show(infectedFunction, seasFunction, busFunction, colFunction, ellFunction, smpaFunction, lawFunction);\n\t\t\tplot = false;\n\t\t}\n\n\t\t//\tsafe point to manage human/zombie ratios\n\t\t//\tTODO: Modify infect to also switch zombies to humans\n\t\tinfect();\n\t\tgetWell();\n\t\taddFromQueue();\n\n\t\t//\tupdate all entities\n\t\tfor( Zombie z: zombies )\n\t\t{\n\t\t\tz.update(zombiesPaused);\n\t\t}\n\t\tfor( Entity h: humans )\n\t\t{\n\t\t\th.update(humansPaused);\n\t\t}\n\n\t\tif( zc!=zombies.size() || hc!=humans.size() )\n\t\t{\n\t\t\tzc = zombies.size();\n\t\t\thc = humans.size();\n\t\t\tSystem.out.println(zc+\"/\"+hc);\n\t\t}\n\n\t\t//Add points to our functions\n\t\thealthyFunction.add(time,humans.size());\n\t\tinfectedFunction.add(time,zombies.size());\n\t\tseascount = smpacount = ellcount = lawcount = buscount = colcount = 0;\n\t\tfor (int i = 0; i < humans.size(); i++) {\n\t\t\tEntity curr = humans.get(i);\n\t\t\tif (curr instanceof SEAS) {\n\t\t\t\tseascount++;\n\t\t\t} else if (curr instanceof SMPA) {\n\t\t\t\tsmpacount++;\n\t\t\t} else if (curr instanceof Elliot) {\n\t\t\t\tellcount++;\n\t\t\t} else if (curr instanceof Law) {\n\t\t\t\tlawcount++;\n\t\t\t} else if (curr instanceof Business) {\n\t\t\t\tbuscount++;\n\t\t\t} else if (curr instanceof Columbian) {\n\t\t\t\tcolcount++;\n\t\t\t}\n\t\t}\n\t\tbusFunction.add(time, buscount);\n\t\tcolFunction.add(time, colcount);\n\t\tellFunction.add(time, ellcount);\n\t\tlawFunction.add(time, lawcount);\n\t\tsmpaFunction.add(time, smpacount);\n\t\tseasFunction.add(time, seascount);\n\t\ttime++;\n\t}", "public void gameupdate(){\n game.update();\r\n panel.formUpdate(game.lives);\r\n }", "public void update() ;", "@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}", "@Override\n\tpublic void update() {\n\n\t\ttimer++;\n\t\tupdatePlayer();\n\t\tupdateScreen();\n\t\tupdateLives();\n\n\t}", "private void updateSprites() {\n\t\tpaddle1.setX(paddle1X);\r\n\t\tpaddle1.setY(paddle1Y);\r\n\r\n\t\tpaddle2.setX(paddle2X);\r\n\t\tpaddle2.setY(paddle2Y);\r\n\r\n\t\tball.setX(ballX);\r\n\t\tball.setY(ballY);\r\n\r\n\t\tscore.setVisible(paused);\r\n\t}", "private void updatePlayersStatus() {\n PlayerModel[] playersInLobby = this.lobbyModel.getPlayersInLobby();\n int i = 0;\n for (; i < playersInLobby.length; i++) {\n final PlayerModel playerInLobby = playersInLobby[i];\n final TextField playerStatus = this.playersStatus[i];\n playerStatus.setColor(playerInLobby.isReady() ? Color.GREEN : Color.RED);\n playerStatus.setText(playerInLobby.getUsername());\n playerInLobby.clearPropertyChangeListeners();\n this.addPropertyChangeListener(playerInLobby, new PropertyChangeListener() {\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n String propertyName = evt.getPropertyName();\n if (propertyName.equals(\"username\")) {\n playerStatus.setText((String) evt.getNewValue());\n } else if (propertyName.equals(\"ready\")) {\n playerStatus.setColor((boolean) evt.getNewValue() ? Color.GREEN : Color.RED);\n }\n }\n });\n if (i >= 1 && this.host) {\n TextButton kickButton = kickButtons[i - 1];\n kickButton.clearListeners();\n kickButton.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent e, float x, float y) {\n Connection connection = ConnectionManager.getInstance().getConnection();\n if (connection instanceof ServerConnection) {\n UUID playerUUID = playerInLobby.getPlayerUUID();\n ServerSenderReceiver client = ((ServerConnection) connection).getClientByUUID(playerUUID);\n if (client != null) {\n connection.sendPacket(new KickPlayerPacket(playerUUID));\n ((ServerConnection) connection).removeClient(client);\n connection.getPlayer().getLobby().removePlayer(client.getPlayer());\n }\n }\n }\n });\n kickButton.setDisabled(false);\n }\n }\n for (int j = i; j < this.playersStatus.length; j++) {\n final TextField playerStatus = this.playersStatus[j];\n playerStatus.setColor(Color.RED);\n playerStatus.setText(\"\");\n if (j >= 1 && this.host) {\n TextButton kickButton = kickButtons[j - 1];\n kickButton.clearListeners();\n kickButton.setDisabled(true);\n }\n }\n }", "public void updateFrame() {\n if (level != null) {\n for (GameEntity entity : entities) entity.update(this);\n pacman.update(this);\n checkCollisions();\n }\n }", "public void update(){\n }", "public void updateOnScreen() {\n\t\tscreen.updateBox();\n\n\t}", "public void statusChanged() {\n\t\tif(!net.getArray().isEmpty()) {\n\t\t\tigraj.setEnabled(true);\n\t\t}else\n\t\t\tigraj.setEnabled(false);\n\t\t\n\t\tupdateKvota();\n\t\tupdateDobitak();\n\t}", "public void update() {\r\n\t\t\r\n\t}", "private void update() {\n if(!Constants.GAME_OVER) {\n deltaTime = (int) (System.currentTimeMillis() - startTime);\n startTime = System.currentTimeMillis();\n elapsedTime = (int) (System.currentTimeMillis() - initTime)/1000;\n Constants.ELAPSED_TIME = elapsedTime;\n //Log.d(\"FRAMES \", \"\"+ Constants.FRAME_COUNT);\n //call update on every object\n player.update();\n enemyManager.update(player);\n starManager.update(player.getSpeed());\n asteroidManager.update(player);\n } else {\n playing = false;\n sound.stopBg();\n for(int i = 0; i < highScore.length; i++) {\n if (Constants.SCORE > highScore[i]) {\n final int endI = i;\n highScore[i] = Constants.SCORE;\n // Log.d(\"SCORE \", \"\" + highScore[i]);\n break;\n }\n }\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n for(int i = 0; i < highScore.length; i++) {\n int index = i + 1;\n editor.putInt(\"score\" + index, highScore[i]);\n }\n editor.apply();\n }\n }", "public void update()\n\t{\n\t\tgrid.draw();\n\t\tmonsterSpawner.update();\n\t\tjewelSpawner.update();\n\t\t\n\t\tint numOnCenter = 0;\n\t\tfor (Player player : players)\n\t\t\tif (player.getSprite().onCenterArea())\n\t\t\t\tnumOnCenter++;\n\t\tfor (Player player : players) {\n\t\t\tif (numOnCenter < 2 && player.getSprite().onCenterArea())\n\t\t\t\tplayer.addScore(Clock.getSeconds());\n\t\t\tplayer.update();\n\t\t}\n\t\tfor (Iterator<Projectile> iterator = projectiles.iterator(); iterator.hasNext();) {\n\t\t\tProjectile projectile = iterator.next();\n\t\t\tif (!projectile.exists())\n\t\t\t\titerator.remove();\n\t\t\telse\n\t\t\t\tprojectile.update();\n\t\t}\n\t\t\n\t\tui.update();\n\t\tfor (int i = traps.size() - 1; i >= 0; i--)\n\t\t{\n\t\t\tTrap trap = traps.get(i);\n\t\t\ttrap.update();\n\t\t\tif (!trap.exists())\n\t\t\t{\n\t\t\t\ttraps.remove(i);\n\t\t\t\tgrid.removeEntity(trap.getCurrentTile());\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void update(Game game) {\n\t\t\n\t}", "public void update() {\n\t\t\n\t}", "public void update() {}", "@Override\n\t public void actionPerformed(ActionEvent e) {\n\t\t isPlayerDead();\n\t\t isGameRunning();\n\n\t updatePlayer();\n\t updateCentipede();\n\t updateMissiles();\n\t\t updateMushrooms();\n\t updateSpider();\n\n\t checkCollisions();\n\t repaint();\n\t }", "@Override\n public void notifyStatusObservers() {\n for(StatusObserver statusObserver : statusObservers){\n //TODO maybe get status render info from current selection instead of entities. This would remove the double calls to functions in EntityOwnership\n StatusRenderInformation temp = entities.returnStatusRenderInformation();\n statusObserver.update(entities.returnStatusRenderInformation());\n }\n }", "public void update(){\n\t\tupdatePlayerPosition();\n\t\thandleCollisions();\n\t}", "private void updateStatus() {\n String statusString = dataModel.getStatus().toString();\n if (dataModel.getStatus() == DefinitionStatus.MARKER_DEFINITION) {\n statusString += \" Number of markers: \" + dataModel.getNumberOfMarkers() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n if (dataModel.getStatus() == DefinitionStatus.POINTS_DEFINITION) {\n statusString += \" Number of point fields: \" + dataModel.getNumberOfPoints() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n statusLabel.setText(statusString);\n }", "public void updateInformation() {\r\n onFirstCycle = false;\r\n lastLocation = player.getLocation();\r\n preparedAppearance = false;\r\n }", "public void updateGame(){\n\t\tbird.tick(input);\n\t\tthis.spawnObstacle();\n\t\tif(this.obstacles.size() > 0 && this.goals.size() > 0){\n\t\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\t\tObstacle obs = obstacles.get(i);\n\t\t\t\tobs.tick();\n\t\t\t\tif(this.bird.onCollision(obs.x, obs.y, obs.w,obs.h)){\n\t\t\t\t\tthis.gameOver = true;\n\t\t\t\t\tSound.dead.play();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<this.goals.size();i++){\n\t\t\t\tGoal goal = goals.get(i);\n\t\t\t\tgoal.tick();\n\t\t\t\tif(this.bird.onCollision(goal.x, goal.y, goal.w,goal.h) && goal.active){\n\t\t\t\t\tSound.clink.play();\n\t\t\t\t\tthis.numGoals++;\n\t\t\t\t\tif(this.numGoals > this.bestScore) this.bestScore = this.numGoals;\n\t\t\t\t\tgoal.active = false;\n\t\t\t\t\tSystem.out.println(this.numGoals);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "private void updatePlayerList() \n\t{\n\t\tplayerStatus.clear();\n\n\t\tfor(Player thisPlayer: players) // Add the status of each player to the default list model.\n\t\t{\n\t\t\tplayerStatus.addElement(thisPlayer.toString());\n\t\t}\n\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStatus(status);\n\t}", "@Override\r\n public void update(MiniGame game){\r\n PathXDataModel data = (PathXDataModel) game.getDataModel();\r\n \r\n //Check if 10 seconds has past since activating steal\r\n if (getSpecialState().equals(PathXSpriteState.STEALING.toString())){\r\n GregorianCalendar newTime = new GregorianCalendar();\r\n long timePast = newTime.getTimeInMillis() - getSpecialTimer().getTimeInMillis();\r\n if ((timePast / 1000) >= 10){\r\n game.getGUIButtons().get(PathXConstants.STEAL_BUTTON_TYPE).setState(PathXSpriteState.VISIBLE.toString());\r\n setSpecialState(\"\");\r\n setSpecialTimer(null);\r\n }\r\n \r\n }\r\n \r\n //Check if 10 seconds has past since activating Intangibility\r\n if (getSpecialState().equals(PathXSpriteState.INTANGIBLE.toString())){\r\n GregorianCalendar newTime = new GregorianCalendar();\r\n long timePast = newTime.getTimeInMillis() - getSpecialTimer().getTimeInMillis();\r\n if ((timePast / 1000) >= 10){\r\n game.getGUIButtons().get(PathXConstants.INTANGIBILITY_BUTTON_TYPE).setState(PathXSpriteState.VISIBLE.toString());\r\n setSpecialState(\"\");\r\n setSpecialTimer(null);\r\n }\r\n \r\n }\r\n \r\n //Check if 10 seconds has past since activating God Mode\r\n if (getSpecialState().equals(PathXSpriteState.GOD_MODE.toString())){\r\n GregorianCalendar newTime = new GregorianCalendar();\r\n long timePast = newTime.getTimeInMillis() - getSpecialTimer().getTimeInMillis();\r\n if ((timePast / 1000) >= 10){\r\n game.getGUIButtons().get(PathXConstants.GOD_MODE_BUTTON_TYPE).setState(PathXSpriteState.VISIBLE.toString());\r\n setSpecialState(\"\");\r\n setSpecialTimer(null);\r\n }\r\n \r\n }\r\n\r\n if (getSpecialState().equals(PathXSpriteState.STEALING.toString())) {\r\n ArrayList<Car> otherCars = new ArrayList();\r\n otherCars.addAll(data.getCops());\r\n otherCars.addAll(data.getBandits());\r\n otherCars.addAll(data.getZombies());\r\n\r\n for (Car car : otherCars) {\r\n if (aabbsOverlap(car)) {\r\n if (!car.isStolen()) {\r\n data.getRecord().balance += 20;\r\n car.setStolen(true);\r\n }\r\n }\r\n }\r\n }\r\n \r\n super.update(game);\r\n \r\n PathXDataModel dataModel = (PathXDataModel) game.getDataModel();\r\n PathXNode safeHouse = dataModel.getNodes().get(1);\r\n if (getIntersection() == safeHouse)\r\n dataModel.endGameAsWin();\r\n }", "@Override\n\tpublic void update() {\n\t\tticks++;\n\t\tswitch (state) {\n\t\tcase MENU:\n\t\tcase INTRO:\n\t\t\tupdateBackground();\n\t\t\tbreak;\n\n\t\tcase PLAYING:\n\t\t\tbreak;\n\t\tcase GAMEOVER:\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\n\t\t}\n\n\t\tWorld.update();\n\t\tScreen.update();\n\n\t}", "public void fullRenderRefresh() {\n gameChanged = true;\n visionChanged = true;\n backgroundChanged = true;\n selectionChanged = true;\n movementChanged = true;\n }", "public void update(){\n if(player.getPlaying()) {\n // update player animation.\n player.update();\n // update background animation.\n bg.update();\n // checks if skater has finished falling animation to end the game.\n if (player.animate instanceof FallAnimate && player.animate.getDone()) {\n player.setPlaying(false);\n player.setFall(false);\n System.out.println(\"End \" + player.getPlaying());\n }\n // checks if player has reached required points.\n if(player.getScore() > TARGETSCORE){\n player.setPlaying(false);\n levelCompleted = true;\n levelReset = System.nanoTime();\n }\n // increment jumpcounter while crouched.\n if (player.animate instanceof CrouchingAnimate && (jumpCounter <= 25)) {\n jumpCounter++;\n }\n // Creating Bananas:\n long bananaElapsed = (System.nanoTime() - bananaStartTime) / 1000000;\n if(bananaElapsed > 10500 && MainActivity.difficulty != 0){\n bananas.add(new Banana(BitmapFactory.decodeResource(getResources(),\n R.drawable.bigbanana), WIDTH + 10, (int) (HEIGHT * 0.85), 40, 40, 1));\n bananaStartTime = System.nanoTime();\n }\n //collision detection:\n for (int i = 0; i < bananas.size(); i++) {\n bananas.get(i).update();\n if (collision(bananas.get(i), player)) {\n bananas.remove(i);\n player.setFall(true);\n player.setPlaying(false);\n break;\n }\n // removing bananas when off screen\n if (bananas.get(i).getX() < -100) {\n bananas.remove(i);\n break;\n }\n }\n // Creating Cones:\n long coneElapsed = (System.nanoTime() - coneStartTime) / 1000000;\n if (coneElapsed > 5000) {\n cones.add(new TallBricks(BitmapFactory.decodeResource(getResources(),\n R.drawable.tallbricks), WIDTH + 10, (int) (HEIGHT * 0.59), 100, 161, 1));\n coneStartTime = System.nanoTime();\n }\n // update and check collisions.\n for (int i = 0; i < cones.size(); i++) {\n\n cones.get(i).update();\n if (collision(cones.get(i), player) && MainActivity.difficulty == 0) {\n cones.remove(i);\n player.forceSetScore(-500);\n break;\n }\n\n if (collision(cones.get(i), player) && MainActivity.difficulty != 0) {\n cones.remove(i);\n player.setFall(true);\n break;\n }\n // removing cones when off screen\n if (cones.get(i).getX() < -100) {\n cones.remove(i);\n break;\n }\n\n if((cones.get(i).getX() < player.getX() -15) ){\n cones.remove(i);\n player.setPendingPoints(1000);\n break;\n }\n }\n }\n else if(player.getPlaying() == false && levelCompleted){\n long resetElapsed = (System.nanoTime()-levelReset)/1000000;\n if(resetElapsed > 4000) {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(\"result\",true);\n ((Activity)context).setResult(Activity.RESULT_OK,resultIntent);\n ((Activity)context).finish();\n }\n }\n else if(player.getPlaying() == false && !levelCompleted){\n if(!reset){\n newGameCreated = false;\n startReset = System.nanoTime();\n reset = true;\n }\n\n long resetElapsed = (System.nanoTime()-startReset)/1000000;\n\n if(resetElapsed > 2500 && !newGameCreated){\n newGame();\n }\n else if(resetElapsed < 2500 && started){\n player.update();\n }\n }\n }", "public void update() {\n\n\t\tfollow();\n\t\tcreateHitBox(this);\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 updateStats( ) {\r\n\t\tperseverance = owner.perseverance;\r\n\t\tobservation = owner.observation;\r\n\t\tintellect = owner.intellect;\r\n\t\tnegotiation = owner.negotiation;\r\n\t\ttact = owner.tact;\r\n\t\tstrength = owner.strength;\r\n\r\n\t\txCoord = owner.xCoord;\r\n\t\tyCoord = owner.yCoord;\r\n\r\n\t\tmaxHealth = 2400 + ( perseverance * 200 );\r\n\r\n\t\thealth = maxHealth;\r\n\r\n\t\tsetDamages( );\r\n\t}", "void onStatusUpdate(int status);", "public void generalUpdate() {\n\n\t\tif (player.isDead()) {\n\t\t\trespawnTimer++;\n\t\t\tif (respawnTimer > 90) {\n\t\t\t\treset();\n\t\t\t}\n\t\t}\n\t\tif (started) {\n\t\t\tplayer.generalUpdate();\n\n\t\t\tspawnCount++;\n\t\t\tif (spawnCount > 100) {\n\t\t\t\tcreateWall();\n\t\t\t\tspawnCount = 0;\n\t\t\t}\n\t\t}\n\n\t\tsky.generalUpdate();\n\t\tmountains.generalUpdate();\n\t\ttrees.generalUpdate();\n\n\t\t//Cycle through walls ArrayList and update each one\n\t\t\n\t\tfor (int i = 0; i < walls.size(); i++) {\n\t\t\tWall w = walls.get(i);\n\t\t\tw.generalUpdate();\n\t\t}\n\t\t//Same thing with Ground objects\n\t\t\n\t\tfor (int i = 0; i < ground.size(); i++) {\n\t\t\tGround g = ground.get(i);\n\t\t\tg.generalUpdate();\n\n\t\t\t//Also check each for collision with player\n\t\t\t\n\t\t\tif (player.getBounds().overlaps(g.getBounds())\n\t\t\t\t\t&& player.isDead() == false) {\n\t\t\t\tplayer.die();\n\t\t\t\tAssets.playSound(\"hit\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t//When walls go off screen, delete\n\t\t\n\t\tfor (int i = 0; i < walls.size(); i++) {\n\t\t\tWall w = walls.get(i);\n\t\t\tif (w.getBounds().x < -64) {\n\t\t\t\twalls.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < checkPoints.size(); i++) {\n\t\t\tWall c = checkPoints.get(i);\n\t\t\tc.generalUpdate();\n\t\t}\n\n\t\tfor (int i = 0; i < checkPoints.size(); i++) {\n\t\t\tWall c = checkPoints.get(i);\n\t\t\tif (c.getBounds().x <= player.getBounds().x) {\n\t\t\t\tscore++;\n\t\t\t\tcheckPoints.remove(i);\n\t\t\t\ti--;\n\t\t\t\tAssets.playSound(\"score\");\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < walls.size(); i++) {\n\t\t\tWall w = walls.get(i);\n\t\t\tif (player.getBounds().overlaps(w.getBounds())\n\t\t\t\t\t&& player.isDead() == false) {\n\t\t\t\tplayer.die();\n\t\t\t\tAssets.playSound(\"hit\");\n\t\t\t}\n\t\t}\n\n\t\tif (score > highScore) {\n\t\t\thighScore = score;\n\t\t}\n\n\t}", "public void update() {\n }", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "public void updateScreen(){}", "public void update(double delta){\n \tthis.av.update();\n \t\n \t//checar� a cada update se haver� colis�o\n \tfor(int i=0;i<10;i++){\n \t\t//se houver colis�o entre Avatar e os lixos normais, ser�o acrescidos 10 pontos ao player\n\t\t\tif(this.lixo[i].collision(av, lixo[i])){\n\t\t\t\tScorePanel.score += 10;\n\t\t\t}\n\t\t}\n \t\n \t//Checa se todos os lixos Foram coletados\n<<<<<<< HEAD\n \tif(ScorePanel.getScore() == 100 && telaConcluida == false){\n \t\ttelaConcluida = true;\n \t\t//JOptionPane.showMessageDialog(null, \"Fase 1 conclu�da!!!\");\n \t\t//ScorePanel.setScoreToZero();\n=======\n \tif(Garbage.getScore() == 100){\n \t\tJOptionPane.showMessageDialog(null, \"Fase 1 conclu�da!!!\");\n \t\tGarbage.setScoreToZero();\n>>>>>>> c1516bff6596a16ab28a02b04aa726b8350d9899\n \t}\n \t\n \t//se houver colis�o entre Avatar e o lixo especial, ser�o acrescidos 10 segundos a mais para o player\n \tif(lixoEspecial.collision(av, lixoEspecial)){\n \t\tTimerGameplay.tempo += 10; \n \t}\n }\n \n //atualiza renderização\n public void draw(){\n \tthis.repaint();\n }\n\t\n\t@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t/*/limites do campo e coordenadas\n\t\tSystem.out.println(\"ACTION EVENT\");\n\t\t\n\t\tif(this.av.x<0){\n\t\t\tthis.av.vx = 0;\n\t\t\tthis.av.x = 0;\n\t\t}\n\t\t\n\t\tif(this.av.x> 800){\n\t\t\tthis.av.vx = 0;\n\t\t\tthis.av.x = 800;\n\t\t}\n\t\t\n\t\tif(this.av.y<0){\n\t\t\tthis.av.vy = 0;\n\t\t\tthis.av.y = 0;\n\t\t}\n\t\t\n\t\tif(this.av.y> 570){\n\t\t\tthis.av.vy = 0;\n\t\t\tthis.av.y = 570;\n\t\t}\n\t\tthis.av.x = this.av.x + this.av.vx;\n\t\tthis.av.y = this.av.y + this.av.vy;\n\t\t\n\t\t//repaint();//*/\n\t}//*/\n\n\t@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tthis.av.keyPressed(e);\n\t}\n\n\t@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\tthis.av.keyReleased(e);\n\t}\n\n\t@Override\n\tpublic void keyTyped(KeyEvent e) {}", "protected void updateGameState() {\n }", "@Override\n\tpublic void update(GameContainer gc) {\n\t\t\n\t}", "public void update() {\n scenes.get(ACTIVE_SCENE).update();\n }", "@Override\n public void update() {\n super.update();\n\n //check if ball is out\n checkBallOutTopBottom();\n checkBallOutLeftRight();\n }", "public void update() {\n for (int i = 0; i < activePickups.size(); i++) {\n\n Pickup p = activePickups.get(i);\n p.update();\n\n if (p.posY > MooseGame.HEIGHT || p.isActive == false) {\n activePickups.remove(p);\n }\n }\n\n }", "public void update() {\n\n }", "public void update() {\n\n }", "@Override\r\n\tpublic void update() {\n\t\tListIterator<Player> it = players.listIterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tit.next().update();\r\n\t\t}\r\n\t\t// Logica del juego, etc\r\n\t\tcontrolMenu();\r\n\t}", "public void update(RenderWindow window) {\r\n bg.update (); //update X and scroll background accordingly\r\n updateXPosition ();\r\n updateYPosition (); // Updates Y Position\r\n handleJumping (); // Handles Jumping\r\n\r\n Font fontStyle = new Font(); //load font\r\n try {\r\n fontStyle.loadFromFile(Paths.get(FontFile));\r\n } catch (IOException ex) {\r\n ex.printStackTrace( );\r\n }\r\n\r\n Text healthbar = new Text((\"health: \" + String.valueOf(getCurrentHealth())), fontStyle, 15);\r\n\r\n healthbar.setColor(Color.GREEN);\r\n healthbar.setStyle(Text.BOLD | Text.UNDERLINED);\r\n healthbar.setPosition(centerX, centerY-15);\r\n\r\n if(this.getCurrentHealth() <= 50) {\r\n healthbar.setColor(Color.YELLOW);\r\n }\r\n if(this.getCurrentHealth() <= 25) {\r\n healthbar.setColor(Color.RED);\r\n }\r\n\r\n window.draw(background);\r\n window.draw(healthbar);\r\n }", "private void update() {\n for (Background bg : backgrounds) {\n bg.update(fps);\n }\n\n }", "private void setGameStatus() {\n this.gameStatus = false;\n }", "public void update()\n {\n reinit(viewer.getScene().getActors());\n\n list.invalidate();\n invalidate();\n repaint();\n }", "public void startGame() {\n status = Status.COMPLETE;\n }", "public void update( ) {\n\t\tdraw( );\n\t}", "void doUpdate() {\n\t\tdrawPlayer(backBufferContext, context);\n\t\tcheckForInteractions();\n\t}", "boolean update();", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "public void update() {\n\t\tupdate(1);\n\t}", "public void update();", "public void update();" ]
[ "0.75236136", "0.7496819", "0.7351646", "0.7313552", "0.7143713", "0.7034862", "0.70280105", "0.70106226", "0.6836964", "0.67853266", "0.6766328", "0.67615616", "0.67526287", "0.67474467", "0.6689447", "0.66861016", "0.665333", "0.6636554", "0.66317374", "0.6623749", "0.6613652", "0.66017556", "0.65958595", "0.6594515", "0.65938455", "0.6586397", "0.6581539", "0.65806454", "0.6578324", "0.6562361", "0.65602875", "0.6544291", "0.65322423", "0.65238506", "0.6521178", "0.6518306", "0.6506993", "0.6504267", "0.64998627", "0.64983356", "0.6489732", "0.6484808", "0.6479005", "0.6469739", "0.64674014", "0.6459825", "0.6459388", "0.64584345", "0.64564544", "0.6447975", "0.6437408", "0.6432845", "0.6430702", "0.6428073", "0.64253217", "0.6424819", "0.641725", "0.641725", "0.641725", "0.641725", "0.641539", "0.64115316", "0.6408908", "0.64074814", "0.6405618", "0.64042825", "0.63933504", "0.6388517", "0.6386773", "0.63788885", "0.63697344", "0.6367829", "0.6367829", "0.6367829", "0.6367829", "0.6367829", "0.6367829", "0.6367829", "0.6367829", "0.6365024", "0.63613886", "0.6359983", "0.6358632", "0.63477206", "0.634525", "0.63438034", "0.6341251", "0.6341251", "0.633764", "0.6327362", "0.6325092", "0.63240767", "0.6320579", "0.63200873", "0.6317079", "0.6314785", "0.6314603", "0.6284271", "0.6284098", "0.62733287", "0.62733287" ]
0.0
-1
/ Is called when the screen is being rendered
@Override public void render(float delta) { //Default render call delegate to GameStateManager gsm.render(sb, sr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDisplay() {\n\n\t}", "@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}", "protected void onComponentRendered()\n\t{\n\t}", "public void onDisplay() {\n }", "public void render(){\n//\t\tsetCards();\n//\t\tsetMurderInfo();\n\t}", "public void render() {\r\n\r\n }", "@Override\n public void beforeRender()\n {\n\n }", "public void render()\r\n\t{\n\t}", "public void render() {\n\t\tscreen.background(255);\n\t\thandler.render();\n\t}", "private void render() {\n\n StateManager.getState().render();\n }", "@Override\r\n\tpublic void render() {\n\t\t\r\n\t}", "public void render() {\n }", "@Override\n public void render() {\n super.render();\n }", "@Override\n public void render() {\n super.render();\n }", "protected void onScreenActivate() {\r\n }", "@Override\r\n\tpublic void render() {\n\r\n\t}", "@Override\n\tpublic void render () {\n super.render();\n\t}", "public void updateScreen(){}", "@Override\n\tpublic void render() {\n\t\t\n\t}", "@Override\n\tpublic void render () {\n\n\t}", "@Override\n public void render() { super.render(); }", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "void onRender(RenderArguments arguments);", "public void render() {\n renderHud();\n }", "protected void render(){}", "public void render() {\n\t\t// do nothing... as we should\n\t}", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tdisplayEvent();\n\t}", "public void updateScreen()\n {\n super.updateScreen();\n }", "@Override\n public void render() {\n GUI.clearScreen();\n if (assetManager.update()) {\n switch (gameState) {\n case MENU:\n GUI.menuLoop();\n break;\n case PAUSE:\n case GAME:\n gameLoop();\n break;\n case LOAD:\n World.load();\n gameState = GameState.GAME;\n break;\n }\n } else {\n GUI.splashScreen(assetManager.getProgress());\n }\n DrawManager.end();\n }", "protected void preRender()\n {\n // subclass\n }", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "public void render() {\n uiBatch.begin();\n for (int x = 0; x < uiManager.getUIComponents().size();x++) {\n uiManager.getUIComponent(x).render(uiBatch, Assets.patch);\n }\n if (uiManager.dialogue != null) {\n uiManager.dialogue.render(uiBatch, Assets.patch);\n }\n if (!uiManager.notifications.isEmpty()) {\n uiManager.notifications.get(0).render(uiBatch, Assets.patch);\n }\n uiManager.partyMenu.render(uiBatch, Assets.patch);\n uiBatch.end();\n }", "public void onRenderTick() {\n updateLang();\n updateRenderEngine();\n }", "@Override\n\tpublic void render(float deltaTime) {\n\t\t\n\t}", "public void run (){\n\t\t\t\t\t\t\t\t\tgame.setScreen(game.ui);\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}", "@Override\n public boolean isToBeRendered()\n {\n return true;\n }", "public final void calledDuringRender() {\n calledEveryFrame();\n numFrames++;\n }", "@Override\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\trequestRender();\n\t}", "@Override\n\tpublic void render () {\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);\n\n\t\tvalidarPontos();\n\t\tverificarEstadoJogo();\n\t\tdesenharTexturas();\n\t\tdetectarColisoes();\n\n\t}", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "@Override\n\tpublic void show() {\n\t worldRenderer = new WorldRenderer(game);\n\t\tGdx.input.setCatchBackKey(true);\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "private void settingsScreenRender() {\n overlay.draw(batch, 0.5f);\n uiFont.draw(batch, scoreTxt, 0, HEIGHT - (scoreLayout.height));\n uiFont.draw(batch, healthTxt, WIDTH / 2, HEIGHT - (healthLayout.height));\n musicOn.draw(batch, 1);\n musicOff.draw(batch, 1);\n resume.draw(batch, 1);\n settingStage.draw();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tlevel.screen.game.switchScreen(ShooterGame.VICTORY);\n\t\t\t}", "@Override\n\tpublic void render() {\n\t\t// only render it when visible is true\n\t\tif (visible == false) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tsuper.render();\n\t\t}\n\t}", "public void render();", "@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}", "public void onResume() {\n super.onResume();\n drawUI();\n }", "@Override \n protected void startup() {\n GretellaView view = new GretellaView(this);\n show( view );\n view.initView(); \n }", "@Override\n\tpublic void setUpScreenElements() {\n\t\t\n\t}", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}", "@Override\n public void prerender() {\n }", "public void onStart() {\r\n\t\tthis.setVisible(true);\r\n\t}", "@Override\n public void onStart() {\n super.onStart();\n updateUI();\n }", "@Override\n\tpublic void render(float delta) {\n\t}", "@Override\n public void onFrameAvailable(SurfaceTexture st) {\n mGLView.requestRender();\n }", "@Override\n\tpublic void InitView() {\n\t\t\n\t}", "private void renderView() {\r\n\t\tSystem.out.println(this.currentView.render());\r\n\t}", "@Override\n\tpublic void prepareScreen() {\n\t\tgl.glColor3d(0.0, 0.0, 0.0);\n\t\tgl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t}", "@Override\n\tpublic void show() {\n\t\t Gdx.app.log(\"GameScreen\", \"show called\");\n\t}", "@Override\n public void render(float delta) {\n super.render(delta);\n stateTime += delta;\n loadingImage.setDrawable(loadingAnim.getKeyFrame(stateTime,true));\n switch (GameController.getInstance().getCurrentState()) {\n case PLAYING:\n //Game started\n xlpooLsionClient.setScreen(new ControlsScreen(xlpooLsionClient));\n break;\n case SERVER_FULL:\n xlpooLsionClient.setScreen(new ServerFullScreen(xlpooLsionClient));\n break;\n case LOST_CONNECTION:\n xlpooLsionClient.setScreen(new LostConnectionScreen(xlpooLsionClient));\n break;\n }\n }", "@Override\r\n public void render() {\n \r\n stage.act();\r\n stage.draw();\r\n }", "@Override\n\tpublic void render(float delta) {\n\n\t}", "public GameScreen() {\n\n\t\tint midPointY = (int) (Const.GAME_HEIGHT / 2);\n\n\t\tworld = new GameWorld(midPointY);\n\t\trenderer = new GameRenderer(world);\n\n\t\tGdx.input.setInputProcessor(new InputHandler(world.getVentilatorUp(), world.getVentilatorDown()));\n\t\t// Gdx.input.setInputProcessor(new\n\t\t// InputHandler(world.getVentilatorTwo()));\n\t}", "@Override\n\tprotected void controlRender(RenderManager rm, ViewPort vp) {\n\t\t\n\t}", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "@Override\n\tpublic void forceRender() {\n\n\t}", "@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tif (!mIsActive)\n\t\t\treturn;\n\n\t\t// Call our function to render content from ArVuforiaAppRenderer class\n\t\tmRenderer.render();\n\t}", "public void start() {\r\n view.addListener(this);\r\n view.makeVisible();\r\n view.display();\r\n }", "@Override\n public void onPostInit()\n {\n\n }", "void init() {\n setVisible(true);\n\n }", "@Override\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }", "public void render () \n\t{ \n\t\trenderWorld(batch);\n\t\trenderGui(batch);\n\t}", "@Override\r\n\tpublic void beforeRender(float dt) {\n\r\n\t}", "@Override\n protected void windowInit ()\n {\n }", "protected void render() {\n\t\tString accion = Thread.currentThread().getStackTrace()[2].getMethodName();\n\t\trender(accion);\n\t}", "@Override\n\tpublic void show() {\n\t\tGdx.app.log(\"GameScreen\", \"Showing\");\n\n\t}", "public void render() {\n this.canvas.repaint();\n }", "abstract void onShown();", "void setupRender() {\n\t\tif (!init()) {\n\t\t\tisAccess = false;\n\t\t\treturn;\n\t\t}\n\t}", "private void renderHook(){\n\t\thook.setPosition(world.hook.position.x, world.hook.position.y);\n\t\thook.setRotation(world.hook.rotation);\n\t\thook.draw(batch);\n\t}", "@Override\r\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }", "@Override\n protected void onResume() {\n super.onResume();\n init();\n decideScreen();\n }", "@Override\n\tpublic void onShowScene() {\n\t\t\n\t}", "public void render(){\n\t\tstage.act();\n\t\tstage.draw();\n\t}", "@Override\n public void onResume() {\n super.onResume();\n setUpScreen();\n }", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "private void viewInit() {\n }", "public void updateOnScreen() {\n\t\tscreen.updateBox();\n\n\t}", "void onRenderGui(RenderArguments arguments);", "public void fullRenderRefresh() {\n gameChanged = true;\n visionChanged = true;\n backgroundChanged = true;\n selectionChanged = true;\n movementChanged = true;\n }", "public StartScreen()\n { \n // Create a new world with 1111x602 cells with a cell size of 1x1 pixels.\n super(1111, 602, 1); \n prepare();\n background.playLoop();\n }", "public void mo9839a() {\n onLayout(false, 0, 0, 0, 0);\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "public void prerender() {\n }", "public void prerender() {\n }", "@Override\n\tpublic void updateScreen()\n {\n super.updateScreen();\n ++this.updateCount;\n }", "@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}" ]
[ "0.7427113", "0.73931134", "0.7303252", "0.73019814", "0.71876", "0.7163901", "0.7151831", "0.71080923", "0.7089009", "0.7070944", "0.7024823", "0.70206326", "0.70154315", "0.70154315", "0.6988091", "0.6929346", "0.6907602", "0.6891879", "0.68705714", "0.68687576", "0.68519276", "0.68473774", "0.68351686", "0.68256825", "0.68035275", "0.6793374", "0.6749527", "0.67439485", "0.6710791", "0.6686614", "0.6685177", "0.6666732", "0.6647671", "0.66390204", "0.66303885", "0.66074437", "0.66067165", "0.66057247", "0.6601516", "0.6591954", "0.658542", "0.6584323", "0.6533914", "0.65303284", "0.6527061", "0.65091115", "0.6507413", "0.6485501", "0.6473451", "0.6467918", "0.6458958", "0.64529085", "0.64448994", "0.64396644", "0.6426807", "0.6424916", "0.64229053", "0.64154613", "0.64004976", "0.63941145", "0.6393495", "0.63914514", "0.63847506", "0.6383778", "0.6379578", "0.6371921", "0.6370756", "0.63684237", "0.63646996", "0.63640845", "0.6357852", "0.63544637", "0.6350461", "0.6346302", "0.6340743", "0.6339335", "0.6335831", "0.6335509", "0.6334764", "0.6334521", "0.63340163", "0.6333259", "0.63289243", "0.6327789", "0.6324199", "0.63210493", "0.63151294", "0.6312135", "0.631143", "0.6310174", "0.63080925", "0.6300877", "0.6300859", "0.6292672", "0.6292672", "0.629143", "0.629143", "0.62908626", "0.62908626", "0.6286684", "0.6281011" ]
0.0
-1
/ This function is being called when the game is over
@Override public void gameover(GameOverMessage state) { platform.notifyCurrGameOver(state); sb.dispose(); sr.dispose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void gameOver() {\n\t\t\n\t}", "@Override\r\n\tpublic void gameOver() {\n\t\tgameOver = true;\r\n\t\tupdate();\r\n\t}", "public void gameOver() {\r\n\t\tgameFrame.gameOver();\r\n\t\tnotifyViews();\r\n\t}", "@Override\r\n\tpublic void gameOver() {\n\t\tover = true;\r\n\t\tupdate();\r\n\t}", "private void gameOver() {\n\t\tgameOver=true;\n\t}", "public void gameOver()\r\n {\n addObject(new Text(\"Game Over\"), 550, 300);\r\n backgroundMusic.pause();\r\n Greenfoot.stop();\r\n }", "private void gameOver() {\n System.out.println(\"GAME OVER!!\");\n\n reset();\n mGameOver = true;\n mChangeObserver.gameOver();\n }", "public void gameOver() {\n\t}", "public void gameOver() {\n // if (ENABLE_SOUND) {\n // sfx.endGame();\n // }\n doLeaderboard = true;\n frameRate(10);\n //this.state = GameState.MENU;\n //If line 151 runs, it bypasses the gameover leaderboard screen for some reason\n //redraw();\n}", "public void gameOver(){\n\t\tstatus.setGameStarted(false);\n\t\tstatus.setGameOver(true);\n\t\tgameScreen.doNewGame();\n\t\tsoundMan.StopMusic();\n\t\n\t\t// delay to display \"Game Over\" messa\tprivate Object rand;\n\n\t\tTimer timer = new Timer(3000, new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatus.setGameOver(false);\n\t\t\t}\n\t\t});\n\t\ttimer.setRepeats(false);\n\t\ttimer.start();\n\t}", "void gameOver();", "void gameOver();", "public void gameOver() {\n\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 30);\n g.setFont(small);\n g.drawString(\"GAME OVER\", 250, 300);\n g.drawString(\"PRESS R TO RESTART GAME\", 150,400 );\n if(keyManager.restart==true)\n {\n gameOver=true;\n aliens.clear();\n shotVisible=false;\n Assets.init();\n \n player = new Player(getWidth() / 2, getHeight() - 100, 1, 60, 40, this);\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 6; j++) {\n aliens.add(new Alien(150 + 50 * j, 50 + 50 * i, 1, 40, 40, this));\n }\n }\n \n \n }\n }", "public void gameOver ()\n {\n Greenfoot.delay (50);\n if (gameOver)\n {\n fader = new Fader (); // create a new fader\n addObject (fader, 400, 300); // add the fader object to the world\n if (UserInfo.isStorageAvailable()) {\n HighScore highScore = new HighScore (score);\n addObject (highScore, 300, 170);\n }\n Greenfoot.stop();\n }\n }", "public void gameOver() {\r\n grid.exposeMines();\r\n this.displayGrid();\r\n System.out.println(\"Better luck next time!\");\r\n }", "public void isGameOver() { \r\n myGameOver = true;\r\n myGamePaused = true; \r\n }", "public void notifyGameOver() {\n\t\tgameOver = true;\n\t}", "public void gameOver() \n {\n ScoreBoard endGame = new ScoreBoard(\"You Lose!\", scoreCounter.getValue());\n addObject(endGame, getWidth()/2, getHeight()/2);\n }", "@Override\n public void endGame(){\n gameOver = true;\n }", "public void gameOver() \n {\n new GameOver();\n Greenfoot.stop();\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n controller.gameOver();\n }", "protected void quitGame() {\n gameOver = true;\n }", "void gameResumed();", "public void gameOver() \n {\n Greenfoot.stop();\n }", "public void gameOver() {\n this.lives --;\n this.alive = false;\n }", "public void gameOver() {\n\t\tframe.setTitle(frame.getTitle() + \" - Game Over\");\n\t}", "public void gameOver(){\n gameOverMusic.loop(pitch, volume);\n }", "public static void gameOver() {\n ScoreBoard.write(ScoreController.getScoresPath());\n populate();\n }", "public void gameOver() {\n tb.setState();\n Date finalDate = new Date();\n float currTime = (finalDate.getTime() - start) / 1000F;\n Intent intent = new Intent(getContext(), TrueBlueOverActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\n intent.putExtra(\"Score\", score);\n\n intent.putExtra(\"Time\", currTime);\n\n intent.putExtra(\"Level\", level);\n getContext().startActivity(intent);\n }", "public void gameOver() {\n \tint currentPosition=0;\n \twhile(lenght-1 > currentPosition) {\n \t\tif(this.xCoord==handler.getWorld().body.get(currentPosition).x && this.yCoord==handler.getWorld().body.get(currentPosition).y) {\n \t\t\tState.setState(handler.getGame().gameOverState);\n \t\t}\n \t\t\n \t\tcurrentPosition++;\n \t\t\n \t}\n }", "private boolean gameOver() {\r\n\t\treturn (lifeBar == null || mehran == null);\r\n\t}", "private void gameOver() {\n\t\tAsteroidsGameOverString gameOverString = new AsteroidsGameOverString(GameObject.ROOT);\n\t\tgameOverString.setScale(new Vector3(5.0, 5.0, 5.0));\n\t\tgameOverString.translate(new Vector3(0.0, 8.0));\n\t}", "void setGameOver() {\n myGameOver = true;\n myJump.userPauseThreads();\n }", "boolean isGameOver() {\n\t\treturn Hit;\n\t}", "@Override\n public boolean isGameOver() {\n //TODO Implement this method\n return false;\n }", "@Override\n public void gameOver() {\n messagePanel.showMessage(image);\n setEnabled(false);\n }", "public void gameOver(){ // will be more complex in processing (like a fadey screen or whatever, more dramatic)\n System.out.println();\n System.out.println(\"Three strikes and you're out! You're FIRED!\");\n gameOver = true;\n }", "public void gameOver() {\r\n\t\t// Clean up the model layer\r\n\t\tModelEventSource.clear();\r\n\t\tStargate.clearStargates();\r\n\r\n\t\t//\r\n\t\tisReplicatorMoving = false;\r\n\t\tplayers.clear();\r\n\t\treplicator = null;\r\n\t\tzpmSet.clear();\r\n\t}", "private void gameOver(final int status) {\n // Play R.raw.robot_bleep\n soundPool.play(this.soundIds[2], 1, 1, 3, 0, (float) 1.0);\n this.gameOverDisplayed = true;\n ((PongGame) context).gameState = PongGame.GAME_OVER;\n this.touchEnabled = false;\n\n ((PongGame) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n DialogInterface.OnDismissListener listener = new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(@NonNull DialogInterface dialog) {\n dialog.dismiss();\n }\n };\n GeneralFunctions.displayDialog(context, status, listener);\n }\n });\n }", "@Override\n public void onAnimationEnd(Animator animator) {\n proclaimGameOver();\n\n\n }", "@Override\n\tpublic void OnGameEnd() {\n\t\tsuper.OnGameEnd();\n\t}", "public void onTurnOver() {}", "@Override\r\n public void checkWarGameOver(){\r\n if(this.checkOnePlayerDecksEmpty(0)){\r\n // Set gameOver flag to true\r\n this.isGameOver = true; \r\n \r\n }\r\n \r\n }", "@Override\n public void gameOver(GameController game) {\n updateScreen(game);\n ((MultiplayerHostController) Main.game).updateClient();\n\n switch (game.getCurrentState()) {\n case END_DRAW:\n JOptionPane.showMessageDialog(this, \"Draw!\");\n break;\n case END_CIRCLE:\n JOptionPane.showMessageDialog(this, \"You won!\");\n break;\n case END_CROSS:\n JOptionPane.showMessageDialog(this, \"You lost!\");\n break;\n }\n stopGame();\n }", "public void wonGame(){\n\t\tSystem.out.println(\"Bravo, du hast gewonnen! Möchtest du noch einmal spielen?\");\n\t\tstopGame();\n\t\tstarted = false;\n\t\tspiel_status = 1;\n\t\tpaintMenu();\n\t}", "public void gameEnded() {}", "public void endGameSequence()\n {\n gameOver = true;\n repaint();\n }", "public void playerLost()\r\n {\r\n \r\n }", "@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}", "public void gameOver(){\n\t\tif(wrongList.size()==8){\r\n\t\t\tSystem.out.println(\"The game is end\");\r\n\t\t\tSystem.exit(0);}\r\n\t\telse if(gameWon()==true){\r\n\t\t\tSystem.out.println(\"You win the Game!\");\r\n\t\t\tSystem.out.println(\"The game is end\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\telse\r\n\t\t\tplayGame();\r\n\t\t\r\n\t}", "void gameFinished();", "public void gameOver() {\n cls();\n displayWord();\n displayGuessedAndRemain();\n printHangman();\n System.out.println(\"Game over!\");\n System.exit(0);\n }", "@Override\r\n public int playGameLoop() {\r\n return 0;\r\n }", "@Override\n\tpublic void gameStopped() {\n\t}", "@Override\n\tpublic void onGameOver(ReadOnlyBoard board, Counter winner) {\n\n\t}", "@Override\n\tpublic void onEnter(Game game) {\n\t\t\n\t}", "void gameStarted();", "void gameStarted();", "public boolean gameOver() \n {\n \treturn status() != GAME_NOT_OVER;\n }", "boolean GameOver() {\n\t\treturn player.isDead();\n\t}", "public boolean gameOver();", "public boolean gameOver();", "public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tGUI.panel.changeGame();\r\n\t}", "private void inGame() {\n\n if (!ingame) {\n timer.stop();\n\n }\n }", "public void run() //call game over method \r\n {\r\n gui.display(\"The time limit has been reached. The game is now over!\");\r\n \r\n try { //try catch for Thread.sleep in gameOver()\r\n gameOver();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Game.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void gameWon()\n {\n ScoreBoard endGame = new ScoreBoard(\"You Win!\", scoreCounter.getValue());\n addObject(endGame, getWidth()/2, getHeight()/2);\n }", "public void endGame() {\n \t\tisOver = true;\n \t\ttimeGameEnded = System.nanoTime();\n \t\tremoveAll();\n \t\trequestFocusInWindow();\n \t}", "protected boolean isGameOver(){\n return (getShipsSunk()==10);\n }", "void endGame () {\n gameOver = true;\n System.out.println(\"Game over\");\n timer.cancel();\n }", "public boolean isGameOver() {\r\n\treturn false;\r\n }", "private void gameOver() {\r\n timer.stop();\r\n if (JOptionPane.showConfirmDialog(this, \r\n \"Game Over!\\nDo you want to play again?\",\r\n FORM_TITLE,JOptionPane.YES_NO_OPTION) == \r\n JOptionPane.YES_OPTION) {\r\n startGame();\r\n }\r\n else { \r\n close();\r\n }\r\n }", "public void battleOver()\r\n {\r\n isBattleOver = true;\r\n }", "public void lostGame(){\n\t\tSystem.out.println(\"Schade, du hast verloren. Möchtest du es noch einmal versuchen?\");\n\t\tif(!singleplayer){\n\t\t\tif(player.getLifes() == 0){\n\t\t\t\tSystem.out.println(\"Spieler 2 gewinnt!\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Spieler 1 gewinnt!\");\n\t\t\t}\n\t\t\n\t\t}\n\t\tstopGame();\n\t\tstarted = false;\n\t\tspiel_status = 0;\n\t\tpaintMenu();\n\t}", "public abstract boolean gameIsOver();", "@Override\r\n\tpublic void tick() {\r\n\t\tif(game.getMouseManager().isLeftPressed()){\r\n\t\t\tif(game.getMouseManager().getMouseX()>=118 && game.getMouseManager().getMouseX()<=282){\r\n\t\t\t\tif(game.getMouseManager().getMouseY()>=233 && game.getMouseManager().getMouseY()<=251){\r\n\t\t\t\t\tgame.PlayingState().gameBegin();\r\n\t\t\t\t\tGameStates.setGameStateTo(game.getPlayingState());\r\n\t\t\t\t\tGameStates.setChangeState(false);\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\tif(game.getMouseManager().getMouseX()>=113 && game.getMouseManager().getMouseX()<=287){\r\n\t\t\t\tif(game.getMouseManager().getMouseY()>=271 && game.getMouseManager().getMouseY()<=289){\r\n\t\t\t\t\tGameStates.setGameStateTo(game.getHighScoreState());\r\n\t\t\t\t\tGameStates.setChangeState(false);\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\tif(game.getMouseManager().getMouseX()>=172 && game.getMouseManager().getMouseX()<=226){\r\n\t\t\t\tif(game.getMouseManager().getMouseY()>=309 && game.getMouseManager().getMouseY()<=327){\r\n\t\t\t\t\tScore.storeHighScores();\r\n\t\t\t\t\tgame.stop(); //need changes\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tGameStates.setChangeState(true);\r\n\t\t}\r\n\t}", "public void onBoardGameOver(ObjPuyoBoard board) {\n\t\t\t\n\t\t}", "void start() {\n myGameOver = false;\n myDisplay.setCurrent(this);\n repaint();\n }", "public boolean gameOver()\n {\n return checkmate()||draw()!=NOT_DRAW;\n }", "public boolean gameOver(){\n\t\treturn this.lives < 1;\n\t}", "private void gameTimerOnFinish() {\n if (currentScreenGameState == GameState.PLAYING) {\n stopGame();\n }\n }", "public void checkMovedRedraw(){\n if((board.isTreasureCollected() || board.isKeyCollected()) && muteMusic == false){\n music.playAudio(\"PickupSound\");\n }\n renderer.redraw(board, boardCanvas.getWidth(), boardCanvas.getHeight());\n if(board.isChipAlive() == false){\n gamePaused = true;\n timeRuunableThread.setPause(gamePaused);\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelCompleteSound\");\n }\n musicName = \"LevelCompleteSound\";\n JOptionPane.showMessageDialog(null, \"Oops! Better luck next time!\", \"Failed\", 1);\n canLoadGame = false;\n } else if(board.isLevelFinished()){\n gamePaused = true;\n timeRuunableThread.setPause(gamePaused);\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelCompleteSound\");\n }\n musicName = \"LevelCompleteSound\";\n if(level == 1){\n int saveOrNot = JOptionPane.showConfirmDialog(null, \"congratulations! Level 1 passed! Go to next level?\", \"Confirm\", JOptionPane.YES_NO_OPTION);\n if (saveOrNot == 0) { // yes\n level = level + 1;\n newGameStart(level);\n } else {\n gamePaused = true;\n }\n }else if(level == 2){\n JOptionPane.showMessageDialog(null, \"congratulations! Level 2 passed!\", \"Win Level 2\", JOptionPane.INFORMATION_MESSAGE);\n }\n }else if(board.onInfoTile()){\n JOptionPane.showMessageDialog(null, readAllLines(), \"Information\", JOptionPane.INFORMATION_MESSAGE);\n }else{\n try {\n infoCanvas.drawChipsLeftNumber(board.getTreasureRemainingAmount());\n infoCanvas.drawKeysChipsPics();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }", "public void update(){\n if(player.getPlaying()) {\n // update player animation.\n player.update();\n // update background animation.\n bg.update();\n // checks if skater has finished falling animation to end the game.\n if (player.animate instanceof FallAnimate && player.animate.getDone()) {\n player.setPlaying(false);\n player.setFall(false);\n System.out.println(\"End \" + player.getPlaying());\n }\n // checks if player has reached required points.\n if(player.getScore() > TARGETSCORE){\n player.setPlaying(false);\n levelCompleted = true;\n levelReset = System.nanoTime();\n }\n // increment jumpcounter while crouched.\n if (player.animate instanceof CrouchingAnimate && (jumpCounter <= 25)) {\n jumpCounter++;\n }\n // Creating Bananas:\n long bananaElapsed = (System.nanoTime() - bananaStartTime) / 1000000;\n if(bananaElapsed > 10500 && MainActivity.difficulty != 0){\n bananas.add(new Banana(BitmapFactory.decodeResource(getResources(),\n R.drawable.bigbanana), WIDTH + 10, (int) (HEIGHT * 0.85), 40, 40, 1));\n bananaStartTime = System.nanoTime();\n }\n //collision detection:\n for (int i = 0; i < bananas.size(); i++) {\n bananas.get(i).update();\n if (collision(bananas.get(i), player)) {\n bananas.remove(i);\n player.setFall(true);\n player.setPlaying(false);\n break;\n }\n // removing bananas when off screen\n if (bananas.get(i).getX() < -100) {\n bananas.remove(i);\n break;\n }\n }\n // Creating Cones:\n long coneElapsed = (System.nanoTime() - coneStartTime) / 1000000;\n if (coneElapsed > 5000) {\n cones.add(new TallBricks(BitmapFactory.decodeResource(getResources(),\n R.drawable.tallbricks), WIDTH + 10, (int) (HEIGHT * 0.59), 100, 161, 1));\n coneStartTime = System.nanoTime();\n }\n // update and check collisions.\n for (int i = 0; i < cones.size(); i++) {\n\n cones.get(i).update();\n if (collision(cones.get(i), player) && MainActivity.difficulty == 0) {\n cones.remove(i);\n player.forceSetScore(-500);\n break;\n }\n\n if (collision(cones.get(i), player) && MainActivity.difficulty != 0) {\n cones.remove(i);\n player.setFall(true);\n break;\n }\n // removing cones when off screen\n if (cones.get(i).getX() < -100) {\n cones.remove(i);\n break;\n }\n\n if((cones.get(i).getX() < player.getX() -15) ){\n cones.remove(i);\n player.setPendingPoints(1000);\n break;\n }\n }\n }\n else if(player.getPlaying() == false && levelCompleted){\n long resetElapsed = (System.nanoTime()-levelReset)/1000000;\n if(resetElapsed > 4000) {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(\"result\",true);\n ((Activity)context).setResult(Activity.RESULT_OK,resultIntent);\n ((Activity)context).finish();\n }\n }\n else if(player.getPlaying() == false && !levelCompleted){\n if(!reset){\n newGameCreated = false;\n startReset = System.nanoTime();\n reset = true;\n }\n\n long resetElapsed = (System.nanoTime()-startReset)/1000000;\n\n if(resetElapsed > 2500 && !newGameCreated){\n newGame();\n }\n else if(resetElapsed < 2500 && started){\n player.update();\n }\n }\n }", "default void onGameOver(ScotlandYardView view, Set<Colour> winningPlayers) {}", "public void displayGameOver() {\n\t\tthis.theScreen.setFont(Preferences.GAME_OVER_FONT);\n\t\tthis.theScreen.setColor(Preferences.GAME_OVER_COLOR);\n\t\tthis.theScreen.drawString(Preferences.GAME_OVER_TEXT,\n\t\t\t\tPreferences.GAME_OVER_X, Preferences.GAME_OVER_Y);\n\t}", "public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}", "public void Gamefinished()\n\t\t{\n\t\t\tplayers_in_game--;\n\t\t}", "public GenGameOver() { \n prepare();\n }", "public void doGameOver() {\r\n\t// all players takes seeds left on their side of the game\r\n\tfor (short i = 0; i < this.size; i++) {\r\n\t if (this.territory[0][i] != 0) {\r\n\t\tthis.points[0] += this.territory[0][i];\r\n\t\tthis.territory[0][i] = 0;\r\n\t\tfireChanged(TERRITORY, (short) 0, i);\r\n\t }\r\n\r\n\t if (this.territory[1][i] != 0) {\r\n\t\tthis.points[1] += this.territory[1][i];\r\n\t\tthis.territory[1][i] = 0;\r\n\t\tfireChanged(TERRITORY, (short) 1, i);\r\n\t }\r\n\t}\r\n\tfireChanged(POINTS, NO_SIDE, NO_POSITION);\r\n }", "public void GameOver(){\n\n\t\tguessBttn.setVisible(false);\n\t\tguessFullWord.setVisible(false);\n\t\tAnswerBox.setDisable(true); //can no longer use the text box\n\t\tresultMessage.setText(\" Sorry!! You Lost.\\nLet's Try to Play Again!\");\n\t\tplayAgain.setVisible(true);\n\t\trevealLabel.setText(\"The mystery word was:\");\n\t\trevealLabel.setVisible(true);\n\t\twordDashes.setText(mysteryWord);\n\t}", "@Override\n public void gameOver(Result result, Move lastMove) {\n }", "boolean isGameOver();", "boolean isGameOver();", "@Override\n\tpublic void render(float delta) \n\t{\n\t\tif (state_Game==GAME_READY) \n\t\t{\n\t\t\t/*Si esta en Ready Decrementa el tiempo hasta que el tiempo se igual a 0*/\n\t\t\ttiempo=60-(int) (stateTime/2);\n\t\t\tif(tiempo==0)\n\t\t\t{\n\t\t\t\t/*Si es igual a 0 entonces muestra la pantalla de gameover*/\n\t\t\t\tSettings.addScore(Score.getScore());\n\t\t\t\tgame.setScreen(new PantallaGameOver(game));\n\t\t\t}\n\t\t\tupdate(delta);\n\t\t}\n\t\tif (state_Game==GAME_PAUSED) \n\t\t{\n\t\t\t/*Si el estado del juego es Pausa muestra la ventana de Pausa*/\n\t\t\tpauseGame(delta);\n\t\t}\n\t\t\n\t}", "public abstract void onLostGame();", "public boolean isGameOver() {\n\t\treturn false;\n\t}", "public void levelOver(){\n\t\t// this is called by the model when the user wins the game!\n\t\tif (gameModel.levelOver){\n\t\t\tsynchronized(gameModel){\n\n\t\t\tgameModel.resetGame();\n\t\t\tgameModel.createLevel(2,width,height);\n\t\t\tfor(Square s:gameModel.targets){\n\t\t\t\tLog.d(TAG,\"target = \"+s);\n\t\t\t}\n\t\t\tgameModel.levelOver=false;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public void notifyGameOver() {\n this.myStatusString.setText(\"Game Over\");\n final LineBorder line = new LineBorder(Color.RED, 2, true);\n this.myStatusString.setBorder(line);\n this.myStatusString.setForeground(Color.RED);\n this.myStatusString.setFont(new Font(FONT_TIMES, Font.BOLD, NUM_FONT_SIZE_BIG));\n \n }", "@Override\n public void run() {\n drawingEndOfLevelUI = true;\n AI.endgameSFX.play(1.0f);\n\n }", "@Override\n public void run() {\n drawingEndOfLevelUI = true;\n AI.endgameSFX.play(1.0f);\n\n }", "public void gameOver() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Game is over. Calculating points\");\r\n\t\tstatus = \"over\";\r\n\t\ttry {\r\n\t\t\tupdateBoard();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tupdateEvents(false);\r\n\t\tEmbedBuilder embed = new EmbedBuilder();\r\n\t\tembed.setTitle(\"Game Results\");\r\n\t\tMap<Integer, Integer> scores = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tscores.put(i,players.get(i).calculatePoints());\r\n\t\t\t// Utils.getName(players.get(i).getPlayerID(),guild)\r\n\t\t}\r\n\t\t\r\n\t\tList<Entry<Integer, Integer>> sortedList = sortScores(scores);\r\n\t\t\r\n\t\t// If tied, add highest artifact values\r\n\t\tif ((playerCount > 1) && (sortedList.get(0).getValue().equals(sortedList.get(1).getValue()))) {\r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Scores were tied\");\r\n\t\t\tint highestScore = sortedList.get(0).getValue();\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : sortedList) {\r\n\t\t\t\t// Only add artifacts to highest scores\r\n\t\t\t\tif (entry.getValue().equals(highestScore)) {\r\n\t\t\t\t\tscores.put(entry.getKey(),entry.getValue()+players.get(entry.getKey()).getHighestArtifactValue());\r\n\t\t\t\t\tplayers.get(entry.getKey()).setAddedArtifactValue(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Sort with added artifact values\r\n\t\tsortedList = sortScores(scores);\r\n\t\t\r\n\t\t// Assigns 1st, 2nd, 3rd\r\n\t\tfor (int i = 0; i < sortedList.size(); i++) {\r\n\t\t\tMap.Entry<Integer, Integer> entry = sortedList.get(i);\r\n\t\t\t// If tie, include artifact\r\n\t\t\tString name = Utils.getName(players.get(entry.getKey()).getPlayerID(),guild);\r\n\t\t\tif (players.get(entry.getKey()).getAddedArtifactValue()) {\r\n\t\t\t\tint artifactValue = players.get(entry.getKey()).getHighestArtifactValue();\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+(entry.getValue()-artifactValue)+\" (\"+artifactValue+\")``\",true);\r\n\t\t\t} else {\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+entry.getValue()+\"``\",true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tembed.setFooter(\"Credit to Renegade Game Studios\", null);\r\n\t\tgameChannel.sendMessage(embed.build()).queueAfter(dragonAttackingDelay+3000,TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\tGlobalVars.remove(this);\r\n\t}", "public void display_game_over_text () {\n\n fill(150, 100);\n rect(0, 0, displayW, displayH);\n\n textFont(myFont);\n textAlign(CENTER);\n textSize(displayH/20);\n fill(255);\n text(\"Game Over\", displayW/2, 3*displayH/7);\n\n if (score.winnerName == \"Pacmax\") {\n text(\"Winner is Pacmax! Your score is \" + score.score, displayW/2, 4*displayH/7);\n } else {\n text(\"Winner is Blinky!\", displayW/2, 4*displayH/7);\n }\n\n mySound.play_game_over_song();\n\n isKeyInputAllowed = false;\n }" ]
[ "0.84948325", "0.82651", "0.8262557", "0.82032895", "0.817152", "0.8065909", "0.80481404", "0.79055023", "0.7843338", "0.7812964", "0.7767005", "0.7767005", "0.7733433", "0.77004623", "0.7698757", "0.769851", "0.7671089", "0.76138985", "0.7593894", "0.75888944", "0.75085616", "0.75027823", "0.74640423", "0.74478567", "0.74297327", "0.74230826", "0.74187297", "0.73841435", "0.7379878", "0.73340124", "0.7308366", "0.7304254", "0.72732747", "0.72504383", "0.72381645", "0.7190997", "0.7174878", "0.7167154", "0.7158859", "0.71503824", "0.71257406", "0.7093854", "0.7080489", "0.7074372", "0.7072702", "0.70585626", "0.70523655", "0.7040518", "0.7039847", "0.7012462", "0.70065224", "0.69961977", "0.6979417", "0.6978092", "0.6967786", "0.6961709", "0.6959838", "0.6959838", "0.6941794", "0.6941264", "0.69281715", "0.69281715", "0.69271344", "0.6903295", "0.68888444", "0.6881841", "0.6875986", "0.6849484", "0.6846699", "0.6842543", "0.68235475", "0.6822899", "0.68123484", "0.6811559", "0.6800694", "0.6800336", "0.679704", "0.679499", "0.6793586", "0.6791471", "0.6791355", "0.6789813", "0.67864776", "0.6783708", "0.67826694", "0.67814636", "0.6772943", "0.67654234", "0.6764368", "0.6760277", "0.6756871", "0.6756871", "0.6753984", "0.6752062", "0.6739161", "0.67299736", "0.67277896", "0.6723801", "0.6723801", "0.67233175", "0.6720692" ]
0.0
-1
should return controller but there is still a bug
@Override public ControllerFace getControllerFace() { return ControllerFace.Controller_Cross_A; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Controller getController();", "public IController getController();", "IAnjaroController getController();", "public Controller getController()\n {\n return this.controller;\n }", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public static BaseStationController getController()\r\n {\r\n \treturn controller;\r\n }", "public Controller getController(ApplicationContext applicationContext, HttpServletRequest request) {\n\t\tString uri=request.getRequestURI();\n\t\t//System.out.println(uri);\n\t\tString contextPath = request.getContextPath();\n\t\t//System.out.println(contextPath);\n\t\tint sIndex = contextPath.length();\n\t\t//System.out.println(sIndex);\n\t\tString key = uri.substring(sIndex);\n\t\t//System.out.println(key);\n\t\tString beanName = map.get(key);\n\t\tSystem.out.println(\"\t\t@ 빈네임: \"+beanName);\n\t\treturn (Controller)(applicationContext.getBean(beanName));\n\t}", "String getController(String clientId);", "public WizardController controller()\r\n\t{\r\n\t\treturn _controller;\r\n\t}", "MatchController createMatchController();", "public Controller getController() {\n\t\treturn controller;\n\t}", "public Controller getController() {\n\t\treturn controller;\n\t}", "private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }", "public Controller getController() {\n\t\treturn this.controller;\n\t}", "public Controller getController() {\n\t\treturn this.controller;\n\t}", "@Override\n\tprotected AbstractManageController createController() {\n\t\tif (m_ctrl == null)\n\t\t\tm_ctrl = new BankKeepController();\n\t\treturn m_ctrl;\n\t}", "@Override\n protected <T extends Controller> T getController(Class<T> clazz, String hw) {\n return _coordinator.locateService(\n clazz, CONTROLLER_SVC, CONTROLLER_SVC_VER, hw, clazz.getSimpleName());\n }", "boolean InitController();", "public DuxComController getController() {\n return this.controller;\n }", "protected Sampler nextIsAController(Controller controller) throws NextIsNullException {\n- Sampler sampler = null;\n- try {\n- sampler = controller.next();\n- }", "public interface IController {\n}", "public abstract void initController();", "@Override\r\n\tprotected Class<? extends PluginController> getMainControllerClass() {\r\n\t\treturn DirectoryController.class;\r\n\t}", "@Test\n public void testConstructorController() {\n assertEquals(controller, dao.getController());\n }", "public interface ChainController extends Controller<Chain> {\n}", "public interface Controller {\n\tpublic void fire(Class type, Object data);\n\tpublic void register(Class type, View rec);\n\tpublic Controller getParent();\n\tpublic int getLineNumber();\n\tpublic int getSpineNumber();\n\tpublic Writer getErrStream();\n}", "@Override\n\tpublic SceneObject getController() {\n\t\treturn null;\n\t}", "public void setController(Controller controller);", "public testDatabaseController getDataController()\n\t{\n\t\treturn dataController;\n\t}", "public static Controller getInstance() { return INSTANCE; }", "@Override\n\tpublic GameController getController() {\n\t\treturn gameController;\n\t}", "public ControllerEnfermaria() {\n }", "public final StandbyPriorityController getController() {\n return controller;\n }", "public static Controller getController(String name) {\n\t\treturn controllers.get(name);\n\t}", "@Override\r\n\tprotected ICardController createController() {\n\t\treturn new ClientCtrl();\r\n\t}", "public interface ControllerService {\n\n /**\n * Returns the details about this NiFi necessary to communicate via site to site\n * @return\n */\n String getController(String clientId);\n\n /**\n * Retrieves details about this NiFi to put in the About dialog\n * @return\n */\n String getControllerAbout(String clientId);\n\n /**\n * Creates a new archive of this NiFi flow configuration\n * @return\n */\n String postControllerArchieve(String version, String clientId);\n\n /**\n * Retrieves the user details, including the authorities, about the user making the request\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n * @return\n */\n String getControllerAuthorties(String clientId);\n\n /**\n * Retrieves the banners for this NiFi\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n * @return\n */\n String getControllerBanners(String clientId);\n\n /**\n * Gets current bulletins\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n * @param after\n * Includes bulletins with an id after this value.\n * @param sourceName\n * Includes bulletins originating from this sources whose name match this regular expression.\n * @param message\n * Includes bulletins whose message that match this regular expression.\n * @param sourceId\n * Includes bulletins originating from this sources whose id match this regular expression.\n * @param groupId\n * Includes bulletins originating from this sources whose group id match this regular expression.\n * @param limit\n * The number of bulletins to limit the response to.\n *\n * @return\n */\n String getControllerBulletinBoard(String clientId, String after, String sourceName, String message, String sourceId, String groupId, String limit);\n\n /**\n * Retrieves the configuration for this NiFi\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @return\n */\n String getControllerConfiguration(String clientId);\n\n String putControllerConfiguration(String clientId);\n\n /**\n * Gets the current status of this NiFi\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @return\n */\n ControllerStatusEntity getControllerStatus(String clientId);\n\n /**\n * Creates a template\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n * @param name\n * The template name.\n * @param description\n * The template description.\n * @param snippetId\n * The id of the snippet whose contents will comprise the template.\n *\n * @return\n */\n String postControllerTemplate(String clientId, String name, String description, String snippetId);\n\n /**\n * Gets all templates\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @return\n */\n String getControllerAllTemplates(String clientId);\n\n /**\n * Exports a template\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @param templateId\n * The template id.\n *\n * @return\n */\n String getControllerTemplate(String clientId, String templateId);\n\n /**\n * Deletes a template\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @param templateId\n * The template id.\n *\n * @return\n */\n String deleteControllertemplate(String clientId, String templateId);\n\n /**\n * Gets the diagnostics for the system NiFi is running on\n *\n * @param clientId\n * If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.\n *\n * @return\n */\n String getControllerSystemDiagnostics(String clientId);\n}", "private CreationViewController getCreationBrowserController(){\n\n FXMLLoader loader = new FXMLLoader(\n getClass().getResource(\"/CreationView.fxml\")\n );\n stage = new Stage(StageStyle.DECORATED);\n try {\n stage.setScene(new Scene(loader.load(), 800, 600));\n } catch (IOException e) {\n return null;\n }\n\n CreationViewController controller = loader.getController();\n builder.ConfigureUIController(controller, stage);\n return controller;\n }", "@Override\n public DcMotorController getController() {\n return null;\n }", "public void setController (Controller controller)\n {\n _controller = controller;\n }", "MoveActionController createMoveActionController();", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public Cliente getDoCadastroController() {\r\n\t\tif(doCadastroController == null){\r\n\t\t\tdoCadastroController = new Cliente();\r\n\t\t}\r\n\t\t\r\n\t\treturn doCadastroController;\r\n\t}", "void visit(RootController rootController);", "ControllerContext() {\n\t\t// do nothing\n\t}", "public abstract Class<? extends HateaosController<T, Identifier>> getClazz();", "@Nullable\n private ControllerRestApi getControllerRestApi() {\n return _pushLocations != null ? new DefaultControllerRestApi(_pushLocations, _rawTableName) : null;\n }", "public java.lang.String getControllername() {\n\treturn controllername;\n}", "@Override\n\tpublic BaseController getRoot() {\n\t\treturn null;\n\t}", "public EstructuraOrganicaController(){\r\n\t\tloadDefault();\r\n\t}", "private BaseController getController()\n {\n BaseController controller = null;\n\n //check who has stared the background task\n if (tag == null) {\n //this is an instance of a normal activity starting the background\n //task, use its controller's function to execute the actual task\n //in background.\n \tif (activity != null) {\n \t\tcontroller = activity.getController();\n \t}\n }\n else {\n //this is an instance of a activity's fragment starting the backgroundH\n //task, use the fragment's controller function to execute the\n //actual task in background\n if (activity != null) {\n BaseFragment fragment = (BaseFragment) activity.getFragmentManager().findFragmentByTag(tag);\n if (fragment != null) {\n controller = fragment.getController();\n }\n }\n }\n\n return controller;\n }", "public T caseSafetyController(SafetyController object) {\r\n\t\treturn null;\r\n\t}", "PickController(){\n restrictionList = RestrictionManager.getStandardRestriction();\n }", "SourceBuilder createRestController();", "@Path(\"view/support\")\n\t\t@Override\n\t\tpublic Class<ReimbursementController> viewRequests() {\n\t\t\treturn ReimbursementController.class;\n\t\t}", "public interface IController{\n // Currently no benefit to having any controller specific methods. This interface is available\n // for further extension of different controller implementations. Our current implementation\n // is for the edit view. If future controllers are needed they will implement this interface.\n\n}", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public void showCastMiniController() {\n }", "@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}", "public static GameController getGameController() {\n\t\treturn controller;\n\t}", "public AccountController getAccountController(){\n return this.userController;\n }", "public interface CustomerController {\n\n\n /**\n * Returns a list of customers.\n * \n */\n public ResponseEntity<?> getCustomers();\n\n /**\n * Generate a new customer.\n * \n */\n public ResponseEntity<?> createCustomer(customer.controller.Customer customer);\n\n /**\n * Return the customer with given id.\n * \n */\n public ResponseEntity<customer.controller.Customer> getCustomerById(Long id);\n\n /**\n * Update the customer with given id.\n * \n */\n public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);\n\n /**\n * No description\n * \n */\n public ResponseEntity<?> deleteCustomerById(Long id);\n\n}", "@RequestMapping(\"\")\n\tpublic String redirectController()\n\t{\n\t\treturn \"redirect:financial/supplier/register\";\n\t}", "@Test\n public void factoryMVC_integration_test() {\n\n AbstractFactory pFactory = FactoryProducer.getFactory(\"person\");\n Person person = pFactory.getPerson(\"Person\");\n PersonView pView = new PersonView();\n\n PersonController personController = new PersonController(person, pView);\n\n Assert.assertEquals(\"Person\", personController.getPersonName());\n personController.setPersonName(\"newName\");\n Assert.assertEquals(\"newName\", personController.getPersonName());\n\n\n }", "protected CityController() {\r\n\t}", "public interface IndexRestController {\n}", "public final AbstractControlComponent getController() {\n\t\treturn this.controller;\n\t}", "private ClientController(){\n\n }", "private ControllerInfoImpl() {\r\n\t\tthis.identifyControllerType();\r\n\t}", "private StoreController(){}", "public ListaSEController() {\n }", "public static Object loadController(String url) throws IOException{\n\t\tFXMLLoader loader = null;\n\t\tloader = new FXMLLoader(loadFile(url));\n\t\tloader.load();\n\t\treturn loader.getController();\n\t}", "public interface BaseController {\n\n\t/**\n\t * Root Endpoint\n\t *\n\t * @return the root\n\t */\n\tResponseEntity<String> getRoot();\n\n\t/**\n\t * This method exposes API to show the main application info\n\t *\n\t * @return the main application info\n\t */\n\tResponseEntity<String> getAbout();\n\t#if (${withCache} == 'Y')\n\t/**\n\t * Cache Endpoint\n\t *\n\t * @return the cache\n\t */\n\tResponseEntity<String> cleanCache();\n\t#end\n\n}", "public GenericController() {\n }", "SpawnController createSpawnController();", "public ProcessController processController() {\r\n\t\treturn modelController;\r\n\t}", "public static SinglController getController(){\n if (scl==null) {\n TemperatureSensor tmpsen = new TemperatureSensor(\"Kitchen\");\n LightSensor lsen = new LightSensor (\"Kitchen\");\n scl=new SinglController(tmpsen,lsen);\n }\n return scl;\n }", "String getControllerAbout(String clientId);", "public Controller()\n\t{\n\n\t}", "public FilmstripController getFilmstripController();", "private Predicate<RequestHandler> modelApiHandlerPredicate() {\n return and(\n withClassAnnotation(RepositoryRestController.class)\n );\n }", "public void injectMainController(MainController mainController){this.mainController = mainController;}", "@GET\n\t@Path(\"/\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic TempResponse controller1(){\n\t\tSystem.out.println(\"yay\");\n\t\t\n\t\tTempResponse tr = SelfImpl.getTempResponse();\n\t\treturn tr;\n\t}", "@Test\n\tvoid getDoctorController() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).doctors();\n\t\tmockMvc.perform(get(\"/doctor/details\")).andExpect(status().isOk());\n\t}", "protected List<TestElement> getSubControllers() {\n return subControllersAndSamplers;\n }", "List<FeatureController<MODEL>> getFeatureControllers() {\n return featureItems.getFeatureControllers();\n }", "ControllerNode localNode();", "@Pointcut(\"execution(* com.bharath.spring.mvc.aop.controller.*.*(..))\")\n private void forControllerPackage() {}", "@Override\r\n protected void generateControllerPaths() {\r\n\r\n controllerPaths = new HashMap<>();\r\n\r\n controllerPaths.put( \"index\", pathRoot );\r\n controllerPaths.put( \"add\", pathRoot + \"/add\" );\r\n controllerPaths.put( \"edit\", pathRoot + \"/edit?id=\" );\r\n controllerPaths.put( \"delete\", pathRoot + \"/delete?id=\" );\r\n controllerPaths.put( \"manage\", pathRoot + \"/manage\" ); \r\n \r\n \r\n \r\n }", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public PlatformController getPlatformController() throws ControllerException {\n\t\tinitPlatformController();\n\t\treturn myPlatformController;\n\t}", "public interface ControllerFilter {\n\n /**\n * Called by framework before executing a controller\n */\n void before();\n\n /**\n * Called by framework after executing a controller\n */\n void after();\n\n /**\n * Called by framework in case there was an exception inside a controller\n *\n * @param e exception.\n */\n void onException(Exception e);\n}", "public interface Controller {\r\n Object handle(WebRequest request);\r\n}", "ControllerState getViewState();", "public ChatController getBaseController()\n\t{\n\t\treturn botController;\n\t}", "@RequestMapping \npublic String ForwardToCompanyMainPage (Model model)\n{\n\treturn \"company\";\t\n}", "@Override\n\tpublic String getMainPageControllerUrlPattern() {\n\t\treturn null;\n\t}", "public detalleInventarioController() {\n }", "public interface GameControllerFactory {\n\n /**\n * Creates a new game controller that will be hosted by the given lobby controller.\n */\n GameController makeGameController(LobbyController lobbyController);\n\n}", "private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }", "public static IControllerInfo getInstance() {\r\n\t\treturn instance;\r\n\t}" ]
[ "0.7756055", "0.75620764", "0.74231815", "0.6761162", "0.6689166", "0.6569201", "0.65432096", "0.648268", "0.6401753", "0.63924265", "0.6382687", "0.6382687", "0.6345008", "0.62731624", "0.62731624", "0.6257018", "0.617457", "0.61548537", "0.61395025", "0.6096942", "0.60908", "0.6087724", "0.60839635", "0.6073511", "0.60726094", "0.60590607", "0.6045638", "0.6037085", "0.60304177", "0.5998996", "0.59215754", "0.5916156", "0.5875168", "0.58711904", "0.58349526", "0.58313686", "0.5829194", "0.5820265", "0.5812808", "0.5806449", "0.58028245", "0.57941574", "0.5781402", "0.57744277", "0.5767101", "0.5750415", "0.5747296", "0.57448846", "0.57316554", "0.5729044", "0.57188255", "0.5714243", "0.5698053", "0.5691248", "0.5679461", "0.56567854", "0.56567854", "0.56377286", "0.5628338", "0.5617859", "0.56097174", "0.5609428", "0.55722475", "0.5571886", "0.55684084", "0.55507195", "0.55466187", "0.55404216", "0.5537632", "0.55351406", "0.55347615", "0.5533159", "0.5532541", "0.55313313", "0.552554", "0.5525445", "0.5523162", "0.5523073", "0.55125105", "0.5512284", "0.5508182", "0.549496", "0.54890406", "0.54707205", "0.5467773", "0.5467286", "0.5466417", "0.5462878", "0.5460598", "0.54569185", "0.54557425", "0.54523027", "0.54474735", "0.543719", "0.5436763", "0.54357475", "0.5433055", "0.5429916", "0.54242885", "0.5423086", "0.54170364" ]
0.0
-1
/ This function declares a GameInfo and returns it for the platform
@Override public GameInfo getGameInfo() { return gameInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GameInfo getGameInfo() throws InterruptedException, IOException, URISyntaxException {\n String json = caller.GET(\"game/status\");\n\n GsonBuilder builder = new GsonBuilder();\n builder.registerTypeAdapter(GameInfo.class, new GameInfoDeserializer());\n\n Gson gson = builder.create();\n\n return gson.fromJson(json, GameInfo.class);\n }", "public GameInfo(Game game) {\n gameState = game.getGameState();\n activeCategory = game.getActiveCategory();\n round = game.getRound();\n humanRoundsWon = game.getHumanWonRounds();\n numDraws = game.getNumDraws();\n\n if (game.getActivePlayer() != null) {\n activePlayerName = game.getActivePlayer().getName();\n activePlayerHuman = game.getActivePlayer().getIsHuman();\n } else {\n activePlayerName = null;\n activePlayerHuman = null;\n }\n\n if (game.getRoundWinner() != null) {\n roundWinnerName = game.getRoundWinner().getName();\n } else {\n roundWinnerName = null;\n }\n\n if (game.getGameWinner() != null) {\n gameWinnerName = game.getGameWinner().getName();\n } else {\n gameWinnerName = null;\n }\n\n if (game.getGameWinner() != null) {\n winnerHuman = game.getGameWinner().getIsHuman();\n } else {\n winnerHuman = null;\n }\n\n\n\n topCards = getTopCards(game);\n playerNames = getPlayerNames(game);\n topCardTitles = getTopCardTitles(game);\n deck = getDeck(game);\n Player humanPlayer = getHumanPlayer(game);\n numOfCardsLeft = getNumOfCards(game);\n\n\n // Determine number of cards in human's deck\n //, the size of the communal pile and the top \n // most card\n if (humanPlayer != null && humanPlayer.getHand() != null) {\n numHumanCards = humanPlayer.getHand().size();\n } else {\n numHumanCards = null;\n }\n \n if (deck.size() > 0) {\n numOfCommunalCards = deck.size();\n } else {\n numOfCommunalCards = 0;\n }\n\n if (humanPlayer != null && humanPlayer.getTopMostCard() != null) {\n humanTopCardTitle = humanPlayer.getTopMostCard().getName();\n cardCategories = humanPlayer.getTopMostCard().getCardProperties();\n } else {\n humanTopCardTitle = null;\n cardCategories = null;\n }\n }", "private GameInfo retrieveGameInfo(String gameId) {\n GameInfo gameInfo = sessionInfo.getGameInfo();\n if(gameInfo != null && gameId.equals(gameInfo.getId())) {\n return gameInfo;\n }\n return null;\n }", "GameConfiguration getGameConfiguration();", "Object getPlatform();", "private GUIGameInfo() {\n this.board = new GUIBoard();\n this.logic = new regLogic();\n this.players = new Player[2];\n this.players[0] = new Player(Symbol.BLACK);\n this.players[1] = new Player(Symbol.WHITE);\n this.guiPlayers = new GUIPlayer[2];\n this.guiPlayers[0] = new GUIPlayer(this.players[0]);\n this.guiPlayers[1] = new GUIPlayer(this.players[1]);\n\n }", "public Game getGame() {\n\t\treturn gbuilder.getGameProduct();\n\t}", "private void getGameState(String version){\n\n }", "public static Game getGame() {\r\n\t\treturn game;\r\n\t}", "public SpectatorGameInfo getCurrentGame(Platform server, long summonerId)\n {\n DataCallBuilder builder = new DataCallBuilder().withURLParameter(Constants.SUMMONER_ID_PLACEHOLDER, String.valueOf(summonerId))\n .withEndpoint(URLEndpoint.V3_SPECTATOR_CURRENT)\n .withPlatform(server);\n \n \n Optional chl = DataCall.getCacheProvider().get(URLEndpoint.V3_SPECTATOR_CURRENT, server, summonerId);\n if (chl.isPresent())\n {\n return (SpectatorGameInfo) chl.get();\n }\n \n \n try\n {\n SpectatorGameInfo fg = (SpectatorGameInfo) builder.build();\n DataCall.getCacheProvider().store(URLEndpoint.V3_SPECTATOR_CURRENT, fg, server, summonerId);\n return fg;\n } catch (ClassCastException e)\n {\n return null;\n }\n }", "public static Game getGame() {\n\t\treturn game;\n\t}", "public interface MetaInfo {\n\n String DIR_EMPTY = \"empty\";\n\n\n //===========================\n float WEIGHT_CAMERA_MOTION = 1;\n float WEIGHT_LOCATION = 1;\n float WEIGHT_MEDIA_TYPE = 1;\n float WEIGHT_SHORT_TYPE = 1;\n\n float WEIGHT_MEDIA_DIR = 3f;\n float WEIGHT_TIME = 3;\n float WEIGHT_VIDEO_TAG = 2.5f;\n float WEIGHT_SHOT_KEY = 5f;\n float WEIGHT_SHOT_CATEGORY = 2.5f;\n\n int FLAG_TIME = 0x0001;\n int FLAG_LOCATION = 0x0002;\n int FLAG_MEDIA_TYPE = 0x0004;\n int FLAG_MEDIA_DIR = 0x0008;\n int FLAG_SHOT_TYPE = 0x0010;\n int FLAG_CAMERA_MOTION = 0x0020;\n int FLAG_VIDEO_TAG = 0x0040;\n int FLAG_SHOT_KEY = 0x0080;\n int FLAG_SHOT_CATEGORY = 0x0100;\n\n //================= location ==================\n int LOCATION_NEAR_GPS = 1;\n int LOCATION_SAME_COUNTRY = 2;\n int LOCATION_SAME_PROVINCE = 3; //省,市,区\n int LOCATION_SAME_CITY = 4;\n int LOCATION_SAME_REGION = 5;\n\n //=================== for camera motion ====================\n int STILL = 0; // 静止, class 0\n int ZOOM = 3; // 前后移动(zoomIn or zoomOut), class 1\n int ZOOM_IN = 4;\n int ZOOM_OUT = 5;\n int PAN = 6; // 横向移动(leftRight or rightLeft), class 2\n int PAN_LEFT_RIGHT = 7;\n int PAN_RIGHT_LEFT = 8;\n int TILT = 9; // 纵向移动(upDown or downUp), class 3\n int TILT_UP_DOWN = 10;\n int TILT_DOWN_UP = 11;\n int CATEGORY_STILL = 1;\n int CATEGORY_ZOOM = 2;\n int CATEGORY_PAN = 3;\n int CATEGORY_TILT = 4;\n\n //图像类型。视频,图片。 已有\n\n //============== shooting device =================\n /**\n * the shoot device: cell phone\n */\n int SHOOTING_DEVICE_CELLPHONE = 1;\n /**\n * the shoot device: camera\n */\n int SHOOTING_DEVICE_CAMERA = 2;\n\n /**\n * the shoot device: drone\n */\n int SHOOTING_DEVICE_DRONE = 3; //无人机\n\n\n //====================== shooting mode ===========================\n /**\n * shooting mode: normal\n */\n int SHOOTING_MODE_NORMAL = 1;\n /**\n * shooting mode: slow motion\n */\n int SHOOTING_MODE_SLOW_MOTION = 2;\n /**\n * shooting mode: time lapse\n */\n int SHOOTING_MODE_TIME_LAPSE = 3;\n\n //=========================== shot type =======================\n /**\n * shot type: big - long- short ( 大远景)\n */\n int SHOT_TYPE_BIG_LONG_SHORT = 5;\n /**\n * shot type: long short ( 远景)\n */\n int SHOT_TYPE_LONG_SHORT = 4;\n\n /** medium long shot. (中远景) */\n int SHOT_TYPE_MEDIUM_LONG_SHOT = 3;\n /**\n * shot type: medium shot(中景)\n */\n int SHOT_TYPE_MEDIUM_SHOT = 2;\n /**\n * shot type: close up - chest ( 特写-胸)\n */\n int SHOT_TYPE_MEDIUM_CLOSE_UP = 1;\n\n /**\n * shot type: close up -head ( 特写-头)\n */\n int SHOT_TYPE_CLOSE_UP = 0;\n\n int SHOT_TYPE_NONE = -1;\n\n int CATEGORY_CLOSE_UP = 12; //特写/近景\n int CATEGORY_MIDDLE_VIEW = 11; //中景\n int CATEGORY_VISION = 10; //远景\n\n //========================== time ==========================\n int[] MORNING_HOURS = {7, 8, 9, 10, 11};\n int[] AFTERNOON_HOURS = {12, 13, 14, 15, 16, 17};\n //int[] NIGHT_HOURS = {18, 19, 20, 21, 22, 24, 1, 2, 3, 4, 5, 6};\n int TIME_SAME_DAY = 1;\n int TIME_SAME_PERIOD_IN_DAY = 2; //timeSamePeriodInDay\n\n class LocationMeta {\n private double longitude, latitude;\n /**\n * 高程精度比水平精度低原因,主要是GPS测出的是WGS-84坐标系下的大地高,而我们工程上,也就是电子地图上采用的高程一般是正常高,\n * 它们之间的转化受到高程异常和大地水准面等误差的制约。\n * 卫星在径向的定轨精度较差,也限制了GPS垂直方向的精度。\n */\n private int gpsHeight; //精度不高\n private String country, province, city, region; //国家, 省, 市, 区\n\n public double getLongitude() {\n return longitude;\n }\n\n public void setLongitude(double longitude) {\n this.longitude = longitude;\n }\n\n public double getLatitude() {\n return latitude;\n }\n\n public void setLatitude(double latitude) {\n this.latitude = latitude;\n }\n\n public String getCountry() {\n return country;\n }\n\n public void setCountry(String country) {\n this.country = country;\n }\n\n public String getProvince() {\n return province;\n }\n\n public void setProvince(String province) {\n this.province = province;\n }\n\n public String getCity() {\n return city;\n }\n\n public void setCity(String city) {\n this.city = city;\n }\n\n public String getRegion() {\n return region;\n }\n\n public void setRegion(String region) {\n this.region = region;\n }\n\n public int getGpsHeight() {\n return gpsHeight;\n }\n\n public void setGpsHeight(int gpsHeight) {\n this.gpsHeight = gpsHeight;\n }\n\n @Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n LocationMeta that = (LocationMeta) o;\n\n if (Double.compare(that.longitude, longitude) != 0) return false;\n if (Double.compare(that.latitude, latitude) != 0) return false;\n if (gpsHeight != that.gpsHeight) return false;\n if (country != null ? !country.equals(that.country) : that.country != null)\n return false;\n if (province != null ? !province.equals(that.province) : that.province != null)\n return false;\n if (city != null ? !city.equals(that.city) : that.city != null) return false;\n return region != null ? region.equals(that.region) : that.region == null;\n }\n }\n\n /**\n * the meta data of image/video ,something may from 'AI'.\n */\n class ImageMeta extends SimpleCopyDelegate{\n private String path;\n private int mediaType;\n /** in mills */\n private long date;\n\n /** in mill-seconds */\n private long duration;\n private int width, height;\n\n private LocationMeta location;\n\n /**\n * frames/second\n */\n private int fps = 30;\n /** see {@linkplain IShotRecognizer#CATEGORY_ENV} and etc. */\n private int shotCategory;\n /**\n * the shot type\n */\n private String shotType;\n\n /** shot key */\n private String shotKey;\n /**\n * 相机运动\n */\n private String cameraMotion;\n /** video tags */\n private List<List<Integer>> tags;\n\n /** the whole frame data of video(from analyse , like AI. ), after read should not change */\n private SparseArray<VideoDataLoadUtils.FrameData> frameDataMap;\n /** the high light data. key is the time in seconds. */\n private SparseArray<List<? extends IHighLightData>> highLightMap;\n private HighLightHelper mHighLightHelper;\n\n /** 主人脸个数 */\n private int mainFaceCount = -1;\n private int mBodyCount = -1;\n\n /** 通用tag信息 */\n private List<FrameTags> rawVideoTags;\n /** 人脸框信息 */\n private List<FrameFaceRects> rawFaceRects;\n\n //tag indexes\n private List<Integer> nounTags;\n private List<Integer> domainTags;\n private List<Integer> adjTags;\n\n private Location subjectLocation;\n\n //-------------------------- start High-Light ----------------------------\n /** set metadata for high light data. (from load high light) */\n public void setMediaData(MediaData mediaData) {\n List<MediaData.HighLightPair> hlMap = mediaData.getHighLightDataMap();\n if(!Predicates.isEmpty(hlMap)) {\n highLightMap = new SparseArray<>();\n VisitServices.from(hlMap).fire(new FireVisitor<MediaData.HighLightPair>() {\n @Override\n public Boolean visit(MediaData.HighLightPair pair, Object param) {\n List<MediaData.HighLightData> highLightData = VEGapUtils.filterHighLightByScore(pair.getDatas());\n if(!Predicates.isEmpty(highLightData)){\n highLightMap.put(pair.getTime(), highLightData);\n }\n return null;\n }\n });\n }\n mHighLightHelper = new HighLightHelper(highLightMap, mediaType == IPathTimeTraveller.TYPE_IMAGE);\n }\n @SuppressWarnings(\"unchecked\")\n public KeyValuePair<Integer, List<IHighLightData>> getHighLight(int time){\n return mHighLightHelper.getHighLight(time);\n }\n @SuppressWarnings(\"unchecked\")\n public KeyValuePair<Integer, List<IHighLightData>> getHighLight(ColorGapContext context, ITimeTraveller tt){\n return mHighLightHelper.getHighLight(context, tt);\n }\n\n public List<KeyValuePair<Integer, List<IHighLightData>>> getHighLights(ColorGapContext context, ITimeTraveller tt){\n return mHighLightHelper.getHighLights(context, tt);\n }\n @SuppressWarnings(\"unchecked\")\n public HighLightArea getHighLightArea(ColorGapContext context, ITimeTraveller tt){\n return mHighLightHelper.getHighLightArea(context, tt);\n }\n\n public void setHighLightMap(SparseArray<List<? extends IHighLightData>> highLightMap) {\n this.highLightMap = highLightMap;\n this.mHighLightHelper = new HighLightHelper(highLightMap, mediaType == IPathTimeTraveller.TYPE_IMAGE);\n }\n\n //-------------------------- end High-Light ----------------------------\n public SparseArray<VideoDataLoadUtils.FrameData> getFrameDataMap() {\n if(frameDataMap == null){\n frameDataMap = new SparseArray<>();\n }\n return frameDataMap;\n }\n public void setFrameDataMap(SparseArray<VideoDataLoadUtils.FrameData> frameDataMap) {\n this.frameDataMap = frameDataMap;\n }\n public void travelAllFrameDatas(Map.MapTravelCallback<Integer, VideoDataLoadUtils.FrameData> traveller){\n Throwables.checkNull(frameDataMap);\n CollectionUtils.travel(frameDataMap, traveller);\n }\n\n public List<Integer> getNounTags() {\n return nounTags != null ? nounTags : Collections.emptyList();\n }\n public void setNounTags(List<Integer> nounTags) {\n this.nounTags = nounTags;\n }\n\n public List<Integer> getDomainTags() {\n return domainTags != null ? domainTags : Collections.emptyList();\n }\n public void setDomainTags(List<Integer> domainTags) {\n this.domainTags = domainTags;\n }\n\n public List<Integer> getAdjTags() {\n return adjTags != null ? adjTags : Collections.emptyList();\n }\n public void setAdjTags(List<Integer> adjTags) {\n this.adjTags = adjTags;\n }\n public void setShotCategory(int shotCategory) {\n this.shotCategory = shotCategory;\n }\n\n public int getShotCategory() {\n return shotCategory;\n }\n public String getShotKey() {\n return shotKey;\n }\n public void setShotKey(String shotKey) {\n this.shotKey = shotKey;\n }\n\n public int getMainFaceCount() {\n return mainFaceCount;\n }\n public void setMainFaceCount(int mainFaceCount) {\n this.mainFaceCount = mainFaceCount;\n }\n public int getMediaType() {\n return mediaType;\n }\n public void setMediaType(int mediaType) {\n this.mediaType = mediaType;\n }\n\n public String getPath() {\n return path;\n }\n\n public void setPath(String path) {\n this.path = path;\n }\n\n /** date in mills */\n public long getDate() {\n return date;\n }\n /** date in mills */\n public void setDate(long date) {\n this.date = date;\n }\n\n public long getDuration() {\n return duration;\n }\n\n /** set duration in mill-seconds */\n public void setDuration(long duration) {\n this.duration = duration;\n }\n\n public int getWidth() {\n return width;\n }\n\n public void setWidth(int width) {\n this.width = width;\n }\n\n public int getHeight() {\n return height;\n }\n\n public void setHeight(int height) {\n this.height = height;\n }\n\n public int getFps() {\n return fps;\n }\n\n public void setFps(int fps) {\n this.fps = fps;\n }\n\n public String getShotType() {\n return shotType;\n }\n\n public void setShotType(String shotType) {\n this.shotType = shotType;\n }\n\n public String getCameraMotion() {\n return cameraMotion;\n }\n\n public void setCameraMotion(String cameraMotion) {\n this.cameraMotion = cameraMotion;\n }\n\n public List<List<Integer>> getTags() {\n return tags;\n }\n public void setTags(List<List<Integer>> tags) {\n this.tags = tags;\n }\n public LocationMeta getLocation() {\n return location;\n }\n public void setLocation(LocationMeta location) {\n this.location = location;\n }\n public void setBodyCount(int size) {\n this.mBodyCount = size;\n }\n public int getBodyCount(){\n return mBodyCount;\n }\n public int getPersonCount() {\n return Math.max(mBodyCount, mainFaceCount);\n }\n\n public Location getSubjectLocation() {\n return subjectLocation;\n }\n public void setSubjectLocation(Location subjectLocation) {\n this.subjectLocation = subjectLocation;\n }\n\n //============================================================\n public List<FrameFaceRects> getAllFaceRects() {\n if(frameDataMap == null){\n return Collections.emptyList();\n }\n List<FrameFaceRects> result = new ArrayList<>();\n final int size = frameDataMap.size();\n for (int i = 0; i < size ; i++) {\n FrameFaceRects faceRects = frameDataMap.valueAt(i).getFaceRects();\n if(faceRects != null) {\n result.add(faceRects);\n }else{\n //no face we just add a mock\n }\n }\n return result;\n }\n public List<FrameTags> getVideoTags(ITimeTraveller part) {\n return getVideoTags(part.getStartTime(), part.getEndTime());\n }\n\n /** get all video tags. startTime and endTime in frames */\n public List<FrameTags> getVideoTags(long startTime, long endTime) {\n if(frameDataMap == null){\n return Collections.emptyList();\n }\n List<FrameTags> result = new ArrayList<>();\n final int size = frameDataMap.size();\n for (int i = 0; i < size ; i++) {\n long key = CommonUtils.timeToFrame(frameDataMap.keyAt(i), TimeUnit.SECONDS);\n if(key >= startTime && key <= endTime){\n FrameTags tag = frameDataMap.valueAt(i).getTag();\n if(tag != null) {\n result.add(tag);\n }\n }\n }\n return result;\n }\n public List<FrameTags> getAllVideoTags() {\n if(frameDataMap == null){\n return Collections.emptyList();\n }\n List<FrameTags> result = new ArrayList<>();\n final int size = frameDataMap.size();\n for (int i = 0; i < size ; i++) {\n //long key = CommonUtils.timeToFrame(frameDataMap.keyAt(i), TimeUnit.SECONDS);\n FrameTags tag = frameDataMap.valueAt(i).getTag();\n if(tag != null) {\n result.add(tag);\n }\n }\n return result;\n }\n public List<FrameFaceRects> getFaceRects(ITimeTraveller part) {\n return getFaceRects(part.getStartTime(), part.getEndTime());\n }\n /** get all face rects. startTime and endTime in frames */\n public List<FrameFaceRects> getFaceRects(long startTime, long endTime) {\n if(frameDataMap == null){\n return Collections.emptyList();\n }\n List<FrameFaceRects> result = new ArrayList<>();\n final int size = frameDataMap.size();\n for (int i = 0; i < size ; i++) {\n long key = CommonUtils.timeToFrame(frameDataMap.keyAt(i), TimeUnit.SECONDS);\n if(key >= startTime && key <= endTime){\n FrameFaceRects faceRects = frameDataMap.valueAt(i).getFaceRects();\n if(faceRects != null) {\n result.add(faceRects);\n }\n }\n }\n return result;\n }\n\n public void setRawVideoTags(List<FrameTags> tags) {\n rawVideoTags = tags;\n }\n public List<FrameTags> getRawVideoTags() {\n return rawVideoTags;\n }\n\n public List<FrameFaceRects> getRawFaceRects() {\n return rawFaceRects;\n }\n public void setRawFaceRects(List<FrameFaceRects> rawFaceRects) {\n this.rawFaceRects = rawFaceRects;\n }\n /** 判断这段原始视频内容是否是“人脸为主”. work before cut */\n public boolean containsFaces(){\n if(rawFaceRects == null){\n if(frameDataMap == null){\n return false;\n }\n rawFaceRects = getAllFaceRects();\n }\n if(Predicates.isEmpty(rawFaceRects)){\n return false;\n }\n List<FrameFaceRects> tempList = new ArrayList<>();\n VisitServices.from(rawFaceRects).visitForQueryList((ffr, param) -> ffr.hasRect(), tempList);\n float result = tempList.size() * 1f / rawFaceRects.size();\n Logger.d(\"ImageMeta\", \"isHumanContent\", \"human.percent = \"\n + result + \" ,path = \" + path);\n return result > 0.55f;\n }\n\n /** 判断这段原始视频是否被标记原始tag(人脸 or 通用) . work before cut */\n public boolean hasRawTags(){\n return frameDataMap != null && frameDataMap.size() > 0;\n }\n\n @Override\n public void setFrom(SimpleCopyDelegate sc) {\n if(sc instanceof ImageMeta){\n ImageMeta src = (ImageMeta) sc;\n setShotType(src.getShotType());\n setShotCategory(src.getShotCategory());\n setShotKey(src.getShotKey());\n\n setMainFaceCount(src.getMainFaceCount());\n setDuration(src.getDuration());\n setMediaType(src.getMediaType());\n setPath(src.getPath());\n setCameraMotion(src.getCameraMotion());\n setDate(src.getDate());\n setFps(src.getFps());\n setHeight(src.getHeight());\n setWidth(src.getWidth());\n //not deep copy\n setTags(src.tags);\n setAdjTags(src.adjTags);\n setNounTags(src.nounTags);\n setDomainTags(src.domainTags);\n\n setLocation(src.getLocation());\n setRawFaceRects(src.getRawFaceRects());\n setRawVideoTags(src.getRawVideoTags());\n setFrameDataMap(src.frameDataMap);\n setHighLightMap(src.highLightMap);\n }\n }\n }\n\n}", "public TextMinigame getGame(String which) {\n\t\tif (minigameMap.containsKey(which)) {\n\t\t\treturn minigameMap.get(which).newGame();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public static Game getGame() {\n return game;\n }", "public Game createGame();", "Map<String, String> getAvailableGames();", "public static int getGameType()\n\t{\n\t\treturn -1;\n\t}", "public String getTurnInfo(){\n if(gameState == GAME_STATE.CREATED){\n return \"Game has not been started!\";\n }\n\n String currentPlayerName;\n\n if( currentPlayerTurn == 1 ){\n currentPlayerName = player1Name;\n }else{\n currentPlayerName = player2Name;\n }\n\n StringBuilder reply = new StringBuilder();\n if( gameState == GAME_STATE.WIN ){\n reply.append(\"Game has ended \")\n .append(currentPlayerName)\n .append(\" wins!\");\n }\n else if(gameState == GAME_STATE.DRAW){\n reply.append(\"Game has ended in a draw\");\n }else{\n reply.append(\"<@\")\n .append(currentPlayerName)\n .append(\"> it is your turn to play\");\n }\n return reply.toString();\n }", "String getGameId();", "Information getInfo();", "java.lang.String getGameName();", "java.lang.String getGameName();", "public Platform getPlatform();", "public interface GameParameters {\n\n\t// Window Settings\n\tpublic static final int WINDOW_WIDTH = 800;\n\tpublic static final int WINDOW_HEIGHT = 600;\n\tpublic static final int FRAME_RATE = 60;\n\n\t// Game States\n\tpublic static final int MAINMENU_STATE = 0;\n\tpublic static final int GAMEPLAY_STATE = 1;\n\tpublic static final int HIGHSCORE_STATE = 2;\n\n\t// Background\n\tpublic static final String BACKGROUND_ID = \"background\";\n\tpublic static final String BACKGROUND_IMAGE = \"/images/background.png\";\n\n\t// Borders\n\tpublic enum BorderType {\n\t\tTOP, LEFT, RIGHT\n\t};\n\n\tpublic static final int BORDER_WIDTH = 6;\n\tpublic static final String TOP_BORDER_ID = \"topBorder\";\n\tpublic static final String LEFT_BORDER_ID = \"leftBorder\";\n\tpublic static final String RIGHT_BORDER_ID = \"rightBorder\";\n\n\t// Blocks\n\tpublic static final String MAP_FILE = \"maps/level1.map\";\n\tpublic static final String BLOCK_1_IMAGE = \"/images/block_1.png\";\n\tpublic static final String BLOCK_2_IMAGE = \"/images/block_2.png\";\n\tpublic static final String BLOCK_3_IMAGE = \"/images/block_3.png\";\n\n\t// Timer\n\tpublic static final String STOP_WATCH_ID = \"stopWatch\";\n\n\t// Ball\n\tpublic static final String BALL_ID = \"ball\";\n\tpublic static final float INITIAL_BALL_SPEED = 0.3f;\n\tpublic static final float SPEEDUP_VALUE = 0.0001f;\n\tpublic static final String BALL_IMAGE = \"/images/ball.png\";\n\n\t// Stick\n\tpublic static final String STICK_ID = \"stick\";\n\tpublic static final float STICK_SPEED = 0.5f;\n\tpublic static final String STICK_IMAGE = \"/images/stick.png\";\n\n\t// Player\n\tpublic static final String PLAYER_ID = \"player\";\n\tpublic static final String NO_LIFE_LEFT = \"noLifeLeft\";\n\n\t// Pause\n\tpublic static final String PAUSE_ID = \"pause\";\n\tpublic static final String PAUSE_IMAGE = \"/images/pause.png\";\n\n\t// Win\n\tpublic static final String WIN_ID = \"win\";\n\n\t// Escape\n\tpublic static final String ESCAPE_ID = \"escape\";\n\n\t// Highscore\n\tpublic static final String HIGHSCORE_FILE = \"highscores/highscore.hsc\";\n}", "private GameInformation() {\n }", "public List<String> getGameInformation(int position){\n switch (position){\n case 0:\n return information.getClasses();\n case 1:\n return information.getRaces();\n case 2:\n return information.getFactions();\n case 3:\n return information.getTypes();\n case 4:\n return information.getQualities();\n case 5:\n return information.getSets();\n }\n return null;\n }", "protected boolean processGameInfo(GameInfoStruct data){return false;}", "public Game(String name, double price, UUID identifier, int stock, String image, String genre, Vector<String> platform) {\n super(name, price, identifier, stock, image);\n this.genre = genre;\n this.platform = platform;\n }", "Game getGameById(long id);", "public BowlingGame getGame();", "public void getInfo () {\n int[] info = elevator.getInfo ();\n currFloor = info[0];\n maxCap = info[2];\n numFloors = info[3];\n currCap = info[5];\n state = info[6];\n }", "public interface iGame {\n\n public abstract ArrayList<UUID> getListOfPlanets();\n\n public abstract String getName(UUID uuid);\n\n public abstract String getDescription(UUID uuid);\n\n public abstract int getPid(UUID uuid);\n\n public abstract String getImgPath(UUID uuid);\n\n public abstract String getImgPath(UUID uuid, boolean bool);\n\n public abstract ArrayList<UUID> getInventory();\n\n public abstract void startConversation(UUID uuid);\n\n public abstract ArrayList<UUID> getAvailableNpcs(UUID uuid);\n\n public abstract UUID getPlayerPosition();\n\n public abstract ArrayList<UUID> getPossiblePlanets();\n\n public abstract void travelToPlanet(UUID planet);\n\n public abstract int getFuel();\n\n public abstract int getWarpFuel();\n\n public abstract boolean canWarp();\n\n public abstract int getReputation();\n\n public abstract int getInGameTime();\n\n public abstract UUID getMoonId(UUID uuid);\n\n public abstract String getDashboardUpdate();\n\n public abstract void dropItem(UUID uuid);\n\n public abstract void processWarp(UUID nextPosition);\n\n public abstract void processAnswer(String userAns);\n\n public abstract String[] getAnswers();\n\n public abstract int[] getPositionCoordinates(UUID uuid);\n\n public abstract ArrayList<UUID> getPossibleScenarios();\n\n public abstract void setScenario(UUID uuid);\n\n public abstract long getPlayedMillis();\n\n public abstract void startGame(UUID scenario, String playerName);\n\n public abstract String getDeliveryPlanet(UUID uuid);\n\n public abstract String getDeliveryNpc(UUID uuid);\n\n public abstract boolean isWar(UUID uuid);\n\n public abstract ArrayList<String> quitGame();\n\n public abstract boolean isDead();\n\n public abstract int getItemDeliveryTime(UUID itemUuid);\n\n public abstract boolean getItemPapers(UUID itemUuid);\n\n public abstract UUID getStartNpc();\n}", "public Game getGame()\n\t{\n\t\treturn game;\n\t}", "protected Game getGame() {\n return game;\n }", "public Fighter[] loadGame(Platform p)\r\n {\r\n yMin = p.getY(); //the value used to draw the platform\r\n Fighter fs[] = new Fighter[2]; \r\n int s = 50; //the size of the fighters: 50 pixels\r\n fs[0] = new Fighter(totalH,0,10,s); //makes a fighter at 0,10\r\n fs[1] = new Fighter(totalH,1000,10,s); //makes a fighter at 1000,10\r\n return fs;\r\n }", "protected Game getGame(){\n\t\treturn game;\n\t}", "public Game getGame() {\r\n return game;\r\n }", "public static GameType getGameType() {\n\t\treturn type;\n\t}", "public static DeviceInfo getInstance(Context context) {\n\n DeviceInfo deviceInfo = new DeviceInfo();\n\n deviceInfo.mFormat = context.getString(R.string.device_info_format);\n\n /**\n * Get a unique id for the device.\n */\n //deviceInfo.uniqueID = DeviceID.getID(context);\n\n /**\n * Get the sdk level of the device.\n */\n Field[] fields = Build.VERSION_CODES.class.getFields();\n for (Field field : fields) {\n\n int fieldValue = -1;\n\n try {\n fieldValue = field.getInt(new Object());\n } catch (Exception e) {\n Log.d(TAG, e.getMessage());\n }\n\n if (fieldValue == Build.VERSION.SDK_INT) {\n deviceInfo.mSdk = fieldValue;\n }\n }\n\n DisplayMetrics dm = new DisplayMetrics();\n WindowManager windowManager = (WindowManager) context\n .getSystemService(Context.WINDOW_SERVICE);\n\n windowManager.getDefaultDisplay().getMetrics(dm);\n\n /**\n * Get the resolution of the device.\n */\n deviceInfo.mResolution = dm.widthPixels + \"x\" + dm.heightPixels;\n\n /**\n * Get the density of the device.\n */\n deviceInfo.mDensity = dm.densityDpi;\n deviceInfo.mAndroidDensity = context.getString(R.string.density);\n\n return deviceInfo;\n }", "public Game getGame()\n {\n return game;\n }", "public static BuildInfo getBuildInfo() {\n return BUILD_INFO;\n }", "public static String getDeviceInformation(Context context) {\n String details = \"SDK\\t: \" + Build.VERSION.SDK_INT\n +\"\\nBRD\\t: \" + Build.BRAND\n +\"\\nH/W\\t: \" + Build.HARDWARE\n +\"\\nHST\\t: \" + Build.HOST\n +\"\\nID \\t: \" + Build.ID\n +\"\\nMFR\\t: \" + Build.MANUFACTURER\n +\"\\nMDL\\t: \" + Build.MODEL\n +\"\\nPRD\\t: \" + Build.PRODUCT\n +\"\\nDEV\\t: \" + Build.DEVICE\n +\"\\nAPP\\t: \" + context.getResources().getString(R.string.software_version)\n +\"\\n\\n\\n\";\n Log.d(MainActivity.APP_TAG, \"Device Details: \" + details);\n return details;\n }", "frame.game.proto.User.UserInfo getUser();", "frame.game.proto.User.UserInfo getUser();", "public Game getGame () {\n return game;\n }", "public String getGameInfo(String team, String gameElement) {\n\n String gameInfo = \"\";\n\n // convert JSON element to JSON array\n JsonArray jsa = jse.getAsJsonObject().get(\"data\").getAsJsonObject().get(\"games\").getAsJsonObject().get(\"game\")\n .getAsJsonArray();\n\n for(int i = 0; i < jsa.size(); i++) {\n if(jsa.get(i).getAsJsonObject().get(\"home_team_name\").getAsString().equals(team) ||\n jsa.get(i).getAsJsonObject().get(\"away_team_name\").getAsString().equals(team)) {\n gameInfo = jsa.get(i).getAsJsonObject().get(gameElement).getAsString();\n }\n }\n return gameInfo;\n }", "public static GameClient getCurrentGame() {\n\t\treturn arcade.getCurrentGame();\n\t}", "public String getPlayerInfo(String team, String level, String gameElement) {\n\n String playerInfo = \"\";\n\n // convert JSON element to JSON array\n JsonArray jsa = jse.getAsJsonObject().get(\"data\").getAsJsonObject().get(\"games\").getAsJsonObject().get(\"game\")\n .getAsJsonArray();\n\n for(int i = 0; i < jsa.size(); i++) {\n if(jsa.get(i).getAsJsonObject().get(\"home_team_name\").getAsString().equals(team) ||\n jsa.get(i).getAsJsonObject().get(\"away_team_name\").getAsString().equals(team)) {\n playerInfo = jsa.get(i).getAsJsonObject().get(level).getAsJsonObject().get(gameElement).getAsString();\n }\n }\n return playerInfo;\n }", "@Override\n public LocalGame createLocalGame() {\n return new LocalGameActual();\n }", "public Game getGame() {\r\n\t\treturn _game;\r\n\t}", "public GameInfoDetails(Game g) {\n\t\tthis.matches = g.getNumberOfGames();\n\t\tfor(Player p: g.getPlayers()) {\n\t\t\tplayerWins.add(new GameInfoPlayer(p));\n\t\t}\n\t}", "public interface Game {\n String playGame();\n Team getHomeTeam();\n Team getAwayTeam();\n void setAwayTeam(Team z);\n void setHomeTeam(Team w);\n}", "public GameState getGameState();", "public GameSummary(final com.google.gson.JsonObject infoFromServer) {\n\n data = infoFromServer;\n\n id = data.get(\"id\").getAsString();\n mode = data.get(\"mode\").getAsString();\n owner = data.get(\"owner\").getAsString();\n players = data.get(\"players\").getAsJsonArray();\n\n }", "private GameWorld getGameWorld(){\n\t\tHashMap<String, Location> locations = new HashMap<String, Location>();\n\t\tHashMap<Avatar, Location> avatarLocations = new HashMap<Avatar, Location>();\n\t\tArrayList<Avatar> avatars = new ArrayList<Avatar>();\n\t\t\n\t\tLocation testLocation = new Location(\"Test Location\");\n\t\tAvatar testAvatar = new Avatar(\"Slim\", 1);\n\t\t\n\t\tlocations.put(\"testLocation\", testLocation);\n\t\tavatarLocations.put(testAvatar, testLocation);\n\t\tavatars.add(testAvatar);\n\t\t\n\t\treturn new GameWorld(locations, avatarLocations, avatars);\n\t}", "public Game getGame() {\n return game;\n }", "public Game getGame() {\n return game;\n }", "public Game getGame() {\n return game;\n }", "public Game getGame() {\n return game;\n }", "SpawnType getGameSpawnType();", "public abstract String globalInfo();", "com.google.protobuf.ByteString\n getGameNameBytes();", "com.google.protobuf.ByteString\n getGameNameBytes();", "private void getphoneinformaition() {\n\t\ttry {\n\t\t\tsoftVersion = this.getPackageManager().getPackageInfo(\n\t\t\t\t\tthis.getPackageName(), 0).versionName;\n\t\t} catch (NameNotFoundException e) {\n\t\t\tsoftVersion = \"NULL\";\n\t\t}\n\n\t\tif (Build.BRAND != null) {\n\t\t\tphoneBrand = Build.BRAND;\n\t\t}\n\t\tif (Build.MODEL != null) {\n\t\t\tphoneModel = Build.MODEL;\n\t\t}\n\t\tif (Build.VERSION.RELEASE != null) {\n\t\t\tphoneOs = Build.VERSION.RELEASE;\n\t\t}\n\n\t\ttry {\n\t\t\tDisplayMetrics metric = new DisplayMetrics();\n\t\t\tgetWindowManager().getDefaultDisplay().getMetrics(metric);\n\t\t\tint width = metric.widthPixels; // 屏幕宽度(像素)\n\t\t\tint height = metric.heightPixels; // 屏幕高度(像素)\n\t\t\tString w = String.valueOf(width);\n\t\t\tString h = String.valueOf(height);\n\t\t\tStringBuffer s = new StringBuffer();\n\t\t\ts.append(w);\n\t\t\ts.append(\"*\");\n\t\t\ts.append(h);\n\t\t\tphoneResolution = s.toString();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tphoneResolution = \"NULL\";\n\t\t}\n\n\t\tFileLog.i(TAG, softVersion);\n\t\tFileLog.i(TAG, phoneBrand);\n\t\tFileLog.i(TAG, phoneModel);\n\t\tFileLog.i(TAG, phoneOs);\n\t\tFileLog.i(TAG, phoneResolution);\n\n\t}", "@Override\n protected void initGame() {\n getGameWorld().setEntityFactory(new PlatformerFactory());\n getGameWorld().setLevelFromMap(\"Platformergame1.json\");\n\n // Sets spawnloction of the player\n player = getGameWorld().spawn(\"player\", 50, 50);\n }", "public String getGameType() {\n return gameType;\n }", "public Game getGame() {\n\t\treturn game;\n\t}", "public abstract void info(Player p);", "public void createGame();", "protected EV3DevPlatform getPlatform() {\n\n //TODO Duplicated code\n final String BATTERY = \"/power_supply\";\n final String BATTERY_PATH = ROOT_PATH + BATTERY;\n final String BATTERY_EV3 = \"legoev3-battery\";\n final String BATTERY_PISTORMS = \"pistorms-battery\";\n final String BATTERY_BRICKPI = \"brickpi-battery\";\n final String BATTERY_BRICKPI3 = \"brickpi3-battery\";\n final String EV3BRICK_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_EV3;\n final String PISTORMS_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_PISTORMS;\n final String BRICKPI_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_BRICKPI;\n final String BRICKPI3_DISCOVERY_PATTERN_PATH = BATTERY_PATH + \"/\" + BATTERY_BRICKPI3;\n\n if(Sysfs.existPath(EV3BRICK_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(EV3BRICK_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.EV3BRICK);\n return EV3DevPlatform.EV3BRICK;\n } else if(Sysfs.existPath(PISTORMS_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(PISTORMS_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.PISTORMS);\n return EV3DevPlatform.PISTORMS;\n } else if(Sysfs.existPath(BRICKPI_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(BRICKPI_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.BRICKPI);\n return EV3DevPlatform.BRICKPI;\n } else if(Sysfs.existPath(BRICKPI3_DISCOVERY_PATTERN_PATH)){\n if(log.isTraceEnabled())\n log.trace(BRICKPI3_DISCOVERY_PATTERN_PATH);\n log.trace(\"Detected platform: \" + EV3DevPlatform.BRICKPI3);\n return EV3DevPlatform.BRICKPI3;\n } else {\n final String OS_NAME = System.getProperty(\"os.name\");\n final String OS_VERSION = System.getProperty(\"os.version\");\n final String message = \"Platform not supported: \" + OS_NAME + \" \" + OS_VERSION;\n log.error(message);\n throw new RuntimeException(message);\n }\n }", "public void getInfo() throws UnknownHostException, IOException\r\n\t{\r\n\t\tplayerSocket = new Socket(compName,mapPort);\r\n\t\tiStream = new DataInputStream(playerSocket.getInputStream());\r\n\t\toStream = new DataOutputStream(playerSocket.getOutputStream());\r\n\t\t\r\n\t\t\r\n\t\toStream.writeBoolean(true);\r\n\t\tsizeX = iStream.readInt();\r\n\t\tsizeY = iStream.readInt();\r\n\t\tvalue = iStream.readInt();\r\n\t\t\r\n\t\tSystem.out.println(\"Values we have: \"+sizeX+\" \"+sizeY+\" \"+value);\r\n\t\t\r\n\t}", "public IGame getGame(String uniqGameID){\r\n\t\treturn null;\r\n\t}", "public SpaceShooter(UbiquiGamePlatform platform){\n\t\tsuper(platform);\n\t\tthis.platform = platform;\n\t\tgsm = new GameStateManager();\n\t\tthis.instance = this;\n\n\t\t// GameOverMessage vars\n//\t\tthis.ranking = new ArrayList<Player>();\n//\t\tthis.score = new HashMap<Player, Integer>();\n\n\t}", "public GameInfo(int leadPlayer, TrickInfo trickInfo,\n GameInfo prevGameInfo) {\n this.trickInfo = trickInfo;\n numAlive = prevGameInfo.getNumAlive();\n deathPoints = prevGameInfo.getDeathPoints();\n List<Integer> prevGamePoints = prevGameInfo.getGamePoints();\n List<Integer> prevLives = prevGameInfo.getLives();\n \n computeTrickPoints(leadPlayer, numAlive);\n \n boolean lifeLost = updateGamePoints(prevGamePoints, prevLives);\n updateLives(prevLives, lifeLost);\n }", "public Game getCurrentGame()\r\n {\r\n return currentGame;\r\n }", "public GameLogic getGame(){\n\t\treturn game;\n\t}", "@Override\n\tpublic void createNewGame() \n\t{\n\t\t//Create new game\n\t\tboolean randomhexes = getNewGameView().getRandomlyPlaceHexes();\n\t\tboolean randomnumbers = getNewGameView().getRandomlyPlaceNumbers();\n\t\tboolean randomports = getNewGameView().getUseRandomPorts();\n\t\tString title = getNewGameView().getTitle();\n\t\t\n\t\ttry \n\t\t{\n\t\t\tReference.GET_SINGLETON().proxy.createGame(title, randomhexes, randomnumbers, randomports);\n\t\t} \n\t\tcatch (JoinExceptions e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//Refresh game list\n\t\tList<Game> gamelist = Reference.GET_SINGLETON().proxy.getGameList();\n\t\tGameInfo[] games = new GameInfo[gamelist.size()];\n\t\tint counter = 0;\n\t\tfor(Game game: gamelist)\n\t\t{\n\t\t\tGameInfo thisgame = new GameInfo();\n\t\t\tthisgame.setId(game.getId());\n\t\t\tthisgame.setTitle(game.getTitle());\n\t\t\tfor(Player player : game.getPlayers())\n\t\t\t{\n\t\t\t\tPlayerInfo player_info = new PlayerInfo(player);\n\t\t\t\tplayer_info.setColor(player.getColor());\n\t\t\t\tif(!(player.color == null))thisgame.addPlayer(player_info);\n\t\t\t}\n\t\t\tgames[counter] = thisgame;\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t\tReference ref = Reference.GET_SINGLETON();\n\t\t\n\t\tPlayerInfo ourguy = new PlayerInfo();\n\t\t\n\t\tourguy.setId(ref.player_id);\n\t\tourguy.setName(ref.name);\n\t\tif(getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().closeModal();\n\t\t}\n\t\tif (getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().closeModal();\n\t\t}\n\n\t\tgetJoinGameView().setGames(games, ourguy);\n\t\t\n\t}", "public interface IStartGameData extends IDataPacketData {\n\t/**\n\t * @return A unique IDataPacketID based on the class. The specific type is immaterial.\n\t */\n\tpublic static IDataPacketID GetID() {\n\t\treturn DataPacketIDFactory.Singleton.makeID(IStartGameData.class);\n\t}\n\t\n\t@Override\n\tpublic default IDataPacketID getID() {\n\t\treturn GetID();\n\t}\n\n\t/**\n\t * Gets the group with all players.\n\t * @return group with all players\n\t */\n\tIGroup getFullGroup();\n\t\n\t/**\n\t * Gets the group with only players on your team.\n\t * @return group with only players on your team.\n\t */\n\tIGroup getTeamGroup();\n\n\t/**\n\t * Gets the provided key for mdd\n\t * @return the key for mdd\n\t */\n\tMixedDataKey<GameAdapter> getMDDKey();\n\n\t/**\n\t * Gets the server stub\n\t * @return The server stub\n\t */\n\tIMember getServerStub();\n\t\n\t/**\n\t * @return the player's index\n\t */\n\tint getPlayerIndex();\n}", "public GameTypeWrapper playGame();", "public interface GamesManager {\r\n\r\n\t/**\r\n\t * Creates the game.\r\n\t * \r\n\t * @param maxPlayers the max players\r\n\t * @return the server game\r\n\t * @throws BaseException if parameters for the game are invalid\r\n\t */\r\n\tGameEnvironment createGame(int maxPlayers, IntPoint size) throws BaseException;\r\n\r\n\t/**\r\n\t * Gets the game.\r\n\t * \r\n\t * @param gameId the game id\r\n\t * @return the game\r\n\t */\r\n\tGameEnvironment getGame(int gameId);\r\n\r\n\t/**\r\n\t * Gets the pending games.\r\n\t * \r\n\t * @return the pending games\r\n\t */\r\n\tCollection<GameEnvironment> getPendingGames();\r\n\r\n\t/**\r\n\t * Gets the player.\r\n\t * \r\n\t * @param id the id\r\n\t * @return the player or null\r\n\t */\r\n\tServerPlayer getPlayer(int id);\r\n\r\n\t/**\r\n\t * Join game.\r\n\t * \r\n\t * @param game the game\r\n\t * @param player the player\r\n\t * @return true, if successful\r\n\t */\r\n\tboolean joinGame(GameEnvironment game, ServerPlayer player);\r\n\r\n\t/**\r\n\t * Leave game.\r\n\t * \r\n\t * @param game the game\r\n\t * @param player the player\r\n\t * @return true, if successful\r\n\t */\r\n\tboolean leaveGame(GameEnvironment game, ServerPlayer player);\r\n\r\n\t/**\r\n\t * Login.\r\n\t * \r\n\t * @param name the name\r\n\t * @return the server player\r\n\t */\r\n\tServerPlayer login(String name);\r\n\r\n\t/**\r\n\t * Start game.\r\n\t * \r\n\t * @param gameId the game id\r\n\t * @throws BaseException the base exception\r\n\t */\r\n\tpublic void initSingleGame(GameEnvironment game) throws BaseException;\r\n\r\n\tvoid removeGame(GameEnvironment game);\r\n\r\n\tvoid removePlayer(ServerPlayer player);\r\n\r\n\tColor getFreeColor(ServerPlayer player, ServerGame game);\r\n\r\n}", "public GameSetup getGameSetup() {\n return setup;\n }", "private static Game getGameOnAndroid(int gameId, Context context) {\n\t\tgameDB = new GameDB(context);\n\t\treturn gameDB.getGame(gameId);\n\t}", "private Game getGameById(long idGame) {\n Game game;\n synchronized (this.games) {\n if (!this.games.containsKey(idGame)) {\n return null;\n }\n game = this.games.get(idGame);\n }\n return game;\n }", "public static GameFrame getGameFrame() {\n return gameFrame;\n }", "public GameGetDTO getGameInformationById(Long gameId){\n\n GameGetDTO gameGetDTO = new GameGetDTO();\n GameEntity game = getGameById(gameId);\n gameGetDTO.setId(game.getId());\n\n //Get the name of the active Player\n gameGetDTO.setActivePlayerName(playerService.getPlayerById(game.getActivePlayerId()).getUsername());\n\n //Get the name of the passive players, save them in a list (bots as well)\n List<String> playerNames = new ArrayList<String>();\n for (Long id: game.getPassivePlayerIds()){\n playerNames.add(playerService.getPlayerById(id).getUsername());\n }\n //Add bots\n for (Bot bot: game.getBots()){\n playerNames.add(bot.getName());\n }\n gameGetDTO.setPassivePlayerNames(playerNames);\n //Add the name of the active player to the list of the passive players and return list with all players\n List<String> playerNames2 = new ArrayList<String>();\n for (PlayerEntity player : game.getPlayers()){playerNames2.add(player.getUsername());}\n //Add bots\n for (Bot bot: game.getBots()){\n playerNames2.add(bot.getName());\n }\n gameGetDTO.setPlayerNames(playerNames2);\n return gameGetDTO;\n }", "public String getGameId() {\n return gameId;\n }", "public String getGameId() {\n return gameId;\n }", "public static GameWindow getGame() {\n return _gameWindow;\n }", "public THLocalGame createLocalGame() {\n\n return null;\n }", "public GUIGameflow getGame() {\n return game;\n }", "public static Gamestatus getGameStatus() {\r\n\t\treturn STATUS;\r\n\t}", "void createNewGame(Player player);", "public HashMap<String, String> getInfoForNextPlace() {\n\t\tif (buildingName != null) {\n\t\t\treturn buildingInfo.get(buildingName);\n\t\t}\n\t\treturn storyInfo;\n\t}", "public String getGameName() {\n return gameName;\n }", "public void sendGameInfo(Player plr){\r\n\t\t\r\n\t\tString message = \"UDGM\" + lobby.getGameString();\r\n\t\tsendOnePlayer(plr, message);\r\n\t}", "public synchronized Game getAvailableGame() {\n // if game available with 1 player, return that, otherwise make new game, add it to internal list of games, and return it\n\n Set<String> gameIDlist=games.keySet();\n boolean foundUniqueGameID=false;\n int gameID=0;\n while (!foundUniqueGameID) {\n gameID = Utils.randInt(1000, 9999); // temp\n if (!gameIDlist.contains(gameID)) { //gameID is unique\n foundUniqueGameID=true;\n\n }\n }\n if (null==waitingGame){\n //int gameID = Utils.randInt(1000, 9999); // temp\n Game game = new Game(Integer.toString(gameID)); // temp\n this.games.put(game.getID(), game);\n this.waitingGame=game;\n return game;\n }\n else{\n Game temp=this.waitingGame;\n this.waitingGame=null;\n return temp;\n\n }\n\n }", "Response getGameDetails(String gameIdAsString);", "String getInfo();", "public Map<String,Object> getGameByGameName(String gameName) {\n\t\tif (StringUtils.isEmpty(gameName))\n return null;\n Map hm = new HashMap();\n String sql = \"select * from t_cgiser_game where STATE = 1 and GAMENAME=?\";\n String[] para = new String[1];\n para[0] = StringUtils.trim(gameName);\n hm = userJdbcTemplate.queryForMap(sql, para);\n return hm;\n\t}", "public interface Game {\n\n\t/**\n\t * return a specific tile. Precondition: Position p is a valid position in the world.\n\t * \n\t * @param p\n\t * the position in the world that must be returned.\n\t * @return the tile at position p.\n\t */\n\tpublic Tile getTileAt(Position p);\n\n\t/**\n\t * return the uppermost unit in the stack of units at position 'p' in the world. Precondition: Position p is a valid\n\t * position in the world.\n\t * \n\t * @param p\n\t * the position in the world.\n\t * @return the unit that is at the top of the unit stack at position p, OR null if no unit is present at position p.\n\t */\n\tpublic Unit getUnitAt(Position p);\n\n\t/**\n\t * return the city at position 'p' in the world. Precondition: Position p is a valid position in the world.\n\t * \n\t * @param p\n\t * the position in the world.\n\t * @return the city at this position or null if no city here.\n\t */\n\tpublic City getCityAt(Position p);\n\n\t/**\n\t * return the player that is 'in turn', that is, is able to move units and manage cities.\n\t * \n\t * @return the player that is in turn\n\t */\n\tpublic Player getPlayerInTurn();\n\n\t/**\n\t * return the player that has won the game.\n\t * \n\t * @return the player that has won. If the game is still not finished then return null.\n\t */\n\tpublic Player getWinner();\n\n\t/**\n\t * return the age of the world. Negative numbers represent a world age BC (-4000 equals 4000 BC) while positive\n\t * numbers are AD.\n\t * \n\t * @return world age.\n\t */\n\tpublic int getAge();\n\n\t/**\n\t * move a unit from one position to another. If that other position is occupied by an opponent unit, a battle is\n\t * conducted leading to either victory or defeat. If victorious then the opponent unit is removed from the game and\n\t * the move conducted. If defeated then the attacking unit is removed from the game. If a successful move results in\n\t * the unit entering the position of a city then this city becomes owned by the owner of the moving unit.\n\t * Precondition: both from and to are within the limits of the world. Precondition: there is a unit located at\n\t * position from.\n\t * \n\t * @param from\n\t * the position that the unit has now\n\t * @param to\n\t * the position the unit should move to\n\t * @return true if the move is valid (no mountain, move is valid under the rules of the game variant etc.), and\n\t * false otherwise. If false is returned, the unit stays in the same position and its \"move\" is intact (it\n\t * can be moved to another position.)\n\t */\n\tpublic boolean moveUnit(Position from, Position to);\n\n\t/**\n\t * Tell the game that the current player has finished his/her turn. The next player is then in turn. If all players\n\t * have had their turns then do end-of-round processing: A) restore all units' move counts B) produce food and\n\t * production in all cities C) produce units in all cities (if enough production) D) increase population size in all\n\t * cities (if enough food) E) increment the world age.\n\t */\n\tpublic void endOfTurn();\n\n\t/**\n\t * change the work force's focus in a city, i.e. what kind of production there will be emphasis on in the city.\n\t * Precondition: there is a city at location 'p'.\n\t * \n\t * @param p\n\t * the position of the city whose focus should be changed.\n\t * @param balance\n\t * a string defining the focus of the work force in a city. Valid values are at least\n\t * GameConstants.productionFocus and GameConstants.foodFocus.\n\t */\n\tpublic void changeWorkForceFocusInCityAt(Position p, String balance);\n\n\t/**\n\t * change the type of unit a city will produce next. Precondition: there is a city at location 'p'.\n\t * \n\t * @param p\n\t * the position of the city whose production should be changed.\n\t * @param unitType\n\t * a string defining the type of unit that the city should produce next.\n\t */\n\tpublic void changeProductionInCityAt(Position p, String unitType);\n\n\t/**\n\t * perform the action associated with the unit at position p. Example: a settler unit may create a new city at its\n\t * location. Precondition: there is a unit at location 'p'.\n\t * \n\t * @param p\n\t * the position of a unit that must perform its action. Nothing happens in case the unit has no\n\t * associated action.\n\t */\n\tpublic void performUnitActionAt(Position p);\n}" ]
[ "0.6366897", "0.6038755", "0.6017306", "0.5961161", "0.5863946", "0.58259016", "0.5673655", "0.5642879", "0.56236684", "0.56115234", "0.5576793", "0.55578166", "0.5534974", "0.553363", "0.54715985", "0.54658186", "0.54475254", "0.54444283", "0.54379034", "0.5432118", "0.54248846", "0.54248846", "0.54019374", "0.53961486", "0.53898776", "0.5375609", "0.53429645", "0.5341568", "0.5328341", "0.53255445", "0.5294248", "0.5292746", "0.5284966", "0.5263022", "0.5261965", "0.5261362", "0.52602553", "0.52396375", "0.5238645", "0.5234593", "0.5232604", "0.5229253", "0.5220241", "0.5220241", "0.5215815", "0.52158", "0.5213402", "0.5203332", "0.52001405", "0.51961213", "0.518415", "0.5183416", "0.5183002", "0.5181183", "0.51795167", "0.5178768", "0.5178768", "0.5178768", "0.5178768", "0.5172828", "0.51656187", "0.51631296", "0.51631296", "0.5160444", "0.5158114", "0.5157851", "0.5150518", "0.5148106", "0.5138147", "0.51377517", "0.51298517", "0.5125928", "0.5125926", "0.512348", "0.5122487", "0.51193607", "0.5096102", "0.5089907", "0.5088298", "0.5085767", "0.5068343", "0.50661993", "0.5062345", "0.5049406", "0.50390226", "0.5035535", "0.5035535", "0.5033592", "0.5029489", "0.5028921", "0.500865", "0.50067246", "0.50047314", "0.5003537", "0.50007254", "0.49945977", "0.49757573", "0.49644765", "0.49618468", "0.49607632" ]
0.7172151
0
Log.i(TAG, "ConnectedThread running"); Keep listening to the InputStream until an exception occurs
@Override public void run() { while (!stopThread) { try { //String outputMessage = mmInStream.available() + " bytes available"; //Log.i(TAG, outputMessage); // Read from the InputStream while (mmInStream.available() > 0) { synchronized (buffer) { if (bufferLast == buffer.length) { byte temp[] = new byte[bufferLast << 1]; System.arraycopy(buffer, 0, temp, 0, bufferLast); buffer = temp; } buffer[bufferLast++] = (byte) mmInStream.read(); } btSerialEvent(); } } catch (IOException e) { Log.e(TAG, e.getMessage()); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void run() {\r\n\t\t\r\n\t\tLog.d(TAG, \"begin ConnectedThread job\");\r\n\t\t\r\n\t\t// Receive buffer\r\n\t\tbyte[] buffer = new byte[256];\r\n\t\t// Amount of bytes read from InputStream\r\n\t\tint length = 0;\r\n\t\t\r\n\t\twhile(running){\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\t// Read available bytes from InputStream\r\n\t\t\t\tlength = oInStream.read(buffer);\r\n\t\t\t\t\t\t\r\n\t\t\t\t// Report the obtained bytes to the ConnectedListener\r\n\t\t\t\tif(oListener != null){\r\n\t\t\t\t\toListener.onReceive(buffer, length);\r\n\t\t\t\t}\r\n\t\t\t}catch(IOException e){\r\n\t\t\t\t\r\n\t\t\t\tLog.e(TAG, \"disconnected\", e);\r\n\t\t\t\t\r\n\t\t\t\t// Stop job\r\n\t\t\t\trunning = false;\r\n\t\t\t\t\r\n\t\t\t\t// Report this connection lose to the ConnectedListener \r\n\t\t\t\tif(oListener != null){\r\n\t\t\t\t\toListener.onDisconnect();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void run() {\n byte[] buffer = new byte[1024];\n int bytes;\n while (true) {\n try {\n bytes = mmInStream.read(buffer);\n if (bytes > 0) {\n Log.i(tag, \" ConnectedThread got value: \" + buffer[0]);\n Buffer.write(buffer[0]);\n }\n\n } catch (IOException e) {\n Log.e(tag, \"IOException in ConnectedThread\");\n break;\n }\n }\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tInputStream inputStream = mSocket.getInputStream();\n\t\t\tint leng;\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tByteArrayBuffer[] data = {new ByteArrayBuffer(1024 * 32)};\n\t\t\twhile((leng = inputStream.read(buffer)) != -1 && mConected)\n\t\t\t{\n\t\t\t\tif(mConected)\n\t\t\t\t{\n\t\t\t\t\tdata[0].append(buffer, data[0].length(), leng);\n\t\t\t\t\tprocessMessage(data);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(TAG, \"Cannot set InputStream\\nNetwork error\");\n\t\t\tevent.connectionLost();\n\t\t} catch (ProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tevent.connectionLost();\n\t\t}\n\t}", "@Override\n public void run() {\n byte[] buffer = new byte[1024];\n int bytes;\n while (true) {\n try {\n\n bytes = inputStream.read(buffer);\n String data = new String(buffer, 0, bytes);\n handler.obtainMessage(MainActivityFreeEX.DATA_RECEIVED, data).sendToTarget();\n\n Log.i(this.toString(), \"en el run de Connection: \" + handler.obtainMessage(MainActivityFreeEX.DATA_RECEIVED, data).toString());\n\n\n } catch (IOException e) {\n break;\n }\n }\n }", "@Override\n public void run() {\n int bytes;\n\n //keep listening to the InputStream until an exception occurs\n while (true) {\n try {\n //Read from the InputStrea,\n bytes = mInStream.readInt();\n readInInt = bytes;\n //Send the obtained bytes to the UI activity;\n Log.i(\"TRANSFER\", \"received \" + bytes);\n } catch (IOException e) {\n // e.printStackTrace();\n break;\n }\n }\n }", "public void run() {\n byte[] buffer = new byte[1024]; // buffer store for the stream\n int bytes; // bytes returned from read()\n // Keep listening to the InputStream until an exception occurs\n while (true) {\n try {\n // Read from the InputStream\n bytes = mmInStream.available();\n if (bytes != 0) {\n SystemClock.sleep(100); //pause and wait for rest of data. Adjust this depending on your sending speed.\n bytes = mmInStream.available(); // how many bytes are ready to be read?\n bytes = mmInStream.read(buffer, 0, bytes); // record how many bytes we actually read\n mHandler.obtainMessage(MESSAGE_READ, bytes, -1, buffer)\n .sendToTarget(); // Send the obtained bytes to the UI activity\n }\n } catch (IOException e) {\n e.printStackTrace();\n\n break;\n }\n }\n }", "public void run() {\n\n // Attempt to connect and exit the thread if it failed\n try {\n connect();\n sendToReadHandler(\"CONNECTED\");\n } catch (Exception e) {\n Log.e(TAG, \"Failed to connect!\", e);\n sendToReadHandler(\"CONNECTION FAILED\");\n disconnect();\n return;\n }\n\n // Loop continuously, reading data, until thread.interrupt() is called\n while (!this.isInterrupted()) {\n\n // Make sure things haven't gone wrong\n if ((inStream == null) || (outStream == null)) {\n Log.e(TAG, \"Lost bluetooth connection!\");\n break;\n }\n\n // Read data and add it to the buffer\n String s = read();\n if (s.length() > 0)\n rx_buffer += s;\n\n // Look for complete messages\n parseMessages();\n }\n\n // If thread is interrupted, close connections\n disconnect();\n sendToReadHandler(\"DISCONNECTED\");\n }", "@Override\n public void run() {\n super.run();\n final int READ_BUFFER_SIZE = 16384;\n byte[] buffer = new byte[READ_BUFFER_SIZE];\n int bytesRead;\n boolean stateProgress;\n\n // read loop\n while (!isInterrupted()) {\n try {\n bytesRead = inputStream.read(buffer);\n if (bytesRead == -1) {\n if (isInterrupted()) {\n Log.e(TAG,\"EOF reached, and thread is interrupted\");\n } else {\n Log.i(TAG,\"EOF reached, disconnecting!\");\n connectionLost();\n }\n return;\n }\n if (isInterrupted()) {\n Log.w(TAG,\"Read some data, but thread is interrupted\");\n return;\n }\n if(connectionSuccessful != null && connectionSuccessful == false){\n connectionSuccessful = true;\n }\n byte input;\n for(int i=0;i<bytesRead; i++){\n input=buffer[i];\n stateProgress = psm.handleByte(input);\n if(!stateProgress){//We are trying to weed through the bad packet info until we get something\n //Log.w(TAG, \"Packet State Machine did not move forward from state - \"+ psm.getState()+\". PSM being Reset.\");\n psm.reset();\n continue; //Move to the next iteration of the loop\n }\n\n if(psm.getState() == SdlPsm.FINISHED_STATE){\n synchronized (MultiplexUsbTransport.this) {\n //Log.d(TAG, \"Packet formed, sending off\");\n SdlPacket packet = psm.getFormedPacket();\n packet.setTransportRecord(getTransportRecord());\n handler.obtainMessage(SdlRouterService.MESSAGE_READ, packet).sendToTarget();\n }\n //Reset the PSM now that we have a finished packet.\n //We will continue to loop through the data to see if any other packet\n //is present.\n psm.reset();\n continue; //Move to the next iteration of the loop\n }\n }\n } catch (IOException e) {\n if (isInterrupted()) {\n Log.w(TAG,\"Can't read data, and thread is interrupted\");\n } else {\n Log.w(TAG,\"Can't read data, disconnecting!\");\n connectionLost();\n }\n return;\n } catch (Exception e){\n connectionLost();\n }\n }\n }", "@Override\n\tpublic void run() {\n\n\t\tbyte[] buffer = new byte[BUFFER_SIZE]; \n try { \n while (true) { \n int bytesRead = mInputStream.read(buffer); \n if (bytesRead == -1) \n break; // End of stream is reached --> exit 스트림의 끝에 도달\n \n Filter filter = new Filter(buffer, 0, bytesRead);\n mOutputStream.write(buffer, 0, bytesRead);\n mOutputStream.flush(); \n \n } \n } catch (IOException e) { \n // Read/write failed --> connection is broken \n \t// 쓰기/읽기 실패 --> 연결 끊기\n \tmParent.connectionBroken(); \n } \n \n // Notify parent thread that the connection is broken \n // 부모스레드에게 연결 끊기 전달\n mParent.connectionBroken(); \n }", "public void run() {\n mBluetoothAdapter.cancelDiscovery();\n \n try {\n // Connect the device through the socket. This will block\n // until it succeeds or throws an exception\n mmSocket.connect();\n while(!mmSocket.isConnected()){}\n Painter.paintSocketConnected = true;\n Log.d(tag, \"\" + mmSocket.isConnected());\n mOutputStream = mmSocket.getOutputStream(); \n mInputStream = mmSocket.getInputStream();\n\t\t\t\n } catch (IOException connectException) {\n try {\n\t\t\t\t\tmmSocket.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n return;\n }\n }", "@Override\r\n public void run() {\n\r\n try {\r\n mSock.connect();\r\n } catch (IOException e) {\r\n try {\r\n mSock.close();\r\n } catch (IOException e1) {\r\n Log.e(TAG, \"close error.\");\r\n e1.printStackTrace();\r\n }\r\n Log.e(TAG, \"connect error.\");\r\n e.printStackTrace();\r\n }\r\n\r\n }", "@Override\n protected void startListener(){\n Socket socket = null;\n while (isRunning()){\n socket = acceptSocket();\n if (socket == null) {\n continue;\n }\n \n try {\n handleConnection(socket);\n } catch (Throwable ex) {\n getLogger().log(Level.FINE, \n \"selectorThread.handleConnectionException\",\n ex);\n try {\n socket.close(); \n } catch (IOException ioe){\n // Do nothing\n }\n continue;\n }\n } \n }", "public void run() {\n String nextLine;\n try {\n while ((nextLine = in.readLine()) != null && !stopped) {\n game.HandleIncommingMesg(this, nextLine);\n }\n System.out.println(\"Connection with: \" + playername + \" is lost!\");\n shutdown();\n } catch (IOException e) {\n shutdown();\n }\n }", "public void run() {\r\n\r\n mRun = false;\r\n\r\n try {\r\n //here you must put your computer's IP address.\r\n InetAddress serverAddr = InetAddress.getByName(SERVER_IP);\r\n\r\n //create a socket to make the connection with the server\r\n socket = new Socket(serverAddr, SERVER_PORT);\r\n\r\n\r\n Log.i(TAG, \"run: connected\");\r\n\r\n mBufferOut = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);\r\n\r\n //receives the message which the server sends back\r\n mBufferIn = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n mRun = true; // socket attached so connected\r\n\r\n String line = mBufferIn.readLine();\r\n\r\n while (line != null) {\r\n mServerMessage = line;\r\n\r\n if (mMessageListener != null) {\r\n Log.i(TAG, \"server response: \" + mServerMessage);\r\n //call the method onResponseReceived from MyActivity class\r\n mMessageListener.onResponseReceived(mServerMessage);\r\n }\r\n\r\n line = mBufferIn.readLine();\r\n }\r\n\r\n } catch (ConnectException e) {\r\n Log.d(TAG, e.getMessage());\r\n\r\n Log.d(TAG, \"trying to reconnect\");\r\n if (retry < 10) {\r\n retry++;\r\n\r\n // try to reconnect after 3 seconds\r\n try {\r\n Thread.sleep(3000);\r\n } catch (InterruptedException ie) {\r\n Log.d(TAG, \"interruptedexception\");\r\n }\r\n\r\n run();\r\n } else {\r\n mRun = false;\r\n retry = 1;\r\n\r\n // reconnect after 30 seconds\r\n try {\r\n Log.d(TAG, \"sleep for 30\");\r\n Thread.sleep(30000);\r\n } catch (InterruptedException ie) {\r\n Log.d(TAG, \"interruptedexception\");\r\n }\r\n\r\n run();\r\n }\r\n\r\n\r\n\r\n }\r\n catch (SocketException e) {\r\n Log.e(TAG, \"socket ex: \" + e.getMessage());\r\n // we want to reconnect\r\n if (e.getMessage().contains(\"ECONNRESET\") || e.getMessage().contains(\"ETIMEDOUT\")) {\r\n run();\r\n }\r\n }\r\n catch (IOException e) {\r\n Log.e(TAG, \"S: Error\", e);\r\n }\r\n finally {\r\n //the socket must be closed. It is not possible to reconnect to this socket\r\n // after it is closed, which means a new socket instance has to be created.\r\n try {\r\n if (socket != null) {\r\n socket.close();\r\n retry = 1;\r\n }\r\n }\r\n catch (IOException e) {\r\n Log.e(TAG, \"error closing socket: \" + e.getMessage());\r\n }\r\n }\r\n\r\n mRun = true;\r\n }", "public void run() {\n\t\t\tbtAdapter.cancelDiscovery();\n\n\t\t\ttry {\n\t\t\t\t// Connect the device through the socket. This will block\n\t\t\t\t// until it succeeds or throws an exception\n\t\t\t\tmmSocket.connect();\n\t\t\t} catch (IOException connectException) {\n\t\t\t\t// Unable to connect; close the socket and get out\n\t\t\t\ttry {\n\t\t\t\t\tmmSocket.close();\n\t\t\t\t} catch (IOException closeException) { }\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Do work to manage the connection (in a separate thread)\n\t\t\tmHandler.obtainMessage(SUCCESS_CONNECT, mmSocket).sendToTarget();\n\t\t\tisConnected = true;\n\t\t\tConnectedThread connectedThread = new ConnectedThread((BluetoothSocket) mmSocket);\n\n\t\t}", "public void run() {\r\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\r\n adapter.cancelDiscovery();\r\n try {\r\n btSocket.connect();\r\n Log.d(\"TAG\", \"Device connected\");\r\n isConnected = true;\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n SharedPreferences.Editor edit = preferences.edit();\r\n edit.putBoolean(\"Connection\", isConnected);\r\n edit.apply();\r\n handler.obtainMessage(CONNECTING_STATUS, 1, -1).sendToTarget();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n try {\r\n isConnected = false;\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n SharedPreferences.Editor edit = preferences.edit();\r\n edit.putBoolean(\"Connection\", isConnected);\r\n edit.apply();\r\n btSocket.close();\r\n handler.obtainMessage(CONNECTING_STATUS, -1,-1).sendToTarget();\r\n } catch (IOException f) {\r\n f.printStackTrace();\r\n }\r\n return;\r\n }\r\n //Perform work from connection in a separate thread\r\n connectedThread = new ConnectedThread(btSocket);\r\n connectedThread.run();\r\n }", "public void sensorReader() {\n try {\n Log.i(TAG, \"wants to read from Arduino\");\n this.inputStream = socket.getInputStream();\n this.inputStreamReader = new InputStreamReader(inputStream);\n Log.i(TAG, \"inputstream ready\");\n this.bufferedReader = new BufferedReader(inputStreamReader);\n Log.i(TAG, \"buffered reader ready\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n public void run() \r\n {\r\n //Log.d(TAG ,\"==========>Task Run In!\");\r\n checkConnectState(); \r\n }", "public void connect() {\n\n if (reader == null) {\n reader = new ReadFromGo(this);\n readerThread = new Thread(reader);\n readerThread.start();\n } else {\n System.out.println(\"stopGoProcess()\");\n if (readerThread != null) {\n reader.stop();\n readerThread.interrupt();\n reader = new ReadFromGo(this);\n readerThread = new Thread(reader);\n readerThread.start();\n System.out.println(\"Thread interrupted and started\");\n }\n }\n }", "public void run()\n {\n myBt.cancelDiscovery();\n Log.d(TAG,\"stopping discovery\");\n\n try\n {\n Log.d(TAG,\"connecting!\");\n mmSocket.connect();\n }\n catch (IOException connectException)\n {\n Log.e(TAG,\"failed to connect\");\n try\n {\n Log.e(TAG,\"close-ah-da-socket\");\n mmSocket.close();\n } catch (IOException closeException) {\n Log.e(TAG,\"failed to close hte socket\");\n closeException.printStackTrace();\n }\n Log.e(TAG,\"returning..\");\n\n return;\n }\n\n Log.d(TAG, \"connection established\");\n manageConnectedSocket(mmSocket);\n }", "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 }", "private void listen() {\n System.out.println(\"launch listen task\");\n listenTask = new AsyncTask<Void, String, IOException>() {\n @Override\n protected IOException doInBackground(Void... params) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()))) {\n String line;\n while ((line = in.readLine()) != null) {\n System.out.println(\"receive \" + line);\n publishProgress(line);\n }\n } catch (SocketException e) {\n if (e.toString().equals(\"java.net.SocketException: Socket closed\")) {\n //that's what will happen when task.cancel() is called.\n System.out.println(\"listening is stopped as socket is closed\");\n return null;\n } else {\n e.printStackTrace();\n return e;\n }\n } catch (IOException e) {\n e.printStackTrace();\n return e;\n }\n return null;\n }\n\n @Override\n protected void onProgressUpdate(String... values) {\n handler.accept(new Message(MsgType.SERVER, values[0]));\n }\n\n @Override\n protected void onPostExecute(IOException e) {\n if (e == null) {\n handler.accept(new Message(MsgType.INFO, \"listening finished\"));\n } else {\n handler.accept(new Message(MsgType.ERROR,\n \"exception while listening\" + \"\\n\" + e.toString()));\n }\n }\n\n @Override\n protected void onCancelled() {\n super.onCancelled();\n }\n };\n //the listen task will last for a quite long time (blocking) and thus should run in a parallel pool.\n listenTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "public void startListeningForConnection() {\n startInsecureListeningThread();\n }", "public void run() {\n mBluetooth.cancelDiscovery();\n\n try {\n // Connect the device through the socket. This will block\n // until it succeeds or throws an exception\n mmSocket.connect();\n } catch (IOException connectException) {\n // Unable to connect; close the socket and get out\n try {\n mmSocket.close();\n } catch (IOException closeException) { }\n return;\n }\n\n // Do work to manage the connection (in a separate thread)\n connectedSocket(mmSocket);\n }", "public void startConnection(){\n EditText editText = (EditText) findViewById(R.id.ipAddress);\n final String ipAddress = editText.getText().toString();\n new Thread(new Runnable() {\n public void run() {\n try {\n System.out.println(ipAddress);\n Socket client = new Socket(ipAddress, 5000);\n System.out.println(\"connected\");\n OutputStream outToServer = client.getOutputStream();\n DataOutputStream out = new DataOutputStream(outToServer);\n EditText userNameText = (EditText) findViewById(R.id.UserName);\n final String userName = userNameText.getText().toString();\n out.writeUTF(userName);\n InputStream inFromServer = client.getInputStream();\n BufferedReader in = new BufferedReader(new InputStreamReader(inFromServer));\n SocketSingleton.setSocket(client);\n while (!in.ready()) {\n String readline = in.readLine();\n System.out.println(readline);\n if (\"success\".equals(readline)){\n Intent intent = new Intent(ConnectToComputer.this, RemoteActivity.class);\n startActivity(intent);\n } else {\n System.out.println(in.readLine());\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }).start();\n }", "public void run() {\n mBluetoothAdapter.cancelDiscovery();\n boolean success = false;\n try {\n\n // Connect the device through the socket. This will block\n // until it succeeds or throws an exception\n\n if(!mmSocket.isConnected()) {\n mmSocket.connect();\n success = true;\n }\n } catch (IOException e) {\n\n }\n\n if(mmSocket!=null){\n MainActivity.this.runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n Toast.makeText(MainActivity.this, \"successful\", Toast.LENGTH_SHORT).show();\n\n }\n });\n\n // Do work to manage the connection (in a separate thread)\n manageConnectedSocket(mmSocket);\n }\n }", "public void run() {\n Log.d(\"bluetooth\", \"entrou na thread bluetoothconnect\");\n while (true) {\n try {if(mmServerSocket != null)\n socket = mmServerSocket.accept();\n\n\n } catch (IOException e) {\n break;\n }\n // If a connection was accepted\n if (socket != null) {\n // Do work to manage the connection (in a separate thread)\n //Server server = new Server(socket);\n Log.d(\"bluetooth\", \"socket não está mais null oba\");\n\n if(socket.isConnected()){\n tts.speak(\"Device connected\");\n\n }\n // Server server = new Server(socket);\n //server.initialize(handler);\n //mmServerSocket.close();\n\n\n break;\n }\n }\n }", "private void resumeListening() {\n Thread listener = new Thread() {\n @Override\n public void run() {\n try {\n mListenerSocket = new ServerSocket();\n mListenerSocket.setReuseAddress(true);\n mListenerSocket.bind(new InetSocketAddress(LOCAL_PORT));\n while (true) {\n Socket connSocket = mListenerSocket.accept();\n Scanner sc = new Scanner(connSocket.getInputStream());\n String encMsg = sc.nextLine();\n connSocket.close();\n sc.close();\n Message msg = mHandler.obtainMessage();\n msg.obj = encMsg;\n mHandler.sendMessage(msg);\n }\n } catch (IOException e) {\n Log.d(\"LANConnection\", \"Stopping listener thread due to error\", e);\n }\n }\n };\n listener.start();\n }", "public void run() {\n readFromClient();\n }", "public void run() {\n try {\n Log.i(tag, \"Reconnection attempt #\" + reconnectionAttempts);\n reconnectionAttempts++;\n mmSocket.connect();\n showToast(\"Connected to controller\");\n } catch (IOException connectException) {\n Log.e(tag, \"Unable to connect socket\");\n\n RetryConnectionDialog dialog = new RetryConnectionDialog();\n dialog.setContext(main);\n dialog.setListener(btHandler);\n dialog.show(main.getFragmentManager(), dialog.getTag());\n\n try {\n mmSocket.close();\n } catch (IOException closeException) {\n\n }\n\n return;\n }\n\n // When a connection has been set up successfully, start ConnectedThread and\n // set isConnected to true.\n mConnectedThread = new ConnectedThread(mmSocket);\n mConnectedThread.start();\n isConnected = true;\n }", "@Override\n public void run() {\n try {\n socket = new Socket(\"192.168.0.165\", 2000);\n out = new PrintWriter(socket.getOutputStream());\n in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n ReadThread readThread = new ReadThread();\n readThread.start();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n boolean done = false;\n\n while (!done) {\n if (message != null) {\n try {\n out.print(message);\n out.flush();\n message = null;\n } catch (Exception e) {\n e.printStackTrace();\n try {\n socket.close();\n in.close();\n out.close();\n done = true;\n } catch (IOException d) {\n e.printStackTrace();\n }\n }\n }\n }\n disconnect();\n }", "public void run() {\n while (true) { \n \t\ttry {\n \t\t\tString line=br.readLine();\n\t\t\t\t\t\t\th.obtainMessage(RECIEVE_MESSAGE, line).sendToTarget();\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 \n }\n }", "@Override\r\n\tpublic void run() {\r\n\t\t//Tries to initialise a connection\r\n\t\ttry {\r\n\t\t\t//Runs as long as the channel is open\r\n\t\t\twhile(channel.isOpen()) {\r\n\t\t\t\t//Creates a new byte buffer to create the input\r\n\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(PACKET_SIZE);\r\n\t\t\t\t//Stores the result, -1 by default to assume that the channel couldn't be read\r\n\t\t\t\t//Checks which type of supported channel the channel is (DatagramChannel or SocketChannel - UDP vs TCP)\r\n\t\t\t\t//Uses this to determine where to read the result\r\n\t\t\t\t//Creates a string from the buffer and passes the string into the connector's function\r\n\t\t\t\t//Only passes the data if there's info to read (if the result isn't -1)\r\n\t\t\t\tif(channel.isOpen() && channel.read(buffer) != -1) {\r\n\t\t\t\t\t//Creates the packet from the received data and id\r\n\t\t\t\t\tString packet = new String(buffer.array()).trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//If the packet is a ping, returns a pong back\r\n\t\t\t\t\tif(packet.contains(\"!ping%EOP%\")) {\r\n\t\t\t\t\t\tsend(\"!pong\");\r\n\t\t\t\t\t} else if(packet.contains(\"!pong%EOP%\")) { //If the packet is a pong, calculates the ping\r\n\t\t\t\t\t\t//Calculates the ping from the current time and the time since the ping was sent\r\n\t\t\t\t\t\tping = System.currentTimeMillis() - timeSincePing;\r\n\t\t\t\t\t\t//System.out.println(\"Pong!\\nPING: \" + ping + \"ms\");\r\n\t\t\t\t\t} else if(!packet.trim().isEmpty()) { //Checks if the packet's data isn't just a blank string or whitespace\r\n\t\t\t\t\t\t//Sends the packet to the listener\r\n\t\t\t\t\t\t//Finds all the packets received by the listener by looping through as long as the packet contains an end-of-packet footer\r\n\t\t\t\t\t\twhile(packet.contains(\"%EOP%\")) {\r\n\t\t\t\t\t\t\t//Passes in the portion before the end-of-packet footer\r\n\t\t\t\t\t\t\tlistener.onReceive(new Packet(id, packet.substring(0, packet.indexOf(\"%EOP%\"))));\r\n\t\t\t\t\t\t\t//Removes that portion from the packet string\r\n\t\t\t\t\t\t\tpacket = packet.substring(packet.indexOf(\"%EOP%\") + \"%EOP%\".length());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Closes the connection\r\n\t\t\tclose();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"Error receiving data over TCP!\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\r\n public void run() {\r\n byte[] buffer = new byte[1024];\r\n int bytes;\r\n int times = 0;\r\n\r\n while (!mStopped) {\r\n try {\r\n if (times == 0) {\r\n try {\r\n \t// Sometimes lag occurs. Therefore, from time to time\r\n \t// we just ignore a large chunk of data from input stream\r\n \t// in order to synchronize the communication.\r\n mInputStream.skip(1024000);\r\n } catch (Exception e) {}\r\n times = LAG_CUT_TIMEOUT;\r\n }\r\n times--;\r\n\r\n // Read from socket and send to the handler\r\n bytes = mInputStream.read(buffer);\r\n mReceiveHandler.receiveData(buffer, bytes);\r\n\r\n } catch (IOException ioe) {\r\n Log.e(Common.TAG, \"Error receiving from the socket: \" + ioe.getMessage());\r\n mPeer.communicationErrorOccured();\r\n break;\r\n }\r\n }\r\n }", "@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)\n public void run() {\n\n mBluetoothAdapter.cancelDiscovery();\n Log.i(\"Client\", \"trying to connect to server\");\n try {\n mSocket.connect();\n Log.i(\"Client\", \"connected\");\n\n isConnected = mSocket.isConnected();\n\n } catch (IOException connectException) {\n Log.i(\"Client\", \"fail io connect\");\n isConnected = false;\n\n try {\n mSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return;\n }\n //manageConnectedSocket(mSocket);\n if (isConnected()) {\n mTransferThread = new TransferThread(mSocket);\n mTransferThread.start();\n }else{\n makeToast(\"Please try connecting again\",Toast.LENGTH_LONG);\n }\n }", "public void run() {\n byte[] buffer = new byte[256];\n int bytes;\n\n // Keep looping to listen for received messages\n while (true) {\n try {\n bytes = mmInStream.read(buffer); //read bytes from input buffer\n String readMessage = new String(buffer, 0, bytes);\n // Send the obtained bytes to the UI Activity via handler\n bluetoothIn.obtainMessage(handlerState, bytes, -1, readMessage).sendToTarget();\n } catch (IOException e) {\n break;\n }\n }\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\twhile(connected) {\n\t\t\tif(GameActivity.getInstance() == null)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\t// Read first 4 bytes (int, messageType) from stream\n\t\t\t\t//in.read(bytes, 0, 4);\n\t\t\t\tint messageType = in.readInt();\n\t\t\t\t//intByteBuffer.clear(); // Clear buffer so we can read from it again\n\t\t\t\t\n\t\t\t\t// Receive appropriate message based on received messageType\n\t\t\t if(messageType == Message.CHARACTERS.value()) {\n\t\t\t\t\treceiveCharacters();\n\t\t\t\t} else if(messageType == Message.ID.value()) {\n\t\t\t\t\treceiveId();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Received message with unknown id: \" + messageType);\n\t\t\t\t}\n\t\t\t \n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Connection to server lost\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tclose();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Override\n public void run() {\n if (Constants.HF_ReaderStatus.equalsIgnoreCase(\"HF Connected\") || Constants.HF_ReaderStatus.equalsIgnoreCase(\"HF Discovered\")) {\n //BLE Upgrade\n if ((IsHFUpdate.trim().equalsIgnoreCase(\"Y\")) && bleVersionCallCount == 0) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n readBLEVersion();\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n //Read Fob key\n if (IsHFUpdate.trim().equalsIgnoreCase(\"Y\")) {\n if (bleVersionCallCount != 0) {\n readFobKey();\n }\n } else {\n readFobKey();\n }\n\n }\n }", "private void whileConnected() throws AtmException\n\t{\n\t\ttrace(\"Starting whileConnected()\");\n\t\ttry\n\t\t{\n\t\t\ttrace(\"Waiting for message\");\n\t\t\t// listen for the client to START the session\n\t\t\tString messageIn = m_reader.readLine();\n\t\t\ttrace(\"message read: \" + messageIn);\n\t\t\tif(messageIn.trim().equals(START_SESSION))\n\t\t\t{\n\t\t\t\ttrace(\" - Starting server session\");\n\t\t\t\tm_writer.println(OK);\n\n\t\t\t\t// Return if there is no Connection and Wait again\n\t\t\t\tprocessSession();\n\t\t\t}\n\t\t\telse if(messageIn.trim().equals(END_SESSION))\n\t\t\t{\n\t\t\t\t// session over\n\t\t\t\ttrace(\" - Ending session\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttrace(\" - Invalid message to start session, terminating.\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException ex)\n\t\t{\n\t\t\ttrace(\"Error: \" + ex.getMessage());\n\t\t\tthrow new AtmException(ex);\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\ttrace(\"Error: \" + ex.getMessage());\n\t\t\tthrow new AtmException(ex);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\t// Finished on server\n//\t\t\tm_reader.close();\n//\t\t\tm_writer.close();\n\t\t\t//client.close();\n\t\t}\n\t}", "@Override\n public void run() {\n mBluetoothAdapter.cancelDiscovery();\n try {\n // Connect to the remote device through the socket. This call blocks\n // until it succeeds or throws an exception.\n mmSocket.connect();\n } catch (IOException connectException) {\n cancel();\n return;\n }\n\n onSocketObtained(mmSocket);\n }", "private void waitOnReceive() throws IOException {\n while (inStream.available() == 0) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException _) {\n }\n }\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 synchronized void start() {\n if (D) Log.d(TAG, \"start\");\n\n // Cancel any thread attempting to make a connection\n if (mConnectThread != null) {mConnectThread.cancel(); mConnectThread = null;}\n\n // Cancel any thread currently running a connection\n if (mConnectedThread != null) {mConnectedThread.cancel(); mConnectedThread = null;}\n\n setState(STATE_LISTEN);\n }", "@Override\n public void run() {\n console.append(\"Connected: \" + socket + \"\\n\");\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\n String[] data = null;\n\n while (socket.isConnected()) {\n String incoming = in.readLine();\n console.append(incoming + \"\\n\");\n try {\n data = incoming.split(\",\");\n }catch(NullPointerException e){\n //eh\n }\n //recieve packets\n receivePackets(data);\n }\n } catch (Exception e) {\n console.append(\"Disconnected:\" + socket + \"\\n\");\n //e.printStackTrace();\n } finally {\n try { socket.close(); } catch (IOException e) {}\n console.append(\"Closed: \" + socket + \"\\n\");\n }\n }", "@Override\n public void run() {\n boolean isOk = mBluetoothLeService.connect(getDeviceName());// 根据地址通过后台services去连接BLE蓝牙\n L.d(reTryCount+\" -----connect ok ? >\"+ isOk);\n if(!isOk) {\n reTryConected();\n }\n }", "public static void startChatServer() {\n\t\tbyte[] buffer = new byte[1024];\n\t\tStreamConnectionNotifier cn = null;\n\t\ttry {\n\t\t\tLocalDevice local = LocalDevice.getLocalDevice();\n\t\t\tlocal.setDiscoverable(DiscoveryAgent.GIAC);\n\t\t\tcn = (StreamConnectionNotifier) Connector.open(INSECURE_URL);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tOutputThread t = null;\n\t\t\tStreamConnection sock = null;\n\t\t\tInputStream is = null;\n\t\t\tOutputStream os = null;\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"accepting connection:\");\n\t\t\t\tsock = cn.acceptAndOpen();\n\t\t\t\tSystem.out.println(\"accept!: \" + Charset.defaultCharset());\n\t\t\t\tis = sock.openInputStream();\n\t\t\t\tos = sock.openOutputStream();\n\n\t\t\t\tt = new OutputThread(os);\n\t\t\t\tt.start();\n\n\t\t\t\twhile (t.isAlive()) {\n\t\t\t\t\t//TODO: use timeout read?\n\t\t\t\t\tint len = is.read(buffer);\n\t\t\t\t\t// printAsHex(buffer, len);\n\t\t\t\t\tif (len > 0) {\n\t\t\t\t\t\tSystem.out.println(\"received message(\" + len + \"): \" + new String(buffer, 0, len));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//TODO: check connection is live or not,\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tt.interrupt();\n\t\t\t\tt = null;\n\t\t\t\ttry {\n\t\t\t\t\tsock.close();\n\t\t\t\t\tcn.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t//\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void handleConnectionOpened();", "@Override\n public void run() {\n while (!isClosed) {\n System.out.println(\"reconnecting\");\n int status = reconnect();\n if (status == ServiceConstant.CONNECT_STATE_SUCCESS) {\n isConnecting = false;\n break;\n } else {\n try {\n Thread.sleep(getReconnectInterval());\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public void ListenThread() \n {\n Thread t = new Thread(new IncomingReader(writer, reader));\n t.start();\n \n }", "public void startThread(){\n String message = \"Connecting to RescueNet...Please Wait\";\n showProgressDialog(message);\n connectionThread = new ConnectionThread(mwifiAdmin, handlerMain);\n connectionThread.start();\n }", "@MainThread\n void onChannelScanStarted();", "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 }", "@Override\n public void run() {\n\n startPingTimer();\n String read = \"\";\n\n try {\n while ((read = in.readLine()) != null){\n\n //System.out.println(\"[CLIENT] Received: \" + read);\n messageHandler(read);\n\n }\n closeConnection();\n\n }catch (IOException e){\n\n System.out.println(\"[CLIENT] \" + e.getMessage());\n System.out.println(\"[CLIENT] Connection closed.\");\n\n }\n\n }", "@Override\r\n\tpublic void run() {\n\t boolean listen = true;\r\n\t while (listen) {\r\n\t\ttry {\r\n\t\t Socket socket = listeningSocket.accept();\r\n\t\t Thread ConnThread = new Thread (new Connection (socket, pid));\r\n\t\t ConnThread.start();\r\n\t\t connThreads.add(ConnThread);\r\n\t\t \r\n\t\t} catch (SocketException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t listen = false;\r\n\t\t} catch (Exception e) {\r\n\t\t System.err.println(\"Random exception\");\r\n\t\t}\r\n\t }\r\n\t}", "public void run()\n\t{\n\t\ttry\n\t\t{\n\t\t\tString line;\n\t\t\twhile((line=dataInputStream.readUTF())!=null && dataInputStream!=null)\n\t\t\t{\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tif(line.equals(\".bye\"))\n\t\t\t\t{\n\t\t\t\t\tdataInputStream=null;\n\t\t\t\t\tdataOutputStream=null;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tflag=true;\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{\n\t\t\tSystem.out.println(\"Disconnected from server!!!\");\n\t\t}\n\t}", "public void onStart() {\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinitConnection();\n\t\t\t\treceive();\n\t\t\t}\n\t\t}.start();\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tThread thisThread = currentThread();\n\t\t\ttry {\n\t\t\t\tLog.i(\"con\", \"worked3\");\n\t\t\t\tconnectToServer();\n\t\t\t\tif (connected) {\n\t\t\t\t\tsetUpStreams();\n\t\t\t\t\tsendProfile();\n\t\t\t\t\tLog.i(\"con\", \"worked8\");\n\t\t\t\t\twhile (blinker == thisThread) {\n\t\t\t\t\t\tstartListening();\n\t\t\t\t\t}\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\tLog.e(\"cl\", \"Found IO Exception!: \" + e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.e(\"cl\", \"Found class not found exception!: \" + e);\n\t\t\t}\n\n\t\t}", "public final void loopReader() {\n looperThread = Thread.currentThread();\n\n try {\n try {\n readerListener.onOpen(this, response);\n } catch (Throwable t) {\n Util.throwIfFatal(t);\n replyToReaderError(t);\n readerListener.onFailure(t, null);\n return;\n }\n\n while (processNextFrame()) {\n }\n } finally {\n looperThread = null;\n }\n }", "public void listen() {\n\t\tthread(\"NetworkClientInput\", () -> {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tString str = in.readLine();\n\t\t\t\t\t\n\t\t\t\t\tif (str == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"[CLIENT] Received: \" + str);\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandle(str);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.err.println(\"[Client] Error handling input\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"[Client] Disconnected.\");\n\t\t\t\t\tconnected = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tconnected = false;\n\t\t\texecutor.shutdown();\n\t\t\tsocket.close();\n\t\t});\n\t}", "void startConnectionReader()\n {\n if (! synchronousMode)\n {\n connectionReader.start();\n }\n }", "private void readInput() {\n byte[] byteForStream = new byte[2048];\n mListener.onCarRunning();\n\n String message = \"\";\n\n int bytes;\n\n while (true) {\n try {\n bytes = mInputStream.read(byteForStream);\n\n message += new String(byteForStream, 0, bytes);\n Log.d(TAG, \" Read from inputstream \" + message);\n System.out.println(\"Message is\" + message);\n\n if (message.equals(\"Done\")){\n mListener.onCarNotRunning();\n\n }\n if (message.equals(\"Obstacle\")){\n mListener.onCarNotRunning();\n\n\n }\n if (message.equals(\"Continue\")){\n mListener.onCarRunning();\n\n }\n if(message.contains(\"*\")){\n GPSTracker.getInstance(myContext).setGPSstring(message);\n Log.d(TAG, \"Setting GPSString to \" + message);\n }\n\n\n\n } catch (Exception e) {\n Log.e(TAG, \" error reading from inputstream \" + e.getMessage());\n break;\n }\n }\n message = \"\";\n\n }", "private RRCPConnectionListener() {\n mainThread = new Thread(this);\n }", "public abstract void handleConnected() throws Exception;", "private void openInputStream() throws IOException {\n InputStreamReader isReader = new InputStreamReader(this.sock.getInputStream());\n reader = new BufferedReader(isReader);\n }", "@Override\r\n\tpublic void run() {\r\n\t\tPacket packet = new Packet();\r\n\t\t\r\n\t\twhile (runConnection) {\r\n\t\t\ttry {\r\n\t\t\t\tpacket = (Packet) inStream.readObject();\r\n\t\t\t\tprocessEvent(packet);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t//System.out.print(e);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "public void connectionError() {\n\n Log.w(\"Main Activity\", \"Connection error occured\");\n if (menuBool) {//did not manually tried to disconnect\n Log.d(\"Main Activity\", \"in the app\");\n menuBool = false;\n final MainActivity ac = this;\n runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(getBaseContext(), getString(R.string.couldnotconnect), Toast.LENGTH_SHORT).show();\n //TextView rpm = (TextView) findViewById(R.id.rpm);\n //rpm.setText(\"0 BMP\");\n Spinner spinner1 = (Spinner) findViewById(R.id.spinner1);\n if (DataHandler.getInstance().getID() < spinner1.getCount())\n spinner1.setSelection(DataHandler.getInstance().getID());\n\n if (!h7) {\n\n Log.w(\"Main Activity\", \"starting H7 after error\");\n DataHandler.getInstance().setReader(null);\n DataHandler.getInstance().setH7(new H7ConnectThread((BluetoothDevice) pairedDevices.toArray()[DataHandler.getInstance().getID() - 1], ac));\n h7 = true;\n } else if (!normal) {\n Log.w(\"Main Activity\", \"Starting normal after error\");\n DataHandler.getInstance().setH7(null);\n DataHandler.getInstance().setReader(new ConnectThread((BluetoothDevice) pairedDevices.toArray()[DataHandler.getInstance().getID() - 1], ac));\n DataHandler.getInstance().getReader().start();\n normal = true;\n }\n }\n });\n }\n }", "void startListening()\n {\n if (outstanding_accept != null || open_connection != null) {\n return;\n }\n \n outstanding_accept = new AcceptThread(bt_adapter, handler);\n outstanding_accept.start();\n }", "public void run() {\n\t\tthis.checkConnectedList();\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tif(socket != null && !socket.isClosed() && socket.isConnected())\n\t\t{\n\t\t\tSendMessage(ApplicationManager.Instance().GetName(), MessageType.clientData);\n\t\t\tApplicationManager.textChat.writeGreen(\"Connected to \" + connectionInfo.ServerAdress);\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\twhile (IsConnected) \n\t\t {\n\t\t Message message = (Message) in.readObject();\n\t\t\t\t\t\n\t\t if(!IsConnected)\n\t\t \tbreak;\n\t\t \t\n\t\t if(message == null)\n\t\t {\n\t\t \tIsConnected = false;\n\t\t \tbreak;\n\t\t }\n\t\t \n\t\t HandleMessage(message); \n\t\t }\n\t\t\t \n\t\t\t} \n\t\t\tcatch (SocketException | EOFException e) {\n\t\t\t\tif(IsConnected)\n\t\t\t\tApplicationManager.textChat.writeGreen(\"Server go down!\");\n\t\t\t}\n\t\t\tcatch (IOException | ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tApplicationManager.Instance().Disconnect();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tApplicationManager.textChat.writeGreen(\"Cannot connect!\");\n\t\t\tApplicationManager.Instance().Disconnect();\n\n\t\t}\n\t}", "private void listen() {\n\t\tString message;\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tmessage = input.readLine();\n\t\t\t\tif (message == null) continue;\n\n\t\t\t\tif(message.equals(\"disconnect\")){\n\t\t\t\t\tThread t = new Thread(this::disconnect);\n\t\t\t\t\tt.start();\n\t\t\t\t\treturn;\n\t\t\t\t} else if(message.contains(\"PUSH\")) {\n\t\t\t\t\tparseMessage(message);\n\t\t\t\t} else if (message.equals(\"pong\")){\n\t\t\t\t\tponged = true;\n\t\t\t\t} else if(!validResponse) {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tresponse = message;\n\t\t\t\t\t\tvalidResponse = true;\n\t\t\t\t\t\tnotifyAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tThread t = new Thread(this::disconnect);\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\tresponse = null;\n\t\t\t\t\tvalidResponse = true;\n\t\t\t\t\tnotifyAll();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void run() {\n\t\tsuper.run();\r\n\t\ttry {\r\n\r\n\t\t\tBufferedReader in = null;\r\n\t\t\tPrintWriter out = null;\r\n\t\t\tString result = \"\";\r\n\t\t\twhile (isStart) {\r\n\t\t\t\tsocket = new Socket();\r\n\t\t\t\tsocket.connect(\r\n\t\t\t\t\t\tnew InetSocketAddress(MyApplication.share.getIp(), PORT),\r\n\t\t\t\t\t\t5 * 1000);\r\n\t\t\t\twhile (!socket.isClosed()) {\r\n\t\t\t\t\tin = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\t\t\tsocket.getInputStream()));\r\n\t\t\t\t\tout = new PrintWriter(socket.getOutputStream());\r\n\r\n\t\t\t\t\tout.println(\"getNotification\");\r\n\t\t\t\t\tout.flush();\r\n\r\n\t\t\t\t\tresult = in.readLine();\r\n\t\t\t\t\tif (!TextUtils.isEmpty(result)) {\r\n\t\t\t\t\t\taccessResult(new String(Base64.decode(\r\n\t\t\t\t\t\t\t\tresult.getBytes(), Base64.DEFAULT)));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tLog.w(TAG, \"Socket ���ؽ��Ϊ null...\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tsleep(3 * 1000);\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}\r\n\r\n\t\t\tsocket.close();\r\n\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}", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile (socket != null && !socket.isClosed()) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbInputStream.read(rbyte);\r\n\t\t\t\t\t\tMessage msg = new Message();\r\n\t\t\t\t\t\tmsg.what = 1;\r\n\t\t\t\t\t\tmsg.obj = rbyte;\r\n\t\t\t\t\t\treHandler.sendMessage(msg);\r\n\t\t\t\t\t} catch (IOException 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}", "public void run() {\n\t\t\twhile (true) {// 保持连接直到异常发生或套接字返回\n\t\t\t\ttry {\n\t\t\t\t\tif (serverSocket != null) {\n\t\t\t\t\t\tmTempSocket = serverSocket.accept(); // 如果一个连接同意\n\t\t\t\t\t}\n\t\t\t\t\t// If a connection was accepted\n\t\t\t\t\tif (mTempSocket != null) {\n\t\t\t\t\t\t// Do work to manage the connection (in a separate\n\t\t\t\t\t\t// thread)\n\t\t\t\t\t\tmanageConnectedSocket(); // 管理一个已经连接的RFCOMM通道在单独的线程。\n\t\t\t\t\t\tserverSocket.close();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "void connectionHandlerResumeScanning();", "@Override\r\n public void run() {\r\n\r\n try {\r\n is = threadSocket.getInputStream();\r\n isr = new InputStreamReader(is);\r\n br = new BufferedReader(isr);\r\n\r\n String line = new String();\r\n GLogger.debug(Modules.NETWORK, \"Waiting for client {\" + threadSocket.toString() + \"}\");\r\n \r\n while ((!isDone) && (line = br.readLine()) != null) {\r\n \tprocessInput(line);\r\n }\r\n } catch (Exception e) {\r\n\r\n GLogger.error(Modules.NETWORK, \"IO Exception during client communication\");\r\n } finally {\r\n\r\n try {\r\n\t\t\t\t\tbr.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n \r\n ClientStore.removeClient(threadSocket);\r\n try {\r\n\t\t\t\t\tthreadSocket.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n }\r\n\r\n }", "@MainThread\n void onChannelScanFinished();", "@Override\n public void run() {\n P.print(\"Listening on port \"+P.port+\", waiting for incomming connection...\");\n try {\n ServerSocket serverSocket = new ServerSocket(P.port);\n while (P.choke_thread_running) { //read input forever.\n Receive receive_thread = new Receive();\n Socket s = serverSocket.accept();\n String addr = s.getInetAddress().toString();\n int p = s.getPort();\n int i;\n for(i = 0;i<P.peer_ip.length;i++){\n if(addr.equals(P.peer_ip[i])){\n P.sockets[i] = s;\n P.tcp_out_stream[i] = new ObjectOutputStream(s.getOutputStream());\n break;\n }\n }\n receive_thread.start(P,s,P.peer_id[--i]);\n P.print(\"Accepted incomming connection: ip = \"+addr.substring(1)+\", port = \"+p);\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void run() {\n\t\tLog.i(\"here\",\"listener\");\n\t\twhile(true){\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif((cs=s.accept())!=null)new Thread(new Worker(context,cs)).start();\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\t\n\t\t}\n }", "@Override\n public void run() {\n try {\n registerWithServer();\n initServerSock(mPort);\n listenForConnection();\n\t} catch (IOException e) {\n Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, e);\n setTextToDisplay(\"run(): \" + e.getMessage());\n setConnectedStatus(false);\n\t}\n }", "public void run() {\n try {\n socketIn = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n socketOut = new ObjectOutputStream(socket.getOutputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n readFromClient();\n pingToClient();\n }", "@Override\n public void run() {\n while (connected) {\n Message message = getMessage();\n if (!connected)\n break;\n Executors.newCachedThreadPool().execute(() -> {\n try {\n message.handle(messageHandler);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n }", "@Override\n public void run() {\n while(true){\n //----------------ACCIONES QUE REALIZA EL HILO-----------------------\n if(isActive()){\n \n try {\n socket = serverSocket.accept(); //Espera una nueva conexion\n socket.setSoTimeout(10000); //Se espera recibir informacion durante 10 segundos\n dataInput = new BufferedReader(new InputStreamReader(socket.getInputStream()));//Se recibe informacion\n String data = dataInput.readLine();\n System.out.println(data);\n //Se disparan recien aqui las transiciones para evitar inconvenientes en caso de TimeOut\n monitor.disparar(transitions.get(0));\n monitor.disparar(transitions.get(1));//Se guarda en base de datos\n dataBase.insertEventWeb(data);\n monitor.disparar(transitions.get(2));\n } \n catch (SocketTimeoutException ex) { //En caso que haya expirado el TimeOut tengo que \n System.out.println(\"El tiempo a expirado\");\n }\n catch (IOException ex) {\n System.out.println(\"Error en Socket\");\n }\n try {\n socket.close();\n } \n catch (IOException ex) {\n System.out.println(\"Error al cerrar Socket\");\n }\n }\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ts=new Socket();\n\t\t\t\ttry {\n\t\t\t\t\ts.connect(new InetSocketAddress(InetAddress.getByName(ip), 21111), 2000);\n\t\t\t\t\tin=s.getInputStream();\n\t\t\t\t\tdis=new DataInputStream(in);\n\t\t\t\t\tout=s.getOutputStream();\n\t\t\t\t\tdos=new DataOutputStream(out);\n\t\t\t\t\tsendString(pass);\n\t\t\t\t\twhile(state)\n\t\t\t\t\t{\n\t\t\t\t\t\tint bufferSize=dis.readInt();\n\t\t\t\t\t\tfinal byte[] buffer=new byte[bufferSize];\n\t\t\t\t\t\tdis.readFully(buffer);\n\t\t\t\t\t\t\n\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tif(new String(buffer).equals(\"WRONG\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"wrong password\", Toast.LENGTH_LONG).show();\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(new String(buffer).equals(\"ACCEPT\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"ACCEPTED\", Toast.LENGTH_LONG).show();\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}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\ts.close();\n\t\t\t\t\tstate=false;\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"error first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"error first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\n\t\t\t\t\tstate=false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void startListening() {\n if (Util.isDebugBuild()) {\n Log.d(TAG, \"mAcceptThread: \" + mAcceptThread);\n }\n\n // Start the AcceptThread which listens for incoming connection requests\n if (mAcceptThread == null) {\n mAcceptThread = new AcceptThread(mContext, mHandler, services, this);\n }\n\n if (Util.isDebugBuild()) {\n Log.d(TAG, \"mAcceptThread.isAlive(): \" + mAcceptThread.isAlive());\n }\n\n if (!mAcceptThread.isAlive()) {\n mAcceptThread.start();\n }\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinput = new DataInputStream(socket.getInputStream());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\twhile (input != null) {\n\t\t\t\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\t\t\t\tdecode(input.readUTF());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\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 }", "@Override\n public void onConnectionSuspended(int i) {\n //Log.d(TAG, \"Connection suspended\");\n }", "@Override\n public void run() {\n android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND);\n try {\n try {\n selector = Selector.open();\n channel = SocketChannel.open();\n channel.configureBlocking(false);\n channel.register(selector, SelectionKey.OP_CONNECT);\n channel.connect(new InetSocketAddress(HOSTNAME, PORT));\n\n } catch (IOException e) {\n new IOException(\"Connection failed. Hostname : \" + HOSTNAME + \", port : \" + PORT, e).printStackTrace();\n }\n\n while (!Thread.interrupted()) {\n selector.select();\n Iterator<SelectionKey> keys = selector.selectedKeys().iterator();\n\n while (keys.hasNext()) {\n SelectionKey key = keys.next();\n keys.remove();\n\n if (!key.isValid()) {\n continue;\n }\n if (key.isConnectable()) {\n connect(key);\n }\n if (key.isReadable()) {\n String str = read(key);\n /*if(!str.equals(score)) {\n String nonStrange = str.replaceAll(\"\\\\p{Cntrl}\", \"\"); // gets rid of special character (diamond question mark)\n score = Integer.valueOf(nonStrange);\n Score();\n }*/\n Log.d(\"Received a message\", str);\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n close();\n }\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "public void readFromClient() {\n Thread t = new Thread(() -> {\n while (connected) {\n try {\n Message fromClient;\n synchronized (C2SMessages){\n if (C2SMessages.size() > 0){\n fromClient = (Message) C2SMessages.get(0);\n C2SMessages.remove(0);\n if( !(fromClient instanceof PingMessage) ) {\n if (myTurn) {\n answer = fromClient;\n answerReady = true;\n synchronized (lock){\n lock.notifyAll();\n }\n } else {\n send(new WrongTurnMessage());\n }\n }\n }\n if (C2SMessages.isEmpty())\n C2SMessages.wait();\n }\n } catch (NullPointerException | IllegalArgumentException | InterruptedException e) {\n System.out.println(\"[LOCAL-HANDLER] \"+userNickname+\"-local connection closed\");\n closeConnection();\n notifyDisconnection(this);\n break;\n }\n }\n });\n t.start();\n }", "public void run(){\r\n\r\n try{\r\n InputStreamReader isr = new InputStreamReader(inputStream);\r\n BufferedReader br = new BufferedReader(isr);\r\n String line = null;\r\n\r\n while((line = br.readLine()) != null){\r\n System.out.println(\"CLIENT: \" + type + \">\" + line);\r\n }\r\n\r\n }catch (IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - log this error and handle it like a boss\r\n }\r\n }", "private void listenForConnection() throws IOException {\n\twhile(true) {\n System.out.println(\"Waiting for connection...\");\n // Wait for client to connect\n Socket cli = server.accept();\n if(connlist.size() < MAX_CONN) {\n\t\t// if numCli is less then 100\n initConnection(cli);\n }\n\t}\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tLog.v(TAG,\"connect to server...\");\n\t\t\t\tsocket=new Socket(\"140.116.246.200\",4000+id);\n\t\t\t\tout=socket.getOutputStream();\n\t\t\t\tin=socket.getInputStream();\n\t\t\t\tLog.v(TAG,\"connect!!\");\n\t\t\t\n\t\t\t\tsendData(\"ask#\");\n\t\t\t\tUIHr.post(refreshUI); \t\n\t\t\t\tresult=new Integer(readData());\n\t\t\t\tUIHr.post(refreshUI); \t\t\n\t\t\t\tsendData(\"over#\");\n\t\t\t\tsocket.close();\n\t\t\t} catch (UnknownHostException e) {e.printStackTrace();} \n\t\t\tcatch (IOException e) {e.printStackTrace();}\n\t\t}", "public void run() {\n\t\t\tbluetooth_adapter.cancelDiscovery();\r\n\t\t\tif(socket == null) return;\r\n\t\t\t\r\n\t\t\t// Connect the device through the socket. This will block\r\n\t\t\t// until it succeeds or throws an exception\r\n\t\t\ttry {\r\n\t\t\t\tsocket.connect();\r\n\t\t\t\tdata_thread = new Data_Thread(socket);\r\n\t\t\t\tdata_thread.start();\r\n\t\t\t\t//System.out.println(\"==============> Bluetooth Connected <===================\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsocket.close();\r\n\t\t\t\t} catch (IOException closeException) {\r\n\t\t\t\t\tcloseException.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tString message = \"Error: \" + e;\r\n\t\t\t\tif(device != null) {\r\n\t\t\t\t\tmessage += \" Device: \"+device.getName();\r\n\t\t\t\t}\r\n\t\t\t\tbluetooth_show_message(message);\r\n\t\t\t}\r\n\t\t\r\n\t\t\tclient_connect_thread = null;\r\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (!client.isClosed()) {\n\t\t\t\t\tSystem.out.println(\"is socket connected\" + client.isConnected());\n\t\t\t\t\tInputStreamReader reader;\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\treader = new InputStreamReader(client.getInputStream());\n\t\t\t\t\t\tBufferedReader buf = new BufferedReader(reader);\n\t\t\t\t\t\tString msg = buf.readLine();\n\t\t\t\t\t\tif (msg != null) {\n\t\t\t\t\t\t\tSystem.out.println(\"server:\" + msg.toString());\n\t\t\t\t\t\t\tString ContextMsg = \"来自被连接的回复:\" + client.getInetAddress() + \"\\n\" + msg.toString();\n\t\t\t\t\t\t\ttextList.add(ContextMsg);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}", "public void run() \n { \n String message; // String for incoming messages\n \n // listen for messages until stopped\n while ( keepListening ) \n { \n try \n { \n message = input.readLine(); // read message from client\n } // end try\n catch ( SocketTimeoutException socketTimeoutException ) \n {\n continue; // continue to next iteration to keep listening\n } // end catch\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n break;\n } // end catch\n\n // ensure non-null message\n if ( message != null ) \n {\n // tokenize message to retrieve user name and message body\n StringTokenizer tokenizer = new StringTokenizer( \n message, MESSAGE_SEPARATOR );\n\n // ignore messages that do not contain a user\n // name and message body\n if ( tokenizer.countTokens() == 2 ) \n {\n // send message to MessageListener\n messageListener.messageReceived( \n tokenizer.nextToken(), // user name\n tokenizer.nextToken() ); // message body\n } // end if\n else\n {\n // if disconnect message received, stop listening\n if ( message.equalsIgnoreCase(\n MESSAGE_SEPARATOR + DISCONNECT_STRING ) ) \n stopListening();\n } // end else\n } // end if\n } // end while \n \n try\n { \n input.close(); // close BufferedReader (also closes Socket)\n } // end try\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n } // end catch \n }", "public ReadThread (InputStream in)\n {\n this.in = in;\n this.start();\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n//\t\t\t\tdevAddr = devices.get(position).split(\"\\\\|\")[1];\n//\t\t\t\tbtAdapt.cancelDiscovery();\n//\t\t\t\t\n//\t\t\t\tbtSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n//\t\t\t\tbtSocket.connect();Log.e(tag, \"connected\");\n\t\t\t\tInetAddress severInetAddr=InetAddress.getByName(\"120.105.129.108\");\n\t\t\t\tWifisocket = new Socket(severInetAddr, 8101);\n\t\t\t\t\n\t\t\t\tsynchronized (this) {\n//\t\t\t\t\tbtIn = btSocket.getInputStream();\n//\t\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\t\tbtIn = Wifisocket.getInputStream();\n\t\t\t\t\tbtOut = Wifisocket.getOutputStream();\n\t\t\t\t\tLog.e(tag, \"connected\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tThread.sleep(100);\n\t\t\t\tsetUpAsForeground(\"Wifi已連線\");\n\t\t\t} catch( IOException | InterruptedException e ){\n\t\t\t\te.printStackTrace();\n\t\t\t\ttry{\n//\t\t\t\t\tbtSocket.close();\n//\t\t\t\t\tWifisocket.close();\n\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\tsetUpAsForeground(\"Wifi未連線\");\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t} catch(InterruptedException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t}\n//\t\t\t\tbtSocket = null;\n\t\t\t\tWifisocket = null;\n\t\t\t\tmBTState = BTState.stopped;\n\t\t\t\tBluetoothConnect.mBTstate = BTstate.opened;\n\t\t\t}\n\n\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (needAutoConnect(addr)) {\n\t\t\t\t\t\tmBleApi.connect(addr);\n\t\t\t\t\t}\n\t\t\t\t}" ]
[ "0.7422511", "0.71375227", "0.6852076", "0.67837965", "0.6778182", "0.665968", "0.66374874", "0.65429485", "0.6520469", "0.6496311", "0.6448578", "0.6401255", "0.6395803", "0.63238573", "0.6323074", "0.629271", "0.6274774", "0.6268838", "0.62381756", "0.62285936", "0.6214152", "0.6171253", "0.615803", "0.61308575", "0.6111209", "0.6105032", "0.6104312", "0.60871017", "0.6086405", "0.60854214", "0.6083465", "0.60501003", "0.60416645", "0.60397345", "0.60368323", "0.60294247", "0.6019907", "0.60126424", "0.597314", "0.5971278", "0.59606755", "0.5943779", "0.5937207", "0.59306383", "0.59242105", "0.5897961", "0.5888989", "0.58703405", "0.5860479", "0.58325976", "0.5830421", "0.58286315", "0.58255845", "0.5816889", "0.58088744", "0.5808165", "0.58013254", "0.5770212", "0.576598", "0.57656986", "0.57519054", "0.5750551", "0.57501245", "0.5749472", "0.57494426", "0.573641", "0.57352996", "0.5733082", "0.573028", "0.5724939", "0.57225704", "0.5720515", "0.57089067", "0.5707842", "0.57002324", "0.56862104", "0.5683957", "0.56789505", "0.5674061", "0.56668407", "0.5646544", "0.5635265", "0.56289417", "0.5627327", "0.5621457", "0.5617287", "0.5616701", "0.56070256", "0.5606174", "0.5606174", "0.5604379", "0.55977124", "0.55974483", "0.55967635", "0.55794847", "0.5573821", "0.5571123", "0.55634975", "0.5557846", "0.55563605" ]
0.60636675
31
/ Call this from the main Activity to send data to the remote device
public void write(byte[] bytes) { try { for(int i=0; i<bytes.length; i++) { mmOutStream.write(bytes[i] & 0xFF); } } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClickSend(View view) {\n //String string = editText.getText().toString();\n //serialPort.write(string.getBytes());\n //tvAppend(txtResponse, \"\\nData Sent : \" + string + \"\\n\");\n }", "void sendData(String msg) throws IOException\n {\n if ( msg.length() == 0 ) return;\n//\n msg += \"\\n\";\n// Log.d(msg, msg);\n if (outputStream != null)\n outputStream.write(msg.getBytes());\n// myLabel.setText(\"Data Sent\");\n// myTextbox.setText(\" \");\n }", "public void onClickSend(View view) {\n String string = editText.getText().toString();\n serialPort.write(string.getBytes());\n tvAppend(textView, \"\\nData Sent : \" + string + \"\\n\");\n\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tmConnectedThread.write(\"send\");\n\t\t\t\t\tmConnectedThread.writeFile();\n\t\t\t\t}", "void sendData(String request) throws IOException {\n if (mmDevice == null) {\n Log.d(TAG, \"No device set\");\n }\n\n Log.d(TAG, \"Request is \" + request);\n if (mmOutputStream != null){\n mmOutputStream.write(request.getBytes(Charset.forName(\"UTF-8\")));\n }\n\n if (false && request.contains(\"travel\")) {\n closeBT();\n openBT();\n }\n }", "private void send(final String data) {\n\t\tif (null != PinPadController) {\n\t\t\tnew Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tPinPadController.PINPad_sendToPinPad(data);\n\t\t\t\t};\n\t\t\t}.start();\n\t\t\tToast.makeText(this, \"send\", Toast.LENGTH_SHORT).show();\n\t\t}\n\t}", "public void sendDataToESP(String data){\n\n\n URL remoteurl = null;\n String baseurl = \"http://\"+IpAddress+\"/\";\n String urlString = baseurl + data;\n System.out.println(urlString);\n try {\n remoteurl = new URL(urlString);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n new AutoActivity.pingit().execute(remoteurl);\n }", "public void onSend(View v){\n Socket msocket;\n try {\n msocket = IO.socket(\"http://10.0.2.2:9080/\");\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n //msocket=cApp.getSocket();\n msocket.connect();\n msocket.emit(\"sendTest\",\"fkg\");\n msocket.on(\"sendTest\",onSendTest);\n }", "@Override\n public void run() {\n try {\n int PORT = 10002; //서버에서 설정한 PORT 번호\n String ip=\"192.168.0.45\"; //서버 단말기의 IP주소..\n //본 예제는 Genymotion 에뮬레이터 2대로 테스한 예제입니다.\n //Genymotion을 실행하면 각 에뮬레이터의 IP를 확인할 수 있습니다.\n\n Socket socket; //클라이언트의 소켓\n DataInputStream is;\n DataOutputStream os;\n\n //서버와 연결하는 소켓 생성..\n socket = new Socket(InetAddress.getByName(ip), PORT);\n\n //여기까지 왔다는 것을 예외가 발생하지 않았다는 것이므로 소켓 연결 성공..\n //서버와 메세지를 주고받을 통로 구축\n is = new DataInputStream(socket.getInputStream());\n os = new DataOutputStream(socket.getOutputStream());\n\n Gson gson = new Gson();\n ArrayList<SendCommunication> communications = new ArrayList<SendCommunication>();\n communications.add(new SendCommunication(insertOrderMenu, insertOrderGoods));\n\n String json = gson.toJson(communications);\n\n os.writeUTF(json); //서버로 메세지 보내기.UTF 방식으로(한글 전송가능...)\n os.flush(); //다음 메세지 전송을 위해 연결통로의 버퍼를 지워주는 메소드..\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n public void run() {\n try {\n int PORT = 10002; //서버에서 설정한 PORT 번호\n String ip=\"192.168.0.46\"; //서버 단말기의 IP주소..\n //본 예제는 Genymotion 에뮬레이터 2대로 테스한 예제입니다.\n //Genymotion을 실행하면 각 에뮬레이터의 IP를 확인할 수 있습니다.\n\n Socket socket; //클라이언트의 소켓\n DataInputStream is;\n DataOutputStream os;\n\n //서버와 연결하는 소켓 생성..\n socket = new Socket(InetAddress.getByName(ip), PORT);\n\n //여기까지 왔다는 것을 예외가 발생하지 않았다는 것이므로 소켓 연결 성공..\n //서버와 메세지를 주고받을 통로 구축\n is = new DataInputStream(socket.getInputStream());\n os = new DataOutputStream(socket.getOutputStream());\n\n Gson gson = new Gson();\n ArrayList<SendCommunication> communications = new ArrayList<SendCommunication>();\n communications.add(new SendCommunication(insertOrderMenu, insertOrderGoods));\n\n String json = gson.toJson(communications);\n\n os.writeUTF(json); //서버로 메세지 보내기.UTF 방식으로(한글 전송가능...)\n os.flush(); //다음 메세지 전송을 위해 연결통로의 버퍼를 지워주는 메소드..\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }", "@Override\n public void run() {\n if (socket != null) {\n byte b0 = get_sendbyte0();\n byte b1 = get_sendbyte1();\n Log.e(\"handler\", String.valueOf(b0) + String.valueOf(b1));\n if (outputStream == null) {\n try {\n outputStream = socket.getOutputStream();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n try {\n outputStream.write(new byte[]{(byte) 1, b0, b1, (byte) 1}); /*1, b0, b1, 1*/\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "@Override\r\n public void onClick(View v) {\n String msg = ed_msg.getText().toString();\r\n try {\r\n\t\t\t\t\tsend(HOST, PORT, msg.getBytes());\r\n\t\t\t\t\t\r\n\t \tmHandler.sendMessage(mHandler.obtainMessage()); \r\n\t \tcontent =HOST +\":\"+ msg +\"\\n\";\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n }", "@Override\r\n public void onCreate() {\n intent = new Intent(BROADCAST_ACTION);\r\n startBTService();\r\n// try{\r\n// mConnectedThread.write(\"2\".getBytes());\r\n// }catch(Exception e){\r\n//\r\n// }\r\n }", "@Override\n\t\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttextsent=0;\n\t\t\t\t\t\t\t\t\tesocket = new Socket(TestConnection.ip, TestConnection.port);\n\n\t\t\t\t\t\t\t\t// Log.e(\"ClientActivity\", \"C: Sending command.\");\n\t\t\t\t\t\t\t\t\tedos=new DataOutputStream(esocket.getOutputStream());\n\t\t\t\t\t\t\t\t\tedis=new DataInputStream(esocket.getInputStream());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\tedos.writeUTF(\"DOUBT\");\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 \n\t\t\t\t\t\t\t// \tif(TestConnection.username!=null)\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.username);\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.roll);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.macid);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etopic.getText().toString()); // SEND\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SUBJECT\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etext.getText().toString()); // SEND\n\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// MESSAGE\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Sending imageflag\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//Image sending\n\t\t\t\t\t\t\t\t\tif(AudioMainActivity.imageflag!=1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tedos.writeUTF(\"send_image\");\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"send_image\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tAudioMainActivity.imageflag=1;\n\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\tsendFile(filedp);\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\telse\n\t\t\t\t\t\t\t\t\t{edos.writeUTF(\"not_send_image\");\n\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"not_send_image\");\n\t\t\t\t\t\t\t\t\tString ifdone =edis.readUTF();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(ifdone.equals(\"not_done\"))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\t\tsendFile(filedp);\n\t\t\t\t\t\t\t\t\t\tLog.e(\"ZABARDASTI\",\"Image Sent\");\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\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\tfinal String msgServer = edis.readUTF(); // RECEIVE\n\t\t\t\t\t\t\t\t\tLog.e(\"Confirmation\", \"msgServer=\"+msgServer);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CONFIRMATION\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// IF MESSAGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// RECEIVED BY\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SERVER\n\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\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tif (msgServer.contains(\"received\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this, \"Doubt Sent\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t\temerdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\ttextsent=1;\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\tAudioMainActivity.doubt.add(etopic.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.textMessage.add(etext.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.count=5-AudioMainActivity.doubt.size();\n\t\t\t\t\t\t\t\t\t\t\t\t//counter.setText(\"Doubts Remaining : \"+count);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Server Error! Doubt not sent!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//doubtSubject.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t//doubtText.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(true);\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}\n\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\tif (esocket != null) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t// close socket connection after using it\n\t\t\t\t\t\t\t\t\t\tesocket.close();\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\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}", "public void transmit()\n { \n try\n {\n JSch jsch=new JSch(); //object that allows for making ssh connections\n //Log into the pi\n Session session=jsch.getSession(USERNAME, HOSTNAME, 22); //pi defaults to using port 22 \n session.setPassword(PASSWORD);\n session.setConfig(\"StrictHostKeyChecking\", \"no\"); //necessary to access the command line easily\n \n session.connect(1000);//connect to the pi\n \n Channel channel = session.openChannel(\"exec\");//set session to be a command line \n ((ChannelExec)channel).setCommand(this.command); //send command to the pi\n \n channel.setInputStream(System.in); \n channel.setOutputStream(System.out);\n //connect to the pi so the command can go through\n channel.connect(1000);\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(frame, \"Error connecting to infrared light\", \"Error Message\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void sendClick(View view) {\n String message = input.getText().toString();\n uart.send(message);\n }", "@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\r\n case R.id.sendd:\r\n buffer = new byte[]{'d'};\r\n if (sendMessage(buffer) == -1) {\r\n Toast.makeText(getActivity(), \"失败,请检查连接!\", Toast.LENGTH_SHORT).show();\r\n } else {\r\n Toast.makeText(getActivity(), \"正在关闭,请稍后...\", Toast.LENGTH_SHORT).show();\r\n }\r\n break;\r\n case R.id.sendz:\r\n buffer = new byte[]{'z'};\r\n if (sendMessage(buffer) == -1) {\r\n Toast.makeText(getActivity(), \"失败,请检查连接!\", Toast.LENGTH_SHORT).show();\r\n } else {\r\n Toast.makeText(getActivity(), \"正在关闭,请稍后...\", Toast.LENGTH_SHORT).show();\r\n }\r\n break;\r\n case R.id.sendrclear:\r\n byte[] a = new byte[]{60,0,0};\r\n sendR(a);\r\n break;\r\n case R.id.sendrcloud:\r\n byte[] b = new byte[]{0,2,0};\r\n sendR(b);\r\n break;\r\n\r\n case R.id.sendrcloud2:\r\n byte[] c = new byte[]{127,2,0};\r\n sendR(c);\r\n break;\r\n\r\n case R.id.sendrrain:\r\n byte[] d = new byte[]{60,1,1};\r\n sendR(d);\r\n break;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "public void onClick(View v) {\n mConnectedThread.write(\"1\"); // Send \"1\" via Bluetooth\n Toast.makeText(getBaseContext(), \"Turn on LED\", Toast.LENGTH_SHORT).show();\n }", "private void sendData(String data) {\n\n if (!socket.isConnected() || socket.isClosed()) {\n Toast.makeText(getApplicationContext(), \"Joystick is disconnected...\",\n Toast.LENGTH_LONG).show();\n return;\n }\n\n\t\ttry {\n\t\t\tOutputStream outputStream = socket.getOutputStream();\n\n byte [] arr = data.getBytes();\n byte [] cpy = ByteBuffer.allocate(arr.length+1).array();\n\n for (int i = 0; i < arr.length; i++) {\n cpy[i] = arr[i];\n }\n\n //Terminating the string with null character\n cpy[arr.length] = 0;\n\n outputStream.write(cpy);\n\t\t\toutputStream.flush();\n\n Log.d(TAG, \"Sending data \" + data);\n\t\t} catch (IOException e) {\n Log.e(TAG, \"IOException while sending data \"\n + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (NullPointerException e) {\n Log.e(TAG, \"NullPointerException while sending data \"\n + e.getMessage());\n\t\t}\n\t}", "@Override\n public void onClick(View view) {\n\n runOnUiThread(\n new Runnable() {\n @Override\n public void run() {\n MainActivity\n .this\n .connectionManager.getTo().println(\n MainActivity\n .this\n .send_text.getText().toString()\n );\n }\n }\n );\n\n }", "public void onClick(View v) {\n setBottonSingleTest();\n viewPager.setCurrentItem(0);\n\n\n try{\n DatagramSocket socket = new DatagramSocket();\n byte[] buf = \"hello world\".getBytes();\n\n DatagramPacket packet = new DatagramPacket(buf,\n buf.length,\n InetAddress.getByName(\"255.255.255.255\"),\n 666);\n //给服务端发送数据\n socket.send(packet);\n socket.close();\n }catch (IOException e){\n System.out.println(e);\n }\n }", "public void run(){\n\t\t\t\tDatagramPacket packet = new DatagramPacket(data,data.length, ip, port);\n\t\t\t\ttry {\n\t\t\t\t\tsocket.send(packet);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "private void bluetoothSendMsg(String s) {\n byte [] msgOnBuf;\n msgOnBuf = s.getBytes();\n try {\n outStream.write(msgOnBuf);\n } catch (IOException e) {\n Log.d(TAG,\"send message fail!\");\n }\n }", "public void run() {\n\t\t\t\tDatagramPacket packet = new DatagramPacket(data,data.length,ip,port);\n\t\t\t\ttry {\n\t\t\t\t\tsocket.send(packet);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "private void sendData() {\n\n Thread update = new Thread() {\n public void run() {\n while (opModeIsActive() && (tfod != null)) {\n path.updateTFODData(recognize());\n path.updateHeading();\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n }\n if (isStopRequested() && tfod != null)\n tfod.shutdown();\n }\n }\n };\n update.start();\n }", "public void sendMsgToClient() {\n\n try {\n\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);\n\n Log.d(TAG, \"The transmitted data:\" + msg);\n\n writer.println(msg);\n\n } catch (Exception e) {\n\n e.printStackTrace();\n\n }\n\n }", "private void sendMessage() {\n Log.d(\"sender\", \"Broadcasting message\");\n Intent intent = new Intent(\"custom-event-name\");\n // You can also include some extra data.\n double[] destinationArray = {getDestination().latitude,getDestination().longitude};\n intent.putExtra(\"destination\", destinationArray);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }", "private void sendTextRequest() {\n\t\t\t\t\tfinal Thread textingThread = new Thread (new Runnable() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttextsent=0;\n\t\t\t\t\t\t\t\t\tesocket = new Socket(TestConnection.ip, TestConnection.port);\n\n\t\t\t\t\t\t\t\t// Log.e(\"ClientActivity\", \"C: Sending command.\");\n\t\t\t\t\t\t\t\t\tedos=new DataOutputStream(esocket.getOutputStream());\n\t\t\t\t\t\t\t\t\tedis=new DataInputStream(esocket.getInputStream());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\tedos.writeUTF(\"DOUBT\");\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 \n\t\t\t\t\t\t\t// \tif(TestConnection.username!=null)\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.username);\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.roll);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(TestConnection.macid);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etopic.getText().toString()); // SEND\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SUBJECT\n\t\t\t\t\t\t\t\t\tedos.writeUTF(etext.getText().toString()); // SEND\n\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// MESSAGE\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Sending imageflag\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//Image sending\n\t\t\t\t\t\t\t\t\tif(AudioMainActivity.imageflag!=1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tedos.writeUTF(\"send_image\");\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"send_image\");\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tAudioMainActivity.imageflag=1;\n\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\tsendFile(filedp);\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\telse\n\t\t\t\t\t\t\t\t\t{edos.writeUTF(\"not_send_image\");\n\t\t\t\t\t\t\t\t\tLog.e(\"Image flag sent\",\"not_send_image\");\n\t\t\t\t\t\t\t\t\tString ifdone =edis.readUTF();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(ifdone.equals(\"not_done\"))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tFile filedp = new File(mypath+\"/dp_th.jpg\");\n\t\t\t\t\t\t\t\t\t\tsendFile(filedp);\n\t\t\t\t\t\t\t\t\t\tLog.e(\"ZABARDASTI\",\"Image Sent\");\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\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\tfinal String msgServer = edis.readUTF(); // RECEIVE\n\t\t\t\t\t\t\t\t\tLog.e(\"Confirmation\", \"msgServer=\"+msgServer);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CONFIRMATION\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// IF MESSAGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// RECEIVED BY\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// SERVER\n\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\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tif (msgServer.contains(\"received\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this, \"Doubt Sent\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t\temerdialog.dismiss();\n\t\t\t\t\t\t\t\t\t\t\t\ttextsent=1;\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\tAudioMainActivity.doubt.add(etopic.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.textMessage.add(etext.getText().toString());\n\t\t\t\t\t\t\t\t\t\t\t\tAudioMainActivity.count=5-AudioMainActivity.doubt.size();\n\t\t\t\t\t\t\t\t\t\t\t\t//counter.setText(\"Doubts Remaining : \"+count);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\tToast.makeText(AudioDoubt.this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"Server Error! Doubt not sent!\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//doubtSubject.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t//doubtText.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(true);\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}\n\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\tif (esocket != null) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t// close socket connection after using it\n\t\t\t\t\t\t\t\t\t\tesocket.close();\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\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic void sendFile(File file) throws IOException {\n\t\t\t\t\t FileInputStream fileIn = new FileInputStream(file);\n\t\t\t\t\t byte[] buf = new byte[Short.MAX_VALUE];\n\t\t\t\t\t int bytesRead; \n\t\t\t\t\t while( (bytesRead = fileIn.read(buf)) != -1 ) {\n\t\t\t\t\t dos.writeShort(bytesRead);\n\t\t\t\t\t dos.write(buf,0,bytesRead);\n\t\t\t\t\t }\n\t\t\t\t\t dos.writeShort(-1);\n\t\t\t\t\t fileIn.close();\n\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\ttextingThread.start();\n\t\t\t\t\t\n\t\t\t\t\tThread textTimer=new Thread (new Runnable() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlong startingtime = System.currentTimeMillis();\n\t\t\t\t\t\t\tlong endingtime = startingtime + 5*1000; // 60 seconds * 1000 ms/sec\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{\n\t\t\t\t\t\t\t\tif(textsent==1||System.currentTimeMillis() > endingtime)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(textsent!=1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttextingThread.interrupt();\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Texting thread\",\"Thread Interrupted\");\n\t\t\t\t\t\t\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tebar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\t\t\t\t\tesend.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Connection Error... Could not Send Doubt..\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\t\t\tetopic.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\t\tetext.setEnabled(true);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\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\t\n\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\t\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\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\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\t\n\t\t\t\t\t\t\t\t}\n\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}\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}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\ttextTimer.start();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\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}", "public void sendData(String data) {// send data\n\t\tthis.data = data;\n\t\tthis.start();// spin up a new thread to send data\n\t}", "@Override\r\n public void onSendTcp(Object obj) {\n mNetworkManager.sendTCPData(obj);\r\n }", "@Override\n public void onClick(View v) {\n byte[] bytes = command.getBytes();\n\n if (sPort != null) {\n\n try {\n sPort.write(bytes, 100000);\n Log.e(LOG_TAG, \"inside write\");\n// mExecutor.submit(mSerialIoManager);\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(LOG_TAG, \"Exception \" + e);\n }\n } else {\n Log.e(LOG_TAG, \"UsbSerialPort is null\");\n }\n }", "public void postData()\n\t{\n\t\tnew NetworkingTask().execute(message);\n\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tmsgText.setText(null);\n\t\t\tsendEdit.setText(null);\n\t\t\tif(sppConnected || devAddr == null)\n\t\t\t\treturn;\n\t\t\ttry{\n\t\t\t btSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n\t\t\t btSocket.connect();\n\t\t\t Log.d(tag,\"BT_Socket connect\");\n\t\t\t synchronized (MainActivity.this) {\n\t\t\t\tif(sppConnected)\n\t\t\t\t\treturn;\n\t\t\t\tbtServerSocket.close();\n\t\t\t\tbtIn = btSocket.getInputStream();\n\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\tconected();\n\t\t\t}\n\t\t\t Toast.makeText(MainActivity.this,\"藍牙裝置已開啟:\" + devAddr, Toast.LENGTH_LONG).show();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tsppConnected =false;\n\t\t\t\ttry{\n\t\t\t\t\tbtSocket.close();\n\t\t\t\t}catch(IOException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbtSocket = null;\n\t\t\t\tToast.makeText(MainActivity.this, \"連接異常\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tDatagramSocket s=new DatagramSocket();\n\t\t\t\t\tInetAddress ipAd=InetAddress.getByName(ip);\n\t\t\t\t\tDatagramPacket dp=new DatagramPacket(pass2.getBytes(), pass2.getBytes().length\t, ipAd, 21111);\n\t\t\t\t\ts.send(dp);\n\t\t\t\t\tToast.makeText(getApplicationContext(), pass2.toString(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\ts.close();\n\t\t\t\t\t\n\t\t\t\t} catch (SocketException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@Override\r\n public void onResult(byte[] data)\r\n {\n StringBuffer sb = new StringBuffer();\r\n sb.append(getString(R.string.external_device_recv_data)).append(\"\\n\");\r\n sb.append(new String(data)).append(\"\\n\");\r\n \r\n McRecvOnBoard = sb.toString();\r\n \r\n MainControllerDemoActivity.this.runOnUiThread(new Runnable(){\r\n\r\n @Override\r\n public void run() \r\n { \r\n mRecvTextView.setText(McRecvOnBoard);\r\n }\r\n });\r\n }", "public void sendMessage(View v) {\n // retrieve the text typed in by the user in the EditText\n String message = ((EditText)(findViewById(R.id.editText_message))).getText().toString();\n // create an implicit intent to any app with SENDTO capability\n // set the destination (5556 is the phone number of the second emulator instance)\n Uri destination = Uri.parse(\"smsto:5556\");\n Intent smsIntent = new Intent(Intent.ACTION_SENDTO, destination);\n // pass the composed message to the messaging activity\n smsIntent.putExtra(\"sms_body\", message);\n // launch the intent\n startActivity(smsIntent);\n }", "public void send_data(int curr_portNo, String data_send) {\n\t\ttry {\n\t\t\tSocket baseSocket = new Socket(Content_Provider.ipAdd, curr_portNo);\n\t\t\tPrintWriter toPeer = new PrintWriter(new BufferedWriter(\n\t\t\t\t\tnew OutputStreamWriter(baseSocket.getOutputStream())), true);\n\t\t\ttoPeer.println(data_send);\n\t\t\tbaseSocket.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void sendBtMsg(final String msg2send) {\n UUID uuid = UUID.fromString(\"94f39d29-7d6d-437d-973b-fba39e49d4ee\"); //Standard SerialPortService ID\n try {\n\n if (mmDevice != null) {\n mmSocket = mmDevice.createRfcommSocketToServiceRecord(uuid);\n if (!mmSocket.isConnected()) {\n try {\n mmSocket.connect();\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n\n toastMsg(\"Connection Established\");\n\n String msg = msg2send;\n //msg += \"\\n\";\n OutputStream mmOutputStream = null;\n try {\n mmOutputStream = mmSocket.getOutputStream();\n mmOutputStream.write(msg.getBytes());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n });\n\n } catch (IOException e) {\n Log.e(\"\", e.getMessage());\n mmSocket.close();\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n toastMsg(\"Connection not Established\");\n\n\n }\n });\n\n /*try {\n Log.e(\"\", \"trying fallback\");\n mmSocket =(BluetoothSocket) mmDevice.getClass().getMethod(\"createRfcommSocket\", new Class[] {int.class}).invoke(mmDevice,1);\n mmSocket.connect();\n Log.e(\"\", \"Connected\");\n }\n catch (Exception e2){\n Log.e(\"\", \"Couldn't establish Bluetooth connection!\");\n toastMsg(\"Couldn't establish Bluetooth connection!\");\n }*/\n }\n }\n\n\n/*\n if (mmOutputStream == null)\n try {\n mmOutputStream = mmSocket.getOutputStream();\n } catch (IOException e) {\n errorExit(\"Fatal Error\", \"In onResume(), input and output stream creation failed:\" + e.getMessage() + \".\");\n }*/\n\n } else {\n if (mBluetoothAdapter != null) {\n\n\n Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n if (device.getName().matches(\".*\")) //Note, you will need to change this to match the name of your device\n {\n Log.e(\"Aquarium\", device.getName());\n mmDevice = device;\n sendBtMsg(msg2send);\n break;\n }\n }\n }\n }\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSendToServer(ph);\n\t\t\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}", "void beginSendData(){\n stopSendThread = false;\n final Thread thread = new Thread(new Runnable() {\n\n public void run() {\n while(!Thread.currentThread().isInterrupted() && !stopSendThread){\n try{\n try {\n Thread.currentThread().sleep(100);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String string = \":1\" + (char)speedLeft + (char)speedRight + \"@\";\n try {\n os.write(string.getBytes());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } catch (Exception e){\n e.printStackTrace();\n stopSendThread = true;\n }\n\n\n }\n\n }\n });\n thread.start();\n System.out.println(\"koniec funkcji startsend\");\n }", "static public void startSending(String add,int port,byte[] data,int mode){\n }", "private void publish(String deviceAddress)\n {\n if(mMqttServiceBound)\n {\n try\n {\n TexTronicsDevice device = mTexTronicsList.get(deviceAddress);\n if(device != null)\n {\n // Get the byte array from the CSV file stored in the device\n byte[] buffer = IOUtil.readFile(device.getCsvFile());\n // Create a new string using device info and new byte array\n String json = MqttConnectionService.generateJson(device.getDate(),\n device.getDeviceAddress(),\n Choice.toString(device.getChoice()),\n device.getExerciseID(),\n device.getRoutineID(),\n new String(buffer));\n Log.d(\"SmartGlove\", \"JSON: \" + json);\n // Call the service to publish this string, now in JSON format\n mMqttService.publishMessage(json);\n String exe_nm = MainActivity.exercise_name;\n\n List<Integer> ids = new ArrayList<>();\n try{\n ids = UserRepository.getInstance(getApplicationContext()).getAllIdentities();\n }\n catch (Exception e){\n Log.e(TAG, \"onCreate: \", e);\n }\n\n int current = ids.size();\n\n Log.d(TAG, \"UpdateData: logging the data\");\n\n if (exe_nm.equals(\"Finger_Tap\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finTap_left(json,current);\n }\n else if (exe_nm.equals(\"Closed_Grip\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_opCl_left(json,current);\n }\n else if (exe_nm.equals(\"Hand_Flip\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_h_flip_left(json,current);\n }\n else if (exe_nm.equals(\"Finger_to_Nose\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finNose_left(json,current);\n }\n else if (exe_nm.equals(\"Hold_Hands_Out\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handout_left(json,current);\n }\n else if (exe_nm.equals(\"Resting_Hands_on_Thighs\") && deviceAddress.equals(\"LEFT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handrest_left(json,current);\n }\n else if (exe_nm.equals(\"Finger_Tap\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finTap_right(json,current);\n }\n else if (exe_nm.equals(\"Closed_Grip\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_opCl_right(json,current);\n }\n else if (exe_nm.equals(\"Hand_Flip\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_h_flip_right(json,current);\n }\n else if (exe_nm.equals(\"Finger_to_Nose\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_finNose_right(json,current);\n }\n else if (exe_nm.equals(\"Hold_Hands_Out\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handout_right(json,current);\n }\n else if (exe_nm.equals(\"Resting_Hands_on_Thighs\") && deviceAddress.equals(\"RIGHT_GLOVE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_handrest_right(json,current);\n }\n else if (exe_nm.equals(\"Heel_Stomp\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_heelStmp_right(json,current);\n }\n else if (exe_nm.equals(\"Toe_Tap\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_toeTap_right(json,current);\n }\n else if (exe_nm.equals(\"Walk_Steps\") && deviceAddress.equals(\"RIGHT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_gait_right(json,current);\n }\n else if (exe_nm.equals(\"Heel_Stomp\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_heelStmp_left(json,current);\n }\n else if (exe_nm.equals(\"Toe_Tap\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_toeTap_left(json,current);\n }\n else if (exe_nm.equals(\"Walk_Steps\") && deviceAddress.equals(\"LEFT_SHOE_ADDR\"))\n {\n UserRepository.getInstance(context).updateData_gait_left(json,current);\n }\n }\n else {\n Log.d(TAG, \"publish: Publish failed. Device is null\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "void sendDataForSubscriber(int subId, String callingPkg, String destAddr,\n String scAddr, int destPort, byte[] data, PendingIntent sentIntent,\n PendingIntent deliveryIntent);", "public void sendData(byte[] data) {\r\n\t\t//send packet\r\n\t\ttry {\r\n\t\t\tout.write(data);\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void send( String data ) {\n SendRunnable sendRunnable = new SendRunnable( data );\n Thread sendThread = new Thread( sendRunnable );\n sendThread.start();\n }", "private void send() {\n Toast.makeText(this, getString(R.string.message_sent, mBody, Contact.byId(mContactId).getName()),\n Toast.LENGTH_LONG).show();\n finish(); // back to DirectShareActivity\n }", "void bytetest() {\n byte[] myByteArray = new byte[256];\n for (int i = 0; i < 256; ++i) {\n myByteArray[i] = (byte)i;\n }\n\n Intent writeIntent = new Intent(BGXpressService.ACTION_WRITE_SERIAL_BIN_DATA);\n writeIntent.putExtra(\"value\", myByteArray);\n writeIntent.setClass(mContext, BGXpressService.class);\n writeIntent.putExtra(\"DeviceAddress\", mDeviceAddress);\n startService(writeIntent);\n }", "public void goToSendCommand(View view){\n Log.i(tag, \"About to launch SendCommand\");\n Intent i = new Intent(this, SendCommand.class);\n startActivity(i);\n }", "void sendDataForSubscriberWithSelfPermissions(int subId, String callingPkg, String destAddr,\n String scAddr, int destPort, byte[] data, PendingIntent sentIntent,\n PendingIntent deliveryIntent);", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_main);\r\n\r\n \r\n\t\tStrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()\r\n\t\t.detectDiskReads()\r\n\t\t.detectDiskWrites()\r\n\t\t.detectNetwork() //or .detectAll() for all detectable problems\r\n\t\t.penaltyLog()\r\n\t\t.build());\r\n\t\tStrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()\r\n\t\t.detectLeakedSqlLiteObjects()\r\n\t\t.detectLeakedClosableObjects()\r\n\t\t.penaltyLog()\r\n\t\t.penaltyDeath()\r\n\t\t.build());\r\n \r\n tv_msg = (TextView) findViewById(R.id.TextView);\r\n ed_msg = (EditText) findViewById(R.id.EditText01);\r\n btn_send = (Button) findViewById(R.id.Button02);\r\n \r\n \r\n try {\r\n\t\t\tDatagramSocket =new DatagramSocket();\r\n\t\t} catch (SocketException 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 btn_send.setOnClickListener(new Button.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n // TODO Auto-generated method stub\r\n String msg = ed_msg.getText().toString();\r\n try {\r\n\t\t\t\t\tsend(HOST, PORT, msg.getBytes());\r\n\t\t\t\t\t\r\n\t \tmHandler.sendMessage(mHandler.obtainMessage()); \r\n\t \tcontent =HOST +\":\"+ msg +\"\\n\";\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n }\r\n });\r\n }", "public void send(byte[] data) throws IOException {\n dataOutput.write(data);\n dataOutput.flush();\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tLog.v(TAG,\"connect to server...\");\n\t\t\t\tsocket=new Socket(\"140.116.246.200\",4000+id);\n\t\t\t\tout=socket.getOutputStream();\n\t\t\t\tin=socket.getInputStream();\n\t\t\t\tLog.v(TAG,\"connect!!\");\n\t\t\t\n\t\t\t\tsendData(\"ask#\");\n\t\t\t\tUIHr.post(refreshUI); \t\n\t\t\t\tresult=new Integer(readData());\n\t\t\t\tUIHr.post(refreshUI); \t\t\n\t\t\t\tsendData(\"over#\");\n\t\t\t\tsocket.close();\n\t\t\t} catch (UnknownHostException e) {e.printStackTrace();} \n\t\t\tcatch (IOException e) {e.printStackTrace();}\n\t\t}", "void send();", "@Override\n public void run() {\n if (this.clientInterfaceTCP.getConnected())\n this.clientInterfaceTCP.sendString(this.messageToSend);\n }", "public void send(byte[] bytes)\r\n\t{\r\n\t\t// TODO: So, we should put those bytes in a queue for a worker thread to send, because\r\n\t\t// everything downstream blocks on send.\r\n\t\t// So, the worker thread does the touchy business of sending and receiving and updating\r\n\t\t// the screen buffer. The UI thread redraws the screen when the buffer is dirty.\r\n\t\ttry {\r\n\t\t\tremoteOut_.write(bytes);\r\n\t\t} catch (IOException e)\r\n\t\t{\r\n\t\t\tlistener_.onSessionEvent(StatusListener.COULD_NOT_SEND,\r\n\t\t\t\t\t\"There was an error sending data.\", null, 0);\r\n\t\t}\r\n\t\t\r\n\t}", "public void sendBluetooth()\n {\n Intent startBluetooth = new Intent(this, Main2Activity.class);\n startActivity(startBluetooth);\n }", "public void sendToWard(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "protected void sendDataToRobot(byte[] data) {\n\t\thandler.sendData(data);\n\t}", "public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void run()\r\n\t\t{\n\t\t\ttheVMKClient.sendMessageToServer(m);\r\n\t\t}", "@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }", "@Override\n\tpublic void sendData(int type, byte[] data) {\n\t\t\n\t}", "public void send() {\n\t}", "private void sendMessage() {\n if (mRecipientAddress == null) {\n if (mDevices.getSelectedItem() == null) {\n mStatusText.append(\"Please select a device to message.\\n\");\n return;\n }\n if (mMessage.getText() == null || mMessage.getText().toString().equals(\"\")) {\n mStatusText.append(\"Please enter a message to send.\\n\");\n return;\n }\n }\n WifiDirectClientAsyncTask t = new WifiDirectClientAsyncTask(this, mMessage.getText().toString());\n if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n t.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n else\n t.execute();\n }", "private void sendAnswer(SensorData sensorData, String newValueOfProduct) throws IOException{\n\n /** The IP address and port from client . */\n InetAddress address = sensorData.getAddress();\n int port = sensorData.getPortNummber();\n //increment for check\n String message = newValueOfProduct;\n data = message.getBytes();\n DatagramPacket sendPacket = new DatagramPacket(data, data.length, address, port);\n udpSocket.send(sendPacket);\n }", "public synchronized void send() {\n if (AudioUtil.getIs()) {\n LogUtil.d(Tag, \"VR stop\");\n this.mPCMPackageHead.m4053c(CommonParams.bB);\n this.mPCMPackageHead.m4047a(0);\n writeVR(this.mPCMPackageHead.m4048a(), this.mPCMPackageHead.m4049b());\n }\n }", "public void sendMessageToMobile(final String str) {\r\n\r\n\t\tnew Thread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPrintWriter out = new PrintWriter(new OutputStreamWriter(s.getOutputStream(), \"utf-8\"), true);\r\n\r\n\t\t\t\t\tif (!str.isEmpty()){\r\n\t\t\t\t\t\tout.println(str);\r\n\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\tSystem.out.println(\"sent to mobile: \"+ str);\r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t}).start();\r\n\t}", "private void ipcSend(JSONObject data) {\n JSONObject json = data;\n try {\n json.put(IPC_MESSAGE_APPID, mAppId);\n\n if (mIpcChannel != null) {\n log.e(\"ipcSend:[\" + json.toString() + \"]\");\n\n mIpcChannel.send(json.toString());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public abstract void send(String data, String toAddress);", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\n\t\t\t\tURL url = new URL(\"http://ecshopxax.sinaapp.com/js/index.js\");\n\t\t\t\tURLConnection connection = url.openConnection();\n\t\t\t\tInputStream is = connection.getInputStream();\n\t\t\t\tbyte[] bs = new byte[1024];\n\t\t\t\tint len = 0;\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\twhile ((len = is.read(bs)) != -1) {\n\t\t\t\t\tString str = new String(bs, 0, len);\n\t\t\t\t\tsb.append(str);\n\t\t\t\t}\n\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = 0x15;\n\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.clear();\n\n\t\t\t\t// bundle.putString(\"recv_server\", new String(buffer));\n\t\t\t\tbundle.putString(\"text1\", sb.toString());\n\n\t\t\t\tmsg.setData(bundle);\n\n\t\t\t\tmyHandler.sendMessage(msg);\n\n\t\t\t\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Override\n public void onClick(View v) {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n clientThread.sendMessage(\"Que\");\n }\n });\n\n\n// new Thread(new ClientSend()).start();\n\n }", "@Override\n\tpublic void sendData(CharSequence data) {\n\t\t\n\t}", "public void send(DataPacket packet){\n if(deviceDestination != null){\n deviceDestination.receive(packet, portDestination);\n }\n }", "public void communicate() {\n\t\tconnect();\n\t\ttry {\n\t\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\tout = new PrintWriter((socket.getOutputStream()), true);\n\t\t\tobjOut = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tobjIn = new ObjectInputStream(socket.getInputStream());\n\t\t\twhile (!socket.isClosed()) {}\t// Doesn't need to do anything besides stay awake, GUI handles all in/outputs\n\t\t\tin.close();\n\t\t\tout.close();\n\t\t\tobjIn.close();\n\t\t\tobjOut.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Sending error: \" + e.getMessage());\n\t\t}\t\t\n\t}", "public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n\n // Share the sent message with the UI activity.\n /*Message writtenMsg = handler.obtainMessage(\n MessageConstants.MESSAGE_WRITE, -1, -1, mmBuffer);\n writtenMsg.sendToTarget();*/\n } catch (IOException e) {\n Log.e(TAG, \"Error occurred when sending data\", e);\n\n // Send a failure message back to the activity.\n /*Message writeErrorMsg =\n handler.obtainMessage(MessageConstants.MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(\"toast\",\n \"Couldn't send data to the other device\");\n writeErrorMsg.setData(bundle);\n handler.sendMessage(writeErrorMsg);*/\n }\n }", "private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }", "private void sendReceiveRes(){\n\t}", "public void communicate() {\r\n System.out.println(\"This iPhone is making a phone call.\");\r\n }", "public void sendToActivity(String message){\n //In questo metodo \"avviso\" l'app che è arrivato un nuovo dato dal raspberry.\n\n Intent intent = new Intent(\"NOTIFY_ACTIVITY\");\n\n if(message != null){\n intent.putExtra(\"CURRENT_ACTIVITY\",message);\n }\n\n //invio messaggio tramite broadcaster\n broadcast.sendBroadcast(intent);\n\n }", "@Override\r\n public void onClick(View v)\r\n {\n if (\"\" != mSendOnBoardEdit.getText().toString()){\r\n DJIDrone.getDjiMainController().sendDataToExternalDevice(mSendOnBoardEdit.getText().toString().getBytes(),new DJIExecuteResultCallback(){\r\n\r\n @Override\r\n public void onResult(DJIError result)\r\n {\r\n // TODO Auto-generated method stub\r\n \r\n }\r\n \r\n });\r\n }\r\n }", "public void startData()\n\t\t\t{\n\t\t\t\tsend(\"<data>\", false);\n\t\t\t}", "private void SendCommandOrKeys(int viewID, String data)\n\t{\n\t\tif (mCommandManager == null)\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tif (viewID == VIEW_ID_COMMAND)\n\t\t{\n // In put case, select file\n if (data.contains(\"!put\"))\n {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"*/*\");\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n mPutCommand = data;\n\n try\n {\n startActivityForResult(Intent.createChooser(intent, \n\t\t\t\t\t\t\"Select a File\"), CHOOSE_FILE_TO_UPLOAD);\n } catch (android.content.ActivityNotFoundException ex)\n {\n ex.printStackTrace();\n }\n\n return ;\n }\n\n\t\t\tmCommandManager.SendCommand(data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tAddMsgToKeyView(viewID, \"remote> \" + data + \"\\n\");\n\n if (data.equals(\"!autotest\"))\n {\n // Run android autotest\n AddMsgToKeyView(viewID, \"remote> wait until the test ends\\n\");\n RunAutoTest();\n }\n else if (data.equals(\"!pintest\"))\n {\n // Run android autotest\n AddMsgToKeyView(viewID, \"remote> wait until the test ends\\n\");\n RunPinTest();\n }\n else if (data.equals(\"!stoptest\"))\n {\n mStopTest = true;\n }\n else\n {\n mCommandManager.SendKey(data);\n }\n\t\t}\t\t\n\t}", "private void sendDataToServer() {\n\t\tcommentView = (EditText) findViewById(R.id.editComment);\n\t\tString commentToBePosted = commentView.getText().toString();\n\n\t\tboolean valid;\n\t\tvalid = checkValidityOfComment(commentToBePosted);\n\n\t\tif (valid) {\n\t\t\t// Intent intent = getIntent();\n\t\t\tPostCommentTask postComment = new PostCommentTask();\n\t\t\tpostComment.execute(commentToBePosted);\n\t\t}\n\t}", "public void sendData(String s1){\n mTapTextView = findViewById(R.id.tap_text);\n mTapTextView.setText(s1);\n }", "@JavascriptInterface\n public void sendCommand(String array) {\n Log.d(TAG, \"sendCommand: \" + array);\n if (!connected) {\n Log.e(TAG, \"Attempting to send M2 a command while its not connected: \" + array);\n return;\n }\n try {\n JSONArray json = new JSONArray(array);\n byte[] data = new byte[json.length()];\n for (int i = 0; i < data.length; i++) {\n data[i] = (byte) json.getInt(i);\n }\n EventBus.getDefault().post(new M2Command(data));\n }\n catch (JSONException e) {\n Log.e(TAG, \"Invalid command: \" + array);\n }\n }", "private void sendData(SensorData sensorData) {\n EventMessage message = new EventMessage(EventMessage.EventType.RECEIVED_RAW_DATA);\n message.setSensorData(sensorData);\n EventBus.getDefault().post(message);\n }", "public void saveWalk() {\n try {\n long id = this.currentRoute.getId();\n DatabaseHandler db = new DatabaseHandler(this.getApplicationContext());\n currentRoute.setWaypoints(db.getAllWaypoints(id));\n\n HTTPPostSender postSender = new HTTPPostSender();\n postSender.buildString(currentRoute, this.getContentResolver());\n postSender.cm = (ConnectivityManager) getSystemService(this.getApplicationContext().CONNECTIVITY_SERVICE);\n\n\n\n\n if(isOnline()) {\n postSender.execute(this.currentRoute);\n Toast.makeText(this.getApplicationContext(),\"Walk successfully sent to server\",Toast.LENGTH_LONG).show();\n\n } else {\n //oh god why..\n Toast.makeText(this.getApplicationContext(),\"Something bad happened\",Toast.LENGTH_LONG).show();\n }\n } catch(Exception e) {\n Toast.makeText(this.getApplicationContext(),e.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "public void clickButton(View v) {\n\n // Get the text we want to send.\n EditText et = (EditText) findViewById(R.id.editText);\n String msg = et.getText().toString();\n\n // Then, we start the call.\n PostMessageSpec myCallSpec = new PostMessageSpec();\n\n\n myCallSpec.url = SERVER_URL_PREFIX + \"post_msg.json\";\n myCallSpec.context = ChatActivity.this;\n // Let's add the parameters.\n HashMap<String,String> m = new HashMap<String,String>();\n m.put(\"app_id\", MY_APP_ID);\n m.put(\"msg\", msg);\n myCallSpec.setParams(m);\n\n startSpinner();\n\n // Actual server call.\n if (uploader != null) {\n // There was already an upload in progress.\n uploader.cancel(true);\n }\n uploader = new ServerCall();\n //startSpinner();\n uploader.execute(myCallSpec);\n }", "private void runTcpClient() {\n\t\t\n\t\tint TCP_SERVER_PORT=5050;\n\n\t try {\n\n\t Socket s = new Socket(\"192.168.0.255\", TCP_SERVER_PORT);\n\n\t BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));\n\n\t BufferedWriter out = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));\n\n\t //send output msg\n\n\t String outMsg = \"TCP connecting to \" + TCP_SERVER_PORT + System.getProperty(\"line.separator\"); \n\n\t out.write(outMsg);\n\n\t out.flush();\n\n\t Log.i(\"TcpClient\", \"sent: \" + outMsg);\n\n\t //accept server response\n\n\t String inMsg = in.readLine() + System.getProperty(\"line.separator\");\n\t \n\t textView.append(inMsg);\n\n\t Log.i(\"TcpClient\", \"received: \" + inMsg);\n\n\t //close connection\n\n\t s.close();\n\n\t } catch (UnknownHostException e) {\n\n\t e.printStackTrace();\n\n\t } catch (IOException e) {\n\n\t e.printStackTrace();\n\n\t } \n\n\t}", "public void sendData() {\r\n\t\t// HoverBot specific implementation of sendData method\r\n\t\tSystem.out.println(\"Sending location information...\");\r\n\t}", "private void sendFitDataSync(final Context context){\n final Date date = new Date();\n HandlerThread ht = new HandlerThread(\"HeartThread\", android.os.Process.THREAD_PRIORITY_BACKGROUND);\n ht.start();\n Handler h = new Handler(ht.getLooper());\n h.post(new Runnable() {\n @Override\n public void run() {\n GoogleApiClient mGoogleAPIClient = new GoogleApiClient.Builder(context)\n .addConnectionCallbacks(new GoogleApiClient.ConnectionCallbacks() {\n @Override\n public void onConnected(Bundle bundle) {\n Log.d(\"Heart\", \"Connected\");\n }\n\n @Override\n public void onConnectionSuspended(int i) {\n\n }\n })\n .addApi(Wearable.API).build();\n mGoogleAPIClient.blockingConnect(10, TimeUnit.SECONDS);\n /* Sync msg & time to handheld */\n WearableSendSync.sendSyncToDevice(mGoogleAPIClient, WearableSendSync.START_ACTV_SYNC, date);\n WearableSendSync.sendSyncToDevice(mGoogleAPIClient, WearableSendSync.START_HIST_SYNC, date);\n WearableSendSync.sendDailyNotifFileWrapper(mGoogleAPIClient);\n\n }\n });\n }", "private void sendData() {\n String Own_Easting = OEast.getText().toString();\n String Own_Northing = ONorth.getText().toString();\n String En_Easting = EEast.getText().toString();\n String En_nothing = ENorth.getText().toString();\n String OTbg = OTBG.getText().toString();\n String rt=Rt.getText().toString();\n String add=Add.getText().toString();\n\n DB bg = new DB(this);\n bg.execute(Own_Easting,Own_Northing,En_Easting,En_nothing\n ,OTbg,rt,add);\n\n }", "void sendData() throws IOException\n\t{\n\t}", "public void sendData(String mssg, int destinationPort){\r\n\r\n\t\t\t //Creates a new socket. This will be used for sending and receiving packets\r\n\t\t\t//\t\t\tsocket.setSoTimeout(5000); //Sets the timeout value to 5 seconds. If 5 seconds elapses and no packet arrives on receive, an exception will be thrown\t\r\n\t\tInetAddress local = null;\r\n\t\t\ttry {\r\n\t\t\t\tlocal = InetAddress.getLocalHost();\r\n\t\t\t} catch (UnknownHostException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t} //Gets the local address of the computer \r\n\t\t\t\r\n\t\t\t\tbyte[] dataArray = mssg.getBytes();\r\n\r\n\t\t\t\tDatagramPacket packetToSend = new DatagramPacket(dataArray, dataArray.length, local, destinationPort); //Creates a packet from the dataArray, to be sent to the intermediate host\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsndSocket.send(packetToSend);\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} \r\n\t}", "public void sendOtp(String medium) {\n\r\n }", "@Override\n\t\tpublic void run() {\n\t\t\tLooper.prepare();\n\n\t\t\tMap<String, String> param = new HashMap<String, String>();// 组装请求参数\n\t\t\tparam.put(\"idCardName\", \"卢波\");\n\t\t\tparam.put(\"IDNumber\", \"37142519930502763X\");\n\t\t\tparam.put(\"bankNumber\", \"6227002271530099694\");\n\t\t\tparam.put(\"companyName\", \"山东题开店收银台\");\n\t\t\tparam.put(\"mobilePhone\", \"18315913992\");\n\t\t\tparam.put(\"accounttype\", \"1\");\n\t\t\tparam.put(\"bankcardtype\", \"1\");\n\t\t\tparam.put(\"storeAddress\", \"山东省济南市天桥区时代总部基地4期H3楼201\");\n\t\t\tparam.put(\"uid\", \"3617\");\n\n\t\t\tHttp_PushTask HP = new Http_PushTask();\n\t\t\ttry {\n\t\t\t\tString result = HP.execute(CryptTool.transMapToString(param),\n\t\t\t\t\t\t\"http://cnyssj.com/dfweb_test/rbkjsame.do\").get();\n\t\t\t\tif (!TextUtils.isEmpty(result)) {\n\t\t\t\t\tJSONObject js = new JSONObject(result);\n\t\t\t\t\tif (js.getBoolean(\"result\")) {\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString message = js.getString(\"message\");\n\t\t\t\t\t}\n\t\t\t\t}\n\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} catch (ExecutionException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void send(){ \n\t\tserverAddress=tfTxtIpServer.getText();\n\t\tserverPort=\"3232\";\n\t\ttext=tfTxtMsg.getText();\n try{\n\t\t\t// get the \"registry\"\n registry=LocateRegistry.getRegistry(\n serverAddress,\n (new Integer(serverPort)).intValue()\n );\n\t\t // look up the remote object\n rmiServer=(ReceiveMessageInterface)(registry.lookup(\"rmiServer\"));\n\t\t\t// call the remote method\n rmiServer.receiveMessage(text);\n }\n catch(RemoteException e){\n e.printStackTrace();\n }\n catch(NotBoundException e){\n e.printStackTrace();\n } \n }", "public void sendData(String data, int numCapteur);", "private void sendData(String data) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Sending data: '\" + data + \"'\");\n\n\t\t\t\t// open the streams and send the \"y\" character\n\t\t\t\toutput = serialPort.getOutputStream();\n\t\t\t\toutput.write(data.getBytes());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}", "@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)\n public void run() {\n\n mBluetoothAdapter.cancelDiscovery();\n Log.i(\"Client\", \"trying to connect to server\");\n try {\n mSocket.connect();\n Log.i(\"Client\", \"connected\");\n\n isConnected = mSocket.isConnected();\n\n } catch (IOException connectException) {\n Log.i(\"Client\", \"fail io connect\");\n isConnected = false;\n\n try {\n mSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return;\n }\n //manageConnectedSocket(mSocket);\n if (isConnected()) {\n mTransferThread = new TransferThread(mSocket);\n mTransferThread.start();\n }else{\n makeToast(\"Please try connecting again\",Toast.LENGTH_LONG);\n }\n }" ]
[ "0.724187", "0.69892466", "0.6982699", "0.69194514", "0.6822423", "0.68183297", "0.67608047", "0.67178494", "0.6659885", "0.66434413", "0.6640375", "0.6618515", "0.66127104", "0.6571657", "0.65683883", "0.6543039", "0.6534829", "0.6496969", "0.64779055", "0.6437648", "0.642331", "0.6358601", "0.6355046", "0.6348414", "0.6322307", "0.63194925", "0.63182455", "0.62759084", "0.6273235", "0.6251373", "0.6227772", "0.6225226", "0.6215639", "0.6204408", "0.6203578", "0.6203506", "0.61842686", "0.6170214", "0.61627406", "0.61580473", "0.6150657", "0.61500734", "0.61493164", "0.6142716", "0.6136992", "0.6126334", "0.6122754", "0.6114968", "0.6111711", "0.6103466", "0.6101294", "0.60950166", "0.6078823", "0.60768145", "0.6067886", "0.6067064", "0.60659057", "0.60609114", "0.60561556", "0.60547286", "0.60463524", "0.60426366", "0.60405993", "0.6024347", "0.60204536", "0.6013591", "0.6012364", "0.6007464", "0.60073555", "0.5999326", "0.5998566", "0.5997059", "0.59937406", "0.59880584", "0.59876406", "0.5987129", "0.5985208", "0.59847516", "0.5984493", "0.59763837", "0.59713256", "0.59641135", "0.59616876", "0.59556824", "0.594606", "0.59424466", "0.59395725", "0.5937984", "0.592645", "0.5922471", "0.59188396", "0.59130085", "0.59091985", "0.5904751", "0.5902901", "0.5894068", "0.5891635", "0.586828", "0.5868223", "0.58475965", "0.58408135" ]
0.0
-1
Returns the next byte in the buffer as an int (0255);
public int read() { if (bufferIndex == bufferLast) return -1; synchronized (buffer) { int outgoing = buffer[bufferIndex++] & 0xff; if (bufferIndex == bufferLast) { // rewind bufferIndex = 0; bufferLast = 0; } return outgoing; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int readByte() {\n return src[srcPos++] & 0xFF;\n }", "private int nextWebSocketByte() throws IOException {\n while (payloadLength == 0L) {\n nextWebSocketFrame();\n if (isClosed() || isFailed()) {\n return EOF;\n }\n }\n int data = inputStream.read() ^ maskingBytes[maskingIndex];\n payloadLength--;\n maskingIndex++;\n maskingIndex &= MASK_MASKING_INDEX;\n return data;\n }", "private int byteToInt(byte b) { int i = b & 0xFF; return i; }", "private byte nextByte(ByteBuffer inputBuffer) throws IOException {\n getAtLeastBytes(inputBuffer, 1);\n return inputBuffer.get();\n }", "byte readByte();", "private int getInt(byte [] buffer, int offset) {\r\n\t\tint result = buffer[offset++] << 24;\r\n\t\tresult |= (buffer[offset++] << 16) & 0x00FF0000;\r\n\t\tresult |= (buffer[offset++] << 8) & 0x0000FF00;\r\n\t\tresult |= buffer[offset] & 0x000000FF;\r\n\r\n\t\treturn result;\r\n\t}", "public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }", "public int readByte() {\n try {\n return in.read();\n } catch (IOException e) {\n print(\"Error reading byte from \" + portName);\n }\n return -1;\n }", "public final int getByte() throws IOException {\r\n b3 = 0;\r\n\r\n b3 = (tagBuffer[bPtr] & 0xff);\r\n bPtr += 1;\r\n\r\n return b3;\r\n }", "public static int byteBufferToInt(ByteBuffer byteBuffer,int off){\n byte[] bytes = new byte[byteBuffer.limit()];\n for(int i=0;i<byteBuffer.limit();i++){\n bytes[i] = byteBuffer.get(i);\n }\n\n int b0 = bytes[off] & 0xFF;\n int b1 = bytes[off + 1] & 0xFF;\n int b2 = bytes[off + 2] & 0xFF;\n int b3 = bytes[off + 3] & 0xFF;\n return (b0 << 24) | (b1 << 16) | (b2 << 8) | b3;\n }", "public int read ()\n {\n return (_buffer.remaining() > 0) ? (_buffer.get() & 0xFF) : -1;\n }", "byte peekByte() throws IOException;", "public static int getNextChar()\r\n\r\n\t// Returns the next character on the input stream. If the end of file is reached, -1 is returned.\r\n\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn inStream.read();\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "public final int read() {\r\n \r\n if (cbyte == size) {\r\n return -1;\r\n }\r\n \r\n // Otherwise, the byte under the head at \"cbyte\" can be read.\r\n \r\n if (bytenum == BYTES_IN_ELEMENT) {\r\n // Read next byte\r\n offset++;\r\n elem = data[offset];\r\n bytenum = 0;\r\n }\r\n \r\n int rval = 0;\r\n rval = elem & 0xff;\r\n \r\n // increase byte position\r\n elem = elem >>> 8; // unsigned SHR\r\n bytenum++;\r\n cbyte++;\r\n \r\n return rval;\r\n }", "private int readbit(ByteBuffer buffer) {\n if (numberLeftInBuffer == 0) {\n loadBuffer(buffer);\n numberLeftInBuffer = 8;\n }\n int top = ((byteBuffer >> 7) & 1);\n byteBuffer <<= 1;\n numberLeftInBuffer--;\n return top;\n }", "public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }", "public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }", "@Test\n void testReadIntPacked() throws IOException {\n byte[] input = new byte[]{(byte) 0x35, (byte) 0x54};\n r = new BitReader(input);\n assertEquals(5402, r.readIntPacked());\n }", "@Override\n\tpublic int ReadByte()\n\t{\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] oneByteBuffer = new byte[1];\n\t\tbyte[] oneByteBuffer = new byte[1];\n\t\tint num = Read(oneByteBuffer, 0, 1);\n\t\tif (num <= 0)\n\t\t{\n\t\t\t// return -1 to indicate that no byte was read.\n\t\t\treturn -1;\n\t\t}\n\t\treturn oneByteBuffer[0];\n\t}", "public int readByte() {\n waitForData();\n try {\n return m_DataInputStream.readByte();\n }\n catch (IOException e) {\n return 256;\n }\n }", "public byte NEXT() {\r\n\t\t//log(\"Frame.NEXT mp=\"+mp);\r\n\t\tint addr=base+(mp++);\r\n\t\tbyte b=heap.readByte(addr);\r\n\t\t//log(\"Frame.NEXT addr=\"+addr+\"; byte=\"+b+\" \"+hexByte(b));\r\n\t\treturn b;\r\n\t}", "public static int readBytesForList(byte[] byteBuffer) {\n List<Integer> message = new ArrayList<>();\n String guess = \"\";\n for (int i = 0; i < byteBuffer.length; i++) {\n guess += byteBuffer[i];\n }\n int decoded = Integer.parseInt(guess);\n return decoded;\n }", "@Override\n public int readUnsignedByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return randomAccessRead.read();\n }", "public byte readByte() {\n return ((byte) readLong());\n }", "public static int toInt(byte b) {\n return b & 0xFF;\n }", "private int readCode() throws IOException {\n // As soon as all the data in buf has been read\n // (when bufPos == 5) read in another four bytes.\n if (bufPos == 5) {\n int b1 = in.read();\n int b2 = in.read();\n int b3 = in.read();\n int b4 = in.read();\n\n // make sure none of the bytes signify the\n // end of the data in the stream\n if ((b1 | b2 | b3 | b4) < 0) {\n throw new EOFException();\n }\n // Assign each group of 6 bits to an element of\n // buf\n int pack = (b1 << 24) | (b2 << 16) | (b3 << 8) | b4;\n buf[0] = (pack >>> 24) & 0x3F;\n buf[1] = (pack >>> 18) & 0x3F;\n buf[2] = (pack >>> 12) & 0x3F;\n buf[3] = (pack >>> 6) & 0x3F;\n buf[4] = (pack >>> 0) & 0x3F;\n bufPos = 0;\n }\n return buf[bufPos++];\n }", "public int readUnsignedByte() throws IOException {\n\t\treturn read() | 0x00ff;\n\t}", "abstract int readInt(int start);", "private static int batoi(byte[] inp) {\n int len = inp.length>4?4:inp.length;\n int total = 0;\n for (int i = 0; i < len; i++) {\n total += (inp[i]<0?256+inp[i]:(int)inp[i]) << (((len - 1) - i) * 8);\n }\n return total;\n }", "private int readFdocaOneByte() {\n checkForSplitRowAndComplete(1);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readUnsignedByte();\n }", "public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "byte mo25264b(int i);", "private static int readInt(@Nullable byte[] data) {\n if (data == null || data.length == 0) {\n return 0;\n }\n int value = 0;\n for (byte b : data) {\n value <<= 8;\n value += (0xff & b);\n }\n return value;\n }", "public int getInt1() {\n\t\tfinal byte b1 = payload.get();\n\t\tfinal byte b2 = payload.get();\n\t\tfinal byte b3 = payload.get();\n\t\tfinal byte b4 = payload.get();\n\t\treturn b3 << 24 & 0xFF | b4 << 16 & 0xFF | b1 << 8 & 0xFF | b2 & 0xFF;\n\t}", "static int m60359a(BufferedSource bufferedSource) throws IOException {\n return (bufferedSource.readByte() & 255) | (((bufferedSource.readByte() & 255) << 16) | ((bufferedSource.readByte() & 255) << 8));\n }", "private static byte getNext() {\n return (byte)Tool.getRandomlyFromRange(Byte.MIN_VALUE, Byte.MAX_VALUE);\n }", "@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}", "public abstract int parse(byte bc[], int index);", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "public byte read(int param1) {\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n int int0 = JavaCharStream.hexval('b');\n assertEquals(11, int0);\n }", "private static final int decodeBEInt(byte[] paramArrayOfByte, int paramInt)\r\n/* 145: */ {\r\n/* 146:225 */ return (paramArrayOfByte[paramInt] & 0xFF) << 24 | (paramArrayOfByte[(paramInt + 1)] & 0xFF) << 16 | (paramArrayOfByte[(paramInt + 2)] & 0xFF) << 8 | paramArrayOfByte[(paramInt + 3)] & 0xFF;\r\n/* 147: */ }", "public int toByte(){\n return toByte(0);\n }", "public int read()\n throws IOException\n {\n if ( position == this.buffer.length() )\n {\n return -1;\n }\n\n return this.buffer.charAt( this.position++ );\n }", "short getP( byte[] buffer, short offset );", "public abstract byte read_octet();", "public int getUByte() { return bb.get() & 0xff; }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n int int0 = JavaCharStream.hexval('B');\n assertEquals(11, int0);\n }", "public int getInt2() {\n\t\tfinal int b1 = payload.get() & 0xFF;\n\t\tfinal int b2 = payload.get() & 0xFF;\n\t\tfinal int b3 = payload.get() & 0xFF;\n\t\tfinal int b4 = payload.get() & 0xFF;\n\t\treturn b2 << 24 & 0xFF | b1 << 16 & 0xFF | b4 << 8 & 0xFF | b3 & 0xFF;\n\t}", "int decodeInt();", "public int readInt() throws IOException;", "public byte get() throws TLVEncodingException {\r\n\t\tif (cursor >= limit)\r\n\t\t\tthrow new TLVEncodingException(\"End of buffer\");\r\n\r\n\t\treturn buffer[cursor++];\r\n\t}", "public int readRaw()\r\n {\r\n \tbyte[] buf = new byte[1];\r\n \treadRaw(buf, 0, 1);\r\n \treturn buf[0] & 0xFF;\r\n }", "public int pos() {\r\n return cbyte;\r\n }", "@Override\r\n\tpublic byte getByte(int pos) {\n\t\treturn buffer.get(pos);\r\n\t}", "public static int byteArrayToInt(byte[] ba, int offset) {\n int value = 0;\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n value = (value << 8) | (ba[offset++] & 0xFF);\n return value;\n }", "public abstract int decode(ByteBuffer buffer, int offset);", "public int get_reading() {\n return (int)getUIntBEElement(offsetBits_reading(), 16);\n }", "public static int getInt(byte bc[], int index) {\n int i, bhh, bhl, blh, bll;\n bhh = (((bc[index])) << 24) & 0xff000000;\n bhl = (((bc[index + 1])) << 16) & 0xff0000;\n blh = (((bc[index + 2])) << 8) & 0xff00;\n bll = ((bc[index + 3])) & 0xff;\n i = bhh | bhl | blh | bll;\n return i;\n }", "int next(int bits);", "int readInt() throws IOException;", "@Override\n public int read(byte[] b) throws IOException {\n int len = ((int) Math.ceil((b.length-24) / 32.0))*4+24;\n byte[] comp = new byte[len];\n in.read(comp);\n in.close();\n\n //copy the first 24 cells to b\n for (int i=0; i<24; i++)\n {\n b[i] = comp[i];\n }\n\n //4 cells represents byte --> int --> binary\n byte[] temp = new byte[4];\n int resInt;\n String resStr;\n int dif = b.length-24;\n int index = 0;\n for (int i=24; i<comp.length; i=i+4)\n {\n //byte --> int\n temp[0] = comp[i];\n temp[1] = comp[i+1];\n temp[2] = comp[i+2];\n temp[3] = comp[i+3];\n ByteBuffer byteBuffer = ByteBuffer.wrap(temp);\n resInt = byteBuffer.getInt();\n //int --> binary (string)\n resStr = Integer.toBinaryString(resInt);\n //checks the length of the string\n if (dif >=32 ) {\n dif = dif - 32;\n if (resStr.length()<32)\n resStr = addZero (resStr, 32-resStr.length());\n }\n else\n {\n if (resStr.length()<dif)\n resStr = addZero (resStr, dif-resStr.length());\n }\n //more converts\n for (int j=0; j<resStr.length(); j++)\n {\n String tempStr = \"\"+resStr.charAt(j); //each char --> string\n int digit = Integer.parseInt(tempStr); //string (with one char) --> int\n b[index+24] = (byte) digit; //int --> byte\n index++;\n }\n }\n return 0;\n }", "public int getInt(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn bytes[index] & 0xFF;\n\t}", "public byte get_seqnum() {\n return (byte)getSIntElement(offsetBits_seqnum(), 8);\n }", "abstract public int getFromU16SingleLead(char c);", "int readInt();", "public static byte GetByte()\n\t{\n\t Random rand = new Random();\n\t return (byte)rand.nextInt(127);\n\t}", "public int read() throws IOException {\n ensureOpen();\n return read(singleByteBuf, 0, 1) == -1 ? -1 : Byte.toUnsignedInt(singleByteBuf[0]);\n }", "int read(long pos, byte[] buf)throws IOException;", "private static int convertByteToPositiveInt(byte value) {\n return value >= 0 ? value : value + INTEGER_COMPLEMENT;\n }", "private int getChar() {\n\n\t\ttry {\n\t\t\treturn stream.read();\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.print(e.getMessage());\n\t\t\tSystem.err.println(\"IOException occured in Lexer::getChar()\");\n\t\t\treturn -1;\n\t\t}\n\n\t}", "public int readInt();", "private int read_int(RandomAccessFile file) throws IOException {\n int number = 0;\n for (int i = 0; i < 4; ++i) {\n number += (file.readByte() & 0xFF) << (8 * i);\n }\n return number;\n }", "int readS16BE()\n throws IOException, EOFException;", "private int getNextChar() throws IOException{\n\t\tpos++;\n\t\tsourceReader.mark(20);\n\t\treturn sourceReader.read();\n\t}", "public static int readBytes(byte[] message) {\n byte[] byteBuffer = new byte[4];\n\n for (int i = 0; i < byteBuffer.length; i++) {\n byteBuffer[i] = (byte) 0xBB;\n }\n\n String guess = \"\";\n for (int i = 0; i < byteBuffer.length; i++) {\n //formats the byte array into hex format string\n guess += String.format(\"%02x\", message[i]);\n }\n guess = guess.replace(\"0\", \"\");\n return (!guess.isEmpty() ? Integer.parseInt(guess) : -2);\n }", "public byte readByte() throws IOException {\n return in.readByte();\n }", "private int getNumberBufAsInt(ByteOrder byteOrder, int nrReadBytes,\n int firstBytePos) {\n\n int result = 0;\n int bytePortion = 0;\n for (int i = 0; i < nrReadBytes; i++) {\n bytePortion = 0xFF & (byteBuffer.get(firstBytePos++));\n\n if (byteOrder == ByteOrder.LittleEndian)\n // reshift bytes\n result = result | bytePortion << (i << 3);\n else\n result = bytePortion << ((nrReadBytes - i - 1) << 3) | result;\n }\n\n return result;\n }", "private int queryNumberChar() throws IOException {\n\t\tbrin.mark(2);\n\t\treturn brin.read();\n\t}", "@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }", "byte read()\n \tthrows IOException {\n \t//\n \t// Ensure that one byte can be read\n \tensureContinuousBlock(1);\n \t//\n \t// Simply return the byte\n \treturn _random[_o++];\n }", "byte mo30283c();", "@Override\n public int peekUnsignedByte(int offset) throws IOException\n {\n if (offset < 0)\n {\n throw new IOException(\"offset is negative\");\n }\n if (offset == 0)\n {\n return randomAccessRead.peek();\n }\n long currentPosition = randomAccessRead.getPosition();\n if (currentPosition + offset >= randomAccessRead.length())\n {\n throw new IOException(\"Offset position is out of range \" + (currentPosition + offset)\n + \" >= \" + randomAccessRead.length());\n }\n randomAccessRead.seek(currentPosition + offset);\n int peekValue = randomAccessRead.read();\n randomAccessRead.seek(currentPosition);\n return peekValue;\n }", "int ibrd (int ud, ByteBuffer buf, long cnt);", "public final int getUByte(int index) { return bb.get(index) & 0xff; }", "byte get(int index);", "@Override\n\tpublic int read() throws IOException {\n\t\tif (buf.isReadable()) {\n return buf.readByte() & 0xff;\n }\n return -1;\n\t}", "@Override\r\n\tpublic int getInt(int pos) {\n\t\treturn buffer.getInt(pos);\r\n\t}", "public static int\n gsmBcdByteToInt(byte b) {\n int ret = 0;\n\n // treat out-of-range BCD values as 0\n if ((b & 0xf0) <= 0x90) {\n ret = (b >> 4) & 0xf;\n }\n\n if ((b & 0x0f) <= 0x09) {\n ret += (b & 0xf) * 10;\n }\n\n return ret;\n }", "String intRead();", "public abstract int read_ulong();", "public int read(int i);", "@Test(timeout = 4000)\n public void test072() throws Throwable {\n int int0 = JavaCharStream.hexval('e');\n assertEquals(14, int0);\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 }", "public int read() throws IOException;", "private int readFdocaOneByte(int index) {\n\n checkForSplitRowAndComplete(1, index);\n //return dataBuffer_[position_++] & 0xff;\n return dataBuffer_.readByte();\n }", "int bv(byte b) {\n\t\tint out = b;\n\t\tif (b < 0)\n\t\t\tout = out + 256;\n\t\treturn out;\n\t}", "public int utf8ToInt(byte bval) {\n\t\t\treturn utf8_map[ByteUtil.byteToUint(bval)];\n\t\t}", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n int int0 = JavaCharStream.hexval('8');\n assertEquals(8, int0);\n }", "public byte[] readRawInt() throws IOException {\n byte[] bytes = new byte[5];\n bytes[0] = (byte) Type.INT.code;\n in.readFully(bytes, 1, 4);\n return bytes;\n }" ]
[ "0.683989", "0.6828225", "0.6799114", "0.679237", "0.64916", "0.64736503", "0.64399695", "0.63514537", "0.63146055", "0.62964606", "0.6234263", "0.6202177", "0.61856455", "0.6143603", "0.6118345", "0.6068073", "0.6068073", "0.6048023", "0.60448974", "0.6044538", "0.60395145", "0.60278916", "0.6023558", "0.6009876", "0.6009403", "0.59932643", "0.59878576", "0.59767604", "0.59743875", "0.5967206", "0.5961699", "0.59513915", "0.59448403", "0.5928611", "0.5917742", "0.5916208", "0.59147507", "0.5913063", "0.5898083", "0.5895241", "0.5883158", "0.58817005", "0.58555245", "0.58464265", "0.58420694", "0.5833004", "0.5825564", "0.5823828", "0.5820936", "0.5820009", "0.5806554", "0.58064085", "0.57928973", "0.57835853", "0.5781847", "0.5772155", "0.57534415", "0.57406497", "0.57383853", "0.5737575", "0.57361835", "0.5735066", "0.5734141", "0.5733321", "0.5724688", "0.57244843", "0.5716773", "0.570489", "0.56989425", "0.56975675", "0.56917393", "0.56888586", "0.56881166", "0.568721", "0.5682766", "0.56739694", "0.5672944", "0.56689465", "0.56560683", "0.56543183", "0.5650206", "0.5644036", "0.5636646", "0.56349736", "0.563314", "0.5629903", "0.5627896", "0.5625261", "0.5620179", "0.56181663", "0.5613298", "0.5607239", "0.56016797", "0.558634", "0.5585088", "0.5581094", "0.55796224", "0.55671823", "0.5566058", "0.55623" ]
0.6040161
20
Returns the whole byte buffer.
public byte[] readBytes() { if (bufferIndex == bufferLast) return null; synchronized (buffer) { int length = bufferLast - bufferIndex; byte outgoing[] = new byte[length]; System.arraycopy(buffer, bufferIndex, outgoing, 0, length); bufferIndex = 0; // rewind bufferLast = 0; return outgoing; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "byte [] getBuffer ();", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "public ByteBuffer buffer() { return bb; }", "public byte [] getBuf() {\r\n return bop.getBuf();\r\n }", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "public byte[] getBytes()\r\n {\r\n return buf;\r\n }", "public ByteBuffer getByteBuffer();", "public byte[] getBuffer () {\n\t\t\t\n\t\t\tif (index < 0)\n\t\t\t\treturn null;\n\n\t\t\tint len = index;\n\t\t\tbyte[] b = new byte[len+1];\n\t\t\tfor (int k=0; k <= len; k++)\n\t\t\t\tb[k] = buf[k];\n\n\t\t\treturn b;\n\t\t}", "public final ByteBuffer getBuffer() {\n return buf;\n }", "public ByteBuffer getBuffer() {\n return ((ByteBuffer)this.b.asReadOnlyBuffer().position(this.pointer == 0 ? this.b.limit() : this.pointer)).slice().order(this.b.order());\n }", "public ByteBuffer getBuffer() {\n return _buf;\n }", "public ByteBuffer getBuffer() {\n return buffer;\n }", "protected ByteBuffer getBuffer() {\n return buffer;\n }", "public Buffer getBuffer() {\n return buffer.getCopy();\n }", "CharArrayBuffer getBuffer()\n ;", "byte[] getBytes();", "byte[] getBytes();", "public byte[] getData() {\n try {\n int n2 = (int)this.len.get();\n if (this.buf == null) {\n return null;\n }\n if (n2 <= this.buf.length) return this.buf.get(n2);\n Log.w(TAG, \"getData: expected length (\" + n2 + \") > buffer length (\" + this.buf.length + \")\");\n throw new IllegalArgumentException(\"Blob:getData - size is larger than the real buffer length\");\n }\n catch (Exception exception) {\n Log.e(TAG, \"getData exception!\");\n exception.printStackTrace();\n return null;\n }\n }", "public byte[] getByteArray() {\n try {\n byte[] ret = (byte[]) byteBuffers.dequeue();\n num++;\n //Thread.dumpStack();\n if(ZenBuildProperties.dbgDataStructures){\n System.out.write('b');\n System.out.write('a');\n System.out.write('_');\n System.out.write('c');\n System.out.write('a');\n System.out.write('c');\n System.out.write('h');\n System.out.write('e');\n edu.uci.ece.zen.utils.Logger.writeln(num);\n }\n\n if (ret == null) {\n return (byte[]) imm.newArray(byte.class, 1024);\n } else {\n return ret;\n }\n } catch (Exception e) {\n ZenProperties.logger.log(Logger.FATAL, getClass(), \"getByteArray\", e);\n System.exit(-1);\n }\n return null;\n }", "public static byte[] getAPDUBuffer() {\n return getAPDUBuffer(currentTI.getAPDUBuffer());\n }", "public char[] getResultBuffer() { return b; }", "public byte[] getAllBytes() {\n return nativeGetAllBytes(__nativePtr);\n }", "@Override\n public byte[] getBuffer() {\n return EMPTY_RESULT;\n }", "public final byte[] bytes() throws IOException {\n long contentLength = contentLength();\n if (contentLength <= 2147483647L) {\n C3580e source = source();\n try {\n byte[] G = source.mo19680G();\n C3500c.m11649a((Closeable) source);\n if (contentLength == -1 || contentLength == ((long) G.length)) {\n return G;\n }\n throw new IOException(\"Content-Length (\" + contentLength + \") and stream length (\" + G.length + \") disagree\");\n } catch (Throwable th) {\n C3500c.m11649a((Closeable) source);\n throw th;\n }\n } else {\n throw new IOException(\"Cannot buffer entire body for content length: \" + contentLength);\n }\n }", "public byte[] toByteArray() {\n byte[] array = new byte[count];\n System.arraycopy(buf, 0, array, 0, count);\n return array;\n }", "public ByteBuffer getData() {\r\n\t\tByteBuffer buffer = null;\r\n\t\tbuffer = new ByteBuffer(messageData);\r\n\t\treturn buffer;\r\n\t}", "public byte[] getBytes() {\r\n\r\n if (bytes == null) {\r\n bytes = new byte[getLength()];\r\n }\r\n\r\n return bytes;\r\n }", "public com.google.protobuf.ByteString\n getGetBytes() {\n return instance.getGetBytes();\n }", "public byte[] getBytes() {\n return baos.toByteArray();\n }", "public static byte[] ByteCopy(ByteBuffer b) {\n \tbyte[] output = new byte[b.limit()];\n \tfor (int i = 0; i < b.limit(); i++) {\n \t\toutput[i] = b.get(i);\n \t}\n \treturn output;\n }", "abstract public ByteString getBlocksBuffer();", "public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n return new byte[0];\n }\n }\n catch (IOException e) {\n return new byte[0];\n }\n }", "public static ByteBuffer byteBuffer(InputStream in) throws IOException {\n return byteBuf(in, FileChannel.MapMode.READ_WRITE, \"rw\");\n }", "default byte[] getBytes() throws IOException {\n try (InputStream is = getInputStream()) {\n return IOUtils.toByteArray(is);\n }\n }", "public byte[] GetBytes() {\n return data;\n }", "long[] getBuffer() {\n\t\treturn buffer;\n\t}", "com.google.protobuf.ByteString\n getToBytes();", "public byte[] drain() {\n return drainTo(new ByteArrayOutputStream()).toByteArray();\n }", "byte[] readBytes();", "public byte[] toByteArray() \r\n {\r\n \tbyte newbuf[] = new byte[count];\r\n \tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \treturn newbuf;\r\n }", "public ByteBuffer raw() {\n\n\t\t// Allocate buffer\n\t\tByteBuffer b = ByteBuffer.allocate(rawLength()).order(ByteOrder.LITTLE_ENDIAN);\n\n\t\t// Populate buffer\n\t\tb.put(length.raw());\n\t\tb.put(s.getBytes(Charset.forName(\"UTF-8\")));\n\n\t\t// Return rewinded buffer\n\t\tb.rewind();\n\n\t\t// Return buffer\n\t\treturn b;\n\t}", "public byte[] getBytes()\n {\n return bytes;\n }", "public byte[] getCopyBytes() {\n try {\n return serialToStream();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "int getBufferSize();", "public byte[] getBuffer() {\r\n return this.header;\r\n }", "public Body getBody() {\n return new BufferBody(buffer);\n }", "public byte[] toByteArray() {\n/* 510 */ ByteBuffer buff = ByteBuffer.allocate(40).order(ByteOrder.LITTLE_ENDIAN);\n/* 511 */ writeTo(buff);\n/* 512 */ return buff.array();\n/* */ }", "public byte[] getBytes()\n\t{\n\t\treturn bytes;\n\t}", "byte[] getByteContent() throws IOException;", "ByteBuffer allocate() {\n\t\tvar b = ByteBuffer.allocate(size).order(LITTLE_ENDIAN);\n\t\tb.putInt(ordinal());\n\t\treturn b;\n\t}", "public ByteArrayList getData() {\n return DataBuffer.this.getData();\n }", "public byte[] getBytes() {\r\n return bytes;\r\n }", "private int readBufferedContentInto(ByteBuffer byteBuffer) {\n long bytesToSkip = positionForNextRead - positionInGrpcStream;\n\n if (bytesToSkip >= bufferedContent.size()) {\n positionInGrpcStream += bufferedContent.size();\n invalidateBufferedContent();\n return 0;\n }\n\n if (bytesToSkip > 0) {\n positionInGrpcStream += bytesToSkip;\n bufferedContent = bufferedContent.substring(Math.toIntExact(bytesToSkip));\n }\n\n int bytesToWrite = Math.min(byteBuffer.remaining(), bufferedContent.size());\n put(bufferedContent, 0, bytesToWrite, byteBuffer);\n positionInGrpcStream += bytesToWrite;\n positionForNextRead += bytesToWrite;\n\n if (bytesToWrite < bufferedContent.size()) {\n bufferedContent = bufferedContent.substring(bytesToWrite);\n } else {\n invalidateBufferedContent();\n }\n\n return bytesToWrite;\n }", "private byte[] readBuffer( DataInputStream in ) throws IOException{\n String factory = in.readUTF();\n int count = in.readInt();\n \n ByteArrayOutputStream out = new ByteArrayOutputStream( factory.length()*4 + 4 + count );\n DataOutputStream dout = new DataOutputStream( out );\n \n dout.writeUTF( factory );\n dout.writeInt( count );\n \n for( int i = 0; i < count; i++ ){\n int read = in.read();\n if( read == -1 )\n throw new EOFException( \"unexpectetly reached end of file\" );\n dout.write( read );\n }\n \n dout.close();\n return out.toByteArray();\n }", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] getBytes() {\n return bytes;\n }", "Buffer copy();", "private final byte[] readBuffer( int size ) throws IOException {\n byte[] buffer = new byte[ size ];\n\n int read = 0;\n while ( read < size ) {\n int next = dataSource.read( buffer, read, size - read );\n if ( next < 0 ) throw new IOException( \"End of Stream\" );\n read += next;\n\t}\n return buffer;\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public byte[] getByteData() { return bytedata; }", "protected final char[] getCopyBuffer()\n {\n char[] buf = mCopyBuffer;\n if (buf == null) {\n mCopyBuffer = buf = mConfig.allocMediumCBuffer(DEFAULT_COPYBUFFER_LEN);\n }\n return buf;\n }", "public byte[] getBytes() {\n\t\treturn bytes;\n\t}", "public byte[] getBytes() {\r\n return mBytes;\r\n }", "public byte[] allocReadIOBuffer()\n/* */ {\n/* 146 */ _verifyAlloc(this._readIOBuffer);\n/* 147 */ return this._readIOBuffer = this._bufferRecycler.allocByteBuffer(0);\n/* */ }", "public byte[] getBytes() {\n return mBytes;\n }", "public byte[] getAsBytes() {\n return (byte[])data;\n }", "public String[] getBufferAndFlush() {\r\n\t\tString[] answer = new String[this.BUFFER.getSize()];\r\n\r\n\t\tfor (int i = 0; i < answer.length; i++)\r\n\t\t\tanswer[i] = this.BUFFER.remove();\r\n\r\n\t\treturn answer;\r\n\t}", "byte[] byteValue() {\n\treturn data;\n }", "com.google.protobuf.ByteString\n getContentsBytes();", "public int getBufferSize() {\n\t\treturn buffer.length;\n\t}", "public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }", "public byte[] toBytes() {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n writeTo(os);\n } catch (IOException e) {e.printStackTrace();}\n return os.toByteArray();\n }", "public byte[] exportWithSize()\n\t{\n\t\tByteBuffer tmp = ByteBuffer.allocate(4);\n\t\ttmp.order(ByteOrder.LITTLE_ENDIAN);\n\t\ttmp.putInt(bytesUsed);\n\t\t\n\t\tbyte[] newdata = new byte[bytesUsed+4];\n\n\t\tSystem.arraycopy(tmp.array(), 0, newdata, 0, 4);\n\t\tSystem.arraycopy(buf.array(), 0, newdata, 4, bytesUsed);\n\t\treturn newdata;\n\t}", "@Override\r\n\tpublic Buffer getBytes(int start, int end, byte[] dst, int dstIndex) {\n\t\treturn null;\r\n\t}", "public byte[] allocBase64Buffer()\n/* */ {\n/* 175 */ _verifyAlloc(this._base64Buffer);\n/* 176 */ return this._base64Buffer = this._bufferRecycler.allocByteBuffer(3);\n/* */ }", "public byte[] read();", "public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }", "public abstract void readBytes(PacketBuffer buffer) throws IOException;", "public void readBytes(byte[] buffer) throws IOException;", "com.google.protobuf.ByteString\n getContentsBytes();", "public int getBufferSize() {\n\t\treturn 0;\n\t}", "@Nonnull\n public String toBuf() {\n Buf buf = new Buf();\n Error.throwIfNeeded(jniToBuf(buf, getRawPointer()));\n return buf.getString().orElse(\"\");\n }" ]
[ "0.76750374", "0.74814624", "0.7480394", "0.742623", "0.73975545", "0.7329596", "0.7278232", "0.72703594", "0.7231871", "0.7228978", "0.71984917", "0.7028441", "0.6977148", "0.6832698", "0.6751758", "0.67425966", "0.67425966", "0.6691413", "0.6632031", "0.65727824", "0.65593445", "0.6559246", "0.65467507", "0.64820844", "0.6432591", "0.64154214", "0.63942856", "0.6393763", "0.6385707", "0.63710994", "0.63548136", "0.6340688", "0.63330454", "0.6317348", "0.6317041", "0.6312665", "0.62935174", "0.6252897", "0.62352896", "0.62169325", "0.6176749", "0.6167669", "0.6162962", "0.61508304", "0.61395687", "0.6139275", "0.61355996", "0.6127721", "0.6115701", "0.6107896", "0.6099541", "0.6099511", "0.6093606", "0.60853297", "0.6082794", "0.6076732", "0.6063865", "0.60588574", "0.60515803", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6046029", "0.6038199", "0.60021734", "0.6001164", "0.5994101", "0.59822464", "0.59803754", "0.5979361", "0.59791714", "0.595605", "0.5955432", "0.59343916", "0.5928887", "0.5926733", "0.59255147", "0.59225726", "0.59165037", "0.59163916", "0.59111154", "0.5902864", "0.5884866", "0.58776903", "0.5877679", "0.5872273" ]
0.71859866
11
Returns the available number of bytes in the buffer, and copies the buffer contents to the passed byte[]
public int readBytes(byte outgoing[]) { if (bufferIndex == bufferLast) return 0; synchronized (buffer) { int length = bufferLast - bufferIndex; if (length > outgoing.length) length = outgoing.length; System.arraycopy(buffer, bufferIndex, outgoing, 0, length); bufferIndex += length; if (bufferIndex == bufferLast) { bufferIndex = 0; // rewind bufferLast = 0; } return length; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getBytesInBufferAvailable() {\n if (this.count == this.pos) return 0;\n else return this.buf.length - this.pos;\n }", "protected abstract void getAtLeastBytes(ByteBuffer inputBuffer, int len) throws IOException;", "private final int copyBufferedBytes(byte[] dst, int off, int len) {\n int bytesCopied = 0;\n \n if (ungotc != -1 && len > 0) {\n dst[off++] = (byte) ungotc;\n ungotc = -1;\n ++bytesCopied;\n }\n \n final int n = Math.min(len - bytesCopied, buffer.remaining());\n buffer.get(dst, off, n);\n bytesCopied += n;\n \n return bytesCopied;\n }", "public int availableBytes()\n throws IOException {\n\n // Do not know the available byte count\n return -1;\n }", "@Override\n\tpublic int available() throws IOException {\n\t\treturn buf.readableBytes();\n\t}", "private final int copyBufferedBytes(ByteBuffer dst) {\n final int bytesToCopy = dst.remaining();\n \n if (ungotc != -1 && dst.hasRemaining()) {\n dst.put((byte) ungotc);\n ungotc = -1;\n }\n \n if (buffer.hasRemaining() && dst.hasRemaining()) {\n \n if (dst.remaining() >= buffer.remaining()) {\n //\n // Copy out any buffered bytes\n //\n dst.put(buffer);\n \n } else {\n //\n // Need to clamp source (buffer) size to avoid overrun\n //\n ByteBuffer tmp = buffer.duplicate();\n tmp.limit(tmp.position() + dst.remaining());\n dst.put(tmp);\n buffer.position(tmp.position());\n }\n }\n \n return bytesToCopy - dst.remaining();\n }", "int getBufferSize();", "public void readBytes(byte[] buffer, int offset, int length) throws IOException;", "private final int copyBufferedBytes(ByteList dst, int len) {\n int bytesCopied = 0;\n \n dst.ensure(Math.min(len, bufferedInputBytesRemaining()));\n \n if (bytesCopied < len && ungotc != -1) {\n ++bytesCopied;\n dst.append((byte) ungotc);\n ungotc = -1;\n }\n \n //\n // Copy out any buffered bytes\n //\n if (bytesCopied < len && buffer.hasRemaining()) {\n int n = Math.min(buffer.remaining(), len - bytesCopied);\n dst.append(buffer, n);\n bytesCopied += n;\n }\n \n return bytesCopied;\n }", "byte [] getBuffer ();", "public int size() { return buffer.length; }", "public void readBytes(byte[] buffer) throws IOException;", "@Override\n\tpublic int read(byte[] dst, int dstIndex, int length) throws IOException {\n\t\tint available = available();\n if (available == 0) {\n return -1;\n }\n\n length = Math.min(available, length);\n buf.readBytes(dst, dstIndex, length);\n return length;\n\n\t}", "protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }", "public int available() throws IOException {\n int ret = 0;\n for(IoBuffer buf : data) {\n ret += buf.remaining();\n }\n return ret;\n }", "int read(byte[] buffer, int bufferOffset, int length) throws IOException;", "private int readBufferedContentInto(ByteBuffer byteBuffer) {\n long bytesToSkip = positionForNextRead - positionInGrpcStream;\n\n if (bytesToSkip >= bufferedContent.size()) {\n positionInGrpcStream += bufferedContent.size();\n invalidateBufferedContent();\n return 0;\n }\n\n if (bytesToSkip > 0) {\n positionInGrpcStream += bytesToSkip;\n bufferedContent = bufferedContent.substring(Math.toIntExact(bytesToSkip));\n }\n\n int bytesToWrite = Math.min(byteBuffer.remaining(), bufferedContent.size());\n put(bufferedContent, 0, bytesToWrite, byteBuffer);\n positionInGrpcStream += bytesToWrite;\n positionForNextRead += bytesToWrite;\n\n if (bytesToWrite < bufferedContent.size()) {\n bufferedContent = bufferedContent.substring(bytesToWrite);\n } else {\n invalidateBufferedContent();\n }\n\n return bytesToWrite;\n }", "public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "private int fillBuffer() throws IOException {\r\n int n = super.read(buffer, 0, BUF_SIZE);\r\n if (n >= 0) {\r\n file_pos +=n;\r\n buf_end = n;\r\n buf_pos = 0;\r\n }\r\n return n;\r\n }", "static void readBytes(ByteBufAllocator allocator, ByteBuffer buffer, int position, int length, OutputStream out) throws IOException {\n if (buffer.hasArray()) {\n out.write((byte[])buffer.array(), (int)(position + buffer.arrayOffset()), (int)length);\n return;\n }\n int chunkLen = Math.min((int)length, (int)8192);\n buffer.clear().position((int)position);\n if (length <= 1024 || !allocator.isDirectBufferPooled()) {\n ByteBufUtil.getBytes((ByteBuffer)buffer, (byte[])ByteBufUtil.threadLocalTempArray((int)chunkLen), (int)0, (int)chunkLen, (OutputStream)out, (int)length);\n return;\n }\n ByteBuf tmpBuf = allocator.heapBuffer((int)chunkLen);\n try {\n byte[] tmp = tmpBuf.array();\n int offset = tmpBuf.arrayOffset();\n ByteBufUtil.getBytes((ByteBuffer)buffer, (byte[])tmp, (int)offset, (int)chunkLen, (OutputStream)out, (int)length);\n return;\n }\n finally {\n tmpBuf.release();\n }\n }", "protected final int readBytes()\n throws IOException\n {\n _inputPtr = 0;\n _inputEnd = 0;\n if (_inputSource != null) {\n int count = _inputSource.read(_inputBuffer, 0, _inputBuffer.length);\n if (count > 0) {\n _inputEnd = count;\n }\n return count;\n }\n return -1;\n }", "public int getBufferSize() {\n\t\treturn 0;\n\t}", "private int getBytes(int index, GatheringByteChannel out, int length, boolean internal)\r\n/* 197: */ throws IOException\r\n/* 198: */ {\r\n/* 199:222 */ ensureAccessible();\r\n/* 200: */ ByteBuffer tmpBuf;\r\n/* 201: */ ByteBuffer tmpBuf;\r\n/* 202:224 */ if (internal) {\r\n/* 203:225 */ tmpBuf = internalNioBuffer();\r\n/* 204: */ } else {\r\n/* 205:227 */ tmpBuf = ByteBuffer.wrap(this.array);\r\n/* 206: */ }\r\n/* 207:229 */ return out.write((ByteBuffer)tmpBuf.clear().position(index).limit(index + length));\r\n/* 208: */ }", "public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n return new byte[0];\n }\n }\n catch (IOException e) {\n return new byte[0];\n }\n }", "public native long getReceivedByteCount()\n throws IOException, IllegalArgumentException;", "public abstract void readBytes(PacketBuffer buffer) throws IOException;", "public int getBufferSize() {\n return count;\n }", "public void addBytes( final ByteBuffer _buffer ) {\n\n // sanity checks...\n if( isNull( _buffer ) )\n throw new IllegalArgumentException( \"Missing buffer to append from\" );\n if( _buffer.remaining() <= 0)\n throw new IllegalArgumentException( \"Specified buffer has no bytes to append\" );\n\n // figure out how many bytes we can append, and configure the source buffer accordingly...\n int appendCount = Math.min( buffer.capacity() - buffer.limit(), _buffer.remaining() );\n int specifiedBufferLimit = _buffer.limit();\n _buffer.limit( _buffer.position() + appendCount );\n\n // remember our old position, so we can put it back later...\n int pos = buffer.position();\n\n // setup to copy our bytes to the right place...\n buffer.position( buffer.limit() );\n buffer.limit( buffer.capacity() );\n\n // copy our bytes...\n buffer.put( _buffer );\n\n // get the specified buffer's limit back to its original state...\n _buffer.limit( specifiedBufferLimit );\n\n // get our position and limit to the right place...\n buffer.limit( buffer.position() );\n buffer.position( pos );\n }", "private int getBytes(int index, FileChannel out, long position, int length, boolean internal)\r\n/* 211: */ throws IOException\r\n/* 212: */ {\r\n/* 213:233 */ ensureAccessible();\r\n/* 214:234 */ ByteBuffer tmpBuf = internal ? internalNioBuffer() : ByteBuffer.wrap(this.array);\r\n/* 215:235 */ return out.write((ByteBuffer)tmpBuf.clear().position(index).limit(index + length), position);\r\n/* 216: */ }", "public int getBufferSize() {\n\t\treturn buffer.length;\n\t}", "@Override\n\tpublic int getBufferSize() {\n\t\treturn 0;\n\t}", "@Override\n public int available() throws IOException {\n return fileSize - nextChunkPos + (count - pos);\n }", "public int getBytes(int index, GatheringByteChannel out, int length)\r\n/* 183: */ throws IOException\r\n/* 184: */ {\r\n/* 185:211 */ ensureAccessible();\r\n/* 186:212 */ return getBytes(index, out, length, false);\r\n/* 187: */ }", "public abstract void get(long position, ByteBuffer dst, int count);", "private void readMoreBytesFromStream() throws IOException {\n if (!innerStreamHasMoreData) {\n return;\n }\n\n int bufferSpaceAvailable = buffer.length - bytesInBuffer;\n if (bufferSpaceAvailable <= 0) {\n return;\n }\n\n int bytesRead =\n stream.read(buffer, bytesInBuffer, bufferSpaceAvailable);\n\n if (bytesRead == -1) {\n innerStreamHasMoreData = false;\n } else {\n bytesInBuffer += bytesRead;\n }\n }", "public int getBytes(int index, GatheringByteChannel out, int length)\r\n/* 252: */ throws IOException\r\n/* 253: */ {\r\n/* 254:268 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 255:269 */ return super.getBytes(index, out, length);\r\n/* 256: */ }", "protected abstract long getCurrentBufferCapacity(long paramLong);", "public int readBytes(GatheringByteChannel out, int length)\r\n/* 219: */ throws IOException\r\n/* 220: */ {\r\n/* 221:240 */ checkReadableBytes(length);\r\n/* 222:241 */ int readBytes = getBytes(this.readerIndex, out, length, true);\r\n/* 223:242 */ this.readerIndex += readBytes;\r\n/* 224:243 */ return readBytes;\r\n/* 225: */ }", "public int readBytes(GatheringByteChannel out, int length)\r\n/* 508: */ throws IOException\r\n/* 509: */ {\r\n/* 510:520 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 511:521 */ return super.readBytes(out, length);\r\n/* 512: */ }", "private synchronized byte[] mReadBytes(InputStream oInput){\n nDataRcvd= nBytesAvailable(oInput);\n if (nDataRcvd==0)\n return null;\n byte[] buffer = new byte[nDataRcvd];\n try {\n nDataRcvd=oInput.read(buffer); //Read is a blocking operation\n } catch (IOException e) {\n e.printStackTrace();\n buffer= null;\n }\n return buffer;\n }", "private int fillBuffer(InputStream is) throws IOException {\n int len = buffer.length;\n int pos = 0;\n while (pos < buffer.length) {\n int read = is.read(buffer, pos, len);\n if (read == -1)\n return pos;\n pos += read;\n len -= read;\n }\n return pos;\n }", "@Override\n\t public synchronized int read(ByteBuffer dst) throws IOException {\n\t\tassert dst.hasArray();\n\t\tbyte[] array = dst.array();\n\t\tint arrayOffset = dst.arrayOffset();\n\n\t\tint totalRead = 0;\n\t\tint bytesRead = 0;\n\t\tint bytesToRead;\n\t\twhile ((bytesToRead = dst.remaining()) > 0) {\n\t\t if ((totalRead > 0) && !(in.available() > 0)) {\n\t\t\tbreak; // block at most once\n\t\t }\n\t\t int pos = dst.position();\n\t\t bytesRead = in.read(array, arrayOffset + pos, bytesToRead);\n\t\t if (bytesRead < 0) {\n\t\t\tbreak;\n\t\t } else {\n ((Buffer)dst).position(pos + bytesRead);\n\t\t\ttotalRead += bytesRead;\n\t\t }\n\t\t}\n\t\tif ((bytesRead < 0) && (totalRead == 0)) {\n\t\t return -1;\n\t\t}\n\n\t\treturn totalRead;\n\t }", "int getBytesRead() {\n \treturn _read + _o;\n }", "private int ensureBuffer(int offset, int length) throws IOException {\n\t\tfinal int lastPos = offset + length - 1;\n\t\tfinal int desiredSize = ((lastPos / BUFFER_SIZE) + 1) * BUFFER_SIZE;\n\t\tfinal int currentSize = this.buffer.length;\n\n\t\tif (desiredSize > currentSize) {\n\t\t\tfinal byte[] readBuffer = new byte[desiredSize - currentSize];\n\t\t\tfinal int count = this.in.read(readBuffer);\n\n\t\t\tif (count > 0) {\n\t\t\t\tfinal byte[] newBuffer = new byte[currentSize + count];\n\t\t\t\tSystem.arraycopy(this.buffer, 0, newBuffer, 0, currentSize);\n\t\t\t\tSystem.arraycopy(readBuffer, 0, newBuffer, currentSize, count);\n\t\t\t\tthis.buffer = newBuffer;\n\t\t\t}\n\t\t\treturn (lastPos < this.buffer.length) ? length : length - (lastPos - this.buffer.length + 1);\n\t\t}\n\t\treturn length;\n\t}", "public int addBytes( final byte[] _bytes, final int _offset, final int _length ) {\n\n // sanity checks...\n if( _bytes == null )\n throw new IllegalArgumentException( \"Missing bytes to append\" );\n if( _length - _offset <= 0 )\n throw new IllegalArgumentException( \"Specified buffer has no bytes to append\" );\n\n // figure out how many bytes we can append...\n int appendCount = Math.min( buffer.capacity() - buffer.limit(), _length - _offset );\n\n // remember our old position, so we can put it back later...\n int pos = buffer.position();\n\n // setup to copy our bytes to the right place...\n buffer.position( buffer.limit() );\n buffer.limit( buffer.capacity() );\n\n // copy our bytes...\n buffer.put( _bytes, _offset, appendCount );\n\n // get our source and limit to the right place...\n buffer.limit( buffer.position() );\n buffer.position( pos );\n\n return appendCount;\n }", "@Override\n public int read(byte[] byteBuffer) throws IOException {\n return this.read(byteBuffer, 0, byteBuffer.length);\n }", "void readBytes(byte[] into, int offset, int toRead) throws IOException;", "public int getBytes(int index, FileChannel out, long position, int length)\r\n/* 190: */ throws IOException\r\n/* 191: */ {\r\n/* 192:217 */ ensureAccessible();\r\n/* 193:218 */ return getBytes(index, out, position, length, false);\r\n/* 194: */ }", "byte[] readBytes();", "public byte[] allocReadIOBuffer(int minSize)\n/* */ {\n/* 154 */ _verifyAlloc(this._readIOBuffer);\n/* 155 */ return this._readIOBuffer = this._bufferRecycler.allocByteBuffer(0, minSize);\n/* */ }", "@Override\n public int getBufferSize() {\n return 0;\n }", "public abstract void nextBytes(byte[] byteBuffer);", "public ByteBuf readBytes(byte[] dst, int dstIndex, int length)\r\n/* 489: */ {\r\n/* 490:502 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 491:503 */ return super.readBytes(dst, dstIndex, length);\r\n/* 492: */ }", "@Override\n protected long read0(long addr, @Positive long length) throws IOException {\n int count = toInt(min(this.delegate.remaining(), length));\n if (count <= 0) {\n return RESULT_EOF;\n }\n\n //we don't have direct access to the array, so we'll have to fall back to copying one byte at a time\n // (JIT might be smart enough to optimize this into a sequential memory copy, but don't bank on it - that's why we have ArrayHeapBufferIn)\n int position = PNioBuffers.skipForRead(this.delegate, count);\n for (int i = 0; i < count; i++) {\n PUnsafe.putByte(addr + i, this.delegate.get(position + i));\n }\n\n return count;\n }", "@Override\n\tpublic int Read(byte[] buffer, int offset, int count)\n\t{\n\t\tif (buffer == null)\n\t\t{\n\t\t\tthrow new NullPointerException(\"buffer\");\n\t\t}\n\n\t\tint totalRead = 0;\n\n\t\tif (entryOffset >= entrySize)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\n\t\tlong numToRead = count;\n\n\t\tif ((numToRead + entryOffset) > entrySize)\n\t\t{\n\t\t\tnumToRead = entrySize - entryOffset;\n\t\t}\n\n\t\tif (readBuffer != null)\n\t\t{\n\t\t\tint sz = (numToRead > readBuffer.length) ? readBuffer.length : (int)numToRead;\n\n\t\t\tSystem.arraycopy(readBuffer, 0, buffer, offset, sz);\n\n\t\t\tif (sz >= readBuffer.length)\n\t\t\t{\n\t\t\t\treadBuffer = null;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint newLen = readBuffer.length - sz;\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] newBuf = new byte[newLen];\n\t\t\t\tbyte[] newBuf = new byte[newLen];\n\t\t\t\tSystem.arraycopy(readBuffer, sz, newBuf, 0, newLen);\n\t\t\t\treadBuffer = newBuf;\n\t\t\t}\n\n\t\t\ttotalRead += sz;\n\t\t\tnumToRead -= sz;\n\t\t\toffset += sz;\n\t\t}\n\n\t\twhile (numToRead > 0)\n\t\t{\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] rec = tarBuffer.ReadBlock();\n\t\t\tbyte[] rec = tarBuffer.ReadBlock();\n\t\t\tif (rec == null)\n\t\t\t{\n\t\t\t\t// Unexpected EOF!\n\t\t\t\tthrow new TarException(\"unexpected EOF with \" + numToRead + \" bytes unread\");\n\t\t\t}\n\n\t\t\tint sz = (int)numToRead;\n\t\t\tint recLen = rec.length;\n\n\t\t\tif (recLen > sz)\n\t\t\t{\n\t\t\t\tSystem.arraycopy(rec, 0, buffer, offset, sz);\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: readBuffer = new byte[recLen - sz];\n\t\t\t\treadBuffer = new byte[recLen - sz];\n\t\t\t\tSystem.arraycopy(rec, sz, readBuffer, 0, recLen - sz);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsz = recLen;\n\t\t\t\tSystem.arraycopy(rec, 0, buffer, offset, recLen);\n\t\t\t}\n\n\t\t\ttotalRead += sz;\n\t\t\tnumToRead -= sz;\n\t\t\toffset += sz;\n\t\t}\n\n\t\tentryOffset += totalRead;\n\n\t\treturn totalRead;\n\t}", "private void checkBuffer(int needBytes) throws IOException {\n\n // Check if the dataBuffer.buffer has some pending output.\n if (!this.doingInput && this.bufferPointer.bufferOffset > 0) {\n flush();\n }\n this.doingInput = true;\n\n if (this.bufferPointer.bufferOffset + needBytes < this.bufferPointer.bufferLength) {\n return;\n }\n /*\n * Move the last few bytes to the beginning of the dataBuffer.buffer and\n * read in enough data to fill the current demand.\n */\n int len = this.bufferPointer.bufferLength - this.bufferPointer.bufferOffset;\n\n /*\n * Note that new location that the beginning of the dataBuffer.buffer\n * corresponds to.\n */\n this.fileOffset += this.bufferPointer.bufferOffset;\n if (len > 0) {\n System.arraycopy(this.bufferPointer.buffer, this.bufferPointer.bufferOffset, this.bufferPointer.buffer, 0, len);\n }\n needBytes -= len;\n this.bufferPointer.bufferLength = len;\n this.bufferPointer.bufferOffset = 0;\n\n while (needBytes > 0) {\n len = this.randomAccessFile.read(this.bufferPointer.buffer, this.bufferPointer.bufferLength, this.bufferPointer.buffer.length - this.bufferPointer.bufferLength);\n if (len < 0) {\n throw new EOFException();\n }\n needBytes -= len;\n this.bufferPointer.bufferLength += len;\n }\n }", "@Override\r\n\tpublic Buffer getBytes(int start, int end, byte[] dst, int dstIndex) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "Buffer copy();", "public void readBytes(byte[] buf, int off, int len) throws IOException {\n\tint startIdx = off;\n\tint numRead = 0;\n\tif (pushedBack) {\n\t buf[startIdx] = backBuf;\n\t pushedBack = false;\n\t ++startIdx;\n\t ++numRead;\n\t}\n\twhile (numRead &lt; len) {\n\t numRead += in.read(buf, startIdx + numRead, len - numRead);\n\t}\n\t// if (numRead != len) {\n\t// throw new IOException(\"Only read \" + numRead + \" out of \" +\n\t// len + \" bytes requested\");\n\t// }\n }", "public ByteBuf readBytes(ByteBuf dst, int dstIndex, int length)\r\n/* 477: */ {\r\n/* 478:490 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 479:491 */ return super.readBytes(dst, dstIndex, length);\r\n/* 480: */ }", "@Override\n public ByteBuffer readInput(int minBytes) throws IOException {\n if (minBytes <= byteBuffer.remaining())\n return byteBuffer;\n else\n throw new EOFException(\"Cannot read more bytes - end of buffer reached\");\n }", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "public int readBytes(FileChannel out, long position, int length)\r\n/* 903: */ throws IOException\r\n/* 904: */ {\r\n/* 905:910 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 906:911 */ return super.readBytes(out, position, length);\r\n/* 907: */ }", "private final int bufferedInputBytesRemaining() {\n return reading ? (buffer.remaining() + (ungotc != -1 ? 1 : 0)) : 0;\n }", "public int read (byte[] b, int off, int len)\n {\n // if they want no bytes, we give them no bytes; this is\n // purportedly the right thing to do regardless of whether we're\n // at EOF or not\n if (len == 0) {\n return 0;\n }\n\n // trim the amount to be read to what is available; if they wanted\n // bytes and we have none, return -1 to indicate EOF\n if ((len = Math.min(len, _buffer.remaining())) == 0) {\n return -1;\n }\n\n _buffer.get(b, off, len);\n return len;\n }", "private static int readFully(InputStream in, byte[] buf, int off, int len) throws IOException {\n/* 1144 */ if (len == 0)\n/* 1145 */ return 0; \n/* 1146 */ int total = 0;\n/* 1147 */ while (len > 0) {\n/* 1148 */ int bsize = in.read(buf, off, len);\n/* 1149 */ if (bsize <= 0)\n/* */ break; \n/* 1151 */ off += bsize;\n/* 1152 */ total += bsize;\n/* 1153 */ len -= bsize;\n/* */ } \n/* 1155 */ return (total > 0) ? total : -1;\n/* */ }", "public int available() throws IOException {\n if (ch instanceof SeekableByteChannel) {\n SeekableByteChannel sbc = (SeekableByteChannel)ch;\n long rem = Math.max(0, sbc.size() - sbc.position());\n return (rem > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int)rem;\n }\n return 0;\n }", "@VisibleForTesting\n static int drainBuffer(BufferedReader br, StringBuffer storageBuf, int maxLength, int bytesRead, boolean readAll)\n throws IOException {\n int bReadSession = 0;\n int chunkSize = 1024;\n if (br.ready()) {\n char[] buf = new char[1024];\n int bReadCurrent;\n boolean wantsToReadFurther;\n do {\n bReadCurrent = br.read(buf, 0, chunkSize);\n if (storageBuf != null && bytesRead < maxLength && bReadCurrent != -1) {\n storageBuf.append(buf, 0, bReadCurrent);\n }\n if (bReadCurrent != -1) {\n bReadSession += bReadCurrent;\n }\n wantsToReadFurther = bReadCurrent != -1 && (readAll || bReadCurrent == chunkSize);\n } while (br.ready() && wantsToReadFurther);\n }\n return bReadSession;\n }", "private static byte[] readBytes(InputStream input, int length) throws IOException {\n\n int count = 0;\n byte[] buffer = new byte[length];\n\n while (count < length) count += input.read(buffer, count, length - count);\n\n return buffer;\n }", "public void testNIO_byte_array() throws Exception {\n byteBufferTest(ByteBuffer.allocate(12));\n }", "int readBytes(VRL vrl, long fileOffset, byte[] bytes, int bufferOffset, int nrBytes) throws VRLSyntaxException, IOException, VlException {\n String[] containerAndPath = getContainerAndPath(vrl);\n long end = fileOffset + nrBytes;\n Blob blob = getBlobstore().getBlob(containerAndPath[0], containerAndPath[1], range(fileOffset, end));\n int numRead = blob.getPayload().getInput().read(bytes, bufferOffset, nrBytes);\n// if (numRead != nrBytes) {\n// debug(\"-----------------Asked: \" + nrBytes + \" got: \" + numRead);\n// }\n return numRead;\n }", "public int read(byte b[], int off, int len) throws IOException {\n if (!started) {\n start();\n }\n if (buffer == null || len == 0)\n return -1;\n \n if (bufpos == buflen) {\n buffer = refreshBuffer();\n if (buffer == null)\n return -1;\n }\n \n int available = 0;\n int remaining = len;\n while ( (available = buflen-bufpos) < remaining ) {\n System.arraycopy(buffer, bufpos, b, off, available);\n remaining -= available;\n off += available;\n buffer = refreshBuffer();\n if (buffer == null)\n return len-remaining;\n }\n System.arraycopy(buffer, bufpos, b, off, remaining);\n bufpos += remaining;\n return len; \n }", "public int readBytes(FileChannel out, long position, int length)\r\n/* 228: */ throws IOException\r\n/* 229: */ {\r\n/* 230:248 */ checkReadableBytes(length);\r\n/* 231:249 */ int readBytes = getBytes(this.readerIndex, out, position, length, true);\r\n/* 232:250 */ this.readerIndex += readBytes;\r\n/* 233:251 */ return readBytes;\r\n/* 234: */ }", "private final byte[] readBuffer( int size ) throws IOException {\n byte[] buffer = new byte[ size ];\n\n int read = 0;\n while ( read < size ) {\n int next = dataSource.read( buffer, read, size - read );\n if ( next < 0 ) throw new IOException( \"End of Stream\" );\n read += next;\n\t}\n return buffer;\n }", "abstract public Buffer createBufferFromData(byte[] data, int size);", "public ByteBuf readBytes(ByteBuf dst, int length)\r\n/* 471: */ {\r\n/* 472:484 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 473:485 */ return super.readBytes(dst, length);\r\n/* 474: */ }", "int readNonBlocking(byte[] buffer, int offset, int length);", "public byte[] allocReadIOBuffer()\n/* */ {\n/* 146 */ _verifyAlloc(this._readIOBuffer);\n/* 147 */ return this._readIOBuffer = this._bufferRecycler.allocByteBuffer(0);\n/* */ }", "public byte[] getBuffer () {\n\t\t\t\n\t\t\tif (index < 0)\n\t\t\t\treturn null;\n\n\t\t\tint len = index;\n\t\t\tbyte[] b = new byte[len+1];\n\t\t\tfor (int k=0; k <= len; k++)\n\t\t\t\tb[k] = buf[k];\n\n\t\t\treturn b;\n\t\t}", "public static byte[] nBytes(int n, byte[] b, int index) { byte[] bb=new byte[n]; for (int k=0; k<n; k++) bb[k]=b[index+k]; return bb; }", "public byte[] readBytes(int inNumberMessages) throws IOException;", "public int read(byte b[], int off, int len) throws IOException {\r\n if (buf_pos >= buf_end) {\r\n if (fillBuffer() < 0)\r\n return -1; // EOF\r\n }\r\n\r\n // Copy from buffer\r\n int leftover = buf_end - buf_pos;\r\n if (len <= leftover) {\r\n System.arraycopy(buffer, buf_pos, b, off, len);\r\n buf_pos += len;\r\n return len;\r\n }\r\n\r\n System.arraycopy(buffer, buf_pos, b, off, leftover);\r\n int n = super.read(b, off+leftover, len-leftover);\r\n fillBuffer();\r\n if (n >= 0)\r\n return leftover + n;\r\n return leftover;\r\n /*for (int i = 0; i < len; i++) {\r\n int c = this.read();\r\n if (c != -1)\r\n b[off+i] = (byte)c;\r\n else {\r\n return i;\r\n }\r\n }\r\n return len;*/\r\n }", "void write(byte[] buffer, int bufferOffset, int length) throws IOException;", "public int getBytes(int index, FileChannel out, long position, int length)\r\n/* 889: */ throws IOException\r\n/* 890: */ {\r\n/* 891:898 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 892:899 */ return super.getBytes(index, out, position, length);\r\n/* 893: */ }", "public static ByteBuf readBytes(ByteBufAllocator alloc, ByteBuf buffer, int length) {\n boolean release = true;\n ByteBuf dst = alloc.buffer((int)length);\n try {\n buffer.readBytes((ByteBuf)dst);\n release = false;\n ByteBuf byteBuf = dst;\n return byteBuf;\n }\n finally {\n if (release) {\n dst.release();\n }\n }\n }", "int readBytes(TclObject obj, int bytesToRead, IntPtr offsetPtr) {\n final boolean debug = false;\n int toRead, srcOff, srcLen, offset, length;\n ChannelBuffer buf;\n IntPtr srcRead, dstWrote;\n byte[] src, dst;\n\n offset = offsetPtr.i;\n \n buf = inQueueHead;\n src = buf.buf;\n srcOff = buf.nextRemoved;\n srcLen = buf.nextAdded - buf.nextRemoved;\n if (debug) {\n System.out.println(\"readBytes() : src buffer len is \" + buf.buf.length);\n System.out.println(\"readBytes() : buf.nextRemoved is \" + buf.nextRemoved);\n System.out.println(\"readBytes() : buf.nextAdded is \" + buf.nextAdded);\n }\n\n toRead = bytesToRead;\n if (toRead > srcLen) {\n\t toRead = srcLen;\n if (debug)\n System.out.println(\"readBytes() : toRead set to \" + toRead);\n }\n\n length = TclByteArray.getLength(null, obj);\n dst = TclByteArray.getBytes(null, obj);\n if (debug) {\n System.out.println(\"readBytes() : toRead is \" + toRead);\n System.out.println(\"readBytes() : length is \" + length);\n System.out.println(\"readBytes() : array length is \" + dst.length);\n }\n\n if (toRead > length - offset - 1) {\n if (debug) {\n System.out.println(\"readBytes() : TclObject too small\");\n }\n\n // Double the existing size of the object or make enough room to\n // hold all the characters we may get from the source buffer,\n // whichever is larger.\n\n length = offset * 2;\n if (offset < toRead) {\n length = offset + toRead + 1;\n }\n dst = TclByteArray.setLength(null, obj, length);\n }\n\n if (needNL) {\n needNL = false;\n if ((srcLen == 0) || (src[srcOff] != '\\n')) {\n dst[offset] = (byte) '\\r';\n offsetPtr.i += 1;\n return 1;\n }\n dst[offset++] = (byte) '\\n';\n srcOff++;\n srcLen--;\n toRead--;\n }\n\n srcRead = new IntPtr(srcLen);\n dstWrote = new IntPtr(toRead);\n\n if (translateEOL(dst, offset, src, srcOff, dstWrote, srcRead) != 0) {\n if (dstWrote.i == 0) {\n return -1;\n }\n }\n\n buf.nextRemoved += srcRead.i;\n offsetPtr.i += dstWrote.i;\n return dstWrote.i;\n }", "public final int Available() {\n\t\treturn m_rxlen;\n\t}", "@Override\n public byte[] readBytes(int length) throws IOException\n {\n if (length < 0)\n {\n throw new IOException(\"length is negative\");\n }\n if (randomAccessRead.length() - randomAccessRead.getPosition() < length)\n {\n throw new IOException(\"Premature end of buffer reached\");\n }\n byte[] bytes = new byte[length];\n for (int i = 0; i < length; i++)\n bytes[i] = readByte();\n return bytes;\n }", "@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }", "@SuppressWarnings( \"unused\" )\n public int capacity() {\n return buffer.capacity() - buffer.limit();\n }", "default int readBlocking(byte[] buffer) {\n return readBlocking(buffer, 0, buffer.length);\n }", "public byte[] toByteArray() \r\n {\r\n \tbyte newbuf[] = new byte[count];\r\n \tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \treturn newbuf;\r\n }", "public ByteBuf getBytes(int index, byte[] dst, int dstIndex, int length)\r\n/* 233: */ {\r\n/* 234:250 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 235:251 */ return super.getBytes(index, dst, dstIndex, length);\r\n/* 236: */ }", "protected long getBytesFree()\r\n {\r\n return this.bytesFree.get();\r\n }", "private byte[] readBuffer( DataInputStream in ) throws IOException{\n String factory = in.readUTF();\n int count = in.readInt();\n \n ByteArrayOutputStream out = new ByteArrayOutputStream( factory.length()*4 + 4 + count );\n DataOutputStream dout = new DataOutputStream( out );\n \n dout.writeUTF( factory );\n dout.writeInt( count );\n \n for( int i = 0; i < count; i++ ){\n int read = in.read();\n if( read == -1 )\n throw new EOFException( \"unexpectetly reached end of file\" );\n dout.write( read );\n }\n \n dout.close();\n return out.toByteArray();\n }", "@Override\n public abstract long getReceivedBytesCount();", "private int readFromSpare(byte[] b, int offset, int len) {\n if(spare == null) return 0;\n if(len == 0) throw new IllegalArgumentException(\"Asked to read 0 bytes\");\n \n if(spare.length <= len) {\n // All fits, good\n System.arraycopy(spare, 0, b, offset, spare.length);\n int read = spare.length;\n spare = null;\n return read;\n } else {\n // We have more spare than they can copy with...\n byte[] newspare = new byte[spare.length-len];\n System.arraycopy(spare, 0, b, offset, len);\n System.arraycopy(spare, len, newspare, 0, newspare.length);\n spare = newspare;\n return len;\n }\n }", "@Override\n protected int read0(@NonNull byte[] dst, int start, @Positive int length) throws IOException {\n int count = min(this.delegate.remaining(), length);\n if (count <= 0) {\n return RESULT_EOF;\n } else {\n this.delegate.get(dst, start, count);\n return count;\n }\n }", "private int readFill(InputStream stream, byte[] buffer)\n throws IOException {\n int r = buffer.length;\n while (r > 0) {\n int p = buffer.length - r;\n int c = stream.read(buffer, p, r);\n if (c == -1) {\n break;\n }\n r -= c;\n }\n return buffer.length - r;\n\n }" ]
[ "0.76570016", "0.71902", "0.69395244", "0.6874331", "0.678126", "0.67231023", "0.66700655", "0.65372103", "0.6528987", "0.64531106", "0.6436847", "0.6433265", "0.64305013", "0.63664436", "0.63628703", "0.63522065", "0.63154775", "0.6243919", "0.6230712", "0.62114525", "0.6203227", "0.61997485", "0.6165004", "0.6159908", "0.61400265", "0.6137133", "0.6125388", "0.6113032", "0.60982436", "0.6088136", "0.60443383", "0.6027208", "0.60072863", "0.59909797", "0.5985069", "0.59192467", "0.5903336", "0.5896146", "0.58931434", "0.5877038", "0.5867096", "0.58634645", "0.58612865", "0.58608276", "0.58542323", "0.5839641", "0.5835003", "0.58104044", "0.5807471", "0.58056855", "0.5789913", "0.57887167", "0.57881284", "0.5782019", "0.57719207", "0.57509756", "0.5736642", "0.5732676", "0.57272774", "0.57253206", "0.57244974", "0.5719743", "0.57128656", "0.5711679", "0.5711567", "0.57074094", "0.5706985", "0.56973416", "0.5695674", "0.5691175", "0.56897897", "0.5683454", "0.5683397", "0.5681746", "0.5678291", "0.56675327", "0.56674093", "0.56672215", "0.5648509", "0.5646936", "0.56443816", "0.5643144", "0.5638363", "0.5637114", "0.56318396", "0.5626486", "0.56261504", "0.56242365", "0.5613305", "0.56101614", "0.5606288", "0.5602729", "0.5600816", "0.5599366", "0.5597842", "0.5595983", "0.5595664", "0.5585366", "0.5574849", "0.55742586" ]
0.6208675
20
Returns a byte buffer until the byte interesting. If the byte interesting doesn't exist in the current buffer, null is returned.
public byte[] readBytesUntil(int interesting) { if (bufferIndex == bufferLast) return null; byte what = (byte) interesting; synchronized (buffer) { int found = -1; for (int k = bufferIndex; k < bufferLast; k++) { if (buffer[k] == what) { found = k; break; } } if (found == -1) return null; int length = found - bufferIndex + 1; byte outgoing[] = new byte[length]; System.arraycopy(buffer, bufferIndex, outgoing, 0, length); bufferIndex += length; if (bufferIndex == bufferLast) { bufferIndex = 0; // rewind bufferLast = 0; } return outgoing; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "byte peekByte() throws IOException;", "private byte nextByte(ByteBuffer inputBuffer) throws IOException {\n getAtLeastBytes(inputBuffer, 1);\n return inputBuffer.get();\n }", "byte [] getBuffer ();", "public byte get() throws TLVEncodingException {\r\n\t\tif (cursor >= limit)\r\n\t\t\tthrow new TLVEncodingException(\"End of buffer\");\r\n\r\n\t\treturn buffer[cursor++];\r\n\t}", "public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "protected abstract void getAtLeastBytes(ByteBuffer inputBuffer, int len) throws IOException;", "private int readBufferedContentInto(ByteBuffer byteBuffer) {\n long bytesToSkip = positionForNextRead - positionInGrpcStream;\n\n if (bytesToSkip >= bufferedContent.size()) {\n positionInGrpcStream += bufferedContent.size();\n invalidateBufferedContent();\n return 0;\n }\n\n if (bytesToSkip > 0) {\n positionInGrpcStream += bytesToSkip;\n bufferedContent = bufferedContent.substring(Math.toIntExact(bytesToSkip));\n }\n\n int bytesToWrite = Math.min(byteBuffer.remaining(), bufferedContent.size());\n put(bufferedContent, 0, bytesToWrite, byteBuffer);\n positionInGrpcStream += bytesToWrite;\n positionForNextRead += bytesToWrite;\n\n if (bytesToWrite < bufferedContent.size()) {\n bufferedContent = bufferedContent.substring(bytesToWrite);\n } else {\n invalidateBufferedContent();\n }\n\n return bytesToWrite;\n }", "public T peek() {\n if(fillCount==0){\n throw new RuntimeException(\"Ring buffer underflow\");\n }\n T return_val_p = rb[first];\n return return_val_p;\n }", "public byte[] getData() {\n try {\n int n2 = (int)this.len.get();\n if (this.buf == null) {\n return null;\n }\n if (n2 <= this.buf.length) return this.buf.get(n2);\n Log.w(TAG, \"getData: expected length (\" + n2 + \") > buffer length (\" + this.buf.length + \")\");\n throw new IllegalArgumentException(\"Blob:getData - size is larger than the real buffer length\");\n }\n catch (Exception exception) {\n Log.e(TAG, \"getData exception!\");\n exception.printStackTrace();\n return null;\n }\n }", "public ByteBuffer buffer() { return bb; }", "Buffer slice();", "public byte[] getBuffer () {\n\t\t\t\n\t\t\tif (index < 0)\n\t\t\t\treturn null;\n\n\t\t\tint len = index;\n\t\t\tbyte[] b = new byte[len+1];\n\t\t\tfor (int k=0; k <= len; k++)\n\t\t\t\tb[k] = buf[k];\n\n\t\t\treturn b;\n\t\t}", "@Override\r\n\tpublic Buffer getBytes(int start, int end, byte[] dst, int dstIndex) {\n\t\treturn null;\r\n\t}", "private E[] getNextBuffer(E[] buffer, long mask)\r\n/* 187: */ {\r\n/* 188:438 */ long offset = nextArrayOffset(mask);\r\n/* 189:439 */ E[] nextBuffer = (Object[])UnsafeRefArrayAccess.lvElement(buffer, offset);\r\n/* 190:440 */ UnsafeRefArrayAccess.soElement(buffer, offset, null);\r\n/* 191:441 */ return nextBuffer;\r\n/* 192: */ }", "public ByteBuffer getBuffer() {\n return ((ByteBuffer)this.b.asReadOnlyBuffer().position(this.pointer == 0 ? this.b.limit() : this.pointer)).slice().order(this.b.order());\n }", "com.google.protobuf.ByteString getUnreachableBytes(int index);", "public Buffer getEmptyBuffer()\n {\n // System.out.println(getClass().getName()+\":: getEmptyBuffer\");\n\n switch (protocol)\n {\n case ProtocolPush:\n if (!isEmptyBufferAvailable() && reset)\n return null;\n reset = false;\n return circularBuffer.getEmptyBuffer();\n case ProtocolSafe:\n synchronized (circularBuffer)\n {\n reset = false;\n while (!reset && !isEmptyBufferAvailable())\n {\n try\n {\n circularBuffer.wait();\n } catch (Exception e)\n {\n }\n }\n if (reset)\n return null;\n Buffer buffer = circularBuffer.getEmptyBuffer();\n circularBuffer.notifyAll();\n return buffer;\n }\n\n default:\n throw new RuntimeException();\n }\n }", "public static ByteOrderMark read(ByteBuffer buffer) {\n if (((java.nio.Buffer)buffer).position() != 0) { // explicitly casting\n return null;\n }\n\n byte[] potentialBom;\n // noinspection RedundantCast\n if (((java.nio.Buffer)buffer).remaining() < 5) {\n // noinspection RedundantCast\n potentialBom = new byte[((java.nio.Buffer)buffer).remaining()]; // explicitly casting\n } else {\n potentialBom = new byte[5];\n }\n\n buffer.get(potentialBom); // explicitly casting\n ((java.nio.Buffer)buffer).position(0); // explicitly casting\n return findBom(potentialBom);\n }", "private int readByte() {\n return src[srcPos++] & 0xFF;\n }", "void peekAhead(GetsState gs) {\n ChannelBuffer buf;\n //Tcl_DriverBlockModeProc *blockModeProc;\n int bytesLeft;\n boolean goto_cleanup = false; // Set to true when jumping to the\n // cleanup label, used to simulate a goto.\n\n buf = gs.buf;\n\n // If there's any more raw input that's still buffered, we'll peek into\n // that. Otherwise, only get more data from the channel driver if it\n // looks like there might actually be more data. The assumption is that\n // if the channel buffer is filled right up to the end, then there\n // might be more data to read.\n\n cleanup:{\n //blockModeProc = NULL;\n if (buf.next == null) {\n bytesLeft = buf.nextAdded - (buf.nextRemoved + gs.rawRead.i);\n if (bytesLeft == 0) {\n if (buf.nextAdded < buf.bufLength) {\n // Don't peek ahead if last read was short read.\n goto_cleanup = true;\n break cleanup;\n }\n // FIXME: This non-blocking check is currently disabled, non-blocking\n // is not currently supported and it is not clean why we would\n // need to depend on non-blocking IO when peeking anyway.\n if (blocking) {\n //blockModeProc = Tcl_ChannelBlockModeProc(chanPtr->typePtr);\n if (false /*blockModeProc == NULL*/) {\n // Don't peek ahead if cannot set non-blocking mode.\n goto_cleanup = true;\n break cleanup;\n }\n //StackSetBlockMode(chanPtr, TCL_MODE_NONBLOCKING);\n }\n }\n }\n filterBytes(gs);\n //if (blockModeProc != NULL) {\n // StackSetBlockMode(chanPtr, TCL_MODE_BLOCKING);\n //}\n }\n\n if (goto_cleanup) {\n buf.nextRemoved += gs.rawRead.i;\n gs.rawRead.i = 0;\n gs.totalChars += gs.charsWrote.i;\n //gs.bytesWrote.i = 0;\n gs.charsWrote.i = 0;\n }\n }", "@Override\n public ByteBuffer readInput(int minBytes) throws IOException {\n if (minBytes <= byteBuffer.remaining())\n return byteBuffer;\n else\n throw new EOFException(\"Cannot read more bytes - end of buffer reached\");\n }", "public ByteBuffer getUnboundedValue(T key) {\n int index = evaluator.evaluate(key);\n if (index < 0) {\n return null;\n }\n return mappedBuffer.asReadOnlyBuffer().position(offsets[index]).order(ByteOrder.LITTLE_ENDIAN);\n }", "@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}", "@Override\r\n\tpublic byte getByte(int pos) {\n\t\treturn buffer.get(pos);\r\n\t}", "default int readBlocking(byte[] buffer) {\n return readBlocking(buffer, 0, buffer.length);\n }", "@Override\n public int peekUnsignedByte(int offset) throws IOException\n {\n if (offset < 0)\n {\n throw new IOException(\"offset is negative\");\n }\n if (offset == 0)\n {\n return randomAccessRead.peek();\n }\n long currentPosition = randomAccessRead.getPosition();\n if (currentPosition + offset >= randomAccessRead.length())\n {\n throw new IOException(\"Offset position is out of range \" + (currentPosition + offset)\n + \" >= \" + randomAccessRead.length());\n }\n randomAccessRead.seek(currentPosition + offset);\n int peekValue = randomAccessRead.read();\n randomAccessRead.seek(currentPosition);\n return peekValue;\n }", "public ByteBuffer getByteBuffer();", "protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }", "private long readUntil(long pos) throws IOException {\n/* 86 */ if (pos < this.length) {\n/* 87 */ return pos;\n/* */ }\n/* */ \n/* 90 */ if (this.foundEOS) {\n/* 91 */ return this.length;\n/* */ }\n/* */ \n/* 94 */ int sector = (int)(pos >> 9L);\n/* */ \n/* */ \n/* 97 */ int startSector = this.length >> 9;\n/* */ \n/* */ \n/* 100 */ for (int i = startSector; i <= sector; i++) {\n/* 101 */ byte[] buf = new byte[512];\n/* 102 */ this.data.add(buf);\n/* */ \n/* */ \n/* 105 */ int len = 512;\n/* 106 */ int off = 0;\n/* 107 */ while (len > 0) {\n/* 108 */ int nbytes = this.src.read(buf, off, len);\n/* */ \n/* 110 */ if (nbytes == -1) {\n/* 111 */ this.foundEOS = true;\n/* 112 */ return this.length;\n/* */ } \n/* 114 */ off += nbytes;\n/* 115 */ len -= nbytes;\n/* */ \n/* */ \n/* 118 */ this.length += nbytes;\n/* */ } \n/* */ } \n/* */ \n/* 122 */ return this.length;\n/* */ }", "private E newBufferPeek(E[] nextBuffer, long index)\r\n/* 212: */ {\r\n/* 213:464 */ long offset = newBufferAndOffset(nextBuffer, index);\r\n/* 214:465 */ E n = UnsafeRefArrayAccess.lvElement(nextBuffer, offset);\r\n/* 215:466 */ if (null == n) {\r\n/* 216:468 */ throw new IllegalStateException(\"new buffer must have at least one element\");\r\n/* 217: */ }\r\n/* 218:470 */ return n;\r\n/* 219: */ }", "com.google.protobuf.ByteString getCached(int index);", "public static ByteBuf getExpectedBuffer() {\n String msgHex = \"00 01 00 0b 00 00 00 0a 00 21 63 6f 6e 73 75 6d 65 72 2d 63 6f 6e 73 6f 6c 65 2d 63 \" +\n \"6f 6e 73 75 6d 65 72 2d 35 39 37 35 30 2d 31 ff ff ff ff 00 00 01 f4 00 00 00 01 03 \" +\n \"20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 0a 63 6f 64 65 63 2d 74 65 73 74 \" +\n \"00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff \" +\n \"00 10 00 00 00 00 00 00 00 00\";\n return TestUtils.hexToBinary(msgHex);\n }", "CharArrayBuffer getBuffer()\n ;", "public static int findByteOffset(ByteBuffer buffer, byte[] marker) {\n int position = buffer.position();\n int loop = (buffer.limit() - position) / marker.length;\n while (loop > 0) {\n int index = 0;\n while (buffer.get() == marker[index++]) {\n if (index == marker.length) {\n buffer.position(position);\n return position;\n }\n }\n loop--;\n position++;\n buffer.position(position);\n }\n\n buffer.position(position);\n return -1;\n }", "public abstract void nextBytes(byte[] byteBuffer);", "private int nextWebSocketByte() throws IOException {\n while (payloadLength == 0L) {\n nextWebSocketFrame();\n if (isClosed() || isFailed()) {\n return EOF;\n }\n }\n int data = inputStream.read() ^ maskingBytes[maskingIndex];\n payloadLength--;\n maskingIndex++;\n maskingIndex &= MASK_MASKING_INDEX;\n return data;\n }", "public byte[] getNextInput(byte[] buffer) throws IOException {\r\n // byte[] buffer = new byte[8192];\r\n file.seek(currOffset);\r\n file.read(buffer);\r\n currOffset += buffer.length;\r\n return buffer;\r\n }", "@Override\n public byte readByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return (byte) randomAccessRead.read();\n }", "public byte readByte()\r\n/* 387: */ {\r\n/* 388:400 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 389:401 */ return super.readByte();\r\n/* 390: */ }", "abstract public ByteString getBlocksBuffer();", "int filterBytes(GetsState gs) {\n ChannelBuffer buf;\n byte[] raw;\n int rawStart, rawEnd;\n char[] dst;\n int offset, toRead, /*dstNeeded,*/ spaceLeft, result, rawLen, length;\n TclObject obj;\n final int ENCODING_LINESIZE = 20; // Lower bound on how many bytes\n // to convert at a time. Since we\n // don't know a priori how many\n // bytes of storage this many\n // source bytes will use, we\n // actually need at least\n // ENCODING_LINESIZE bytes of room.\n\n boolean goto_read = false; // Set to true when jumping to the read\n // label, used to simulate a goto.\n\n final boolean debug = false;\n\n obj = gs.obj;\n\n // Subtract the number of bytes that were removed from channel buffer\n // during last call.\n\n buf = gs.buf;\n if (buf != null) {\n buf.nextRemoved += gs.rawRead.i;\n if (buf.nextRemoved >= buf.nextAdded) {\n buf = buf.next;\n }\n }\n gs.totalChars += gs.charsWrote.i;\n\n read: while (true) {\n if (goto_read || (buf == null) || (buf.nextAdded == buf.BUFFER_PADDING)) {\n // All channel buffers were exhausted and the caller still hasn't\n // seen EOL. Need to read more bytes from the channel device.\n // Side effect is to allocate another channel buffer.\n\n //read:\n if (blocked) {\n if (!blocking) {\n gs.charsWrote.i = 0;\n gs.rawRead.i = 0;\n return -1;\n }\n blocked = false;\n }\n if (getInput() != 0) {\n gs.charsWrote.i = 0;\n gs.rawRead.i = 0;\n return -1;\n }\n buf = inQueueTail;\n gs.buf = buf;\n }\n\n // Convert some of the bytes from the channel buffer to characters.\n // Space in obj's string rep is used to hold the characters.\n\n rawStart = buf.nextRemoved;\n raw = buf.buf;\n rawEnd = buf.nextAdded;\n rawLen = rawEnd - rawStart;\n\n toRead = ENCODING_LINESIZE;\n if (toRead > rawLen) {\n toRead = rawLen;\n }\n dst = new char[toRead];\n result = externalToUnicode(raw, rawStart, rawLen,\n dst, 0, toRead,\n gs.rawRead, /*gs.bytesWrote*/ null, gs.charsWrote,\n gs.charToBytes);\n TclString.append(gs.obj, dst, 0, gs.charsWrote.i);\n\n if (debug) {\n System.out.println(\"filterBytes chars\");\n\n String srep = gs.obj.toString();\n int len = srep.length();\n\n for (int i=0; i < len; i++) {\n char c = srep.charAt(i);\n String prep;\n if (c == '\\r') {\n prep = \"\\\\r\";\n } else if (c == '\\n') {\n prep = \"\\\\n\";\n } else {\n prep = \"\" + c;\n }\n\n System.out.println(\"filtered[\" + i + \"] = '\" +\n prep +\n \"' (int) \" + ((int) srep.charAt(i)) +\n \" 0x\" + Integer.toHexString((int) srep.charAt(i)));\n }\n }\n\n // Make sure that if we go through 'gets', that we reset the\n // TCL_ENCODING_START flag still. [Bug #523988]\n\n encodingStart = false;\n\n if (result == TCL_CONVERT_MULTIBYTE) {\n // The last few bytes in this channel buffer were the start of a\n // multibyte sequence. If this buffer was full, then move them to\n // the next buffer so the bytes will be contiguous. \n\n if (debug) {\n System.out.println(\"TCL_CONVERT_MULTIBYTE decode result found\");\n }\n\n ChannelBuffer next;\n int extra;\n\n next = buf.next;\n if (buf.nextAdded < buf.bufLength) {\n if (gs.rawRead.i > 0) {\n // Some raw bytes were converted to UTF-8. Fall through,\n // returning those UTF-8 characters because a EOL might be\n // present in them.\n } else if (eofCond) {\n // There was a partial character followed by EOF on the\n // device. Fall through, returning that nothing was found.\n\n buf.nextRemoved = buf.nextAdded;\n } else {\n // There are no more cached raw bytes left. See if we can\n // get some more.\n\n goto_read = true;\n continue read; //goto read;\n }\n } else {\n if (next == null) {\n next = new ChannelBuffer(bufSize);\n buf.next = next;\n inQueueTail = next;\n }\n extra = rawLen - gs.rawRead.i;\n System.arraycopy(raw, rawStart + gs.rawRead.i,\n next.buf, buf.BUFFER_PADDING - extra, extra);\n next.nextRemoved -= extra;\n buf.nextAdded -= extra;\n\n if (debug) {\n System.out.println(\"copied \" + extra + \" bytes to \" +\n \"next ChannelBuffer\");\n }\n }\n }\n\n break read; // End loop in the normal case\n } // End read labeled while loop\n\n gs.buf = buf;\n return 0;\n }", "public byte [] getBuf() {\r\n return bop.getBuf();\r\n }", "public byte[] getByteArray() {\n try {\n byte[] ret = (byte[]) byteBuffers.dequeue();\n num++;\n //Thread.dumpStack();\n if(ZenBuildProperties.dbgDataStructures){\n System.out.write('b');\n System.out.write('a');\n System.out.write('_');\n System.out.write('c');\n System.out.write('a');\n System.out.write('c');\n System.out.write('h');\n System.out.write('e');\n edu.uci.ece.zen.utils.Logger.writeln(num);\n }\n\n if (ret == null) {\n return (byte[]) imm.newArray(byte.class, 1024);\n } else {\n return ret;\n }\n } catch (Exception e) {\n ZenProperties.logger.log(Logger.FATAL, getClass(), \"getByteArray\", e);\n System.exit(-1);\n }\n return null;\n }", "int getBytesInBufferAvailable() {\n if (this.count == this.pos) return 0;\n else return this.buf.length - this.pos;\n }", "private ByteBuf nextBufferForFrame(int bytesToRead) {\n ByteBuf buf = buffers.getFirst();\n ByteBuf frame;\n\n if (buf.readableBytes() > bytesToRead) {\n frame = buf.retain().readSlice(bytesToRead);\n totalSize -= bytesToRead;\n } else {\n frame = buf;\n buffers.removeFirst();\n totalSize -= frame.readableBytes();\n }\n\n return frame;\n }", "public T peek() {\n if (isEmpty()) {\n throw new RuntimeException(\"Ring buffer underflow\");\n }\n return rb[first];\n // Return the first item. None of your instance variables should change.\n }", "private static byte getNext() {\n return (byte)Tool.getRandomlyFromRange(Byte.MIN_VALUE, Byte.MAX_VALUE);\n }", "private ByteBuffer tryRead(long address, ByteBuffer destination)\n {\n bouquet.getAddressBoundary().getPageMoveLock().readLock().lock();\n try\n {\n ByteBuffer read = null;\n do\n {\n Dereference dereference = bouquet.getAddressBoundary().dereference(address);\n dereference.getLock().lock();\n try\n {\n BlockPage blocks = dereference.getBlockPage();\n if (blocks != null)\n {\n read = blocks.read(address, destination);\n }\n }\n finally\n {\n dereference.getLock().unlock();\n }\n }\n while (read == null);\n \n return read;\n }\n finally\n {\n bouquet.getAddressBoundary().getPageMoveLock().readLock().unlock();\n }\n }", "byte readByte();", "private ByteBuf nextBufferForFrame(int bytesToRead) {\n ByteBuf buf = buffers.getFirst();\n ByteBuf frame;\n\n if (buf.readableBytes() > bytesToRead) {\n frame = buf.retain().readSlice(bytesToRead);\n totalSize -= bytesToRead;\n } else {\n frame = buf;\n buffers.removeFirst();\n totalSize -= frame.readableBytes();\n }\n\n return frame;\n }", "public final int getByte() throws IOException {\r\n b3 = 0;\r\n\r\n b3 = (tagBuffer[bPtr] & 0xff);\r\n bPtr += 1;\r\n\r\n return b3;\r\n }", "public String readUntil(String pattern) {\n try {\n char lastChar = pattern.charAt(pattern.length() - 1);\n StringBuffer sb = new StringBuffer();\n boolean found = false;\n char ch = (char) in.read();\n while (true) {\n System.out.print(ch);\n sb.append(ch);\n if (ch == lastChar) {\n if (sb.toString().endsWith(pattern)) {\n return sb.toString();\n }\n }\n ch = (char) in.read();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public int peek();", "public NV readNext() throws ThingsException;", "@Nullable\n ReadableByteChannel get(PageId pageId, int pageOffset);", "@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }", "public int read() throws IOException {\n/* 173 */ long next = this.pointer + 1L;\n/* 174 */ long pos = readUntil(next);\n/* 175 */ if (pos >= next) {\n/* 176 */ byte[] buf = this.data.get((int)(this.pointer >> 9L));\n/* */ \n/* 178 */ return buf[(int)(this.pointer++ & 0x1FFL)] & 0xFF;\n/* */ } \n/* 180 */ return -1;\n/* */ }", "public ByteBuffer getBuffer() {\n return _buf;\n }", "public final ByteBuffer getBuffer() {\n return buf;\n }", "public long currentReadBytes()\r\n/* 209: */ {\r\n/* 210:398 */ return this.currentReadBytes.get();\r\n/* 211: */ }", "short getQ( byte[] buffer, short offset );", "long fetch8(BytesStore bytes, @NonNegative long off) throws IllegalStateException, BufferUnderflowException {\n return bytes.readUnsignedByte(off);\n }", "public E peek() {\n try {\n return b(1, (Long) null, (TimeUnit) null);\n } catch (InterruptedException unused) {\n return null;\n }\n }", "ByteSequence getByteSequence(Key key) throws IOException;", "public byte[] getBytes()\r\n {\r\n return buf;\r\n }", "protected byte _getByte(int index)\r\n/* 323: */ {\r\n/* 324:337 */ return HeapByteBufUtil.getByte(this.array, index);\r\n/* 325: */ }", "int readNonBlocking(byte[] buffer, int offset, int length);", "public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }", "public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }", "Object peek();", "@Override\n\tpublic Buffer getBuffer(PageID pageID) throws BufferException {\n\t\tint containerID = (pageID != null) ? pageID.getContainerNo() : 0;\n\n\t\tBuffer buffer = bufferMapping[containerID];\n\n\t\tif (buffer == null) {\n\t\t\tthrow new BufferException(\n\t\t\t\t\t\"No buffer associated with page number %s.\", pageID);\n\t\t}\n\n\t\treturn buffer;\n\t}", "private Buffer getBufferByPosition(int pos)\n throws IOException\n {\n return getBuffer(pos / BLOCK_SIZE);\n }", "private void readMoreBytesFromStream() throws IOException {\n if (!innerStreamHasMoreData) {\n return;\n }\n\n int bufferSpaceAvailable = buffer.length - bytesInBuffer;\n if (bufferSpaceAvailable <= 0) {\n return;\n }\n\n int bytesRead =\n stream.read(buffer, bytesInBuffer, bufferSpaceAvailable);\n\n if (bytesRead == -1) {\n innerStreamHasMoreData = false;\n } else {\n bytesInBuffer += bytesRead;\n }\n }", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "byte read()\n \tthrows IOException {\n \t//\n \t// Ensure that one byte can be read\n \tensureContinuousBlock(1);\n \t//\n \t// Simply return the byte\n \treturn _random[_o++];\n }", "public void testNextBytesNoSuchElementException() throws Exception {\r\n InputStream is = new ByteArrayInputStream(new byte[0]);\r\n BytesIterator iterator = new InputStreamBytesIterator(is, 10);\r\n try {\r\n iterator.nextBytes();\r\n fail(\"if no more bytes can be read, throw NoSuchElementException\");\r\n } catch (NoSuchElementException e) {\r\n // good\r\n }\r\n }", "private int availableFirst() {\n return data.isEmpty() ? 0 : data.getFirst().remaining();\n }", "Buffer slice(int start, int length);", "public char[] getResultBuffer() { return b; }", "byte[] getByteContent() throws IOException;", "@Override\n public byte[] getBuffer() {\n return EMPTY_RESULT;\n }", "public byte readByteNonBlock() {\n return ((byte) readLongNonBlock());\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 }", "boolean hasMoreBytes();", "public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n return new byte[0];\n }\n }\n catch (IOException e) {\n return new byte[0];\n }\n }", "@Override\n public ByteBuffer extractPattern(byte[] bytes, int offset, int length) {\n if (bytes.length <= 1) {\n return ByteBuffer.wrap(bytes);\n }\n int pos = offset;\n int start = pos;\n for (; pos < length && bytes[pos] != 0; ++pos)\n ;\n int stop = pos;\n return ByteBuffer.wrap(bytes, start, stop - start);\n }", "T peek();", "T peek();", "T peek();", "T peek();", "int FE_Extract(byte[] data1, int w1, int h1,\n int step1, byte[] buffer);", "public ByteBuf readBytes(ByteBuffer dst)\r\n/* 495: */ {\r\n/* 496:508 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 497:509 */ return super.readBytes(dst);\r\n/* 498: */ }", "public static byte[] subbytesTillNull(byte[] data, int offset) {\r\n \tint new_length = 0;\r\n for (int i = offset; i < data.length; i++) {\r\n if (data[i] == 0x00) { // null\r\n \tnew_length = i;\r\n break;\r\n }\r\n }\r\n\r\n byte[] out = new byte[new_length];\r\n\r\n for (int x = offset; x < new_length; x++) {\r\n out[x - offset] = data[x];\r\n }\r\n\r\n return out;\r\n }", "protected ByteBuffer getBuffer() {\n return buffer;\n }", "private void fetch(byte[] target) throws IOException {\n\t\tint actuallyRead=0;\n\t\tint required=target.length;\n\t\tlog.debug(\"Need to read \"+required+\" to fill buffer\");\n\t\twhile(actuallyRead<required) {\n\t\t\tactuallyRead+=fromDevice.read(target,actuallyRead,required-actuallyRead);\n\t\t\tlog.debug(\"Now read \"+actuallyRead);\n\t\t}\n\t}", "int peek();", "int peek();", "private int readbit(ByteBuffer buffer) {\n if (numberLeftInBuffer == 0) {\n loadBuffer(buffer);\n numberLeftInBuffer = 8;\n }\n int top = ((byteBuffer >> 7) & 1);\n byteBuffer <<= 1;\n numberLeftInBuffer--;\n return top;\n }", "@Override\r\n\tpublic Buffer slice(int start, int end) {\n\t\t\r\n\t\treturn null;\r\n\t}" ]
[ "0.6165694", "0.584689", "0.5783038", "0.57561314", "0.57498986", "0.57469", "0.5599719", "0.5519279", "0.547145", "0.54657316", "0.54622304", "0.54579175", "0.5427984", "0.5408731", "0.53911877", "0.53659105", "0.5357306", "0.5330887", "0.52877545", "0.5282544", "0.5250319", "0.5246869", "0.52393895", "0.522364", "0.5221746", "0.5212328", "0.5190597", "0.5188186", "0.5158345", "0.5155638", "0.5155043", "0.5142855", "0.5139989", "0.51360273", "0.5131878", "0.51117724", "0.5110827", "0.51025903", "0.50932693", "0.5092774", "0.5091256", "0.5089666", "0.5085711", "0.5076585", "0.50637645", "0.5057806", "0.50430644", "0.50268364", "0.50200653", "0.50110734", "0.50017464", "0.4998173", "0.49968377", "0.4979069", "0.49741718", "0.49615607", "0.49606147", "0.4955535", "0.49511075", "0.4943449", "0.4939235", "0.49296218", "0.49236774", "0.49233127", "0.4918738", "0.491692", "0.49077284", "0.4904588", "0.4904588", "0.48685008", "0.48610055", "0.4858306", "0.4857002", "0.485693", "0.4850862", "0.4850747", "0.48487163", "0.48486117", "0.48462266", "0.4844449", "0.48433995", "0.48417494", "0.4839425", "0.48363984", "0.48203075", "0.48162633", "0.48151338", "0.4812594", "0.4812594", "0.4812594", "0.4812594", "0.48109198", "0.4810068", "0.4808365", "0.48048297", "0.48045796", "0.4801204", "0.4801204", "0.48007226", "0.47949547" ]
0.7514552
0
Returns the last byte in the buffer.
public int last() { if (bufferIndex == bufferLast) return -1; synchronized (buffer) { int outgoing = buffer[bufferLast - 1]; bufferIndex = 0; bufferLast = 0; return outgoing; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public char lastChar() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn (char) (-1);\n\t\treturn (char) last();\n\t}", "public T getLast() {\n if (this.getSize() > 0) {\n return buffer[index];\n }\n return null;\n }", "public int lastCharacter() {\n return string.codePointAt(string.length() - 1);\n }", "public long lastReadBytes()\r\n/* 199: */ {\r\n/* 200:384 */ return this.lastReadBytes;\r\n/* 201: */ }", "public byte get() throws TLVEncodingException {\r\n\t\tif (cursor >= limit)\r\n\t\t\tthrow new TLVEncodingException(\"End of buffer\");\r\n\r\n\t\treturn buffer[cursor++];\r\n\t}", "public int getLast() {\n if (size == 0)\n return NO_ELEMENT;\n else\n return endOfBlock[numberOfBlocks - 1] - 1;\n }", "public int read() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferIndex++] & 0xff;\n\t\t\tif (bufferIndex == bufferLast) { // rewind\n\t\t\t\tbufferIndex = 0;\n\t\t\t\tbufferLast = 0;\n\t\t\t}\n\t\t\treturn outgoing;\n\t\t}\n\t}", "public int getLast() {\n\treturn _last;\n }", "public int getLast() {\n\t\treturn last;\n\t}", "public char readChar() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn (char) (-1);\n\t\treturn (char) last();\n\t}", "public byte readByteNonBlock() {\n return ((byte) readLongNonBlock());\n }", "public final int getByte() throws IOException {\r\n b3 = 0;\r\n\r\n b3 = (tagBuffer[bPtr] & 0xff);\r\n bPtr += 1;\r\n\r\n return b3;\r\n }", "@Override\r\n\tpublic byte getByte(int pos) {\n\t\treturn buffer.get(pos);\r\n\t}", "public long lastWrittenBytes()\r\n/* 204: */ {\r\n/* 205:391 */ return this.lastWrittenBytes;\r\n/* 206: */ }", "@Override\r\n\tpublic T last() {\n\t\treturn tail.content;\r\n\t}", "public byte get_max() {\n return (byte)getSIntBEElement(offsetBits_max(), 8);\n }", "@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}", "Integer getLastDigit() {\n return lastDigit;\n }", "private byte nextByte(ByteBuffer inputBuffer) throws IOException {\n getAtLeastBytes(inputBuffer, 1);\n return inputBuffer.get();\n }", "public static native long GetLast(long lpjFbxArrayVector2);", "byte peekByte() throws IOException;", "public byte getByteC() {\n\t\treturn (byte) -get();\n\t}", "public int read ()\n {\n return (_buffer.remaining() > 0) ? (_buffer.get() & 0xFF) : -1;\n }", "public int getCharEnd() {\n\t\treturn -1;\n\t}", "public int getUByte() { return bb.get() & 0xff; }", "public static char getLastChar (TextFragment textFragment) {\r\n \t\tif (textFragment == null)\r\n \t\t\treturn '\\0';\r\n \r\n \t\tString st = textFragment.getCodedText();\r\n \r\n \t\tint pos = TextFragment.indexOfLastNonWhitespace(st, -1, 0, true, true, true, true);\r\n \t\tif (pos == -1)\r\n \t\t\treturn '\\0';\r\n \r\n \t\treturn st.charAt(pos);\r\n \t}", "public byte getByteA() {\n\t\treturn (byte) (get() - 128);\n\t}", "public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }", "public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }", "@Override\n public byte readByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return (byte) randomAccessRead.read();\n }", "@Override\n public int readUnsignedByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return randomAccessRead.read();\n }", "String getLastInt();", "public byte readByte() {\n return ((byte) readLong());\n }", "public String getBufferEndCounter() {\r\n\t\treturn bufferEndCounter;\r\n\t}", "public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }", "public U getLast(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(numElems-1);\r\n\t }", "private int readByte() {\n return src[srcPos++] & 0xFF;\n }", "public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}", "public byte get_byte() {\n return local_byte;\n }", "protected final byte pop() {\r\n return this.memory[(++this.sp & 0xff) | 0x100];\r\n }", "public TypeHere getLast() {\n return items[size - 1];\n }", "private final int bufferedInputBytesRemaining() {\n return reading ? (buffer.remaining() + (ungotc != -1 ? 1 : 0)) : 0;\n }", "public long lastReadLength() {\n return lastReadLength;\n }", "public byte toByte() {\n return this.toByteArray()[0];\n }", "public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}", "public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}", "public int lastIndexOf(int ch) {\n/* 464 */ return this.m_str.lastIndexOf(ch);\n/* */ }", "public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "public static int lastIndexOf(StringBuffer buf, String find)\r\n {\r\n return lastIndexOf(buf, find, buf.length() - 1);\r\n }", "public int lastElement() {\r\n\r\n\t\treturn (usedSize - 1);\r\n\r\n\t}", "public char peek() {\r\n return characters[size -1];\r\n }", "public T getLast() {\n\t\t//return the data in the last node\n\t\treturn getLastNode().getData();\n\t}", "public Item getLast() {\n return items[size - 1];\n }", "public int Rear() {\n if (isEmpty())\n return -1;\n return buf[e];\n }", "public T getLast();", "public T getLast();", "public int getUnsignedByte() {\n\t\treturn payload.getUnsigned();\n\t}", "int getBytesInBufferAvailable() {\n if (this.count == this.pos) return 0;\n else return this.buf.length - this.pos;\n }", "public process get_last() {\n\t\treturn queue.getLast();\n\t}", "@Override\r\n\tpublic Object last(){\r\n\t\tcheck();\r\n\t\treturn tail.value;\r\n\t}", "char getChar () { \n return m_pos < m_len ? m_buffer.charAt (m_pos) : '\\0';\n }", "com.google.protobuf.ByteString\n getLastNameBytes();", "public int getLastIndex() {\n return lastIndex;\n }", "public int read()\n throws IOException\n {\n if ( position == this.buffer.length() )\n {\n return -1;\n }\n\n return this.buffer.charAt( this.position++ );\n }", "public byte getByte(String key)\n {\n return getByte(key, (byte) 0);\n }", "public E getLast()// you finish (part of HW#4)\n\t{\n\t\t// If the tree is empty, return null\n\t\t// FIND THE RIGHT-MOST RIGHT CHILD\n\t\t// WHEN you can't go RIGHT anymore, return the node's data to last Item\n\t\tif (root == null)\n\t\t\treturn null;\n\t\tBinaryNode<E> iteratorNode = root;\n\t\twhile (iteratorNode.hasRightChild())\n\t\t\titeratorNode = iteratorNode.getRightChild();\n\t\treturn iteratorNode.getData();\n\t}", "@Override\n public final char last() {\n if (upper == lower) {\n return DONE;\n }\n return text.charAt(index = upper-1);\n }", "protected short getLastTLVOffset(byte[] buffer, short Lc) {\n short offset = firstTLVOffset;\n short lastTLVOffset;\n do {\n lastTLVOffset = offset;\n // advance to next TLV\n offset++;\n short length = buffer[offset];\n offset = (short)(offset + length + 1);\n } while (offset < Lc);\n return lastTLVOffset;\n }", "public String getLast()\n {\n return lastItem;\n }", "protected byte _getByte(int index)\r\n/* 323: */ {\r\n/* 324:337 */ return HeapByteBufUtil.getByte(this.array, index);\r\n/* 325: */ }", "public E peekLast();", "public char failsafe_GET()\n { return (char)((char) get_bytes(data, 35, 1)); }", "public int readByte() {\n waitForData();\n try {\n return m_DataInputStream.readByte();\n }\n catch (IOException e) {\n return 256;\n }\n }", "public E last() {\n if (this.isEmpty()) return null;\r\n return this.tail.getElement();\r\n }", "public byte get() {\n\t\treturn payload.get();\n\t}", "public static byte getUniqueByte() {\n return (byte) getUniqueChar();\n }", "private int readCharBackward() {\r\n \t\tif (--index < 0 || \r\n \t\t\t\tdocumentContent == null ||\r\n \t\t\t\tdocumentContent.length() <= index)\r\n \t\t\treturn -1;\r\n \r\n \t\ttry {\r\n \t\t\treturn documentContent.charAt(index);\r\n \t\t} catch (StringIndexOutOfBoundsException e) {\r\n \t\t\treturn -1;\r\n \t\t}\r\n \t}", "private Line getLastLine() {\n\t\treturn doily.lines.get(doily.lines.size()-1);\n\t}", "T last();", "public DrawingCommand getLastCommand() {\r\n\t\tint i = this.commands.size() - 1;\r\n\t\tif (i >= 0) {\r\n\t\t\treturn this.commands.get(this.commands.size() - 1);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public T getLast(){\n\treturn _end.getCargo();\n }", "public byte readByte() throws IOException {\n\t\treturn (byte) read();\n\t}", "public int getEnd() {\n switch(getType()) {\n case Insertion:\n case SNP:\n case InterDup:\n case TandemDup:\n case TransDup:\n return pos;\n default:\n return pos + maxLen() - 1;\n }\n }", "com.google.protobuf.ByteString getLastNameBytes();", "public int getBytePosition() {\n return bytePosition;\n }", "public char getMax() throws EmptyHeapException;", "public int peekBack() {\n if(tail == null) {\n return Integer.MIN_VALUE;\n }\n\n return tail.val;\n }", "public String getLastCommand() {\n return lastCommand;\n }", "Position<T> last();", "public int Front() {\n if (isEmpty())\n return -1;\n return buf[b];\n }", "public String getLastMsg() {\n String s = msgs.peekTail();\n return s == null ? \"\" : s;\n }", "public long currentReadBytes()\r\n/* 209: */ {\r\n/* 210:398 */ return this.currentReadBytes.get();\r\n/* 211: */ }", "public E last() {\n if(isEmpty()){\n return null;\n }else{\n return trailer.getPrev().getElement();\n }\n }", "public String getLastCommit() {\n return getCellContent(LAST_COMMIT);\n }", "public byte[] getLastResponse() {\n return Arrays.copyOf(lastResponse, lastResponse.length);\n }", "public static int getUnsignedByte(byte value) {\n return value >= 0 ? value : Byte.MAX_VALUE - value;\n }", "public final int getUByte(int index) { return bb.get(index) & 0xff; }", "public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "public int readByte() {\n try {\n return in.read();\n } catch (IOException e) {\n print(\"Error reading byte from \" + portName);\n }\n return -1;\n }", "public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}" ]
[ "0.73214716", "0.7102319", "0.6562", "0.6505567", "0.646265", "0.6225404", "0.6220312", "0.6108444", "0.60985625", "0.6067774", "0.60577196", "0.60068786", "0.5964445", "0.5957746", "0.5945044", "0.5938022", "0.592988", "0.59257275", "0.5889585", "0.58815104", "0.58782595", "0.5868318", "0.5849219", "0.5826526", "0.5808344", "0.5786704", "0.5776459", "0.57738554", "0.57738554", "0.57734376", "0.5743203", "0.574302", "0.5724691", "0.5711719", "0.5700759", "0.569518", "0.5693873", "0.5690841", "0.5680806", "0.5672497", "0.56664145", "0.566383", "0.56636333", "0.5654218", "0.5648721", "0.5648721", "0.56435937", "0.56330496", "0.56155336", "0.55973285", "0.55923015", "0.5580226", "0.5575175", "0.55679196", "0.5557142", "0.5557142", "0.5546102", "0.55457896", "0.55442274", "0.5521352", "0.5520632", "0.5519467", "0.55162305", "0.5500828", "0.5494372", "0.54921895", "0.5485362", "0.5475439", "0.5474718", "0.5458793", "0.5448465", "0.54457015", "0.5442835", "0.5441144", "0.5437298", "0.5433127", "0.54327583", "0.54315954", "0.5430225", "0.5429722", "0.5419185", "0.54184735", "0.5403538", "0.5398051", "0.53934735", "0.538775", "0.5386632", "0.538087", "0.5379181", "0.5378679", "0.53780556", "0.5373142", "0.53680676", "0.5367746", "0.5364893", "0.53584033", "0.5357223", "0.534586", "0.5339747", "0.5335943" ]
0.736363
0
Reads a byte from the buffer as char.
public char readChar() { if (bufferIndex == bufferLast) return (char) (-1); return (char) last(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public char readChar() {\n return ((char) readLong());\n }", "public char readChar() throws IOException {\n\t\tbyte[] b = new byte[2];\n\n\t\tif (read(b, 0, 2) < 2) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tchar c = (char) (b[0] << 8 | (b[1] & 0xFF));\n\t\treturn c;\n\t}", "@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}", "public byte readByte() throws IOException {\n return in.readByte();\n }", "public abstract char read_char();", "public byte readByte() throws IOException {\n\t\treturn (byte) read();\n\t}", "public char getChar() throws IOException {\r\n\t\treturn (char)lineReader.read();\r\n\t}", "byte readByte();", "@Override\n public byte readByte() throws IOException\n {\n if (!hasRemaining())\n {\n throw new IOException(\"End off buffer reached\");\n }\n return (byte) randomAccessRead.read();\n }", "public byte readByte() {\n return ((byte) readLong());\n }", "char readChar();", "private byte nextByte(ByteBuffer inputBuffer) throws IOException {\n getAtLeastBytes(inputBuffer, 1);\n return inputBuffer.get();\n }", "@Override\r\n\tpublic byte getByte(int pos) {\n\t\treturn buffer.get(pos);\r\n\t}", "public char getChar(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn (char) bytes[index];\n\t}", "public static char readChar()\n {\n \tString ch = scanner.next();\n \treturn ch.charAt(0);\n }", "private char readChar() {\r\n\t\tInputStream in = System.in;\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\tString line = null;\r\n\r\n\t\ttry {\r\n\t\t\tline = br.readLine();\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn line.toLowerCase().charAt(0);\r\n\t}", "char getReadChar();", "private int readByte() {\n return src[srcPos++] & 0xFF;\n }", "public char readChar() {\n return readNextLine().charAt(0);\n }", "public byte readScalarByte() throws java.io.IOException;", "char getChar () { \n return m_pos < m_len ? m_buffer.charAt (m_pos) : '\\0';\n }", "private static char toChar(byte theByte) {\n if (theByte < 0) {\n return (char) (256 + theByte);\n } else {\n return (char) theByte;\n }\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead + pos];\n }", "public int readByte() {\n try {\n return in.read();\n } catch (IOException e) {\n print(\"Error reading byte from \" + portName);\n }\n return -1;\n }", "public char getChar()\n throws IOException\n {\n return (char) lineNumberReader.read();\n }", "byte peekByte() throws IOException;", "public char keyboardReadChar() {\n BufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n char charItem = ' ';\n try {\n charItem = (char) myReader.read();\n } // try\n catch (IOException IOError) {\n System.out.println(\"Read Error in Termio.KeyboardReadChar method\");\n } // catch\n return charItem;\n }", "public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead = port.readBytes(1);\n\t\t\tif(debug) {\n\t\t\t\tString byteName = String.format(\"%02x\", byteRead[0]);\n\t\t\t\tSystem.out.print(byteName + \"\\t\");;\n\t\t\t}\n\t\t\treturn byteRead[0];\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "public final char yycharat(int pos) {\n\t\treturn zzBuffer[zzStartRead+pos];\n\t}", "public char readChar()\r\n/* 441: */ {\r\n/* 442:454 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 443:455 */ return super.readChar();\r\n/* 444: */ }", "public char at(int pos) {\r\n return fCharBuffer.at(pos);\r\n }", "public final char yycharat(int pos) {\n return zzBufferArray != null ? zzBufferArray[zzStartRead+pos]:zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBufferArray != null ? zzBufferArray[zzStartRead+pos]:zzBuffer.charAt(zzStartRead+pos);\n }", "byte read()\n \tthrows IOException {\n \t//\n \t// Ensure that one byte can be read\n \tensureContinuousBlock(1);\n \t//\n \t// Simply return the byte\n \treturn _random[_o++];\n }", "public int readByte() {\n waitForData();\n try {\n return m_DataInputStream.readByte();\n }\n catch (IOException e) {\n return 256;\n }\n }", "public static char readChar(String prompt) throws IOException {\r\n\t\tchar 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 = (char)reader.read();\r\n\t\t\t\t// alternative value = (char)reader.readLine().charAt(0);\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}\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public char read() {\n char ch = this.peek();\n this.index++;\n return ch;\n }", "@Override\n\tpublic int ReadByte()\n\t{\n//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:\n//ORIGINAL LINE: byte[] oneByteBuffer = new byte[1];\n\t\tbyte[] oneByteBuffer = new byte[1];\n\t\tint num = Read(oneByteBuffer, 0, 1);\n\t\tif (num <= 0)\n\t\t{\n\t\t\t// return -1 to indicate that no byte was read.\n\t\t\treturn -1;\n\t\t}\n\t\treturn oneByteBuffer[0];\n\t}", "public char getChar();", "final public char yycharat(int pos) {\n return yy_buffer[yy_startRead+pos];\n }", "final public char yycharat(int pos) {\n return yy_buffer[yy_startRead+pos];\n }", "private static byte charToByte(char c) {\r\n\t\treturn (byte) \"0123456789ABCDEF\".indexOf(c);\r\n\t}", "private static byte charToByte(char c) {\n\t\treturn (byte) \"0123456789ABCDEF\".indexOf(c);\n\t}", "public abstract byte read_octet();", "public final int getByte() throws IOException {\r\n b3 = 0;\r\n\r\n b3 = (tagBuffer[bPtr] & 0xff);\r\n bPtr += 1;\r\n\r\n return b3;\r\n }", "private char getChar() {\n\t\t//Must declare as int, because -1 in char is 65535\n\t\tint c = '\\0';\n\t\ttry {\n\t\t\tc = inFile.read();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error occurred when trying to read characters\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (c == -1) {\n\t\t\teof = true;\n\t\t\treturn EndOfFile;\n\t\t} else if (c == '\\n' || c == '\\r') {\n\t\t\tlineNumber++;\n\t\t}\n\t\treturn (char) c;\t\n\t}", "private static byte charToByte(char c) {\n return (byte) \"0123456789ABCDEF\".indexOf(c);\n }", "private static byte charToByte(char c) {\n return (byte) \"0123456789ABCDEF\".indexOf(c);\n }", "private static byte charToByte(char c) {\n return (byte) \"0123456789ABCDEF\".indexOf(c);\n }", "protected byte readByte(final int adr) {\r\n return this.memory[adr];\r\n }", "public char readChar(String message) {\r\n\t\tSystem.out.println(message);\r\n\t\treturn scanner.nextLine().charAt(0);\r\n\t}", "@Override public int read(char[] cbuf) throws IOException {\r\n\t\treturn read(cbuf, 0, cbuf.length);\r\n\t}", "public static byte readByte(InputStream input) throws IOException {\n\n return readBytes(input, 1)[0];\n }", "public int read()\n throws IOException\n {\n if ( position == this.buffer.length() )\n {\n return -1;\n }\n\n return this.buffer.charAt( this.position++ );\n }", "@Test(expected=IndexOutOfBoundsException.class)\n public void testCharAt_Byte() {\n System.out.println(\"charAt_Byte\");\n int index = 0;\n Charset cs = Charset.forName(UTF_8);\n InputStream stream = getInputStream(TypeOfStream.BYTE, TypeOfContent.BYTE_0, cs);\n @SuppressWarnings(\"deprecation\")\n BufferedCharSequence instance = new BufferedCharSequence(stream, cs.newDecoder(), 0);\n instance.charAt(index);\n }", "public char readCharNonBlock() {\n return ((char) readLongNonBlock());\n }", "public static char readCharacter(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.next().charAt(0);\n }", "public static char readChar()\n \n {\n char c='0';\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n c=wort.charAt(0);\n } catch(IOException e1) {\n System.out.println(\"Eingabefehler, bitte noch einmal!\");\n c=readChar();\n } catch(NumberFormatException e2) {\n if(wort.equals(\"\"))\n System.out.println(\"Bitte etwas eingeben, noch einmal:\");\n else {\n System.out.print(\"Fehler beim Format, \");\n System.out.println(\"bitte noch einmal!\");}\n c=readChar();\n }\n return c;\n }", "private char readChar() \n {\n \n String uInput = null;//user input\n do//do while loop to wait for a charater\n {\n try//collect user input\n {\n uInput = br.readLine();\n }\n catch(IOException ioe)//catch IOE\n {\n System.out.println(\"IO error trying to read number. Exiting now\");\n System.exit(1);\n }\n if(uInput.charAt(0)=='?')//special case for ? symbol\n {\n return uInput.charAt(0);\n }\n if(!Character.isLetter(uInput.charAt(0)))//check for charater\n {\n System.out.println(\"Invalid input, use ? for a list of commands\");\n System.out.printf(\"=> \");\n }\n }\n while(!Character.isLetter(uInput.charAt(0)));\n\n return uInput.charAt(0);//return character input\n \n }", "private int readChar(boolean movePointer) throws Exception {\n if (_bi >= _blen) {\n _blen = _reader.read(_buf, 0, 2048);\n if (log) {\n StringBuffer sbBuffer = new StringBuffer();\n for (int i = 0; i < 300; i++) {\n sbBuffer.append(_buf[i]);\n }\n }\n log = false;\n\n _bi = 0;\n if (_blen < 0)\n return -1;\n }\n char ret = _buf[_bi];\n if (movePointer)\n _bi++;\n return ret;\n }", "private int getChar() {\n\n\t\ttry {\n\t\t\treturn stream.read();\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.print(e.getMessage());\n\t\t\tSystem.err.println(\"IOException occured in Lexer::getChar()\");\n\t\t\treturn -1;\n\t\t}\n\n\t}", "public char Get() {\n\t\treturn myChar;\n\t}", "boolean readByte(int c, String streamProvider) throws RawDataEventException ;", "public byte[] readRawByte() throws IOException {\n byte[] bytes = new byte[2];\n bytes[0] = (byte) Type.BYTE.code;\n in.readFully(bytes, 1, 1);\n return bytes;\n }" ]
[ "0.7486859", "0.7475015", "0.7442599", "0.72680885", "0.7266827", "0.7161554", "0.69356537", "0.6868244", "0.6763486", "0.67608273", "0.6749164", "0.67393833", "0.6739255", "0.6700931", "0.6655755", "0.66098976", "0.6550374", "0.6528764", "0.65043914", "0.6427532", "0.64193344", "0.6411681", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63989675", "0.63817143", "0.63817143", "0.63817143", "0.63817143", "0.63817143", "0.63741046", "0.6348304", "0.63135254", "0.62927246", "0.6286732", "0.62825996", "0.6273999", "0.62543017", "0.62206775", "0.6217004", "0.6217004", "0.6202623", "0.6201074", "0.6198694", "0.618524", "0.618524", "0.618524", "0.618524", "0.618524", "0.618524", "0.618524", "0.618524", "0.61774635", "0.61541957", "0.60941064", "0.60919636", "0.60919636", "0.6076157", "0.6074232", "0.6062133", "0.60617125", "0.6054441", "0.6052667", "0.6052667", "0.6052667", "0.6048782", "0.60179394", "0.60107887", "0.598238", "0.59813166", "0.5978189", "0.5977211", "0.59758186", "0.59367657", "0.59037095", "0.58837044", "0.58791065", "0.58771", "0.5815193", "0.5803117" ]
0.7339457
3
Returns the last byte in the buffer as char.
public char lastChar() { if (bufferIndex == bufferLast) return (char) (-1); return (char) last(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public char readChar() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn (char) (-1);\n\t\treturn (char) last();\n\t}", "public int lastCharacter() {\n return string.codePointAt(string.length() - 1);\n }", "char getChar () { \n return m_pos < m_len ? m_buffer.charAt (m_pos) : '\\0';\n }", "public static char getLastChar (TextFragment textFragment) {\r\n \t\tif (textFragment == null)\r\n \t\t\treturn '\\0';\r\n \r\n \t\tString st = textFragment.getCodedText();\r\n \r\n \t\tint pos = TextFragment.indexOfLastNonWhitespace(st, -1, 0, true, true, true, true);\r\n \t\tif (pos == -1)\r\n \t\t\treturn '\\0';\r\n \r\n \t\treturn st.charAt(pos);\r\n \t}", "public char readChar() {\n return ((char) readLong());\n }", "public int last() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferLast - 1];\n\t\t\tbufferIndex = 0;\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "public char readCharNonBlock() {\n return ((char) readLongNonBlock());\n }", "public int getCharEnd() {\n\t\treturn -1;\n\t}", "public T getLast() {\n if (this.getSize() > 0) {\n return buffer[index];\n }\n return null;\n }", "public char peek() {\r\n return characters[size -1];\r\n }", "public char getChar(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn (char) bytes[index];\n\t}", "public byte get() throws TLVEncodingException {\r\n\t\tif (cursor >= limit)\r\n\t\t\tthrow new TLVEncodingException(\"End of buffer\");\r\n\r\n\t\treturn buffer[cursor++];\r\n\t}", "private static char toChar(byte theByte) {\n if (theByte < 0) {\n return (char) (256 + theByte);\n } else {\n return (char) theByte;\n }\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead+pos];\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }", "public char failsafe_GET()\n { return (char)((char) get_bytes(data, 35, 1)); }", "public byte getByteC() {\n\t\treturn (byte) -get();\n\t}", "public final char yycharat(int pos) {\n return zzBuffer[zzStartRead + pos];\n }", "@Override\n public final char last() {\n if (upper == lower) {\n return DONE;\n }\n return text.charAt(index = upper-1);\n }", "public _char get_char() {\n return local_char;\n }", "public int get_char() {\n return local_char;\n }", "final public char yycharat(int pos) {\n return yy_buffer[yy_startRead+pos];\n }", "final public char yycharat(int pos) {\n return yy_buffer[yy_startRead+pos];\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n\t\treturn zzBuffer[zzStartRead+pos];\n\t}", "public char getChar() throws IOException {\r\n\t\treturn (char)lineReader.read();\r\n\t}", "private byte nextByte(ByteBuffer inputBuffer) throws IOException {\n getAtLeastBytes(inputBuffer, 1);\n return inputBuffer.get();\n }", "public static char getUniqueChar() {\n return CHARS.charAt(getNextPosition());\n }", "char getPreviousReadChar();", "private char peek(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n if (iIndex>=iMessage.length()) return NONE;//return no character if beyond end of the message\r\n return iMessage.charAt(iIndex);//return current character\r\n \r\n }", "public char pop() {\r\n return characters[--size];\r\n }", "public char readChar() throws IOException {\n\t\tbyte[] b = new byte[2];\n\n\t\tif (read(b, 0, 2) < 2) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tchar c = (char) (b[0] << 8 | (b[1] & 0xFF));\n\t\treturn c;\n\t}", "public static byte getUniqueByte() {\n return (byte) getUniqueChar();\n }", "public final char yycharat(int pos) {\n return zzBufferArray != null ? zzBufferArray[zzStartRead+pos]:zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBufferArray != null ? zzBufferArray[zzStartRead+pos]:zzBuffer.charAt(zzStartRead+pos);\n }", "@Override\r\n\tpublic byte getByte(int pos) {\n\t\treturn buffer.get(pos);\r\n\t}", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "@Override\n public T removeLast() {\n T lastChar = myQ[myLength - 1];\n myQ[myLength - 1] = (T) \"\\0\";\n myLength--;\n return lastChar;\n }", "@Pure\n public Integer getEndCharacter() {\n return this.endCharacter;\n }", "public char getChar()\n throws IOException\n {\n return (char) lineNumberReader.read();\n }", "public char getChar();", "private char getChar() {\n\t\t//Must declare as int, because -1 in char is 65535\n\t\tint c = '\\0';\n\t\ttry {\n\t\t\tc = inFile.read();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error occurred when trying to read characters\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (c == -1) {\n\t\t\teof = true;\n\t\t\treturn EndOfFile;\n\t\t} else if (c == '\\n' || c == '\\r') {\n\t\t\tlineNumber++;\n\t\t}\n\t\treturn (char) c;\t\n\t}", "public static char datochar(){\n try {\n char respuesta=dato().charAt(0);\n return respuesta;\n } catch (Exception e) {\n return('z');\n }\n }", "@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}", "char getLastMove() {\n int length = this.prevMoves.length();\n if (length > 0) {\n return prevMoves.charAt(length - 1);\n }\n return ' ';\n }", "public byte toByte() {\n return this.toByteArray()[0];\n }", "public char message_type_GET()\n { return (char)((char) get_bytes(data, 0, 2)); }", "public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }", "public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }", "public static char readChar()\n {\n \tString ch = scanner.next();\n \treturn ch.charAt(0);\n }", "public char at(int pos) {\r\n return fCharBuffer.at(pos);\r\n }", "public char getChar(String key)\n {\n return getChar(key, '\\0');\n }", "char getChar(int offset) throws BadLocationException;", "public abstract char read_char();", "byte peekByte() throws IOException;", "public static char getChar() throws IOException {\n\t\nString s = getString();\nreturn s.charAt(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the first letter of the string, to help idiot proof it.\n\n}", "private String get_CHAR(int column) {\n if (ccsid_[column - 1] == 1200) {\n return getStringWithoutConvert(columnDataPosition_[column - 1], columnDataComputedLength_[column - 1]);\n }\n\n // check for null encoding is needed because the net layer\n // will no longer throw an exception if the server didn't specify\n // a mixed or double byte ccsid (ccsid = 0). this check for null in the\n // cursor is only required for types which can have mixed or double\n // byte ccsids.\n if (charset_[column - 1] == null) {\n throw new IllegalStateException(\"SQLState.CHARACTER_CONVERTER_NOT_AVAILABLE\");\n }\n\n int dataLength = columnDataComputedLength_[column - 1];\n if (maxFieldSize_ != 0 && maxFieldSize_ < dataLength)\n dataLength = maxFieldSize_;\n return dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n dataLength, charset_[column - 1]).toString();\n// String tempString = new String(dataBuffer_,\n// columnDataPosition_[column - 1],\n// columnDataComputedLength_[column - 1],\n// charset_[column - 1]);\n// return (maxFieldSize_ == 0) ? tempString :\n// tempString.substring(0, Math.min(maxFieldSize_,\n// tempString.length()));\n }", "public String getLastC() {\n\t\treturn lastFieldC.getText();\n\t}", "public static char getCharForNum(byte number) {\n if (number > 9) {\n throw new IndexOutOfBoundsException(\"number > 9\");\n }\n // the ascii offset for numbers is 48, adding 48 gets the right char\n return (char) (number + 48);\n }", "public char Get() {\n\t\treturn myChar;\n\t}", "public char readChar() {\n return readNextLine().charAt(0);\n }", "private int currentChar()\n {\n if (m_bufferOffset_ < 0) {\n m_source_.previousCodePoint();\n return m_source_.nextCodePoint();\n }\n\n // m_bufferOffset_ is never 0 in normal circumstances except after a\n // discontiguous contraction since it is always returned and moved\n // by 1 when we do nextChar()\n return UTF16.charAt(m_buffer_, m_bufferOffset_ - 1);\n }", "public char peekChar() throws Exception {\n currentChar();\n\n if (line == null) {\n return PascalToken.EOF_CHAR;\n }\n int nextPos = currentPos + 1;\n\n return nextPos < line.length() ? line.charAt(nextPos) : PascalToken.EOL_CHAR;\n }", "private int readCharBackward() {\r\n \t\tif (--index < 0 || \r\n \t\t\t\tdocumentContent == null ||\r\n \t\t\t\tdocumentContent.length() <= index)\r\n \t\t\treturn -1;\r\n \r\n \t\ttry {\r\n \t\t\treturn documentContent.charAt(index);\r\n \t\t} catch (StringIndexOutOfBoundsException e) {\r\n \t\t\treturn -1;\r\n \t\t}\r\n \t}", "private static byte charToByte(char c) {\n\t\treturn (byte) \"0123456789ABCDEF\".indexOf(c);\n\t}", "public static char highSurrogate(int c) {\n return (char) (((c - 0x00010000) >> 10) + 0xD800);\n }", "public final int getByte() throws IOException {\r\n b3 = 0;\r\n\r\n b3 = (tagBuffer[bPtr] & 0xff);\r\n bPtr += 1;\r\n\r\n return b3;\r\n }" ]
[ "0.71842647", "0.67544013", "0.6629584", "0.62162536", "0.6155508", "0.60720646", "0.6067332", "0.6066816", "0.5983117", "0.5965884", "0.5953389", "0.59447336", "0.5937914", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.593047", "0.5923181", "0.5923181", "0.5923181", "0.5923181", "0.5923181", "0.5878682", "0.5841105", "0.5832557", "0.58125824", "0.5809195", "0.57785124", "0.5774139", "0.5774139", "0.5772193", "0.5772193", "0.5772193", "0.5772193", "0.5772193", "0.5772193", "0.5772193", "0.5772193", "0.5769826", "0.57634455", "0.57209134", "0.5706121", "0.56992733", "0.56893754", "0.5683077", "0.56765497", "0.5655598", "0.5655378", "0.5655378", "0.5648106", "0.56468475", "0.5621091", "0.5619844", "0.5617977", "0.5614577", "0.56028914", "0.55727726", "0.55598944", "0.5559254", "0.5557691", "0.5524554", "0.55136067", "0.55136067", "0.5513007", "0.55125433", "0.55063874", "0.5497972", "0.54968166", "0.5480998", "0.54727674", "0.5470661", "0.5454114", "0.54494375", "0.5417547", "0.54163086", "0.540237", "0.5400772", "0.5399169", "0.53979695", "0.53973955", "0.53932714" ]
0.807961
0
Ignore all the bytes read so far and empty the buffer.
public void clear() { bufferLast = 0; bufferIndex = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearBuffer() {\n\t\tfor (int i = 0; i < buffer.length; i++) {\n\t\t\tbuffer[i] = 0x0;\n\t\t}\n\t}", "private void resetBuffer() {\n baos.reset();\n }", "public void clear() {\n this.init(buffer.length);\n }", "private void clearBuffer(ByteBuffer buffer) {\n while (numberLeftInBuffer > 0) {\n readbit(buffer);\n }\n }", "public void clearBuffer(){\n System.out.println(\"Clearning beffer\");\n //Deletes the buffer file\n File bufferFile = new File(\"data/buffer.ser\");\n bufferFile.delete();\n }", "@SuppressWarnings( \"unused\" )\n private void clear() {\n frameOpenDetected = false;\n frameLength = 0;\n buffer.limit( 0 ); // this marks our buffer as empty...\n }", "public void trimToSize() {\n if (size() != this.buffer.length) {\n this.buffer = toArray();\n }\n }", "protected final void resetBuffer() {\n buffer.reset();\n }", "public final void resetDataBuffer() {\n dataBuffer_.resetReaderIndex();\n lastValidBytePosition_ = 0;\n currentRowPosition_ = 0;\n nextRowPosition_ = 0;\n setAllRowsReceivedFromServer(false);\n }", "private void trim() {\n read(0);\n }", "public void resetBuffer() {\n this.response.resetBuffer();\n }", "public void flush(){\r\n mBufferData.clear();\r\n }", "protected ByteBuf removeEmptyValue()\r\n/* 52: */ {\r\n/* 53:85 */ return Unpooled.EMPTY_BUFFER;\r\n/* 54: */ }", "public void clear() {\n\t\tthis.sizeinbits = 0;\n\t\tthis.actualsizeinwords = 1;\n\t\tthis.rlw.position = 0;\n\t\t// buffer is not fully cleared but any new set operations should\n\t\t// overwrite stale data\n\t\tthis.buffer[0] = 0;\n\t}", "public void resetBuffer() {\n\n\t}", "public synchronized void reset() {\n java.util.Arrays.fill(buffer, (byte) 0);\n writeHead = 0;\n cumulativeWritten = 0;\n synchronized (allReaders) {\n for (Reader reader : allReaders) {\n reader.reset();\n }\n }\n }", "public abstract void resetBytesWritten();", "public void clearBytes() {\n this.f12193a = 0;\n this.f12194b = 0;\n this.f12195c = 0;\n this.f12196d.clear();\n this.f12197e.mo42967b();\n this.f12198f.clear();\n mo42980c();\n }", "@Override\n\tpublic void resetBuffer() {\n\t}", "@Override\r\n public synchronized void flush() throws IOException {\r\n\t\tif ( count != 0 ) {\r\n\t\t writeBuffer(buf, 0, count );\r\n\t\t count = 0;\r\n\t\t}\r\n\t}", "public void clear()\n \t{\n \t\tint byteLength = getLengthInBytes();\n \t\tfor (int ix=0; ix < byteLength; ix++)\n value[ix] = 0;\n \t}", "@Override\n public int getBufferSize() {\n return 0;\n }", "@Override\n public void resetBuffer() {\n\n }", "public void clean() {\n\t\tbufferSize = 0;\n\t\tbuffer = new Object[Consts.N_ELEMENTS_FACTORY];\n\t}", "@Override\n\tpublic void reset() {\n\t\tthis.buffer = new String();\n\t}", "@Override\n\tpublic int getBufferSize() {\n\t\treturn 0;\n\t}", "private void reset() {\n // Reset to the inital state.\n command = null;\n headers = new DefaultHeaders();\n body = null;\n currentDecodedByteCount = 0;\n totalDecodedByteCount = 0;\n }", "private void clearStrBuf() {\n strBufLen = 0;\n }", "public void reset() {\n\t\tnewBuffer = null;\n\t\treadyBuffer = new StringBuilder();\n\t\tstatus = ConsumptionStatus.EMPTY;\n\t}", "public final void clearBuffer() {\n width = 0;\n height = 0;\n noiseBuffer = null;\n }", "public void resetResponseBuffer()\n {\n bufferIndex = 0;\n responseFlag = false;\n }", "public void resetBuffer(){\n bufferSet = false;\n init();\n }", "public void clear() {\n streams.clear();\n }", "public final void clear()\n {\n\t\tcmr_queue_.removeAllElements();\n buffer_size_ = 0;\n }", "@Override\n\tpublic synchronized void reset() {\n\t\tiOBuffer.reset();\n\t}", "public void clearContent() {\n\t\tcontent.setLength(0);\n\t}", "public ByteBuf discardReadBytes()\r\n/* 107: */ {\r\n/* 108:124 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 109:125 */ return super.discardReadBytes();\r\n/* 110: */ }", "public void ClearBuffer() {\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tpixel_data[x + y * width] = 0x00000000;\n\t\t\t}\n\t\t}\n\t}", "public void clearReceived() {\n\t\t_received = false;\n\t}", "public void clearTextBytes();", "private synchronized void clear(){\n if(line != null){\n line.flush();\n line.stop();\n line.close();\n if(audioInputStream != null) {\n try {\n audioInputStream.close();\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n }\n }\n }", "public void reset() {\n bytes.reset();\n bytes.readVariableLengthInt();\n }", "void scanDataBufferForEndOfData() {\n while (!allRowsReceivedFromServer() &&\n (dataBuffer_.readerIndex() != lastValidBytePosition_)) {\n stepNext(false);\n }\n }", "private int fillBuffer() throws IOException {\r\n int n = super.read(buffer, 0, BUF_SIZE);\r\n if (n >= 0) {\r\n file_pos +=n;\r\n buf_end = n;\r\n buf_pos = 0;\r\n }\r\n return n;\r\n }", "@Override\n public void clear() {\n for (int i = 0; i < size; i++) {\n data[i] = null;\n }\n size = 0;\n }", "public void clear() {\n\t\tif (!validState) {\n\t\t\tthrow new InvalidStateException();\n\t\t}\n\t\ttry {\n\t\t\tfileChannel.position(0).truncate(0);\n\t\t\tsync();\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Exception in clear()\", e);\n\t\t}\n\t}", "private void clearData() {}", "public void clear()\n\t{\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t{\n\t\t\tdata[i] = 0;\n\t\t}\n\t}", "public synchronized void clear() throws IOException {\n init(bytesPerId, bytesPerType, bytesPerPath);\n }", "public void reset() {\n started = false;\n flushing = false;\n moreText = true;\n headerCount = 0;\n actualLen = 0;\n }", "protected int fillClearBuffer()\n throws IOException\n {\n ByteBuffer buffEnc = f_buffEncIn;\n ByteBuffer buffClear = f_buffClearIn;\n int ofPos = buffClear.position();\n int ofLim = buffClear.limit();\n int cb = 0;\n int cbStart = buffEnc.remaining();\n\n try\n {\n if (ofPos == ofLim)\n {\n buffClear.clear();\n ofPos = ofLim = 0;\n }\n else\n {\n buffClear.position(buffClear.limit())\n .limit(buffClear.capacity());\n }\n cb = decrypt(f_aBuffClear, 0, 1);\n return cbStart - buffEnc.remaining();\n }\n finally\n {\n buffClear.position(ofPos)\n .limit(ofLim + cb);\n }\n }", "@Override\n public void clearData() {\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}", "public void reset()\n {\n current = 0;\n highWaterMark = 0;\n lowWaterMark = 0;\n super.reset();\n }", "private synchronized void popBuffer() {\n IoBuffer buf = data.removeFirst();\n if(marked) {\n resetCache.push(buf);\n if(!data.isEmpty()) {\n data.getFirst().mark();\n }\n } else {\n buf.free();\n }\n }", "void commonGetsCleanup() {\n ChannelBuffer buf, next;\n\n buf = inQueueHead;\n for ( ; buf != null; buf = next) {\n next = buf.next;\n if (buf.nextRemoved < buf.nextAdded) {\n break;\n }\n recycleBuffer(buf, false);\n }\n inQueueHead = buf;\n if (buf == null) {\n inQueueTail = null;\n } else {\n // If any multi-byte characters were split across channel buffer\n // boundaries, the split-up bytes were moved to the next channel\n // buffer by filterBytes(). Move the bytes back to their\n // original buffer because the caller could change the channel's\n // encoding which could change the interpretation of whether those\n // bytes really made up multi-byte characters after all.\n\n next = buf.next;\n for ( ; next != null; next = buf.next) {\n int extra;\n\n extra = buf.bufLength - buf.nextAdded;\n if (extra > 0) {\n System.arraycopy(next.buf, buf.BUFFER_PADDING - extra,\n buf.buf, buf.nextAdded, extra);\n buf.nextAdded += extra;\n next.nextRemoved = buf.BUFFER_PADDING;\n }\n buf = next;\n }\n }\n if (encoding != null) {\n //Tcl_FreeEncoding(encoding);\n }\n }", "public final void clearEndOfFile() {\n\t\tif ( atEndOfFile())\n\t\t\tm_flags -= EndOfFile;\n\t}", "public synchronized void resetInputStream()\r\n\t{\r\n\t\tthis.inputStream = new BodyReusableServletInputStream(this.bodyBytes);\r\n\t\tthis.bufferedReader = new BufferedReader(new InputStreamReader(this.inputStream)); \r\n\t}", "private void resetBytesFree()\r\n {\r\n this.bytesFree.set(0);\r\n }", "private void fillBuf(int need) throws IOException {\n\n\t\tif (count > pos) {\n\t\t\tSystem.arraycopy(buf, pos, buf, 0, count - pos);\n\t\t\tcount -= pos;\n\t\t\tneed -= count;\n\t\t\tpos = 0;\n\t\t} else {\n\t\t\tcount = 0;\n\t\t\tpos = 0;\n\t\t}\n\n\t\twhile (need > 0) {\n\n\t\t\tint len = in.read(buf, count, buf.length - count);\n\t\t\tif (len <= 0) {\n\t\t\t\tthrow new EOFException();\n\t\t\t}\n\t\t\tcount += len;\n\t\t\tneed -= len;\n\t\t}\n\n\t}", "private void reset() {\n\t\tdata.clear();\n\t}", "private void invalidateBuffer() throws IOException, BadDescriptorException {\n if (!reading) flushWrite();\n int posOverrun = buffer.remaining(); // how far ahead we are when reading\n buffer.clear();\n if (reading) {\n buffer.flip();\n // if the read buffer is ahead, back up\n FileChannel fileChannel = (FileChannel)descriptor.getChannel();\n if (posOverrun != 0) fileChannel.position(fileChannel.position() - posOverrun);\n }\n }", "public void reset () {\n\t\topen();\n\t\ttry {\n\t\t\tcontainer.setLength(0);\n\t\t\treservedBitMap.setLength(0);\n\t\t\tupdatedBitMap.setLength(0);\n\t\t\tfreeList.setLength(0);\n\t\t\tsize = 0;\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t}\n\t}", "private byte[] truncate(ByteBuffer buffer, int length) {\n assert length < buffer.remaining();\n byte[] array = new byte[length];\n buffer.get(array);\n return array;\n }", "public void clearBuffer() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}", "public byte[] drain() {\n return drainTo(new ByteArrayOutputStream()).toByteArray();\n }", "public void clear()\r\n/* 416: */ {\r\n/* 417:580 */ this.headers.clear();\r\n/* 418: */ }", "public void clear(){\r\n\t\tthis.countRead \t\t\t= 0;\r\n\t\tthis.countReadData \t\t= 0;\r\n\t\tthis.countRemoved \t\t= 0;\r\n\t\tthis.countRemovedData \t= 0;\r\n\t\tthis.countWrite \t\t= 0;\r\n\t\tthis.countWriteData \t= 0;\r\n\t\tthis.dataList.clear();\r\n\t\tthis.dataMap.clear();\r\n\t}", "private void clearAll(byte value) {\n for (int i = 0; i < size; i++) {\n data[i] = (byte) (value & 0xff);\n }\n }", "private void flushBuffer(Runnable paramRunnable) {\n/* 149 */ int i = this.buf.position();\n/* 150 */ if (i > 0 || paramRunnable != null)\n/* */ {\n/* 152 */ flushBuffer(this.buf.getAddress(), i, paramRunnable);\n/* */ }\n/* */ \n/* 155 */ this.buf.clear();\n/* */ \n/* 157 */ this.refSet.clear();\n/* */ }", "private void cleanUpBufferedInput() {\n if (elementRanges.size() >= 2) {\n Map.Entry<Integer, Integer> firstElementRange = elementRanges.pollFirst();\n int startIndex = firstElementRange.getKey() - bytesCleaned.get();\n int endIndex = firstElementRange.getValue() - bytesCleaned.get();\n\n while (elementRanges.size() >= 2) {\n endIndex = elementRanges.pollFirst().getValue();\n }\n\n byte[] oldInput = flatInput();\n byte[] newInput = new byte[oldInput.length - (endIndex - startIndex)];\n\n System.arraycopy(oldInput, 0, newInput, 0, startIndex);\n System.arraycopy(oldInput, endIndex, newInput, startIndex, oldInput.length - endIndex);\n\n xmlChunkedInput.clear();\n xmlChunkedInput.add(newInput);\n bytesCleaned.addAndGet(endIndex - startIndex);\n }\n }", "public void clearConnection() {\n serverSock = null;\n in = null;\n out = null;\n }", "@Override\n\tpublic void flushBuffer() throws IOException {\n\t}", "@Override\n public void flushBuffer() throws IOException {\n\n }", "@Override\n public void clearLastResponse() {\n super.clearLastResponse();\n mFileLinesHaveStarted = false;\n }", "public Builder clearSendReading() {\n if (sendReadingBuilder_ == null) {\n sendReading_ = null;\n onChanged();\n } else {\n sendReading_ = null;\n sendReadingBuilder_ = null;\n }\n\n return this;\n }", "@Override\n public void clear() {\n for (int i = 0; i < this.size; i++) {\n this.data[i] = null;\n }\n\n this.size = 0;\n }", "private void checkBuffer() {\r\n\t\tint startpacket = 0;\r\n\t\tfor(int i=1; i<inBuffer.length-1; i++) {\r\n\t\t if(inBuffer[i] == (byte) 'A' && inBuffer[i+1] == (byte) '4') {\r\n\t\t byte[] onePart = PApplet.subset(inBuffer, startpacket, i-startpacket);\r\n\t\t parseInput(onePart);\r\n\t\t startpacket = i;\r\n\t\t }\r\n\t\t}\r\n\t\tbyte[] lastPart = PApplet.subset(inBuffer, startpacket, inBuffer.length-startpacket);\r\n\t\tboolean deletelastbuffer = parseInput(lastPart);\r\n\t\tif(deletelastbuffer) inBuffer = new byte[0];\r\n\t\telse inBuffer = PApplet.subset(lastPart,0);\r\n\t}", "public Buffer getEmptyBuffer()\n {\n // System.out.println(getClass().getName()+\":: getEmptyBuffer\");\n\n switch (protocol)\n {\n case ProtocolPush:\n if (!isEmptyBufferAvailable() && reset)\n return null;\n reset = false;\n return circularBuffer.getEmptyBuffer();\n case ProtocolSafe:\n synchronized (circularBuffer)\n {\n reset = false;\n while (!reset && !isEmptyBufferAvailable())\n {\n try\n {\n circularBuffer.wait();\n } catch (Exception e)\n {\n }\n }\n if (reset)\n return null;\n Buffer buffer = circularBuffer.getEmptyBuffer();\n circularBuffer.notifyAll();\n return buffer;\n }\n\n default:\n throw new RuntimeException();\n }\n }", "protected void fill() throws IOException {\n ensureOpen();\n len = in.read(buf, 0, buf.length);\n if (len == -1) {\n throw new EOFException(\"Unexpected end of ZLIB input stream\");\n }\n inf.setInput(buf, 0, len);\n }", "public void reset()\n {\n a = 0x0123456789ABCDEFL;\n b = 0xFEDCBA9876543210L;\n c = 0xF096A5B4C3B2E187L;\n\n xOff = 0;\n for (int i = 0; i != x.length; i++)\n {\n x[i] = 0;\n }\n\n bOff = 0;\n for (int i = 0; i != buf.length; i++)\n {\n buf[i] = 0;\n }\n\n byteCount = 0;\n }", "public void clear()\n\t{\n\t\t_totalMsgsPerSec = 0;\n\t\t_latencyMsgsPerSec = 0;\n\t\t_ticksPerSec = 0;\n\t\t_arrayCount = 0;\n\t}", "public void clear() {\n\t\tcurrentSize = 0;\n\t}", "public int clearData() {\n\t\tsynchronized (mData) {\n\t\t\tallocateBufferSignal();\n\t\t\t\n\t\t\tmDataLength = 0;\n\t\t\tmDataPointer = 0;\n\t\t\t\n\t\t\treturn mData.capacity();\n\t\t}\n\t}", "public void consume() throws InterruptedException {\n\n\t\tRandom random = new Random();\n\t\twhile (true) {\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (buffer.size() == 0) {\n\t\t\t\t\tlock.wait();\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"Consumed : \" + buffer.removeFirst());\n\t\t\t\tlock.notify();\n\n\t\t\t}\n\t\t\tThread.sleep(random.nextInt(1000));\n\t\t}\n\n\t}", "@Override\n public void clear() {\n size = 0;\n }", "@Override\n public void clear() {\n size = 0;\n }", "@Override\n public void clear() {\n size = 0;\n }", "public void reset ()\n {\n // position our buffer at the beginning of the frame data\n _buffer.position(getHeaderSize());\n }", "private int readFill(InputStream stream, byte[] buffer)\n throws IOException {\n int r = buffer.length;\n while (r > 0) {\n int p = buffer.length - r;\n int c = stream.read(buffer, p, r);\n if (c == -1) {\n break;\n }\n r -= c;\n }\n return buffer.length - r;\n\n }", "public void clear() {\r\n this.line.clear();\r\n }", "public synchronized void reset() throws IOException {\n\t\t\tdata.seek(firstPosition);\n\t\t}", "@Override\n public void clear() {\n array.reset();\n }", "private static void flushInternalBuffer() {\n\n //Strongly set the last byte to \"0A\"(new line)\n if (mPos < LOG_BUFFER_SIZE_MAX) {\n buffer[LOG_BUFFER_SIZE_MAX - 1] = 10;\n }\n\n long t1, t2;\n\n //Save buffer to SD card.\n t1 = System.currentTimeMillis();\n writeToSDCard();\n //calculate write file cost\n t2 = System.currentTimeMillis();\n Log.i(LOG_TAG, \"internalLog():Cost of write file to SD card is \" + (t2 - t1) + \" ms!\");\n\n //flush buffer.\n Arrays.fill(buffer, (byte) 0);\n mPos = 0;\n }", "public String[] getBufferAndFlush() {\r\n\t\tString[] answer = new String[this.BUFFER.getSize()];\r\n\r\n\t\tfor (int i = 0; i < answer.length; i++)\r\n\t\t\tanswer[i] = this.BUFFER.remove();\r\n\r\n\t\treturn answer;\r\n\t}", "public Builder clearRead() {\n bitField0_ = (bitField0_ & ~0x00000008);\n read_ = false;\n onChanged();\n return this;\n }", "@Override\n\tprotected void clearBuffer() {\n\t\tsynchronized (listLock) {\n\t\t\tif (deleteList != null && deleteList.size() > 0) {\n\t\t\t\tdeleteList.clear();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public void reset() {\n isDone = false;\n if (content.markSupported()) {\n try {\n content.reset();\n } catch (IOException ioe) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Unable to reset the input stream: {}\", ioe.getMessage());\n }\n }\n\n content.mark(0);\n }\n super.reset();\n }", "@Override\n public byte[] getBuffer() {\n return EMPTY_RESULT;\n }", "@Override\n\tpublic long bytesRead() {\n\t\treturn 0;\n\t}" ]
[ "0.72815853", "0.687425", "0.6755875", "0.674849", "0.6641008", "0.66345567", "0.661711", "0.65369946", "0.6482212", "0.6454462", "0.6430933", "0.64058185", "0.6273683", "0.6195119", "0.6162917", "0.61447126", "0.6129499", "0.6110553", "0.6107441", "0.60819685", "0.6080876", "0.6078553", "0.6047442", "0.60334885", "0.60292155", "0.6009757", "0.5964531", "0.5951767", "0.5933027", "0.59261006", "0.5925376", "0.5913185", "0.59013736", "0.5883074", "0.5875703", "0.58248", "0.5817965", "0.58174133", "0.5807757", "0.57969856", "0.5790996", "0.57889503", "0.57614356", "0.5716193", "0.56909233", "0.56895906", "0.56813174", "0.5674468", "0.5669015", "0.5657279", "0.562803", "0.5621853", "0.5617935", "0.5590319", "0.55862325", "0.55785525", "0.55631685", "0.5559196", "0.5557985", "0.5550101", "0.554502", "0.5544637", "0.55418193", "0.5539909", "0.5537849", "0.5536635", "0.55323035", "0.5530068", "0.5525323", "0.5521481", "0.55151236", "0.55066466", "0.54934335", "0.54816896", "0.54808396", "0.5479482", "0.54724693", "0.54715544", "0.5463795", "0.54633904", "0.54619646", "0.5453565", "0.54505557", "0.5444594", "0.543882", "0.5434607", "0.5434607", "0.5434607", "0.54332286", "0.54300857", "0.5418611", "0.5406129", "0.5400794", "0.5398677", "0.53934133", "0.53904814", "0.538209", "0.5378847", "0.5376833", "0.53767985" ]
0.6940163
1
/ Call this from the main Activity to shutdown the connection
public void cancel() { stopThread = true; try { mmSocket.close(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void shutdown() {\n clientTUI.showMessage(\"Closing the connection...\");\n try {\n in.close();\n out.close();\n serverSock.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void shutdown() {\n mGameHandler.shutdown();\n mTerminalNetwork.terminate();\n }", "public synchronized void shutdown() {\n // mark this as no longer running\n active = false;\n\n // close the socket\n try {\n if (socketNode != null) {\n socketNode.close();\n socketNode = null;\n }\n } catch (Exception e) {\n getLogger().info(\"Excpetion closing socket\", e);\n // ignore for now\n }\n\n // stop the connector\n if (connector != null) {\n connector.interrupted = true;\n connector = null; // allow gc\n }\n if (advertiseViaMulticastDNS) {\n zeroConf.unadvertise();\n }\n }", "public void shutdown() {\n Log.info(Log.FAC_NETMANAGER, formatMessage(\"Shutdown requested\"));\n _run = false;\n if (_periodicTimer != null) _periodicTimer.cancel();\n if (_thread != null) _thread.interrupt();\n if (null != _channel) {\n try {\n setTap(null);\n } catch (IOException io) {\n }\n try {\n _channel.close();\n } catch (IOException io) {\n }\n }\n }", "private void shutdown() {\n\t\ttry {\n\t\t\tsock.close();\n\t\t\tgame.handleExit(this);\n\t\t\tstopped = true;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "@Override\n public void onDestroy() {\n Log.d(TAG, \"Shutting Server\");\n busHandler.sendMessage(busHandler.obtainMessage(BusHandler.DISCONNECT));\n }", "public void closeConnection(){\r\n\t\t_instance.getServerConnection().logout();\r\n\t}", "public void shutdown() {\n shutdown(false);\n }", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "private void disconnect() {\n activityRunning = false;\n MRTClient.getInstance().doHangup();\n MRTClient.getInstance().removeClientListener(this);\n\n finish();\n }", "public void shutdown()\n {\n // todo\n }", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public void shutdown();", "private void quit() {\n\t\tmSipSdk = myApplication.getPortSIPSDK();\n\n\t\tif (myApplication.isOnline()) {\n\t\t\tLine[] mLines = myApplication.getLines();\n\t\t\tfor (int i = Line.LINE_BASE; i < Line.MAX_LINES; ++i) {\n\t\t\t\tif (mLines[i].getRecvCallState()) {\n\t\t\t\t\tmSipSdk.rejectCall(mLines[i].getSessionId(), 486);\n\t\t\t\t} else if (mLines[i].getSessionState()) {\n\t\t\t\t\tmSipSdk.hangUp(mLines[i].getSessionId());\n\t\t\t\t}\n\t\t\t\tmLines[i].reset();\n\t\t\t}\n\t\t\tmyApplication.setOnlineState(false);\n\t\t\tmSipSdk.unRegisterServer();\n\t\t\tmSipSdk.DeleteCallManager();\n\t\t}\n\t}", "public void shutdownNetwork() {\r\n networkPlayer.stop();\r\n }", "public void shutdown() {\n try {\n \t\n \tserverSocket.close();\n \t\n } catch (Exception e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n }", "private void closeConnection () {\n setConnection (null);\n }", "private void closeConnection() {\n\t\t\tSystem.out.println(\"\\nTerminating connection \" + myConID + \"\\n\");\n\t\t\ttry {\n\t\t\t\toutput.close(); // close output stream\n\t\t\t\tinput.close(); // close input stream\n\t\t\t\tconnection.close(); // close socket\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"Exception occured in closing connection\"\n\t\t\t\t\t\t+ ioException);\n\t\t\t}\n\t\t}", "public static void disconnect() {\n \t\tconnPool.stop();\n \t}", "private void shutdown()\n\t\t{\n\t\tif (myChannelGroup != null)\n\t\t\t{\n\t\t\tmyChannelGroup.close();\n\t\t\t}\n\t\tif (myHttpServer != null)\n\t\t\t{\n\t\t\ttry { myHttpServer.close(); } catch (IOException exc) {}\n\t\t\t}\n\t\tmyLog.log (\"Stopped\");\n\t\t}", "public void shutdown() {\n this.isShutdown = true;\n }", "public void shutdown() {\n\t\t\n\t}", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "public void disconnect() {\n SocketWrapper.getInstance(mContext).disConnect();\n }", "void disconnect() {\n connector.disconnect();\n // Unregister from activity lifecycle tracking\n application.unregisterActivityLifecycleCallbacks(activityLifecycleTracker);\n getEcologyLooper().quit();\n }", "public void terminate() {\n config.closeConnection();\n }", "public void shutdown() {\n }", "public void shutdown() {\n for (Connection connection : connections) { //Try closing all connections\n closeConnection(connection);\n }\n }", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "public void disconnect()\n {\n isConnected = false;\n }", "private void closeConnection() {\n\t\t_client.getConnectionManager().shutdown();\n\t}", "@Override\n\tpublic void finish() {\n\t\ttry {\n\t\t\tif(muc!=null){\n\t\t\t\t\n\t\t\t\tmuc.leave();\n\t\t\t}\n\t\t\tif(connection!=null){\n\t\t\t\t\n\t\t\t\tconnection.disconnect();\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\n\t\tsuper.finish();\n\t}", "public void shutDown()\n {\n stunStack.removeSocket(serverAddress);\n messageSequence.removeAllElements();\n localSocket.close();\n }", "public static void shutdown() {\n\t}", "public void shutdown() {\n try {\n infoServer.stop();\n } catch (Exception e) {\n }\n this.shouldRun = false;\n ((DataXceiveServer) this.dataXceiveServer.getRunnable()).kill();\n try {\n this.storage.closeAll();\n } catch (IOException ie) {\n }\n }", "public void shutdown() {\r\n System.exit(0);\r\n }", "public void shutdown() {\n // Shutting down a 'null' transport is invalid. Also, shutting down a server for multiple times is invalid.\n ensureServerState(true);\n try {\n transport.close();\n } catch (final Exception e) {\n throw new RuntimeException(e);\n } finally {\n isShutdown = true;\n }\n }", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}", "public void shutdown() {\n // For now, do nothing\n }", "public void shutdown() {\n try {\n circuit.shutdown();\n } catch (Exception e) {\n circuit.error(\"Error while calling shutdown(): \" + e.getMessage());\n e.printStackTrace();\n }\n RedstoneChips.inst().channelManager().removeCircuitWireless(circuit);\n notifyShutdown();\n }", "private void Disconnect() {\n //If the btSocket is busy\n if (btSocket!=null) {\n try {\n btSocket.close(); //close connection\n }\n catch (IOException e) {\n msg(\"Error\");\n }\n }\n finish(); //return to the first layout\n\n }", "public void shutDown() {\n if(client != null) {\n client.shutdownClient();\n }\n }", "private void disconnect() {\n\n if (inStream != null) {\n try {inStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (outStream != null) {\n try {outStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (socket != null) {\n try {socket.close();} catch (Exception e) { e.printStackTrace(); }\n }\n }", "public void disconnect() {}", "protected final void disconnect() {\n\t\trunning = false;\n\t\ttry {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t\tif (in != null)\n\t\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t}", "private void connectionLost() {\n // Send a failure message back to the Activity\n Message msg = handler.obtainMessage(SdlRouterService.MESSAGE_LOG);\n Bundle bundle = new Bundle();\n bundle.putString(LOG, \"Device connection was lost\");\n msg.setData(bundle);\n handler.sendMessage(msg);\n handler.postDelayed(new Runnable() { //sends this stop back to the main thread to exit the reader thread\n @Override\n public void run() {\n stop();\n }\n }, 250);\n }", "public void Stop_Connection(){\n keepWalking = false; //gia na stamatisei to chat alliws to thread dn ginete interrupt gt dn stamataei i liturgeia tou.\n Chat_Thread.interrupt();\n try {\n if(oos != null) oos.close();\n if(ois != null) ois.close();\n } catch (IOException ex) {\n Logger.getLogger(ChatWithCC.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n if(socket !=null) socket.close();\n } catch (IOException ex) {\n Logger.getLogger(ChatWithCC.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected abstract void shutdown();", "public int disconnect() {\n Log.d(TAG, \"kill start\");\n \n // TODO: check if conditionals fixes bug\n // disconnecting when bluetooth not enabeled\n for( BluetoothConnectionThread bct: bluetoothConnectionThreads ){\n if (bct != null) {\n bct.kill();\n bct = null;\n }\n }\n \n if (this.router != null) {\n this.router.stop();\n this.router = null;\n }\n \n Log.d(TAG, \"kill success\");\n return Constants.SUCCESS;\n }", "public void shutdown() {\n // no-op\n }", "private void disconnect() {\n if (mServiceConnection != null) {\n mContext.unbindService(mServiceConnection);\n }\n mServiceConnection = null;\n }", "public synchronized void close() {\n\t\t/**\n\t\t * DISCONNECT FROM SERVER\n\t\t */\n\t\tsrvDisconnect();\n\t}", "@Override\r\n protected void onDestroy() {\r\n super.onDestroy();\r\n socketManager.disconnectSocket();\r\n }", "@Override\n\tprotected void onStop() {\n\t\tsendMessageToService(ConnectionService.STOP);\n\t\tsuper.onStop();\n\t}", "public void stop() {\n\t\tgetLogger().debug(\"Waiting 5 seconds for EVCC to process response and close TCP/TLS connection ...\");\n\t\ttry {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\t\t\n\t\tif (!isStopAlreadyInitiated()) {\n\t\t\tgetLogger().debug(\"Closing connection to client ...\");\n\t\t\tsetStopAlreadyInitiated(true);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tgetInStream().close();\n\t\t\t\tgetOutStream().close();\n\t\t\t\t\n\t\t\t\tif (getTcpClientSocket() != null) {\n\t\t\t\t\tgetTcpClientSocket().close();\n\t\t\t\t} else if (getTlsClientSocket() != null) {\n\t\t\t\t\tgetTlsClientSocket().close();\n\t\t\t\t} else {\n\t\t\t\t\tgetLogger().error(\"Neither TCP nor TLS client socket could be closed\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\tgetLogger().debug(\"Connection to client closed\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tgetLogger().error(\"Error occurred while trying to close socket to client\", e);\n\t\t\t} \n\t\t}\n\t}", "public void shutdown(){\n \tSystem.out.println(\"SHUTTING DOWN..\");\n \tSystem.exit(0);\n }", "public void shutdown()\n {\n // nothing to do here\n }", "public abstract void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "public void shutDown() {\n StunStack.shutDown();\n stunStack = null;\n stunProvider = null;\n requestSender = null;\n\n this.started = false;\n\n }", "public void cancel() {\r\n try {\r\n btSocket.close();\r\n isConnected = false;\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n SharedPreferences.Editor edit = preferences.edit();\r\n edit.putBoolean(\"Connection\", isConnected);\r\n edit.apply();\r\n } catch (IOException e) {\r\n Log.d(\"TAG\", \"Could not close the client socket\");\r\n }\r\n }", "public void shutDown ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"shutDown\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n shutDown ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public void quit(View view) {\n // TODO: Liberate resources and quit wifi\n myoBackgroundService = new Intent(this, MyoBackgroundService.class);\n stopService(myoBackgroundService);\n backgroundIntentService = new Intent(this, BackgroundIntentService.class);\n stopService(backgroundIntentService);\n isTextRcvData = false;\n moveTaskToBack(true);\n android.os.Process.killProcess(android.os.Process.myPid());\n }", "public void shutDown();", "public void shutdown() {\n if (this.service instanceof PicassoExecutorService) {\n this.service.shutdown();\n }\n this.downloader.shutdown();\n this.dispatcherThread.quit();\n Picasso.HANDLER.post(new Runnable() {\n /* class com.squareup.picasso.Dispatcher.AnonymousClass1 */\n\n public void run() {\n Dispatcher.this.receiver.unregister();\n }\n });\n }", "public void disconnect() {\n\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n\n if (outputStream != null) {\n outputStream.close();\n }\n\n if (socket != null ) {\n socket.close();\n connected = socket.isClosed();\n }\n } catch (IOException e) {\n logger.error(\"S7Client error [disconnect]: \" + e);\n }\n }", "public void disconnect()\n {\n this.uri = null;\n this.userAddress = null;\n this.password = null;\n connected = false;\n }", "public static void disconnect() {\r\n if (isConnected()) {\r\n listener.interrupt();\r\n timerThread.interrupt();\r\n keepAliveThread.interrupt();\r\n db.writeDatabase();\r\n ObjectIO.writeObjectToFile(cmdPath, cmd);\r\n tc.stopCommands();\r\n ObjectIO.writeObjectToFile(tcPath, tc);\r\n try {\r\n irc.close();\r\n }\r\n catch (IOException e) { /* Shouldn't happen */ }\r\n }\r\n irc = null;\r\n }", "public void shutdown() {\n\t\t//We call peers.values() and put into Array to create an unchanging copy, one that\n\t\t//does not shrink even as the sockets remove themselves from the peers list\n\t\t//this prevents a ConcurrentModificationException\n\t\tonline = false;\n\t\tArrayList<DecentSocket> connections = new ArrayList<DecentSocket>(peers.values());\n\t\tfor(DecentSocket socket: connections) {\n\t\t\tsocket.stop();\n\t\t}\n\t\tlistener.stop();\n\t\tchecker.stop();\n\t}", "public void shutdown() {\n _udpServer.stop();\n _registrationTimer.cancel();\n _registrationTimer.purge();\n }", "@Override\n public void shutdown() {\n _ahc.close();\n }", "private synchronized void stop()\n\t{\n\t\ttry\n\t\t{\n\t\t\tunregisterReceiver( mConnectivityReceiver );\n\t\t}\n\t\tcatch ( IllegalArgumentException e )\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t} // try/catch\n\n\t}", "public void shutdown()\n\t{\n\t\ttry\n\t\t{\n\t\t\tsave();\n\t\t\tgetPreparedStatement(\"SHUTDOWN\").executeUpdate();\n\t\t\tgetConnection().close();\n\t\t} \n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tm_logger.error(\"Couldn't cleanly shutdown.\", e);\n\t\t}\n\t}", "public synchronized void shutdown() {\n try {\n stop();\n } catch (Exception ex) {\n }\n \n try {\n cleanup();\n } catch (Exception ex) {\n }\n }", "public void close()\n {\n getConnectionManager().shutdown();\n }", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "public void disconnect()\n {\n \tLog.d(TAG, \"disconnect\");\n\n \tif(this.isConnected) {\n \t\t// Disable the client connection if have service\n \t\tif(mLedService != null) {\n \t\t\tthis.disable();\n \t\t}\n \t\t\n \t\t// Unbind service\n mContext.unbindService(mServiceConnection);\n \n this.isConnected = false;\n \t}\n }", "public void shutdown() {\n\t\t\tfirebaseLooper.quit() ;\n\t\t}", "private void closeConnection() {\r\n try {\r\n socket.close();\r\n } catch (IOException ex) {\r\n // Ex on close\r\n }\r\n }", "@Override\n public void closeConnection() {\n\n System.out.println(\"[CLIENT] Closing socket connection...\");\n try {\n socket.close();\n in.close();\n out.close();\n System.out.println(\"[CLIENT] Closed socket connection.\");\n } catch (IOException e) {\n System.out.println(\"[CLIENT] Error occurred when closing socket\");\n }\n System.exit(0);\n\n }" ]
[ "0.7922116", "0.7371607", "0.7204088", "0.71792775", "0.7129182", "0.7114696", "0.7114679", "0.71071774", "0.7031592", "0.70229584", "0.701218", "0.6977698", "0.6977698", "0.6977698", "0.6977698", "0.69667864", "0.69621927", "0.69309497", "0.6925107", "0.6924764", "0.692195", "0.6900076", "0.689932", "0.68872523", "0.68794316", "0.6857272", "0.68532324", "0.6841522", "0.6840615", "0.68379086", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68239367", "0.68205917", "0.6803926", "0.6798957", "0.6794669", "0.67940944", "0.6791098", "0.67823476", "0.67772126", "0.67710894", "0.676354", "0.6755301", "0.6744292", "0.67419606", "0.674123", "0.6740126", "0.67207605", "0.67187583", "0.6712171", "0.67092395", "0.6708741", "0.67041093", "0.6697023", "0.6692746", "0.66921884", "0.66910934", "0.66875076", "0.668721", "0.66858697", "0.66690415", "0.66662645", "0.66662645", "0.66662645", "0.66662645", "0.66634536", "0.6663254", "0.6662668", "0.66578424", "0.6650567", "0.66472006", "0.66460246", "0.66327876", "0.6632425", "0.6631189", "0.6628691", "0.6624044", "0.66176414", "0.66150737", "0.6613859", "0.66120505", "0.66105354", "0.6602548", "0.65984046", "0.659729", "0.6594347" ]
0.0
-1
All fields but seed and noise must be set by caller
public TerrainObject build() { for(int i=0; i<paramsSet.length-3; i++) if(!paramsSet[i]) throw new IllegalArgumentException("Needed parameter (No. "+i+") for TerrainObject hasn't been set"); return new TerrainObject(x, y, z, xW, yW, zW, scale, seed, noise); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSeed(int seed){\n this.seed = seed; \n }", "private PRNG() {\n java.util.Random r = new java.util.Random();\n seed = r.nextInt();\n mersenne = new MersenneTwister(seed);\n }", "public int getSeed(){\n return this.seed; \n }", "public void setup()\n{\n noiseDetail(6);\n noiseScale = 0.01f;\n c1 = new Car(250, 250);\n}", "private RandomData() {\n initFields();\n }", "public void setRNG(long seed);", "@Override\n public void setSeed(final int seed) {\n int counterMask = 3;\n int[] status = new int[4];\n status[0] = seed;\n status[1] = parameter.getMat1();\n status[2] = parameter.getMat2();\n status[3] = parameter.getTmat();\n for (int i = 1; i < MIN_LOOP; i++) {\n status[i & counterMask] ^= i + MAGIC_NUMBER3\n * (status[(i - 1) & counterMask]\n ^ (status[(i - 1) & counterMask]\n >>> INITIALIZE_SHIFT2));\n }\n st0 = status[0];\n st1 = status[1];\n st2 = status[2];\n st3 = status[3];\n periodCertification();\n for (int i = 0; i < MIN_LOOP; i++) {\n nextState();\n }\n clear();\n }", "private void random() {\n\n\t}", "public Random() {\n real = new UniversalGenerator();\n twister = new MersenneTwister();\n }", "@Setup\n public void setup() {\n randomInput = new RandomComplexGenerator(inputLength).randomInputs();\n }", "public long getSeed()\n {\n return randomSeed;\n }", "void setSeed(long seed);", "public void seed(long seed) {\n }", "SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }", "public RNGRandomImpl() {\n\t\tsetRand(new Random());\n\t}", "void setSeed(final long seed);", "public long getSeed()\r\n {\r\n return this.randomSeed;\r\n }", "public int getSeed() {\r\n return seed;\r\n }", "public void initialize() {\n\t\tinitialize(seedValue0, seedValue1);\n\t}", "public Seed() {\r\n\t\tcards = new Cards();\r\n\t\tseedCards = new ArrayList<Cards>();\r\n\t\tdescription = \"\";\r\n\t\tautoSummary = \"\";\r\n\t}", "Seed(){\r\n seedCells = new ArrayList<>();\r\n edgeCells = new ArrayList<>();\r\n }", "protected Agent(){\n\t\trand = SeededRandom.getGenerator();\n\t}", "public Random(long seed) {\n real = new UniversalGenerator(seed);\n twister = new MersenneTwister(seed);\n }", "private void initState() {\r\n double metaintensity=0;\r\n double diffr=0;\r\n for(int ii=0; ii < Config.numberOfSeeds; ii++)\r\n {\r\n Cur_state[ii] = this.seeds[ii].getDurationMilliSec();\r\n// Zeit2 = this.seeds[1].getDurationMilliSec();\r\n// Zeit3 = this.seeds[2].getDurationMilliSec();\r\n// LogTool.print(\"Zeit 1 : \" + Zeit1 + \"Zeit 2 : \" + Zeit2 + \"Zeit 3 : \" + Zeit3, \"notification\");\r\n// LogTool.print(\"initState: Dwelltime Seed \" + ii + \" : \" + Cur_state[ii], \"notification\");\r\n// Cur_state[0] = Zeit1;\r\n// Cur_state[1] = Zeit2;\r\n// Cur_state[2] = Zeit3;\r\n }\r\n \r\n if ((Config.SACostFunctionType==3)||(Config.SACostFunctionType==1)) {\r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n// this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity; \r\n// Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n } else {\r\n \r\n // for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) { \r\n for(int x=0; x < Solver.dimensions[0]; x+= Config.scaleFactor) {\r\n // for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int y=0; y < Solver.dimensions[1]; y+= Config.scaleFactor) {\r\n // for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n for(int z=0; z < Solver.dimensions[2]; z+= Config.scaleFactor) {\r\n // this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity;\r\n this.body[x][y][z].metavalue = 0; \r\n this.body[x][y][z].metavalue += this.body2[x][y][z].metavalue;\r\n // Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n diffr = ((this.body[43][43][43].metavalue)-(this.body2[43][43][43].metavalue));\r\n LogTool.print(\"Shallowcopy Check, value should be 0 :\" + diffr + \"@ 43,43,43 \",\"notification\");\r\n }\r\n }", "public void setSeed(int seed) {\r\n this.seed = seed;\r\n }", "public void setSeed(int seed){\n\t\tmyRandom = new Random(seed);\n\t}", "public interface RandomSeed {\n\n\t/**\n\t * @return Uma semente randomica entre 0 e 1 inclusive.\n\t */\n\tpublic double getSeed();\n}", "public GridSimRandom(long seed) {\n random_.setSeed(seed);\n }", "public CellularAutomatonRNG()\n {\n this(DefaultSeedGenerator.getInstance().generateSeed(SEED_SIZE_BYTES));\n }", "private void setRand(){\n rand = generator.nextInt(9) + 1;\n }", "public Enigma(){ \r\n randNumber = new Random(); \r\n }", "public WB_RandomPoint setSeed(final long seed);", "public GSRandom() {\r\n\t\t\r\n\t}", "public static long getSeed() {\r\n return seed;\r\n }", "private void init() {\r\n\t\tx = (float) (Math.random() * 2 - 1);\r\n\t\ty = (float) (Math.random() * 2 - 1);\r\n\t\tz[0] = (float) (Math.random() * 3f);\r\n\t\tz[1] = z[0];\r\n\t}", "public static void randomInit(int r) { }", "void new_seed( Seed seed );", "public int getSeed() {\n return seed;\n }", "public int getSeed() {\n return seed;\n }", "private double noise(SpIterNoiseObs noise) {\n return 3.0 * 60.0;\n }", "private void assuerNN_random() {\n //Check, if the variable is null..\n if (this.random == null) {\n //..and now create it.\n this.random = new Random(10);\n }\n }", "public void setSeedRaw(final long seed) {\n\t// TBD: add check, throw exception\n\tddmuldd(expm2((double) seed - POW3_33, POW3_33), POW3_33_DIV_2, dd1);\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(Math.floor(dd2[0]), POW3_33, dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n }", "@Override\r\n\tpublic String makeANoise() {\n\t\treturn \"deer noise\";\r\n\t}", "void mosaic(int seed);", "@Override\n public void setSeed(final int[] seeds) {\n// Needed if this is a subclass of java.util.Random. (Before Java 7)\n// \n// if (parameter == null) {\n// return;\n// }\n final int lag = 1;\n final int mid = 1;\n final int size = 4;\n int i, j;\n int count;\n int r;\n int keyLength = seeds.length;\n int[] status = { 0,\n parameter.getMat1(),\n parameter.getMat2(),\n parameter.getTmat() };\n if (keyLength + 1 > MIN_LOOP) {\n count = keyLength + 1;\n } else {\n count = MIN_LOOP;\n }\n r = iniFunc1(status[0] ^ status[mid % size]\n ^ status[(size - 1) % size]);\n status[mid % size] += r;\n r += keyLength;\n status[(mid + lag) % size] += r;\n status[0] = r;\n count--;\n for (i = 1, j = 0; (j < count) && (j < keyLength); j++) {\n r = iniFunc1(status[i % size] ^ status[(i + mid) % size]\n ^ status[(i + size - 1) % size]);\n status[(i + mid) % size] += r;\n r += seeds[j] + i;\n status[(i + mid + lag) % size] += r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n for (; j < count; j++) {\n r = iniFunc1(status[i % size] ^ status[(i + mid) % size]\n ^ status[(i + size - 1) % size]);\n status[(i + mid) % size] += r;\n r += i;\n status[(i + mid + lag) % size] += r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n for (j = 0; j < size; j++) {\n r = iniFunc2(status[i % size] + status[(i + mid) % size]\n + status[(i + size - 1) % size]);\n status[(i + mid) % size] ^= r;\n r -= i;\n status[(i + mid + lag) % size] ^= r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n st0 = status[0];\n st1 = status[1];\n st2 = status[2];\n st3 = status[3];\n periodCertification();\n for (i = 0; i < MIN_LOOP; i++) {\n nextState();\n }\n clear();\n }", "public long getSeed() {\n return seed;\n }", "public final void randomSeed(long what){\n\t\tsetSeed(what);\n\t\trandom();\n\t}", "public byte[] getSeed() {\n return seed;\n }", "@Override\n protected void engineSetSeed(byte[] seed) {\n return;\n }", "private void preGenerate() {\n if (specState.randomSeed) {\n long seed = random.nextLong();\n runOnUiThread(() -> seedInput.setText(getString(R.string.integer, seed)));\n }\n\n if (specState.randomColor) {\n runOnUiThread(() -> {\n hueInput.setProgress(random.nextInt(256));\n saturationInput.setProgress(random.nextInt(256));\n valueInput.setProgress(random.nextInt(256));\n });\n }\n\n updateSpecs(specState);\n updateColorPreview();\n\n if (specState.targetWidth != sprite.getWidth() || specState.targetHeight != sprite.getHeight()) {\n recreateBitmap();\n }\n }", "public FlipCoin(int seed){\n this.rander = new Random(seed);\n }", "public GridSimRandom(long seed, double lessFactorIO, double moreFactorIO,\n double lessFactorExec, double moreFactorExec)\n {\n random_.setSeed(seed);\n lessFactorIO_ = lessFactorIO;\n moreFactorIO_ = moreFactorIO;\n lessFactorExec_ = lessFactorExec;\n moreFactorExec_ = moreFactorExec;\n }", "M generateNoise();", "public long getSeed(){\n\t\treturn this.seed;\n\t}", "public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}", "public void setRandom(Random r) {\n this.r = r;\n }", "public Rng(long seed) {\n\t\tr = new Random(seed);\n\t}", "public Dice() {\n this.random = new Random();\n this.faces = 6;\n }", "public void randomize() {\n\t\tx = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t\ty = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t}", "public XorShiftRandom(final long seed) {\n\t\tthis.seed = seed;\n\t}", "public String getSeed() {\n return m_randomSeed;\n }", "void reset(int randomseed);", "public Randomizer()\r\n {\r\n }", "public InternalExternalTour(long seed){\n\t\t\n\t\trandom = new MersenneTwister(seed);\n\t}", "public void random_init()\r\n\t{\r\n\t\tRandom random_generator = new Random();\r\n\t\t\r\n\t\tfor(int i=0;i<chromosome_size;i++)\r\n\t\t{\r\n\t\t\tchromosome[i] = random_generator.nextInt(num_colors)+1;\r\n\t\t}\r\n\t}", "public Mazealgo() {\n Random number = new Random();\n long i = number.nextLong();\n this.random = new Random(i);\n this.seed = i;\n }", "public XorShiftRandom() {\n\t\tthis(System.nanoTime());\n\t}", "public void setSeed(String seed) \n\t{\n\t}", "public final void rand() {\n\t\tpush(randomNumberGenerator.nextDouble());\n\t}", "RandomArrayGenerator() {\n this.defaultLaenge = 16;\n }", "protected Random get_rand_value()\n {\n return rand;\n }", "@Before\n public void setUp() {\n randSeeder = new Random(42);\n\n //Show we haven't seeded the test's random number generator\n randSeed = RAND_UNSEEDED;\n comp = IntPlus.getIntComparator();\n }", "private Random rand()\n\t{\n\t\treturn new Random();\n\t}", "public Rng() {\n\t\tr = new Random();\n\t}", "public BaileyCrandall() {\n\tsetSeed(System.currentTimeMillis());\n }", "@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink \");\n\t}", "protected void initializeExecutionRandomness() {\r\n\r\n\t}", "@Override\n protected void initializeSample(SamplingContext context) {\n for(int i = 0 ; i < this.EVars.length ; i++) {\n Variable EVar = this.EVars[i];\n int EVal = this.EVals[i];\n int EIndex = Toolkit.indexOf(this.sampledVars, EVar);\n context.sampledVarsAssignment[EIndex] = EVal;\n }\n // produce a few samples to get the network into a more \"normal\" state\n for(int i = 0 ; i < this.resamplingActions.size() * 2 ; i++)\n this.produceSample(context);\n context.sampleWeight = 1.0;\n\n /*WeightedSampleProducer weightedSampler = new WeightedSampleProducer(\n this.bn, this.XVars, this.YVars, this.EVars, this.EVals);\n // the variable values are preserved after the following call\n weightedSampler.produceSample(context); // evidence is correctly set\n context.sampleWeight = 1.0;*/\n }", "Randomizer getRandomizer();", "public static void setSeed( long seed ) {\n random = new Random( seed );\n }", "String getSeed();", "public final void seed(int s0, int s1, int s2)\r\n {\r\n d0 = s0;\r\n d1 = s1;\r\n d2 = s2;\r\n i = 0;\r\n }", "@Override\r\n public void initCreature() \r\n {\n \t\r\n if ( worldObj.provider.dimensionId == 1 && worldObj.rand.nextInt( 5 ) == 0 )\r\n \t{\r\n \tsetCarried( Block.whiteStone.blockID );\r\n \tsetCarryingData( 0 );\r\n \t}\r\n }", "protected Random rng() {\r\n\t\tif (entity == null || entity.world == null) {\r\n\t\t\treturn rand;\r\n\t\t}\r\n\t\treturn entity.world.rand;\r\n\t}", "@Override\n public Builder seed(long randomSeed) {\n super.seed(randomSeed);\n return this;\n }", "public void setSeed(long seed) {\n real.setSeed(seed);\n twister.setSeed(seed);\n }", "public NoiseGenerator(final long seed, final double bF, final double bA,\n final double l, final double g, final int oC, final NoiseMode m,\n final ColorGradient c, final TextureGradient t) { //All parameters are necessary.\n Random r = new Random(seed);\n perm = Arrays.copyOf(SUPPLY, 2 * SUPPLY_LENGTH);\n for (int i = 0; i < SUPPLY_LENGTH; i++) {\n int j = r.nextInt(SUPPLY_LENGTH);\n short temp = perm[i];\n perm[i] = perm[j];\n perm[j] = temp;\n }\n for (int i = 0; i < 2 * SUPPLY_LENGTH; i++) {\n perm[i] = perm[i & (SUPPLY_LENGTH - 1)];\n permMod12[i] = (short) (perm[i] % GTAB.length);\n }\n baseFreq = bF;\n baseAmp = bA;\n lacunarity = l;\n gain = g;\n octaveCap = oC;\n mode = m;\n colors = c;\n textures = t;\n }", "public long getSeed() {\n\t\treturn seed;\n\t}", "public abstract void makeNoise();", "public GridSimRandom() {\n // empty\n }", "RedSphere() {\n Random random = new Random();\n for (int i = 0; i < 6; i++) {\n value[i] = random.nextInt(33) + 1;\n }\n }", "public Mazealgo(long seed) {\n this.seed = seed;\n this.random = new Random(seed);\n }", "@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"mammals are making noise\");\n\t}", "public DayTradeStrategy(int seed) {\r\n /* If you need some initialization of e.g., instance variables\r\n write here.\r\n */\r\n\r\n fRandom = new Random(seed); // Initialization of random sequence.\r\n }", "private int randomWeight()\n {\n return dice.nextInt(1000000);\n }", "public static void setSeed(long s) {\r\n seed = s;\r\n random = new Random(seed);\r\n }", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "public MarkovZero() {\n\t\tmyRandom = new Random();\n\t}", "@Override\n\tpublic boolean isRandomizable() {\n\t\treturn false;\n\t}", "void saveRandom();", "public RandomIA() {\n\t\trandom = new Random();\n\t}" ]
[ "0.6862251", "0.67916626", "0.6764777", "0.67329866", "0.66955423", "0.6645102", "0.6542786", "0.6535569", "0.651409", "0.6511553", "0.64760375", "0.64646167", "0.6456767", "0.6397814", "0.63904375", "0.6327748", "0.6309735", "0.62996906", "0.6281922", "0.62761915", "0.62670416", "0.6261014", "0.625246", "0.6238886", "0.6225479", "0.6223258", "0.6222552", "0.62148845", "0.6210833", "0.6207885", "0.61939055", "0.6193851", "0.6180254", "0.61753786", "0.6174304", "0.6160141", "0.6157513", "0.6156035", "0.6156035", "0.61556596", "0.61553514", "0.6155136", "0.6146182", "0.614205", "0.61320055", "0.61292005", "0.6106926", "0.61060834", "0.60948753", "0.6084084", "0.60791016", "0.6077409", "0.60739815", "0.6071115", "0.60709506", "0.60703033", "0.60546696", "0.60176826", "0.6010535", "0.600598", "0.6005341", "0.6004561", "0.6000905", "0.59974724", "0.599699", "0.59780806", "0.5977609", "0.5977507", "0.59670836", "0.59594053", "0.59508324", "0.5944212", "0.59403807", "0.5940121", "0.5938403", "0.5937732", "0.59362406", "0.5932345", "0.5928925", "0.5918945", "0.5905418", "0.59022903", "0.59007746", "0.5890909", "0.58886945", "0.5882378", "0.5863915", "0.5856971", "0.5843806", "0.58377063", "0.58287495", "0.5819958", "0.58155394", "0.58076334", "0.5800736", "0.579844", "0.5787873", "0.5777789", "0.5776538", "0.57644886", "0.5755162" ]
0.0
-1
Construtor do elemento body da Nested Context Language (NCL).
public NCLBody() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ContextBodyBlock() {\n super();\n\r\n setChild(new List(), 0);\r\n setChild(new List(), 1);\r\n setChild(new List(), 2);\r\n\r\n }", "public ContextBodyBlock(List<Stmt> p0, List<ContextConstraint> p1, List<BodyDecl> p2) {\n setChild(p0, 0);\n setChild(p1, 1);\n setChild(p2, 2);\n }", "OclExpressionCS getBodyExpression();", "CompoundSt getBody () { return body; }", "public T caseBodyDeclarationCS(BodyDeclarationCS object) {\r\n return null;\r\n }", "@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(22)\n Body mainBody();", "public NodeConstraints createNodeConstraintsObject() {\n NodeConstraints c = new NodeConstraints(getClass().getCanonicalName(), getReturnTypes(), numChildren, NodeConstraints.ERC);\n Object[] args = getConstructorArgs();\n if (args != null) {\n c.setArgs(args);\n }\n return c;\n }", "public Statement getBody() {\n if (body == null) {\n // lazy initialize - use setter to ensure parent link set too\n setBody(new Block(getAST())); }\n return body; }", "public Stmt\ngetHirBody();", "public void setBody(ASTNode body) {\n this.body = body;\n }", "public ConstraintDefinition() {\n\t\tthis(\"\");\n\t}", "public T caseContextDeclarationCS(ContextDeclarationCS object) {\r\n return null;\r\n }", "Term getBody();", "CodeContext(Context ctx, Node node) {\n super(ctx, node);\n switch (node.op) {\n case DO:\n case WHILE:\n case FOR:\n case FINALLY:\n case SYNCHRONIZED:\n this.breakLabel = new Label();\n this.contLabel = new Label();\n break;\n case SWITCH:\n case TRY:\n case INLINEMETHOD:\n case INLINENEWINSTANCE:\n this.breakLabel = new Label();\n break;\n default:\n if ((node instanceof Statement) && (((Statement)node).labels != null)) {\n this.breakLabel = new Label();\n }\n }\n }", "public BF() {\n\t\tsuper(\"Body Fat\", \"%\");\n\t}", "public T caseClassifierContextDeclarationCS(ClassifierContextDeclarationCS object) {\r\n return null;\r\n }", "public LInfSCBLens(){\n\tsuper();\n }", "public NCLBody(XMLReader reader, NCLElementImpl parent) {\n setReader(reader);\n setParent(parent);\n\n getReader().setContentHandler(this);\n }", "private static void initNewCelestialBody(CelestialBody _cb){\r\n CelestialBodyController cbc = new CelestialBodyController(_cb);\r\n celestialBodyControllers.put(_cb.name, cbc);\r\n renderService.addInstance(cbc);\r\n }", "@Override\n protected String getInitialBody(PythonParseTree.PythonParser.FuncdefContext function) {\n return function.suite().getText();\n }", "@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(23)\n void mainBody(\n Body oMainBody);", "public T caseAttributeContextDeclarationCS(AttributeContextDeclarationCS object) {\r\n return null;\r\n }", "public BlockStmt\ngetInitiationPart();", "public abstract ContextNode getContextNode();", "public Literal getDeepLiteral(XDI3Segment contextNodeXri);", "JStaticBlock(int line, JBlock body) {\r\n\t\tsuper(line);\r\n\t\tthis.block = body;\r\n\t}", "public LinearConstraint() {\n\n }", "public void setBody(ClassBodyNode body);", "LabInner innerModel();", "Constraint getBodyCondition();", "private BaleElement.Branch createOuterBranch(BaleAstNode sn)\n{\n switch (sn.getNodeType()) {\n case FILE :\n\t return new BaleElement.CompilationUnitNode(for_document,cur_parent);\n case CLASS :\n\t return new BaleElement.ClassNode(for_document,cur_parent);\n case METHOD :\n\t return new BaleElement.MethodNode(for_document,cur_parent);\n case FIELD :\n\t return new BaleElement.FieldNode(for_document,cur_parent);\n case ANNOTATION :\n\t return new BaleElement.AnnotationNode(for_document,cur_parent);\n case STATEMENT :\n\t return new BaleElement.SplitStatementNode(for_document,cur_parent);\n case EXPRESSION :\n\t return new BaleElement.SplitExpressionNode(for_document,cur_parent);\n case BLOCK :\n\t return new BaleElement.BlockNode(for_document,cur_parent);\n case SWITCH_BLOCK :\n\t return new BaleElement.SwitchBlockNode(for_document,cur_parent);\n case INITIALIZER :\n\t return new BaleElement.InitializerNode(for_document,cur_parent);\n case SET :\n\t // return new BaleElement.DeclSet(for_document,cur_parent);\n\t break;\n default:\n\t break;\n }\n return null;\n}", "void setBody (DBody body);", "public TwoBody(KeplerElements k)\n\t{\n\t\t//Constants c = new Constants();\n\t\tthis.a = k.a;\n\t\tthis.e = k.e;\n\t\tthis.i = k.i;\n\t\tthis.raan = k.raan;\n\t\tthis.w = k.w;\n\t\tthis.ta = k.ta;\n\t\trv = new VectorN(randv());\n\t}", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "public Constraint(String cnline)\n {\n// PrintStream stdout = System.out;\n// stdout.printf(\"Constraint: line: %s\\n\", cnline);\n\tString[] cnArray = cnline.split(\" \");\n\tif (cnArray.length != 2) {\n\t debug.error(\"Invalid constraint: '%s'\", cnline);\n\t}\n\n\tthis.name = cnArray[0].toLowerCase();;\n\tthis.mf = Scoring.mf2int(cnArray[1].charAt(0));\n }", "@Override\n\tpublic void inAClassBody(AClassBody node) {\n // Determine the start and end line numbers.\n int begin = findBeginLine(node);\n int end = node.getRBrace().getLine();\n String cname = null;\n Node parentNode = node.parent();\n if (parentNode instanceof AClassDeclaration) {\n // This handles normal class declarations, as well as\n // named inner class declaractions.\n AClassDeclaration parent = (AClassDeclaration) parentNode;\n TIdentifier name = parent.getIdentifier();\n cname = name.getText();\n\n } else if (parentNode instanceof\n ASimpleClassInstanceCreationExpression\n || parentNode instanceof\n AQualifiedClassInstanceCreationExpression\n || parentNode instanceof\n AInnerclassClassInstanceCreationExpression) {\n // This handles an anonymous inner class declaration.\n // Use special value of 'new' for anonymous classes.\n cname = ANONYMOUS_CLASS_NAME;\n }\n int braceLine = node.getLBrace().getLine();\n ClassDefinition cd = new ClassDefinition(cname, braceLine, begin, end);\n classLines.add(cd);\n }", "protected Sentence() {/* intentionally empty block */}", "STRONG createSTRONG();", "public T caseOperationContextDeclarationCS(OperationContextDeclarationCS object) {\r\n return null;\r\n }", "public ClassBodyNode getBody()throws ClassCastException;", "public final EObject ruleClassifierContextDeclCS() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_4=null;\n EObject lv_ownedSignature_1_0 = null;\n\n AntlrDatatypeRuleToken lv_selfName_2_0 = null;\n\n EObject lv_ownedPathName_3_0 = null;\n\n EObject lv_ownedInvariants_5_0 = null;\n\n EObject lv_ownedDefinitions_6_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:3477:2: ( (otherlv_0= 'context' ( (lv_ownedSignature_1_0= ruleTemplateSignatureCS ) )? ( (lv_selfName_2_0= ruleUnrestrictedName ) )? ( (lv_ownedPathName_3_0= rulePathNameCS ) ) ( (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) ) | ( (lv_ownedDefinitions_6_0= ruleDefCS ) ) )+ ) )\n // InternalMyDsl.g:3478:2: (otherlv_0= 'context' ( (lv_ownedSignature_1_0= ruleTemplateSignatureCS ) )? ( (lv_selfName_2_0= ruleUnrestrictedName ) )? ( (lv_ownedPathName_3_0= rulePathNameCS ) ) ( (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) ) | ( (lv_ownedDefinitions_6_0= ruleDefCS ) ) )+ )\n {\n // InternalMyDsl.g:3478:2: (otherlv_0= 'context' ( (lv_ownedSignature_1_0= ruleTemplateSignatureCS ) )? ( (lv_selfName_2_0= ruleUnrestrictedName ) )? ( (lv_ownedPathName_3_0= rulePathNameCS ) ) ( (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) ) | ( (lv_ownedDefinitions_6_0= ruleDefCS ) ) )+ )\n // InternalMyDsl.g:3479:3: otherlv_0= 'context' ( (lv_ownedSignature_1_0= ruleTemplateSignatureCS ) )? ( (lv_selfName_2_0= ruleUnrestrictedName ) )? ( (lv_ownedPathName_3_0= rulePathNameCS ) ) ( (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) ) | ( (lv_ownedDefinitions_6_0= ruleDefCS ) ) )+\n {\n otherlv_0=(Token)match(input,55,FOLLOW_39); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getClassifierContextDeclCSAccess().getContextKeyword_0());\n \t\t\n }\n // InternalMyDsl.g:3483:3: ( (lv_ownedSignature_1_0= ruleTemplateSignatureCS ) )?\n int alt32=2;\n int LA32_0 = input.LA(1);\n\n if ( (LA32_0==20||LA32_0==70) ) {\n alt32=1;\n }\n switch (alt32) {\n case 1 :\n // InternalMyDsl.g:3484:4: (lv_ownedSignature_1_0= ruleTemplateSignatureCS )\n {\n // InternalMyDsl.g:3484:4: (lv_ownedSignature_1_0= ruleTemplateSignatureCS )\n // InternalMyDsl.g:3485:5: lv_ownedSignature_1_0= ruleTemplateSignatureCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getClassifierContextDeclCSAccess().getOwnedSignatureTemplateSignatureCSParserRuleCall_1_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_39);\n lv_ownedSignature_1_0=ruleTemplateSignatureCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getClassifierContextDeclCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"ownedSignature\",\n \t\t\t\t\t\tlv_ownedSignature_1_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.TemplateSignatureCS\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n // InternalMyDsl.g:3502:3: ( (lv_selfName_2_0= ruleUnrestrictedName ) )?\n int alt33=2;\n switch ( input.LA(1) ) {\n case RULE_SIMPLE_ID:\n {\n int LA33_1 = input.LA(2);\n\n if ( ((LA33_1>=RULE_SIMPLE_ID && LA33_1<=RULE_ESCAPED_ID)||LA33_1==19||(LA33_1>=60 && LA33_1<=61)) ) {\n alt33=1;\n }\n }\n break;\n case RULE_ESCAPED_ID:\n {\n int LA33_2 = input.LA(2);\n\n if ( ((LA33_2>=RULE_SIMPLE_ID && LA33_2<=RULE_ESCAPED_ID)||LA33_2==19||(LA33_2>=60 && LA33_2<=61)) ) {\n alt33=1;\n }\n }\n break;\n case 19:\n {\n int LA33_3 = input.LA(2);\n\n if ( ((LA33_3>=RULE_SIMPLE_ID && LA33_3<=RULE_ESCAPED_ID)||LA33_3==19||(LA33_3>=60 && LA33_3<=61)) ) {\n alt33=1;\n }\n }\n break;\n case 60:\n {\n int LA33_4 = input.LA(2);\n\n if ( ((LA33_4>=RULE_SIMPLE_ID && LA33_4<=RULE_ESCAPED_ID)||LA33_4==19||(LA33_4>=60 && LA33_4<=61)) ) {\n alt33=1;\n }\n }\n break;\n case 61:\n {\n int LA33_5 = input.LA(2);\n\n if ( ((LA33_5>=RULE_SIMPLE_ID && LA33_5<=RULE_ESCAPED_ID)||LA33_5==19||(LA33_5>=60 && LA33_5<=61)) ) {\n alt33=1;\n }\n }\n break;\n }\n\n switch (alt33) {\n case 1 :\n // InternalMyDsl.g:3503:4: (lv_selfName_2_0= ruleUnrestrictedName )\n {\n // InternalMyDsl.g:3503:4: (lv_selfName_2_0= ruleUnrestrictedName )\n // InternalMyDsl.g:3504:5: lv_selfName_2_0= ruleUnrestrictedName\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getClassifierContextDeclCSAccess().getSelfNameUnrestrictedNameParserRuleCall_2_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_39);\n lv_selfName_2_0=ruleUnrestrictedName();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getClassifierContextDeclCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"selfName\",\n \t\t\t\t\t\tlv_selfName_2_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.UnrestrictedName\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n // InternalMyDsl.g:3521:3: ( (lv_ownedPathName_3_0= rulePathNameCS ) )\n // InternalMyDsl.g:3522:4: (lv_ownedPathName_3_0= rulePathNameCS )\n {\n // InternalMyDsl.g:3522:4: (lv_ownedPathName_3_0= rulePathNameCS )\n // InternalMyDsl.g:3523:5: lv_ownedPathName_3_0= rulePathNameCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getClassifierContextDeclCSAccess().getOwnedPathNamePathNameCSParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_40);\n lv_ownedPathName_3_0=rulePathNameCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getClassifierContextDeclCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"ownedPathName\",\n \t\t\t\t\t\tlv_ownedPathName_3_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.base.Base.PathNameCS\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalMyDsl.g:3540:3: ( (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) ) | ( (lv_ownedDefinitions_6_0= ruleDefCS ) ) )+\n int cnt34=0;\n loop34:\n do {\n int alt34=3;\n int LA34_0 = input.LA(1);\n\n if ( (LA34_0==56) ) {\n alt34=1;\n }\n else if ( ((LA34_0>=57 && LA34_0<=58)) ) {\n alt34=2;\n }\n\n\n switch (alt34) {\n \tcase 1 :\n \t // InternalMyDsl.g:3541:4: (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) )\n \t {\n \t // InternalMyDsl.g:3541:4: (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) )\n \t // InternalMyDsl.g:3542:5: otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) )\n \t {\n \t otherlv_4=(Token)match(input,56,FOLLOW_41); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_4, grammarAccess.getClassifierContextDeclCSAccess().getInvKeyword_4_0_0());\n \t \t\t\t\t\n \t }\n \t // InternalMyDsl.g:3546:5: ( (lv_ownedInvariants_5_0= ruleConstraintCS ) )\n \t // InternalMyDsl.g:3547:6: (lv_ownedInvariants_5_0= ruleConstraintCS )\n \t {\n \t // InternalMyDsl.g:3547:6: (lv_ownedInvariants_5_0= ruleConstraintCS )\n \t // InternalMyDsl.g:3548:7: lv_ownedInvariants_5_0= ruleConstraintCS\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getClassifierContextDeclCSAccess().getOwnedInvariantsConstraintCSParserRuleCall_4_0_1_0());\n \t \t\t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_42);\n \t lv_ownedInvariants_5_0=ruleConstraintCS();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getClassifierContextDeclCSRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"ownedInvariants\",\n \t \t\t\t\t\t\t\t\tlv_ownedInvariants_5_0,\n \t \t\t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.ConstraintCS\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // InternalMyDsl.g:3567:4: ( (lv_ownedDefinitions_6_0= ruleDefCS ) )\n \t {\n \t // InternalMyDsl.g:3567:4: ( (lv_ownedDefinitions_6_0= ruleDefCS ) )\n \t // InternalMyDsl.g:3568:5: (lv_ownedDefinitions_6_0= ruleDefCS )\n \t {\n \t // InternalMyDsl.g:3568:5: (lv_ownedDefinitions_6_0= ruleDefCS )\n \t // InternalMyDsl.g:3569:6: lv_ownedDefinitions_6_0= ruleDefCS\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tnewCompositeNode(grammarAccess.getClassifierContextDeclCSAccess().getOwnedDefinitionsDefCSParserRuleCall_4_1_0());\n \t \t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_42);\n \t lv_ownedDefinitions_6_0=ruleDefCS();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getClassifierContextDeclCSRule());\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\"ownedDefinitions\",\n \t \t\t\t\t\t\t\tlv_ownedDefinitions_6_0,\n \t \t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.DefCS\");\n \t \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt34 >= 1 ) break loop34;\n \t if (state.backtracking>0) {state.failed=true; return current;}\n EarlyExitException eee =\n new EarlyExitException(34, input);\n throw eee;\n }\n cnt34++;\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "private void buildFunctionBody(IFunction nd) {\n this.ctxt.push((Node) nd);\n\n // build a list of all parameters and default expressions in order, with\n // the default expressions preceding their corresponding parameter\n List<Expression> paramsAndDefaults = new ArrayList<Expression>();\n for (int j = 0, n = nd.getParams().size(); j < n; ++j) {\n if (nd.hasDefault(j)) paramsAndDefaults.add(nd.getDefault(j));\n paramsAndDefaults.add((Expression) nd.getParams().get(j));\n }\n if (nd.hasRest()) paramsAndDefaults.add((Expression) nd.getRest());\n\n Node entry = getEntryNode(nd);\n List<Identifier> fns = HoistedFunDecls.of(nd);\n hoistedFns.addAll(fns);\n\n // if this is the constructor of a class without a superclass, we need to\n // initialise all fields before running the body of the constructor\n // (for classes with a superclass, that initialisation only happens after\n // `super` calls)\n AClass klass = constructor2Class.get(nd);\n FieldDefinition firstField = null;\n if (klass != null && !klass.hasSuperClass()) {\n Pair<FieldDefinition, FieldDefinition> p = instanceFields.peek();\n if (p != null) {\n firstField = p.fst();\n writeSuccessor(p.snd(), First.of(nd.getBody()));\n }\n }\n\n Collection<Node> fst = visitSequence(nd.getBody(), this.getExitNode(nd));\n if (firstField != null) fst = Collections.singleton(First.of(firstField));\n fst =\n visitSequence(\n nd instanceof FunctionDeclaration ? null : nd.getId(), paramsAndDefaults, fns, fst);\n writeSuccessors(entry, fst);\n\n this.ctxt.pop();\n }", "public PContext() {\r\n\t\tthis(new PDirective(), null, null);\r\n\t}", "@Test(expected = NullPointerException.class)\r\n\tpublic void createWithNullBody1() {\r\n\t\tnew WeldJoint<Body>(null, b2, new Vector2());\r\n\t}", "public void setBody(ClassBody body) {\n\t\tif(body == null) {\n\t\t\t_componentType.connectTo((Association)createComponentType(new ClassBody()).parentLink());\n\t\t} else {\n\t\t\t_componentType.connectTo((Association) createComponentType(body).parentLink());\n\t\t}\n\t}", "JCExpression TODO(JFXTree tree) {\n return TODO(\"BIND functionality: \" + tree.getClass().getSimpleName());\n }", "@Override\n public JminBaseNode xlate(\n Translator xlator,\n J8BaseNode n8, Supplier<ImmutableList<JminBaseNode>> children) {\n com.mikesamuel.cil.ast.jmin.ExplicitConstructorInvocationNode inv\n = null;\n com.mikesamuel.cil.ast.jmin.BlockStatementsNode stmts = null;\n for (JminBaseNode child : children.get()) {\n switch (child.getNodeType()) {\n case ExplicitConstructorInvocation:\n inv = (com.mikesamuel.cil.ast.jmin\n .ExplicitConstructorInvocationNode) child;\n break;\n case BlockStatements:\n stmts = (com.mikesamuel.cil.ast.jmin\n .BlockStatementsNode) child;\n break;\n default:\n throw new AssertionError(child);\n }\n }\n if (inv == null) {\n inv = com.mikesamuel.cil.ast.jmin\n .ExplicitConstructorInvocationNode\n .Variant\n .TypeArgumentsSuperLpArgumentListRpSem\n .buildNode();\n }\n ImmutableList.Builder<JminBaseNode> b = ImmutableList.builder();\n b.add(inv);\n if (stmts != null) { b.add(stmts); }\n return com.mikesamuel.cil.ast.jmin.ConstructorBodyNode.Variant\n .LcExplicitConstructorInvocationBlockStatementsRc\n .buildNode(b.build());\n }", "protected final void validateNotBuildingInner()\n {\n Validate.stateIsNull(myInner,What.INNERBLOCK);\n }", "public ContextNode getContextNode(int arcs);", "public void setBodyElelemtList(List<BodyDecl> list) {\n setChild(list, 2);\n }", "@Override\n\tpublic Body makeBody(Map<String, String> attributes, Node... nodes) {\n\t\treturn new Body( attributes, nodes );\n\t}", "protected abstract Body newBodyImpl();", "public interface CompileContext extends UserDataHolder {\n /**\n * Allows to add a message to be shown in Compiler message view.\n * If correct url, line and column numbers are supplied, the navigation to the specified file is available from the view.\n *\n * @param category the category of a message (information, error, warning).\n * @param message the text of the message.\n * @param url a url to the file to which the message applies, null if not available.\n * @param lineNum a line number, -1 if not available.\n * @param columnNum a column number, -1 if not available.\n */\n default void addMessage(@NotNull CompilerMessageCategory category, @Nls(capitalization = Nls.Capitalization.Sentence) String message, @Nullable String url, int lineNum, int columnNum) {\n addMessage(category, message, url, lineNum, columnNum, null);\n }\n\n /**\n * Allows to add a message to be shown in Compiler message view, with a specified Navigatable\n * that is used to navigate to the error location.\n *\n * @param category the category of a message (information, error, warning).\n * @param message the text of the message.\n * @param url a url to the file to which the message applies, null if not available.\n * @param lineNum a line number, -1 if not available.\n * @param columnNum a column number, -1 if not available.\n * @param navigatable the navigatable pointing to the error location.\n */\n default void addMessage(@NotNull CompilerMessageCategory category,\n @Nls(capitalization = Nls.Capitalization.Sentence) String message,\n @Nullable String url, int lineNum, int columnNum, @Nullable Navigatable navigatable) {\n addMessage(category, message, url, lineNum, columnNum, navigatable, Collections.emptyList());\n }\n\n /**\n * Allows to add a message to be shown in Compiler message view, with a specified Navigatable\n * that is used to navigate to the error location.\n * @param category the category of a message (information, error, warning).\n * @param message the text of the message.\n * @param url a url to the file to which the message applies, null if not available.\n * @param lineNum a line number, -1 if not available.\n * @param columnNum a column number, -1 if not available.\n * @param navigatable optional the navigatable pointing to the error location or null. If not specified, navigation will attempt to set cursor (line:column) position, if available.\n * @param moduleNames module name describing the context for the message (e.g. the module where the error occurred).\n * If a module cycle is compiled, the argument will contain names of modules that form the dependency cycle.\n */\n void addMessage(@NotNull CompilerMessageCategory category,\n @Nls(capitalization = Nls.Capitalization.Sentence) String message,\n @Nullable String url, int lineNum, int columnNum, @Nullable Navigatable navigatable, Collection<String> moduleNames);\n\n /**\n * Returns all messages of the specified category added during the current compile session.\n *\n * @param category the category for which messages are requested.\n * @return all compiler messages of the specified category\n */\n CompilerMessage @NotNull [] getMessages(@NotNull CompilerMessageCategory category);\n\n /**\n * Returns the count of messages of the specified category added during the current compile session.\n *\n * @param category the category for which messages are requested.\n * @return the number of messages of the specified category\n */\n int getMessageCount(@Nullable CompilerMessageCategory category);\n\n /**\n * Returns the progress indicator of the compilation process.\n *\n * @return the progress indicator instance.\n */\n @NotNull\n ProgressIndicator getProgressIndicator();\n\n /**\n * Returns the current compile scope.\n *\n * @return current compile scope\n */\n CompileScope getCompileScope();\n\n /**\n * Returns the compile scope which would be used if the entire project was rebuilt.\n * {@link #getCompileScope()} may return the scope, that is more narrow than ProjectCompileScope.\n *\n * @return project-wide compile scope.\n */\n CompileScope getProjectCompileScope();\n\n /**\n * A compiler may call this method in order to request complete project rebuild.\n * This may be necessary, for example, when compiler caches are corrupted.\n */\n void requestRebuildNextTime(String message);\n\n boolean isRebuildRequested();\n\n @Nullable\n String getRebuildReason();\n\n /**\n * Returns the module to which the specified file belongs. This method is aware of the file->module mapping\n * for generated files.\n *\n * @param file the file to check.\n * @return the module to which the file belongs\n */\n Module getModuleByFile(@NotNull VirtualFile file);\n\n /**\n * Returns the output directory for the specified module.\n *\n * @param module the module to check.\n * @return the output directory for the module specified, null if corresponding VirtualFile is not valid or directory not specified\n */\n @Nullable\n VirtualFile getModuleOutputDirectory(@NotNull Module module);\n\n /**\n * Returns the test output directory for the specified module.\n *\n * @param module the module to check.\n * @return the tests output directory the module specified, null if corresponding VirtualFile is not valid. If in Paths settings\n * output directory for tests is not configured explicitly, but the output path is present, the output path will be returned.\n */\n @Nullable\n VirtualFile getModuleOutputDirectoryForTests(Module module);\n\n /**\n * Checks if the compilation is incremental, i.e. triggered by one of \"Make\" actions.\n *\n * @return true if compilation is incremental. \n */\n boolean isMake();\n\n boolean isAutomake();\n\n boolean isRebuild();\n\n @NotNull\n Project getProject();\n\n boolean isAnnotationProcessorsEnabled();\n}", "private AppLnmCenaBi() {\n\t\tsuper(\"APP_LNM_CENA_BI\", Wetrn.WETRN);\n\t}", "@Test(expected = NullPointerException.class)\r\n\tpublic void createWithNullBody2() {\r\n\t\tnew WeldJoint<Body>(b1, null, new Vector2());\r\n\t}", "public KLabelMultiline() {\n // TODO codavaj!!\n }", "public final void initBody() {\n m_body = new ArrayList<Condition>();\n m_stats = new TwoClassConfusionMatrix();\n m_val = Double.NEGATIVE_INFINITY;\n resetTieBreaker();\n }", "public abstract void body();", "public ContextNode getContextNode();", "public OtherBody(String type,String name){\n this.type = type;\n this.name = name+\"'s \"+type;\n systemName = name;\n }", "private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }", "public interface ClassBody extends Term\n{\n /**\n * List of the class's members.\n * @return A list of {@link polyglot.ast.ClassMember ClassMember}.\n */\n List<ClassMember> members();\n\n /**\n * Set the class's members.\n * @param members A list of {@link polyglot.ast.ClassMember ClassMember}.\n */\n ClassBody members(List<ClassMember> members);\n\n /**\n * Add a member to the class, returning a new node.\n */\n ClassBody addMember(ClassMember member);\n}", "@Override\n protected void translate(int n, LanguageBuilder sb) {\n\t sb.indent(n)\n\t \t.append(Keyword.FOR).space().append('(').append(_condition).append(')').beginBlock();\n\t \n\t childrenTranslate(n + PrintStyle.INDENT, sb);\n\t \n\t sb.indent(n).endBlock();\n\t}", "public interface ContextNode extends Serializable, Comparable<ContextNode> {\r\n\r\n\t/*\r\n\t * General methods\r\n\t */\r\n\r\n\t/**\r\n\t * Get the graph of this context node.\r\n\t * @return The graph of this context node.\r\n\t */\r\n\tpublic Graph getGraph();\r\n\r\n\t/**\r\n\t * Every context node has a parent context node, except the root context node.\r\n\t * @return The parent context node of this context node, or null.\r\n\t */\r\n\tpublic ContextNode getContextNode();\r\n\r\n\t/**\r\n\t * Every context node has ancestor context nodes, except the root context node.\r\n\t * @param arcs The number of arcs to follow up the graph.\r\n\t * @return The ancestor context node of this context node, or null.\r\n\t */\r\n\tpublic ContextNode getContextNode(int arcs);\r\n\r\n\t/**\r\n\t * Checks if this context node is the root context node.\r\n\t * @return True, if this context node is the root context node.\r\n\t */\r\n\tpublic boolean isRootContextNode();\r\n\r\n\t/**\r\n\t * Checks if this context node is a leaf context node.\r\n\t * @return True, if this context node is a leaf context node.\r\n\t */\r\n\tpublic boolean isLeafContextNode();\r\n\r\n\t/**\r\n\t * Deletes this context node.\r\n\t */\r\n\tpublic void delete();\r\n\r\n\t/**\r\n\t * Clears the context node. This is equivalent to calling delContextNodes(), delRelations() and delLiterals().\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Checks if the context node is empty. \r\n\t * This is equivalent to calling ! ( containsContextNodes() || containsRelations() || containsLiterals() ).\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Every context node has an associated arc XRI.\r\n\t * This returns null for the root context node.\r\n\t * @return The arc XRI associated with this context node.\r\n\t */\r\n\tpublic XDI3SubSegment getArcXri();\r\n\r\n\t/**\r\n\t * Gets the XRI of this context node.\r\n\t * This returns () for the root context node.\r\n\t * @return The XRI of this context node.\r\n\t */\r\n\tpublic XDI3Segment getXri();\r\n\r\n\t/*\r\n\t * Methods related to context nodes of this context node\r\n\t */\r\n\r\n\t/**\r\n\t * Creates a new context node and adds it to this context node, or returns an existing context node.\r\n\t * @param arcXri The arc XRI of the new or existing context node.\r\n\t * @return The newly created or existing context node.\r\n\t */\r\n\tpublic ContextNode setContextNode(XDI3SubSegment arcXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setContextNode(XDI3SubSegment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic ContextNode setDeepContextNode(XDI3Segment contextNodeXri);\r\n\r\n\t/**\r\n\t * Returns the context node with a given arc XRI.\r\n\t * @param arcXri The arc XRI of the context node.\r\n\t * @return The context node with the given arc XRI, or null.\r\n\t */\r\n\tpublic ContextNode getContextNode(XDI3SubSegment arcXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getContextNode(XDI3SubSegment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic ContextNode getDeepContextNode(XDI3Segment contextNodeXri);\r\n\r\n\t/**\r\n\t * Returns the context nodes of this context node.\r\n\t * @return An iterator over context nodes.\r\n\t */\r\n\tpublic ReadOnlyIterator<ContextNode> getContextNodes();\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getContextNodes(), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic ReadOnlyIterator<ContextNode> getDeepContextNodes(XDI3Segment contextNodeXri);\r\n\r\n\t/**\r\n\t * Returns all context nodes of this context node.\r\n\t * @return An iterator over context nodes.\r\n\t */\r\n\tpublic ReadOnlyIterator<ContextNode> getAllContextNodes();\r\n\r\n\t/**\r\n\t * Returns all leaf context nodes of this context node.\r\n\t * @return An iterator over leaf context nodes.\r\n\t */\r\n\tpublic ReadOnlyIterator<ContextNode> getAllLeafContextNodes();\r\n\r\n\t/**\r\n\t * Checks if a context node with a given arc XRI exists in this context node.\r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @return True if this context node has a context node with the given arc XRI.\r\n\t */\r\n\tpublic boolean containsContextNode(XDI3SubSegment arcXri);\r\n\r\n\t/**\r\n\t * Checks if this context node has one or more context nodes.\r\n\t * @return True if this context node has context nodes.\r\n\t */\r\n\tpublic boolean containsContextNodes();\r\n\r\n\t/**\r\n\t * Deletes the context node with a given arc XRI.\r\n\t * @param arcXri The arc XRI of this context arc.\r\n\t */\r\n\tpublic void delContextNode(XDI3SubSegment arcXri);\r\n\r\n\t/**\r\n\t * Deletes all context nodes from this context node.\r\n\t */\r\n\tpublic void delContextNodes();\r\n\r\n\t/**\r\n\t * Returns the number of context nodes of this context node.\r\n\t * @return The number of context nodes.\r\n\t */\r\n\tpublic long getContextNodeCount();\r\n\r\n\t/**\r\n\t * Returns the number of all context nodes of this context node.\r\n\t * @return The number of context nodes.\r\n\t */\r\n\tpublic long getAllContextNodeCount();\r\n\r\n\t/*\r\n\t * Methods related to relations of this context node\r\n\t */\r\n\r\n\t/**\r\n\t * Creates a new relation and adds it to this context node, or returns an existing relation.\r\n\t * @param arcXri The arc XRI of the relation.\r\n\t * @param targetContextNodeXri The target context node XRI of the relation.\r\n\t * @return The newly created or existing relation.\r\n\t */\r\n\tpublic Relation setRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setRelation(XDI3Segment, XDI3Segment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Creates a new relation and adds it to this context node, or returns an existing relation.\r\n\t * @param arcXri The arc XRI of the relation.\r\n\t * @param targetContextNode The target context node of the relation.\r\n\t * @return The newly created or existing relation.\r\n\t */\r\n\tpublic Relation setRelation(XDI3Segment arcXri, ContextNode targetContextNode);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setRelation(XDI3Segment, ContextNode), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, ContextNode targetContextNode);\r\n\r\n\t/**\r\n\t * Returns a relation at this context node. \r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @param targetContextNodeXri The target context node XRI of the relation.\r\n\t * @return The relation with the given arc XRI, or null.\r\n\t */\r\n\tpublic Relation getRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getRelation(XDI3Segment, XDI3Segment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Relation getDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Returns a relation at this context node. \r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @return The relation with the given arc XRI, or null.\r\n\t */\r\n\tpublic Relation getRelation(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getRelation(XDI3Segment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Relation getDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Returns relations at this context node. \r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @return An iterator over relations with the given arc XRI, or null.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getRelations(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getRelations(XDI3Segment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getDeepRelations(XDI3Segment contextNodeXri, XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Returns the relations of this context node.\r\n\t * @return An iterator over relations.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getRelations();\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getRelations(), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getDeepRelations(XDI3Segment contextNodeXri);\r\n\r\n\t/**\r\n\t * Returns the incoming relations with a given arc XRI.\r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @return An iterator over relations with the given arc XRI, or null.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getIncomingRelations(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Returns the incoming relations of this context node.\r\n\t * @return An iterator over relations.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getIncomingRelations();\r\n\r\n\t/**\r\n\t * Returns all relations of this context node.\r\n\t * @return An iterator over relations.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getAllRelations();\r\n\r\n\t/**\r\n\t * Returns all incoming relations of this context node.\r\n\t * @return An iterator over relations.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getAllIncomingRelations();\r\n\r\n\t/**\r\n\t * Checks if a relation with a given arc XRI and target context node XRI exists in this context node.\r\n\t * @param arcXri The arc XRI of the relations. \r\n\t * @param targetContextNodeXri The target context node XRI of the relation.\r\n\t * @return True if this context node has a relation with the given arc XRI and target context node XRI.\r\n\t */\r\n\tpublic boolean containsRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Checks if relations with a given arc XRI exist in this context node.\r\n\t * @param arcXri The arc XRI of the relations. \r\n\t * @return True if this context node has relations with the given arc XRI.\r\n\t */\r\n\tpublic boolean containsRelations(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Checks if this context node has one or more relations.\r\n\t * @return True if this context node has relations.\r\n\t */\r\n\tpublic boolean containsRelations();\r\n\r\n\t/**\r\n\t * Checks if incoming relations with a given arc XRI exist in this context node.\r\n\t * @param arcXri The arc XRI of the incoming relations. \r\n\t * @return True if this context node has incoming relations with the given arc XRI.\r\n\t */\r\n\tpublic boolean containsIncomingRelations(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Checks if this context node has one or more incoming relations.\r\n\t * @return True if this context node has incoming relations.\r\n\t */\r\n\tpublic boolean containsIncomingRelations();\r\n\r\n\t/**\r\n\t * Deletes the relation with a given arc XRI from this context node.\r\n\t * @param arcXri The arc XRI of the relation.\r\n\t * @param targetContextNodeXri The target context node XRI of the relation.\r\n\t */\r\n\tpublic void delRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Deletes the relation with a given arc XRI from this context node.\r\n\t * @param arcXri The arc XRI of the relation.\r\n\t */\r\n\tpublic void delRelations(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Deletes all relations from this context node.\r\n\t */\r\n\tpublic void delRelations();\r\n\r\n\t/**\r\n\t * Deletes the incoming relations of this context node.\r\n\t */\r\n\tpublic void delIncomingRelations();\r\n\r\n\t/**\r\n\t * Returns the number of relations of this context node.\r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @return The number of relations.\r\n\t */\r\n\tpublic long getRelationCount(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Returns the number of relations of this context node.\r\n\t * @return The number of relations.\r\n\t */\r\n\tpublic long getRelationCount();\r\n\r\n\t/**\r\n\t * Returns the number of all relations of this context node.\r\n\t * @return The number of relations.\r\n\t */\r\n\tpublic long getAllRelationCount();\r\n\r\n\t/*\r\n\t * Methods related to literals of this context node\r\n\t */\r\n\r\n\t/**\r\n\t * Creates a new literal and adds it to this context node, or returns an existing literal.\r\n\t * @param literalData The literal data associated with the literal.\r\n\t * @return The newly created or existing literal.\r\n\t */\r\n\tpublic Literal setLiteral(Object literalData);\r\n\r\n\t/**\r\n\t * Creates a new literal and adds it to this context node, or returns an existing literal.\r\n\t * @param literalData The literal data string associated with the literal.\r\n\t * @return The newly created or existing literal.\r\n\t */\r\n\tpublic Literal setLiteralString(String literalData);\r\n\r\n\t/**\r\n\t * Creates a new literal and adds it to this context node, or returns an existing literal.\r\n\t * @param literalData The literal data number associated with the literal.\r\n\t * @return The newly created or existing literal.\r\n\t */\r\n\tpublic Literal setLiteralNumber(Double literalData);\r\n\r\n\t/**\r\n\t * Creates a new literal and adds it to this context node, or returns an existing literal.\r\n\t * @param literalData The literal data boolean associated with the literal.\r\n\t * @return The newly created or existing literal.\r\n\t */\r\n\tpublic Literal setLiteralBoolean(Boolean literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setLiteral(Object), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal setDeepLiteral(XDI3Segment contextNodeXri, Object literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setLiteralString(String), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal setDeepLiteralString(XDI3Segment contextNodeXri, String literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setLiteralNumber(Double), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal setDeepLiteralNumber(XDI3Segment contextNodeXri, Double literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setLiteralBoolean(Boolean), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal setDeepLiteralBoolean(XDI3Segment contextNodeXri, Boolean literalData);\r\n\r\n\t/**\r\n\t * Returns the literal of this context node.\r\n\t * @param literalData The literal data associated with the literal.\r\n\t * @return The literal.\r\n\t */\r\n\tpublic Literal getLiteral(Object literalData);\r\n\r\n\t/**\r\n\t * Returns the literal of this context node.\r\n\t * @param literalData The literal data string associated with the literal.\r\n\t * @return The literal.\r\n\t */\r\n\tpublic Literal getLiteralString(String literalData);\r\n\r\n\t/**\r\n\t * Returns the literal of this context node.\r\n\t * @param literalData The literal data number associated with the literal.\r\n\t * @return The literal.\r\n\t */\r\n\tpublic Literal getLiteralNumber(Double literalData);\r\n\r\n\t/**\r\n\t * Returns the literal of this context node.\r\n\t * @param literalData The literal data boolean associated with the literal.\r\n\t * @return The literal.\r\n\t */\r\n\tpublic Literal getLiteralBoolean(Boolean literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getLiteral(Object), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal getDeepLiteral(XDI3Segment contextNodeXri, Object literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getLiteralString(String), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal getDeepLiteralString(XDI3Segment contextNodeXri, String literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getLiteraNumber(Double), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal getDeepLiteralNumber(XDI3Segment contextNodeXri, Double literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getLiteralBoolean(Boolean), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal getDeepLiteralBoolean(XDI3Segment contextNodeXri, Boolean literalData);\r\n\r\n\t/**\r\n\t * Returns the literal of this context node.\r\n\t * @return The literal.\r\n\t */\r\n\tpublic Literal getLiteral();\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getLiteral(), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal getDeepLiteral(XDI3Segment contextNodeXri);\r\n\r\n\t/**\r\n\t * Returns all literals of this context node.\r\n\t * @return An iterator over literals.\r\n\t */\r\n\tpublic ReadOnlyIterator<Literal> getAllLiterals();\r\n\r\n\t/**\r\n\t * Checks if this context node has a literal with the given data.\r\n\t * @param literalData The literal data associated with the literal.\r\n\t * @return True if this context node has a literal with the given data.\r\n\t */\r\n\tpublic boolean containsLiteral(Object literalData);\r\n\r\n\t/**\r\n\t * Checks if this context node has a literal with the given data.\r\n\t * @param literalData The literal data string associated with the literal.\r\n\t * @return True if this context node has a literal with the given data.\r\n\t */\r\n\tpublic boolean containsLiteralString(String literalData);\r\n\r\n\t/**\r\n\t * Checks if this context node has a literal with the given data.\r\n\t * @param literalData The literal data number associated with the literal.\r\n\t * @return True if this context node has a literal with the given data.\r\n\t */\r\n\tpublic boolean containsLiteralNumber(Double literalData);\r\n\r\n\t/**\r\n\t * Checks if this context node has a literal with the given data.\r\n\t * @param literalData The literal data boolean associated with the literal.\r\n\t * @return True if this context node has a literal with the given data.\r\n\t */\r\n\tpublic boolean containsLiteralBoolean(Boolean literalData);\r\n\r\n\t/**\r\n\t * Checks if this context node has a literal.\r\n\t * @return True if this context node has a literal.\r\n\t */\r\n\tpublic boolean containsLiteral();\r\n\r\n\t/**\r\n\t * Deletes the literal from this context node.\r\n\t */\r\n\tpublic void delLiteral();\r\n\r\n\t/**\r\n\t * Returns the number of all literals of this context node.\r\n\t * @return The number of literals.\r\n\t */\r\n\tpublic long getAllLiteralCount();\r\n\r\n\t/*\r\n\t * Methods related to statements\r\n\t */\r\n\r\n\t/**\r\n\t * Gets the statement that represents this context node.\r\n\t * @return A statement.\r\n\t */\r\n\tpublic ContextNodeStatement getStatement();\r\n\r\n\t/**\r\n\t * Gets all statements rooted in this context node.\r\n\t * @return An iterator over statements.\r\n\t */\r\n\tpublic ReadOnlyIterator<Statement> getAllStatements();\r\n\r\n\t/**\r\n\t * Returns the number of all statements rooted in this context node.\r\n\t * @return The number of statements.\r\n\t */\r\n\tpublic long getAllStatementCount();\r\n}", "@Test\n public void testNaya() throws Exception {\n ICFG mCFG = null;\n\n // Why A,W ?\n // A -> start node\n // W -> end node\n ICFGBasicBlockNode A = new CFGBasicBlockNode(\"A\",null);\n ICFGBasicBlockNode W = new CFGBasicBlockNode(\"W\",null);\n // This constructor initializes mCFG with start & end node\n mCFG = new CFG(A, W);\n\n ConcreteConstant CONSTANT_TWO = new ConcreteConstant(2,mCFG);\n ConcreteConstant CONSTANT_FIVE = new ConcreteConstant(5,mCFG);\n ConcreteConstant CONSTANT_TWENTY = new ConcreteConstant(20,mCFG);\n ConcreteConstant CONSTANT_THIRTY = new ConcreteConstant(30,mCFG);\n\n\n // variables x & y\n Variable x = new Variable(\"x\", mCFG);\n Variable y = new Variable(\"y\", mCFG);\n Variable p = new Variable(\"p\", mCFG);\n Variable q = new Variable(\"q\", mCFG);\n\n True trueExpr = new True(mCFG);\n ICFGDecisionNode B = new CFGDecisionNode(mCFG,trueExpr);\n mCFG.addDecisionNode(B);\n\n ICFGBasicBlockNode C = new CFGBasicBlockNode(\"C\", mCFG);\n Input i1 = new Input(mCFG);\n Statement stmt1 = new Statement(mCFG, x, i1);\n C.setStatement(stmt1);\n mCFG.addBasicBlockNode(C);\n\n ICFGBasicBlockNode D = new CFGBasicBlockNode(\"D\", mCFG);\n Input i2 = new Input(mCFG);\n Statement stmt2 = new Statement(mCFG, y, i2);\n D.setStatement(stmt2);\n mCFG.addBasicBlockNode(D);\n\n LesserThanExpression expr3 = new LesserThanExpression(mCFG, x, y);\n ICFGDecisionNode E = new CFGDecisionNode(mCFG,expr3);\n mCFG.addDecisionNode(E);\n\n ICFGBasicBlockNode F = new CFGBasicBlockNode(\"F\", mCFG);\n AddExpression addExpr1 = new AddExpression(mCFG,x,y);\n Statement stmt3 = new Statement(mCFG, p, addExpr1);\n F.setStatement(stmt3);\n mCFG.addBasicBlockNode(F);\n\n ICFGBasicBlockNode G = new CFGBasicBlockNode(\"G\", mCFG);\n SubExpression subExpr1 = new SubExpression(mCFG,x,y);\n Statement stmt4 = new Statement(mCFG, p, subExpr1);\n G.setStatement(stmt4);\n mCFG.addBasicBlockNode(G);\n//\n//\n// //edges\n ICFEdge AB = new CFEdge(\"AB\", mCFG, A, B);\n ICFEdge BC = new CFEdge(\"BC\", mCFG, B, C);\n ICFEdge CD = new CFEdge(\"CD\", mCFG, C, D);\n ICFEdge DE = new CFEdge(\"DE\", mCFG, D, E);\n ICFEdge EF = new CFEdge(\"EF\", mCFG, E, F);\n ICFEdge EG = new CFEdge(\"EG\", mCFG, E, G);\n ICFEdge FB = new CFEdge(\"FB\", mCFG, F, B);\n ICFEdge GB = new CFEdge(\"GB\", mCFG, G, B);\n ICFEdge BW = new CFEdge(\"BW\", mCFG, B, W);\n\n B.setThenEdge(BC);\n B.setElseEdge(BW);\n\n E.setThenEdge(EF);\n E.setElseEdge(EG);\n\n System.out.println(mCFG.getEdgeSet());\n\n// System.out.println(mCFG.getNodeSet());\n// System.out.println(mCFG.getEdgeSet());\n\n SEENew2 seeNew2 = new SEENew2(mCFG);\n\n SETNode setNode6 = seeNew2.allPathSE(mCFG,10);\n//\n// System.out.println(seeNew2.getSET().getStartNode().getIncomingEdge());\n// System.out.println(seeNew2.getSET().getStartNode().getCFGNode());\n//\n// Set<SETEdge> edgeSet = seeNew2.getSET().getEdgeSet();\n// for (SETEdge setEdge:edgeSet){\n// System.out.println(\"Edge:\"+setEdge);\n// System.out.println(\"Head:\"+setEdge.getHead());\n// System.out.println(\"Tail:\"+setEdge.getTail().getIncomingEdge());\n// System.out.println(\"Tail:\"+setEdge.getTail().getCFGNode());\n// }\n\n// Set<SETNode> nodeSet = seeNew2.getSET().getNodeSet();\n// for (SETNode setNode:nodeSet){\n// System.out.println(\"Node:\"+setNode);\n// System.out.println(\"CFGNode:\"+setNode.getCFGNode());\n//// System.out.println(\"Head:\"+setEdge.getHead());\n//// System.out.println(\"Tail:\"+setEdge.getTail());\n// }\n\n// // passing empty environment & startNode\n// SETBasicBlockNode startNode = new SETBasicBlockNode(seeNew2.getSET(),A);\n//\n// SETNode setNode = seeNew2.singleStep(B,startNode);\n// System.out.println(setNode.getLatestValue(x));\n//\n// SETNode setNode2 = seeNew2.singleStep(C,setNode);\n// System.out.println(setNode2.getLatestValue(y));\n//\n// SETNode setNode3 = seeNew2.singleStep(D,setNode2);\n// System.out.println(\"PathPredicate:\"+((SETDecisionNode)setNode3).getCondition());\n//\n// SETNode setNode4 = seeNew2.singleStep(E,setNode3);\n// System.out.println(setNode4.getLatestValue(x));\n//\n// SETNode setNode5 = seeNew2.singleStep(F,setNode4);\n// System.out.println(setNode5.getLatestValue(x));\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6.getSET());\n\n// System.out.println(seeNew2.getSET().getNodeSet());\n\n// System.out.println(seeNew2.getSET().getNumberOfDecisionNodes());\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6);\n\n\n\n\n\n }", "public static String generateNegativeConstraintsConjunct(GenerateCVC1 cvc, QueryBlockDetails queryBlock, Conjunct conjunct) throws Exception {\n\n\t\t\n\t\tString constraintString = \"\";\n\n\t\tconstraintString += \"%--------------------------------\\n%NEGATIVE CONSTRAINTS FOR THIS CONJUNCT\\n%---------------------------------------\\n\";\n\t\t\n\t\tVector<String> OrConstraints=new Vector<String>();\n\t\tVector<String> OrStringConstraints = new Vector<String>();\n\n\t\t/** Generate negative constraint for equivalence class.*/\n\t\t/**FIXME: Mahesh..Ask Amol why the below code and why cant't we use getconstraintsforequijoins()*/\n\t\tif(!conjunct.getEquivalenceClasses().isEmpty()){\n\n\t\t\t/**Get the equivalence classes*/\n\t\t\tVector<Vector<Node>> equivalenceClasses = conjunct.getEquivalenceClasses();\n\n\t\t\tfor(int i=0; i<equivalenceClasses.size(); i++){\t/** For each equivalence class list*/\n\n\t\t\t\t/**Get this equivalence */\n\t\t\t\tVector<Node> ec = equivalenceClasses.get(i);\n\n\t\t\t\t/**for each node in this equivalence*/\n\t\t\t\tfor(int j=0;j<ec.size(); j++)\n\t\t\t\t{\n\n\t\t\t\t\tNode eceNulled = ec.get(j);\t\t\t/** This is R.a - to be nulled */\n\n\n\t\t\t\t\tString CVCStr = \"%DataSet Generated By Nulling: \"+ ((Node)eceNulled).toString() + \"\\n\";\n\t\t\t\t\tTable tableNulled = eceNulled.getTable();\n\t\t\t\t\tColumn colNulled = eceNulled.getColumn();\n\n\t\t\t\t\t/** TODO: Have one vector for positive and negative conditions. */\n\n\t\t\t\t\tcvc.setResultsetTableColumns1( new HashMap<Table, Vector<String>>() );\t\t\t\t\t\n\n\t\t\t\t\t/** S = set of elements in ec which have a foreign key relationship with R.a <use closure for this> */\n\t\t\t\t\tArrayList<Node> S = new ArrayList<Node>();\n\t\t\t\t\tVector<Node> nullableFKs = new Vector<Node>();\n\t\t\t\t\tS.add(eceNulled);\n\n\t\t\t\t\tfor(int k=0; k<ec.size(); k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tNode ece = ec.get(k);\n\t\t\t\t\t\tTable tableEce = ece.getTable();\n\t\t\t\t\t\tColumn colEce = ece.getColumn();\n\t\t\t\t\t\t/**TODO Maintain a datasructure for list of PK and FK so as to compare in one pass.*/\n\t\t\t\t\t\tfor(int l=0; l < cvc.getForeignKeys().size(); l++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t/**In ForeignKeys Left points to the foreign key attribute while the right points to the Primary or the referenced column*/\n\t\t\t\t\t\t\tNode fk = cvc.getForeignKeys().get(l);\n\n\t\t\t\t\t\t\t/**Adapted for Nullable foreign keys.\n\t\t\t\t\t\t\t *If FK is not nullable, then we need to null it along with the referenced relation which is eceNulled*/\n\t\t\t\t\t\t\tif( (fk.getLeft().getTable() == tableEce && fk.getLeft().getColumn() == colEce) \n\t\t\t\t\t\t\t\t\t&& (fk.getRight().getTable() == tableNulled && fk.getRight().getColumn() == colNulled)){\n\t\t\t\t\t\t\t\tif(!colEce.isNullable())\n\t\t\t\t\t\t\t\t\tS.add(ece);/**To be taken along with nulled Column*/\n\t\t\t\t\t\t\t\tif(colEce.isNullable())\n\t\t\t\t\t\t\t\t\tnullableFKs.add(ece);/** To be taken along with nulled column, in case P.size > 1 */\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 * Now, we have in S, the nulled column along with the foreign key columns in that equivalence class\n\t\t\t\t\t * that reference the nulled column and are not nullable.\n\t\t\t\t\t * But, if EC - S, contains a nullable column which references the nulled column, \n\t\t\t\t\t * AND also contains some other column which may or may not be nullable, \n\t\t\t\t\t * then we cannot assign NULL to the nullable FK column. We then need to nullify the nullable FK column\n\t\t\t\t\t * along with the nulled column. If EC - S, just contains a single nullable column referencing the \n\t\t\t\t\t * nulled column, then we can assign NULL to that column in order to nullify the nulled column. \n\t\t\t\t\t */\n\n\n\t\t\t\t\t/** Form P = EC - S */\n\t\t\t\t\tVector<Node> P = new Vector<Node>();\n\t\t\t\t\tfor(int k=0; k<ec.size(); k++)\t\t\t\t\t\t\n\t\t\t\t\t\tif( cvc.getqParser().alreadyNotExistInEquivalenceClass(S, ec.get(k)))\n\t\t\t\t\t\t\tP.add(ec.get(k));\n\n\n\t\t\t\t\tSystem.out.println(\"R.a = \"+eceNulled);\n\t\t\t\t\tSystem.out.print(\"EC : \"); Node.printPredicateVector(ec);\n\n\t\t\t\t\t/**For Now : if P is empty continue;*/\n\t\t\t\t\tif(P.size() == 0)\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif(P.size() == 1 \n\t\t\t\t\t\t\t&& P.get(0).getColumn().getReferenceColumn() == eceNulled.getColumn()\n\t\t\t\t\t\t\t&& P.get(0).getColumn().isNullable()){\n\n\t\t\t\t\t\t/**check if the column in P is referencing the nulled column and is nullable.\n\t\t\t\t\t\t *If so, then we can nullify the nulled relation inspite of the FK*/\n\t\t\t\t\t\tOrConstraints.add( GenerateCVCConstraintForNode.cvcSetNull(cvc, P.get(0).getColumn(), \"1\"));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t/**Otherwise, we need to nullify the foreign keys along with the nulled column.\n\t\t\t\t\t\t * Note that we need to do this irrespective of whether the column in P is FK \n\t\t\t\t\t\t * or whether it is nullable. Because, then we cannot assign NULL to any of the columns in P\n\t\t\t\t\t\t * This is because, NULLs cannot be equated and hence the joins in P will not be propogated up.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tP.removeAll(nullableFKs);\n\n\t\t\t\t\t\t/** Generate positiveConds for members in P*/ \n\t\t\t\t\t\tGenerateJoinPredicateConstraints.genPositiveConds(P);\n\t\t\t\t\t}\n\n\t\t\t\t\t/**Now generate negative conditions for Nulled relation\n\t\t\t\t\t *i.e. NOT EXISTS (i: Nulled Rel): NulledRel[i].col = P[1].col*/\n\t\t\t\t\tOrConstraints.add( GenerateJoinPredicateConstraints.genNegativeConds( cvc, queryBlock, colNulled, P.get(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\n\t\t/**Now generate Positive conditions for each of the non equi join conditions \n\t\t * that were not considered when building equivalence classes*/\n\t\tVector<Node> allConds = conjunct.getAllConds();\n\t\t\n\t\t/**get constraint*/\n\t\tString constraint = GenerateJoinPredicateConstraints.getNegativeConstraintsForNonEquiJoins(cvc, queryBlock, allConds) ;\n\n\t\tif( constraint.length() != 0)\n\t\t\tOrConstraints.add( constraint );\n\n\t\t/** Now generate Negative constraints for selection conditions */\n\t\tVector<Node> selectionConds = conjunct.getSelectionConds();\n\n\t\t/**get negative conditions for these nodes*/\n\t\tVector<Node> negativeSelConds = GenerateCVCConstraintForNode.getNegativeConditions(selectionConds);\n\n\t\t/**Generate constraints for the negative conditions*/\n\t\tfor(int k = 0; k < negativeSelConds.size(); k++){\n\n\t\t\t/**get table details*/\n\t\t\tString tableNo = negativeSelConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l = 1; l <= count; l++)\n\t\t\t\tOrConstraints.add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, negativeSelConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\n\t\t/**Generate negative constraints for string selection conditions */\n\t\tVector<Node> stringSelectionConds = conjunct.getStringSelectionConds();\t\n\n\t\t/**get negative conditions for these nodes*/\n\t\tVector<Node> negativeStringSelConds = GenerateCVCConstraintForNode.getNegativeConditions(stringSelectionConds);\n\n\t\t/**Generate constraints for the negative conditions*/\n\t\tfor(int k = 0; k < negativeStringSelConds.size(); k++){\n\n\t\t\t/**get table details*/\n\t\t\tString tableNo = negativeStringSelConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l = 1; l <= count; l++)\n\t\t\t\tOrStringConstraints.add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, negativeStringSelConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\t\t/**Generate negative constraints for like conditions */\n\t\tVector<Node> likeConds = conjunct.getLikeConds();\n\n\t\t/**get negative conditions for these nodes*/\n\t\tVector<Node> negativeLikeConds = GenerateCVCConstraintForNode.getNegativeConditions(likeConds);\n\n\t\tfor(int k=0; k<likeConds.size(); k++){\n\n\t\t\t/**get table details*/\n\t\t\tString tableNo = negativeLikeConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tOrStringConstraints.add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, negativeLikeConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\t\t/**get the where clause sub query conditions in this conjunct*/\n\t\tif(conjunct.getAllSubQueryConds() != null){\n\t\t\tfor(int i=0; i < conjunct.getAllSubQueryConds().size(); i++){\n\t\t\t\t\n\t\t\t\tNode subQ = conjunct.getAllSubQueryConds().get(i);\n\t\t\t\t\n\t\t\t\t/**FIXME: Add negative constraints for this where clause sub query block\n\t\t\t\t * We could use methods of class: GenerateConstraintsForWhereClauseSubQueryBlock*/\n\t\t\t\t/**FIXME:If the given conjunct has NOT EXISTS conditions, then negative of that becomes positive*/\n\t\t\t\tint index = UtilsRelatedToNode.getQueryIndexOfSubQNode(subQ);\n\n\t\t\t\t/**get sub query block*/\n\t\t\t\tQueryBlockDetails subQuery = queryBlock.getWhereClauseSubQueries().get(index);\n\t\t\t\t\n\t\t\t\tString negativeConstraint = \"\";\n\t\t\t\t\n\t\t\t\t/**if this sub query is of EXISTS Type*/\n\t\t\t\tif(subQ.getType().equals(Node.getExistsNodeType()) ){\n\t\t\t\t\t\n\t\t\t\t\tfor (Conjunct con: subQuery.getConjuncts())\n\t\t\t\t\t\tnegativeConstraint += generateNegativeConstraintsConjunct(cvc, subQuery, con);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/**if sub query is of type NOT Exists*/\n\t\t\t\t/**We need to get positive constraints for this sub query*/\n\t\t\t\telse if ( subQ.getType().equals(Node.getNotExistsNodeType() ) ){\n\t\t\t\t\t\n\t\t\t\t\tfor (Conjunct con: subQuery.getConjuncts())\n\t\t\t\t\t\tnegativeConstraint += getConstraintsForConjuct(cvc, queryBlock, con);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\t/**get negative condition for this sub query node*/\n\t\t\t\t\tNode subQNegative = GenerateCVCConstraintForNode.getNegativeCondition(subQ);\n\t\t\t\t\t\n\t\t\t\t\t/**get negative constraints for where clause connective*/\t\t\t\t\t\n\t\t\t\t\tnegativeConstraint = GenerateConstraintsForWhereClauseSubQueryBlock.getConstraintsForWhereSubQueryConnective(cvc, queryBlock, subQNegative);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tconstraintString += negativeConstraint;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!OrConstraints.isEmpty() && OrConstraints.size() != 0)\n\t\t\tconstraintString += processOrConstraints(OrConstraints);\n\t\tconstraintString += \"\\n%--------------------------------\\n%END OF NEGATIVE CONSTRAINTS FOR THIS CONJUNCT\\n%---------------------------------------\";\n\n\t\tif(!OrStringConstraints.isEmpty() && OrStringConstraints.size() != 0 )\n\t\t\tcvc.getStringConstraints().add(processOrConstraints(OrStringConstraints));\n\n\t\treturn constraintString;\n\t}", "public T casePrePostOrBodyDeclarationCS(PrePostOrBodyDeclarationCS object) {\r\n return null;\r\n }", "@DISPID(1610940420) //= 0x60050004. The runtime will prefer the VTID if present\n @VTID(26)\n Bodies bodies();", "public void\nsetHirBody( BlockStmt pHirBody );", "Context mo1490b();", "SmilBody getBody();", "public Builder setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n body_ = value;\n onChanged();\n return this;\n }", "protected void sequence_FunctionBody(ISerializationContext context, FunctionBody semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.FUNCTION_BODY__BC) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.FUNCTION_BODY__BC));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getFunctionBodyAccess().getBcBlockParserRuleCall_0(), semanticObject.getBc());\r\n\t\tfeeder.finish();\r\n\t}", "protected void sequence_CommCase_CommClause(ISerializationContext context, CommCase semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public Literal setDeepLiteral(XDI3Segment contextNodeXri, Object literalData);", "public static String getConstraintsForConjuctExceptWhereClauseSubQueryBlock(GenerateCVC1 cvc, QueryBlockDetails queryBlock, Conjunct conjunct) throws Exception {\n\n\t\tString constraintString = \"\";\n\n\t\t/** If the given conjunct is null then no constraints need to be generated */\n\t\tif(conjunct == null)\n\t\t\treturn constraintString;\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% EQUIVALENCE CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the equivalence class constraints for this conjunct*/\n\t\tVector<Vector<Node>> equivalenceClasses = conjunct.getEquivalenceClasses();\n\t\tfor(int k=0; k<equivalenceClasses.size(); k++){\n\t\t\tVector<Node> ec = equivalenceClasses.get(k);\n\t\t\tfor(int i=0;i<ec.size()-1;i++){\n\t\t\t\tNode n1 = ec.get(i);\n\t\t\t\tNode n2 = ec.get(i+1);\n\t\t\t\tconstraintString += GenerateJoinPredicateConstraints.getConstraintsForEquiJoins(cvc, queryBlock, n1,n2) +\"\\n\";\n\t\t\t}\n\t\t}\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% SELECTION CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the constraints for the selection conditions of the form A.x = Constant of this conjunct */\n\t\tVector<Node> selectionConds = conjunct.getSelectionConds();\n\t\tfor(int k=0; k<selectionConds.size(); k++){\n\n\t\t\tString tableNo = selectionConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tconstraintString += \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, selectionConds.get(k),l+offset-1)+\";\" +\"\\n\";\n\t\t}\n\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% ALL CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the constraints for the non equi-join conditions */\n\t\tVector<Node> allConds = conjunct.getAllConds();\n\t\tfor(int k=0; k<allConds.size(); k++)\n\t\t\tconstraintString += GenerateJoinPredicateConstraints.getConstraintsForNonEquiJoins(cvc, queryBlock, allConds) +\"\\n\";\n\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% STRING SELECTION CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/**get the constraints for the conditions of the form A.x=cons where cons is a string constant */\n\t\tVector<Node> stringSelectionConds = conjunct.getStringSelectionConds();\n\t\tfor(int k=0; k<stringSelectionConds.size(); k++){\n\n\t\t\tString tableNo = stringSelectionConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tcvc.getStringConstraints().add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, stringSelectionConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% LIKE CLAUSE CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Generate constraints for the like conditions of this conjunct*/\n\t\tVector<Node> likeConds = conjunct.getLikeConds();\n\t\tfor(int k=0; k<likeConds.size(); k++){\n\n\t\t\tString tableNo = likeConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tcvc.getStringConstraints().add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, likeConds.get(k),l+offset-1)+\";\\n\" );\n\t\t}\n\n\t\treturn constraintString;\n\t}", "public BodyContainer(EntityData ed) {\r\n super(ed, OrFilter.create(PhysicsMassType.class,\r\n Filters.fieldEquals(PhysicsMassType.class, \"type\", PhysicsMassTypes.fixedLinearVelocity(ed).getType()),\r\n Filters.fieldEquals(PhysicsMassType.class, \"type\", PhysicsMassTypes.fixedAngularVelocity(ed).getType()),\r\n Filters.fieldEquals(PhysicsMassType.class, \"type\", PhysicsMassTypes.normal(ed).getType()),\r\n Filters.fieldEquals(PhysicsMassType.class, \"type\", PhysicsMassTypes.normal_bullet(ed).getType())),\r\n Position.class, PhysicsMassType.class, PhysicsShape.class);\r\n }", "public Context(Global global)\n {\n _level=0;\n _listId=0;\n _global=global;\n _textStyle=new TextStyle();\n setParagraphStyle(new ParagraphStyle());\n }", "private SubDcl subdcl(){\n Subhead mySubHead = null;\n Body myBody = null;\n \n mySubHead = subhead();\n \n if(lexer.token == Symbol.SEMICOLON){\n \n lexer.nextToken(); \n myBody = body();\n \n if(lexer.token == Symbol.SEMICOLON)\n lexer.nextToken();\n else\n lexer.error(\"; exepcted\");\n \n }else\n lexer.error(\"; esperado\");\n \n \n \n return new SubDcl(mySubHead, myBody);\n }", "LWordConstant createLWordConstant();", "@Override\n\tpublic Clause getConstraints() {\n\t\treturn null;\n\t}", "public void setTypeOfBodyCd(Integer typeOfBodyCd) {\n\t\tthis.typeOfBodyCd = typeOfBodyCd;\n\t}", "protected abstract MS_LineBuilder prepareContent(MS_LineBuilder lb);", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n valueEClass.getESuperTypes().add(this.getexpression());\n ifStatementEClass.getESuperTypes().add(this.getexpression());\n operationEClass.getESuperTypes().add(this.getexpression());\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Spec(), this.getStatement(), null, \"spec\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(statementEClass, Statement.class, \"Statement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getStatement_Def(), this.getdefinition(), null, \"def\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStatement_Out(), this.getout(), null, \"out\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStatement_In(), this.getin(), null, \"in\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStatement_Comment(), ecorePackage.getEString(), \"comment\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(definitionEClass, definition.class, \"definition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getdefinition_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getdefinition_ParamList(), this.getparamList(), null, \"paramList\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getdefinition_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getdefinition_Expression(), this.gettypedExpression(), null, \"expression\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(paramListEClass, paramList.class, \"paramList\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getparamList_Params(), ecorePackage.getEString(), \"params\", null, 0, -1, paramList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getparamList_Types(), ecorePackage.getEString(), \"types\", null, 0, -1, paramList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(outEClass, out.class, \"out\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getout_Exp(), this.gettypedExpression(), null, \"exp\", null, 0, 1, out.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getout_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, out.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inEClass, in.class, \"in\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getin_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, in.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getin_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, in.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(typedExpressionEClass, typedExpression.class, \"typedExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(gettypedExpression_Exp(), this.getexpression(), null, \"exp\", null, 0, 1, typedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(gettypedExpression_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, typedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(expressionEClass, expression.class, \"expression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(valueEClass, value.class, \"value\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getvalue_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getvalue_Exp(), this.gettypedExpression(), null, \"exp\", null, 0, 1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getvalue_Statements(), this.getStatement(), null, \"statements\", null, 0, -1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getvalue_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getvalue_Args(), this.getarg(), null, \"args\", null, 0, -1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(argEClass, arg.class, \"arg\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getarg_Arg(), ecorePackage.getEString(), \"arg\", null, 0, 1, arg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getarg_Exp(), this.gettypedExpression(), null, \"exp\", null, 0, 1, arg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ifStatementEClass, IfStatement.class, \"IfStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIfStatement_If(), this.gettypedExpression(), null, \"if\", null, 0, 1, IfStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIfStatement_Then(), this.gettypedExpression(), null, \"then\", null, 0, 1, IfStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIfStatement_Else(), this.gettypedExpression(), null, \"else\", null, 0, 1, IfStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(operationEClass, Operation.class, \"Operation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getOperation_Left(), this.getexpression(), null, \"left\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getOperation_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getOperation_Right(), this.getvalue(), null, \"right\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "b(c cVar) {\n super(0);\n this.this$0 = cVar;\n }", "public final void synpred88_InternalMyDsl_fragment() throws RecognitionException { \n EObject this_ClassifierContextDeclCS_1 = null;\n\n\n // InternalMyDsl.g:3710:3: (this_ClassifierContextDeclCS_1= ruleClassifierContextDeclCS )\n // InternalMyDsl.g:3710:3: this_ClassifierContextDeclCS_1= ruleClassifierContextDeclCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_ClassifierContextDeclCS_1=ruleClassifierContextDeclCS();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public interface ReverseGeoCoderProto$RGCContextualLabelingRequestOrBuilder extends MessageLiteOrBuilder {\n String getLocale();\n\n ByteString getLocaleBytes();\n\n C7917e getParentZones(int i);\n\n int getParentZonesCount();\n\n List<C7917e> getParentZonesList();\n\n int getParentZonesValue(int i);\n\n List<Integer> getParentZonesValueList();\n\n C7919f getPreferredProvider();\n\n int getPreferredProviderValue();\n\n C7272d0 getRectangleObsolete();\n\n boolean getReturnFullAddress();\n\n boolean getReturnStreet();\n\n C7923h getViewport();\n\n boolean hasRectangleObsolete();\n\n boolean hasViewport();\n}", "private void classBodyDeclaration(ClassType object, Modifier modifier, Vector queue)\r\n {\r\n Modifier x = new Modifier(modifier);\r\n x.cur = 0;\r\n\r\n if (nextSymbol == Keyword.SEMICOLONSY)\r\n {\r\n lookAhead();\r\n return;\r\n }\r\n\r\n if (nextSymbol == Keyword.STATICSY)\r\n {\r\n x.add(modifier());\r\n queue = object.statics;\r\n }\r\n\r\n if (nextSymbol == Keyword.LBRACESY)\r\n {\r\n Vector label = new Vector();\r\n //label.add(\"\" + Operation.newLabel());\r\n block(null, null, object.scope, label, Scope.MAIN, null, queue);\r\n }\r\n else\r\n {\r\n for(int y = modifier1(); y != 0; y = modifier())\r\n x.add(y);\r\n\r\n if ((x.cur & Keyword.NATIVESY.value) != 0)\r\n Errors.warning(nextToken.source, nextToken.line, nextToken.col, \"native detected!\", false);\r\n\r\n if ((x.cur & x.constructors) == 0)\r\n x.cur |= modifier.cur & modifier.constructors;\r\n\r\n if ((x.cur & Keyword.STATICSY.value) != 0)\r\n queue = object.statics;\r\n\r\n memberDecl(x, object, queue);\r\n }\r\n }", "@Override\n protected String getInitialUnformattedBody(PythonParser.FuncdefContext rawMethod) {\n return null;\n }", "public interface NewLine extends ClouBausteinElement {\n\n static NewLine create(CodePosition codePosition){\n return new NewLineImpl(codePosition);\n }\n\n}", "private AppLnmMcaBl() {\n\t\tsuper(\"APP_LNM_MCA_BL\", Wetrn.WETRN);\n\t}", "public CWLNodeFactory() {\n super(true);\n }", "protected void bodyAdded (ClusterRecord clrec, BodyObject body)\n {\n }", "@DISPID(1610940427) //= 0x6005000b. The runtime will prefer the VTID if present\n @VTID(33)\n Constraints constraints();", "public static void main(String[] args) throws Exception {\r\n\t\tInnerAnnomiousNestedClass n=new InnerAnnomiousNestedClass();\r\n\t BB b=new BB() {\r\n\t\t @Override\r\n\t\tpublic void show() {\r\n\t\t\tSystem.out.println(\"Hello How are you\");\r\n\t\t}\r\n\t};\r\n\t // AA a=new AA();\r\n\t}", "JannotTreeJCBinary(InfixExpression n) \n{\n super(n);\n}", "public T casePackageDeclarationNestedNamespaceCS(PackageDeclarationNestedNamespaceCS object) {\r\n return null;\r\n }", "public\nNuc2D(NucNode nuc)\nthrows Exception\n{\n\tsuper (nuc);\n}", "public AST(RuleContext ctx){\n this.ctx = ctx;\n }", "public CSP() {\n integerVariables = new ArrayList<IntegerVariable>();\n booleanVariables = new ArrayList<BooleanVariable>();\n relations = new ArrayList<Relation>();\n clauses = new ArrayList<Clause>();\n objectiveVariables = null;\n objective = Objective.NONE;\n integerVariableMap = new HashMap<String, IntegerVariable>();\n booleanVariableMap = new HashMap<String, BooleanVariable>();\n relationMap = new HashMap<String, Relation>();\n }" ]
[ "0.6225964", "0.61910135", "0.59446126", "0.56198764", "0.51691115", "0.5132768", "0.509959", "0.50766426", "0.5064601", "0.504642", "0.50418776", "0.502164", "0.49931195", "0.49907124", "0.49405417", "0.493001", "0.49276325", "0.4905161", "0.4887692", "0.48710364", "0.48553973", "0.4838124", "0.48362488", "0.48119903", "0.4807089", "0.48028818", "0.480076", "0.479437", "0.47879094", "0.47864208", "0.47828537", "0.4769343", "0.4754964", "0.47483703", "0.4745111", "0.47421867", "0.47123566", "0.4709374", "0.46895096", "0.46665484", "0.46562096", "0.46541187", "0.46491832", "0.46376064", "0.46229762", "0.46138787", "0.4608416", "0.46041763", "0.46024117", "0.46000832", "0.45995072", "0.45953506", "0.45940828", "0.45800808", "0.45782542", "0.45697767", "0.4568672", "0.45670533", "0.4558246", "0.4555433", "0.45541215", "0.454433", "0.4539464", "0.45333123", "0.45333025", "0.4517361", "0.45002165", "0.44975275", "0.44923154", "0.44918823", "0.44916552", "0.4488769", "0.44841278", "0.44831207", "0.44700697", "0.4469296", "0.44688246", "0.44681138", "0.44669318", "0.44664934", "0.44570968", "0.4449752", "0.444167", "0.4438005", "0.44376576", "0.4436632", "0.44364783", "0.4434656", "0.44327348", "0.44296408", "0.4425852", "0.44239247", "0.44226414", "0.44221145", "0.44217756", "0.44190723", "0.44037342", "0.43980223", "0.4396331", "0.43955016" ]
0.64517486
0
Construtor do elemento body da Nested Context Language (NCL).
public NCLBody(XMLReader reader, NCLElementImpl parent) { setReader(reader); setParent(parent); getReader().setContentHandler(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NCLBody() {}", "public ContextBodyBlock() {\n super();\n\r\n setChild(new List(), 0);\r\n setChild(new List(), 1);\r\n setChild(new List(), 2);\r\n\r\n }", "public ContextBodyBlock(List<Stmt> p0, List<ContextConstraint> p1, List<BodyDecl> p2) {\n setChild(p0, 0);\n setChild(p1, 1);\n setChild(p2, 2);\n }", "OclExpressionCS getBodyExpression();", "CompoundSt getBody () { return body; }", "public T caseBodyDeclarationCS(BodyDeclarationCS object) {\r\n return null;\r\n }", "@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(22)\n Body mainBody();", "public NodeConstraints createNodeConstraintsObject() {\n NodeConstraints c = new NodeConstraints(getClass().getCanonicalName(), getReturnTypes(), numChildren, NodeConstraints.ERC);\n Object[] args = getConstructorArgs();\n if (args != null) {\n c.setArgs(args);\n }\n return c;\n }", "public Statement getBody() {\n if (body == null) {\n // lazy initialize - use setter to ensure parent link set too\n setBody(new Block(getAST())); }\n return body; }", "public Stmt\ngetHirBody();", "public void setBody(ASTNode body) {\n this.body = body;\n }", "public ConstraintDefinition() {\n\t\tthis(\"\");\n\t}", "public T caseContextDeclarationCS(ContextDeclarationCS object) {\r\n return null;\r\n }", "Term getBody();", "CodeContext(Context ctx, Node node) {\n super(ctx, node);\n switch (node.op) {\n case DO:\n case WHILE:\n case FOR:\n case FINALLY:\n case SYNCHRONIZED:\n this.breakLabel = new Label();\n this.contLabel = new Label();\n break;\n case SWITCH:\n case TRY:\n case INLINEMETHOD:\n case INLINENEWINSTANCE:\n this.breakLabel = new Label();\n break;\n default:\n if ((node instanceof Statement) && (((Statement)node).labels != null)) {\n this.breakLabel = new Label();\n }\n }\n }", "public BF() {\n\t\tsuper(\"Body Fat\", \"%\");\n\t}", "public T caseClassifierContextDeclarationCS(ClassifierContextDeclarationCS object) {\r\n return null;\r\n }", "public LInfSCBLens(){\n\tsuper();\n }", "private static void initNewCelestialBody(CelestialBody _cb){\r\n CelestialBodyController cbc = new CelestialBodyController(_cb);\r\n celestialBodyControllers.put(_cb.name, cbc);\r\n renderService.addInstance(cbc);\r\n }", "@Override\n protected String getInitialBody(PythonParseTree.PythonParser.FuncdefContext function) {\n return function.suite().getText();\n }", "@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(23)\n void mainBody(\n Body oMainBody);", "public T caseAttributeContextDeclarationCS(AttributeContextDeclarationCS object) {\r\n return null;\r\n }", "public BlockStmt\ngetInitiationPart();", "public abstract ContextNode getContextNode();", "public Literal getDeepLiteral(XDI3Segment contextNodeXri);", "JStaticBlock(int line, JBlock body) {\r\n\t\tsuper(line);\r\n\t\tthis.block = body;\r\n\t}", "public LinearConstraint() {\n\n }", "public void setBody(ClassBodyNode body);", "LabInner innerModel();", "Constraint getBodyCondition();", "private BaleElement.Branch createOuterBranch(BaleAstNode sn)\n{\n switch (sn.getNodeType()) {\n case FILE :\n\t return new BaleElement.CompilationUnitNode(for_document,cur_parent);\n case CLASS :\n\t return new BaleElement.ClassNode(for_document,cur_parent);\n case METHOD :\n\t return new BaleElement.MethodNode(for_document,cur_parent);\n case FIELD :\n\t return new BaleElement.FieldNode(for_document,cur_parent);\n case ANNOTATION :\n\t return new BaleElement.AnnotationNode(for_document,cur_parent);\n case STATEMENT :\n\t return new BaleElement.SplitStatementNode(for_document,cur_parent);\n case EXPRESSION :\n\t return new BaleElement.SplitExpressionNode(for_document,cur_parent);\n case BLOCK :\n\t return new BaleElement.BlockNode(for_document,cur_parent);\n case SWITCH_BLOCK :\n\t return new BaleElement.SwitchBlockNode(for_document,cur_parent);\n case INITIALIZER :\n\t return new BaleElement.InitializerNode(for_document,cur_parent);\n case SET :\n\t // return new BaleElement.DeclSet(for_document,cur_parent);\n\t break;\n default:\n\t break;\n }\n return null;\n}", "void setBody (DBody body);", "public TwoBody(KeplerElements k)\n\t{\n\t\t//Constants c = new Constants();\n\t\tthis.a = k.a;\n\t\tthis.e = k.e;\n\t\tthis.i = k.i;\n\t\tthis.raan = k.raan;\n\t\tthis.w = k.w;\n\t\tthis.ta = k.ta;\n\t\trv = new VectorN(randv());\n\t}", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "public Constraint(String cnline)\n {\n// PrintStream stdout = System.out;\n// stdout.printf(\"Constraint: line: %s\\n\", cnline);\n\tString[] cnArray = cnline.split(\" \");\n\tif (cnArray.length != 2) {\n\t debug.error(\"Invalid constraint: '%s'\", cnline);\n\t}\n\n\tthis.name = cnArray[0].toLowerCase();;\n\tthis.mf = Scoring.mf2int(cnArray[1].charAt(0));\n }", "@Override\n\tpublic void inAClassBody(AClassBody node) {\n // Determine the start and end line numbers.\n int begin = findBeginLine(node);\n int end = node.getRBrace().getLine();\n String cname = null;\n Node parentNode = node.parent();\n if (parentNode instanceof AClassDeclaration) {\n // This handles normal class declarations, as well as\n // named inner class declaractions.\n AClassDeclaration parent = (AClassDeclaration) parentNode;\n TIdentifier name = parent.getIdentifier();\n cname = name.getText();\n\n } else if (parentNode instanceof\n ASimpleClassInstanceCreationExpression\n || parentNode instanceof\n AQualifiedClassInstanceCreationExpression\n || parentNode instanceof\n AInnerclassClassInstanceCreationExpression) {\n // This handles an anonymous inner class declaration.\n // Use special value of 'new' for anonymous classes.\n cname = ANONYMOUS_CLASS_NAME;\n }\n int braceLine = node.getLBrace().getLine();\n ClassDefinition cd = new ClassDefinition(cname, braceLine, begin, end);\n classLines.add(cd);\n }", "protected Sentence() {/* intentionally empty block */}", "STRONG createSTRONG();", "public T caseOperationContextDeclarationCS(OperationContextDeclarationCS object) {\r\n return null;\r\n }", "public ClassBodyNode getBody()throws ClassCastException;", "public final EObject ruleClassifierContextDeclCS() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_4=null;\n EObject lv_ownedSignature_1_0 = null;\n\n AntlrDatatypeRuleToken lv_selfName_2_0 = null;\n\n EObject lv_ownedPathName_3_0 = null;\n\n EObject lv_ownedInvariants_5_0 = null;\n\n EObject lv_ownedDefinitions_6_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:3477:2: ( (otherlv_0= 'context' ( (lv_ownedSignature_1_0= ruleTemplateSignatureCS ) )? ( (lv_selfName_2_0= ruleUnrestrictedName ) )? ( (lv_ownedPathName_3_0= rulePathNameCS ) ) ( (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) ) | ( (lv_ownedDefinitions_6_0= ruleDefCS ) ) )+ ) )\n // InternalMyDsl.g:3478:2: (otherlv_0= 'context' ( (lv_ownedSignature_1_0= ruleTemplateSignatureCS ) )? ( (lv_selfName_2_0= ruleUnrestrictedName ) )? ( (lv_ownedPathName_3_0= rulePathNameCS ) ) ( (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) ) | ( (lv_ownedDefinitions_6_0= ruleDefCS ) ) )+ )\n {\n // InternalMyDsl.g:3478:2: (otherlv_0= 'context' ( (lv_ownedSignature_1_0= ruleTemplateSignatureCS ) )? ( (lv_selfName_2_0= ruleUnrestrictedName ) )? ( (lv_ownedPathName_3_0= rulePathNameCS ) ) ( (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) ) | ( (lv_ownedDefinitions_6_0= ruleDefCS ) ) )+ )\n // InternalMyDsl.g:3479:3: otherlv_0= 'context' ( (lv_ownedSignature_1_0= ruleTemplateSignatureCS ) )? ( (lv_selfName_2_0= ruleUnrestrictedName ) )? ( (lv_ownedPathName_3_0= rulePathNameCS ) ) ( (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) ) | ( (lv_ownedDefinitions_6_0= ruleDefCS ) ) )+\n {\n otherlv_0=(Token)match(input,55,FOLLOW_39); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getClassifierContextDeclCSAccess().getContextKeyword_0());\n \t\t\n }\n // InternalMyDsl.g:3483:3: ( (lv_ownedSignature_1_0= ruleTemplateSignatureCS ) )?\n int alt32=2;\n int LA32_0 = input.LA(1);\n\n if ( (LA32_0==20||LA32_0==70) ) {\n alt32=1;\n }\n switch (alt32) {\n case 1 :\n // InternalMyDsl.g:3484:4: (lv_ownedSignature_1_0= ruleTemplateSignatureCS )\n {\n // InternalMyDsl.g:3484:4: (lv_ownedSignature_1_0= ruleTemplateSignatureCS )\n // InternalMyDsl.g:3485:5: lv_ownedSignature_1_0= ruleTemplateSignatureCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getClassifierContextDeclCSAccess().getOwnedSignatureTemplateSignatureCSParserRuleCall_1_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_39);\n lv_ownedSignature_1_0=ruleTemplateSignatureCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getClassifierContextDeclCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"ownedSignature\",\n \t\t\t\t\t\tlv_ownedSignature_1_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.TemplateSignatureCS\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n // InternalMyDsl.g:3502:3: ( (lv_selfName_2_0= ruleUnrestrictedName ) )?\n int alt33=2;\n switch ( input.LA(1) ) {\n case RULE_SIMPLE_ID:\n {\n int LA33_1 = input.LA(2);\n\n if ( ((LA33_1>=RULE_SIMPLE_ID && LA33_1<=RULE_ESCAPED_ID)||LA33_1==19||(LA33_1>=60 && LA33_1<=61)) ) {\n alt33=1;\n }\n }\n break;\n case RULE_ESCAPED_ID:\n {\n int LA33_2 = input.LA(2);\n\n if ( ((LA33_2>=RULE_SIMPLE_ID && LA33_2<=RULE_ESCAPED_ID)||LA33_2==19||(LA33_2>=60 && LA33_2<=61)) ) {\n alt33=1;\n }\n }\n break;\n case 19:\n {\n int LA33_3 = input.LA(2);\n\n if ( ((LA33_3>=RULE_SIMPLE_ID && LA33_3<=RULE_ESCAPED_ID)||LA33_3==19||(LA33_3>=60 && LA33_3<=61)) ) {\n alt33=1;\n }\n }\n break;\n case 60:\n {\n int LA33_4 = input.LA(2);\n\n if ( ((LA33_4>=RULE_SIMPLE_ID && LA33_4<=RULE_ESCAPED_ID)||LA33_4==19||(LA33_4>=60 && LA33_4<=61)) ) {\n alt33=1;\n }\n }\n break;\n case 61:\n {\n int LA33_5 = input.LA(2);\n\n if ( ((LA33_5>=RULE_SIMPLE_ID && LA33_5<=RULE_ESCAPED_ID)||LA33_5==19||(LA33_5>=60 && LA33_5<=61)) ) {\n alt33=1;\n }\n }\n break;\n }\n\n switch (alt33) {\n case 1 :\n // InternalMyDsl.g:3503:4: (lv_selfName_2_0= ruleUnrestrictedName )\n {\n // InternalMyDsl.g:3503:4: (lv_selfName_2_0= ruleUnrestrictedName )\n // InternalMyDsl.g:3504:5: lv_selfName_2_0= ruleUnrestrictedName\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getClassifierContextDeclCSAccess().getSelfNameUnrestrictedNameParserRuleCall_2_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_39);\n lv_selfName_2_0=ruleUnrestrictedName();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getClassifierContextDeclCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"selfName\",\n \t\t\t\t\t\tlv_selfName_2_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.UnrestrictedName\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n break;\n\n }\n\n // InternalMyDsl.g:3521:3: ( (lv_ownedPathName_3_0= rulePathNameCS ) )\n // InternalMyDsl.g:3522:4: (lv_ownedPathName_3_0= rulePathNameCS )\n {\n // InternalMyDsl.g:3522:4: (lv_ownedPathName_3_0= rulePathNameCS )\n // InternalMyDsl.g:3523:5: lv_ownedPathName_3_0= rulePathNameCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getClassifierContextDeclCSAccess().getOwnedPathNamePathNameCSParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_40);\n lv_ownedPathName_3_0=rulePathNameCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getClassifierContextDeclCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"ownedPathName\",\n \t\t\t\t\t\tlv_ownedPathName_3_0,\n \t\t\t\t\t\t\"org.eclipse.ocl.xtext.base.Base.PathNameCS\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalMyDsl.g:3540:3: ( (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) ) | ( (lv_ownedDefinitions_6_0= ruleDefCS ) ) )+\n int cnt34=0;\n loop34:\n do {\n int alt34=3;\n int LA34_0 = input.LA(1);\n\n if ( (LA34_0==56) ) {\n alt34=1;\n }\n else if ( ((LA34_0>=57 && LA34_0<=58)) ) {\n alt34=2;\n }\n\n\n switch (alt34) {\n \tcase 1 :\n \t // InternalMyDsl.g:3541:4: (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) )\n \t {\n \t // InternalMyDsl.g:3541:4: (otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) ) )\n \t // InternalMyDsl.g:3542:5: otherlv_4= 'inv' ( (lv_ownedInvariants_5_0= ruleConstraintCS ) )\n \t {\n \t otherlv_4=(Token)match(input,56,FOLLOW_41); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_4, grammarAccess.getClassifierContextDeclCSAccess().getInvKeyword_4_0_0());\n \t \t\t\t\t\n \t }\n \t // InternalMyDsl.g:3546:5: ( (lv_ownedInvariants_5_0= ruleConstraintCS ) )\n \t // InternalMyDsl.g:3547:6: (lv_ownedInvariants_5_0= ruleConstraintCS )\n \t {\n \t // InternalMyDsl.g:3547:6: (lv_ownedInvariants_5_0= ruleConstraintCS )\n \t // InternalMyDsl.g:3548:7: lv_ownedInvariants_5_0= ruleConstraintCS\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getClassifierContextDeclCSAccess().getOwnedInvariantsConstraintCSParserRuleCall_4_0_1_0());\n \t \t\t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_42);\n \t lv_ownedInvariants_5_0=ruleConstraintCS();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getClassifierContextDeclCSRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"ownedInvariants\",\n \t \t\t\t\t\t\t\t\tlv_ownedInvariants_5_0,\n \t \t\t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.ConstraintCS\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // InternalMyDsl.g:3567:4: ( (lv_ownedDefinitions_6_0= ruleDefCS ) )\n \t {\n \t // InternalMyDsl.g:3567:4: ( (lv_ownedDefinitions_6_0= ruleDefCS ) )\n \t // InternalMyDsl.g:3568:5: (lv_ownedDefinitions_6_0= ruleDefCS )\n \t {\n \t // InternalMyDsl.g:3568:5: (lv_ownedDefinitions_6_0= ruleDefCS )\n \t // InternalMyDsl.g:3569:6: lv_ownedDefinitions_6_0= ruleDefCS\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tnewCompositeNode(grammarAccess.getClassifierContextDeclCSAccess().getOwnedDefinitionsDefCSParserRuleCall_4_1_0());\n \t \t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_42);\n \t lv_ownedDefinitions_6_0=ruleDefCS();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getClassifierContextDeclCSRule());\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\"ownedDefinitions\",\n \t \t\t\t\t\t\t\tlv_ownedDefinitions_6_0,\n \t \t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.completeocl.CompleteOCL.DefCS\");\n \t \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt34 >= 1 ) break loop34;\n \t if (state.backtracking>0) {state.failed=true; return current;}\n EarlyExitException eee =\n new EarlyExitException(34, input);\n throw eee;\n }\n cnt34++;\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "private void buildFunctionBody(IFunction nd) {\n this.ctxt.push((Node) nd);\n\n // build a list of all parameters and default expressions in order, with\n // the default expressions preceding their corresponding parameter\n List<Expression> paramsAndDefaults = new ArrayList<Expression>();\n for (int j = 0, n = nd.getParams().size(); j < n; ++j) {\n if (nd.hasDefault(j)) paramsAndDefaults.add(nd.getDefault(j));\n paramsAndDefaults.add((Expression) nd.getParams().get(j));\n }\n if (nd.hasRest()) paramsAndDefaults.add((Expression) nd.getRest());\n\n Node entry = getEntryNode(nd);\n List<Identifier> fns = HoistedFunDecls.of(nd);\n hoistedFns.addAll(fns);\n\n // if this is the constructor of a class without a superclass, we need to\n // initialise all fields before running the body of the constructor\n // (for classes with a superclass, that initialisation only happens after\n // `super` calls)\n AClass klass = constructor2Class.get(nd);\n FieldDefinition firstField = null;\n if (klass != null && !klass.hasSuperClass()) {\n Pair<FieldDefinition, FieldDefinition> p = instanceFields.peek();\n if (p != null) {\n firstField = p.fst();\n writeSuccessor(p.snd(), First.of(nd.getBody()));\n }\n }\n\n Collection<Node> fst = visitSequence(nd.getBody(), this.getExitNode(nd));\n if (firstField != null) fst = Collections.singleton(First.of(firstField));\n fst =\n visitSequence(\n nd instanceof FunctionDeclaration ? null : nd.getId(), paramsAndDefaults, fns, fst);\n writeSuccessors(entry, fst);\n\n this.ctxt.pop();\n }", "public PContext() {\r\n\t\tthis(new PDirective(), null, null);\r\n\t}", "@Test(expected = NullPointerException.class)\r\n\tpublic void createWithNullBody1() {\r\n\t\tnew WeldJoint<Body>(null, b2, new Vector2());\r\n\t}", "public void setBody(ClassBody body) {\n\t\tif(body == null) {\n\t\t\t_componentType.connectTo((Association)createComponentType(new ClassBody()).parentLink());\n\t\t} else {\n\t\t\t_componentType.connectTo((Association) createComponentType(body).parentLink());\n\t\t}\n\t}", "JCExpression TODO(JFXTree tree) {\n return TODO(\"BIND functionality: \" + tree.getClass().getSimpleName());\n }", "@Override\n public JminBaseNode xlate(\n Translator xlator,\n J8BaseNode n8, Supplier<ImmutableList<JminBaseNode>> children) {\n com.mikesamuel.cil.ast.jmin.ExplicitConstructorInvocationNode inv\n = null;\n com.mikesamuel.cil.ast.jmin.BlockStatementsNode stmts = null;\n for (JminBaseNode child : children.get()) {\n switch (child.getNodeType()) {\n case ExplicitConstructorInvocation:\n inv = (com.mikesamuel.cil.ast.jmin\n .ExplicitConstructorInvocationNode) child;\n break;\n case BlockStatements:\n stmts = (com.mikesamuel.cil.ast.jmin\n .BlockStatementsNode) child;\n break;\n default:\n throw new AssertionError(child);\n }\n }\n if (inv == null) {\n inv = com.mikesamuel.cil.ast.jmin\n .ExplicitConstructorInvocationNode\n .Variant\n .TypeArgumentsSuperLpArgumentListRpSem\n .buildNode();\n }\n ImmutableList.Builder<JminBaseNode> b = ImmutableList.builder();\n b.add(inv);\n if (stmts != null) { b.add(stmts); }\n return com.mikesamuel.cil.ast.jmin.ConstructorBodyNode.Variant\n .LcExplicitConstructorInvocationBlockStatementsRc\n .buildNode(b.build());\n }", "protected final void validateNotBuildingInner()\n {\n Validate.stateIsNull(myInner,What.INNERBLOCK);\n }", "public ContextNode getContextNode(int arcs);", "public void setBodyElelemtList(List<BodyDecl> list) {\n setChild(list, 2);\n }", "@Override\n\tpublic Body makeBody(Map<String, String> attributes, Node... nodes) {\n\t\treturn new Body( attributes, nodes );\n\t}", "protected abstract Body newBodyImpl();", "public interface CompileContext extends UserDataHolder {\n /**\n * Allows to add a message to be shown in Compiler message view.\n * If correct url, line and column numbers are supplied, the navigation to the specified file is available from the view.\n *\n * @param category the category of a message (information, error, warning).\n * @param message the text of the message.\n * @param url a url to the file to which the message applies, null if not available.\n * @param lineNum a line number, -1 if not available.\n * @param columnNum a column number, -1 if not available.\n */\n default void addMessage(@NotNull CompilerMessageCategory category, @Nls(capitalization = Nls.Capitalization.Sentence) String message, @Nullable String url, int lineNum, int columnNum) {\n addMessage(category, message, url, lineNum, columnNum, null);\n }\n\n /**\n * Allows to add a message to be shown in Compiler message view, with a specified Navigatable\n * that is used to navigate to the error location.\n *\n * @param category the category of a message (information, error, warning).\n * @param message the text of the message.\n * @param url a url to the file to which the message applies, null if not available.\n * @param lineNum a line number, -1 if not available.\n * @param columnNum a column number, -1 if not available.\n * @param navigatable the navigatable pointing to the error location.\n */\n default void addMessage(@NotNull CompilerMessageCategory category,\n @Nls(capitalization = Nls.Capitalization.Sentence) String message,\n @Nullable String url, int lineNum, int columnNum, @Nullable Navigatable navigatable) {\n addMessage(category, message, url, lineNum, columnNum, navigatable, Collections.emptyList());\n }\n\n /**\n * Allows to add a message to be shown in Compiler message view, with a specified Navigatable\n * that is used to navigate to the error location.\n * @param category the category of a message (information, error, warning).\n * @param message the text of the message.\n * @param url a url to the file to which the message applies, null if not available.\n * @param lineNum a line number, -1 if not available.\n * @param columnNum a column number, -1 if not available.\n * @param navigatable optional the navigatable pointing to the error location or null. If not specified, navigation will attempt to set cursor (line:column) position, if available.\n * @param moduleNames module name describing the context for the message (e.g. the module where the error occurred).\n * If a module cycle is compiled, the argument will contain names of modules that form the dependency cycle.\n */\n void addMessage(@NotNull CompilerMessageCategory category,\n @Nls(capitalization = Nls.Capitalization.Sentence) String message,\n @Nullable String url, int lineNum, int columnNum, @Nullable Navigatable navigatable, Collection<String> moduleNames);\n\n /**\n * Returns all messages of the specified category added during the current compile session.\n *\n * @param category the category for which messages are requested.\n * @return all compiler messages of the specified category\n */\n CompilerMessage @NotNull [] getMessages(@NotNull CompilerMessageCategory category);\n\n /**\n * Returns the count of messages of the specified category added during the current compile session.\n *\n * @param category the category for which messages are requested.\n * @return the number of messages of the specified category\n */\n int getMessageCount(@Nullable CompilerMessageCategory category);\n\n /**\n * Returns the progress indicator of the compilation process.\n *\n * @return the progress indicator instance.\n */\n @NotNull\n ProgressIndicator getProgressIndicator();\n\n /**\n * Returns the current compile scope.\n *\n * @return current compile scope\n */\n CompileScope getCompileScope();\n\n /**\n * Returns the compile scope which would be used if the entire project was rebuilt.\n * {@link #getCompileScope()} may return the scope, that is more narrow than ProjectCompileScope.\n *\n * @return project-wide compile scope.\n */\n CompileScope getProjectCompileScope();\n\n /**\n * A compiler may call this method in order to request complete project rebuild.\n * This may be necessary, for example, when compiler caches are corrupted.\n */\n void requestRebuildNextTime(String message);\n\n boolean isRebuildRequested();\n\n @Nullable\n String getRebuildReason();\n\n /**\n * Returns the module to which the specified file belongs. This method is aware of the file->module mapping\n * for generated files.\n *\n * @param file the file to check.\n * @return the module to which the file belongs\n */\n Module getModuleByFile(@NotNull VirtualFile file);\n\n /**\n * Returns the output directory for the specified module.\n *\n * @param module the module to check.\n * @return the output directory for the module specified, null if corresponding VirtualFile is not valid or directory not specified\n */\n @Nullable\n VirtualFile getModuleOutputDirectory(@NotNull Module module);\n\n /**\n * Returns the test output directory for the specified module.\n *\n * @param module the module to check.\n * @return the tests output directory the module specified, null if corresponding VirtualFile is not valid. If in Paths settings\n * output directory for tests is not configured explicitly, but the output path is present, the output path will be returned.\n */\n @Nullable\n VirtualFile getModuleOutputDirectoryForTests(Module module);\n\n /**\n * Checks if the compilation is incremental, i.e. triggered by one of \"Make\" actions.\n *\n * @return true if compilation is incremental. \n */\n boolean isMake();\n\n boolean isAutomake();\n\n boolean isRebuild();\n\n @NotNull\n Project getProject();\n\n boolean isAnnotationProcessorsEnabled();\n}", "private AppLnmCenaBi() {\n\t\tsuper(\"APP_LNM_CENA_BI\", Wetrn.WETRN);\n\t}", "@Test(expected = NullPointerException.class)\r\n\tpublic void createWithNullBody2() {\r\n\t\tnew WeldJoint<Body>(b1, null, new Vector2());\r\n\t}", "public KLabelMultiline() {\n // TODO codavaj!!\n }", "public final void initBody() {\n m_body = new ArrayList<Condition>();\n m_stats = new TwoClassConfusionMatrix();\n m_val = Double.NEGATIVE_INFINITY;\n resetTieBreaker();\n }", "public abstract void body();", "public ContextNode getContextNode();", "public OtherBody(String type,String name){\n this.type = type;\n this.name = name+\"'s \"+type;\n systemName = name;\n }", "private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }", "public interface ClassBody extends Term\n{\n /**\n * List of the class's members.\n * @return A list of {@link polyglot.ast.ClassMember ClassMember}.\n */\n List<ClassMember> members();\n\n /**\n * Set the class's members.\n * @param members A list of {@link polyglot.ast.ClassMember ClassMember}.\n */\n ClassBody members(List<ClassMember> members);\n\n /**\n * Add a member to the class, returning a new node.\n */\n ClassBody addMember(ClassMember member);\n}", "@Override\n protected void translate(int n, LanguageBuilder sb) {\n\t sb.indent(n)\n\t \t.append(Keyword.FOR).space().append('(').append(_condition).append(')').beginBlock();\n\t \n\t childrenTranslate(n + PrintStyle.INDENT, sb);\n\t \n\t sb.indent(n).endBlock();\n\t}", "public interface ContextNode extends Serializable, Comparable<ContextNode> {\r\n\r\n\t/*\r\n\t * General methods\r\n\t */\r\n\r\n\t/**\r\n\t * Get the graph of this context node.\r\n\t * @return The graph of this context node.\r\n\t */\r\n\tpublic Graph getGraph();\r\n\r\n\t/**\r\n\t * Every context node has a parent context node, except the root context node.\r\n\t * @return The parent context node of this context node, or null.\r\n\t */\r\n\tpublic ContextNode getContextNode();\r\n\r\n\t/**\r\n\t * Every context node has ancestor context nodes, except the root context node.\r\n\t * @param arcs The number of arcs to follow up the graph.\r\n\t * @return The ancestor context node of this context node, or null.\r\n\t */\r\n\tpublic ContextNode getContextNode(int arcs);\r\n\r\n\t/**\r\n\t * Checks if this context node is the root context node.\r\n\t * @return True, if this context node is the root context node.\r\n\t */\r\n\tpublic boolean isRootContextNode();\r\n\r\n\t/**\r\n\t * Checks if this context node is a leaf context node.\r\n\t * @return True, if this context node is a leaf context node.\r\n\t */\r\n\tpublic boolean isLeafContextNode();\r\n\r\n\t/**\r\n\t * Deletes this context node.\r\n\t */\r\n\tpublic void delete();\r\n\r\n\t/**\r\n\t * Clears the context node. This is equivalent to calling delContextNodes(), delRelations() and delLiterals().\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Checks if the context node is empty. \r\n\t * This is equivalent to calling ! ( containsContextNodes() || containsRelations() || containsLiterals() ).\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Every context node has an associated arc XRI.\r\n\t * This returns null for the root context node.\r\n\t * @return The arc XRI associated with this context node.\r\n\t */\r\n\tpublic XDI3SubSegment getArcXri();\r\n\r\n\t/**\r\n\t * Gets the XRI of this context node.\r\n\t * This returns () for the root context node.\r\n\t * @return The XRI of this context node.\r\n\t */\r\n\tpublic XDI3Segment getXri();\r\n\r\n\t/*\r\n\t * Methods related to context nodes of this context node\r\n\t */\r\n\r\n\t/**\r\n\t * Creates a new context node and adds it to this context node, or returns an existing context node.\r\n\t * @param arcXri The arc XRI of the new or existing context node.\r\n\t * @return The newly created or existing context node.\r\n\t */\r\n\tpublic ContextNode setContextNode(XDI3SubSegment arcXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setContextNode(XDI3SubSegment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic ContextNode setDeepContextNode(XDI3Segment contextNodeXri);\r\n\r\n\t/**\r\n\t * Returns the context node with a given arc XRI.\r\n\t * @param arcXri The arc XRI of the context node.\r\n\t * @return The context node with the given arc XRI, or null.\r\n\t */\r\n\tpublic ContextNode getContextNode(XDI3SubSegment arcXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getContextNode(XDI3SubSegment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic ContextNode getDeepContextNode(XDI3Segment contextNodeXri);\r\n\r\n\t/**\r\n\t * Returns the context nodes of this context node.\r\n\t * @return An iterator over context nodes.\r\n\t */\r\n\tpublic ReadOnlyIterator<ContextNode> getContextNodes();\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getContextNodes(), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic ReadOnlyIterator<ContextNode> getDeepContextNodes(XDI3Segment contextNodeXri);\r\n\r\n\t/**\r\n\t * Returns all context nodes of this context node.\r\n\t * @return An iterator over context nodes.\r\n\t */\r\n\tpublic ReadOnlyIterator<ContextNode> getAllContextNodes();\r\n\r\n\t/**\r\n\t * Returns all leaf context nodes of this context node.\r\n\t * @return An iterator over leaf context nodes.\r\n\t */\r\n\tpublic ReadOnlyIterator<ContextNode> getAllLeafContextNodes();\r\n\r\n\t/**\r\n\t * Checks if a context node with a given arc XRI exists in this context node.\r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @return True if this context node has a context node with the given arc XRI.\r\n\t */\r\n\tpublic boolean containsContextNode(XDI3SubSegment arcXri);\r\n\r\n\t/**\r\n\t * Checks if this context node has one or more context nodes.\r\n\t * @return True if this context node has context nodes.\r\n\t */\r\n\tpublic boolean containsContextNodes();\r\n\r\n\t/**\r\n\t * Deletes the context node with a given arc XRI.\r\n\t * @param arcXri The arc XRI of this context arc.\r\n\t */\r\n\tpublic void delContextNode(XDI3SubSegment arcXri);\r\n\r\n\t/**\r\n\t * Deletes all context nodes from this context node.\r\n\t */\r\n\tpublic void delContextNodes();\r\n\r\n\t/**\r\n\t * Returns the number of context nodes of this context node.\r\n\t * @return The number of context nodes.\r\n\t */\r\n\tpublic long getContextNodeCount();\r\n\r\n\t/**\r\n\t * Returns the number of all context nodes of this context node.\r\n\t * @return The number of context nodes.\r\n\t */\r\n\tpublic long getAllContextNodeCount();\r\n\r\n\t/*\r\n\t * Methods related to relations of this context node\r\n\t */\r\n\r\n\t/**\r\n\t * Creates a new relation and adds it to this context node, or returns an existing relation.\r\n\t * @param arcXri The arc XRI of the relation.\r\n\t * @param targetContextNodeXri The target context node XRI of the relation.\r\n\t * @return The newly created or existing relation.\r\n\t */\r\n\tpublic Relation setRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setRelation(XDI3Segment, XDI3Segment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Creates a new relation and adds it to this context node, or returns an existing relation.\r\n\t * @param arcXri The arc XRI of the relation.\r\n\t * @param targetContextNode The target context node of the relation.\r\n\t * @return The newly created or existing relation.\r\n\t */\r\n\tpublic Relation setRelation(XDI3Segment arcXri, ContextNode targetContextNode);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setRelation(XDI3Segment, ContextNode), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, ContextNode targetContextNode);\r\n\r\n\t/**\r\n\t * Returns a relation at this context node. \r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @param targetContextNodeXri The target context node XRI of the relation.\r\n\t * @return The relation with the given arc XRI, or null.\r\n\t */\r\n\tpublic Relation getRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getRelation(XDI3Segment, XDI3Segment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Relation getDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Returns a relation at this context node. \r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @return The relation with the given arc XRI, or null.\r\n\t */\r\n\tpublic Relation getRelation(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getRelation(XDI3Segment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Relation getDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Returns relations at this context node. \r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @return An iterator over relations with the given arc XRI, or null.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getRelations(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getRelations(XDI3Segment), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getDeepRelations(XDI3Segment contextNodeXri, XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Returns the relations of this context node.\r\n\t * @return An iterator over relations.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getRelations();\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getRelations(), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getDeepRelations(XDI3Segment contextNodeXri);\r\n\r\n\t/**\r\n\t * Returns the incoming relations with a given arc XRI.\r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @return An iterator over relations with the given arc XRI, or null.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getIncomingRelations(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Returns the incoming relations of this context node.\r\n\t * @return An iterator over relations.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getIncomingRelations();\r\n\r\n\t/**\r\n\t * Returns all relations of this context node.\r\n\t * @return An iterator over relations.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getAllRelations();\r\n\r\n\t/**\r\n\t * Returns all incoming relations of this context node.\r\n\t * @return An iterator over relations.\r\n\t */\r\n\tpublic ReadOnlyIterator<Relation> getAllIncomingRelations();\r\n\r\n\t/**\r\n\t * Checks if a relation with a given arc XRI and target context node XRI exists in this context node.\r\n\t * @param arcXri The arc XRI of the relations. \r\n\t * @param targetContextNodeXri The target context node XRI of the relation.\r\n\t * @return True if this context node has a relation with the given arc XRI and target context node XRI.\r\n\t */\r\n\tpublic boolean containsRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Checks if relations with a given arc XRI exist in this context node.\r\n\t * @param arcXri The arc XRI of the relations. \r\n\t * @return True if this context node has relations with the given arc XRI.\r\n\t */\r\n\tpublic boolean containsRelations(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Checks if this context node has one or more relations.\r\n\t * @return True if this context node has relations.\r\n\t */\r\n\tpublic boolean containsRelations();\r\n\r\n\t/**\r\n\t * Checks if incoming relations with a given arc XRI exist in this context node.\r\n\t * @param arcXri The arc XRI of the incoming relations. \r\n\t * @return True if this context node has incoming relations with the given arc XRI.\r\n\t */\r\n\tpublic boolean containsIncomingRelations(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Checks if this context node has one or more incoming relations.\r\n\t * @return True if this context node has incoming relations.\r\n\t */\r\n\tpublic boolean containsIncomingRelations();\r\n\r\n\t/**\r\n\t * Deletes the relation with a given arc XRI from this context node.\r\n\t * @param arcXri The arc XRI of the relation.\r\n\t * @param targetContextNodeXri The target context node XRI of the relation.\r\n\t */\r\n\tpublic void delRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);\r\n\r\n\t/**\r\n\t * Deletes the relation with a given arc XRI from this context node.\r\n\t * @param arcXri The arc XRI of the relation.\r\n\t */\r\n\tpublic void delRelations(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Deletes all relations from this context node.\r\n\t */\r\n\tpublic void delRelations();\r\n\r\n\t/**\r\n\t * Deletes the incoming relations of this context node.\r\n\t */\r\n\tpublic void delIncomingRelations();\r\n\r\n\t/**\r\n\t * Returns the number of relations of this context node.\r\n\t * @param arcXri The arc XRI to look for. \r\n\t * @return The number of relations.\r\n\t */\r\n\tpublic long getRelationCount(XDI3Segment arcXri);\r\n\r\n\t/**\r\n\t * Returns the number of relations of this context node.\r\n\t * @return The number of relations.\r\n\t */\r\n\tpublic long getRelationCount();\r\n\r\n\t/**\r\n\t * Returns the number of all relations of this context node.\r\n\t * @return The number of relations.\r\n\t */\r\n\tpublic long getAllRelationCount();\r\n\r\n\t/*\r\n\t * Methods related to literals of this context node\r\n\t */\r\n\r\n\t/**\r\n\t * Creates a new literal and adds it to this context node, or returns an existing literal.\r\n\t * @param literalData The literal data associated with the literal.\r\n\t * @return The newly created or existing literal.\r\n\t */\r\n\tpublic Literal setLiteral(Object literalData);\r\n\r\n\t/**\r\n\t * Creates a new literal and adds it to this context node, or returns an existing literal.\r\n\t * @param literalData The literal data string associated with the literal.\r\n\t * @return The newly created or existing literal.\r\n\t */\r\n\tpublic Literal setLiteralString(String literalData);\r\n\r\n\t/**\r\n\t * Creates a new literal and adds it to this context node, or returns an existing literal.\r\n\t * @param literalData The literal data number associated with the literal.\r\n\t * @return The newly created or existing literal.\r\n\t */\r\n\tpublic Literal setLiteralNumber(Double literalData);\r\n\r\n\t/**\r\n\t * Creates a new literal and adds it to this context node, or returns an existing literal.\r\n\t * @param literalData The literal data boolean associated with the literal.\r\n\t * @return The newly created or existing literal.\r\n\t */\r\n\tpublic Literal setLiteralBoolean(Boolean literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setLiteral(Object), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal setDeepLiteral(XDI3Segment contextNodeXri, Object literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setLiteralString(String), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal setDeepLiteralString(XDI3Segment contextNodeXri, String literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setLiteralNumber(Double), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal setDeepLiteralNumber(XDI3Segment contextNodeXri, Double literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.setLiteralBoolean(Boolean), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal setDeepLiteralBoolean(XDI3Segment contextNodeXri, Boolean literalData);\r\n\r\n\t/**\r\n\t * Returns the literal of this context node.\r\n\t * @param literalData The literal data associated with the literal.\r\n\t * @return The literal.\r\n\t */\r\n\tpublic Literal getLiteral(Object literalData);\r\n\r\n\t/**\r\n\t * Returns the literal of this context node.\r\n\t * @param literalData The literal data string associated with the literal.\r\n\t * @return The literal.\r\n\t */\r\n\tpublic Literal getLiteralString(String literalData);\r\n\r\n\t/**\r\n\t * Returns the literal of this context node.\r\n\t * @param literalData The literal data number associated with the literal.\r\n\t * @return The literal.\r\n\t */\r\n\tpublic Literal getLiteralNumber(Double literalData);\r\n\r\n\t/**\r\n\t * Returns the literal of this context node.\r\n\t * @param literalData The literal data boolean associated with the literal.\r\n\t * @return The literal.\r\n\t */\r\n\tpublic Literal getLiteralBoolean(Boolean literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getLiteral(Object), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal getDeepLiteral(XDI3Segment contextNodeXri, Object literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getLiteralString(String), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal getDeepLiteralString(XDI3Segment contextNodeXri, String literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getLiteraNumber(Double), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal getDeepLiteralNumber(XDI3Segment contextNodeXri, Double literalData);\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getLiteralBoolean(Boolean), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal getDeepLiteralBoolean(XDI3Segment contextNodeXri, Boolean literalData);\r\n\r\n\t/**\r\n\t * Returns the literal of this context node.\r\n\t * @return The literal.\r\n\t */\r\n\tpublic Literal getLiteral();\r\n\r\n\t/**\r\n\t * Deep version of ContextNode.getLiteral(), operates at a context node further down in the graph.\r\n\t */\r\n\tpublic Literal getDeepLiteral(XDI3Segment contextNodeXri);\r\n\r\n\t/**\r\n\t * Returns all literals of this context node.\r\n\t * @return An iterator over literals.\r\n\t */\r\n\tpublic ReadOnlyIterator<Literal> getAllLiterals();\r\n\r\n\t/**\r\n\t * Checks if this context node has a literal with the given data.\r\n\t * @param literalData The literal data associated with the literal.\r\n\t * @return True if this context node has a literal with the given data.\r\n\t */\r\n\tpublic boolean containsLiteral(Object literalData);\r\n\r\n\t/**\r\n\t * Checks if this context node has a literal with the given data.\r\n\t * @param literalData The literal data string associated with the literal.\r\n\t * @return True if this context node has a literal with the given data.\r\n\t */\r\n\tpublic boolean containsLiteralString(String literalData);\r\n\r\n\t/**\r\n\t * Checks if this context node has a literal with the given data.\r\n\t * @param literalData The literal data number associated with the literal.\r\n\t * @return True if this context node has a literal with the given data.\r\n\t */\r\n\tpublic boolean containsLiteralNumber(Double literalData);\r\n\r\n\t/**\r\n\t * Checks if this context node has a literal with the given data.\r\n\t * @param literalData The literal data boolean associated with the literal.\r\n\t * @return True if this context node has a literal with the given data.\r\n\t */\r\n\tpublic boolean containsLiteralBoolean(Boolean literalData);\r\n\r\n\t/**\r\n\t * Checks if this context node has a literal.\r\n\t * @return True if this context node has a literal.\r\n\t */\r\n\tpublic boolean containsLiteral();\r\n\r\n\t/**\r\n\t * Deletes the literal from this context node.\r\n\t */\r\n\tpublic void delLiteral();\r\n\r\n\t/**\r\n\t * Returns the number of all literals of this context node.\r\n\t * @return The number of literals.\r\n\t */\r\n\tpublic long getAllLiteralCount();\r\n\r\n\t/*\r\n\t * Methods related to statements\r\n\t */\r\n\r\n\t/**\r\n\t * Gets the statement that represents this context node.\r\n\t * @return A statement.\r\n\t */\r\n\tpublic ContextNodeStatement getStatement();\r\n\r\n\t/**\r\n\t * Gets all statements rooted in this context node.\r\n\t * @return An iterator over statements.\r\n\t */\r\n\tpublic ReadOnlyIterator<Statement> getAllStatements();\r\n\r\n\t/**\r\n\t * Returns the number of all statements rooted in this context node.\r\n\t * @return The number of statements.\r\n\t */\r\n\tpublic long getAllStatementCount();\r\n}", "@Test\n public void testNaya() throws Exception {\n ICFG mCFG = null;\n\n // Why A,W ?\n // A -> start node\n // W -> end node\n ICFGBasicBlockNode A = new CFGBasicBlockNode(\"A\",null);\n ICFGBasicBlockNode W = new CFGBasicBlockNode(\"W\",null);\n // This constructor initializes mCFG with start & end node\n mCFG = new CFG(A, W);\n\n ConcreteConstant CONSTANT_TWO = new ConcreteConstant(2,mCFG);\n ConcreteConstant CONSTANT_FIVE = new ConcreteConstant(5,mCFG);\n ConcreteConstant CONSTANT_TWENTY = new ConcreteConstant(20,mCFG);\n ConcreteConstant CONSTANT_THIRTY = new ConcreteConstant(30,mCFG);\n\n\n // variables x & y\n Variable x = new Variable(\"x\", mCFG);\n Variable y = new Variable(\"y\", mCFG);\n Variable p = new Variable(\"p\", mCFG);\n Variable q = new Variable(\"q\", mCFG);\n\n True trueExpr = new True(mCFG);\n ICFGDecisionNode B = new CFGDecisionNode(mCFG,trueExpr);\n mCFG.addDecisionNode(B);\n\n ICFGBasicBlockNode C = new CFGBasicBlockNode(\"C\", mCFG);\n Input i1 = new Input(mCFG);\n Statement stmt1 = new Statement(mCFG, x, i1);\n C.setStatement(stmt1);\n mCFG.addBasicBlockNode(C);\n\n ICFGBasicBlockNode D = new CFGBasicBlockNode(\"D\", mCFG);\n Input i2 = new Input(mCFG);\n Statement stmt2 = new Statement(mCFG, y, i2);\n D.setStatement(stmt2);\n mCFG.addBasicBlockNode(D);\n\n LesserThanExpression expr3 = new LesserThanExpression(mCFG, x, y);\n ICFGDecisionNode E = new CFGDecisionNode(mCFG,expr3);\n mCFG.addDecisionNode(E);\n\n ICFGBasicBlockNode F = new CFGBasicBlockNode(\"F\", mCFG);\n AddExpression addExpr1 = new AddExpression(mCFG,x,y);\n Statement stmt3 = new Statement(mCFG, p, addExpr1);\n F.setStatement(stmt3);\n mCFG.addBasicBlockNode(F);\n\n ICFGBasicBlockNode G = new CFGBasicBlockNode(\"G\", mCFG);\n SubExpression subExpr1 = new SubExpression(mCFG,x,y);\n Statement stmt4 = new Statement(mCFG, p, subExpr1);\n G.setStatement(stmt4);\n mCFG.addBasicBlockNode(G);\n//\n//\n// //edges\n ICFEdge AB = new CFEdge(\"AB\", mCFG, A, B);\n ICFEdge BC = new CFEdge(\"BC\", mCFG, B, C);\n ICFEdge CD = new CFEdge(\"CD\", mCFG, C, D);\n ICFEdge DE = new CFEdge(\"DE\", mCFG, D, E);\n ICFEdge EF = new CFEdge(\"EF\", mCFG, E, F);\n ICFEdge EG = new CFEdge(\"EG\", mCFG, E, G);\n ICFEdge FB = new CFEdge(\"FB\", mCFG, F, B);\n ICFEdge GB = new CFEdge(\"GB\", mCFG, G, B);\n ICFEdge BW = new CFEdge(\"BW\", mCFG, B, W);\n\n B.setThenEdge(BC);\n B.setElseEdge(BW);\n\n E.setThenEdge(EF);\n E.setElseEdge(EG);\n\n System.out.println(mCFG.getEdgeSet());\n\n// System.out.println(mCFG.getNodeSet());\n// System.out.println(mCFG.getEdgeSet());\n\n SEENew2 seeNew2 = new SEENew2(mCFG);\n\n SETNode setNode6 = seeNew2.allPathSE(mCFG,10);\n//\n// System.out.println(seeNew2.getSET().getStartNode().getIncomingEdge());\n// System.out.println(seeNew2.getSET().getStartNode().getCFGNode());\n//\n// Set<SETEdge> edgeSet = seeNew2.getSET().getEdgeSet();\n// for (SETEdge setEdge:edgeSet){\n// System.out.println(\"Edge:\"+setEdge);\n// System.out.println(\"Head:\"+setEdge.getHead());\n// System.out.println(\"Tail:\"+setEdge.getTail().getIncomingEdge());\n// System.out.println(\"Tail:\"+setEdge.getTail().getCFGNode());\n// }\n\n// Set<SETNode> nodeSet = seeNew2.getSET().getNodeSet();\n// for (SETNode setNode:nodeSet){\n// System.out.println(\"Node:\"+setNode);\n// System.out.println(\"CFGNode:\"+setNode.getCFGNode());\n//// System.out.println(\"Head:\"+setEdge.getHead());\n//// System.out.println(\"Tail:\"+setEdge.getTail());\n// }\n\n// // passing empty environment & startNode\n// SETBasicBlockNode startNode = new SETBasicBlockNode(seeNew2.getSET(),A);\n//\n// SETNode setNode = seeNew2.singleStep(B,startNode);\n// System.out.println(setNode.getLatestValue(x));\n//\n// SETNode setNode2 = seeNew2.singleStep(C,setNode);\n// System.out.println(setNode2.getLatestValue(y));\n//\n// SETNode setNode3 = seeNew2.singleStep(D,setNode2);\n// System.out.println(\"PathPredicate:\"+((SETDecisionNode)setNode3).getCondition());\n//\n// SETNode setNode4 = seeNew2.singleStep(E,setNode3);\n// System.out.println(setNode4.getLatestValue(x));\n//\n// SETNode setNode5 = seeNew2.singleStep(F,setNode4);\n// System.out.println(setNode5.getLatestValue(x));\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6.getSET());\n\n// System.out.println(seeNew2.getSET().getNodeSet());\n\n// System.out.println(seeNew2.getSET().getNumberOfDecisionNodes());\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6);\n\n\n\n\n\n }", "public static String generateNegativeConstraintsConjunct(GenerateCVC1 cvc, QueryBlockDetails queryBlock, Conjunct conjunct) throws Exception {\n\n\t\t\n\t\tString constraintString = \"\";\n\n\t\tconstraintString += \"%--------------------------------\\n%NEGATIVE CONSTRAINTS FOR THIS CONJUNCT\\n%---------------------------------------\\n\";\n\t\t\n\t\tVector<String> OrConstraints=new Vector<String>();\n\t\tVector<String> OrStringConstraints = new Vector<String>();\n\n\t\t/** Generate negative constraint for equivalence class.*/\n\t\t/**FIXME: Mahesh..Ask Amol why the below code and why cant't we use getconstraintsforequijoins()*/\n\t\tif(!conjunct.getEquivalenceClasses().isEmpty()){\n\n\t\t\t/**Get the equivalence classes*/\n\t\t\tVector<Vector<Node>> equivalenceClasses = conjunct.getEquivalenceClasses();\n\n\t\t\tfor(int i=0; i<equivalenceClasses.size(); i++){\t/** For each equivalence class list*/\n\n\t\t\t\t/**Get this equivalence */\n\t\t\t\tVector<Node> ec = equivalenceClasses.get(i);\n\n\t\t\t\t/**for each node in this equivalence*/\n\t\t\t\tfor(int j=0;j<ec.size(); j++)\n\t\t\t\t{\n\n\t\t\t\t\tNode eceNulled = ec.get(j);\t\t\t/** This is R.a - to be nulled */\n\n\n\t\t\t\t\tString CVCStr = \"%DataSet Generated By Nulling: \"+ ((Node)eceNulled).toString() + \"\\n\";\n\t\t\t\t\tTable tableNulled = eceNulled.getTable();\n\t\t\t\t\tColumn colNulled = eceNulled.getColumn();\n\n\t\t\t\t\t/** TODO: Have one vector for positive and negative conditions. */\n\n\t\t\t\t\tcvc.setResultsetTableColumns1( new HashMap<Table, Vector<String>>() );\t\t\t\t\t\n\n\t\t\t\t\t/** S = set of elements in ec which have a foreign key relationship with R.a <use closure for this> */\n\t\t\t\t\tArrayList<Node> S = new ArrayList<Node>();\n\t\t\t\t\tVector<Node> nullableFKs = new Vector<Node>();\n\t\t\t\t\tS.add(eceNulled);\n\n\t\t\t\t\tfor(int k=0; k<ec.size(); k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tNode ece = ec.get(k);\n\t\t\t\t\t\tTable tableEce = ece.getTable();\n\t\t\t\t\t\tColumn colEce = ece.getColumn();\n\t\t\t\t\t\t/**TODO Maintain a datasructure for list of PK and FK so as to compare in one pass.*/\n\t\t\t\t\t\tfor(int l=0; l < cvc.getForeignKeys().size(); l++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t/**In ForeignKeys Left points to the foreign key attribute while the right points to the Primary or the referenced column*/\n\t\t\t\t\t\t\tNode fk = cvc.getForeignKeys().get(l);\n\n\t\t\t\t\t\t\t/**Adapted for Nullable foreign keys.\n\t\t\t\t\t\t\t *If FK is not nullable, then we need to null it along with the referenced relation which is eceNulled*/\n\t\t\t\t\t\t\tif( (fk.getLeft().getTable() == tableEce && fk.getLeft().getColumn() == colEce) \n\t\t\t\t\t\t\t\t\t&& (fk.getRight().getTable() == tableNulled && fk.getRight().getColumn() == colNulled)){\n\t\t\t\t\t\t\t\tif(!colEce.isNullable())\n\t\t\t\t\t\t\t\t\tS.add(ece);/**To be taken along with nulled Column*/\n\t\t\t\t\t\t\t\tif(colEce.isNullable())\n\t\t\t\t\t\t\t\t\tnullableFKs.add(ece);/** To be taken along with nulled column, in case P.size > 1 */\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 * Now, we have in S, the nulled column along with the foreign key columns in that equivalence class\n\t\t\t\t\t * that reference the nulled column and are not nullable.\n\t\t\t\t\t * But, if EC - S, contains a nullable column which references the nulled column, \n\t\t\t\t\t * AND also contains some other column which may or may not be nullable, \n\t\t\t\t\t * then we cannot assign NULL to the nullable FK column. We then need to nullify the nullable FK column\n\t\t\t\t\t * along with the nulled column. If EC - S, just contains a single nullable column referencing the \n\t\t\t\t\t * nulled column, then we can assign NULL to that column in order to nullify the nulled column. \n\t\t\t\t\t */\n\n\n\t\t\t\t\t/** Form P = EC - S */\n\t\t\t\t\tVector<Node> P = new Vector<Node>();\n\t\t\t\t\tfor(int k=0; k<ec.size(); k++)\t\t\t\t\t\t\n\t\t\t\t\t\tif( cvc.getqParser().alreadyNotExistInEquivalenceClass(S, ec.get(k)))\n\t\t\t\t\t\t\tP.add(ec.get(k));\n\n\n\t\t\t\t\tSystem.out.println(\"R.a = \"+eceNulled);\n\t\t\t\t\tSystem.out.print(\"EC : \"); Node.printPredicateVector(ec);\n\n\t\t\t\t\t/**For Now : if P is empty continue;*/\n\t\t\t\t\tif(P.size() == 0)\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif(P.size() == 1 \n\t\t\t\t\t\t\t&& P.get(0).getColumn().getReferenceColumn() == eceNulled.getColumn()\n\t\t\t\t\t\t\t&& P.get(0).getColumn().isNullable()){\n\n\t\t\t\t\t\t/**check if the column in P is referencing the nulled column and is nullable.\n\t\t\t\t\t\t *If so, then we can nullify the nulled relation inspite of the FK*/\n\t\t\t\t\t\tOrConstraints.add( GenerateCVCConstraintForNode.cvcSetNull(cvc, P.get(0).getColumn(), \"1\"));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t/**Otherwise, we need to nullify the foreign keys along with the nulled column.\n\t\t\t\t\t\t * Note that we need to do this irrespective of whether the column in P is FK \n\t\t\t\t\t\t * or whether it is nullable. Because, then we cannot assign NULL to any of the columns in P\n\t\t\t\t\t\t * This is because, NULLs cannot be equated and hence the joins in P will not be propogated up.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tP.removeAll(nullableFKs);\n\n\t\t\t\t\t\t/** Generate positiveConds for members in P*/ \n\t\t\t\t\t\tGenerateJoinPredicateConstraints.genPositiveConds(P);\n\t\t\t\t\t}\n\n\t\t\t\t\t/**Now generate negative conditions for Nulled relation\n\t\t\t\t\t *i.e. NOT EXISTS (i: Nulled Rel): NulledRel[i].col = P[1].col*/\n\t\t\t\t\tOrConstraints.add( GenerateJoinPredicateConstraints.genNegativeConds( cvc, queryBlock, colNulled, P.get(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\n\t\t/**Now generate Positive conditions for each of the non equi join conditions \n\t\t * that were not considered when building equivalence classes*/\n\t\tVector<Node> allConds = conjunct.getAllConds();\n\t\t\n\t\t/**get constraint*/\n\t\tString constraint = GenerateJoinPredicateConstraints.getNegativeConstraintsForNonEquiJoins(cvc, queryBlock, allConds) ;\n\n\t\tif( constraint.length() != 0)\n\t\t\tOrConstraints.add( constraint );\n\n\t\t/** Now generate Negative constraints for selection conditions */\n\t\tVector<Node> selectionConds = conjunct.getSelectionConds();\n\n\t\t/**get negative conditions for these nodes*/\n\t\tVector<Node> negativeSelConds = GenerateCVCConstraintForNode.getNegativeConditions(selectionConds);\n\n\t\t/**Generate constraints for the negative conditions*/\n\t\tfor(int k = 0; k < negativeSelConds.size(); k++){\n\n\t\t\t/**get table details*/\n\t\t\tString tableNo = negativeSelConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l = 1; l <= count; l++)\n\t\t\t\tOrConstraints.add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, negativeSelConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\n\t\t/**Generate negative constraints for string selection conditions */\n\t\tVector<Node> stringSelectionConds = conjunct.getStringSelectionConds();\t\n\n\t\t/**get negative conditions for these nodes*/\n\t\tVector<Node> negativeStringSelConds = GenerateCVCConstraintForNode.getNegativeConditions(stringSelectionConds);\n\n\t\t/**Generate constraints for the negative conditions*/\n\t\tfor(int k = 0; k < negativeStringSelConds.size(); k++){\n\n\t\t\t/**get table details*/\n\t\t\tString tableNo = negativeStringSelConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l = 1; l <= count; l++)\n\t\t\t\tOrStringConstraints.add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, negativeStringSelConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\t\t/**Generate negative constraints for like conditions */\n\t\tVector<Node> likeConds = conjunct.getLikeConds();\n\n\t\t/**get negative conditions for these nodes*/\n\t\tVector<Node> negativeLikeConds = GenerateCVCConstraintForNode.getNegativeConditions(likeConds);\n\n\t\tfor(int k=0; k<likeConds.size(); k++){\n\n\t\t\t/**get table details*/\n\t\t\tString tableNo = negativeLikeConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tOrStringConstraints.add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, negativeLikeConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\t\t/**get the where clause sub query conditions in this conjunct*/\n\t\tif(conjunct.getAllSubQueryConds() != null){\n\t\t\tfor(int i=0; i < conjunct.getAllSubQueryConds().size(); i++){\n\t\t\t\t\n\t\t\t\tNode subQ = conjunct.getAllSubQueryConds().get(i);\n\t\t\t\t\n\t\t\t\t/**FIXME: Add negative constraints for this where clause sub query block\n\t\t\t\t * We could use methods of class: GenerateConstraintsForWhereClauseSubQueryBlock*/\n\t\t\t\t/**FIXME:If the given conjunct has NOT EXISTS conditions, then negative of that becomes positive*/\n\t\t\t\tint index = UtilsRelatedToNode.getQueryIndexOfSubQNode(subQ);\n\n\t\t\t\t/**get sub query block*/\n\t\t\t\tQueryBlockDetails subQuery = queryBlock.getWhereClauseSubQueries().get(index);\n\t\t\t\t\n\t\t\t\tString negativeConstraint = \"\";\n\t\t\t\t\n\t\t\t\t/**if this sub query is of EXISTS Type*/\n\t\t\t\tif(subQ.getType().equals(Node.getExistsNodeType()) ){\n\t\t\t\t\t\n\t\t\t\t\tfor (Conjunct con: subQuery.getConjuncts())\n\t\t\t\t\t\tnegativeConstraint += generateNegativeConstraintsConjunct(cvc, subQuery, con);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/**if sub query is of type NOT Exists*/\n\t\t\t\t/**We need to get positive constraints for this sub query*/\n\t\t\t\telse if ( subQ.getType().equals(Node.getNotExistsNodeType() ) ){\n\t\t\t\t\t\n\t\t\t\t\tfor (Conjunct con: subQuery.getConjuncts())\n\t\t\t\t\t\tnegativeConstraint += getConstraintsForConjuct(cvc, queryBlock, con);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\t/**get negative condition for this sub query node*/\n\t\t\t\t\tNode subQNegative = GenerateCVCConstraintForNode.getNegativeCondition(subQ);\n\t\t\t\t\t\n\t\t\t\t\t/**get negative constraints for where clause connective*/\t\t\t\t\t\n\t\t\t\t\tnegativeConstraint = GenerateConstraintsForWhereClauseSubQueryBlock.getConstraintsForWhereSubQueryConnective(cvc, queryBlock, subQNegative);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tconstraintString += negativeConstraint;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!OrConstraints.isEmpty() && OrConstraints.size() != 0)\n\t\t\tconstraintString += processOrConstraints(OrConstraints);\n\t\tconstraintString += \"\\n%--------------------------------\\n%END OF NEGATIVE CONSTRAINTS FOR THIS CONJUNCT\\n%---------------------------------------\";\n\n\t\tif(!OrStringConstraints.isEmpty() && OrStringConstraints.size() != 0 )\n\t\t\tcvc.getStringConstraints().add(processOrConstraints(OrStringConstraints));\n\n\t\treturn constraintString;\n\t}", "public T casePrePostOrBodyDeclarationCS(PrePostOrBodyDeclarationCS object) {\r\n return null;\r\n }", "@DISPID(1610940420) //= 0x60050004. The runtime will prefer the VTID if present\n @VTID(26)\n Bodies bodies();", "public void\nsetHirBody( BlockStmt pHirBody );", "Context mo1490b();", "SmilBody getBody();", "public Builder setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n body_ = value;\n onChanged();\n return this;\n }", "protected void sequence_FunctionBody(ISerializationContext context, FunctionBody semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.FUNCTION_BODY__BC) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.FUNCTION_BODY__BC));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getFunctionBodyAccess().getBcBlockParserRuleCall_0(), semanticObject.getBc());\r\n\t\tfeeder.finish();\r\n\t}", "protected void sequence_CommCase_CommClause(ISerializationContext context, CommCase semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public Literal setDeepLiteral(XDI3Segment contextNodeXri, Object literalData);", "public static String getConstraintsForConjuctExceptWhereClauseSubQueryBlock(GenerateCVC1 cvc, QueryBlockDetails queryBlock, Conjunct conjunct) throws Exception {\n\n\t\tString constraintString = \"\";\n\n\t\t/** If the given conjunct is null then no constraints need to be generated */\n\t\tif(conjunct == null)\n\t\t\treturn constraintString;\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% EQUIVALENCE CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the equivalence class constraints for this conjunct*/\n\t\tVector<Vector<Node>> equivalenceClasses = conjunct.getEquivalenceClasses();\n\t\tfor(int k=0; k<equivalenceClasses.size(); k++){\n\t\t\tVector<Node> ec = equivalenceClasses.get(k);\n\t\t\tfor(int i=0;i<ec.size()-1;i++){\n\t\t\t\tNode n1 = ec.get(i);\n\t\t\t\tNode n2 = ec.get(i+1);\n\t\t\t\tconstraintString += GenerateJoinPredicateConstraints.getConstraintsForEquiJoins(cvc, queryBlock, n1,n2) +\"\\n\";\n\t\t\t}\n\t\t}\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% SELECTION CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the constraints for the selection conditions of the form A.x = Constant of this conjunct */\n\t\tVector<Node> selectionConds = conjunct.getSelectionConds();\n\t\tfor(int k=0; k<selectionConds.size(); k++){\n\n\t\t\tString tableNo = selectionConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tconstraintString += \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, selectionConds.get(k),l+offset-1)+\";\" +\"\\n\";\n\t\t}\n\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% ALL CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Get the constraints for the non equi-join conditions */\n\t\tVector<Node> allConds = conjunct.getAllConds();\n\t\tfor(int k=0; k<allConds.size(); k++)\n\t\t\tconstraintString += GenerateJoinPredicateConstraints.getConstraintsForNonEquiJoins(cvc, queryBlock, allConds) +\"\\n\";\n\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% STRING SELECTION CLASS CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/**get the constraints for the conditions of the form A.x=cons where cons is a string constant */\n\t\tVector<Node> stringSelectionConds = conjunct.getStringSelectionConds();\n\t\tfor(int k=0; k<stringSelectionConds.size(); k++){\n\n\t\t\tString tableNo = stringSelectionConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tcvc.getStringConstraints().add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, stringSelectionConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\t\tconstraintString += \"\\n%---------------------------------\\n% LIKE CLAUSE CONSTRAINTS\\n%---------------------------------\\n\";\n\n\t\t/** Generate constraints for the like conditions of this conjunct*/\n\t\tVector<Node> likeConds = conjunct.getLikeConds();\n\t\tfor(int k=0; k<likeConds.size(); k++){\n\n\t\t\tString tableNo = likeConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tcvc.getStringConstraints().add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, likeConds.get(k),l+offset-1)+\";\\n\" );\n\t\t}\n\n\t\treturn constraintString;\n\t}", "public BodyContainer(EntityData ed) {\r\n super(ed, OrFilter.create(PhysicsMassType.class,\r\n Filters.fieldEquals(PhysicsMassType.class, \"type\", PhysicsMassTypes.fixedLinearVelocity(ed).getType()),\r\n Filters.fieldEquals(PhysicsMassType.class, \"type\", PhysicsMassTypes.fixedAngularVelocity(ed).getType()),\r\n Filters.fieldEquals(PhysicsMassType.class, \"type\", PhysicsMassTypes.normal(ed).getType()),\r\n Filters.fieldEquals(PhysicsMassType.class, \"type\", PhysicsMassTypes.normal_bullet(ed).getType())),\r\n Position.class, PhysicsMassType.class, PhysicsShape.class);\r\n }", "public Context(Global global)\n {\n _level=0;\n _listId=0;\n _global=global;\n _textStyle=new TextStyle();\n setParagraphStyle(new ParagraphStyle());\n }", "private SubDcl subdcl(){\n Subhead mySubHead = null;\n Body myBody = null;\n \n mySubHead = subhead();\n \n if(lexer.token == Symbol.SEMICOLON){\n \n lexer.nextToken(); \n myBody = body();\n \n if(lexer.token == Symbol.SEMICOLON)\n lexer.nextToken();\n else\n lexer.error(\"; exepcted\");\n \n }else\n lexer.error(\"; esperado\");\n \n \n \n return new SubDcl(mySubHead, myBody);\n }", "LWordConstant createLWordConstant();", "@Override\n\tpublic Clause getConstraints() {\n\t\treturn null;\n\t}", "public void setTypeOfBodyCd(Integer typeOfBodyCd) {\n\t\tthis.typeOfBodyCd = typeOfBodyCd;\n\t}", "protected abstract MS_LineBuilder prepareContent(MS_LineBuilder lb);", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n valueEClass.getESuperTypes().add(this.getexpression());\n ifStatementEClass.getESuperTypes().add(this.getexpression());\n operationEClass.getESuperTypes().add(this.getexpression());\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Spec(), this.getStatement(), null, \"spec\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(statementEClass, Statement.class, \"Statement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getStatement_Def(), this.getdefinition(), null, \"def\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStatement_Out(), this.getout(), null, \"out\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getStatement_In(), this.getin(), null, \"in\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getStatement_Comment(), ecorePackage.getEString(), \"comment\", null, 0, 1, Statement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(definitionEClass, definition.class, \"definition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getdefinition_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getdefinition_ParamList(), this.getparamList(), null, \"paramList\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getdefinition_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getdefinition_Expression(), this.gettypedExpression(), null, \"expression\", null, 0, 1, definition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(paramListEClass, paramList.class, \"paramList\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getparamList_Params(), ecorePackage.getEString(), \"params\", null, 0, -1, paramList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getparamList_Types(), ecorePackage.getEString(), \"types\", null, 0, -1, paramList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(outEClass, out.class, \"out\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getout_Exp(), this.gettypedExpression(), null, \"exp\", null, 0, 1, out.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getout_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, out.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(inEClass, in.class, \"in\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getin_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, in.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getin_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, in.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(typedExpressionEClass, typedExpression.class, \"typedExpression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(gettypedExpression_Exp(), this.getexpression(), null, \"exp\", null, 0, 1, typedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(gettypedExpression_Type(), ecorePackage.getEString(), \"type\", null, 0, 1, typedExpression.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(expressionEClass, expression.class, \"expression\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n initEClass(valueEClass, value.class, \"value\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getvalue_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getvalue_Exp(), this.gettypedExpression(), null, \"exp\", null, 0, 1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getvalue_Statements(), this.getStatement(), null, \"statements\", null, 0, -1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getvalue_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getvalue_Args(), this.getarg(), null, \"args\", null, 0, -1, value.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(argEClass, arg.class, \"arg\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getarg_Arg(), ecorePackage.getEString(), \"arg\", null, 0, 1, arg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getarg_Exp(), this.gettypedExpression(), null, \"exp\", null, 0, 1, arg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(ifStatementEClass, IfStatement.class, \"IfStatement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIfStatement_If(), this.gettypedExpression(), null, \"if\", null, 0, 1, IfStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIfStatement_Then(), this.gettypedExpression(), null, \"then\", null, 0, 1, IfStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIfStatement_Else(), this.gettypedExpression(), null, \"else\", null, 0, 1, IfStatement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(operationEClass, Operation.class, \"Operation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getOperation_Left(), this.getexpression(), null, \"left\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getOperation_Op(), ecorePackage.getEString(), \"op\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getOperation_Right(), this.getvalue(), null, \"right\", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "b(c cVar) {\n super(0);\n this.this$0 = cVar;\n }", "public final void synpred88_InternalMyDsl_fragment() throws RecognitionException { \n EObject this_ClassifierContextDeclCS_1 = null;\n\n\n // InternalMyDsl.g:3710:3: (this_ClassifierContextDeclCS_1= ruleClassifierContextDeclCS )\n // InternalMyDsl.g:3710:3: this_ClassifierContextDeclCS_1= ruleClassifierContextDeclCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t/* */\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_ClassifierContextDeclCS_1=ruleClassifierContextDeclCS();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "public interface ReverseGeoCoderProto$RGCContextualLabelingRequestOrBuilder extends MessageLiteOrBuilder {\n String getLocale();\n\n ByteString getLocaleBytes();\n\n C7917e getParentZones(int i);\n\n int getParentZonesCount();\n\n List<C7917e> getParentZonesList();\n\n int getParentZonesValue(int i);\n\n List<Integer> getParentZonesValueList();\n\n C7919f getPreferredProvider();\n\n int getPreferredProviderValue();\n\n C7272d0 getRectangleObsolete();\n\n boolean getReturnFullAddress();\n\n boolean getReturnStreet();\n\n C7923h getViewport();\n\n boolean hasRectangleObsolete();\n\n boolean hasViewport();\n}", "private void classBodyDeclaration(ClassType object, Modifier modifier, Vector queue)\r\n {\r\n Modifier x = new Modifier(modifier);\r\n x.cur = 0;\r\n\r\n if (nextSymbol == Keyword.SEMICOLONSY)\r\n {\r\n lookAhead();\r\n return;\r\n }\r\n\r\n if (nextSymbol == Keyword.STATICSY)\r\n {\r\n x.add(modifier());\r\n queue = object.statics;\r\n }\r\n\r\n if (nextSymbol == Keyword.LBRACESY)\r\n {\r\n Vector label = new Vector();\r\n //label.add(\"\" + Operation.newLabel());\r\n block(null, null, object.scope, label, Scope.MAIN, null, queue);\r\n }\r\n else\r\n {\r\n for(int y = modifier1(); y != 0; y = modifier())\r\n x.add(y);\r\n\r\n if ((x.cur & Keyword.NATIVESY.value) != 0)\r\n Errors.warning(nextToken.source, nextToken.line, nextToken.col, \"native detected!\", false);\r\n\r\n if ((x.cur & x.constructors) == 0)\r\n x.cur |= modifier.cur & modifier.constructors;\r\n\r\n if ((x.cur & Keyword.STATICSY.value) != 0)\r\n queue = object.statics;\r\n\r\n memberDecl(x, object, queue);\r\n }\r\n }", "@Override\n protected String getInitialUnformattedBody(PythonParser.FuncdefContext rawMethod) {\n return null;\n }", "public interface NewLine extends ClouBausteinElement {\n\n static NewLine create(CodePosition codePosition){\n return new NewLineImpl(codePosition);\n }\n\n}", "private AppLnmMcaBl() {\n\t\tsuper(\"APP_LNM_MCA_BL\", Wetrn.WETRN);\n\t}", "public CWLNodeFactory() {\n super(true);\n }", "protected void bodyAdded (ClusterRecord clrec, BodyObject body)\n {\n }", "@DISPID(1610940427) //= 0x6005000b. The runtime will prefer the VTID if present\n @VTID(33)\n Constraints constraints();", "public static void main(String[] args) throws Exception {\r\n\t\tInnerAnnomiousNestedClass n=new InnerAnnomiousNestedClass();\r\n\t BB b=new BB() {\r\n\t\t @Override\r\n\t\tpublic void show() {\r\n\t\t\tSystem.out.println(\"Hello How are you\");\r\n\t\t}\r\n\t};\r\n\t // AA a=new AA();\r\n\t}", "JannotTreeJCBinary(InfixExpression n) \n{\n super(n);\n}", "public T casePackageDeclarationNestedNamespaceCS(PackageDeclarationNestedNamespaceCS object) {\r\n return null;\r\n }", "public\nNuc2D(NucNode nuc)\nthrows Exception\n{\n\tsuper (nuc);\n}", "public AST(RuleContext ctx){\n this.ctx = ctx;\n }", "public CSP() {\n integerVariables = new ArrayList<IntegerVariable>();\n booleanVariables = new ArrayList<BooleanVariable>();\n relations = new ArrayList<Relation>();\n clauses = new ArrayList<Clause>();\n objectiveVariables = null;\n objective = Objective.NONE;\n integerVariableMap = new HashMap<String, IntegerVariable>();\n booleanVariableMap = new HashMap<String, BooleanVariable>();\n relationMap = new HashMap<String, Relation>();\n }" ]
[ "0.64517486", "0.6225964", "0.61910135", "0.59446126", "0.56198764", "0.51691115", "0.5132768", "0.509959", "0.50766426", "0.5064601", "0.504642", "0.50418776", "0.502164", "0.49931195", "0.49907124", "0.49405417", "0.493001", "0.49276325", "0.4887692", "0.48710364", "0.48553973", "0.4838124", "0.48362488", "0.48119903", "0.4807089", "0.48028818", "0.480076", "0.479437", "0.47879094", "0.47864208", "0.47828537", "0.4769343", "0.4754964", "0.47483703", "0.4745111", "0.47421867", "0.47123566", "0.4709374", "0.46895096", "0.46665484", "0.46562096", "0.46541187", "0.46491832", "0.46376064", "0.46229762", "0.46138787", "0.4608416", "0.46041763", "0.46024117", "0.46000832", "0.45995072", "0.45953506", "0.45940828", "0.45800808", "0.45782542", "0.45697767", "0.4568672", "0.45670533", "0.4558246", "0.4555433", "0.45541215", "0.454433", "0.4539464", "0.45333123", "0.45333025", "0.4517361", "0.45002165", "0.44975275", "0.44923154", "0.44918823", "0.44916552", "0.4488769", "0.44841278", "0.44831207", "0.44700697", "0.4469296", "0.44688246", "0.44681138", "0.44669318", "0.44664934", "0.44570968", "0.4449752", "0.444167", "0.4438005", "0.44376576", "0.4436632", "0.44364783", "0.4434656", "0.44327348", "0.44296408", "0.4425852", "0.44239247", "0.44226414", "0.44221145", "0.44217756", "0.44190723", "0.44037342", "0.43980223", "0.4396331", "0.43955016" ]
0.4905161
18
Adiciona uma porta ao corpo do documento NCL.
public boolean addPort(Pt port) { if(ports.add(port)){ //Se port existe, atribui este como seu parente if(port != null) port.setParent(this); notifyInserted(NCLElementSets.PORTS, port); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Fornecedor(int código, String nome, String data_cadastro, String n_documento) {\r\n super(código, nome, data_cadastro, n_documento);\r\n }", "public accionDocumentos() {\n \n }", "private void criaContaCliente (String cpf) {\n this.contasClientes.put(cpf, new Conta(cpf));\n }", "public PDocente() {\n initComponents();\n }", "public Nodo(datos libro)\n {\n this.libro=libro;//LA VARIABLE LIBRO TENDRA LOS DATOS DE LA CLASE LIBRO\n }", "@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }", "public void inicializarOrdenDeCorte(OrdenDeCorte oc);", "public Corso(String codice, String nome, String docente, String descrizione, String link) {\n this.codice = codice;\n this.nome = nome;\n this.docente = docente;\n this.descrizione = descrizione;\n this.link = link;\n }", "public Pila(Fabrica<TNodo> creadorDeNodos) {\n\t\tsuper(creadorDeNodos);\n\t}", "public PnStrarMateriasDocente() {\n initComponents();\n }", "public Documento() {\n\n\t}", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public Botella(int contenido_neto) {\n this.contenido_neto = contenido_neto;\n }", "public TestSyncNewNodeListener(ItsNatDocument itsNatDoc)\r\n {\r\n load(itsNatDoc);\r\n }", "public void crearClase() {\r\n\t\tsetClase(3);\r\n\t\tsetTipoAtaque(3);\r\n\t\tsetArmadura(15);\r\n\t\tsetModopelea(0);\r\n\t}", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic void createccuntNum() {\n\t\t\n\t}", "public void iniciarNovaPartida(Integer posicao);", "public conversorDOC(){\n }", "public Doc_estado() {\n }", "public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}", "public ModDocument() {\r\n\t\tsuper();\r\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "ProjetoRN createProjetoRN();", "Position_ordonnee createPosition_ordonnee();", "public void setNodo(Long nodo);", "public Nid(String matiere, int capacite)\n {\n // initialisation des variables d'instance\n this.matiere = matiere;\n this.capacite = capacite;\n }", "public static opCode createDocument(String name, int nsection)\n {\n Operation request = new Operation(username);\n request.setPassword(password);\n request.setCode(opCode.CREATE);\n\n request.setFilename(name);\n request.setSection(nsection);\n\n sendReq(clientSocketChannel,request);\n\n return getAnswer();\n }", "public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }", "public Recurso(int nNivel, String nDescripcion, String nurl) {\n\t\ttipo = TEXTO;\n\t\tdescripcion = nDescripcion;\n\t\turl = nurl;\n\t\tnivel = nNivel;\n\t}", "public void inicializar(String negocio) {\n\t\t\n\t\tSystem.out.println(\"Estoy incializando...\");\n\t}", "public Curso() {\r\n }", "AliciaLab createAliciaLab();", "public Jogador(int nLinhas, int nCols, List<Par<Integer,Integer>> obstaculos) {\n\t\tthis.ambiente = new Ambiente(nLinhas, nCols, obstaculos);\n\t\tthis.pontuacao = 0;\n\t}", "@Override\n\tpublic void createCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "ClaseColas() { // Constructor que inicializa el frente y el final de la Cola\r\n frente=0; fin=0;\r\n System.out.println(\"Cola inicializada !!!\");\r\n }", "OperacionColeccion createOperacionColeccion();", "public Nodo1Controlador() {\n this.reinit();\n\n }", "public pnl_DocGia() {\n initComponents();\n }", "public LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN() {}", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public NovaContaFisica() {\n initComponents();\n }", "Vaisseau_estOrdonneeCouverte createVaisseau_estOrdonneeCouverte();", "public void newDocument();", "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }", "public CadastroCurso() {\n initComponents();\n configTela();\n }", "private void populaNoticiaCat()\n {\n NoticiaCat n1 = new NoticiaCat(\"Avisos\", \"Help\");\n noticiaCatDAO.insert(n1);\n NoticiaCat n2 = new NoticiaCat(\"Noticias\", \"Document Notes\");\n noticiaCatDAO.insert(n2);\n NoticiaCat n3 = new NoticiaCat(\"Dicas\", \"Tag\");\n noticiaCatDAO.insert(n3);\n }", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "private void controladorNuevoColectivo(Controlador controlador){\n this.contNuevoColectivo = controlador.getNuevoColectivo();\n nuevoColectivo.setControlCreateCollective(contNuevoColectivo);\n }", "public Pc_NivelesVentaVO( int clConfiguracion, String dsConfiguracion, String dsValor){\n\t\tsetClConfiguracion(clConfiguracion);\n\t\tsetDsConfiguracion(dsConfiguracion);\n\t\tsetDsValor(dsValor);\n\t}", "public void adicionar(Integer no,ListaDuplamenteEncadeada lista){\r\n\t\tListaDuplamenteEncadeada temp = new ListaDuplamenteEncadeada();\r\n\t\ttemp.setDado(no);\r\n\t\ttemp.setProximoNo(lista.getProximoNo());\r\n\t\tlista.setProximoNo(temp);\r\n\t\tlista.setNumElementos(lista.getNumElementos()+1);\r\n\t}", "public Caso_de_uso () {\n }", "public CalculaNota() {\n initComponents();\n }", "public Recurso(int nNivel, String nDescripcion, String nUrl, String nimgUrl){\n\t\ttipo = IMAGEN;\n\t\tdescripcion = nDescripcion;\n\t\turl = nUrl;\n\t\timgUrl = nimgUrl;\n\t\tnivel = nNivel;\n\t}", "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}", "private void crearNave(String accion) {\n\t\tthis.naveCreada=true;\n\t\tpausa = false;\n\t\t\n\t\tString [] info = accion.split(\"#\");\n\t\tString [] xA = info[3].split(\"=\");\n\t\tString [] yA = info[4].split(\"=\");\n\t\tString [] vxA = info[5].split(\"=\");\n\t\tString [] vyA = info[6].split(\"=\");\n\t\tString [] anA = info[7].split(\"=\");\n\t\t\n\t\tdouble x = Double.valueOf(xA[1]);\n\t\tdouble y = Double.valueOf(yA[1]);\n\t\tdouble velocidadx = Double.valueOf(vxA[1]);\n\t\tdouble velocidady = Double.valueOf(vyA[1]);\n\t\tdouble an = Double.valueOf(anA[1]);\n\t\t\n\t\tthis.nave = new Nave (x, y, an, 0.2, 0.98, 0.05, 20, this);\n\t\tnave.setVelocidadX(velocidadx);\n\t\tnave.setVelocidadY(velocidady);\n\t}", "public Nodo() {\n\t\tthis(null, null);\n\t}", "public CrearQuedadaVista() {\n }", "private void construireGrilleParDefaut() {\r\n\t\tthis.m_builder = new BuilderHerbe();\r\n\t\tCircuit.getInstance().clearElements();\r\n\t\t\r\n\t\tfor(int x=0;x<this.m_nbLignes;x++) {\r\n\t\t\tfor(int y=0;y<this.m_nbColonnes;y++) {\r\n\t\t\t\tthis.m_builder.creerElement(this,x+\"_\"+y);\r\n\t\t\t\tthis.m_builder.getElement().setBorderElement(new PointillerBorder(Color.GRAY,1));\r\n\t\t\t\tthis.m_panelGrid.add((Element)this.m_builder.getElement());\r\n\t\t\t\t\r\n\t\t\t\tCircuit.getInstance().addElement(this.m_builder.getElement());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void init(String pionsNoirs, String pionsBlancs) {\n\t\tinit(Couleur.noir(), pionsNoirs); \n\t\tinit(Couleur.blanc(), pionsBlancs); \n\t\treafficher();\n }", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public DCrearDisco( InterfazDiscotienda id ){\r\n super( id, true );\r\n principal = id;\r\n\r\n panelDatos = new PanelCrearDisco( );\r\n panelBotones = new PanelBotonesDisco( this );\r\n\r\n getContentPane( ).add( panelDatos, BorderLayout.CENTER );\r\n getContentPane( ).add( panelBotones, BorderLayout.SOUTH );\r\n\r\n setTitle( \"Crear Disco\" );\r\n pack();\r\n }", "org.landxml.schema.landXML11.LanesDocument.Lanes addNewLanes();", "Foco createFoco();", "public void initControles(){\n\n }", "public Nodo(String _nombre_palabra, int _idtoken) {\n nombre_palabra = _nombre_palabra;\n idtoken = _idtoken;\n Siguiente = null;\n }", "@Override\r\n\tpublic void iniciarSesion() {\n\t\tthis.contextoOrdenMenosUno = new Contexto();\r\n\t\t//Obtengo el orden del xml de configuración\r\n\t\tthis.orden = Constantes.ORDER_MAX_PPMC;\r\n\t\t//Creo tantos Ordenes como dice el XML\r\n\t\tthis.listaOrdenes = new ArrayList<Orden>(this.orden+1);\r\n\t\tthis.inicializarListas();\r\n\t\tthis.compresorAritmetico = new LogicaAritmetica();\r\n\t\tthis.initSession = true;\r\n\t\tthis.tiraBits = \"\";\r\n\t\tthis.bitsBuffer = new StringBuffer();\r\n\t\tthis.finalizada = false;\r\n\t\tthis.contextoPrevio = false;\r\n\t\tthis.contextoActual = new String();\r\n\t}", "public TelaAlterarCliente() {\n\t\tinitComponents();\n\t}", "public prueba()\r\n {\r\n }", "public abstract IOptions newDocumentOptions();", "public InstrutorCadastrarTela() {\n initComponents();\n //Limite de caracateres e apenas caracteres permitidos\n jTextFieldNome.setDocument(new classesBasicas.CaracterLimitePermitido(60));\n //Limitando os caracteres para (N), independende de ser numero ou letras\n jTextFieldRg.setDocument(new classesBasicas.JTextFieldLimite(20)); \n }", "public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }", "public Domicilio(String calle, String numero, String localidad, String provincia) {\n this.calle = calle;\n this.numero = numero;\n this.localidad = localidad;\n this.provincia = provincia;\n }", "public void setnNumtipodoc(Short nNumtipodoc) {\n this.nNumtipodoc = nNumtipodoc;\n }", "public Cliente(int codCliente, String nome, String nomeCurto, String nif, byte codPartePropio) {\t\t\n\t\tthis(codCliente, nome, nomeCurto, nif, true);\n\t\tif(codPartePropio==0) {\n\t\t\tthis.codPartePropio = false;\n\t\t}\n\t}", "@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}", "@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}", "private void inicializaDialogo(Collection coll, String convenio)\r\n {\r\n\r\n \tgetContentPane().add(new InfCatatralFisicoEconomicoPanel(false, coll, convenio));\r\n }", "public GrlFornecedorNovoBean()\n {\n fornecedor = getInstanciaFornecedor();\n }", "public Categorie(int noCategorie, String libelle) {\n this.noCategorie = noCategorie;\n this.libelle = libelle;\n }", "public void crearNodos()\n\t{\n\t\tfor(List<String> renglon: listaDeDatos)\n\t\t{\n\t\t\tPersona persona = new Persona(Integer.parseInt(renglon.get(1)), Integer.parseInt(renglon.get(2))); //crea la persona\n\t\t\t\n\t\t\tNodo nodo = new Nodo(Integer.parseInt(renglon.get(0)), 0, 0, false); //crea el nodo con id en posicion 1\n\t\t\t\n\t\t\tnodo.agregarPersona(persona);\n\t\t\tlistaNodos.add(nodo);\n\t\t}\n\t\t\n\t}", "Documento createDocumento();", "public telaAddPedidoII() {\n initComponents();\n }", "public void initForAddNew() {\r\n\r\n\t}", "private void criarComponentes() {\n\n add(criarPainelNorte(), BorderLayout.NORTH);\n add(criarPainelCentro(), BorderLayout.CENTER);\n add(criarPainelSul(), BorderLayout.SOUTH);\n }", "public void setNrDoc(java.lang.String nrDoc) {\n this.nrDoc = nrDoc;\n }", "public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }", "public TiposDocumentosBean(){\r\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "private void InicializaGrafo() {\n\t\t\n\t\tnumeroVertices = ruas.length + 1;\n\t\tgrafo = new Grafo(numeroVertices);\n\t\t\n\t\tfor (int i = 0; i < numeroVertices - 1; i++) {\n\t\t\t\n\t\t\tint u = ruas[i];\n\t\t\tint v = (i + 1);\n\t\t\t\n\t\t\tgrafo.AdicionaAresta(u, v);\n\t\t\t\n\t\t} // Fim for int i = 0\n\t\t\n\t}", "Long crear(Espacio espacio);", "public VistaListacomprasnocliente() {\n // You can initialise any data required for the connected UI components here.\n }", "public CCuenta()\n {\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }", "private ControleurAcceuil(){ }", "private void crearDimensionContable()\r\n/* 201: */ {\r\n/* 202:249 */ this.dimensionContable = new DimensionContable();\r\n/* 203:250 */ this.dimensionContable.setIdOrganizacion(AppUtil.getOrganizacion().getId());\r\n/* 204:251 */ this.dimensionContable.setIdSucursal(AppUtil.getSucursal().getId());\r\n/* 205:252 */ this.dimensionContable.setNumero(getDimension());\r\n/* 206:253 */ verificaDimension();\r\n/* 207: */ }", "public ConsumoViaCep() {\n initComponents();\n }", "void createPortFolio(String portfolioName);", "public Conteo() {\n initComponents();\n }" ]
[ "0.59870046", "0.5755736", "0.5623767", "0.56083196", "0.5529796", "0.54403114", "0.54278034", "0.5424155", "0.54222167", "0.5415808", "0.5408766", "0.53975177", "0.5392953", "0.53843725", "0.53629845", "0.53471154", "0.5330282", "0.5318815", "0.5295475", "0.5291967", "0.52811754", "0.52780247", "0.526868", "0.525367", "0.524209", "0.5210573", "0.52040195", "0.51968145", "0.5196524", "0.5196036", "0.5187611", "0.5177248", "0.5176256", "0.51647747", "0.5161721", "0.5151014", "0.5150353", "0.51423675", "0.5136858", "0.51239353", "0.5121328", "0.51168776", "0.5106391", "0.51019126", "0.50969076", "0.5095205", "0.50949615", "0.50865287", "0.508436", "0.50718856", "0.50656414", "0.5057324", "0.5057231", "0.50531757", "0.50519", "0.5048755", "0.5045968", "0.50450283", "0.50407165", "0.50375026", "0.5033315", "0.5032589", "0.5032053", "0.5027346", "0.5020827", "0.5017964", "0.5014842", "0.50120634", "0.5005048", "0.50050294", "0.50018394", "0.49985236", "0.4989313", "0.49872568", "0.4986971", "0.49813855", "0.49735537", "0.49735537", "0.49700627", "0.4969534", "0.49539325", "0.49490649", "0.4948768", "0.49482217", "0.49446353", "0.49411705", "0.4938826", "0.4934442", "0.49289548", "0.49243763", "0.49225086", "0.49206248", "0.49189007", "0.49181956", "0.49162355", "0.4914009", "0.4911048", "0.4907532", "0.49068034", "0.49046332", "0.4904512" ]
0.0
-1
Remove uma porta do corpo do documento NCL.
public boolean removePort(String id) { for(Pt port : ports){ if(port.getId().equals(id)) return removePort(port); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}", "@Override\r\n\tpublic void remove(int codigoLivro) throws BaseDadosException {\n\t\t\r\n\t}", "public void removerContato() {\n\t\tSystem.out.println(\"Digite o número do contato que deseja remover: \");\n\t\tint numeroContato = scanner.nextInt();\n\t\tlistaDeContatos.remove(numeroContato);\n\t}", "public static void excluir(int numCompra){\r\n lerXml();\r\n for(int i=0; i < lista.size(); i++){\r\n Estoque cadaEstoque = lista.get(i);\r\n \r\n //procura o estoque que tem o CPF igual \r\n //à variável \"cpf\", que tá chegando entre\r\n //os parênteses\r\n if (cadaEstoque.getNumCompra()==numCompra){\r\n lista.remove(i);\r\n }\r\n }\r\n salvarXml();\r\n }", "@Override\n public void remove(int no) throws Exception {\n \n }", "public void removerInicio() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n this.primeiro = this.primeiro.irParaProximo();\n this.total--;\n break;\n }\n }", "@Override\n\tpublic void RemoverCarrinho(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}", "public void removerDeContenedor() {\n\t\tthrow new NotImplementedException();\r\n\t}", "public void removeDoc(Document doc) {//borra el objeto\n documents.remove(doc);\n }", "public void deleteLUC() {\r\n/* 135 */ this._has_LUC = false;\r\n/* */ }", "void remover(String cpf)throws ProfessorCpfNExisteException;", "public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }", "public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }", "private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }", "@Override\n\tpublic void deleteConseille(Conseille c) {\n\t\t\n\t}", "@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}", "@Override\n\tpublic void RemoverCupons(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Command\n\tpublic void eliminar(@BindingParam(\"documento\") TipoDocumento documentoSeleccionada){\n\n\t\tif (documentoSeleccionada == null) {\n\t\t\tClients.showNotification(\"Seleccione una opción de la lista.\");\n\t\t\treturn; \n\t\t}\n\n\t\tMessagebox.show(\"Desea eliminar el registro seleccionado?\", \"Confirmación de Eliminación\", Messagebox.YES | Messagebox.NO, Messagebox.QUESTION, new EventListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\tif (event.getName().equals(\"onYes\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().begin();\n\t\t\t\t\t\tdocumentoSeleccionada.setEstado(\"I\");\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().merge(documentoSeleccionada);\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().commit();;\n\t\t\t\t\t\t// Actualiza la lista\n\t\t\t\t\t\t//BindUtils.postGlobalCommand(null, null, \"Categoria.buscarPorPatron\", null);\n\t\t\t\t\t\tbuscar();\n\t\t\t\t\t\tClients.showNotification(\"Transaccion ejecutada con exito.\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().rollback();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}", "@Override\r\n\tpublic MensajeBean elimina(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.elimina(nuevo);\r\n\t}", "public void eliminarCompraComic();", "public void removeMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=8\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}", "public void removerClienteDoBanco(){\n\t\tdao.removerCliente(doCadastroController);\r\n\t}", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "@Override\n\tpublic void deleteCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "@Override\r\n public void removerConcursando(long id) throws Exception {\n rnConcursando.remover(id);\r\n }", "public void remover(String cpf)\r\n throws GerenteNaoEncontradoException {\r\n this.repositorio.remover(cpf);\r\n }", "public void removerContaCategoria(Conta conta)\n\t\t\tthrows ErroRepositorioException;", "public void descolaPosicao();", "public void eliminar(TipoDocumento tpDocu) {\n try {\n boolean verificarReLaboraldEnTpDocu = servReLaboral.buscarRegistroPorTpDocumento(tpDocu);\n if (verificarReLaboraldEnTpDocu) {\n MensajesFaces.informacion(\"No se puede eliminar\", \"Existen Datos Relacionados\");\n } else {\n servtpDocumento.eliminarTipoDocumento(tpDocu);\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Eliminado\", \"Exitoso\");\n }\n } catch (Exception e) {\n MensajesFaces.advertencia(\"Error al eliminar\", \"detalle\" + e);\n }\n }", "public void eliminar(ArrayList<Correo>cor,int posicion){\r\n for(Correo corre:cor){\r\n if(cor.contains(posicion-1)){\r\n cor.remove(corre);\r\n }\r\n }\r\n }", "public void eliminarNotas(int id ){\n String[] campos = {Integer.toString(id)};\n db.delete(\"nota\",\"_id=?\",campos);\n }", "public void removeNuclei() {\n int size = nucleiSelected.size();\n if (size > 0) {\n nucleiSelected.remove(size - 1);\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n decrementUpdateCount();\n }\n }", "@Override\n\tpublic void delete(Pessoa arg0) {\n\t\t\n\t}", "public String escolheRemove(int pos) {\n\t\tString e = null;\n\t\tint i = 1;\n\t\tCampusModel aux = inicio;\n\n\t\tif (inicio == null) {\n\t\t\tSystem.out.println(\"Lista Vazia!\");\n\t\t\treturn e;\n\t\t}\n\t\tif (pos == 1) {\n\t\t\te = RemoveInicio();\n\t\t\treturn e;\n\t\t} else {\n\t\t\twhile (aux.getProx() != null) {\n\t\t\t\taux = aux.getProx();\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (pos > i || pos == 0) {\n\t\t\t\tSystem.out.println(\"Posição Invalida!\");\n\t\t\t\treturn e;\n\t\t\t} else if (pos == i) {\n\t\t\t\te = RemoveFinal();\n\t\t\t\treturn e;\n\t\t\t} else {\n\t\t\t\taux = inicio;\n\t\t\t\tCampusModel aux2 = aux;\n\n\t\t\t\twhile (pos > 1) {\n\t\t\t\t\taux2 = aux;\n\t\t\t\t\taux = aux.getProx();\n\t\t\t\t\tpos--;\n\t\t\t\t}\n\t\t\t\te = aux.getNomeCampus();\n\t\t\t\taux2.setProx(aux.getProx());\n\n\t\t\t\treturn e;\n\t\t\t}\n\t\t}\n\t}", "public void eliminarCajeros(int id);", "public void cancelarFactura(){\n this.cliente = new Cliente();\n this.factura = new Factura();\n this.listDetalle = new ArrayList<>();\n this.numeroFactura = null;\n }", "public void removerCarro() {\n\n if (carrosCadastrados.size() > 0) {//verifica se existem carros cadastrados\n listarCarros();\n System.out.println(\"Digite o id do carro que deseja excluir\");\n int idCarro = verifica();\n for (int i = 0; i < carrosCadastrados.size(); i++) {\n if (carrosCadastrados.get(i).getId() == idCarro) {\n if (carrosCadastrados.get(i).getEstado()) {//para verificar se o querto está sendo ocupado\n System.err.println(\"O carrp está sendo utilizado por um hospede nesse momento\");\n } else {\n carrosCadastrados.remove(i);\n System.err.println(\"cadastro removido\");\n }\n }\n\n }\n } else {\n System.err.println(\"Não existem carros cadastrados\");\n }\n }", "public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n ElementoLista elementoTemporarioAnteriorAtual = this.primeiro;\n ElementoLista elementoTemporarioAtual = this.primeiro.irParaProximo();\n for (int i = 1; i < totalElementos(); i++) {\n elementoTemporarioAnteriorAtual = elementoTemporarioAtual;\n elementoTemporarioAtual = elementoTemporarioAtual.irParaProximo();\n }\n\n this.ultimo = elementoTemporarioAnteriorAtual;\n this.ultimo.definirProximo(null);\n this.total--;\n }\n //this.ultimo = this.ultimo.irParaAnterior();\n //this.ultimo.definirProximo(null);\n }", "public void eliminar(ListaConArreglo nodosMaquina){\n\t\tmodAdmin.eliminar( nodosMaquina);\n\t\tif(!ModAdmin.existe){\n\t\t\tSystem.err.println(\"El dominio indicado no existe en la base\");\n\t\t}\n\t\tModAdmin.existe=false;\n\t}", "private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"Insira o codigo do produto que pretende remover da lista de produtos?\");\n String codigo = Input.lerString();\n // Aqui devia se verificar se o produto existe mas nao sei fazer isso.\n this.controller.removeProdutoControl(codigo);\n }", "@Override\r\n\tpublic void delete(int eno) {\n\r\n\t}", "public void removeCarritoDeCompras (Long compradorId) {\r\n\r\n CompradorEntity compradorEntity = compradorPersistence.find(compradorId); \r\n CarritoDeComprasEntity carroEntity = carroPersistence.find(compradorEntity.getCarritoDeCompras().getId());\r\n carroPersistence.delete(compradorEntity.getListaDeDeseos().getId());\r\n compradorEntity.setListaDeDeseos(null);\r\n carroEntity.setComprador(null);\r\n \r\n}", "public void removerPorReferencia(int referencia){\n if (buscar(referencia)) {\n // Consulta si el nodo a eliminar es el pirmero\n if (inicio.getEmpleado().getId() == referencia) {\n // El primer nodo apunta al siguiente.\n inicio = inicio.getSiguiente();\n // Apuntamos con el ultimo nodo de la lista al inicio.\n ultimo.setSiguiente(inicio);\n } else{\n // Crea ua copia de la lista.\n NodoEmpleado aux = inicio;\n // Recorre la lista hasta llegar al nodo anterior\n // al de referencia.\n while(aux.getSiguiente().getEmpleado().getId() != referencia){\n aux = aux.getSiguiente();\n }\n if (aux.getSiguiente() == ultimo) {\n aux.setSiguiente(inicio);\n ultimo = aux;\n } else {\n // Guarda el nodo siguiente del nodo a eliminar.\n NodoEmpleado siguiente = aux.getSiguiente();\n // Enlaza el nodo anterior al de eliminar con el\n // sguiente despues de el.\n aux.setSiguiente(siguiente.getSiguiente());\n // Actualizamos el puntero del ultimo nodo\n }\n }\n // Disminuye el contador de tama�o de la lista.\n size--;\n }\n }", "@Override\n\tpublic void eliminaCategoria(String nome) {\n\t\tDB db = getDB();\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tlong hash = nome.hashCode();\n\t\tcategorie.remove(hash);\n\t\tdb.commit();\n\t}", "@Override\n protected void remover(Funcionario funcionario) {\n\n }", "public void deleteCt() {\n\t\tlog.info(\"-----deleteCt()-----\");\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tlistCtKhoLeTraEx.remove(selected);\n\t\tthis.count = listCtKhoLeTraEx.size();\n\t\ttinhTien();\n\t}", "private void borrarPieza(PosicionAjedrez pos){\n\t\tint fila= transformar(pos).getFila();\n\t\tint col= transformar(pos).getColumna();\n\n\t\tthis.getChildren().remove(tablero[col][fila]);\n\t\ttablero[col][fila]=new Canvas(CASILLERO_ANCHO,CASILLERO_ALTO);\n\t\ttablero[col][fila].setTranslateX(CASILLERO_ANCHO*col);\n\t\ttablero[col][fila].setTranslateY(CASILLERO_ALTO*fila);\n\n\t\tthis.getChildren().add(tablero[col][fila]);\n\t}", "public void removerPorReferencia(String referencia){\n if (buscar(referencia)) {\r\n // Consulta si el nodo a eliminar es el pirmero\r\n if (inicio.getValor() == referencia) {\r\n // El primer nodo apunta al siguiente.\r\n inicio = inicio.getSiguiente();\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al nodo anterior \r\n // al de referencia.\r\n while(aux.getSiguiente().getValor() != referencia){\r\n aux = aux.getSiguiente();\r\n }\r\n // Guarda el nodo siguiente del nodo a eliminar.\r\n Nodo siguiente = aux.getSiguiente().getSiguiente();\r\n // Enlaza el nodo anterior al de eliminar con el \r\n // sguiente despues de el.\r\n aux.setSiguiente(siguiente); \r\n }\r\n // Disminuye el contador de tamaño de la lista.\r\n tamanio--;\r\n }\r\n }", "public boolean eliminarCursoPorId(CatCurso catCurso) throws NSJPNegocioException;", "public void deleteAnio()\r\n {\r\n this._has_anio= false;\r\n }", "public void removeByTodoDocumentLibrary(String todoDocumentLibrary);", "public void borrarTodo(){\n diccionario.clear();\n }", "private void remover() {\n int confirma = JOptionPane.showConfirmDialog(null, \"Tem certeza que deseja remover este cliente\", \"Atenção\", JOptionPane.YES_NO_OPTION);\n if (confirma == JOptionPane.YES_OPTION) {\n String sql = \"delete from empresa where id=?\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpId.getText());\n int apagado = pst.executeUpdate();\n if (apagado > 0) {\n JOptionPane.showMessageDialog(null, \"Empresa removida com sucesso!\");\n txtEmpId.setText(null);\n txtEmpNome.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpCNPJ.setText(null);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }", "public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }", "public static void remove(int id_cancion, int id_lista){\n try{\n\t \t manager = Connection.connectToMysql();\n\t \t manager.getTransaction().begin();\n\t \t \n\t \t Lista l = manager.find(Lista.class, id_lista);\n\t \t Cancion c = manager.find(Cancion.class, id_cancion);\n\t\n\t \t List<Cancion> lista_canciones = l.getCanciones();\n\t \t lista_canciones.remove(c);\n\t \t l.setCanciones(lista_canciones);\n\t \n\t \t manager.getTransaction().commit();\n }catch (Exception ex) {\n System.out.println(ex);\n }\n }", "public void delete(int posicao){\n /*\n *\n * Nega a existência da posição na Lista.\n * Uma pequena gambiarra para não aninhar expressões if e else\n *\n */\n if(!verificaPosicao(posicao))\n throw new IllegalArgumentException(\"Posição inválida\");\n\n for (int i = posicao; i < this.tamanho-1; ++i){\n this.lista[i] = this.lista[i+1];\n }\n this.tamanho--;\n }", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "boolean removeDocument(String path);", "@Override\n\tpublic void remover(String cpf) throws ClienteNaoEncontradoException,\n\t\t\tCampoObrigatorioException, SQLException {\n\t\tfor(ClienteFisico clienteFisico : set){\n\t\t\tif(clienteFisico.getCpf().equals(cpf)){\n\t\t\t\tset.remove(clienteFisico);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public ContoContoPadreConverterToDelete() {\n\t\tsuper(Conto.class, SiacTPdceConto.class);\n\t}", "public void removerClientesConta(Integer idConta)\n\t\t\tthrows ErroRepositorioException;", "public void removerDebitoCobrado(Conta conta)\n\t\t\tthrows ErroRepositorioException;", "public void deletePolynom(int position) {\n collection.remove(position);\n }", "public int EliminarNodo() {\r\n int auxiliar = UltimoValorIngresado.informacion;\r\n UltimoValorIngresado = UltimoValorIngresado.siguiente;\r\n tamaño--;\r\n return auxiliar;\r\n }", "private void eliminarLibro(int pos) {\n\t\t// TODO Auto-generated method stub\n\t\tint contador = 0;\n\t\tboolean parar = false;\n\t\tLibro aux;\n\t\t\n\t\twhile((contador < lb.length) && !parar) {\n\t\t\tif(lb[contador] == null) {\n\t\t\t\tparar = true;\n\t\t\t\tcontador--;\n\t\t\t}else {\n\t\t\t\tcontador++;\n\t\t\t}\n\t\t}\n\t\tif(!parar) contador = lb.length-1;\n\t\t\n\t\taux = lb[pos];\n\t\tlb[pos] = lb[contador];\n\t\tlb[contador] = null;\n\t\tlb[lb.length-1] = aux;\n\t\tlb = Arrays.copyOf(lb, lb.length-1);\n\t\tif(lb[pos] == null) {\n\t\t\tfor(int i=pos; i<lb.length-1;i++) {\n\t\t\t\tlb[i] = lb[i+1];\n\t\t\t}\n\t\t}\n\t\t\n\t}", "void delete( String officeCode );", "void removeHadithChapterNo(Object oldHadithChapterNo);", "Curso eliminaCurso(String clave);", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "@Override\r\n\tpublic void remove(int no) {\n\t\tsession.delete(\"enter.delete\", no);\r\n\t}", "public int remove( String lfn ) {\n int result = 0;\n for( Iterator it = this.rcIterator(); it.hasNext() ; ){\n ReplicaCatalog catalog = (ReplicaCatalog) it.next();\n result += catalog.remove( lfn ) ;\n }\n return result;\n\n }", "public void removeBydescricao(String descricao);", "public void eliminar(Long id) throws AppException;", "public void removeProdotto(String codice, int quantita, Request request) throws Exception {\n\t\tgetSession().getCarrello().removeByCodice(codice, quantita);\n\t\treturn;\n\t}", "@Override\n\tpublic void remover(int idServico) throws SQLException {\n\t\t\n\t}", "void supprimerMenu(int numeroArticle);", "public boolean removeDocument(long arg0) throws ContestManagementException {\r\n return false;\r\n }", "@Override\n public void remove() throws IOException {\n int i = listEnterprisePanel.getTableListE().getSelectedRow(); // chọn hàng để xóa\n if (i >= 0) {\n String strID = listEnterprisePanel.getTableListE().getValueAt(i, 1).toString().trim(); // lấy ID\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(strID); // Tìm kiếm Enterprise theo ID\n content.set(Collections.singleton(enterprise), null);\n enterpriseBN.deleteEnterprise(enterprise);\n model.removeRow(i);\n loadData();\n }\n\n }", "@Override\n\tpublic void excluir() {\n\t\t\n\t}", "public void supprimerClasse(int ligne) {\n\t\tSystem.out.println(\"JE SUPPRIME UNE CLASSE \" + ligne);\n\t\ttry{\n\t\t\t\n\t\t\trequete.execute(\"SELECT id FROM eleves where id_classe = \" + ligne);\n\t\t\t\n\t\t\tResultSet rs = requete.getResultSet();\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tsupprimerEmpruntsParEleve(rs.getInt(\"ID\"));\n\t\t\t}\n\t\t\t\n\t\t\trequete.execute(\"DELETE FROM eleves WHERE id_classe =\" + ligne);\n\t\t\trequete.execute(\"DELETE FROM classes WHERE ID = \" + ligne);\n\t\t\trafraichir_tableau();\n\t\t} catch(Exception e ){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public boolean removeDocumentFromContest(long arg0, long arg1) throws ContestManagementException {\r\n return false;\r\n }", "@Override\n\tpublic void delete(Integer rno) throws Exception {\n\t\tSystem.out.println(\"gogog\");\n\t\tsession.delete(namespace+\".delete4\",rno);\n\t}", "@Override\r\n\tpublic void DeleteCitizen(int cin) {\n\r\n\t\tem.remove(em.find(Citizen.class, cin));\r\n\r\n\t}", "private void supprimerPion(Position unePosition) {\n\t\tmesPions.remove(unePosition); \n }", "@Override\n\tpublic int remove(int n) {\n\t\treturn 0;\n\t}", "public void remove() {\n\n }", "public void removerTodos() {\n\t\t\n\t}", "public void remove(MongoDBCritera critera);", "public void excluirConta(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "public void borrarZonaObjetivoAtaque() {\n\t\t\n\t}", "public void removerEncomendaInsumo(int insumoId){\t\t\n\t\tEncomenda_insumoController encomenda_insumoController = new Encomenda_insumoController();\n\t\tSystem.out.println(insumoId);\n\t\tencomenda_insumoController.setup();\n\t\tString resposta = encomenda_insumoController.delete(insumoId);\n\t\t\n\t\tencomendaController = new EncomendaController();\n\t\tencomendaController.setup();\t\t\t\n\t\t\n\t\tif(!resposta.equals(\"ok\")) {\n\t\t\texibirMsgErro(resposta);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tgetAllEncomendas();\n\t}", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "public void excluirClienteConta(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;" ]
[ "0.6210451", "0.6200747", "0.6192919", "0.61144775", "0.60867536", "0.60838556", "0.6076656", "0.60512245", "0.6016838", "0.59876347", "0.5971027", "0.5965205", "0.5960532", "0.596032", "0.59535766", "0.59488857", "0.5942152", "0.591686", "0.58913785", "0.5883588", "0.5864669", "0.5862785", "0.58210593", "0.5815405", "0.58128875", "0.5791324", "0.57766926", "0.57728803", "0.57613647", "0.5760482", "0.5757158", "0.5749323", "0.5748342", "0.57204133", "0.57154083", "0.5704163", "0.570359", "0.5690931", "0.5675891", "0.5669673", "0.5667677", "0.5651705", "0.5646954", "0.56405944", "0.56226677", "0.5622404", "0.5621503", "0.5617619", "0.56081134", "0.5603867", "0.5595822", "0.5593573", "0.5591506", "0.55805767", "0.55790836", "0.5577433", "0.5577003", "0.5576024", "0.55620694", "0.5558511", "0.55560935", "0.55557775", "0.55552006", "0.5552286", "0.5549427", "0.5544208", "0.5538619", "0.5537972", "0.55339766", "0.55321485", "0.5518586", "0.5518586", "0.5518586", "0.5518586", "0.5518586", "0.5515601", "0.55153483", "0.55080426", "0.55068123", "0.5502568", "0.5501721", "0.5496792", "0.54879755", "0.5486316", "0.5485643", "0.54826194", "0.5481776", "0.5480969", "0.5480635", "0.54794526", "0.5478432", "0.5474332", "0.5473842", "0.547364", "0.5472857", "0.54723", "0.5472264", "0.547122", "0.547122", "0.547122", "0.54711103" ]
0.0
-1
Remove uma porta do corpo do documento NCL.
public boolean removePort(Pt port) { if(ports.remove(port)){ //Se port existe, retira o seu parentesco if(port != null) port.setParent(null); notifyRemoved(NCLElementSets.PORTS, port); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}", "@Override\r\n\tpublic void remove(int codigoLivro) throws BaseDadosException {\n\t\t\r\n\t}", "public void removerContato() {\n\t\tSystem.out.println(\"Digite o número do contato que deseja remover: \");\n\t\tint numeroContato = scanner.nextInt();\n\t\tlistaDeContatos.remove(numeroContato);\n\t}", "public static void excluir(int numCompra){\r\n lerXml();\r\n for(int i=0; i < lista.size(); i++){\r\n Estoque cadaEstoque = lista.get(i);\r\n \r\n //procura o estoque que tem o CPF igual \r\n //à variável \"cpf\", que tá chegando entre\r\n //os parênteses\r\n if (cadaEstoque.getNumCompra()==numCompra){\r\n lista.remove(i);\r\n }\r\n }\r\n salvarXml();\r\n }", "@Override\n public void remove(int no) throws Exception {\n \n }", "public void removerInicio() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n this.primeiro = this.primeiro.irParaProximo();\n this.total--;\n break;\n }\n }", "@Override\n\tpublic void RemoverCarrinho(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}", "public void removerDeContenedor() {\n\t\tthrow new NotImplementedException();\r\n\t}", "public void removeDoc(Document doc) {//borra el objeto\n documents.remove(doc);\n }", "public void deleteLUC() {\r\n/* 135 */ this._has_LUC = false;\r\n/* */ }", "void remover(String cpf)throws ProfessorCpfNExisteException;", "public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }", "public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }", "private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }", "@Override\n\tpublic void deleteConseille(Conseille c) {\n\t\t\n\t}", "@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}", "@Override\n\tpublic void RemoverCupons(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t@Command\n\tpublic void eliminar(@BindingParam(\"documento\") TipoDocumento documentoSeleccionada){\n\n\t\tif (documentoSeleccionada == null) {\n\t\t\tClients.showNotification(\"Seleccione una opción de la lista.\");\n\t\t\treturn; \n\t\t}\n\n\t\tMessagebox.show(\"Desea eliminar el registro seleccionado?\", \"Confirmación de Eliminación\", Messagebox.YES | Messagebox.NO, Messagebox.QUESTION, new EventListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\tif (event.getName().equals(\"onYes\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().begin();\n\t\t\t\t\t\tdocumentoSeleccionada.setEstado(\"I\");\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().merge(documentoSeleccionada);\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().commit();;\n\t\t\t\t\t\t// Actualiza la lista\n\t\t\t\t\t\t//BindUtils.postGlobalCommand(null, null, \"Categoria.buscarPorPatron\", null);\n\t\t\t\t\t\tbuscar();\n\t\t\t\t\t\tClients.showNotification(\"Transaccion ejecutada con exito.\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\ttipoDocumentoDAO.getEntityManager().getTransaction().rollback();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}", "@Override\r\n\tpublic MensajeBean elimina(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.elimina(nuevo);\r\n\t}", "public void eliminarCompraComic();", "public void removeMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=8\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}", "public void removerClienteDoBanco(){\n\t\tdao.removerCliente(doCadastroController);\r\n\t}", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "@Override\n\tpublic void deleteCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "@Override\r\n public void removerConcursando(long id) throws Exception {\n rnConcursando.remover(id);\r\n }", "public void remover(String cpf)\r\n throws GerenteNaoEncontradoException {\r\n this.repositorio.remover(cpf);\r\n }", "public void removerContaCategoria(Conta conta)\n\t\t\tthrows ErroRepositorioException;", "public void descolaPosicao();", "public void eliminar(TipoDocumento tpDocu) {\n try {\n boolean verificarReLaboraldEnTpDocu = servReLaboral.buscarRegistroPorTpDocumento(tpDocu);\n if (verificarReLaboraldEnTpDocu) {\n MensajesFaces.informacion(\"No se puede eliminar\", \"Existen Datos Relacionados\");\n } else {\n servtpDocumento.eliminarTipoDocumento(tpDocu);\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Eliminado\", \"Exitoso\");\n }\n } catch (Exception e) {\n MensajesFaces.advertencia(\"Error al eliminar\", \"detalle\" + e);\n }\n }", "public void eliminar(ArrayList<Correo>cor,int posicion){\r\n for(Correo corre:cor){\r\n if(cor.contains(posicion-1)){\r\n cor.remove(corre);\r\n }\r\n }\r\n }", "public void eliminarNotas(int id ){\n String[] campos = {Integer.toString(id)};\n db.delete(\"nota\",\"_id=?\",campos);\n }", "public void removeNuclei() {\n int size = nucleiSelected.size();\n if (size > 0) {\n nucleiSelected.remove(size - 1);\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n decrementUpdateCount();\n }\n }", "@Override\n\tpublic void delete(Pessoa arg0) {\n\t\t\n\t}", "public String escolheRemove(int pos) {\n\t\tString e = null;\n\t\tint i = 1;\n\t\tCampusModel aux = inicio;\n\n\t\tif (inicio == null) {\n\t\t\tSystem.out.println(\"Lista Vazia!\");\n\t\t\treturn e;\n\t\t}\n\t\tif (pos == 1) {\n\t\t\te = RemoveInicio();\n\t\t\treturn e;\n\t\t} else {\n\t\t\twhile (aux.getProx() != null) {\n\t\t\t\taux = aux.getProx();\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (pos > i || pos == 0) {\n\t\t\t\tSystem.out.println(\"Posição Invalida!\");\n\t\t\t\treturn e;\n\t\t\t} else if (pos == i) {\n\t\t\t\te = RemoveFinal();\n\t\t\t\treturn e;\n\t\t\t} else {\n\t\t\t\taux = inicio;\n\t\t\t\tCampusModel aux2 = aux;\n\n\t\t\t\twhile (pos > 1) {\n\t\t\t\t\taux2 = aux;\n\t\t\t\t\taux = aux.getProx();\n\t\t\t\t\tpos--;\n\t\t\t\t}\n\t\t\t\te = aux.getNomeCampus();\n\t\t\t\taux2.setProx(aux.getProx());\n\n\t\t\t\treturn e;\n\t\t\t}\n\t\t}\n\t}", "public void eliminarCajeros(int id);", "public void cancelarFactura(){\n this.cliente = new Cliente();\n this.factura = new Factura();\n this.listDetalle = new ArrayList<>();\n this.numeroFactura = null;\n }", "public void removerCarro() {\n\n if (carrosCadastrados.size() > 0) {//verifica se existem carros cadastrados\n listarCarros();\n System.out.println(\"Digite o id do carro que deseja excluir\");\n int idCarro = verifica();\n for (int i = 0; i < carrosCadastrados.size(); i++) {\n if (carrosCadastrados.get(i).getId() == idCarro) {\n if (carrosCadastrados.get(i).getEstado()) {//para verificar se o querto está sendo ocupado\n System.err.println(\"O carrp está sendo utilizado por um hospede nesse momento\");\n } else {\n carrosCadastrados.remove(i);\n System.err.println(\"cadastro removido\");\n }\n }\n\n }\n } else {\n System.err.println(\"Não existem carros cadastrados\");\n }\n }", "public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n ElementoLista elementoTemporarioAnteriorAtual = this.primeiro;\n ElementoLista elementoTemporarioAtual = this.primeiro.irParaProximo();\n for (int i = 1; i < totalElementos(); i++) {\n elementoTemporarioAnteriorAtual = elementoTemporarioAtual;\n elementoTemporarioAtual = elementoTemporarioAtual.irParaProximo();\n }\n\n this.ultimo = elementoTemporarioAnteriorAtual;\n this.ultimo.definirProximo(null);\n this.total--;\n }\n //this.ultimo = this.ultimo.irParaAnterior();\n //this.ultimo.definirProximo(null);\n }", "public void eliminar(ListaConArreglo nodosMaquina){\n\t\tmodAdmin.eliminar( nodosMaquina);\n\t\tif(!ModAdmin.existe){\n\t\t\tSystem.err.println(\"El dominio indicado no existe en la base\");\n\t\t}\n\t\tModAdmin.existe=false;\n\t}", "private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"Insira o codigo do produto que pretende remover da lista de produtos?\");\n String codigo = Input.lerString();\n // Aqui devia se verificar se o produto existe mas nao sei fazer isso.\n this.controller.removeProdutoControl(codigo);\n }", "@Override\r\n\tpublic void delete(int eno) {\n\r\n\t}", "public void removeCarritoDeCompras (Long compradorId) {\r\n\r\n CompradorEntity compradorEntity = compradorPersistence.find(compradorId); \r\n CarritoDeComprasEntity carroEntity = carroPersistence.find(compradorEntity.getCarritoDeCompras().getId());\r\n carroPersistence.delete(compradorEntity.getListaDeDeseos().getId());\r\n compradorEntity.setListaDeDeseos(null);\r\n carroEntity.setComprador(null);\r\n \r\n}", "public void removerPorReferencia(int referencia){\n if (buscar(referencia)) {\n // Consulta si el nodo a eliminar es el pirmero\n if (inicio.getEmpleado().getId() == referencia) {\n // El primer nodo apunta al siguiente.\n inicio = inicio.getSiguiente();\n // Apuntamos con el ultimo nodo de la lista al inicio.\n ultimo.setSiguiente(inicio);\n } else{\n // Crea ua copia de la lista.\n NodoEmpleado aux = inicio;\n // Recorre la lista hasta llegar al nodo anterior\n // al de referencia.\n while(aux.getSiguiente().getEmpleado().getId() != referencia){\n aux = aux.getSiguiente();\n }\n if (aux.getSiguiente() == ultimo) {\n aux.setSiguiente(inicio);\n ultimo = aux;\n } else {\n // Guarda el nodo siguiente del nodo a eliminar.\n NodoEmpleado siguiente = aux.getSiguiente();\n // Enlaza el nodo anterior al de eliminar con el\n // sguiente despues de el.\n aux.setSiguiente(siguiente.getSiguiente());\n // Actualizamos el puntero del ultimo nodo\n }\n }\n // Disminuye el contador de tama�o de la lista.\n size--;\n }\n }", "@Override\n\tpublic void eliminaCategoria(String nome) {\n\t\tDB db = getDB();\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tlong hash = nome.hashCode();\n\t\tcategorie.remove(hash);\n\t\tdb.commit();\n\t}", "@Override\n protected void remover(Funcionario funcionario) {\n\n }", "public void deleteCt() {\n\t\tlog.info(\"-----deleteCt()-----\");\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tlistCtKhoLeTraEx.remove(selected);\n\t\tthis.count = listCtKhoLeTraEx.size();\n\t\ttinhTien();\n\t}", "private void borrarPieza(PosicionAjedrez pos){\n\t\tint fila= transformar(pos).getFila();\n\t\tint col= transformar(pos).getColumna();\n\n\t\tthis.getChildren().remove(tablero[col][fila]);\n\t\ttablero[col][fila]=new Canvas(CASILLERO_ANCHO,CASILLERO_ALTO);\n\t\ttablero[col][fila].setTranslateX(CASILLERO_ANCHO*col);\n\t\ttablero[col][fila].setTranslateY(CASILLERO_ALTO*fila);\n\n\t\tthis.getChildren().add(tablero[col][fila]);\n\t}", "public void removerPorReferencia(String referencia){\n if (buscar(referencia)) {\r\n // Consulta si el nodo a eliminar es el pirmero\r\n if (inicio.getValor() == referencia) {\r\n // El primer nodo apunta al siguiente.\r\n inicio = inicio.getSiguiente();\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al nodo anterior \r\n // al de referencia.\r\n while(aux.getSiguiente().getValor() != referencia){\r\n aux = aux.getSiguiente();\r\n }\r\n // Guarda el nodo siguiente del nodo a eliminar.\r\n Nodo siguiente = aux.getSiguiente().getSiguiente();\r\n // Enlaza el nodo anterior al de eliminar con el \r\n // sguiente despues de el.\r\n aux.setSiguiente(siguiente); \r\n }\r\n // Disminuye el contador de tamaño de la lista.\r\n tamanio--;\r\n }\r\n }", "public boolean eliminarCursoPorId(CatCurso catCurso) throws NSJPNegocioException;", "public void deleteAnio()\r\n {\r\n this._has_anio= false;\r\n }", "public void removeByTodoDocumentLibrary(String todoDocumentLibrary);", "public void borrarTodo(){\n diccionario.clear();\n }", "private void remover() {\n int confirma = JOptionPane.showConfirmDialog(null, \"Tem certeza que deseja remover este cliente\", \"Atenção\", JOptionPane.YES_NO_OPTION);\n if (confirma == JOptionPane.YES_OPTION) {\n String sql = \"delete from empresa where id=?\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpId.getText());\n int apagado = pst.executeUpdate();\n if (apagado > 0) {\n JOptionPane.showMessageDialog(null, \"Empresa removida com sucesso!\");\n txtEmpId.setText(null);\n txtEmpNome.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpCNPJ.setText(null);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }", "public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }", "public static void remove(int id_cancion, int id_lista){\n try{\n\t \t manager = Connection.connectToMysql();\n\t \t manager.getTransaction().begin();\n\t \t \n\t \t Lista l = manager.find(Lista.class, id_lista);\n\t \t Cancion c = manager.find(Cancion.class, id_cancion);\n\t\n\t \t List<Cancion> lista_canciones = l.getCanciones();\n\t \t lista_canciones.remove(c);\n\t \t l.setCanciones(lista_canciones);\n\t \n\t \t manager.getTransaction().commit();\n }catch (Exception ex) {\n System.out.println(ex);\n }\n }", "public void delete(int posicao){\n /*\n *\n * Nega a existência da posição na Lista.\n * Uma pequena gambiarra para não aninhar expressões if e else\n *\n */\n if(!verificaPosicao(posicao))\n throw new IllegalArgumentException(\"Posição inválida\");\n\n for (int i = posicao; i < this.tamanho-1; ++i){\n this.lista[i] = this.lista[i+1];\n }\n this.tamanho--;\n }", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "boolean removeDocument(String path);", "@Override\n\tpublic void remover(String cpf) throws ClienteNaoEncontradoException,\n\t\t\tCampoObrigatorioException, SQLException {\n\t\tfor(ClienteFisico clienteFisico : set){\n\t\t\tif(clienteFisico.getCpf().equals(cpf)){\n\t\t\t\tset.remove(clienteFisico);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public ContoContoPadreConverterToDelete() {\n\t\tsuper(Conto.class, SiacTPdceConto.class);\n\t}", "public void removerClientesConta(Integer idConta)\n\t\t\tthrows ErroRepositorioException;", "public void removerDebitoCobrado(Conta conta)\n\t\t\tthrows ErroRepositorioException;", "public void deletePolynom(int position) {\n collection.remove(position);\n }", "public int EliminarNodo() {\r\n int auxiliar = UltimoValorIngresado.informacion;\r\n UltimoValorIngresado = UltimoValorIngresado.siguiente;\r\n tamaño--;\r\n return auxiliar;\r\n }", "private void eliminarLibro(int pos) {\n\t\t// TODO Auto-generated method stub\n\t\tint contador = 0;\n\t\tboolean parar = false;\n\t\tLibro aux;\n\t\t\n\t\twhile((contador < lb.length) && !parar) {\n\t\t\tif(lb[contador] == null) {\n\t\t\t\tparar = true;\n\t\t\t\tcontador--;\n\t\t\t}else {\n\t\t\t\tcontador++;\n\t\t\t}\n\t\t}\n\t\tif(!parar) contador = lb.length-1;\n\t\t\n\t\taux = lb[pos];\n\t\tlb[pos] = lb[contador];\n\t\tlb[contador] = null;\n\t\tlb[lb.length-1] = aux;\n\t\tlb = Arrays.copyOf(lb, lb.length-1);\n\t\tif(lb[pos] == null) {\n\t\t\tfor(int i=pos; i<lb.length-1;i++) {\n\t\t\t\tlb[i] = lb[i+1];\n\t\t\t}\n\t\t}\n\t\t\n\t}", "void delete( String officeCode );", "void removeHadithChapterNo(Object oldHadithChapterNo);", "Curso eliminaCurso(String clave);", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "@Override\r\n\tpublic void remove(int no) {\n\t\tsession.delete(\"enter.delete\", no);\r\n\t}", "public int remove( String lfn ) {\n int result = 0;\n for( Iterator it = this.rcIterator(); it.hasNext() ; ){\n ReplicaCatalog catalog = (ReplicaCatalog) it.next();\n result += catalog.remove( lfn ) ;\n }\n return result;\n\n }", "public void removeBydescricao(String descricao);", "public void eliminar(Long id) throws AppException;", "public void removeProdotto(String codice, int quantita, Request request) throws Exception {\n\t\tgetSession().getCarrello().removeByCodice(codice, quantita);\n\t\treturn;\n\t}", "@Override\n\tpublic void remover(int idServico) throws SQLException {\n\t\t\n\t}", "void supprimerMenu(int numeroArticle);", "public boolean removeDocument(long arg0) throws ContestManagementException {\r\n return false;\r\n }", "@Override\n public void remove() throws IOException {\n int i = listEnterprisePanel.getTableListE().getSelectedRow(); // chọn hàng để xóa\n if (i >= 0) {\n String strID = listEnterprisePanel.getTableListE().getValueAt(i, 1).toString().trim(); // lấy ID\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(strID); // Tìm kiếm Enterprise theo ID\n content.set(Collections.singleton(enterprise), null);\n enterpriseBN.deleteEnterprise(enterprise);\n model.removeRow(i);\n loadData();\n }\n\n }", "@Override\n\tpublic void excluir() {\n\t\t\n\t}", "public void supprimerClasse(int ligne) {\n\t\tSystem.out.println(\"JE SUPPRIME UNE CLASSE \" + ligne);\n\t\ttry{\n\t\t\t\n\t\t\trequete.execute(\"SELECT id FROM eleves where id_classe = \" + ligne);\n\t\t\t\n\t\t\tResultSet rs = requete.getResultSet();\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tsupprimerEmpruntsParEleve(rs.getInt(\"ID\"));\n\t\t\t}\n\t\t\t\n\t\t\trequete.execute(\"DELETE FROM eleves WHERE id_classe =\" + ligne);\n\t\t\trequete.execute(\"DELETE FROM classes WHERE ID = \" + ligne);\n\t\t\trafraichir_tableau();\n\t\t} catch(Exception e ){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public boolean removeDocumentFromContest(long arg0, long arg1) throws ContestManagementException {\r\n return false;\r\n }", "@Override\n\tpublic void delete(Integer rno) throws Exception {\n\t\tSystem.out.println(\"gogog\");\n\t\tsession.delete(namespace+\".delete4\",rno);\n\t}", "@Override\r\n\tpublic void DeleteCitizen(int cin) {\n\r\n\t\tem.remove(em.find(Citizen.class, cin));\r\n\r\n\t}", "private void supprimerPion(Position unePosition) {\n\t\tmesPions.remove(unePosition); \n }", "@Override\n\tpublic int remove(int n) {\n\t\treturn 0;\n\t}", "public void remove() {\n\n }", "public void removerTodos() {\n\t\t\n\t}", "public void remove(MongoDBCritera critera);", "public void excluirConta(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;", "public void borrarZonaObjetivoAtaque() {\n\t\t\n\t}", "public void removerEncomendaInsumo(int insumoId){\t\t\n\t\tEncomenda_insumoController encomenda_insumoController = new Encomenda_insumoController();\n\t\tSystem.out.println(insumoId);\n\t\tencomenda_insumoController.setup();\n\t\tString resposta = encomenda_insumoController.delete(insumoId);\n\t\t\n\t\tencomendaController = new EncomendaController();\n\t\tencomendaController.setup();\t\t\t\n\t\t\n\t\tif(!resposta.equals(\"ok\")) {\n\t\t\texibirMsgErro(resposta);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tgetAllEncomendas();\n\t}", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "public void excluirClienteConta(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;" ]
[ "0.6210451", "0.6200747", "0.6192919", "0.61144775", "0.60867536", "0.60838556", "0.6076656", "0.60512245", "0.6016838", "0.59876347", "0.5971027", "0.5965205", "0.5960532", "0.596032", "0.59535766", "0.59488857", "0.5942152", "0.591686", "0.58913785", "0.5883588", "0.5864669", "0.5862785", "0.58210593", "0.5815405", "0.58128875", "0.5791324", "0.57766926", "0.57728803", "0.57613647", "0.5760482", "0.5757158", "0.5749323", "0.5748342", "0.57204133", "0.57154083", "0.5704163", "0.570359", "0.5690931", "0.5675891", "0.5669673", "0.5667677", "0.5651705", "0.5646954", "0.56405944", "0.56226677", "0.5622404", "0.5621503", "0.5617619", "0.56081134", "0.5603867", "0.5595822", "0.5593573", "0.5591506", "0.55805767", "0.55790836", "0.5577433", "0.5577003", "0.5576024", "0.55620694", "0.5558511", "0.55560935", "0.55557775", "0.55552006", "0.5552286", "0.5549427", "0.5544208", "0.5538619", "0.5537972", "0.55339766", "0.55321485", "0.5518586", "0.5518586", "0.5518586", "0.5518586", "0.5518586", "0.5515601", "0.55153483", "0.55080426", "0.55068123", "0.5502568", "0.5501721", "0.5496792", "0.54879755", "0.5486316", "0.5485643", "0.54826194", "0.5481776", "0.5480969", "0.5480635", "0.54794526", "0.5478432", "0.5474332", "0.5473842", "0.547364", "0.5472857", "0.54723", "0.5472264", "0.547122", "0.547122", "0.547122", "0.54711103" ]
0.0
-1
Verifica se o corpo do documento NCL possui uma porta.
public boolean hasPort(String id) { for(Pt port : ports){ if(port.getId().equals(id)) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int qdtDocentesDisponibilidade(OfertaDisciplina of){\n \n of = ofertaDisciplinaFacade.inicializarColecaoDisponibilidades(of);\n \n //Set<Disponibilidade> disponibilidades = of.getDisponibilidades();\n Set<Disp> disponibilidades = of.getDispo();\n \n return disponibilidades.size(); \n }", "public boolean comprobarExistencias(Libro libro){\n return libro.getCantidadCopias() > 0;\n }", "@Override\n\tpublic boolean estPleine() {\n\t\treturn getNbClients()==capacite;\n\t}", "public boolean existDocumentContent(long arg0) throws ContestManagementException {\r\n return false;\r\n }", "private static boolean nivelPasado() {\r\n\t\tint[] contPelotas = new int[ COLORES_POSIBLES.length ]; // Contadores por color\r\n\t\tfor (int i=0; i<tablero.size(); i++) {\r\n\t\t\tPelota pelota = tablero.getPelota(i);\r\n\t\t\tint contColor = Arrays.asList(COLORES_POSIBLES).indexOf( pelota.getColor() ); // Posición del color de la pelota en el array de contadores\r\n\t\t\tcontPelotas[contColor]++;\r\n\t\t}\r\n\t\tfor (int contador : contPelotas) if (contador>=tamanyoTablero-2) return false;\r\n\t\treturn true;\r\n\t}", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "@Override\r\n public boolean validarSucursalNoNulo(Sucursal sucursal) throws ServiceException {\n if (sucursal == null) {\r\n throw new ServiceException(\"consultorio.service.error.1200\", locale);\r\n }\r\n return true;\r\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "@Transient\n\tpublic boolean isProcessDocumentNotNull() {\n\t\treturn (getProcessDocument()!=null);\n\t}", "public static boolean validaContinuaLista(Conjunto nome) {\r\n\t\tVisao.continuaLista();\r\n\t\tchar resposta = Leitura.lerChar();\r\n\t\tif (resposta != 'S')\r\n\t\t\tVisao.nomesCadastrados(nome.getQtdNomes());\r\n\t\telse\r\n\t\t\t// ZERAR NOMES PARA OUTRA LISTA\r\n\t\t\tnome.zerarLista();\r\n\t\treturn ((resposta == 'S') ? true : false);\r\n\t}", "boolean hasDocument();", "boolean hasDocument();", "boolean hasDocument();", "@Override\n\tpublic boolean estVide() {\n\t\treturn getNbClients()==0;\n\t}", "public void checkInDocument()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tif (itemlay.isMultirowLayout() && itemset.selectRows()==0)\n\t\t{\n\t\t\tmgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOROWS: No Rows Selected.\"));\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, start\n\t\tif (CheckFileOperationEnable()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, end\n\n\t\ttransferToEdmMacro(\"ORIGINAL\",\"CHECKIN\");\n\t}", "public boolean checkCasillaVacia(Casilla pos)\r\n\t{\r\n\t\tboolean comp = false;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcomp = (superficie[pos.getFila()][pos.getCol()] == null);\r\n\t\t}catch(ArrayIndexOutOfBoundsException e){comp = false;}\r\n\t\treturn comp;\r\n\t}", "public boolean verificaSeServicoPublicoFoiComprado(int posicao) {\n if (posicao == 12 && this.EletricCompanyComprada == true) {\n return true;\n\n } else if (posicao == 28 && this.WaterWorksComprada == true) {\n return true;\n\n } else {\n return false;\n\n }\n }", "public boolean validarCurso() {\n\t\treturn curso != null;\n\t}", "private boolean existeMatrizDocumental(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.matriz_doc_config_enc \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr();\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "public boolean posicaoCompravel(int posicao) {\n // System.out.println(\"posicao\" + posicao);\n String dono = (String) this.Donos.get(posicao);\n // System.out.println(\"DONO\"+ dono);\n if (dono.equals(\"bank\")) {\n if (this.publicServices == false && posicao != 12 && posicao != 28) {\n return true;\n } else if (this.publicServices == true && (posicao == 12 || posicao == 28)) {\n return true;\n } else if (this.publicServices == false && (posicao == 12 || posicao == 28)) {\n return false;\n } else {\n return true;\n }\n } else {\n return false;\n }\n }", "public boolean esConexo() {\n\t\tboolean result = true;\n\t\tint indice = 0;\n\t\tBusquedaEnProfundidad busqueda = new BusquedaEnProfundidad(this, 0);\n\n\t\twhile (result && indice < cantNodos) {\n\t\t\tif (!busqueda.estaVisitado(indice))\n\t\t\t\tresult = false;\n\t\t\tindice++;\n\t\t}\n\n\t\treturn result;\n\t}", "public boolean procurarConta(Long numero) {\n for (int i = 0; i < contas.size(); i++) {\n\n //QUANDO ENCONTRA A CONTA DESEJADA RETORNA AS INFORMACOES DELA PARA O A CLASSE RelatorioSaldo\n if (contas.get(i).getNumeroConta() == numero) {\n\n //conta = contas.get(i);\n return true;\n\n }\n }\n\n return false;\n\n }", "public boolean possuiMonopolioEmAlgumGrupoDeCores(){\r\n verificaMonopolioDePropriedades();\r\n return this.monopolioNoGrupoDeCor.size() > 0;\r\n }", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "public final boolean aCL() {\n return false;\n }", "public void setNocCheck(java.lang.Integer nocCheck) {\r\n this.nocCheck = nocCheck;\r\n }", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "private boolean checkListino() {\n /* variabili e costanti locali di lavoro */\n boolean ok = false;\n Date dataInizio;\n Date dataFine;\n AddebitoFissoPannello panServizi;\n\n try { // prova ad eseguire il codice\n dataInizio = this.getDataInizio();\n dataFine = this.getDataFine();\n panServizi = this.getPanServizi();\n ok = panServizi.checkListino(dataInizio, dataFine);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return ok;\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkNetword() {\n\t\tboolean flag = oTest.checkNetword();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "@Test\n public void nao_deve_aceitar_descricao_nula() {\n telefone.setDescricao(null);\n assertFalse(isValid(telefone, \"A descrição não pode ser nula ou vazia.\", Find.class));\n }", "protected boolean isDocStatusCodeInitiated(Document document) {\n CustomerInvoiceWriteoffDocument writeoffDoc = (CustomerInvoiceWriteoffDocument) document;\n return (StringUtils.equals(writeoffDoc.getStatusCode(), ArConstants.CustomerInvoiceWriteoffStatuses.INITIATE));\n }", "@Override\n\tpublic boolean checkCNP() {\n\t\treturn false;\n\t}", "public boolean isSetCnsCidadao() {\n return this.cnsCidadao != null;\n }", "boolean isSetNcbieaa();", "public boolean isSetNrLoc() {\r\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NRLOC_ISSET_ID);\r\n }", "public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[13];\n }", "boolean isSetNcbistdaa();", "private boolean sePuedeColorear(int indice, int color) {\n\t\tint i = 0;\n\t\tboolean sePuede = true;\n\t\tif (nodos.get(indice).getColor() != 0) // si el nodo fue coloreado\n\t\t\tsePuede = false;\n\t\twhile (i < cantNodos && sePuede) {\n\t\t\t// Si hay un nodo adyacente con ese color, no se puede colorear. Si el nodo fue\n\t\t\t// coloreado tampoco se puede.\n\t\t\tif (nodos.get(i).getColor() == color && i != indice) {\n\t\t\t\tif (esAdyacente(nodos.get(i).getNumero() - 1, nodos.get(indice).getNumero() - 1))\n\t\t\t\t\tsePuede = false;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn sePuede;\n\t}", "boolean hasCurrentDocument();", "@Override\r\n public boolean validarSucursalIdNoNulo(Integer sucursalId) throws ServiceException {\n if (sucursalId == null) {\r\n throw new ServiceException(\"consultorio.service.error.1202\", locale);\r\n }\r\n return true;\r\n }", "private boolean generateTNovaCdr() throws Exception {\n // TODO maybe continue here?\n return true;\n }", "final void checkForComodification() {\n\t}", "private boolean validarMezcla() {\n\t\tint grado = nodos.get(0).getGrado();\n\t\tboolean retorno = true;\n\t\tfor (Nodo n : nodos) {\n\t\t\tif (n.getGrado() != grado) {\n\t\t\t\tif (n.getGrado() < grado) {\n\t\t\t\t\tSystem.err.println(\"Error en la mezcla del grafo\");\n\t\t\t\t\tSystem.exit(4321);\n\t\t\t\t} else\n\t\t\t\t\tgrado = n.getGrado();\n\t\t\t}\n\t\t}\n\t\treturn retorno;\n\t}", "public boolean ValidarValesConORC()\n {\n final Integer contInteger;\n return false;\n\n }", "private boolean isContieneLotesDetallePedidos(){\n String pResultado = \"N\";\n try {\n log.info(\"VariablesDelivery.vNumeroPedido_bk:\"+VariablesDelivery.vNumeroPedido_bk);\n log.info(\"VariablesDelivery.vCodLocal_bk:\"+VariablesDelivery.vCodLocal_bk);\n pResultado = DBDelivery.isContienLotesProductos(VariablesDelivery.vCodLocal_bk,\n VariablesDelivery.vNumeroPedido_bk);\n \n log.info(\"isContieneLotesDetallePedidos():\"+pResultado);\n } catch (Exception e) {\n pResultado = \"N\"; \n log.info(\"Error al obtener ind Productos x Lote del Pedido:\"+e.getMessage());\n }\n \n if(pResultado.trim().equalsIgnoreCase(\"N\")){\n return false;\n }\n else{\n FarmaUtility.showMessage(this,\"El pedido ya tiene los Lotes Ingresados\\n\" +\n \"Se procederá a generar el pedido.\\n\" +\n \"Gracias.\" ,tblListaDetallePedido);\n \n return true;\n }\n }", "boolean hasProofDocument();", "boolean hasProofDocument();", "public Long getNumContaCorrente() {\n\t\treturn numContaCorrente;\n\t}", "public java.lang.Integer getNocCheck() {\r\n return nocCheck;\r\n }", "@Test\n\tpublic void testCheckForValidCNP() {\n\t\tPersoana pers = new Persoana(\"nume\", \"1971227030015\");\n\t\tassertTrue(pers.checkCNP());\n\t}", "public boolean vacia()\n {\n return this.repositorio.isEmpty();\n \n }", "protected boolean colaLlena() {\r\n return fin == datos.length - 1;\r\n }", "public boolean estPlein() {\n return this.tapis.size() == capacite;\n }", "@Test\n public void nao_deve_aceitar_descricao_com_numeros() {\n telefone.setDescricao(random(10, true, true));\n assertFalse(isValid(telefone, \"A descrição não pode conter acentos, caracteres especiais e números.\", Find.class));\n }", "private boolean estPlein() {\n return (nbAssoc == associations.length);\n }", "public boolean isSetPenClr()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(PENCLR$12) != 0;\n }\n }", "public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }", "boolean hasPageNo();", "boolean hasPageNo();", "boolean isNilSearchRecurrenceRule();", "boolean hasDocumentType();", "public boolean isSetConstituentIndex() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CONSTITUENTINDEX_ISSET_ID);\n }", "public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[11];\n }", "public boolean isIndicadorFacturaElectronica()\r\n/* 194: */ {\r\n/* 195:330 */ return this.indicadorFacturaElectronica;\r\n/* 196: */ }", "public boolean isSetNeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NECELL$24) != 0;\n }\n }", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "boolean isNilSites();", "public boolean isSetCpfCidadao() {\n return this.cpfCidadao != null;\n }", "boolean isNilSearchRecurrenceStart();", "boolean isConsomme();", "public boolean verificarMinerosComodin() {\r\n int oro = 0;\r\n int plata = 0;\r\n int bronce = 0;\r\n int comodin = 0;\r\n\r\n for (int i = 0; i < listadeMineros.size(); i++) {\r\n if (\"ORO\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n oro++;\r\n }\r\n if (\"PLATA\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n plata++;\r\n }\r\n if (\"BRONCE\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n bronce++;\r\n }\r\n if (\"COMODIN\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n comodin++;\r\n }\r\n }\r\n if (!listadeMineros.isEmpty()) {\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) <= 10) {\r\n return true;\r\n }\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) > 10) {\r\n return false;\r\n }\r\n }\r\n\r\n return false;\r\n }", "public boolean isTuttaOccupata() {\n\t\tfor (Strada x : stradeConfinanti)\n\t\t\tif (!(x.isOccupata()))\n\t\t\t\treturn false;\n\t\treturn true;\n\t}", "public boolean resteUnCasierLibre() {\r\n\t\tif(casiersLibres.isEmpty()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t}", "public boolean isGravarTodosECFs() throws ACBrException {\n return ACBrAACInterop.INSTANCE.AAC_GetGravarTodosECFs(getHandle()) != 0;\n }", "private boolean testeCheck(Cor cor) {\n\t\tPosicao reiPosicao = rei(cor).getPosicaoXadrez().paraPosicao();\n\t\t// Lista de pecas do oponente\n\t\tList<Peca> pecasOponente = pecasTabuleiro.stream()\n\t\t\t\t.filter(x -> ((PecaXadrez)x).getCor() == oponente(cor))\n\t\t\t\t.collect(Collectors.toList());\n\t\t// para cada peca do oponente verifica seus possiveis movimentos\n\t\tfor (Peca p : pecasOponente) {\n\t\t\tboolean[][] mat = p.movimentosPossiveis();\n\t\t\t//Se for essa posicao for verdadeiro (possivel movimento do oponente)\n\t\t\tif (mat[reiPosicao.getLin()][reiPosicao.getCol()]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[16];\n }", "private Boolean ottieniDefaultFlagConvalidaManuale() {\n\t\tfinal String methodName = \"ottieniDefaultFlagConvalidaManuale\";\n\t\tEnte ente = accountDad.findEnteAssocciatoAdAccount(req.getRichiedente().getAccount().getUid());\n\t\t\n\t\tString gca = ente.getGestioneLivelli().get(TipologiaGestioneLivelli.GESTIONE_CONVALIDA_AUTOMATICA);\n\t\tif(\"CONVALIDA_AUTOMATICA\".equals(gca)){\n\t\t\tlog.debug(methodName, TipologiaGestioneLivelli.GESTIONE_CONVALIDA_AUTOMATICA.name()+ \" impostata a CONVALIDA_AUTOMATICA\");\n\t\t\treturn Boolean.FALSE;\n\t\t} else if(\"CONVALIDA_MANUALE\".equals(gca)){\n\t\t\tlog.debug(methodName, TipologiaGestioneLivelli.GESTIONE_CONVALIDA_AUTOMATICA.name()+ \" impostata a CONVALIDA_MANUALE\");\n\t\t\treturn Boolean.TRUE;\n\t\t}\n\t\t\n\t\treturn Boolean.TRUE;\n\t}", "@Test\n\tpublic void testNoNulos() {\n\t\tassertNotNull(\"Error: La bici es nula\", bicicleta);\n\t\tassertNotNull(\"Error: La velocidad es nula\", bicicleta.getVelocidad());\n\t\tassertNotNull(\"Error: El espacio es nulo\", bicicleta.getEspacioRecorrido());\n\t\tassertNotNull(\"Error: El piñon actual es nulo\", bicicleta.getPinhonactual());\n\t\tassertNotNull(\"Error: El plato actual es nulo\", bicicleta.getPlatoactual());\n\t\tassertNotNull(\"Error: El radio de la rueda es nulo\", bicicleta.getRadiorueda());\n\t}", "boolean isSetNcbi8Aa();", "protected boolean m9200e() {\n return this.this$0.b._getEtat() != 0;\n }", "public boolean Llena(){\n return VectorPila.length-1==cima;\n }", "public boolean comprobar(){\r\n boolean ind=false;\r\n switch(this.opc){\r\n case 1:\r\n for(int i=0;i<2;i++){\r\n for(int j=0;j<5;j++){\r\n if(mfacil[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 2:\r\n for(int i=0;i<3;i++){\r\n for(int j=0;j<6;j++){\r\n if(mmedio[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 3:\r\n for(int i=0;i<4;i++){\r\n for(int j=0;j<7;j++){\r\n if(mdificil[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n return ind;\r\n }", "public boolean isSetNetPosition() {\n return EncodingUtils.testBit(__isset_bitfield, __NETPOSITION_ISSET_ID);\n }", "public boolean comprobarLibrosPrestados(Estudiante estudiante){\n try{\n return estudiante.getPrestamosActuales().size() == 3;\n }\n catch(NullPointerException e){\n return false;\n } \n }", "protected boolean canProcessorInit(PaymentRequestDocument paymentRequestDocument) {\n String status = paymentRequestDocument.getApplicationDocumentStatus();\r\n if (StringUtils.equals(status, PaymentRequestStatuses.APPDOC_INITIATE)) {\r\n return true;\r\n }\r\n return false;\r\n }", "@Test\n\tpublic void unUsuarioEstaDentroDelAreaDeCobertura(){\n\t\tPOI cgp = new CGP(\"cgp\", posicionUno, direccion, vertices);\n\t\tAssert.assertTrue(cgp.estaCercaDe(posicionSeis));\n\t}", "boolean isNilSearchWindowStart();", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "boolean hasTextDocument();", "@Test\n public void nao_deve_aceitar_descricao_com_a_primeira_letra_minuscula() {\n telefone.setDescricao(\"celular empresarial.\");\n assertFalse(isValid(telefone, \"A descrição não pode conter acentos, caracteres especiais e números.\", Find.class));\n }", "public boolean isCzyDlaNiepelnosprawnych() {\n return czyDlaNiepelnosprawnych;\n }", "private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}", "private boolean existeConceptoPagos(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.grupo_concepto_pago \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr() + \" and tipo = 'GRUPO' \";\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean readNetwrodInfo() {\n\t\tboolean flag = oTest.readNetwrodInfo();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test\r\n public void testVerificaPossibilidade() {\r\n usucapiao.setAnimusDomini(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public boolean semConflitos(){\n for(int i = 0; i < 9; i++){\n for (int j = 0; j < 9; j++){\n if(matriz[i][j] != 0){\n if(!verificaQuadrante(i,j) || !verificaLinhaEColuna(i, j)){\n return false;\n } \n }\n }\n }\n\n return true;\n }" ]
[ "0.57451665", "0.57446265", "0.57128924", "0.55934983", "0.5591065", "0.55352324", "0.55307496", "0.5490729", "0.545118", "0.5450026", "0.5445062", "0.5445062", "0.5445062", "0.54379", "0.5431519", "0.5427307", "0.54236263", "0.5415626", "0.53627527", "0.5358851", "0.53570837", "0.53527796", "0.53407514", "0.5337455", "0.5315154", "0.5282237", "0.52755797", "0.5267074", "0.52531105", "0.5226877", "0.52239484", "0.521784", "0.5210831", "0.51883215", "0.5186933", "0.5182629", "0.5178518", "0.5177061", "0.5167595", "0.51550955", "0.5154863", "0.51492447", "0.5141334", "0.51387304", "0.51298803", "0.51238847", "0.5123253", "0.5123253", "0.5117825", "0.51170754", "0.51150304", "0.5104387", "0.5102155", "0.50977415", "0.508431", "0.50834244", "0.5076303", "0.50733423", "0.5057427", "0.5057427", "0.5053635", "0.5050709", "0.5050426", "0.5045343", "0.5041605", "0.50379866", "0.5035425", "0.503406", "0.503406", "0.503406", "0.5032284", "0.50288117", "0.5025646", "0.5024719", "0.5023233", "0.50203264", "0.5018006", "0.5013962", "0.5009776", "0.5007204", "0.50010765", "0.5000966", "0.5000734", "0.50007", "0.49991158", "0.49989054", "0.49968582", "0.49944764", "0.49934605", "0.499282", "0.49881315", "0.498228", "0.49818364", "0.4980198", "0.4971376", "0.49694797", "0.49681553", "0.4963319", "0.4962375", "0.49618188", "0.49617627" ]
0.0
-1
Verifica se o corpo do documento NCL possui uma porta.
public boolean hasPort(Pt port) { return ports.contains(port); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int qdtDocentesDisponibilidade(OfertaDisciplina of){\n \n of = ofertaDisciplinaFacade.inicializarColecaoDisponibilidades(of);\n \n //Set<Disponibilidade> disponibilidades = of.getDisponibilidades();\n Set<Disp> disponibilidades = of.getDispo();\n \n return disponibilidades.size(); \n }", "public boolean comprobarExistencias(Libro libro){\n return libro.getCantidadCopias() > 0;\n }", "@Override\n\tpublic boolean estPleine() {\n\t\treturn getNbClients()==capacite;\n\t}", "public boolean existDocumentContent(long arg0) throws ContestManagementException {\r\n return false;\r\n }", "private static boolean nivelPasado() {\r\n\t\tint[] contPelotas = new int[ COLORES_POSIBLES.length ]; // Contadores por color\r\n\t\tfor (int i=0; i<tablero.size(); i++) {\r\n\t\t\tPelota pelota = tablero.getPelota(i);\r\n\t\t\tint contColor = Arrays.asList(COLORES_POSIBLES).indexOf( pelota.getColor() ); // Posición del color de la pelota en el array de contadores\r\n\t\t\tcontPelotas[contColor]++;\r\n\t\t}\r\n\t\tfor (int contador : contPelotas) if (contador>=tamanyoTablero-2) return false;\r\n\t\treturn true;\r\n\t}", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "@Override\r\n public boolean validarSucursalNoNulo(Sucursal sucursal) throws ServiceException {\n if (sucursal == null) {\r\n throw new ServiceException(\"consultorio.service.error.1200\", locale);\r\n }\r\n return true;\r\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "@Transient\n\tpublic boolean isProcessDocumentNotNull() {\n\t\treturn (getProcessDocument()!=null);\n\t}", "public static boolean validaContinuaLista(Conjunto nome) {\r\n\t\tVisao.continuaLista();\r\n\t\tchar resposta = Leitura.lerChar();\r\n\t\tif (resposta != 'S')\r\n\t\t\tVisao.nomesCadastrados(nome.getQtdNomes());\r\n\t\telse\r\n\t\t\t// ZERAR NOMES PARA OUTRA LISTA\r\n\t\t\tnome.zerarLista();\r\n\t\treturn ((resposta == 'S') ? true : false);\r\n\t}", "boolean hasDocument();", "boolean hasDocument();", "boolean hasDocument();", "@Override\n\tpublic boolean estVide() {\n\t\treturn getNbClients()==0;\n\t}", "public void checkInDocument()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tif (itemlay.isMultirowLayout() && itemset.selectRows()==0)\n\t\t{\n\t\t\tmgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOROWS: No Rows Selected.\"));\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, start\n\t\tif (CheckFileOperationEnable()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, end\n\n\t\ttransferToEdmMacro(\"ORIGINAL\",\"CHECKIN\");\n\t}", "public boolean checkCasillaVacia(Casilla pos)\r\n\t{\r\n\t\tboolean comp = false;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcomp = (superficie[pos.getFila()][pos.getCol()] == null);\r\n\t\t}catch(ArrayIndexOutOfBoundsException e){comp = false;}\r\n\t\treturn comp;\r\n\t}", "public boolean verificaSeServicoPublicoFoiComprado(int posicao) {\n if (posicao == 12 && this.EletricCompanyComprada == true) {\n return true;\n\n } else if (posicao == 28 && this.WaterWorksComprada == true) {\n return true;\n\n } else {\n return false;\n\n }\n }", "public boolean validarCurso() {\n\t\treturn curso != null;\n\t}", "private boolean existeMatrizDocumental(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.matriz_doc_config_enc \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr();\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "public boolean posicaoCompravel(int posicao) {\n // System.out.println(\"posicao\" + posicao);\n String dono = (String) this.Donos.get(posicao);\n // System.out.println(\"DONO\"+ dono);\n if (dono.equals(\"bank\")) {\n if (this.publicServices == false && posicao != 12 && posicao != 28) {\n return true;\n } else if (this.publicServices == true && (posicao == 12 || posicao == 28)) {\n return true;\n } else if (this.publicServices == false && (posicao == 12 || posicao == 28)) {\n return false;\n } else {\n return true;\n }\n } else {\n return false;\n }\n }", "public boolean esConexo() {\n\t\tboolean result = true;\n\t\tint indice = 0;\n\t\tBusquedaEnProfundidad busqueda = new BusquedaEnProfundidad(this, 0);\n\n\t\twhile (result && indice < cantNodos) {\n\t\t\tif (!busqueda.estaVisitado(indice))\n\t\t\t\tresult = false;\n\t\t\tindice++;\n\t\t}\n\n\t\treturn result;\n\t}", "public boolean procurarConta(Long numero) {\n for (int i = 0; i < contas.size(); i++) {\n\n //QUANDO ENCONTRA A CONTA DESEJADA RETORNA AS INFORMACOES DELA PARA O A CLASSE RelatorioSaldo\n if (contas.get(i).getNumeroConta() == numero) {\n\n //conta = contas.get(i);\n return true;\n\n }\n }\n\n return false;\n\n }", "public boolean possuiMonopolioEmAlgumGrupoDeCores(){\r\n verificaMonopolioDePropriedades();\r\n return this.monopolioNoGrupoDeCor.size() > 0;\r\n }", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "public final boolean aCL() {\n return false;\n }", "public void setNocCheck(java.lang.Integer nocCheck) {\r\n this.nocCheck = nocCheck;\r\n }", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "private boolean checkListino() {\n /* variabili e costanti locali di lavoro */\n boolean ok = false;\n Date dataInizio;\n Date dataFine;\n AddebitoFissoPannello panServizi;\n\n try { // prova ad eseguire il codice\n dataInizio = this.getDataInizio();\n dataFine = this.getDataFine();\n panServizi = this.getPanServizi();\n ok = panServizi.checkListino(dataInizio, dataFine);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return ok;\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkNetword() {\n\t\tboolean flag = oTest.checkNetword();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "@Test\n public void nao_deve_aceitar_descricao_nula() {\n telefone.setDescricao(null);\n assertFalse(isValid(telefone, \"A descrição não pode ser nula ou vazia.\", Find.class));\n }", "protected boolean isDocStatusCodeInitiated(Document document) {\n CustomerInvoiceWriteoffDocument writeoffDoc = (CustomerInvoiceWriteoffDocument) document;\n return (StringUtils.equals(writeoffDoc.getStatusCode(), ArConstants.CustomerInvoiceWriteoffStatuses.INITIATE));\n }", "@Override\n\tpublic boolean checkCNP() {\n\t\treturn false;\n\t}", "public boolean isSetCnsCidadao() {\n return this.cnsCidadao != null;\n }", "boolean isSetNcbieaa();", "public boolean isSetNrLoc() {\r\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NRLOC_ISSET_ID);\r\n }", "public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[13];\n }", "boolean isSetNcbistdaa();", "private boolean sePuedeColorear(int indice, int color) {\n\t\tint i = 0;\n\t\tboolean sePuede = true;\n\t\tif (nodos.get(indice).getColor() != 0) // si el nodo fue coloreado\n\t\t\tsePuede = false;\n\t\twhile (i < cantNodos && sePuede) {\n\t\t\t// Si hay un nodo adyacente con ese color, no se puede colorear. Si el nodo fue\n\t\t\t// coloreado tampoco se puede.\n\t\t\tif (nodos.get(i).getColor() == color && i != indice) {\n\t\t\t\tif (esAdyacente(nodos.get(i).getNumero() - 1, nodos.get(indice).getNumero() - 1))\n\t\t\t\t\tsePuede = false;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn sePuede;\n\t}", "boolean hasCurrentDocument();", "@Override\r\n public boolean validarSucursalIdNoNulo(Integer sucursalId) throws ServiceException {\n if (sucursalId == null) {\r\n throw new ServiceException(\"consultorio.service.error.1202\", locale);\r\n }\r\n return true;\r\n }", "private boolean generateTNovaCdr() throws Exception {\n // TODO maybe continue here?\n return true;\n }", "final void checkForComodification() {\n\t}", "private boolean validarMezcla() {\n\t\tint grado = nodos.get(0).getGrado();\n\t\tboolean retorno = true;\n\t\tfor (Nodo n : nodos) {\n\t\t\tif (n.getGrado() != grado) {\n\t\t\t\tif (n.getGrado() < grado) {\n\t\t\t\t\tSystem.err.println(\"Error en la mezcla del grafo\");\n\t\t\t\t\tSystem.exit(4321);\n\t\t\t\t} else\n\t\t\t\t\tgrado = n.getGrado();\n\t\t\t}\n\t\t}\n\t\treturn retorno;\n\t}", "public boolean ValidarValesConORC()\n {\n final Integer contInteger;\n return false;\n\n }", "private boolean isContieneLotesDetallePedidos(){\n String pResultado = \"N\";\n try {\n log.info(\"VariablesDelivery.vNumeroPedido_bk:\"+VariablesDelivery.vNumeroPedido_bk);\n log.info(\"VariablesDelivery.vCodLocal_bk:\"+VariablesDelivery.vCodLocal_bk);\n pResultado = DBDelivery.isContienLotesProductos(VariablesDelivery.vCodLocal_bk,\n VariablesDelivery.vNumeroPedido_bk);\n \n log.info(\"isContieneLotesDetallePedidos():\"+pResultado);\n } catch (Exception e) {\n pResultado = \"N\"; \n log.info(\"Error al obtener ind Productos x Lote del Pedido:\"+e.getMessage());\n }\n \n if(pResultado.trim().equalsIgnoreCase(\"N\")){\n return false;\n }\n else{\n FarmaUtility.showMessage(this,\"El pedido ya tiene los Lotes Ingresados\\n\" +\n \"Se procederá a generar el pedido.\\n\" +\n \"Gracias.\" ,tblListaDetallePedido);\n \n return true;\n }\n }", "boolean hasProofDocument();", "boolean hasProofDocument();", "public Long getNumContaCorrente() {\n\t\treturn numContaCorrente;\n\t}", "public java.lang.Integer getNocCheck() {\r\n return nocCheck;\r\n }", "@Test\n\tpublic void testCheckForValidCNP() {\n\t\tPersoana pers = new Persoana(\"nume\", \"1971227030015\");\n\t\tassertTrue(pers.checkCNP());\n\t}", "public boolean vacia()\n {\n return this.repositorio.isEmpty();\n \n }", "protected boolean colaLlena() {\r\n return fin == datos.length - 1;\r\n }", "public boolean estPlein() {\n return this.tapis.size() == capacite;\n }", "@Test\n public void nao_deve_aceitar_descricao_com_numeros() {\n telefone.setDescricao(random(10, true, true));\n assertFalse(isValid(telefone, \"A descrição não pode conter acentos, caracteres especiais e números.\", Find.class));\n }", "private boolean estPlein() {\n return (nbAssoc == associations.length);\n }", "public boolean isSetPenClr()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(PENCLR$12) != 0;\n }\n }", "public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }", "boolean hasPageNo();", "boolean hasPageNo();", "boolean isNilSearchRecurrenceRule();", "boolean hasDocumentType();", "public boolean isSetConstituentIndex() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CONSTITUENTINDEX_ISSET_ID);\n }", "public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[11];\n }", "public boolean isIndicadorFacturaElectronica()\r\n/* 194: */ {\r\n/* 195:330 */ return this.indicadorFacturaElectronica;\r\n/* 196: */ }", "public boolean isSetNeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NECELL$24) != 0;\n }\n }", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "boolean isNilSites();", "public boolean isSetCpfCidadao() {\n return this.cpfCidadao != null;\n }", "boolean isNilSearchRecurrenceStart();", "boolean isConsomme();", "public boolean verificarMinerosComodin() {\r\n int oro = 0;\r\n int plata = 0;\r\n int bronce = 0;\r\n int comodin = 0;\r\n\r\n for (int i = 0; i < listadeMineros.size(); i++) {\r\n if (\"ORO\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n oro++;\r\n }\r\n if (\"PLATA\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n plata++;\r\n }\r\n if (\"BRONCE\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n bronce++;\r\n }\r\n if (\"COMODIN\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n comodin++;\r\n }\r\n }\r\n if (!listadeMineros.isEmpty()) {\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) <= 10) {\r\n return true;\r\n }\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) > 10) {\r\n return false;\r\n }\r\n }\r\n\r\n return false;\r\n }", "public boolean isTuttaOccupata() {\n\t\tfor (Strada x : stradeConfinanti)\n\t\t\tif (!(x.isOccupata()))\n\t\t\t\treturn false;\n\t\treturn true;\n\t}", "public boolean resteUnCasierLibre() {\r\n\t\tif(casiersLibres.isEmpty()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t}", "public boolean isGravarTodosECFs() throws ACBrException {\n return ACBrAACInterop.INSTANCE.AAC_GetGravarTodosECFs(getHandle()) != 0;\n }", "private boolean testeCheck(Cor cor) {\n\t\tPosicao reiPosicao = rei(cor).getPosicaoXadrez().paraPosicao();\n\t\t// Lista de pecas do oponente\n\t\tList<Peca> pecasOponente = pecasTabuleiro.stream()\n\t\t\t\t.filter(x -> ((PecaXadrez)x).getCor() == oponente(cor))\n\t\t\t\t.collect(Collectors.toList());\n\t\t// para cada peca do oponente verifica seus possiveis movimentos\n\t\tfor (Peca p : pecasOponente) {\n\t\t\tboolean[][] mat = p.movimentosPossiveis();\n\t\t\t//Se for essa posicao for verdadeiro (possivel movimento do oponente)\n\t\t\tif (mat[reiPosicao.getLin()][reiPosicao.getCol()]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[16];\n }", "private Boolean ottieniDefaultFlagConvalidaManuale() {\n\t\tfinal String methodName = \"ottieniDefaultFlagConvalidaManuale\";\n\t\tEnte ente = accountDad.findEnteAssocciatoAdAccount(req.getRichiedente().getAccount().getUid());\n\t\t\n\t\tString gca = ente.getGestioneLivelli().get(TipologiaGestioneLivelli.GESTIONE_CONVALIDA_AUTOMATICA);\n\t\tif(\"CONVALIDA_AUTOMATICA\".equals(gca)){\n\t\t\tlog.debug(methodName, TipologiaGestioneLivelli.GESTIONE_CONVALIDA_AUTOMATICA.name()+ \" impostata a CONVALIDA_AUTOMATICA\");\n\t\t\treturn Boolean.FALSE;\n\t\t} else if(\"CONVALIDA_MANUALE\".equals(gca)){\n\t\t\tlog.debug(methodName, TipologiaGestioneLivelli.GESTIONE_CONVALIDA_AUTOMATICA.name()+ \" impostata a CONVALIDA_MANUALE\");\n\t\t\treturn Boolean.TRUE;\n\t\t}\n\t\t\n\t\treturn Boolean.TRUE;\n\t}", "@Test\n\tpublic void testNoNulos() {\n\t\tassertNotNull(\"Error: La bici es nula\", bicicleta);\n\t\tassertNotNull(\"Error: La velocidad es nula\", bicicleta.getVelocidad());\n\t\tassertNotNull(\"Error: El espacio es nulo\", bicicleta.getEspacioRecorrido());\n\t\tassertNotNull(\"Error: El piñon actual es nulo\", bicicleta.getPinhonactual());\n\t\tassertNotNull(\"Error: El plato actual es nulo\", bicicleta.getPlatoactual());\n\t\tassertNotNull(\"Error: El radio de la rueda es nulo\", bicicleta.getRadiorueda());\n\t}", "boolean isSetNcbi8Aa();", "protected boolean m9200e() {\n return this.this$0.b._getEtat() != 0;\n }", "public boolean Llena(){\n return VectorPila.length-1==cima;\n }", "public boolean comprobar(){\r\n boolean ind=false;\r\n switch(this.opc){\r\n case 1:\r\n for(int i=0;i<2;i++){\r\n for(int j=0;j<5;j++){\r\n if(mfacil[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 2:\r\n for(int i=0;i<3;i++){\r\n for(int j=0;j<6;j++){\r\n if(mmedio[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 3:\r\n for(int i=0;i<4;i++){\r\n for(int j=0;j<7;j++){\r\n if(mdificil[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n return ind;\r\n }", "public boolean isSetNetPosition() {\n return EncodingUtils.testBit(__isset_bitfield, __NETPOSITION_ISSET_ID);\n }", "public boolean comprobarLibrosPrestados(Estudiante estudiante){\n try{\n return estudiante.getPrestamosActuales().size() == 3;\n }\n catch(NullPointerException e){\n return false;\n } \n }", "protected boolean canProcessorInit(PaymentRequestDocument paymentRequestDocument) {\n String status = paymentRequestDocument.getApplicationDocumentStatus();\r\n if (StringUtils.equals(status, PaymentRequestStatuses.APPDOC_INITIATE)) {\r\n return true;\r\n }\r\n return false;\r\n }", "@Test\n\tpublic void unUsuarioEstaDentroDelAreaDeCobertura(){\n\t\tPOI cgp = new CGP(\"cgp\", posicionUno, direccion, vertices);\n\t\tAssert.assertTrue(cgp.estaCercaDe(posicionSeis));\n\t}", "boolean isNilSearchWindowStart();", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "boolean hasTextDocument();", "@Test\n public void nao_deve_aceitar_descricao_com_a_primeira_letra_minuscula() {\n telefone.setDescricao(\"celular empresarial.\");\n assertFalse(isValid(telefone, \"A descrição não pode conter acentos, caracteres especiais e números.\", Find.class));\n }", "public boolean isCzyDlaNiepelnosprawnych() {\n return czyDlaNiepelnosprawnych;\n }", "private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}", "private boolean existeConceptoPagos(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.grupo_concepto_pago \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr() + \" and tipo = 'GRUPO' \";\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean readNetwrodInfo() {\n\t\tboolean flag = oTest.readNetwrodInfo();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Test\r\n public void testVerificaPossibilidade() {\r\n usucapiao.setAnimusDomini(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public boolean semConflitos(){\n for(int i = 0; i < 9; i++){\n for (int j = 0; j < 9; j++){\n if(matriz[i][j] != 0){\n if(!verificaQuadrante(i,j) || !verificaLinhaEColuna(i, j)){\n return false;\n } \n }\n }\n }\n\n return true;\n }" ]
[ "0.57451665", "0.57446265", "0.57128924", "0.55934983", "0.5591065", "0.55352324", "0.55307496", "0.5490729", "0.545118", "0.5450026", "0.5445062", "0.5445062", "0.5445062", "0.54379", "0.5431519", "0.5427307", "0.54236263", "0.5415626", "0.53627527", "0.5358851", "0.53570837", "0.53527796", "0.53407514", "0.5337455", "0.5315154", "0.5282237", "0.52755797", "0.5267074", "0.52531105", "0.5226877", "0.52239484", "0.521784", "0.5210831", "0.51883215", "0.5186933", "0.5182629", "0.5178518", "0.5177061", "0.5167595", "0.51550955", "0.5154863", "0.51492447", "0.5141334", "0.51387304", "0.51298803", "0.51238847", "0.5123253", "0.5123253", "0.5117825", "0.51170754", "0.51150304", "0.5104387", "0.5102155", "0.50977415", "0.508431", "0.50834244", "0.5076303", "0.50733423", "0.5057427", "0.5057427", "0.5053635", "0.5050709", "0.5050426", "0.5045343", "0.5041605", "0.50379866", "0.5035425", "0.503406", "0.503406", "0.503406", "0.5032284", "0.50288117", "0.5025646", "0.5024719", "0.5023233", "0.50203264", "0.5018006", "0.5013962", "0.5009776", "0.5007204", "0.50010765", "0.5000966", "0.5000734", "0.50007", "0.49991158", "0.49989054", "0.49968582", "0.49944764", "0.49934605", "0.499282", "0.49881315", "0.498228", "0.49818364", "0.4980198", "0.4971376", "0.49694797", "0.49681553", "0.4963319", "0.4962375", "0.49618188", "0.49617627" ]
0.0
-1
Verifica se o corpo do documento NCL possui alguma porta.
public boolean hasPort() { return !ports.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean comprobarExistencias(Libro libro){\n return libro.getCantidadCopias() > 0;\n }", "@Override\n\tpublic boolean estPleine() {\n\t\treturn getNbClients()==capacite;\n\t}", "public int qdtDocentesDisponibilidade(OfertaDisciplina of){\n \n of = ofertaDisciplinaFacade.inicializarColecaoDisponibilidades(of);\n \n //Set<Disponibilidade> disponibilidades = of.getDisponibilidades();\n Set<Disp> disponibilidades = of.getDispo();\n \n return disponibilidades.size(); \n }", "public boolean existDocumentContent(long arg0) throws ContestManagementException {\r\n return false;\r\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkNetword() {\n\t\tboolean flag = oTest.checkNetword();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "@Override\n\tpublic boolean estVide() {\n\t\treturn getNbClients()==0;\n\t}", "public boolean possuiMonopolioEmAlgumGrupoDeCores(){\r\n verificaMonopolioDePropriedades();\r\n return this.monopolioNoGrupoDeCor.size() > 0;\r\n }", "public void checkInDocument()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tif (itemlay.isMultirowLayout() && itemset.selectRows()==0)\n\t\t{\n\t\t\tmgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOROWS: No Rows Selected.\"));\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, start\n\t\tif (CheckFileOperationEnable()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, end\n\n\t\ttransferToEdmMacro(\"ORIGINAL\",\"CHECKIN\");\n\t}", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "private static boolean nivelPasado() {\r\n\t\tint[] contPelotas = new int[ COLORES_POSIBLES.length ]; // Contadores por color\r\n\t\tfor (int i=0; i<tablero.size(); i++) {\r\n\t\t\tPelota pelota = tablero.getPelota(i);\r\n\t\t\tint contColor = Arrays.asList(COLORES_POSIBLES).indexOf( pelota.getColor() ); // Posición del color de la pelota en el array de contadores\r\n\t\t\tcontPelotas[contColor]++;\r\n\t\t}\r\n\t\tfor (int contador : contPelotas) if (contador>=tamanyoTablero-2) return false;\r\n\t\treturn true;\r\n\t}", "public boolean procurarConta(Long numero) {\n for (int i = 0; i < contas.size(); i++) {\n\n //QUANDO ENCONTRA A CONTA DESEJADA RETORNA AS INFORMACOES DELA PARA O A CLASSE RelatorioSaldo\n if (contas.get(i).getNumeroConta() == numero) {\n\n //conta = contas.get(i);\n return true;\n\n }\n }\n\n return false;\n\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "boolean hasDocument();", "boolean hasDocument();", "boolean hasDocument();", "public final boolean aCL() {\n return false;\n }", "@Override\r\n public boolean validarSucursalNoNulo(Sucursal sucursal) throws ServiceException {\n if (sucursal == null) {\r\n throw new ServiceException(\"consultorio.service.error.1200\", locale);\r\n }\r\n return true;\r\n }", "private boolean existeMatrizDocumental(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.matriz_doc_config_enc \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr();\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "public boolean verificaSeServicoPublicoFoiComprado(int posicao) {\n if (posicao == 12 && this.EletricCompanyComprada == true) {\n return true;\n\n } else if (posicao == 28 && this.WaterWorksComprada == true) {\n return true;\n\n } else {\n return false;\n\n }\n }", "public void setNocCheck(java.lang.Integer nocCheck) {\r\n this.nocCheck = nocCheck;\r\n }", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "public boolean posicaoCompravel(int posicao) {\n // System.out.println(\"posicao\" + posicao);\n String dono = (String) this.Donos.get(posicao);\n // System.out.println(\"DONO\"+ dono);\n if (dono.equals(\"bank\")) {\n if (this.publicServices == false && posicao != 12 && posicao != 28) {\n return true;\n } else if (this.publicServices == true && (posicao == 12 || posicao == 28)) {\n return true;\n } else if (this.publicServices == false && (posicao == 12 || posicao == 28)) {\n return false;\n } else {\n return true;\n }\n } else {\n return false;\n }\n }", "@Override\n\tpublic boolean checkCNP() {\n\t\treturn false;\n\t}", "private boolean isContieneLotesDetallePedidos(){\n String pResultado = \"N\";\n try {\n log.info(\"VariablesDelivery.vNumeroPedido_bk:\"+VariablesDelivery.vNumeroPedido_bk);\n log.info(\"VariablesDelivery.vCodLocal_bk:\"+VariablesDelivery.vCodLocal_bk);\n pResultado = DBDelivery.isContienLotesProductos(VariablesDelivery.vCodLocal_bk,\n VariablesDelivery.vNumeroPedido_bk);\n \n log.info(\"isContieneLotesDetallePedidos():\"+pResultado);\n } catch (Exception e) {\n pResultado = \"N\"; \n log.info(\"Error al obtener ind Productos x Lote del Pedido:\"+e.getMessage());\n }\n \n if(pResultado.trim().equalsIgnoreCase(\"N\")){\n return false;\n }\n else{\n FarmaUtility.showMessage(this,\"El pedido ya tiene los Lotes Ingresados\\n\" +\n \"Se procederá a generar el pedido.\\n\" +\n \"Gracias.\" ,tblListaDetallePedido);\n \n return true;\n }\n }", "public java.lang.Integer getNocCheck() {\r\n return nocCheck;\r\n }", "boolean hasProofDocument();", "boolean hasProofDocument();", "public boolean esConexo() {\n\t\tboolean result = true;\n\t\tint indice = 0;\n\t\tBusquedaEnProfundidad busqueda = new BusquedaEnProfundidad(this, 0);\n\n\t\twhile (result && indice < cantNodos) {\n\t\t\tif (!busqueda.estaVisitado(indice))\n\t\t\t\tresult = false;\n\t\t\tindice++;\n\t\t}\n\n\t\treturn result;\n\t}", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "public boolean ValidarValesConORC()\n {\n final Integer contInteger;\n return false;\n\n }", "public boolean validarCurso() {\n\t\treturn curso != null;\n\t}", "boolean isSetNcbieaa();", "final void checkForComodification() {\n\t}", "private boolean estPlein() {\n return (nbAssoc == associations.length);\n }", "public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[13];\n }", "boolean isSetNcbistdaa();", "private boolean checkListino() {\n /* variabili e costanti locali di lavoro */\n boolean ok = false;\n Date dataInizio;\n Date dataFine;\n AddebitoFissoPannello panServizi;\n\n try { // prova ad eseguire il codice\n dataInizio = this.getDataInizio();\n dataFine = this.getDataFine();\n panServizi = this.getPanServizi();\n ok = panServizi.checkListino(dataInizio, dataFine);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return ok;\n }", "@Transient\n\tpublic boolean isProcessDocumentNotNull() {\n\t\treturn (getProcessDocument()!=null);\n\t}", "private boolean validarMezcla() {\n\t\tint grado = nodos.get(0).getGrado();\n\t\tboolean retorno = true;\n\t\tfor (Nodo n : nodos) {\n\t\t\tif (n.getGrado() != grado) {\n\t\t\t\tif (n.getGrado() < grado) {\n\t\t\t\t\tSystem.err.println(\"Error en la mezcla del grafo\");\n\t\t\t\t\tSystem.exit(4321);\n\t\t\t\t} else\n\t\t\t\t\tgrado = n.getGrado();\n\t\t\t}\n\t\t}\n\t\treturn retorno;\n\t}", "private boolean generateTNovaCdr() throws Exception {\n // TODO maybe continue here?\n return true;\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean readNetwrodInfo() {\n\t\tboolean flag = oTest.readNetwrodInfo();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public boolean checkCasillaVacia(Casilla pos)\r\n\t{\r\n\t\tboolean comp = false;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tcomp = (superficie[pos.getFila()][pos.getCol()] == null);\r\n\t\t}catch(ArrayIndexOutOfBoundsException e){comp = false;}\r\n\t\treturn comp;\r\n\t}", "@Test\n\tpublic void testCheckForValidCNP() {\n\t\tPersoana pers = new Persoana(\"nume\", \"1971227030015\");\n\t\tassertTrue(pers.checkCNP());\n\t}", "private Boolean ottieniDefaultFlagConvalidaManuale() {\n\t\tfinal String methodName = \"ottieniDefaultFlagConvalidaManuale\";\n\t\tEnte ente = accountDad.findEnteAssocciatoAdAccount(req.getRichiedente().getAccount().getUid());\n\t\t\n\t\tString gca = ente.getGestioneLivelli().get(TipologiaGestioneLivelli.GESTIONE_CONVALIDA_AUTOMATICA);\n\t\tif(\"CONVALIDA_AUTOMATICA\".equals(gca)){\n\t\t\tlog.debug(methodName, TipologiaGestioneLivelli.GESTIONE_CONVALIDA_AUTOMATICA.name()+ \" impostata a CONVALIDA_AUTOMATICA\");\n\t\t\treturn Boolean.FALSE;\n\t\t} else if(\"CONVALIDA_MANUALE\".equals(gca)){\n\t\t\tlog.debug(methodName, TipologiaGestioneLivelli.GESTIONE_CONVALIDA_AUTOMATICA.name()+ \" impostata a CONVALIDA_MANUALE\");\n\t\t\treturn Boolean.TRUE;\n\t\t}\n\t\t\n\t\treturn Boolean.TRUE;\n\t}", "public boolean estPlein() {\n return this.tapis.size() == capacite;\n }", "private boolean sePuedeColorear(int indice, int color) {\n\t\tint i = 0;\n\t\tboolean sePuede = true;\n\t\tif (nodos.get(indice).getColor() != 0) // si el nodo fue coloreado\n\t\t\tsePuede = false;\n\t\twhile (i < cantNodos && sePuede) {\n\t\t\t// Si hay un nodo adyacente con ese color, no se puede colorear. Si el nodo fue\n\t\t\t// coloreado tampoco se puede.\n\t\t\tif (nodos.get(i).getColor() == color && i != indice) {\n\t\t\t\tif (esAdyacente(nodos.get(i).getNumero() - 1, nodos.get(indice).getNumero() - 1))\n\t\t\t\t\tsePuede = false;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn sePuede;\n\t}", "public static boolean validaContinuaLista(Conjunto nome) {\r\n\t\tVisao.continuaLista();\r\n\t\tchar resposta = Leitura.lerChar();\r\n\t\tif (resposta != 'S')\r\n\t\t\tVisao.nomesCadastrados(nome.getQtdNomes());\r\n\t\telse\r\n\t\t\t// ZERAR NOMES PARA OUTRA LISTA\r\n\t\t\tnome.zerarLista();\r\n\t\treturn ((resposta == 'S') ? true : false);\r\n\t}", "public boolean getRequiresNRPNLSB() \n {\n return false; \n }", "public boolean isSetCnsCidadao() {\n return this.cnsCidadao != null;\n }", "public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[11];\n }", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "public Long getNumContaCorrente() {\n\t\treturn numContaCorrente;\n\t}", "@Override\n public Boolean colisionoCon(Policia gr) {\n return true;\n }", "boolean hasFkocs();", "Integer getNLNDccp();", "boolean hasCurrentDocument();", "protected boolean isDocErrorCorrectionMode(FinancialSystemTransactionalDocument document) {\n if (StringUtils.isNotBlank(document.getFinancialSystemDocumentHeader().getCorrectedByDocumentId())) {\n return true;\n }\n\n if(((CustomerInvoiceDocument)document).isInvoiceReversal()){\n return true;\n } else {\n // a normal invoice can only be error corrected if document is in a final state\n // and no amounts have been applied (excluding discounts)\n return isDocFinalWithNoAppliedAmountsExceptDiscounts((CustomerInvoiceDocument) document);\n }\n }", "protected boolean checkBioScarso() {\n return bioService.count() < BIO_NEEDED_MINUMUM_SIZE;\n }", "public boolean hasSRCCDCOPERNM() {\n return fieldSetFlags()[16];\n }", "protected boolean isDocStatusCodeInitiated(Document document) {\n CustomerInvoiceWriteoffDocument writeoffDoc = (CustomerInvoiceWriteoffDocument) document;\n return (StringUtils.equals(writeoffDoc.getStatusCode(), ArConstants.CustomerInvoiceWriteoffStatuses.INITIATE));\n }", "boolean isConsomme();", "public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }", "public boolean resteUnCasierLibre() {\r\n\t\tif(casiersLibres.isEmpty()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t}", "protected boolean colaLlena() {\r\n return fin == datos.length - 1;\r\n }", "public boolean isClcw() {\n return clcw;\n }", "protected boolean checkMongo() {\n boolean scarso = false;\n\n if (checkBioScarso()) {\n mail.send(\"Upload attivita\", \"Abortito l'upload delle attività perché il mongoDb delle biografie sembra vuoto o comunque carente di voci che invece dovrebbero esserci.\");\n scarso = true;\n }// end of if cycle\n\n return scarso;\n }", "@Override\n public Boolean colisionoCon(Grafico gr) {\n return true;\n }", "public static int contaConsonanti(String parola) {\n\t\t\tint numConsonanti = 0;\n\t\t\t//si scorre la parola per controllare ogni lettera\n\t\t\tfor (int i = 0; i < parola.length(); i++) {\n\t\t\t\tif (isConsonant(parola.charAt(i))) numConsonanti++;\t\t\n\t\t\t}\n\t\t\treturn numConsonanti;\n\t\t}", "public boolean hasDocumentStandard() {\n return fieldSetFlags()[9];\n }", "public boolean comprobarLibrosPrestados(Estudiante estudiante){\n try{\n return estudiante.getPrestamosActuales().size() == 3;\n }\n catch(NullPointerException e){\n return false;\n } \n }", "public boolean verificarMinerosComodin() {\r\n int oro = 0;\r\n int plata = 0;\r\n int bronce = 0;\r\n int comodin = 0;\r\n\r\n for (int i = 0; i < listadeMineros.size(); i++) {\r\n if (\"ORO\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n oro++;\r\n }\r\n if (\"PLATA\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n plata++;\r\n }\r\n if (\"BRONCE\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n bronce++;\r\n }\r\n if (\"COMODIN\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n comodin++;\r\n }\r\n }\r\n if (!listadeMineros.isEmpty()) {\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) <= 10) {\r\n return true;\r\n }\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) > 10) {\r\n return false;\r\n }\r\n }\r\n\r\n return false;\r\n }", "public static boolean hasNoCompArg(String args) {\n return 0 <= args.toUpperCase().indexOf(\"NOCOMP\");\n }", "public boolean isNChannel() {\n/* 107 */ return \"NChannel\".equals(this.dictionary.getNameAsString(COSName.SUBTYPE));\n/* */ }", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Test\n\tpublic void testNoNulos() {\n\t\tassertNotNull(\"Error: La bici es nula\", bicicleta);\n\t\tassertNotNull(\"Error: La velocidad es nula\", bicicleta.getVelocidad());\n\t\tassertNotNull(\"Error: El espacio es nulo\", bicicleta.getEspacioRecorrido());\n\t\tassertNotNull(\"Error: El piñon actual es nulo\", bicicleta.getPinhonactual());\n\t\tassertNotNull(\"Error: El plato actual es nulo\", bicicleta.getPlatoactual());\n\t\tassertNotNull(\"Error: El radio de la rueda es nulo\", bicicleta.getRadiorueda());\n\t}", "boolean isSetNcbi8Aa();", "public boolean hasLUC() {\r\n/* 295 */ return this._has_LUC;\r\n/* */ }", "@Test\n\tpublic void unUsuarioEstaDentroDelAreaDeCobertura(){\n\t\tPOI cgp = new CGP(\"cgp\", posicionUno, direccion, vertices);\n\t\tAssert.assertTrue(cgp.estaCercaDe(posicionSeis));\n\t}", "public static void demo_LCS(RoWordNet RoWN) throws Exception {\n Timer timer = new Timer();\n String lcs;\n\n boolean allowAllRelations = true;\n\n Literal l1 = new Literal(\"viață\");\n Literal l2 = new Literal(\"vietate\");\n String s1 = RoWN.getSynsetsFromLiteral(l1).get(5).getId();\n String s2 = RoWN.getSynsetsFromLiteral(l2).get(0).getId();\n\n Literal l3 = new Literal(\"fenomen\");\n Literal l4 = new Literal(\"proces\");\n String s3 = RoWN.getSynsetsFromLiteral(l3).get(1).getId();\n String s4 = RoWN.getSynsetsFromLiteral(l4).get(1).getId();\n\n IO.outln(\"\\n*** Searching for the LCS with all relations as the allowed relation ...\");\n timer.start();\n IO.outln(\"Source synset: \" + s1 + \" \" + ((Synset) RoWN\n .getSynsetById(s1)).toString());\n IO.outln(\"Target synset: \" + s2 + \" \" + ((Synset) RoWN\n .getSynsetById(s2)).toString());\n lcs = SimilarityMetrics\n .lowestCommonSubsumer(RoWN, s1, s2, allowAllRelations);\n IO.outln(\"LCS found: \" + lcs + \" \" + ((Synset) RoWN.getSynsetById(lcs))\n .toString());\n IO.outln();\n IO.outln(\"Done: \" + timer.mark());\n\n allowAllRelations = false;\n IO.outln(\"\\n*** Searching the LCS with only hypernymy as allowed edge ...\");\n timer.start();\n IO.outln(\"Source synset: \" + s3 + \" \" + ((Synset) RoWN\n .getSynsetById(s3)).toString());\n IO.outln(\"Target synset: \" + s4 + \" \" + ((Synset) RoWN\n .getSynsetById(s4)).toString());\n lcs = SimilarityMetrics\n .lowestCommonSubsumer(RoWN, s3, s4, allowAllRelations);\n IO.outln(\"LCS found: \" + lcs + \" \" + ((Synset) RoWN.getSynsetById(lcs))\n .toString());\n IO.outln();\n IO.outln(\"Done: \" + timer.mark());\n }", "boolean hasTextDocument();", "private DIdentificadorDoc obtenerIdentificadorDocMuisca(Long numeroDocumento,\n Integer ideFormato) throws\n DExcepcion {\n DCmdAccConsIdentificadorDoc cmdAccConsIdDoc = (DCmdAccConsIdentificadorDoc)\n getAccion(\"entradasalida.DCmdAccConsIdentificadorDoc\");\n //Documentos MUISCA solamente\n cmdAccConsIdDoc.inicializarConsPorId(numeroDocumento.longValue(), 1, true,\n ideFormato.intValue());\n cmdAccConsIdDoc.ejecutar();\n\n return cmdAccConsIdDoc.getIdentificadorDoc();\n }", "public boolean comprobar(){\r\n boolean ind=false;\r\n switch(this.opc){\r\n case 1:\r\n for(int i=0;i<2;i++){\r\n for(int j=0;j<5;j++){\r\n if(mfacil[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 2:\r\n for(int i=0;i<3;i++){\r\n for(int j=0;j<6;j++){\r\n if(mmedio[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n case 3:\r\n for(int i=0;i<4;i++){\r\n for(int j=0;j<7;j++){\r\n if(mdificil[i][j].equals(\"*\")==false){\r\n ind=true;\r\n }\r\n else{\r\n ind=false;\r\n break;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n return ind;\r\n }", "private boolean testeCheck(Cor cor) {\n\t\tPosicao reiPosicao = rei(cor).getPosicaoXadrez().paraPosicao();\n\t\t// Lista de pecas do oponente\n\t\tList<Peca> pecasOponente = pecasTabuleiro.stream()\n\t\t\t\t.filter(x -> ((PecaXadrez)x).getCor() == oponente(cor))\n\t\t\t\t.collect(Collectors.toList());\n\t\t// para cada peca do oponente verifica seus possiveis movimentos\n\t\tfor (Peca p : pecasOponente) {\n\t\t\tboolean[][] mat = p.movimentosPossiveis();\n\t\t\t//Se for essa posicao for verdadeiro (possivel movimento do oponente)\n\t\t\tif (mat[reiPosicao.getLin()][reiPosicao.getCol()]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\r\n public void testVerificaPossibilidade() {\r\n usucapiao.setAnimusDomini(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "public boolean Llena(){\n return VectorPila.length-1==cima;\n }", "public boolean isSetNrLoc() {\r\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NRLOC_ISSET_ID);\r\n }", "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "private boolean existeConceptoPagos(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.grupo_concepto_pago \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr() + \" and tipo = 'GRUPO' \";\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "boolean hasDocumentType();", "@Override\n public Boolean colisionoCon(BOrigen gr) {\n return true;\n }", "protected boolean canProcessorInit(PaymentRequestDocument paymentRequestDocument) {\n String status = paymentRequestDocument.getApplicationDocumentStatus();\r\n if (StringUtils.equals(status, PaymentRequestStatuses.APPDOC_INITIATE)) {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean estDetecteCoteGauche()\r\n\t{\n\t\treturn !this.detecteurGauche.get();\r\n\t}", "@Override\r\n public boolean validarSucursalIdNoNulo(Integer sucursalId) throws ServiceException {\n if (sucursalId == null) {\r\n throw new ServiceException(\"consultorio.service.error.1202\", locale);\r\n }\r\n return true;\r\n }", "public boolean semConflitos(){\n for(int i = 0; i < 9; i++){\n for (int j = 0; j < 9; j++){\n if(matriz[i][j] != 0){\n if(!verificaQuadrante(i,j) || !verificaLinhaEColuna(i, j)){\n return false;\n } \n }\n }\n }\n\n return true;\n }", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}", "private Boolean esSolucion() {\n if(debug) {\n System.out.println(\"**********************esSolucion\");\n printSol(); \n }\n \n return (this.sol.numVerticesEmparejados == (this.G.numVertices()-1));\n }", "public static int documentContByCorso(long idCorso) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.DOCUMENT_COUNT_BY_CORSO;\n\t\t\trp.parameters = new Object[] { idCorso };\n\t\t\tReceiveContent rpp = sendReceive(rp);\n\t\t\tint cont = (int) rpp.parameters[0];\n\t\t\treturn cont;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error DOCUMENT_COUNT_BY_CORSO\");\n\t\t}\n\t\treturn 0;\n\t}", "boolean hasLte();", "boolean hasHadithReferenceNo();" ]
[ "0.59517235", "0.5919169", "0.5780072", "0.5596194", "0.5594619", "0.5577717", "0.5575595", "0.55287457", "0.5514613", "0.5506986", "0.5493113", "0.5467538", "0.54672456", "0.54672456", "0.54672456", "0.54608256", "0.54556376", "0.5452657", "0.54492956", "0.54465353", "0.5431931", "0.5428912", "0.54098415", "0.53896207", "0.5383425", "0.5377807", "0.5377807", "0.53720903", "0.536926", "0.53626573", "0.53594196", "0.5356345", "0.5339262", "0.5337355", "0.53245515", "0.5310076", "0.5291245", "0.5283412", "0.5250711", "0.52463406", "0.5242277", "0.52245176", "0.52209526", "0.5216935", "0.5213522", "0.51939476", "0.5192839", "0.51887494", "0.518734", "0.5183403", "0.5179143", "0.51777464", "0.51774204", "0.51768947", "0.51693475", "0.51682645", "0.5162006", "0.51569015", "0.51563853", "0.51437324", "0.5141104", "0.51367176", "0.51264787", "0.5124558", "0.5123195", "0.5123037", "0.5110368", "0.51073295", "0.51029223", "0.50994694", "0.50971144", "0.50963223", "0.5094329", "0.50931764", "0.5088835", "0.5076441", "0.5074981", "0.50716734", "0.5071274", "0.50692517", "0.5059864", "0.5052113", "0.5051895", "0.5051094", "0.5049164", "0.5045353", "0.504179", "0.5040917", "0.50364053", "0.503586", "0.503585", "0.50283134", "0.50282514", "0.5028126", "0.5027437", "0.502627", "0.502507", "0.5021243", "0.50129753", "0.5005827", "0.50007653" ]
0.0
-1
Retorna as portas do corpo do documento NCL.
public Set<Pt> getPorts() { return ports; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PetriNetDoc getPetrinet();", "public void listarDocDaDisciplina(){\r\n for(int i=0;i<docentes.size();i++){\r\n System.out.println(docentes.get(i).toString());\r\n }\r\n }", "public byte[] getDocparts()\n {\n if (true)\n throw new UnsupportedOperationException(\"FIXME\");\n return (byte[]) getProperty(PropertyIDMap.PID_DOCPARTS);\n }", "Integer getNLNDccp();", "Integer getNLNDsp();", "public int getGnutellaPort();", "default String getPos() {\n return meta(\"nlpcraft:nlp:pos\");\n }", "public Long getNumContaCorrente() {\n\t\treturn numContaCorrente;\n\t}", "public Point[] getPorts() {\r\n return new Point[] { new Point((int) ports[0].getCenterX(), (int) ports[0].getCenterY()),\r\n new Point((int) ports[1].getCenterX(), (int) ports[1].getCenterY()),\r\n new Point((int) ports[2].getCenterX(), (int) ports[2].getCenterY()),\r\n new Point((int) ports[3].getCenterX(), (int) ports[3].getCenterY()) };\r\n }", "private String getCords() {\n return current.getLocString();\n\n }", "public String getLBR_DocLine_ICMS_UU();", "public int[] getCO() {return co;}", "public SNPList get_snps () {\n return current_contig.snps;\r\n }", "public int getContenido_neto() {\n return contenido_neto;\n }", "String getPartWithPort();", "@Transient\n\tpublic String getNumerosREcibos(){\n\t\tString numerosrecibos=\" \";\n\t\n\t\tfor (ReciboDocumentoFiscal recibo : documento.getRecibos()) {\n\t numerosrecibos= numerosrecibos+recibo.getRecibo().getControl()+\" / \";\t\t\n\t\t}\n\t\treturn numerosrecibos;\n\t}", "@Override\n\t\t\tpublic String toString(int doc) throws IOException {\n\t\t\t\treturn null;\n\t\t\t}", "public Complejo[][] getNumeros(){\n\t\treturn numeros;\n\t}", "List<CyNode> getNodeList();", "int getCedula();", "int getMnc();", "@Override\n\tpublic List<Nodo> obtenerNodos() {\n\t\treturn nodos;\n\t}", "org.landxml.schema.landXML11.LanesDocument.Lanes getLanesArray(int i);", "public Integer[] getCoordenada() {\n return this.elementos.clone();\n }", "public Port getPrint_port() {\nreturn Print_port;\n}", "public int[] getLineNumbers() {\n return lineNos;\n }", "public List<Port> getPorts(ISchemaInfo info);", "public int getPortBase() {\r\n return pb;\r\n }", "public List<DimensionContable> getListaDimensionContablePadre()\r\n/* 225: */ {\r\n/* 226:292 */ return this.listaDimensionContablePadre;\r\n/* 227: */ }", "public abstract int [] getReleasePosition();", "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 Range getTextPortsRange();", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "public String getDocumentNo();", "public String getDocumentNo();", "public String getDocumentNo();", "@Override\n List<PortDescription> discoverPortDetails();", "public CArrayFacade<Integer> getScroll_ofs_px() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Integer.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t2\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Integer>(__io__address + 52, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Integer>(__io__address + 52, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}", "public String[] ListaPuertos() {\n listaPuertos = CommPortIdentifier.getPortIdentifiers();\n String[] puertos = null;\n ArrayList p = new ArrayList();\n int i = 0;\n while (listaPuertos.hasMoreElements()) {\n id_Puerto = (CommPortIdentifier) listaPuertos.nextElement();\n if (id_Puerto.getPortType() == 1) {\n p.add(id_Puerto.getName());\n }\n i++;\n }\n puertos = new String[p.size()];\n return (String[]) p.toArray(puertos);\n }", "org.landxml.schema.landXML11.LanesDocument.Lanes[] getLanesArray();", "private ArrayList<Point> cnvIndexList2Points(ArrayList<Integer> nList) {\n ArrayList<Point> pts = new ArrayList<Point>();\n\n // convert index list to points array\n int width = layoutPanel.getLayoutSize().width;\n Iterator<Integer> iter = nList.iterator();\n while (iter.hasNext()) {\n int idx = iter.next();\n pts.add(new Point(idx % width, idx / width)); // Point(x, y)\n }\n\n return pts;\n }", "public int getCedula() {\n return cedula;\n }", "public Short getnNumtipodoc() {\n return nNumtipodoc;\n }", "@Override\r\n\tpublic int getPuntuacion() {\n\t\treturn super.getPuntuacion();\r\n\t}", "Object getCclist();", "Integer getNLNDreu();", "int getNombreColonnesPlateau();", "int getSnPort();", "int getSnPort();", "public void obtener_proximo_cpte(){\n\t\t_Data data=(_Data) _data;\n\t\tString cb=data.getProximoPGCorrecto();\n\t\t//Pago_frame _frame=(Pago_frame) this._frame;\n\t\tframe.get_txt_idPago().setText(cb);\n\t}", "public interface C27361Hn {\n C255119b getScrollingViewProxy();\n}", "org.landxml.schema.landXML11.RoadsideDocument.Roadside getRoadsideArray(int i);", "Integer getIPos();", "public Integer getCedula() {return cedula;}", "default int getIndex() {\n return meta(\"nlpcraft:nlp:index\");\n }", "public int getPortNumber() {\n\treturn iPortNo;\n }", "String getDocumentNumber();", "@Override\r\n\tpublic String getDocumentInfo() {\n\t\treturn null;\r\n\t}", "String getPortRange();", "public String getPortsTo() {\n return portsTo.getText();\n }", "int getIntegPort();", "public List<String> getUnderlyingParcels() {\n List<String> result = new ArrayList<String>();\n List<CadastreObjectTargetBean> targetParcels = this.targetParcelsLayer.getBeanList();\n if (targetParcels != null) {\n for (CadastreObjectTargetBean targetBean : targetParcels) {\n result.add(targetBean.getCadastreObjectId());\n }\n }\n return result;\n }", "public long getNClusters() {\n return cGetNClusters(this.cObject);\n }", "@OneToMany(mappedBy=\"pouchDetalleProcesoLote\")\r\n\tpublic List<PouchDetalleProcesoConteo> getPouchDetalleProcesoConteos() {\r\n\t\treturn this.pouchDetalleProcesoConteos;\r\n\t}", "public Iterable<PosicaoMapa> pegaPosicoes()\n\t{\n\t\treturn posicoes;\n\t}", "private String obtenerNid(int posicion) {\n if (propuestas != null) {\n return propuestas[posicion].getNid();\n }\n return null;\n }", "public String[] contatos() {\n\t\treturn null;\r\n\t}", "public Point2D getNodePositionXY () { return n.getXYPositionMap(); }", "public int getPortCount() {\n return 4;\n }", "public int getLBR_DocLine_ICMS_ID();", "public List<String> pntdirectorio(ReportePlazaDTO reportePlazaDTO) {\n List<CustomOutputFile> lista = new ArrayList<CustomOutputFile>();\n List<String> listaString = new ArrayList<String>();\n\n String qnaCaptura = reportePlazaDTO.getQnaCaptura();\n String qnaCaptura2 = \"\";\n\n if (new Integer(qnaCaptura) % 2 == 0) {\n qnaCaptura2 = String.valueOf((new Integer(qnaCaptura) - 1));\n } else {\n qnaCaptura2 = qnaCaptura;\n }\n\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypntDirectorio(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Plaza,Puesto,Cargo,Nombre,Primer Apellido,Segundo Apellido,Unidad,Fecha Alta Puesto,Vialidad,Nombre vialidad,Num ext, Num int,Asentamiento,Nom asentamiento,Localidad,Nom localidad,Mun-Del,Nom mun-del,Edo,Nom edo,Cod Post,Telefono,Ext,Email,Leyenda,Fec valida,Area responsable,Año,Fec actualiza,Nota\");\n\n if (lista != null) {\n for (CustomOutputFile row: lista) {\n listaString.add(row.getRegistro());\n }\n } else\n listaString = null;\n return listaString;\n\n }", "public Integer plazasDisponibles() {\n\t\treturn cupo;\n\t}", "public int getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public int getCLNO() {\n return clno;\n }", "org.landxml.schema.landXML11.RoadsideDocument.Roadside[] getRoadsideArray();", "private ArrayList<Integer> cnvPoints2IndexList(ArrayList<Point> pts) {\n int width = layoutPanel.getLayoutSize().width;\n ArrayList<Integer> newNList = new ArrayList<Integer>();\n\n Iterator<Point> iter = pts.iterator();\n while (iter.hasNext()) {\n Point pt = iter.next();\n newNList.add(pt.y * width + pt.x);\n }\n Collections.sort(newNList);\n\n return newNList;\n }", "@Override\n\t\tpublic int buildBasicPort() {\n\t\t\treturn buildPort();\n\t\t}", "public int getCedulaCliente(int pos) {\n return cedulaCliente[pos];\n }", "int[] getProjectionSeparators() {\r\n int[] src = new int[10];\r\n Criteria root = this.root;\r\n int i = 0;\r\n int sum = 0;\r\n while (root != null) {\r\n if (root.resultColumn) {\r\n sum += root.projections.size();\r\n src[i++] = sum;\r\n }\r\n root = root.child;\r\n }\r\n int[] dst = new int[i];\r\n System.arraycopy(src, 0, dst, 0, i);\r\n return dst;\r\n }", "public DisponibilidadeDataModel getDocentesPorDisciplina() {\n if(docentesPorDisciplina == null){\n docentesPorDisciplina = new DisponibilidadeDataModel();\n }\n return docentesPorDisciplina;\n }", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "Port getPort2();", "public int getToDocType ()\n {\n return this.toDocType;\n }", "com.google.protobuf.ByteString\n getPortBytes();", "com.google.protobuf.ByteString\n getPortBytes();", "int getInPort();", "int getInPort();", "public int getTextPort();", "public int getViewlines() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 44);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 44);\n\t\t}\n\t}" ]
[ "0.59717226", "0.55703187", "0.54029727", "0.528581", "0.52592796", "0.52281773", "0.51907116", "0.51681703", "0.5161948", "0.51319844", "0.51219356", "0.5118248", "0.51066965", "0.510655", "0.5088955", "0.50805277", "0.5038503", "0.50349367", "0.5030476", "0.5027523", "0.501639", "0.49961433", "0.49928743", "0.49498627", "0.49363732", "0.49325615", "0.49224555", "0.49207968", "0.49067277", "0.48965546", "0.48950744", "0.48920044", "0.48780286", "0.48749083", "0.48749083", "0.48749083", "0.48606032", "0.4858661", "0.4856332", "0.4854728", "0.48533466", "0.48480782", "0.48451236", "0.48387158", "0.48386174", "0.48339164", "0.48249114", "0.48108724", "0.48108724", "0.48082834", "0.4803457", "0.48010734", "0.47873586", "0.47744372", "0.4770095", "0.47682905", "0.4753123", "0.47510073", "0.47495404", "0.47478503", "0.4747048", "0.47464252", "0.47449076", "0.47432294", "0.47401798", "0.47321883", "0.4731566", "0.47267", "0.47264883", "0.47248793", "0.47244254", "0.4718482", "0.47120327", "0.47094336", "0.4708267", "0.47053784", "0.46982354", "0.46971294", "0.46937928", "0.4690685", "0.4688681", "0.4688681", "0.4688681", "0.4688681", "0.4688681", "0.4688681", "0.4688681", "0.4688681", "0.4688681", "0.4688681", "0.4688681", "0.4688681", "0.4688681", "0.46835124", "0.46803972", "0.4678096", "0.46743166", "0.4674258", "0.4674258", "0.4673465", "0.4672507" ]
0.0
-1